@rippling/rippling-sdk 0.2.0-alpha.113 → 0.2.0-alpha.114

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 (203) hide show
  1. package/client.d.mts +23 -8
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +23 -8
  4. package/client.d.ts.map +1 -1
  5. package/client.js +17 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +17 -0
  8. package/client.mjs.map +1 -1
  9. package/lib/manifest/app.d.mts +20 -1
  10. package/lib/manifest/app.d.mts.map +1 -1
  11. package/lib/manifest/app.d.ts +20 -1
  12. package/lib/manifest/app.d.ts.map +1 -1
  13. package/lib/manifest/app.js +50 -0
  14. package/lib/manifest/app.js.map +1 -1
  15. package/lib/manifest/app.mjs +51 -1
  16. package/lib/manifest/app.mjs.map +1 -1
  17. package/lib/manifest/composition.d.mts +3 -0
  18. package/lib/manifest/composition.d.mts.map +1 -1
  19. package/lib/manifest/composition.d.ts +3 -0
  20. package/lib/manifest/composition.d.ts.map +1 -1
  21. package/lib/manifest/composition.js.map +1 -1
  22. package/lib/manifest/composition.mjs.map +1 -1
  23. package/lib/manifest/definitions/app.js +4 -1
  24. package/lib/manifest/definitions/app.js.map +1 -1
  25. package/lib/manifest/definitions/app.mjs +4 -1
  26. package/lib/manifest/definitions/app.mjs.map +1 -1
  27. package/lib/manifest/definitions/function.d.mts.map +1 -1
  28. package/lib/manifest/definitions/function.d.ts.map +1 -1
  29. package/lib/manifest/definitions/function.js +1 -0
  30. package/lib/manifest/definitions/function.js.map +1 -1
  31. package/lib/manifest/definitions/function.mjs +1 -0
  32. package/lib/manifest/definitions/function.mjs.map +1 -1
  33. package/lib/manifest/definitions/group.d.mts +64 -0
  34. package/lib/manifest/definitions/group.d.mts.map +1 -0
  35. package/lib/manifest/definitions/group.d.ts +64 -0
  36. package/lib/manifest/definitions/group.d.ts.map +1 -0
  37. package/lib/manifest/definitions/group.js +57 -0
  38. package/lib/manifest/definitions/group.js.map +1 -0
  39. package/lib/manifest/definitions/group.mjs +50 -0
  40. package/lib/manifest/definitions/group.mjs.map +1 -0
  41. package/lib/manifest/definitions/index.d.mts +4 -0
  42. package/lib/manifest/definitions/index.d.mts.map +1 -1
  43. package/lib/manifest/definitions/index.d.ts +4 -0
  44. package/lib/manifest/definitions/index.d.ts.map +1 -1
  45. package/lib/manifest/definitions/index.js +7 -1
  46. package/lib/manifest/definitions/index.js.map +1 -1
  47. package/lib/manifest/definitions/index.mjs +2 -0
  48. package/lib/manifest/definitions/index.mjs.map +1 -1
  49. package/lib/manifest/definitions/saved-super-group.d.mts +12 -0
  50. package/lib/manifest/definitions/saved-super-group.d.mts.map +1 -0
  51. package/lib/manifest/definitions/saved-super-group.d.ts +12 -0
  52. package/lib/manifest/definitions/saved-super-group.d.ts.map +1 -0
  53. package/lib/manifest/definitions/saved-super-group.js +26 -0
  54. package/lib/manifest/definitions/saved-super-group.js.map +1 -0
  55. package/lib/manifest/definitions/saved-super-group.mjs +21 -0
  56. package/lib/manifest/definitions/saved-super-group.mjs.map +1 -0
  57. package/lib/manifest/existing-manifest-context.d.mts +3 -0
  58. package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
  59. package/lib/manifest/existing-manifest-context.d.ts +3 -0
  60. package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
  61. package/lib/manifest/existing-manifest-context.js +15 -0
  62. package/lib/manifest/existing-manifest-context.js.map +1 -1
  63. package/lib/manifest/existing-manifest-context.mjs +15 -0
  64. package/lib/manifest/existing-manifest-context.mjs.map +1 -1
  65. package/lib/manifest/group.d.mts +83 -0
  66. package/lib/manifest/group.d.mts.map +1 -0
  67. package/lib/manifest/group.d.ts +83 -0
  68. package/lib/manifest/group.d.ts.map +1 -0
  69. package/lib/manifest/group.js +207 -0
  70. package/lib/manifest/group.js.map +1 -0
  71. package/lib/manifest/group.mjs +203 -0
  72. package/lib/manifest/group.mjs.map +1 -0
  73. package/lib/manifest/index.d.mts +2 -0
  74. package/lib/manifest/index.d.mts.map +1 -1
  75. package/lib/manifest/index.d.ts +2 -0
  76. package/lib/manifest/index.d.ts.map +1 -1
  77. package/lib/manifest/index.js +5 -1
  78. package/lib/manifest/index.js.map +1 -1
  79. package/lib/manifest/index.mjs +2 -0
  80. package/lib/manifest/index.mjs.map +1 -1
  81. package/lib/manifest/manifest-builder.d.mts +1 -1
  82. package/lib/manifest/manifest-builder.d.mts.map +1 -1
  83. package/lib/manifest/manifest-builder.d.ts +1 -1
  84. package/lib/manifest/manifest-builder.d.ts.map +1 -1
  85. package/lib/manifest/manifest-builder.js.map +1 -1
  86. package/lib/manifest/manifest-builder.mjs.map +1 -1
  87. package/lib/manifest/manifest-function.d.mts +16 -0
  88. package/lib/manifest/manifest-function.d.mts.map +1 -1
  89. package/lib/manifest/manifest-function.d.ts +16 -0
  90. package/lib/manifest/manifest-function.d.ts.map +1 -1
  91. package/lib/manifest/manifest-function.js +67 -0
  92. package/lib/manifest/manifest-function.js.map +1 -1
  93. package/lib/manifest/manifest-function.mjs +68 -1
  94. package/lib/manifest/manifest-function.mjs.map +1 -1
  95. package/lib/manifest/saved-super-group.d.mts +43 -0
  96. package/lib/manifest/saved-super-group.d.mts.map +1 -0
  97. package/lib/manifest/saved-super-group.d.ts +43 -0
  98. package/lib/manifest/saved-super-group.d.ts.map +1 -0
  99. package/lib/manifest/saved-super-group.js +136 -0
  100. package/lib/manifest/saved-super-group.js.map +1 -0
  101. package/lib/manifest/saved-super-group.mjs +132 -0
  102. package/lib/manifest/saved-super-group.mjs.map +1 -0
  103. package/package.json +1 -1
  104. package/resources/application-submissions.d.mts +261 -0
  105. package/resources/application-submissions.d.mts.map +1 -0
  106. package/resources/application-submissions.d.ts +261 -0
  107. package/resources/application-submissions.d.ts.map +1 -0
  108. package/resources/application-submissions.js +112 -0
  109. package/resources/application-submissions.js.map +1 -0
  110. package/resources/application-submissions.mjs +108 -0
  111. package/resources/application-submissions.mjs.map +1 -0
  112. package/resources/bills.d.mts +913 -12
  113. package/resources/bills.d.mts.map +1 -1
  114. package/resources/bills.d.ts +913 -12
  115. package/resources/bills.d.ts.map +1 -1
  116. package/resources/bills.js +221 -0
  117. package/resources/bills.js.map +1 -1
  118. package/resources/bills.mjs +221 -0
  119. package/resources/bills.mjs.map +1 -1
  120. package/resources/candidate-applications.d.mts +247 -9
  121. package/resources/candidate-applications.d.mts.map +1 -1
  122. package/resources/candidate-applications.d.ts +247 -9
  123. package/resources/candidate-applications.d.ts.map +1 -1
  124. package/resources/candidate-applications.js +37 -5
  125. package/resources/candidate-applications.js.map +1 -1
  126. package/resources/candidate-applications.mjs +37 -5
  127. package/resources/candidate-applications.mjs.map +1 -1
  128. package/resources/card-transactions.d.mts +1580 -30
  129. package/resources/card-transactions.d.mts.map +1 -1
  130. package/resources/card-transactions.d.ts +1580 -30
  131. package/resources/card-transactions.d.ts.map +1 -1
  132. package/resources/card-transactions.js +404 -4
  133. package/resources/card-transactions.js.map +1 -1
  134. package/resources/card-transactions.mjs +404 -4
  135. package/resources/card-transactions.mjs.map +1 -1
  136. package/resources/index.d.mts +6 -4
  137. package/resources/index.d.mts.map +1 -1
  138. package/resources/index.d.ts +6 -4
  139. package/resources/index.d.ts.map +1 -1
  140. package/resources/index.js +7 -3
  141. package/resources/index.js.map +1 -1
  142. package/resources/index.mjs +2 -0
  143. package/resources/index.mjs.map +1 -1
  144. package/resources/job-posts.d.mts +345 -0
  145. package/resources/job-posts.d.mts.map +1 -0
  146. package/resources/job-posts.d.ts +345 -0
  147. package/resources/job-posts.d.ts.map +1 -0
  148. package/resources/job-posts.js +110 -0
  149. package/resources/job-posts.js.map +1 -0
  150. package/resources/job-posts.mjs +106 -0
  151. package/resources/job-posts.mjs.map +1 -0
  152. package/resources/job-requisitions.d.mts +96 -4
  153. package/resources/job-requisitions.d.mts.map +1 -1
  154. package/resources/job-requisitions.d.ts +96 -4
  155. package/resources/job-requisitions.d.ts.map +1 -1
  156. package/resources/job-requisitions.js +64 -3
  157. package/resources/job-requisitions.js.map +1 -1
  158. package/resources/job-requisitions.mjs +64 -3
  159. package/resources/job-requisitions.mjs.map +1 -1
  160. package/resources/reimbursements.d.mts +1106 -64
  161. package/resources/reimbursements.d.mts.map +1 -1
  162. package/resources/reimbursements.d.ts +1106 -64
  163. package/resources/reimbursements.d.ts.map +1 -1
  164. package/resources/reimbursements.js +208 -0
  165. package/resources/reimbursements.js.map +1 -1
  166. package/resources/reimbursements.mjs +208 -0
  167. package/resources/reimbursements.mjs.map +1 -1
  168. package/resources/scheduled-payouts.d.mts +0 -2
  169. package/resources/scheduled-payouts.d.mts.map +1 -1
  170. package/resources/scheduled-payouts.d.ts +0 -2
  171. package/resources/scheduled-payouts.d.ts.map +1 -1
  172. package/resources/scheduled-payouts.js +0 -2
  173. package/resources/scheduled-payouts.js.map +1 -1
  174. package/resources/scheduled-payouts.mjs +0 -2
  175. package/resources/scheduled-payouts.mjs.map +1 -1
  176. package/src/client.ts +66 -0
  177. package/src/lib/manifest/app.ts +72 -2
  178. package/src/lib/manifest/composition.ts +8 -2
  179. package/src/lib/manifest/definitions/app.ts +4 -1
  180. package/src/lib/manifest/definitions/function.ts +1 -0
  181. package/src/lib/manifest/definitions/group.ts +159 -0
  182. package/src/lib/manifest/definitions/index.ts +25 -0
  183. package/src/lib/manifest/definitions/saved-super-group.ts +28 -0
  184. package/src/lib/manifest/existing-manifest-context.ts +24 -0
  185. package/src/lib/manifest/group.ts +282 -0
  186. package/src/lib/manifest/index.ts +16 -0
  187. package/src/lib/manifest/manifest-builder.ts +1 -0
  188. package/src/lib/manifest/manifest-function.ts +91 -1
  189. package/src/lib/manifest/saved-super-group.ts +171 -0
  190. package/src/resources/application-submissions.ts +315 -0
  191. package/src/resources/bills.ts +1085 -12
  192. package/src/resources/candidate-applications.ts +282 -9
  193. package/src/resources/card-transactions.ts +1874 -32
  194. package/src/resources/index.ts +24 -0
  195. package/src/resources/job-posts.ts +415 -0
  196. package/src/resources/job-requisitions.ts +110 -3
  197. package/src/resources/reimbursements.ts +1299 -63
  198. package/src/resources/scheduled-payouts.ts +0 -2
  199. package/src/version.ts +1 -1
  200. package/version.d.mts +1 -1
  201. package/version.d.ts +1 -1
  202. package/version.js +1 -1
  203. package/version.mjs +1 -1
@@ -3,6 +3,7 @@ import * as BusinessPartnersAPI from "./business-partners.js";
3
3
  import * as WorkersAPI from "./workers.js";
4
4
  import { APIPromise } from "../core/api-promise.js";
5
5
  import { PageCursorURL, PagePromise } from "../core/pagination.js";
6
+ import { type Uploadable } from "../core/uploads.js";
6
7
  import { RequestOptions } from "../internal/request-options.js";
7
8
  /**
8
9
  * Finance card transactions (posted charges) and authorizations (pending holds)
@@ -126,10 +127,9 @@ export declare class CardTransactions extends APIResource {
126
127
  * ],
127
128
  * "vendor_id": "string",
128
129
  * "transaction_date": "string",
129
- * "receipt": {
130
- * "url": "string",
131
- * "file_name": "string"
132
- * },
130
+ * "receipts": [
131
+ * {}
132
+ * ],
133
133
  * "transaction_type": "CARD_TRANSACTION",
134
134
  * "authorization_state": "PENDING",
135
135
  * "card_id": "string"
@@ -164,6 +164,402 @@ export declare class CardTransactions extends APIResource {
164
164
  * ```
165
165
  */
166
166
  retrieve(id: string, query?: CardTransactionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CardTransactionRetrieveResponse>;
167
+ /**
168
+ * Replace a card transaction's line items. Supplying `line_items` replaces the
169
+ * entire list: unlisted lines are deleted, omitted or null optional fields on
170
+ * supplied lines are cleared. `amount` and `tax_amount` are decimal strings in the
171
+ * merchant currency; GET responses return them as Currency objects. Line item
172
+ * `amount` values must sum to the transaction's merchant amount.
173
+ *
174
+ * @example HTTP
175
+ * Representative request and response shapes.
176
+ * ```
177
+ * PATCH /card-transactions/{id}/ HTTP/1.1
178
+ * Host: rest.ripplingapis.com
179
+ * Content-Type: application/json
180
+ * Accept: application/json
181
+ * Rippling-Api-Version: 2024-08-01
182
+ *
183
+ * {}
184
+ *
185
+ * HTTP/1.1 200 OK
186
+ * Content-Type: application/json
187
+ *
188
+ * {
189
+ * "id": "string",
190
+ * "created_at": "string",
191
+ * "updated_at": "string",
192
+ * "worker_id": "string",
193
+ * "worker": {
194
+ * "id": "string",
195
+ * "created_at": "string",
196
+ * "updated_at": "string",
197
+ * "user_id": "string",
198
+ * "user": {
199
+ * "id": "string",
200
+ * "created_at": "string",
201
+ * "updated_at": "string"
202
+ * },
203
+ * "is_manager": false,
204
+ * "manager_id": "string",
205
+ * "manager": {
206
+ * "id": "string",
207
+ * "created_at": "string",
208
+ * "updated_at": "string"
209
+ * },
210
+ * "legal_entity_id": "string",
211
+ * "legal_entity": {
212
+ * "id": "string",
213
+ * "created_at": "string",
214
+ * "updated_at": "string"
215
+ * },
216
+ * "country": "AF",
217
+ * "start_date": "string",
218
+ * "end_date": "string",
219
+ * "number": 0,
220
+ * "work_email": "string",
221
+ * "personal_email": "string",
222
+ * "status": "INIT",
223
+ * "location": {
224
+ * "type": "REMOTE",
225
+ * "work_location_id": "string"
226
+ * },
227
+ * "employment_type_id": "string",
228
+ * "employment_type": {
229
+ * "id": "string",
230
+ * "created_at": "string",
231
+ * "updated_at": "string",
232
+ * "label": "string"
233
+ * },
234
+ * "gender": "MALE",
235
+ * "date_of_birth": "string",
236
+ * "race": "BLACK",
237
+ * "ethnicity": "HISPANIC_OR_LATINO",
238
+ * "citizenship": "AF",
239
+ * "compensation_id": "string",
240
+ * "compensation": {
241
+ * "id": "string",
242
+ * "created_at": "string",
243
+ * "updated_at": "string"
244
+ * },
245
+ * "overtime_exemption": "EXEMPT",
246
+ * "department_id": "string",
247
+ * "department": {
248
+ * "id": "string",
249
+ * "created_at": "string",
250
+ * "updated_at": "string",
251
+ * "name": "string"
252
+ * },
253
+ * "teams_id": [
254
+ * "string"
255
+ * ]
256
+ * },
257
+ * "company_amount": {
258
+ * "currency_type": "string",
259
+ * "value": 0
260
+ * },
261
+ * "merchant_amount": {
262
+ * "currency_type": "string",
263
+ * "value": 0
264
+ * },
265
+ * "accounting_date": "string",
266
+ * "gl_sync_state": "NOT_FINALIZED",
267
+ * "approval_status": "DRAFT",
268
+ * "entity_id": "string",
269
+ * "vendor": {
270
+ * "id": "string",
271
+ * "created_at": "string",
272
+ * "updated_at": "string",
273
+ * "name": "string",
274
+ * "logo": "string",
275
+ * "is_archived": false
276
+ * },
277
+ * "gl_vendor": {
278
+ * "id": "string",
279
+ * "name": "string",
280
+ * "gl_vendor_id": "string"
281
+ * },
282
+ * "memo": "string",
283
+ * "attachments": [
284
+ * {
285
+ * "url": "string",
286
+ * "file_name": "string",
287
+ * "uploaded_at": "string",
288
+ * "uploaded_by_id": "string"
289
+ * }
290
+ * ],
291
+ * "line_items": [
292
+ * {
293
+ * "gl_customer": "string",
294
+ * "gl_billable": "BILLABLE",
295
+ * "dimension_choices": {},
296
+ * "memo": "string",
297
+ * "gl_amortization_template": {
298
+ * "gl_object_id": "string",
299
+ * "accounting_integration_id": "string",
300
+ * "name": "string",
301
+ * "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
302
+ * },
303
+ * "amortized": false,
304
+ * "start_date": "string",
305
+ * "end_date": "string",
306
+ * "prepaid_account": {
307
+ * "account_id": "string",
308
+ * "name": "string",
309
+ * "code": "string",
310
+ * "type": "RECEIVABLE",
311
+ * "required_custom_dimensions": [],
312
+ * "requires_department": "string",
313
+ * "requires_work_location": "string"
314
+ * },
315
+ * "gl_amortization_schedule": {
316
+ * "gl_object_id": "string",
317
+ * "accounting_integration_id": "string",
318
+ * "name": "string",
319
+ * "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
320
+ * "start_date": "string",
321
+ * "end_date": "string",
322
+ * "total_amount": "string",
323
+ * "total_amortized_amount": "string",
324
+ * "amortization_period": "string",
325
+ * "status": "NOT_STARTED"
326
+ * },
327
+ * "gl_tax_code": "string",
328
+ * "id": "string",
329
+ * "category_id": "string",
330
+ * "category_name": "string",
331
+ * "amount": {
332
+ * "currency_type": "string",
333
+ * "value": "string"
334
+ * },
335
+ * "tax_amount": {
336
+ * "currency_type": "string",
337
+ * "value": "string"
338
+ * }
339
+ * }
340
+ * ],
341
+ * "vendor_id": "string",
342
+ * "transaction_date": "string",
343
+ * "receipts": [
344
+ * {
345
+ * "url": "string",
346
+ * "preview_url": "string",
347
+ * "file_name": "string",
348
+ * "content_type": "string"
349
+ * }
350
+ * ],
351
+ * "transaction_type": "CARD_TRANSACTION",
352
+ * "authorization_state": "PENDING",
353
+ * "card_id": "string"
354
+ * }
355
+ * ```
356
+ */
357
+ update(id: string, body?: CardTransactionUpdateParams | null | undefined, options?: RequestOptions): APIPromise<CardTransactionUpdateResponse>;
358
+ /**
359
+ * Send the receipt file as `multipart/form-data` in a `file` field. It is stored
360
+ * and attached in a single request.
361
+ *
362
+ * When the company has multiple receipts per transaction enabled, the file is
363
+ * appended to the existing receipts, up to 5 per transaction. Otherwise it
364
+ * replaces the existing receipt. Declined authorizations cannot be changed. Once a
365
+ * charge posts, its authorization is replaced by a card transaction and returns
366
+ * 404, so upload to the card transaction instead.
367
+ *
368
+ * With multiple receipts enabled, uploading identical file contents again returns
369
+ * the current transaction without storing another file or using another receipt
370
+ * slot, even at the limit. This applies to files previously attached by this API;
371
+ * older receipts without a content hash are not deduplicated. Otherwise, uploading
372
+ * a file replaces the existing receipt.
373
+ *
374
+ * The receipt is attached without scanning or populating transaction fields from
375
+ * its contents. As with an in-app upload, Rippling stops marking the transaction
376
+ * as missing a receipt. Returns the updated card transaction in the same shape as
377
+ * `GET /card-transactions/{id}/`, with the new receipt in `receipts`.
378
+ *
379
+ * @example HTTP
380
+ * Representative request and response shapes.
381
+ * ```
382
+ * POST /card-transactions/{id}/receipts/ HTTP/1.1
383
+ * Host: rest.ripplingapis.com
384
+ * Content-Type: multipart/form-data
385
+ * Accept: application/json
386
+ * Rippling-Api-Version: 2024-08-01
387
+ *
388
+ * <multipart form data>
389
+ *
390
+ * HTTP/1.1 200 OK
391
+ * Content-Type: application/json
392
+ *
393
+ * {
394
+ * "id": "string",
395
+ * "created_at": "string",
396
+ * "updated_at": "string",
397
+ * "worker_id": "string",
398
+ * "worker": {
399
+ * "id": "string",
400
+ * "created_at": "string",
401
+ * "updated_at": "string",
402
+ * "user_id": "string",
403
+ * "user": {
404
+ * "id": "string",
405
+ * "created_at": "string",
406
+ * "updated_at": "string"
407
+ * },
408
+ * "is_manager": false,
409
+ * "manager_id": "string",
410
+ * "manager": {
411
+ * "id": "string",
412
+ * "created_at": "string",
413
+ * "updated_at": "string"
414
+ * },
415
+ * "legal_entity_id": "string",
416
+ * "legal_entity": {
417
+ * "id": "string",
418
+ * "created_at": "string",
419
+ * "updated_at": "string"
420
+ * },
421
+ * "country": "AF",
422
+ * "start_date": "string",
423
+ * "end_date": "string",
424
+ * "number": 0,
425
+ * "work_email": "string",
426
+ * "personal_email": "string",
427
+ * "status": "INIT",
428
+ * "location": {
429
+ * "type": "REMOTE",
430
+ * "work_location_id": "string"
431
+ * },
432
+ * "employment_type_id": "string",
433
+ * "employment_type": {
434
+ * "id": "string",
435
+ * "created_at": "string",
436
+ * "updated_at": "string",
437
+ * "label": "string"
438
+ * },
439
+ * "gender": "MALE",
440
+ * "date_of_birth": "string",
441
+ * "race": "BLACK",
442
+ * "ethnicity": "HISPANIC_OR_LATINO",
443
+ * "citizenship": "AF",
444
+ * "compensation_id": "string",
445
+ * "compensation": {
446
+ * "id": "string",
447
+ * "created_at": "string",
448
+ * "updated_at": "string"
449
+ * },
450
+ * "overtime_exemption": "EXEMPT",
451
+ * "department_id": "string",
452
+ * "department": {
453
+ * "id": "string",
454
+ * "created_at": "string",
455
+ * "updated_at": "string",
456
+ * "name": "string"
457
+ * },
458
+ * "teams_id": [
459
+ * "string"
460
+ * ]
461
+ * },
462
+ * "company_amount": {
463
+ * "currency_type": "string",
464
+ * "value": 0
465
+ * },
466
+ * "merchant_amount": {
467
+ * "currency_type": "string",
468
+ * "value": 0
469
+ * },
470
+ * "accounting_date": "string",
471
+ * "gl_sync_state": "NOT_FINALIZED",
472
+ * "approval_status": "DRAFT",
473
+ * "entity_id": "string",
474
+ * "vendor": {
475
+ * "id": "string",
476
+ * "created_at": "string",
477
+ * "updated_at": "string",
478
+ * "name": "string",
479
+ * "logo": "string",
480
+ * "is_archived": false
481
+ * },
482
+ * "gl_vendor": {
483
+ * "id": "string",
484
+ * "name": "string",
485
+ * "gl_vendor_id": "string"
486
+ * },
487
+ * "memo": "string",
488
+ * "attachments": [
489
+ * {
490
+ * "url": "string",
491
+ * "file_name": "string",
492
+ * "uploaded_at": "string",
493
+ * "uploaded_by_id": "string"
494
+ * }
495
+ * ],
496
+ * "line_items": [
497
+ * {
498
+ * "gl_customer": "string",
499
+ * "gl_billable": "BILLABLE",
500
+ * "dimension_choices": {},
501
+ * "memo": "string",
502
+ * "gl_amortization_template": {
503
+ * "gl_object_id": "string",
504
+ * "accounting_integration_id": "string",
505
+ * "name": "string",
506
+ * "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
507
+ * },
508
+ * "amortized": false,
509
+ * "start_date": "string",
510
+ * "end_date": "string",
511
+ * "prepaid_account": {
512
+ * "account_id": "string",
513
+ * "name": "string",
514
+ * "code": "string",
515
+ * "type": "RECEIVABLE",
516
+ * "required_custom_dimensions": [],
517
+ * "requires_department": "string",
518
+ * "requires_work_location": "string"
519
+ * },
520
+ * "gl_amortization_schedule": {
521
+ * "gl_object_id": "string",
522
+ * "accounting_integration_id": "string",
523
+ * "name": "string",
524
+ * "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
525
+ * "start_date": "string",
526
+ * "end_date": "string",
527
+ * "total_amount": "string",
528
+ * "total_amortized_amount": "string",
529
+ * "amortization_period": "string",
530
+ * "status": "NOT_STARTED"
531
+ * },
532
+ * "gl_tax_code": "string",
533
+ * "id": "string",
534
+ * "category_id": "string",
535
+ * "category_name": "string",
536
+ * "amount": {
537
+ * "currency_type": "string",
538
+ * "value": "string"
539
+ * },
540
+ * "tax_amount": {
541
+ * "currency_type": "string",
542
+ * "value": "string"
543
+ * }
544
+ * }
545
+ * ],
546
+ * "vendor_id": "string",
547
+ * "transaction_date": "string",
548
+ * "receipts": [
549
+ * {
550
+ * "url": "string",
551
+ * "preview_url": "string",
552
+ * "file_name": "string",
553
+ * "content_type": "string"
554
+ * }
555
+ * ],
556
+ * "transaction_type": "CARD_TRANSACTION",
557
+ * "authorization_state": "PENDING",
558
+ * "card_id": "string"
559
+ * }
560
+ * ```
561
+ */
562
+ uploadReceipt(id: string, body: CardTransactionUploadReceiptParams, options?: RequestOptions): APIPromise<CardTransactionUploadReceiptResponse>;
167
563
  }
168
564
  export type CardTransactionListResponsesPageCursorURL = PageCursorURL<CardTransactionListResponse>;
169
565
  /**
@@ -172,6 +568,10 @@ export type CardTransactionListResponsesPageCursorURL = PageCursorURL<CardTransa
172
568
  * An authorization is a pending hold the card network places at the time of purchase. A card transaction
173
569
  * is the posted charge. List returns both; retrieve returns one by ID. A transaction the
174
570
  * caller cannot see returns 404, the same as one that does not exist.
571
+ * PATCH `/card-transactions/{id}/` accepts only `line_items` and replaces the entire list.
572
+ * Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
573
+ * objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
574
+ * The sum of request `amount` values must equal the transaction's merchant amount.
175
575
  */
176
576
  export interface CardTransactionListResponse {
177
577
  /**
@@ -206,9 +606,10 @@ export interface CardTransactionListResponse {
206
606
  attachments?: Array<CardTransactionListResponse.Attachment>;
207
607
  /**
208
608
  * State of the card authorization. `PENDING`: an active hold awaiting completion.
209
- * `CLOSED`: the authorization completed and the charge posted. `REVERSED`: the
210
- * authorization was reversed and the hold released. `EXPIRED`: the hold expired
211
- * without completion. Null for posted card transactions.
609
+ * `CLOSED`: the authorization was declined, or it completed and was replaced by a
610
+ * posted card transaction. `REVERSED`: the authorization was reversed and the hold
611
+ * released. `EXPIRED`: the hold expired without completion. Null for posted card
612
+ * transactions.
212
613
  */
213
614
  authorization_state?: 'PENDING' | 'CLOSED' | 'REVERSED' | 'EXPIRED';
214
615
  /**
@@ -252,9 +653,10 @@ export interface CardTransactionListResponse {
252
653
  */
253
654
  merchant_amount?: CardTransactionListResponse.MerchantAmount;
254
655
  /**
255
- * Receipt file and its filename.
656
+ * Receipt files attached to the transaction, in display order, up to 5. Empty when
657
+ * there are none. Null when the caller cannot read the transaction's receipts.
256
658
  */
257
- receipt?: CardTransactionListResponse.Receipt;
659
+ receipts?: Array<CardTransactionListResponse.Receipt> | null;
258
660
  /**
259
661
  * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
260
662
  */
@@ -598,17 +1000,29 @@ export declare namespace CardTransactionListResponse {
598
1000
  value?: number;
599
1001
  }
600
1002
  /**
601
- * Receipt file and its filename.
1003
+ * A receipt file attached to a card transaction.
602
1004
  */
603
1005
  interface Receipt {
604
1006
  /**
605
- * URL for accessing the file.
1007
+ * URL of the original receipt file, such as the uploaded PDF. The link is signed
1008
+ * and expires, so fetch the transaction again for a current link instead of
1009
+ * storing it.
606
1010
  */
607
1011
  url: string;
608
1012
  /**
609
- * Original file name, when recorded.
1013
+ * MIME type of the receipt file, such as `application/pdf`. Null when it cannot be
1014
+ * determined.
610
1015
  */
611
- file_name?: string;
1016
+ content_type?: string | null;
1017
+ /**
1018
+ * Name of the receipt file. Null when it was not recorded.
1019
+ */
1020
+ file_name?: string | null;
1021
+ /**
1022
+ * URL of an image preview of the receipt. Null when the receipt is itself an image
1023
+ * or no preview is available. Like `url`, the link is signed and expires.
1024
+ */
1025
+ preview_url?: string | null;
612
1026
  }
613
1027
  /**
614
1028
  * Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
@@ -680,9 +1094,10 @@ export interface CardTransactionRetrieveResponse extends BusinessPartnersAPI.Met
680
1094
  attachments?: Array<CardTransactionRetrieveResponse.Attachment>;
681
1095
  /**
682
1096
  * State of the card authorization. `PENDING`: an active hold awaiting completion.
683
- * `CLOSED`: the authorization completed and the charge posted. `REVERSED`: the
684
- * authorization was reversed and the hold released. `EXPIRED`: the hold expired
685
- * without completion. Null for posted card transactions.
1097
+ * `CLOSED`: the authorization was declined, or it completed and was replaced by a
1098
+ * posted card transaction. `REVERSED`: the authorization was reversed and the hold
1099
+ * released. `EXPIRED`: the hold expired without completion. Null for posted card
1100
+ * transactions.
686
1101
  */
687
1102
  authorization_state?: 'PENDING' | 'CLOSED' | 'REVERSED' | 'EXPIRED';
688
1103
  /**
@@ -726,9 +1141,10 @@ export interface CardTransactionRetrieveResponse extends BusinessPartnersAPI.Met
726
1141
  */
727
1142
  merchant_amount?: CardTransactionRetrieveResponse.MerchantAmount;
728
1143
  /**
729
- * Receipt file and its filename.
1144
+ * Receipt files attached to the transaction, in display order, up to 5. Empty when
1145
+ * there are none. Null when the caller cannot read the transaction's receipts.
730
1146
  */
731
- receipt?: CardTransactionRetrieveResponse.Receipt;
1147
+ receipts?: Array<CardTransactionRetrieveResponse.Receipt> | null;
732
1148
  /**
733
1149
  * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
734
1150
  */
@@ -1072,17 +1488,29 @@ export declare namespace CardTransactionRetrieveResponse {
1072
1488
  value?: number;
1073
1489
  }
1074
1490
  /**
1075
- * Receipt file and its filename.
1491
+ * A receipt file attached to a card transaction.
1076
1492
  */
1077
1493
  interface Receipt {
1078
1494
  /**
1079
- * URL for accessing the file.
1495
+ * URL of the original receipt file, such as the uploaded PDF. The link is signed
1496
+ * and expires, so fetch the transaction again for a current link instead of
1497
+ * storing it.
1080
1498
  */
1081
1499
  url: string;
1082
1500
  /**
1083
- * Original file name, when recorded.
1501
+ * MIME type of the receipt file, such as `application/pdf`. Null when it cannot be
1502
+ * determined.
1084
1503
  */
1085
- file_name?: string;
1504
+ content_type?: string | null;
1505
+ /**
1506
+ * Name of the receipt file. Null when it was not recorded.
1507
+ */
1508
+ file_name?: string | null;
1509
+ /**
1510
+ * URL of an image preview of the receipt. Null when the receipt is itself an image
1511
+ * or no preview is available. Like `url`, the link is signed and expires.
1512
+ */
1513
+ preview_url?: string | null;
1086
1514
  }
1087
1515
  /**
1088
1516
  * Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
@@ -1118,20 +1546,1142 @@ export declare namespace CardTransactionRetrieveResponse {
1118
1546
  name?: string;
1119
1547
  }
1120
1548
  }
1121
- export interface CardTransactionListParams {
1122
- cursor?: string;
1123
- expand?: string;
1124
- filter?: string;
1549
+ /**
1550
+ * A Finance card transaction or authorization the caller can see.
1551
+ *
1552
+ * An authorization is a pending hold the card network places at the time of purchase. A card transaction
1553
+ * is the posted charge. List returns both; retrieve returns one by ID. A transaction the
1554
+ * caller cannot see returns 404, the same as one that does not exist.
1555
+ * PATCH `/card-transactions/{id}/` accepts only `line_items` and replaces the entire list.
1556
+ * Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
1557
+ * objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
1558
+ * The sum of request `amount` values must equal the transaction's merchant amount.
1559
+ */
1560
+ export interface CardTransactionUpdateResponse {
1125
1561
  /**
1126
- * The maximum number of results to return. Defaults to 50. Maximum is 100.
1562
+ * Identifier field
1127
1563
  */
1128
- limit?: number;
1129
- order_by?: string;
1564
+ id: string;
1565
+ /**
1566
+ * Record creation date
1567
+ */
1568
+ created_at: string;
1569
+ /**
1570
+ * Record update date
1571
+ */
1572
+ updated_at: string;
1573
+ /**
1574
+ * Date the transaction is booked in the accounting system, as an ISO 8601 date
1575
+ * (YYYY-MM-DD).
1576
+ */
1577
+ accounting_date?: string;
1578
+ /**
1579
+ * Approval status of the transaction. `DRAFT`: not submitted for approval.
1580
+ * `PENDING`: awaiting required information or submission before approval.
1581
+ * `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
1582
+ * rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
1583
+ * reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
1584
+ * for card authorizations.
1585
+ */
1586
+ approval_status?: 'DRAFT' | 'PENDING' | 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'FINALIZED' | 'ACTIONED' | 'CANCELLED' | 'FAILED';
1587
+ /**
1588
+ * Other attached files, including filenames and recorded upload metadata.
1589
+ */
1590
+ attachments?: Array<CardTransactionUpdateResponse.Attachment>;
1591
+ /**
1592
+ * State of the card authorization. `PENDING`: an active hold awaiting completion.
1593
+ * `CLOSED`: the authorization was declined, or it completed and was replaced by a
1594
+ * posted card transaction. `REVERSED`: the authorization was reversed and the hold
1595
+ * released. `EXPIRED`: the hold expired without completion. Null for posted card
1596
+ * transactions.
1597
+ */
1598
+ authorization_state?: 'PENDING' | 'CLOSED' | 'REVERSED' | 'EXPIRED';
1599
+ /**
1600
+ * ID of the Finance card used. No public API is currently available to retrieve
1601
+ * this card.
1602
+ */
1603
+ card_id?: string;
1604
+ /**
1605
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
1606
+ */
1607
+ company_amount?: CardTransactionUpdateResponse.CompanyAmount;
1608
+ /**
1609
+ * ID of the legal entity the transaction belongs to. Use it with
1610
+ * `/company-legal-entities/{id}/`.
1611
+ */
1612
+ entity_id?: string;
1613
+ /**
1614
+ * State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
1615
+ * accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
1616
+ * sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
1617
+ * failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
1618
+ * accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
1619
+ * be synced automatically. Null when no sync state is set.
1620
+ */
1621
+ gl_sync_state?: 'NOT_FINALIZED' | 'FOR_REVIEW' | 'PENDING_SYNC' | 'SYNCED' | 'ERROR' | 'DO_NOT_SYNC' | 'EXPORTED' | 'NOT_SYNCABLE' | 'AUTO_SYNC';
1622
+ /**
1623
+ * Vendor in the connected accounting system.
1624
+ */
1625
+ gl_vendor?: CardTransactionUpdateResponse.GlVendor;
1626
+ /**
1627
+ * Category splits of the transaction amount. Updates replace the entire list.
1628
+ */
1629
+ line_items?: Array<CardTransactionUpdateResponse.LineItem>;
1630
+ /**
1631
+ * Memo entered on the transaction.
1632
+ */
1633
+ memo?: string;
1634
+ /**
1635
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
1636
+ * decimal string.
1637
+ */
1638
+ merchant_amount?: CardTransactionUpdateResponse.MerchantAmount;
1639
+ /**
1640
+ * Receipt files attached to the transaction, in display order, up to 5. Empty when
1641
+ * there are none. Null when the caller cannot read the transaction's receipts.
1642
+ */
1643
+ receipts?: Array<CardTransactionUpdateResponse.Receipt> | null;
1644
+ /**
1645
+ * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
1646
+ */
1647
+ transaction_date?: string;
1648
+ /**
1649
+ * `CARD_TRANSACTION`: a posted card charge. `CARD_AUTHORIZATION`: a hold placed by
1650
+ * the card network before the charge posts.
1651
+ */
1652
+ transaction_type?: 'CARD_TRANSACTION' | 'CARD_AUTHORIZATION';
1653
+ /**
1654
+ * Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
1655
+ *
1656
+ * Expandable field
1657
+ */
1658
+ vendor?: CardTransactionUpdateResponse.Vendor;
1659
+ /**
1660
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
1661
+ */
1662
+ vendor_id?: string;
1663
+ /**
1664
+ * Worker details. Expand with `card-transactions.read` and `workers.read`.
1665
+ *
1666
+ * Expandable field
1667
+ */
1668
+ worker?: WorkersAPI.Worker;
1669
+ /**
1670
+ * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
1671
+ */
1672
+ worker_id?: string;
1673
+ }
1674
+ export declare namespace CardTransactionUpdateResponse {
1675
+ /**
1676
+ * A Finance transaction attachment with recorded upload details.
1677
+ */
1678
+ interface Attachment {
1679
+ /**
1680
+ * URL for accessing the file.
1681
+ */
1682
+ url: string;
1683
+ /**
1684
+ * Original file name, when recorded.
1685
+ */
1686
+ file_name?: string;
1687
+ /**
1688
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
1689
+ * recorded.
1690
+ */
1691
+ uploaded_at?: string;
1692
+ /**
1693
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
1694
+ */
1695
+ uploaded_by_id?: string;
1696
+ }
1697
+ /**
1698
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
1699
+ */
1700
+ interface CompanyAmount {
1701
+ /**
1702
+ * The currency type, ex: USD, EUR, etc.
1703
+ */
1704
+ currency_type?: string;
1705
+ /**
1706
+ * The decimal amount for the currency.
1707
+ */
1708
+ value?: number;
1709
+ }
1710
+ /**
1711
+ * Vendor in the connected accounting system.
1712
+ */
1713
+ interface GlVendor {
1714
+ /**
1715
+ * ID of the accounting vendor in Rippling.
1716
+ */
1717
+ id?: string;
1718
+ /**
1719
+ * ID of the vendor in the accounting system.
1720
+ */
1721
+ gl_vendor_id?: string;
1722
+ /**
1723
+ * Name of the vendor in the accounting system.
1724
+ */
1725
+ name?: string;
1726
+ }
1727
+ interface LineItem {
1728
+ /**
1729
+ * Unique identifier of this line item. Null for older line items that have not
1730
+ * been assigned one yet.
1731
+ */
1732
+ id?: string;
1733
+ /**
1734
+ * Whether this line is amortized.
1735
+ */
1736
+ amortized?: boolean;
1737
+ /**
1738
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
1739
+ */
1740
+ amount?: LineItem.Amount;
1741
+ /**
1742
+ * ID of the Finance category assigned to this split. Use it with
1743
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
1744
+ */
1745
+ category_id?: string;
1746
+ /**
1747
+ * Name of the finance category.
1748
+ */
1749
+ category_name?: string;
1750
+ /**
1751
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
1752
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
1753
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
1754
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
1755
+ */
1756
+ dimension_choices?: {
1757
+ [key: string]: LineItem.DimensionChoices;
1758
+ };
1759
+ /**
1760
+ * End of the amortization period (YYYY-MM-DD).
1761
+ */
1762
+ end_date?: string;
1763
+ /**
1764
+ * ERP amortization schedule associated with this line.
1765
+ */
1766
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
1767
+ /**
1768
+ * ERP amortization template for this line.
1769
+ */
1770
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
1771
+ /**
1772
+ * Whether this split is billed to `gl_customer` in the accounting system.
1773
+ * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
1774
+ * set.
1775
+ */
1776
+ gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
1777
+ /**
1778
+ * ID of the customer record in the connected accounting integration. No public
1779
+ * Rippling API is currently available to retrieve this accounting customer.
1780
+ */
1781
+ gl_customer?: string;
1782
+ /**
1783
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
1784
+ * available to retrieve this accounting tax code.
1785
+ */
1786
+ gl_tax_code?: string;
1787
+ /**
1788
+ * Memo entered on this split.
1789
+ */
1790
+ memo?: string;
1791
+ /**
1792
+ * Prepaid asset account for Rippling-managed amortization.
1793
+ */
1794
+ prepaid_account?: LineItem.PrepaidAccount;
1795
+ /**
1796
+ * Start of the amortization period (YYYY-MM-DD).
1797
+ */
1798
+ start_date?: string;
1799
+ /**
1800
+ * Total tax amount for this line in the merchant currency.
1801
+ */
1802
+ tax_amount?: LineItem.TaxAmount;
1803
+ }
1804
+ namespace LineItem {
1805
+ /**
1806
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
1807
+ */
1808
+ interface Amount {
1809
+ /**
1810
+ * The currency type, ex: USD, EUR, etc.
1811
+ */
1812
+ currency_type?: string;
1813
+ /**
1814
+ * The decimal amount for the currency.
1815
+ */
1816
+ value?: number;
1817
+ }
1818
+ interface DimensionChoices {
1819
+ /**
1820
+ * Name of the dimension, such as Department.
1821
+ */
1822
+ dimension_name?: string;
1823
+ /**
1824
+ * Display name of the selected dimension value.
1825
+ */
1826
+ label?: string;
1827
+ /**
1828
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
1829
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
1830
+ * `/job-codes/{id}/`.
1831
+ */
1832
+ value?: string;
1833
+ }
1834
+ /**
1835
+ * ERP amortization schedule associated with this line.
1836
+ */
1837
+ interface GlAmortizationSchedule {
1838
+ /**
1839
+ * Rippling ID of the accounting integration that owns this object. No public
1840
+ * Rippling API is currently available to retrieve this accounting integration.
1841
+ */
1842
+ accounting_integration_id?: string;
1843
+ /**
1844
+ * Number of amortization periods.
1845
+ */
1846
+ amortization_period?: number;
1847
+ /**
1848
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
1849
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
1850
+ * indicate UTC. Null when not set.
1851
+ */
1852
+ end_date?: string;
1853
+ /**
1854
+ * Object ID in the connected accounting system.
1855
+ */
1856
+ gl_object_id?: string;
1857
+ /**
1858
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
1859
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
1860
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
1861
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
1862
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
1863
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
1864
+ * when not set.
1865
+ */
1866
+ gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
1867
+ /**
1868
+ * Accounting object name.
1869
+ */
1870
+ name?: string;
1871
+ /**
1872
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
1873
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
1874
+ * indicate UTC. Null when not set.
1875
+ */
1876
+ start_date?: string;
1877
+ /**
1878
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
1879
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
1880
+ * complete; ON_HOLD means amortization is paused. Null when not set.
1881
+ */
1882
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
1883
+ /**
1884
+ * Amount already amortized as reported by the ERP, in the same currency as
1885
+ * total_amount. No currency conversion is applied; the schedule currency code is
1886
+ * not available in this response.
1887
+ */
1888
+ total_amortized_amount?: number;
1889
+ /**
1890
+ * Total schedule amount as reported by the ERP, without currency conversion. The
1891
+ * schedule currency code is not available in this response.
1892
+ */
1893
+ total_amount?: number;
1894
+ }
1895
+ /**
1896
+ * ERP amortization template for this line.
1897
+ */
1898
+ interface GlAmortizationTemplate {
1899
+ /**
1900
+ * Rippling ID of the accounting integration that owns this object. No public
1901
+ * Rippling API is currently available to retrieve this accounting integration.
1902
+ */
1903
+ accounting_integration_id?: string;
1904
+ /**
1905
+ * Object ID in the connected accounting system.
1906
+ */
1907
+ gl_object_id?: string;
1908
+ /**
1909
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
1910
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
1911
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
1912
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
1913
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
1914
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
1915
+ * when not set.
1916
+ */
1917
+ gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
1918
+ /**
1919
+ * Accounting object name.
1920
+ */
1921
+ name?: string;
1922
+ }
1923
+ /**
1924
+ * Prepaid asset account for Rippling-managed amortization.
1925
+ */
1926
+ interface PrepaidAccount {
1927
+ /**
1928
+ * Account ID in the connected accounting system.
1929
+ */
1930
+ account_id?: string;
1931
+ /**
1932
+ * Account code.
1933
+ */
1934
+ code?: string;
1935
+ /**
1936
+ * Account name.
1937
+ */
1938
+ name?: string;
1939
+ /**
1940
+ * IDs of custom dimensions required by this account.
1941
+ */
1942
+ required_custom_dimensions?: Array<string>;
1943
+ /**
1944
+ * Whether this account requires a department.
1945
+ */
1946
+ requires_department?: boolean;
1947
+ /**
1948
+ * Whether this account requires a work location.
1949
+ */
1950
+ requires_work_location?: boolean;
1951
+ /**
1952
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
1953
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
1954
+ * when not set.
1955
+ */
1956
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
1957
+ }
1958
+ /**
1959
+ * Total tax amount for this line in the merchant currency.
1960
+ */
1961
+ interface TaxAmount {
1962
+ /**
1963
+ * The currency type, ex: USD, EUR, etc.
1964
+ */
1965
+ currency_type?: string;
1966
+ /**
1967
+ * The decimal amount for the currency.
1968
+ */
1969
+ value?: number;
1970
+ }
1971
+ }
1972
+ /**
1973
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
1974
+ * decimal string.
1975
+ */
1976
+ interface MerchantAmount {
1977
+ /**
1978
+ * The currency type, ex: USD, EUR, etc.
1979
+ */
1980
+ currency_type?: string;
1981
+ /**
1982
+ * The decimal amount for the currency.
1983
+ */
1984
+ value?: number;
1985
+ }
1986
+ /**
1987
+ * A receipt file attached to a card transaction.
1988
+ */
1989
+ interface Receipt {
1990
+ /**
1991
+ * URL of the original receipt file, such as the uploaded PDF. The link is signed
1992
+ * and expires, so fetch the transaction again for a current link instead of
1993
+ * storing it.
1994
+ */
1995
+ url: string;
1996
+ /**
1997
+ * MIME type of the receipt file, such as `application/pdf`. Null when it cannot be
1998
+ * determined.
1999
+ */
2000
+ content_type?: string | null;
2001
+ /**
2002
+ * Name of the receipt file. Null when it was not recorded.
2003
+ */
2004
+ file_name?: string | null;
2005
+ /**
2006
+ * URL of an image preview of the receipt. Null when the receipt is itself an image
2007
+ * or no preview is available. Like `url`, the link is signed and expires.
2008
+ */
2009
+ preview_url?: string | null;
2010
+ }
2011
+ /**
2012
+ * Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
2013
+ *
2014
+ * Expandable field
2015
+ */
2016
+ interface Vendor {
2017
+ /**
2018
+ * Identifier field
2019
+ */
2020
+ id: string;
2021
+ /**
2022
+ * Record creation date
2023
+ */
2024
+ created_at: string;
2025
+ /**
2026
+ * Record update date
2027
+ */
2028
+ updated_at: string;
2029
+ /**
2030
+ * Whether the vendor is archived. Archived vendors remain available for historical
2031
+ * references.
2032
+ */
2033
+ is_archived?: boolean;
2034
+ /**
2035
+ * URL of the vendor's logo. Null when no logo is available.
2036
+ */
2037
+ logo?: string;
2038
+ /**
2039
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
2040
+ * alternate names.
2041
+ */
2042
+ name?: string;
2043
+ }
2044
+ }
2045
+ /**
2046
+ * A Finance card transaction or authorization the caller can see.
2047
+ *
2048
+ * An authorization is a pending hold the card network places at the time of purchase. A card transaction
2049
+ * is the posted charge. List returns both; retrieve returns one by ID. A transaction the
2050
+ * caller cannot see returns 404, the same as one that does not exist.
2051
+ * PATCH `/card-transactions/{id}/` accepts only `line_items` and replaces the entire list.
2052
+ * Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
2053
+ * objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
2054
+ * The sum of request `amount` values must equal the transaction's merchant amount.
2055
+ */
2056
+ export interface CardTransactionUploadReceiptResponse {
2057
+ /**
2058
+ * Identifier field
2059
+ */
2060
+ id: string;
2061
+ /**
2062
+ * Record creation date
2063
+ */
2064
+ created_at: string;
2065
+ /**
2066
+ * Record update date
2067
+ */
2068
+ updated_at: string;
2069
+ /**
2070
+ * Date the transaction is booked in the accounting system, as an ISO 8601 date
2071
+ * (YYYY-MM-DD).
2072
+ */
2073
+ accounting_date?: string;
2074
+ /**
2075
+ * Approval status of the transaction. `DRAFT`: not submitted for approval.
2076
+ * `PENDING`: awaiting required information or submission before approval.
2077
+ * `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
2078
+ * rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
2079
+ * reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
2080
+ * for card authorizations.
2081
+ */
2082
+ approval_status?: 'DRAFT' | 'PENDING' | 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'FINALIZED' | 'ACTIONED' | 'CANCELLED' | 'FAILED';
2083
+ /**
2084
+ * Other attached files, including filenames and recorded upload metadata.
2085
+ */
2086
+ attachments?: Array<CardTransactionUploadReceiptResponse.Attachment>;
2087
+ /**
2088
+ * State of the card authorization. `PENDING`: an active hold awaiting completion.
2089
+ * `CLOSED`: the authorization was declined, or it completed and was replaced by a
2090
+ * posted card transaction. `REVERSED`: the authorization was reversed and the hold
2091
+ * released. `EXPIRED`: the hold expired without completion. Null for posted card
2092
+ * transactions.
2093
+ */
2094
+ authorization_state?: 'PENDING' | 'CLOSED' | 'REVERSED' | 'EXPIRED';
2095
+ /**
2096
+ * ID of the Finance card used. No public API is currently available to retrieve
2097
+ * this card.
2098
+ */
2099
+ card_id?: string;
2100
+ /**
2101
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
2102
+ */
2103
+ company_amount?: CardTransactionUploadReceiptResponse.CompanyAmount;
2104
+ /**
2105
+ * ID of the legal entity the transaction belongs to. Use it with
2106
+ * `/company-legal-entities/{id}/`.
2107
+ */
2108
+ entity_id?: string;
2109
+ /**
2110
+ * State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
2111
+ * accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
2112
+ * sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
2113
+ * failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
2114
+ * accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
2115
+ * be synced automatically. Null when no sync state is set.
2116
+ */
2117
+ gl_sync_state?: 'NOT_FINALIZED' | 'FOR_REVIEW' | 'PENDING_SYNC' | 'SYNCED' | 'ERROR' | 'DO_NOT_SYNC' | 'EXPORTED' | 'NOT_SYNCABLE' | 'AUTO_SYNC';
2118
+ /**
2119
+ * Vendor in the connected accounting system.
2120
+ */
2121
+ gl_vendor?: CardTransactionUploadReceiptResponse.GlVendor;
2122
+ /**
2123
+ * Category splits of the transaction amount. Updates replace the entire list.
2124
+ */
2125
+ line_items?: Array<CardTransactionUploadReceiptResponse.LineItem>;
2126
+ /**
2127
+ * Memo entered on the transaction.
2128
+ */
2129
+ memo?: string;
2130
+ /**
2131
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
2132
+ * decimal string.
2133
+ */
2134
+ merchant_amount?: CardTransactionUploadReceiptResponse.MerchantAmount;
2135
+ /**
2136
+ * Receipt files attached to the transaction, in display order, up to 5. Empty when
2137
+ * there are none. Null when the caller cannot read the transaction's receipts.
2138
+ */
2139
+ receipts?: Array<CardTransactionUploadReceiptResponse.Receipt> | null;
2140
+ /**
2141
+ * When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
2142
+ */
2143
+ transaction_date?: string;
2144
+ /**
2145
+ * `CARD_TRANSACTION`: a posted card charge. `CARD_AUTHORIZATION`: a hold placed by
2146
+ * the card network before the charge posts.
2147
+ */
2148
+ transaction_type?: 'CARD_TRANSACTION' | 'CARD_AUTHORIZATION';
2149
+ /**
2150
+ * Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
2151
+ *
2152
+ * Expandable field
2153
+ */
2154
+ vendor?: CardTransactionUploadReceiptResponse.Vendor;
2155
+ /**
2156
+ * ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
2157
+ */
2158
+ vendor_id?: string;
2159
+ /**
2160
+ * Worker details. Expand with `card-transactions.read` and `workers.read`.
2161
+ *
2162
+ * Expandable field
2163
+ */
2164
+ worker?: WorkersAPI.Worker;
2165
+ /**
2166
+ * ID of the worker who made the transaction. Use it with `/workers/{id}/`.
2167
+ */
2168
+ worker_id?: string;
2169
+ }
2170
+ export declare namespace CardTransactionUploadReceiptResponse {
2171
+ /**
2172
+ * A Finance transaction attachment with recorded upload details.
2173
+ */
2174
+ interface Attachment {
2175
+ /**
2176
+ * URL for accessing the file.
2177
+ */
2178
+ url: string;
2179
+ /**
2180
+ * Original file name, when recorded.
2181
+ */
2182
+ file_name?: string;
2183
+ /**
2184
+ * When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
2185
+ * recorded.
2186
+ */
2187
+ uploaded_at?: string;
2188
+ /**
2189
+ * ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
2190
+ */
2191
+ uploaded_by_id?: string;
2192
+ }
2193
+ /**
2194
+ * Amount in the company's headquarters currency. The `value` is a decimal string.
2195
+ */
2196
+ interface CompanyAmount {
2197
+ /**
2198
+ * The currency type, ex: USD, EUR, etc.
2199
+ */
2200
+ currency_type?: string;
2201
+ /**
2202
+ * The decimal amount for the currency.
2203
+ */
2204
+ value?: number;
2205
+ }
2206
+ /**
2207
+ * Vendor in the connected accounting system.
2208
+ */
2209
+ interface GlVendor {
2210
+ /**
2211
+ * ID of the accounting vendor in Rippling.
2212
+ */
2213
+ id?: string;
2214
+ /**
2215
+ * ID of the vendor in the accounting system.
2216
+ */
2217
+ gl_vendor_id?: string;
2218
+ /**
2219
+ * Name of the vendor in the accounting system.
2220
+ */
2221
+ name?: string;
2222
+ }
2223
+ interface LineItem {
2224
+ /**
2225
+ * Unique identifier of this line item. Null for older line items that have not
2226
+ * been assigned one yet.
2227
+ */
2228
+ id?: string;
2229
+ /**
2230
+ * Whether this line is amortized.
2231
+ */
2232
+ amortized?: boolean;
2233
+ /**
2234
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
2235
+ */
2236
+ amount?: LineItem.Amount;
2237
+ /**
2238
+ * ID of the Finance category assigned to this split. Use it with
2239
+ * `/finance-categories/{id}/`. The category name is in `category_name`.
2240
+ */
2241
+ category_id?: string;
2242
+ /**
2243
+ * Name of the finance category.
2244
+ */
2245
+ category_name?: string;
2246
+ /**
2247
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
2248
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
2249
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
2250
+ * code ID from `/job-codes/` and `/job-codes/{id}/`.
2251
+ */
2252
+ dimension_choices?: {
2253
+ [key: string]: LineItem.DimensionChoices;
2254
+ };
2255
+ /**
2256
+ * End of the amortization period (YYYY-MM-DD).
2257
+ */
2258
+ end_date?: string;
2259
+ /**
2260
+ * ERP amortization schedule associated with this line.
2261
+ */
2262
+ gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
2263
+ /**
2264
+ * ERP amortization template for this line.
2265
+ */
2266
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
2267
+ /**
2268
+ * Whether this split is billed to `gl_customer` in the accounting system.
2269
+ * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
2270
+ * set.
2271
+ */
2272
+ gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
2273
+ /**
2274
+ * ID of the customer record in the connected accounting integration. No public
2275
+ * Rippling API is currently available to retrieve this accounting customer.
2276
+ */
2277
+ gl_customer?: string;
2278
+ /**
2279
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
2280
+ * available to retrieve this accounting tax code.
2281
+ */
2282
+ gl_tax_code?: string;
2283
+ /**
2284
+ * Memo entered on this split.
2285
+ */
2286
+ memo?: string;
2287
+ /**
2288
+ * Prepaid asset account for Rippling-managed amortization.
2289
+ */
2290
+ prepaid_account?: LineItem.PrepaidAccount;
2291
+ /**
2292
+ * Start of the amortization period (YYYY-MM-DD).
2293
+ */
2294
+ start_date?: string;
2295
+ /**
2296
+ * Total tax amount for this line in the merchant currency.
2297
+ */
2298
+ tax_amount?: LineItem.TaxAmount;
2299
+ }
2300
+ namespace LineItem {
2301
+ /**
2302
+ * Amount of this split, in the merchant currency. The `value` is a decimal string.
2303
+ */
2304
+ interface Amount {
2305
+ /**
2306
+ * The currency type, ex: USD, EUR, etc.
2307
+ */
2308
+ currency_type?: string;
2309
+ /**
2310
+ * The decimal amount for the currency.
2311
+ */
2312
+ value?: number;
2313
+ }
2314
+ interface DimensionChoices {
2315
+ /**
2316
+ * Name of the dimension, such as Department.
2317
+ */
2318
+ dimension_name?: string;
2319
+ /**
2320
+ * Display name of the selected dimension value.
2321
+ */
2322
+ label?: string;
2323
+ /**
2324
+ * ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
2325
+ * `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
2326
+ * `/job-codes/{id}/`.
2327
+ */
2328
+ value?: string;
2329
+ }
2330
+ /**
2331
+ * ERP amortization schedule associated with this line.
2332
+ */
2333
+ interface GlAmortizationSchedule {
2334
+ /**
2335
+ * Rippling ID of the accounting integration that owns this object. No public
2336
+ * Rippling API is currently available to retrieve this accounting integration.
2337
+ */
2338
+ accounting_integration_id?: string;
2339
+ /**
2340
+ * Number of amortization periods.
2341
+ */
2342
+ amortization_period?: number;
2343
+ /**
2344
+ * End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
2345
+ * 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
2346
+ * indicate UTC. Null when not set.
2347
+ */
2348
+ end_date?: string;
2349
+ /**
2350
+ * Object ID in the connected accounting system.
2351
+ */
2352
+ gl_object_id?: string;
2353
+ /**
2354
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
2355
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
2356
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
2357
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
2358
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
2359
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
2360
+ * when not set.
2361
+ */
2362
+ gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
2363
+ /**
2364
+ * Accounting object name.
2365
+ */
2366
+ name?: string;
2367
+ /**
2368
+ * Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
2369
+ * 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
2370
+ * indicate UTC. Null when not set.
2371
+ */
2372
+ start_date?: string;
2373
+ /**
2374
+ * ERP amortization schedule status: NOT_STARTED means amortization has not begun;
2375
+ * IN_PROGRESS means amortization is underway; COMPLETED means amortization is
2376
+ * complete; ON_HOLD means amortization is paused. Null when not set.
2377
+ */
2378
+ status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
2379
+ /**
2380
+ * Amount already amortized as reported by the ERP, in the same currency as
2381
+ * total_amount. No currency conversion is applied; the schedule currency code is
2382
+ * not available in this response.
2383
+ */
2384
+ total_amortized_amount?: number;
2385
+ /**
2386
+ * Total schedule amount as reported by the ERP, without currency conversion. The
2387
+ * schedule currency code is not available in this response.
2388
+ */
2389
+ total_amount?: number;
2390
+ }
2391
+ /**
2392
+ * ERP amortization template for this line.
2393
+ */
2394
+ interface GlAmortizationTemplate {
2395
+ /**
2396
+ * Rippling ID of the accounting integration that owns this object. No public
2397
+ * Rippling API is currently available to retrieve this accounting integration.
2398
+ */
2399
+ accounting_integration_id?: string;
2400
+ /**
2401
+ * Object ID in the connected accounting system.
2402
+ */
2403
+ gl_object_id?: string;
2404
+ /**
2405
+ * Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
2406
+ * defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
2407
+ * GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
2408
+ * ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
2409
+ * accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
2410
+ * customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
2411
+ * when not set.
2412
+ */
2413
+ gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
2414
+ /**
2415
+ * Accounting object name.
2416
+ */
2417
+ name?: string;
2418
+ }
2419
+ /**
2420
+ * Prepaid asset account for Rippling-managed amortization.
2421
+ */
2422
+ interface PrepaidAccount {
2423
+ /**
2424
+ * Account ID in the connected accounting system.
2425
+ */
2426
+ account_id?: string;
2427
+ /**
2428
+ * Account code.
2429
+ */
2430
+ code?: string;
2431
+ /**
2432
+ * Account name.
2433
+ */
2434
+ name?: string;
2435
+ /**
2436
+ * IDs of custom dimensions required by this account.
2437
+ */
2438
+ required_custom_dimensions?: Array<string>;
2439
+ /**
2440
+ * Whether this account requires a department.
2441
+ */
2442
+ requires_department?: boolean;
2443
+ /**
2444
+ * Whether this account requires a work location.
2445
+ */
2446
+ requires_work_location?: boolean;
2447
+ /**
2448
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
2449
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
2450
+ * when not set.
2451
+ */
2452
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
2453
+ }
2454
+ /**
2455
+ * Total tax amount for this line in the merchant currency.
2456
+ */
2457
+ interface TaxAmount {
2458
+ /**
2459
+ * The currency type, ex: USD, EUR, etc.
2460
+ */
2461
+ currency_type?: string;
2462
+ /**
2463
+ * The decimal amount for the currency.
2464
+ */
2465
+ value?: number;
2466
+ }
2467
+ }
2468
+ /**
2469
+ * Amount charged by the merchant, in the merchant currency. The `value` is a
2470
+ * decimal string.
2471
+ */
2472
+ interface MerchantAmount {
2473
+ /**
2474
+ * The currency type, ex: USD, EUR, etc.
2475
+ */
2476
+ currency_type?: string;
2477
+ /**
2478
+ * The decimal amount for the currency.
2479
+ */
2480
+ value?: number;
2481
+ }
2482
+ /**
2483
+ * A receipt file attached to a card transaction.
2484
+ */
2485
+ interface Receipt {
2486
+ /**
2487
+ * URL of the original receipt file, such as the uploaded PDF. The link is signed
2488
+ * and expires, so fetch the transaction again for a current link instead of
2489
+ * storing it.
2490
+ */
2491
+ url: string;
2492
+ /**
2493
+ * MIME type of the receipt file, such as `application/pdf`. Null when it cannot be
2494
+ * determined.
2495
+ */
2496
+ content_type?: string | null;
2497
+ /**
2498
+ * Name of the receipt file. Null when it was not recorded.
2499
+ */
2500
+ file_name?: string | null;
2501
+ /**
2502
+ * URL of an image preview of the receipt. Null when the receipt is itself an image
2503
+ * or no preview is available. Like `url`, the link is signed and expires.
2504
+ */
2505
+ preview_url?: string | null;
2506
+ }
2507
+ /**
2508
+ * Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
2509
+ *
2510
+ * Expandable field
2511
+ */
2512
+ interface Vendor {
2513
+ /**
2514
+ * Identifier field
2515
+ */
2516
+ id: string;
2517
+ /**
2518
+ * Record creation date
2519
+ */
2520
+ created_at: string;
2521
+ /**
2522
+ * Record update date
2523
+ */
2524
+ updated_at: string;
2525
+ /**
2526
+ * Whether the vendor is archived. Archived vendors remain available for historical
2527
+ * references.
2528
+ */
2529
+ is_archived?: boolean;
2530
+ /**
2531
+ * URL of the vendor's logo. Null when no logo is available.
2532
+ */
2533
+ logo?: string;
2534
+ /**
2535
+ * Canonical name of the Finance vendor. Name eq, ne, and in filters also match
2536
+ * alternate names.
2537
+ */
2538
+ name?: string;
2539
+ }
2540
+ }
2541
+ export interface CardTransactionListParams {
2542
+ cursor?: string;
2543
+ expand?: string;
2544
+ filter?: string;
2545
+ /**
2546
+ * The maximum number of results to return. Defaults to 50. Maximum is 100.
2547
+ */
2548
+ limit?: number;
2549
+ order_by?: string;
1130
2550
  }
1131
2551
  export interface CardTransactionRetrieveParams {
1132
2552
  expand?: string;
1133
2553
  }
2554
+ export interface CardTransactionUpdateParams {
2555
+ /**
2556
+ * Category splits of the transaction amount. Updates replace the entire list.
2557
+ * `amount` and `tax_amount` are decimal strings in the merchant currency. The sum
2558
+ * of `amount` values must match the transaction's merchant amount.
2559
+ */
2560
+ line_items?: Array<CardTransactionUpdateParams.LineItem>;
2561
+ }
2562
+ export declare namespace CardTransactionUpdateParams {
2563
+ /**
2564
+ * PATCH body for a line item. `amount` and `tax_amount` are decimal strings, not
2565
+ * Currency objects.
2566
+ */
2567
+ interface LineItem {
2568
+ /**
2569
+ * Amount of this split, in the merchant currency, as a decimal string.
2570
+ */
2571
+ amount: string;
2572
+ /**
2573
+ * ID of the Finance category assigned to this split. Use it with
2574
+ * `/finance-categories/{id}/`.
2575
+ */
2576
+ category_id: string;
2577
+ /**
2578
+ * Optional. Omit to create a new line. Replacing `line_items` assigns new IDs; a
2579
+ * supplied `id` is not preserved.
2580
+ */
2581
+ id?: string;
2582
+ /**
2583
+ * Whether this line is amortized.
2584
+ */
2585
+ amortized?: boolean;
2586
+ /**
2587
+ * Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
2588
+ * `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
2589
+ * `/job-dimensions/` and `/job-dimensions/{id}/`. Each value is an ID:
2590
+ * `/departments/{id}/` for `DEPARTMENT`, `/work-locations/{id}/` for
2591
+ * `WORK_LOCATION`, and `/job-codes/{id}/` for a custom job dimension.
2592
+ */
2593
+ dimension_choices?: {
2594
+ [key: string]: string;
2595
+ };
2596
+ /**
2597
+ * End of the amortization period (YYYY-MM-DD).
2598
+ */
2599
+ end_date?: string;
2600
+ /**
2601
+ * ERP amortization template for this line.
2602
+ */
2603
+ gl_amortization_template?: LineItem.GlAmortizationTemplate;
2604
+ /**
2605
+ * Whether this split is billed to `gl_customer` in the accounting system.
2606
+ * `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
2607
+ * set.
2608
+ */
2609
+ gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
2610
+ /**
2611
+ * ID of the customer record in the connected accounting integration. No public
2612
+ * Rippling API is currently available to retrieve this accounting customer.
2613
+ */
2614
+ gl_customer?: string;
2615
+ /**
2616
+ * Rippling ID of the accounting tax code. No public Rippling API is currently
2617
+ * available to retrieve this accounting tax code.
2618
+ */
2619
+ gl_tax_code?: string;
2620
+ /**
2621
+ * Memo entered on this split.
2622
+ */
2623
+ memo?: string;
2624
+ /**
2625
+ * Prepaid asset account for Rippling-managed amortization.
2626
+ */
2627
+ prepaid_account?: LineItem.PrepaidAccount;
2628
+ /**
2629
+ * Start of the amortization period (YYYY-MM-DD).
2630
+ */
2631
+ start_date?: string;
2632
+ /**
2633
+ * Total tax amount for this line in the merchant currency, as a decimal string.
2634
+ */
2635
+ tax_amount?: string;
2636
+ }
2637
+ namespace LineItem {
2638
+ /**
2639
+ * ERP amortization template for this line.
2640
+ */
2641
+ interface GlAmortizationTemplate {
2642
+ /**
2643
+ * Rippling ID of the accounting integration that owns this template. No public
2644
+ * Rippling API is currently available to retrieve this accounting integration.
2645
+ */
2646
+ accounting_integration_id?: string;
2647
+ /**
2648
+ * Object ID of the amortization template in the connected accounting system.
2649
+ */
2650
+ gl_object_id?: string;
2651
+ /**
2652
+ * Amortization template name.
2653
+ */
2654
+ name?: string;
2655
+ }
2656
+ /**
2657
+ * Prepaid asset account for Rippling-managed amortization.
2658
+ */
2659
+ interface PrepaidAccount {
2660
+ /**
2661
+ * Account ID in the connected accounting system.
2662
+ */
2663
+ account_id?: string;
2664
+ /**
2665
+ * Account name.
2666
+ */
2667
+ name?: string;
2668
+ /**
2669
+ * Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
2670
+ * accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
2671
+ * when not set.
2672
+ */
2673
+ type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
2674
+ }
2675
+ }
2676
+ }
2677
+ export interface CardTransactionUploadReceiptParams {
2678
+ /**
2679
+ * The receipt file: PDF, JPEG, PNG, or BMP, up to 10 MB. The type is detected from
2680
+ * the file's contents.
2681
+ */
2682
+ file: Uploadable;
2683
+ }
1134
2684
  export declare namespace CardTransactions {
1135
- export { type CardTransactionListResponse as CardTransactionListResponse, type CardTransactionRetrieveResponse as CardTransactionRetrieveResponse, type CardTransactionListResponsesPageCursorURL as CardTransactionListResponsesPageCursorURL, type CardTransactionListParams as CardTransactionListParams, type CardTransactionRetrieveParams as CardTransactionRetrieveParams, };
2685
+ export { type CardTransactionListResponse as CardTransactionListResponse, type CardTransactionRetrieveResponse as CardTransactionRetrieveResponse, type CardTransactionUpdateResponse as CardTransactionUpdateResponse, type CardTransactionUploadReceiptResponse as CardTransactionUploadReceiptResponse, type CardTransactionListResponsesPageCursorURL as CardTransactionListResponsesPageCursorURL, type CardTransactionListParams as CardTransactionListParams, type CardTransactionRetrieveParams as CardTransactionRetrieveParams, type CardTransactionUpdateParams as CardTransactionUpdateParams, type CardTransactionUploadReceiptParams as CardTransactionUploadReceiptParams, };
1136
2686
  }
1137
2687
  //# sourceMappingURL=card-transactions.d.ts.map