@rippling/rippling-sdk 0.2.0-alpha.112 → 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.
- package/client.d.mts +41 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -8
- package/client.d.ts.map +1 -1
- package/client.js +35 -0
- package/client.js.map +1 -1
- package/client.mjs +35 -0
- package/client.mjs.map +1 -1
- package/lib/manifest/app.d.mts +20 -1
- package/lib/manifest/app.d.mts.map +1 -1
- package/lib/manifest/app.d.ts +20 -1
- package/lib/manifest/app.d.ts.map +1 -1
- package/lib/manifest/app.js +50 -0
- package/lib/manifest/app.js.map +1 -1
- package/lib/manifest/app.mjs +51 -1
- package/lib/manifest/app.mjs.map +1 -1
- package/lib/manifest/composition.d.mts +3 -0
- package/lib/manifest/composition.d.mts.map +1 -1
- package/lib/manifest/composition.d.ts +3 -0
- package/lib/manifest/composition.d.ts.map +1 -1
- package/lib/manifest/composition.js.map +1 -1
- package/lib/manifest/composition.mjs.map +1 -1
- package/lib/manifest/definitions/app.js +4 -1
- package/lib/manifest/definitions/app.js.map +1 -1
- package/lib/manifest/definitions/app.mjs +4 -1
- package/lib/manifest/definitions/app.mjs.map +1 -1
- package/lib/manifest/definitions/canvas-instance.d.mts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.js +31 -0
- package/lib/manifest/definitions/canvas-instance.js.map +1 -0
- package/lib/manifest/definitions/canvas-instance.mjs +28 -0
- package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
- package/lib/manifest/definitions/function.d.mts.map +1 -1
- package/lib/manifest/definitions/function.d.ts.map +1 -1
- package/lib/manifest/definitions/function.js +1 -0
- package/lib/manifest/definitions/function.js.map +1 -1
- package/lib/manifest/definitions/function.mjs +1 -0
- package/lib/manifest/definitions/function.mjs.map +1 -1
- package/lib/manifest/definitions/group.d.mts +64 -0
- package/lib/manifest/definitions/group.d.mts.map +1 -0
- package/lib/manifest/definitions/group.d.ts +64 -0
- package/lib/manifest/definitions/group.d.ts.map +1 -0
- package/lib/manifest/definitions/group.js +57 -0
- package/lib/manifest/definitions/group.js.map +1 -0
- package/lib/manifest/definitions/group.mjs +50 -0
- package/lib/manifest/definitions/group.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +5 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -1
- package/lib/manifest/definitions/index.d.ts +5 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -1
- package/lib/manifest/definitions/index.js +9 -1
- package/lib/manifest/definitions/index.js.map +1 -1
- package/lib/manifest/definitions/index.mjs +3 -0
- package/lib/manifest/definitions/index.mjs.map +1 -1
- package/lib/manifest/definitions/saved-super-group.d.mts +12 -0
- package/lib/manifest/definitions/saved-super-group.d.mts.map +1 -0
- package/lib/manifest/definitions/saved-super-group.d.ts +12 -0
- package/lib/manifest/definitions/saved-super-group.d.ts.map +1 -0
- package/lib/manifest/definitions/saved-super-group.js +26 -0
- package/lib/manifest/definitions/saved-super-group.js.map +1 -0
- package/lib/manifest/definitions/saved-super-group.mjs +21 -0
- package/lib/manifest/definitions/saved-super-group.mjs.map +1 -0
- package/lib/manifest/existing-manifest-context.d.mts +3 -0
- package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
- package/lib/manifest/existing-manifest-context.d.ts +3 -0
- package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
- package/lib/manifest/existing-manifest-context.js +15 -0
- package/lib/manifest/existing-manifest-context.js.map +1 -1
- package/lib/manifest/existing-manifest-context.mjs +15 -0
- package/lib/manifest/existing-manifest-context.mjs.map +1 -1
- package/lib/manifest/group.d.mts +83 -0
- package/lib/manifest/group.d.mts.map +1 -0
- package/lib/manifest/group.d.ts +83 -0
- package/lib/manifest/group.d.ts.map +1 -0
- package/lib/manifest/group.js +207 -0
- package/lib/manifest/group.js.map +1 -0
- package/lib/manifest/group.mjs +203 -0
- package/lib/manifest/group.mjs.map +1 -0
- package/lib/manifest/index.d.mts +2 -0
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +2 -0
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +5 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +2 -0
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/manifest-builder.d.mts +1 -1
- package/lib/manifest/manifest-builder.d.mts.map +1 -1
- package/lib/manifest/manifest-builder.d.ts +1 -1
- package/lib/manifest/manifest-builder.d.ts.map +1 -1
- package/lib/manifest/manifest-builder.js.map +1 -1
- package/lib/manifest/manifest-builder.mjs.map +1 -1
- package/lib/manifest/manifest-function.d.mts +16 -0
- package/lib/manifest/manifest-function.d.mts.map +1 -1
- package/lib/manifest/manifest-function.d.ts +16 -0
- package/lib/manifest/manifest-function.d.ts.map +1 -1
- package/lib/manifest/manifest-function.js +67 -0
- package/lib/manifest/manifest-function.js.map +1 -1
- package/lib/manifest/manifest-function.mjs +68 -1
- package/lib/manifest/manifest-function.mjs.map +1 -1
- package/lib/manifest/saved-super-group.d.mts +43 -0
- package/lib/manifest/saved-super-group.d.mts.map +1 -0
- package/lib/manifest/saved-super-group.d.ts +43 -0
- package/lib/manifest/saved-super-group.d.ts.map +1 -0
- package/lib/manifest/saved-super-group.js +136 -0
- package/lib/manifest/saved-super-group.js.map +1 -0
- package/lib/manifest/saved-super-group.mjs +132 -0
- package/lib/manifest/saved-super-group.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/application-submissions.d.mts +261 -0
- package/resources/application-submissions.d.mts.map +1 -0
- package/resources/application-submissions.d.ts +261 -0
- package/resources/application-submissions.d.ts.map +1 -0
- package/resources/application-submissions.js +112 -0
- package/resources/application-submissions.js.map +1 -0
- package/resources/application-submissions.mjs +108 -0
- package/resources/application-submissions.mjs.map +1 -0
- package/resources/bills.d.mts +913 -12
- package/resources/bills.d.mts.map +1 -1
- package/resources/bills.d.ts +913 -12
- package/resources/bills.d.ts.map +1 -1
- package/resources/bills.js +221 -0
- package/resources/bills.js.map +1 -1
- package/resources/bills.mjs +221 -0
- package/resources/bills.mjs.map +1 -1
- package/resources/candidate-applications.d.mts +247 -9
- package/resources/candidate-applications.d.mts.map +1 -1
- package/resources/candidate-applications.d.ts +247 -9
- package/resources/candidate-applications.d.ts.map +1 -1
- package/resources/candidate-applications.js +37 -5
- package/resources/candidate-applications.js.map +1 -1
- package/resources/candidate-applications.mjs +37 -5
- package/resources/candidate-applications.mjs.map +1 -1
- package/resources/card-transactions.d.mts +1580 -30
- package/resources/card-transactions.d.mts.map +1 -1
- package/resources/card-transactions.d.ts +1580 -30
- package/resources/card-transactions.d.ts.map +1 -1
- package/resources/card-transactions.js +404 -4
- package/resources/card-transactions.js.map +1 -1
- package/resources/card-transactions.mjs +404 -4
- package/resources/card-transactions.mjs.map +1 -1
- package/resources/custom-objects/custom-objects.d.mts +4 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +4 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +4 -0
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +4 -0
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +1 -0
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +1 -0
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/index.js +3 -1
- package/resources/custom-objects/index.js.map +1 -1
- package/resources/custom-objects/index.mjs +1 -0
- package/resources/custom-objects/index.mjs.map +1 -1
- package/resources/custom-objects/record-actions.d.mts +98 -0
- package/resources/custom-objects/record-actions.d.mts.map +1 -0
- package/resources/custom-objects/record-actions.d.ts +98 -0
- package/resources/custom-objects/record-actions.d.ts.map +1 -0
- package/resources/custom-objects/record-actions.js +58 -0
- package/resources/custom-objects/record-actions.js.map +1 -0
- package/resources/custom-objects/record-actions.mjs +54 -0
- package/resources/custom-objects/record-actions.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +14 -2
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +14 -2
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/earnings-inputs.js +14 -2
- package/resources/earnings-inputs.js.map +1 -1
- package/resources/earnings-inputs.mjs +14 -2
- package/resources/earnings-inputs.mjs.map +1 -1
- package/resources/index.d.mts +9 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-posts.d.mts +345 -0
- package/resources/job-posts.d.mts.map +1 -0
- package/resources/job-posts.d.ts +345 -0
- package/resources/job-posts.d.ts.map +1 -0
- package/resources/job-posts.js +110 -0
- package/resources/job-posts.js.map +1 -0
- package/resources/job-posts.mjs +106 -0
- package/resources/job-posts.mjs.map +1 -0
- package/resources/job-requisitions.d.mts +96 -4
- package/resources/job-requisitions.d.mts.map +1 -1
- package/resources/job-requisitions.d.ts +96 -4
- package/resources/job-requisitions.d.ts.map +1 -1
- package/resources/job-requisitions.js +64 -3
- package/resources/job-requisitions.js.map +1 -1
- package/resources/job-requisitions.mjs +64 -3
- package/resources/job-requisitions.mjs.map +1 -1
- package/resources/record-detail-related-records.d.mts +60 -30
- package/resources/record-detail-related-records.d.mts.map +1 -1
- package/resources/record-detail-related-records.d.ts +60 -30
- package/resources/record-detail-related-records.d.ts.map +1 -1
- package/resources/record-details.d.mts +120 -60
- package/resources/record-details.d.mts.map +1 -1
- package/resources/record-details.d.ts +120 -60
- package/resources/record-details.d.ts.map +1 -1
- package/resources/reimbursements.d.mts +1106 -64
- package/resources/reimbursements.d.mts.map +1 -1
- package/resources/reimbursements.d.ts +1106 -64
- package/resources/reimbursements.d.ts.map +1 -1
- package/resources/reimbursements.js +208 -0
- package/resources/reimbursements.js.map +1 -1
- package/resources/reimbursements.mjs +208 -0
- package/resources/reimbursements.mjs.map +1 -1
- package/resources/scheduled-payout-labels.d.mts +267 -0
- package/resources/scheduled-payout-labels.d.mts.map +1 -0
- package/resources/scheduled-payout-labels.d.ts +267 -0
- package/resources/scheduled-payout-labels.d.ts.map +1 -0
- package/resources/scheduled-payout-labels.js +151 -0
- package/resources/scheduled-payout-labels.js.map +1 -0
- package/resources/scheduled-payout-labels.mjs +147 -0
- package/resources/scheduled-payout-labels.mjs.map +1 -0
- package/resources/scheduled-payout-types.d.mts +680 -0
- package/resources/scheduled-payout-types.d.mts.map +1 -0
- package/resources/scheduled-payout-types.d.ts +680 -0
- package/resources/scheduled-payout-types.d.ts.map +1 -0
- package/resources/scheduled-payout-types.js +546 -0
- package/resources/scheduled-payout-types.js.map +1 -0
- package/resources/scheduled-payout-types.mjs +542 -0
- package/resources/scheduled-payout-types.mjs.map +1 -0
- package/resources/scheduled-payouts.d.mts +1588 -0
- package/resources/scheduled-payouts.d.mts.map +1 -0
- package/resources/scheduled-payouts.d.ts +1588 -0
- package/resources/scheduled-payouts.d.ts.map +1 -0
- package/resources/scheduled-payouts.js +582 -0
- package/resources/scheduled-payouts.js.map +1 -0
- package/resources/scheduled-payouts.mjs +578 -0
- package/resources/scheduled-payouts.mjs.map +1 -0
- package/src/client.ts +150 -0
- package/src/lib/manifest/app.ts +72 -2
- package/src/lib/manifest/composition.ts +8 -2
- package/src/lib/manifest/definitions/README.md +3 -1
- package/src/lib/manifest/definitions/app.ts +4 -1
- package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
- package/src/lib/manifest/definitions/function.ts +1 -0
- package/src/lib/manifest/definitions/group.ts +159 -0
- package/src/lib/manifest/definitions/index.ts +42 -0
- package/src/lib/manifest/definitions/saved-super-group.ts +28 -0
- package/src/lib/manifest/existing-manifest-context.ts +24 -0
- package/src/lib/manifest/group.ts +282 -0
- package/src/lib/manifest/index.ts +16 -0
- package/src/lib/manifest/manifest-builder.ts +2 -0
- package/src/lib/manifest/manifest-function.ts +91 -1
- package/src/lib/manifest/saved-super-group.ts +171 -0
- package/src/resources/application-submissions.ts +315 -0
- package/src/resources/bills.ts +1085 -12
- package/src/resources/candidate-applications.ts +282 -9
- package/src/resources/card-transactions.ts +1874 -32
- package/src/resources/custom-objects/custom-objects.ts +16 -0
- package/src/resources/custom-objects/index.ts +6 -0
- package/src/resources/custom-objects/record-actions.ts +125 -0
- package/src/resources/earnings-inputs.ts +14 -2
- package/src/resources/index.ts +57 -0
- package/src/resources/job-posts.ts +415 -0
- package/src/resources/job-requisitions.ts +110 -3
- package/src/resources/record-detail-related-records.ts +60 -30
- package/src/resources/record-details.ts +120 -60
- package/src/resources/reimbursements.ts +1299 -63
- package/src/resources/scheduled-payout-labels.ts +373 -0
- package/src/resources/scheduled-payout-types.ts +755 -0
- package/src/resources/scheduled-payouts.ts +1947 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,6 +3,7 @@ import * as BusinessPartnersAPI from "./business-partners.mjs";
|
|
|
3
3
|
import * as WorkersAPI from "./workers.mjs";
|
|
4
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
5
|
import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
|
|
6
|
+
import { type Uploadable } from "../core/uploads.mjs";
|
|
6
7
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
7
8
|
/**
|
|
8
9
|
* Expense reimbursements, including mileage and per diem
|
|
@@ -415,20 +416,1042 @@ export declare class Reimbursements extends APIResource {
|
|
|
415
416
|
* ```
|
|
416
417
|
*/
|
|
417
418
|
update(id: string, body?: ReimbursementUpdateParams | null | undefined, options?: RequestOptions): APIPromise<ReimbursementUpdateResponse>;
|
|
419
|
+
/**
|
|
420
|
+
* Send the receipt file as `multipart/form-data` in a `file` field. It is stored
|
|
421
|
+
* and attached in a single request, replacing the existing receipt, so a retried
|
|
422
|
+
* request does not add a second receipt. Reimbursements that are paid out,
|
|
423
|
+
* finalized, or failed cannot be changed.
|
|
424
|
+
*
|
|
425
|
+
* The receipt is attached without scanning or populating reimbursement fields from
|
|
426
|
+
* its contents. Returns the updated reimbursement in the same shape as
|
|
427
|
+
* `GET /reimbursements/{id}/`, with the new receipt in `receipt`. For a PDF,
|
|
428
|
+
* `receipt` is an image of its first page; the original PDF is not returned yet.
|
|
429
|
+
*
|
|
430
|
+
* @example HTTP
|
|
431
|
+
* Representative request and response shapes.
|
|
432
|
+
* ```
|
|
433
|
+
* POST /reimbursements/{id}/receipts/ HTTP/1.1
|
|
434
|
+
* Host: rest.ripplingapis.com
|
|
435
|
+
* Content-Type: multipart/form-data
|
|
436
|
+
* Accept: application/json
|
|
437
|
+
* Rippling-Api-Version: 2024-08-01
|
|
438
|
+
*
|
|
439
|
+
* <multipart form data>
|
|
440
|
+
*
|
|
441
|
+
* HTTP/1.1 200 OK
|
|
442
|
+
* Content-Type: application/json
|
|
443
|
+
*
|
|
444
|
+
* {
|
|
445
|
+
* "id": "string",
|
|
446
|
+
* "created_at": "string",
|
|
447
|
+
* "updated_at": "string",
|
|
448
|
+
* "worker_id": "string",
|
|
449
|
+
* "worker": {
|
|
450
|
+
* "id": "string",
|
|
451
|
+
* "created_at": "string",
|
|
452
|
+
* "updated_at": "string"
|
|
453
|
+
* },
|
|
454
|
+
* "company_amount": {},
|
|
455
|
+
* "merchant_amount": {
|
|
456
|
+
* "currency_type": "string",
|
|
457
|
+
* "value": 0
|
|
458
|
+
* },
|
|
459
|
+
* "accounting_date": "string",
|
|
460
|
+
* "gl_sync_state": "NOT_FINALIZED",
|
|
461
|
+
* "approval_status": "DRAFT",
|
|
462
|
+
* "entity_id": "string",
|
|
463
|
+
* "vendor": {
|
|
464
|
+
* "id": "string",
|
|
465
|
+
* "created_at": "string",
|
|
466
|
+
* "updated_at": "string",
|
|
467
|
+
* "name": "string",
|
|
468
|
+
* "logo": "string",
|
|
469
|
+
* "is_archived": false
|
|
470
|
+
* },
|
|
471
|
+
* "gl_vendor": {
|
|
472
|
+
* "id": "string",
|
|
473
|
+
* "name": "string",
|
|
474
|
+
* "gl_vendor_id": "string"
|
|
475
|
+
* },
|
|
476
|
+
* "memo": "string",
|
|
477
|
+
* "attachments": [
|
|
478
|
+
* {
|
|
479
|
+
* "url": "string",
|
|
480
|
+
* "file_name": "string",
|
|
481
|
+
* "uploaded_at": "string",
|
|
482
|
+
* "uploaded_by_id": "string"
|
|
483
|
+
* }
|
|
484
|
+
* ],
|
|
485
|
+
* "line_items": [
|
|
486
|
+
* {
|
|
487
|
+
* "gl_customer": "string",
|
|
488
|
+
* "gl_billable": "BILLABLE",
|
|
489
|
+
* "dimension_choices": {},
|
|
490
|
+
* "memo": "string",
|
|
491
|
+
* "gl_amortization_template": {
|
|
492
|
+
* "gl_object_id": "string",
|
|
493
|
+
* "accounting_integration_id": "string",
|
|
494
|
+
* "name": "string",
|
|
495
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
|
|
496
|
+
* },
|
|
497
|
+
* "amortized": false,
|
|
498
|
+
* "start_date": "string",
|
|
499
|
+
* "end_date": "string",
|
|
500
|
+
* "prepaid_account": {
|
|
501
|
+
* "account_id": "string",
|
|
502
|
+
* "name": "string",
|
|
503
|
+
* "code": "string",
|
|
504
|
+
* "type": "RECEIVABLE",
|
|
505
|
+
* "required_custom_dimensions": [],
|
|
506
|
+
* "requires_department": "string",
|
|
507
|
+
* "requires_work_location": "string"
|
|
508
|
+
* },
|
|
509
|
+
* "gl_amortization_schedule": {
|
|
510
|
+
* "gl_object_id": "string",
|
|
511
|
+
* "accounting_integration_id": "string",
|
|
512
|
+
* "name": "string",
|
|
513
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
|
|
514
|
+
* "start_date": "string",
|
|
515
|
+
* "end_date": "string",
|
|
516
|
+
* "total_amount": "string",
|
|
517
|
+
* "total_amortized_amount": "string",
|
|
518
|
+
* "amortization_period": "string",
|
|
519
|
+
* "status": "NOT_STARTED"
|
|
520
|
+
* },
|
|
521
|
+
* "gl_tax_code": "string",
|
|
522
|
+
* "id": "string",
|
|
523
|
+
* "category_id": "string",
|
|
524
|
+
* "category_name": "string",
|
|
525
|
+
* "amount": {
|
|
526
|
+
* "currency_type": "string",
|
|
527
|
+
* "value": "string"
|
|
528
|
+
* },
|
|
529
|
+
* "tax_amount": {
|
|
530
|
+
* "currency_type": "string",
|
|
531
|
+
* "value": "string"
|
|
532
|
+
* }
|
|
533
|
+
* }
|
|
534
|
+
* ],
|
|
535
|
+
* "vendor_id": "string",
|
|
536
|
+
* "transaction_date": "string",
|
|
537
|
+
* "receipt": {
|
|
538
|
+
* "url": "string",
|
|
539
|
+
* "file_name": "string"
|
|
540
|
+
* },
|
|
541
|
+
* "transaction_type": "REIMBURSEMENT",
|
|
542
|
+
* "payout_amount": {
|
|
543
|
+
* "currency_type": "string",
|
|
544
|
+
* "value": 0
|
|
545
|
+
* },
|
|
546
|
+
* "payout_method": "NOT_SET",
|
|
547
|
+
* "payout_date": "string",
|
|
548
|
+
* "distance": 0,
|
|
549
|
+
* "mileage_rate_id": "string",
|
|
550
|
+
* "mileage_rate": {
|
|
551
|
+
* "id": "string",
|
|
552
|
+
* "created_at": "string",
|
|
553
|
+
* "updated_at": "string",
|
|
554
|
+
* "name": "string",
|
|
555
|
+
* "rate": {
|
|
556
|
+
* "currency_type": "string",
|
|
557
|
+
* "value": 0
|
|
558
|
+
* },
|
|
559
|
+
* "units": "km",
|
|
560
|
+
* "start_date": "string",
|
|
561
|
+
* "end_date": "string",
|
|
562
|
+
* "country": "string",
|
|
563
|
+
* "half_cent": false
|
|
564
|
+
* },
|
|
565
|
+
* "start_location": {
|
|
566
|
+
* "address": "string",
|
|
567
|
+
* "coordinates": {
|
|
568
|
+
* "latitude": 0,
|
|
569
|
+
* "longitude": 0
|
|
570
|
+
* }
|
|
571
|
+
* },
|
|
572
|
+
* "end_location": {
|
|
573
|
+
* "address": "string",
|
|
574
|
+
* "coordinates": {
|
|
575
|
+
* "latitude": 0,
|
|
576
|
+
* "longitude": 0
|
|
577
|
+
* }
|
|
578
|
+
* },
|
|
579
|
+
* "waypoints": [
|
|
580
|
+
* {
|
|
581
|
+
* "address": "string",
|
|
582
|
+
* "coordinates": {
|
|
583
|
+
* "latitude": "string",
|
|
584
|
+
* "longitude": "string"
|
|
585
|
+
* }
|
|
586
|
+
* }
|
|
587
|
+
* ],
|
|
588
|
+
* "trip_start_date": "string",
|
|
589
|
+
* "trip_end_date": "string",
|
|
590
|
+
* "per_diem_rate_id": "string",
|
|
591
|
+
* "per_diem_rate": {
|
|
592
|
+
* "id": "string",
|
|
593
|
+
* "created_at": "string",
|
|
594
|
+
* "updated_at": "string",
|
|
595
|
+
* "destination_name": "string",
|
|
596
|
+
* "country": "string",
|
|
597
|
+
* "currency": "string",
|
|
598
|
+
* "start_date": "string",
|
|
599
|
+
* "end_date": "string",
|
|
600
|
+
* "is_current": false,
|
|
601
|
+
* "is_archived": false
|
|
602
|
+
* },
|
|
603
|
+
* "per_diem_line_items": [
|
|
604
|
+
* {
|
|
605
|
+
* "sub_rate_id": "string",
|
|
606
|
+
* "sub_rate_type": "FULL_DAY",
|
|
607
|
+
* "label": "string",
|
|
608
|
+
* "amount": {
|
|
609
|
+
* "currency_type": "string",
|
|
610
|
+
* "value": "string"
|
|
611
|
+
* },
|
|
612
|
+
* "count": 0,
|
|
613
|
+
* "line_type": "INCLUDE",
|
|
614
|
+
* "calculated_amount": {
|
|
615
|
+
* "currency_type": "string",
|
|
616
|
+
* "value": "string"
|
|
617
|
+
* }
|
|
618
|
+
* }
|
|
619
|
+
* ]
|
|
620
|
+
* }
|
|
621
|
+
* ```
|
|
622
|
+
*/
|
|
623
|
+
uploadReceipt(id: string, body: ReimbursementUploadReceiptParams, options?: RequestOptions): APIPromise<ReimbursementUploadReceiptResponse>;
|
|
624
|
+
}
|
|
625
|
+
export type ReimbursementListResponsesPageCursorURL = PageCursorURL<ReimbursementListResponse>;
|
|
626
|
+
/**
|
|
627
|
+
* A Finance reimbursement the caller can see.
|
|
628
|
+
*
|
|
629
|
+
* A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
|
|
630
|
+
* use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
|
|
631
|
+
* Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
|
|
632
|
+
* that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
|
|
633
|
+
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
634
|
+
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
635
|
+
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
636
|
+
*/
|
|
637
|
+
export interface ReimbursementListResponse {
|
|
638
|
+
/**
|
|
639
|
+
* Identifier field
|
|
640
|
+
*/
|
|
641
|
+
id: string;
|
|
642
|
+
/**
|
|
643
|
+
* Record creation date
|
|
644
|
+
*/
|
|
645
|
+
created_at: string;
|
|
646
|
+
/**
|
|
647
|
+
* Record update date
|
|
648
|
+
*/
|
|
649
|
+
updated_at: string;
|
|
650
|
+
/**
|
|
651
|
+
* Date the transaction is booked in the accounting system, as an ISO 8601 date
|
|
652
|
+
* (YYYY-MM-DD).
|
|
653
|
+
*/
|
|
654
|
+
accounting_date?: string;
|
|
655
|
+
/**
|
|
656
|
+
* Approval status of the transaction. `DRAFT`: not submitted for approval.
|
|
657
|
+
* `PENDING`: awaiting required information or submission before approval.
|
|
658
|
+
* `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
|
|
659
|
+
* rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
|
|
660
|
+
* reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
|
|
661
|
+
* for card authorizations.
|
|
662
|
+
*/
|
|
663
|
+
approval_status?: 'DRAFT' | 'PENDING' | 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'FINALIZED' | 'ACTIONED' | 'CANCELLED' | 'FAILED';
|
|
664
|
+
/**
|
|
665
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
666
|
+
*/
|
|
667
|
+
attachments?: Array<ReimbursementListResponse.Attachment>;
|
|
668
|
+
/**
|
|
669
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
670
|
+
*/
|
|
671
|
+
company_amount?: ReimbursementListResponse.CompanyAmount;
|
|
672
|
+
/**
|
|
673
|
+
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
674
|
+
*/
|
|
675
|
+
distance?: number;
|
|
676
|
+
/**
|
|
677
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
678
|
+
*/
|
|
679
|
+
end_location?: ReimbursementListResponse.EndLocation;
|
|
680
|
+
/**
|
|
681
|
+
* ID of the legal entity the transaction belongs to. Use it with
|
|
682
|
+
* `/company-legal-entities/{id}/`.
|
|
683
|
+
*/
|
|
684
|
+
entity_id?: string;
|
|
685
|
+
/**
|
|
686
|
+
* State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
|
|
687
|
+
* accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
|
|
688
|
+
* sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
|
|
689
|
+
* failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
|
|
690
|
+
* accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
|
|
691
|
+
* be synced automatically. Null when no sync state is set.
|
|
692
|
+
*/
|
|
693
|
+
gl_sync_state?: 'NOT_FINALIZED' | 'FOR_REVIEW' | 'PENDING_SYNC' | 'SYNCED' | 'ERROR' | 'DO_NOT_SYNC' | 'EXPORTED' | 'NOT_SYNCABLE' | 'AUTO_SYNC';
|
|
694
|
+
/**
|
|
695
|
+
* Vendor in the connected accounting system.
|
|
696
|
+
*/
|
|
697
|
+
gl_vendor?: ReimbursementListResponse.GlVendor;
|
|
698
|
+
/**
|
|
699
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
700
|
+
*/
|
|
701
|
+
line_items?: Array<ReimbursementListResponse.LineItem>;
|
|
702
|
+
/**
|
|
703
|
+
* Memo entered on the transaction.
|
|
704
|
+
*/
|
|
705
|
+
memo?: string;
|
|
706
|
+
/**
|
|
707
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
708
|
+
* decimal string.
|
|
709
|
+
*/
|
|
710
|
+
merchant_amount?: ReimbursementListResponse.MerchantAmount;
|
|
711
|
+
/**
|
|
712
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
713
|
+
* `reimbursements.read`.
|
|
714
|
+
*
|
|
715
|
+
* Expandable field
|
|
716
|
+
*/
|
|
717
|
+
mileage_rate?: ReimbursementListResponse.MileageRate;
|
|
718
|
+
/**
|
|
719
|
+
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
720
|
+
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
721
|
+
* there is no standalone rate lookup endpoint.
|
|
722
|
+
*/
|
|
723
|
+
mileage_rate_id?: string;
|
|
724
|
+
/**
|
|
725
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
726
|
+
*/
|
|
727
|
+
payout_amount?: ReimbursementListResponse.PayoutAmount;
|
|
728
|
+
/**
|
|
729
|
+
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
730
|
+
* assigned.
|
|
731
|
+
*/
|
|
732
|
+
payout_date?: string;
|
|
733
|
+
/**
|
|
734
|
+
* How the worker is paid. `NOT_SET`: no payout run is assigned. `US_PAYROLL`:
|
|
735
|
+
* assigned to a US payroll run. `GLOBAL_PAYROLL`: assigned to a global payroll
|
|
736
|
+
* run. `DIRECT_DEPOSIT`: assigned to a direct deposit run. `EOR`: assigned to an
|
|
737
|
+
* employer-of-record payroll run. `MANUAL`: marked paid outside a run. If a payout
|
|
738
|
+
* method override is set, it is returned.
|
|
739
|
+
*/
|
|
740
|
+
payout_method?: 'NOT_SET' | 'GLOBAL_PAYROLL' | 'US_PAYROLL' | 'DIRECT_DEPOSIT' | 'EOR' | 'MANUAL';
|
|
741
|
+
/**
|
|
742
|
+
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
743
|
+
*/
|
|
744
|
+
per_diem_line_items?: Array<ReimbursementListResponse.PerDiemLineItem>;
|
|
745
|
+
/**
|
|
746
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
747
|
+
* `reimbursements.read`.
|
|
748
|
+
*
|
|
749
|
+
* Expandable field
|
|
750
|
+
*/
|
|
751
|
+
per_diem_rate?: ReimbursementListResponse.PerDiemRate;
|
|
752
|
+
/**
|
|
753
|
+
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
754
|
+
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
755
|
+
* is no standalone rate lookup endpoint.
|
|
756
|
+
*/
|
|
757
|
+
per_diem_rate_id?: string;
|
|
758
|
+
/**
|
|
759
|
+
* Receipt file and its filename.
|
|
760
|
+
*/
|
|
761
|
+
receipt?: ReimbursementListResponse.Receipt;
|
|
762
|
+
/**
|
|
763
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
764
|
+
*/
|
|
765
|
+
start_location?: ReimbursementListResponse.StartLocation;
|
|
766
|
+
/**
|
|
767
|
+
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
768
|
+
*/
|
|
769
|
+
transaction_date?: string;
|
|
770
|
+
/**
|
|
771
|
+
* `REIMBURSEMENT`: an expense the worker paid and the company pays back.
|
|
772
|
+
* `MILEAGE_REIMBURSEMENT`: payback for distance driven. `PER_DIEM_REIMBURSEMENT`:
|
|
773
|
+
* payback for a daily travel allowance. This decides which mileage or per diem
|
|
774
|
+
* fields are set.
|
|
775
|
+
*/
|
|
776
|
+
transaction_type?: 'REIMBURSEMENT' | 'MILEAGE_REIMBURSEMENT' | 'PER_DIEM_REIMBURSEMENT';
|
|
777
|
+
/**
|
|
778
|
+
* Per diem trip end date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
|
|
779
|
+
* diem reimbursements.
|
|
780
|
+
*/
|
|
781
|
+
trip_end_date?: string;
|
|
782
|
+
/**
|
|
783
|
+
* Per diem trip start date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
|
|
784
|
+
* diem reimbursements.
|
|
785
|
+
*/
|
|
786
|
+
trip_start_date?: string;
|
|
787
|
+
/**
|
|
788
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
789
|
+
*
|
|
790
|
+
* Expandable field
|
|
791
|
+
*/
|
|
792
|
+
vendor?: ReimbursementListResponse.Vendor;
|
|
793
|
+
/**
|
|
794
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
795
|
+
*/
|
|
796
|
+
vendor_id?: string;
|
|
797
|
+
/**
|
|
798
|
+
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
799
|
+
* except on mileage reimbursements.
|
|
800
|
+
*/
|
|
801
|
+
waypoints?: Array<ReimbursementListResponse.Waypoint>;
|
|
802
|
+
/**
|
|
803
|
+
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
804
|
+
*
|
|
805
|
+
* Expandable field
|
|
806
|
+
*/
|
|
807
|
+
worker?: WorkersAPI.Worker;
|
|
808
|
+
/**
|
|
809
|
+
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
810
|
+
*/
|
|
811
|
+
worker_id?: string;
|
|
812
|
+
}
|
|
813
|
+
export declare namespace ReimbursementListResponse {
|
|
814
|
+
/**
|
|
815
|
+
* A Finance transaction attachment with recorded upload details.
|
|
816
|
+
*/
|
|
817
|
+
interface Attachment {
|
|
818
|
+
/**
|
|
819
|
+
* URL for accessing the file.
|
|
820
|
+
*/
|
|
821
|
+
url: string;
|
|
822
|
+
/**
|
|
823
|
+
* Original file name, when recorded.
|
|
824
|
+
*/
|
|
825
|
+
file_name?: string;
|
|
826
|
+
/**
|
|
827
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
828
|
+
* recorded.
|
|
829
|
+
*/
|
|
830
|
+
uploaded_at?: string;
|
|
831
|
+
/**
|
|
832
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
833
|
+
*/
|
|
834
|
+
uploaded_by_id?: string;
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
838
|
+
*/
|
|
839
|
+
interface CompanyAmount {
|
|
840
|
+
/**
|
|
841
|
+
* The currency type, ex: USD, EUR, etc.
|
|
842
|
+
*/
|
|
843
|
+
currency_type?: string;
|
|
844
|
+
/**
|
|
845
|
+
* The decimal amount for the currency.
|
|
846
|
+
*/
|
|
847
|
+
value?: number;
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
851
|
+
*/
|
|
852
|
+
interface EndLocation {
|
|
853
|
+
/**
|
|
854
|
+
* Address of this point. Null when the point has no address.
|
|
855
|
+
*/
|
|
856
|
+
address?: string;
|
|
857
|
+
/**
|
|
858
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
859
|
+
* has no coordinates.
|
|
860
|
+
*/
|
|
861
|
+
coordinates?: EndLocation.Coordinates;
|
|
862
|
+
}
|
|
863
|
+
namespace EndLocation {
|
|
864
|
+
/**
|
|
865
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
866
|
+
* has no coordinates.
|
|
867
|
+
*/
|
|
868
|
+
interface Coordinates {
|
|
869
|
+
/**
|
|
870
|
+
* Latitude of this point, in decimal degrees.
|
|
871
|
+
*/
|
|
872
|
+
latitude?: number;
|
|
873
|
+
/**
|
|
874
|
+
* Longitude of this point, in decimal degrees.
|
|
875
|
+
*/
|
|
876
|
+
longitude?: number;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Vendor in the connected accounting system.
|
|
881
|
+
*/
|
|
882
|
+
interface GlVendor {
|
|
883
|
+
/**
|
|
884
|
+
* ID of the accounting vendor in Rippling.
|
|
885
|
+
*/
|
|
886
|
+
id?: string;
|
|
887
|
+
/**
|
|
888
|
+
* ID of the vendor in the accounting system.
|
|
889
|
+
*/
|
|
890
|
+
gl_vendor_id?: string;
|
|
891
|
+
/**
|
|
892
|
+
* Name of the vendor in the accounting system.
|
|
893
|
+
*/
|
|
894
|
+
name?: string;
|
|
895
|
+
}
|
|
896
|
+
interface LineItem {
|
|
897
|
+
/**
|
|
898
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
899
|
+
* been assigned one yet.
|
|
900
|
+
*/
|
|
901
|
+
id?: string;
|
|
902
|
+
/**
|
|
903
|
+
* Whether this line is amortized.
|
|
904
|
+
*/
|
|
905
|
+
amortized?: boolean;
|
|
906
|
+
/**
|
|
907
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
908
|
+
*/
|
|
909
|
+
amount?: LineItem.Amount;
|
|
910
|
+
/**
|
|
911
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
912
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
913
|
+
*/
|
|
914
|
+
category_id?: string;
|
|
915
|
+
/**
|
|
916
|
+
* Name of the finance category.
|
|
917
|
+
*/
|
|
918
|
+
category_name?: string;
|
|
919
|
+
/**
|
|
920
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
921
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
922
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
923
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
924
|
+
*/
|
|
925
|
+
dimension_choices?: {
|
|
926
|
+
[key: string]: LineItem.DimensionChoices;
|
|
927
|
+
};
|
|
928
|
+
/**
|
|
929
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
930
|
+
*/
|
|
931
|
+
end_date?: string;
|
|
932
|
+
/**
|
|
933
|
+
* ERP amortization schedule associated with this line.
|
|
934
|
+
*/
|
|
935
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
936
|
+
/**
|
|
937
|
+
* ERP amortization template for this line.
|
|
938
|
+
*/
|
|
939
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
940
|
+
/**
|
|
941
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
942
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
943
|
+
* set.
|
|
944
|
+
*/
|
|
945
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
946
|
+
/**
|
|
947
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
948
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
949
|
+
*/
|
|
950
|
+
gl_customer?: string;
|
|
951
|
+
/**
|
|
952
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
953
|
+
* available to retrieve this accounting tax code.
|
|
954
|
+
*/
|
|
955
|
+
gl_tax_code?: string;
|
|
956
|
+
/**
|
|
957
|
+
* Memo entered on this split.
|
|
958
|
+
*/
|
|
959
|
+
memo?: string;
|
|
960
|
+
/**
|
|
961
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
962
|
+
*/
|
|
963
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
964
|
+
/**
|
|
965
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
966
|
+
*/
|
|
967
|
+
start_date?: string;
|
|
968
|
+
/**
|
|
969
|
+
* Total tax amount for this line in the merchant currency.
|
|
970
|
+
*/
|
|
971
|
+
tax_amount?: LineItem.TaxAmount;
|
|
972
|
+
}
|
|
973
|
+
namespace LineItem {
|
|
974
|
+
/**
|
|
975
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
976
|
+
*/
|
|
977
|
+
interface Amount {
|
|
978
|
+
/**
|
|
979
|
+
* The currency type, ex: USD, EUR, etc.
|
|
980
|
+
*/
|
|
981
|
+
currency_type?: string;
|
|
982
|
+
/**
|
|
983
|
+
* The decimal amount for the currency.
|
|
984
|
+
*/
|
|
985
|
+
value?: number;
|
|
986
|
+
}
|
|
987
|
+
interface DimensionChoices {
|
|
988
|
+
/**
|
|
989
|
+
* Name of the dimension, such as Department.
|
|
990
|
+
*/
|
|
991
|
+
dimension_name?: string;
|
|
992
|
+
/**
|
|
993
|
+
* Display name of the selected dimension value.
|
|
994
|
+
*/
|
|
995
|
+
label?: string;
|
|
996
|
+
/**
|
|
997
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
998
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
999
|
+
* `/job-codes/{id}/`.
|
|
1000
|
+
*/
|
|
1001
|
+
value?: string;
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* ERP amortization schedule associated with this line.
|
|
1005
|
+
*/
|
|
1006
|
+
interface GlAmortizationSchedule {
|
|
1007
|
+
/**
|
|
1008
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
1009
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
1010
|
+
*/
|
|
1011
|
+
accounting_integration_id?: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* Number of amortization periods.
|
|
1014
|
+
*/
|
|
1015
|
+
amortization_period?: number;
|
|
1016
|
+
/**
|
|
1017
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
1018
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
1019
|
+
* indicate UTC. Null when not set.
|
|
1020
|
+
*/
|
|
1021
|
+
end_date?: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* Object ID in the connected accounting system.
|
|
1024
|
+
*/
|
|
1025
|
+
gl_object_id?: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
1028
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
1029
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
1030
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
1031
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
1032
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
1033
|
+
* when not set.
|
|
1034
|
+
*/
|
|
1035
|
+
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';
|
|
1036
|
+
/**
|
|
1037
|
+
* Accounting object name.
|
|
1038
|
+
*/
|
|
1039
|
+
name?: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
1042
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
1043
|
+
* indicate UTC. Null when not set.
|
|
1044
|
+
*/
|
|
1045
|
+
start_date?: string;
|
|
1046
|
+
/**
|
|
1047
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
1048
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
1049
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
1050
|
+
*/
|
|
1051
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
1052
|
+
/**
|
|
1053
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
1054
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
1055
|
+
* not available in this response.
|
|
1056
|
+
*/
|
|
1057
|
+
total_amortized_amount?: number;
|
|
1058
|
+
/**
|
|
1059
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
1060
|
+
* schedule currency code is not available in this response.
|
|
1061
|
+
*/
|
|
1062
|
+
total_amount?: number;
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* ERP amortization template for this line.
|
|
1066
|
+
*/
|
|
1067
|
+
interface GlAmortizationTemplate {
|
|
1068
|
+
/**
|
|
1069
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
1070
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
1071
|
+
*/
|
|
1072
|
+
accounting_integration_id?: string;
|
|
1073
|
+
/**
|
|
1074
|
+
* Object ID in the connected accounting system.
|
|
1075
|
+
*/
|
|
1076
|
+
gl_object_id?: string;
|
|
1077
|
+
/**
|
|
1078
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
1079
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
1080
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
1081
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
1082
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
1083
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
1084
|
+
* when not set.
|
|
1085
|
+
*/
|
|
1086
|
+
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';
|
|
1087
|
+
/**
|
|
1088
|
+
* Accounting object name.
|
|
1089
|
+
*/
|
|
1090
|
+
name?: string;
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
1094
|
+
*/
|
|
1095
|
+
interface PrepaidAccount {
|
|
1096
|
+
/**
|
|
1097
|
+
* Account ID in the connected accounting system.
|
|
1098
|
+
*/
|
|
1099
|
+
account_id?: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* Account code.
|
|
1102
|
+
*/
|
|
1103
|
+
code?: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* Account name.
|
|
1106
|
+
*/
|
|
1107
|
+
name?: string;
|
|
1108
|
+
/**
|
|
1109
|
+
* IDs of custom dimensions required by this account.
|
|
1110
|
+
*/
|
|
1111
|
+
required_custom_dimensions?: Array<string>;
|
|
1112
|
+
/**
|
|
1113
|
+
* Whether this account requires a department.
|
|
1114
|
+
*/
|
|
1115
|
+
requires_department?: boolean;
|
|
1116
|
+
/**
|
|
1117
|
+
* Whether this account requires a work location.
|
|
1118
|
+
*/
|
|
1119
|
+
requires_work_location?: boolean;
|
|
1120
|
+
/**
|
|
1121
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
1122
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
1123
|
+
* when not set.
|
|
1124
|
+
*/
|
|
1125
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Total tax amount for this line in the merchant currency.
|
|
1129
|
+
*/
|
|
1130
|
+
interface TaxAmount {
|
|
1131
|
+
/**
|
|
1132
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1133
|
+
*/
|
|
1134
|
+
currency_type?: string;
|
|
1135
|
+
/**
|
|
1136
|
+
* The decimal amount for the currency.
|
|
1137
|
+
*/
|
|
1138
|
+
value?: number;
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
1143
|
+
* decimal string.
|
|
1144
|
+
*/
|
|
1145
|
+
interface MerchantAmount {
|
|
1146
|
+
/**
|
|
1147
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1148
|
+
*/
|
|
1149
|
+
currency_type?: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* The decimal amount for the currency.
|
|
1152
|
+
*/
|
|
1153
|
+
value?: number;
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
1157
|
+
* `reimbursements.read`.
|
|
1158
|
+
*
|
|
1159
|
+
* Expandable field
|
|
1160
|
+
*/
|
|
1161
|
+
interface MileageRate {
|
|
1162
|
+
/**
|
|
1163
|
+
* Company mileage rate ID.
|
|
1164
|
+
*/
|
|
1165
|
+
id: string;
|
|
1166
|
+
/**
|
|
1167
|
+
* When the mileage rate was created, as an ISO 8601 date-time in UTC.
|
|
1168
|
+
*/
|
|
1169
|
+
created_at: string;
|
|
1170
|
+
/**
|
|
1171
|
+
* When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
|
|
1172
|
+
*/
|
|
1173
|
+
updated_at: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1176
|
+
*/
|
|
1177
|
+
country?: string;
|
|
1178
|
+
/**
|
|
1179
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1180
|
+
*/
|
|
1181
|
+
end_date?: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* Whether an additional half cent per distance unit applies.
|
|
1184
|
+
*/
|
|
1185
|
+
half_cent?: boolean;
|
|
1186
|
+
/**
|
|
1187
|
+
* Company-defined label for this mileage rate, such as the rate used for a country
|
|
1188
|
+
* or vehicle type.
|
|
1189
|
+
*/
|
|
1190
|
+
name?: string;
|
|
1191
|
+
/**
|
|
1192
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
1193
|
+
*/
|
|
1194
|
+
rate?: MileageRate.Rate;
|
|
1195
|
+
/**
|
|
1196
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1197
|
+
*/
|
|
1198
|
+
start_date?: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* Distance unit, mi or km.
|
|
1201
|
+
*/
|
|
1202
|
+
units?: 'km' | 'mi';
|
|
1203
|
+
}
|
|
1204
|
+
namespace MileageRate {
|
|
1205
|
+
/**
|
|
1206
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
1207
|
+
*/
|
|
1208
|
+
interface Rate {
|
|
1209
|
+
/**
|
|
1210
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1211
|
+
*/
|
|
1212
|
+
currency_type?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* The decimal amount for the currency.
|
|
1215
|
+
*/
|
|
1216
|
+
value?: number;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
1221
|
+
*/
|
|
1222
|
+
interface PayoutAmount {
|
|
1223
|
+
/**
|
|
1224
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1225
|
+
*/
|
|
1226
|
+
currency_type?: string;
|
|
1227
|
+
/**
|
|
1228
|
+
* The decimal amount for the currency.
|
|
1229
|
+
*/
|
|
1230
|
+
value?: number;
|
|
1231
|
+
}
|
|
1232
|
+
interface PerDiemLineItem {
|
|
1233
|
+
/**
|
|
1234
|
+
* Sub-rate amount for one unit. The `value` is a decimal string.
|
|
1235
|
+
*/
|
|
1236
|
+
amount?: PerDiemLineItem.Amount;
|
|
1237
|
+
/**
|
|
1238
|
+
* amount times count. The `value` is a decimal string. Negative when line_type is
|
|
1239
|
+
* EXCLUDE.
|
|
1240
|
+
*/
|
|
1241
|
+
calculated_amount?: PerDiemLineItem.CalculatedAmount;
|
|
1242
|
+
/**
|
|
1243
|
+
* How many units.
|
|
1244
|
+
*/
|
|
1245
|
+
count?: number;
|
|
1246
|
+
/**
|
|
1247
|
+
* Sub-rate label.
|
|
1248
|
+
*/
|
|
1249
|
+
label?: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* `INCLUDE`: this row is added to the reimbursement. `EXCLUDE`: this row is
|
|
1252
|
+
* subtracted. `calculated_amount.value` is negative when excluded.
|
|
1253
|
+
*/
|
|
1254
|
+
line_type?: 'INCLUDE' | 'EXCLUDE';
|
|
1255
|
+
/**
|
|
1256
|
+
* Per diem sub-rate ID.
|
|
1257
|
+
*/
|
|
1258
|
+
sub_rate_id?: string;
|
|
1259
|
+
/**
|
|
1260
|
+
* `FULL_DAY`: the full daily allowance. `MEALS`: the meals portion of the daily
|
|
1261
|
+
* allowance. `OTHERS`: an allowance that is not the full day or meals.
|
|
1262
|
+
*/
|
|
1263
|
+
sub_rate_type?: 'FULL_DAY' | 'MEALS' | 'OTHERS';
|
|
1264
|
+
}
|
|
1265
|
+
namespace PerDiemLineItem {
|
|
1266
|
+
/**
|
|
1267
|
+
* Sub-rate amount for one unit. The `value` is a decimal string.
|
|
1268
|
+
*/
|
|
1269
|
+
interface Amount {
|
|
1270
|
+
/**
|
|
1271
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1272
|
+
*/
|
|
1273
|
+
currency_type?: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* The decimal amount for the currency.
|
|
1276
|
+
*/
|
|
1277
|
+
value?: number;
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* amount times count. The `value` is a decimal string. Negative when line_type is
|
|
1281
|
+
* EXCLUDE.
|
|
1282
|
+
*/
|
|
1283
|
+
interface CalculatedAmount {
|
|
1284
|
+
/**
|
|
1285
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1286
|
+
*/
|
|
1287
|
+
currency_type?: string;
|
|
1288
|
+
/**
|
|
1289
|
+
* The decimal amount for the currency.
|
|
1290
|
+
*/
|
|
1291
|
+
value?: number;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
1296
|
+
* `reimbursements.read`.
|
|
1297
|
+
*
|
|
1298
|
+
* Expandable field
|
|
1299
|
+
*/
|
|
1300
|
+
interface PerDiemRate {
|
|
1301
|
+
/**
|
|
1302
|
+
* Per diem rate ID.
|
|
1303
|
+
*/
|
|
1304
|
+
id: string;
|
|
1305
|
+
/**
|
|
1306
|
+
* When the per diem rate was created, as an ISO 8601 date-time in UTC.
|
|
1307
|
+
*/
|
|
1308
|
+
created_at: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
|
|
1311
|
+
*/
|
|
1312
|
+
updated_at: string;
|
|
1313
|
+
/**
|
|
1314
|
+
* Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
|
|
1315
|
+
* US.
|
|
1316
|
+
*/
|
|
1317
|
+
country?: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* Currency of the per diem rate, as an ISO 4217 code. Example: USD.
|
|
1320
|
+
*/
|
|
1321
|
+
currency?: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* Place this per diem rate applies to, such as a city.
|
|
1324
|
+
*/
|
|
1325
|
+
destination_name?: string;
|
|
1326
|
+
/**
|
|
1327
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1328
|
+
*/
|
|
1329
|
+
end_date?: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* Whether the rate is archived. Archived rates remain readable for historical
|
|
1332
|
+
* references.
|
|
1333
|
+
*/
|
|
1334
|
+
is_archived?: boolean;
|
|
1335
|
+
/**
|
|
1336
|
+
* Whether this is the current version of the rate.
|
|
1337
|
+
*/
|
|
1338
|
+
is_current?: boolean;
|
|
1339
|
+
/**
|
|
1340
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1341
|
+
*/
|
|
1342
|
+
start_date?: string;
|
|
1343
|
+
}
|
|
1344
|
+
/**
|
|
1345
|
+
* Receipt file and its filename.
|
|
1346
|
+
*/
|
|
1347
|
+
interface Receipt {
|
|
1348
|
+
/**
|
|
1349
|
+
* URL for accessing the file.
|
|
1350
|
+
*/
|
|
1351
|
+
url: string;
|
|
1352
|
+
/**
|
|
1353
|
+
* Original file name, when recorded.
|
|
1354
|
+
*/
|
|
1355
|
+
file_name?: string;
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
1359
|
+
*/
|
|
1360
|
+
interface StartLocation {
|
|
1361
|
+
/**
|
|
1362
|
+
* Address of this point. Null when the point has no address.
|
|
1363
|
+
*/
|
|
1364
|
+
address?: string;
|
|
1365
|
+
/**
|
|
1366
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1367
|
+
* has no coordinates.
|
|
1368
|
+
*/
|
|
1369
|
+
coordinates?: StartLocation.Coordinates;
|
|
1370
|
+
}
|
|
1371
|
+
namespace StartLocation {
|
|
1372
|
+
/**
|
|
1373
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1374
|
+
* has no coordinates.
|
|
1375
|
+
*/
|
|
1376
|
+
interface Coordinates {
|
|
1377
|
+
/**
|
|
1378
|
+
* Latitude of this point, in decimal degrees.
|
|
1379
|
+
*/
|
|
1380
|
+
latitude?: number;
|
|
1381
|
+
/**
|
|
1382
|
+
* Longitude of this point, in decimal degrees.
|
|
1383
|
+
*/
|
|
1384
|
+
longitude?: number;
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
1389
|
+
*
|
|
1390
|
+
* Expandable field
|
|
1391
|
+
*/
|
|
1392
|
+
interface Vendor {
|
|
1393
|
+
/**
|
|
1394
|
+
* Identifier field
|
|
1395
|
+
*/
|
|
1396
|
+
id: string;
|
|
1397
|
+
/**
|
|
1398
|
+
* Record creation date
|
|
1399
|
+
*/
|
|
1400
|
+
created_at: string;
|
|
1401
|
+
/**
|
|
1402
|
+
* Record update date
|
|
1403
|
+
*/
|
|
1404
|
+
updated_at: string;
|
|
1405
|
+
/**
|
|
1406
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
1407
|
+
* references.
|
|
1408
|
+
*/
|
|
1409
|
+
is_archived?: boolean;
|
|
1410
|
+
/**
|
|
1411
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
1412
|
+
*/
|
|
1413
|
+
logo?: string;
|
|
1414
|
+
/**
|
|
1415
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
1416
|
+
* alternate names.
|
|
1417
|
+
*/
|
|
1418
|
+
name?: string;
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Start, end, or intermediate stop on a mileage trip.
|
|
1422
|
+
*/
|
|
1423
|
+
interface Waypoint {
|
|
1424
|
+
/**
|
|
1425
|
+
* Address of this point. Null when the point has no address.
|
|
1426
|
+
*/
|
|
1427
|
+
address?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1430
|
+
* has no coordinates.
|
|
1431
|
+
*/
|
|
1432
|
+
coordinates?: Waypoint.Coordinates;
|
|
1433
|
+
}
|
|
1434
|
+
namespace Waypoint {
|
|
1435
|
+
/**
|
|
1436
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1437
|
+
* has no coordinates.
|
|
1438
|
+
*/
|
|
1439
|
+
interface Coordinates {
|
|
1440
|
+
/**
|
|
1441
|
+
* Latitude of this point, in decimal degrees.
|
|
1442
|
+
*/
|
|
1443
|
+
latitude?: number;
|
|
1444
|
+
/**
|
|
1445
|
+
* Longitude of this point, in decimal degrees.
|
|
1446
|
+
*/
|
|
1447
|
+
longitude?: number;
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
418
1450
|
}
|
|
419
|
-
export type ReimbursementListResponsesPageCursorURL = PageCursorURL<ReimbursementListResponse>;
|
|
420
1451
|
/**
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
-
* A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
|
|
424
|
-
* use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
|
|
425
|
-
* Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
|
|
426
|
-
* that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
|
|
427
|
-
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
428
|
-
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
429
|
-
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
1452
|
+
* Meta information for the response.
|
|
430
1453
|
*/
|
|
431
|
-
export interface
|
|
1454
|
+
export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
432
1455
|
/**
|
|
433
1456
|
* Identifier field
|
|
434
1457
|
*/
|
|
@@ -458,11 +1481,11 @@ export interface ReimbursementListResponse {
|
|
|
458
1481
|
/**
|
|
459
1482
|
* Other attached files, including filenames and recorded upload metadata.
|
|
460
1483
|
*/
|
|
461
|
-
attachments?: Array<
|
|
1484
|
+
attachments?: Array<ReimbursementRetrieveResponse.Attachment>;
|
|
462
1485
|
/**
|
|
463
1486
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
464
1487
|
*/
|
|
465
|
-
company_amount?:
|
|
1488
|
+
company_amount?: ReimbursementRetrieveResponse.CompanyAmount;
|
|
466
1489
|
/**
|
|
467
1490
|
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
468
1491
|
*/
|
|
@@ -470,7 +1493,7 @@ export interface ReimbursementListResponse {
|
|
|
470
1493
|
/**
|
|
471
1494
|
* End of a mileage trip. Null except on mileage reimbursements.
|
|
472
1495
|
*/
|
|
473
|
-
end_location?:
|
|
1496
|
+
end_location?: ReimbursementRetrieveResponse.EndLocation;
|
|
474
1497
|
/**
|
|
475
1498
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
476
1499
|
* `/company-legal-entities/{id}/`.
|
|
@@ -488,11 +1511,11 @@ export interface ReimbursementListResponse {
|
|
|
488
1511
|
/**
|
|
489
1512
|
* Vendor in the connected accounting system.
|
|
490
1513
|
*/
|
|
491
|
-
gl_vendor?:
|
|
1514
|
+
gl_vendor?: ReimbursementRetrieveResponse.GlVendor;
|
|
492
1515
|
/**
|
|
493
1516
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
494
1517
|
*/
|
|
495
|
-
line_items?: Array<
|
|
1518
|
+
line_items?: Array<ReimbursementRetrieveResponse.LineItem>;
|
|
496
1519
|
/**
|
|
497
1520
|
* Memo entered on the transaction.
|
|
498
1521
|
*/
|
|
@@ -501,14 +1524,14 @@ export interface ReimbursementListResponse {
|
|
|
501
1524
|
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
502
1525
|
* decimal string.
|
|
503
1526
|
*/
|
|
504
|
-
merchant_amount?:
|
|
1527
|
+
merchant_amount?: ReimbursementRetrieveResponse.MerchantAmount;
|
|
505
1528
|
/**
|
|
506
1529
|
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
507
1530
|
* `reimbursements.read`.
|
|
508
1531
|
*
|
|
509
1532
|
* Expandable field
|
|
510
1533
|
*/
|
|
511
|
-
mileage_rate?:
|
|
1534
|
+
mileage_rate?: ReimbursementRetrieveResponse.MileageRate;
|
|
512
1535
|
/**
|
|
513
1536
|
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
514
1537
|
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
@@ -518,7 +1541,7 @@ export interface ReimbursementListResponse {
|
|
|
518
1541
|
/**
|
|
519
1542
|
* Amount credited to the worker. The `value` is a decimal string.
|
|
520
1543
|
*/
|
|
521
|
-
payout_amount?:
|
|
1544
|
+
payout_amount?: ReimbursementRetrieveResponse.PayoutAmount;
|
|
522
1545
|
/**
|
|
523
1546
|
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
524
1547
|
* assigned.
|
|
@@ -535,14 +1558,14 @@ export interface ReimbursementListResponse {
|
|
|
535
1558
|
/**
|
|
536
1559
|
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
537
1560
|
*/
|
|
538
|
-
per_diem_line_items?: Array<
|
|
1561
|
+
per_diem_line_items?: Array<ReimbursementRetrieveResponse.PerDiemLineItem>;
|
|
539
1562
|
/**
|
|
540
1563
|
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
541
1564
|
* `reimbursements.read`.
|
|
542
1565
|
*
|
|
543
1566
|
* Expandable field
|
|
544
1567
|
*/
|
|
545
|
-
per_diem_rate?:
|
|
1568
|
+
per_diem_rate?: ReimbursementRetrieveResponse.PerDiemRate;
|
|
546
1569
|
/**
|
|
547
1570
|
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
548
1571
|
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
@@ -552,11 +1575,11 @@ export interface ReimbursementListResponse {
|
|
|
552
1575
|
/**
|
|
553
1576
|
* Receipt file and its filename.
|
|
554
1577
|
*/
|
|
555
|
-
receipt?:
|
|
1578
|
+
receipt?: ReimbursementRetrieveResponse.Receipt;
|
|
556
1579
|
/**
|
|
557
1580
|
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
558
1581
|
*/
|
|
559
|
-
start_location?:
|
|
1582
|
+
start_location?: ReimbursementRetrieveResponse.StartLocation;
|
|
560
1583
|
/**
|
|
561
1584
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
562
1585
|
*/
|
|
@@ -583,7 +1606,7 @@ export interface ReimbursementListResponse {
|
|
|
583
1606
|
*
|
|
584
1607
|
* Expandable field
|
|
585
1608
|
*/
|
|
586
|
-
vendor?:
|
|
1609
|
+
vendor?: ReimbursementRetrieveResponse.Vendor;
|
|
587
1610
|
/**
|
|
588
1611
|
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
589
1612
|
*/
|
|
@@ -592,7 +1615,7 @@ export interface ReimbursementListResponse {
|
|
|
592
1615
|
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
593
1616
|
* except on mileage reimbursements.
|
|
594
1617
|
*/
|
|
595
|
-
waypoints?: Array<
|
|
1618
|
+
waypoints?: Array<ReimbursementRetrieveResponse.Waypoint>;
|
|
596
1619
|
/**
|
|
597
1620
|
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
598
1621
|
*
|
|
@@ -604,7 +1627,7 @@ export interface ReimbursementListResponse {
|
|
|
604
1627
|
*/
|
|
605
1628
|
worker_id?: string;
|
|
606
1629
|
}
|
|
607
|
-
export declare namespace
|
|
1630
|
+
export declare namespace ReimbursementRetrieveResponse {
|
|
608
1631
|
/**
|
|
609
1632
|
* A Finance transaction attachment with recorded upload details.
|
|
610
1633
|
*/
|
|
@@ -1243,9 +2266,17 @@ export declare namespace ReimbursementListResponse {
|
|
|
1243
2266
|
}
|
|
1244
2267
|
}
|
|
1245
2268
|
/**
|
|
1246
|
-
*
|
|
2269
|
+
* A Finance reimbursement the caller can see.
|
|
2270
|
+
*
|
|
2271
|
+
* A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
|
|
2272
|
+
* use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
|
|
2273
|
+
* Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
|
|
2274
|
+
* that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
|
|
2275
|
+
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
2276
|
+
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
2277
|
+
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
1247
2278
|
*/
|
|
1248
|
-
export interface
|
|
2279
|
+
export interface ReimbursementUpdateResponse {
|
|
1249
2280
|
/**
|
|
1250
2281
|
* Identifier field
|
|
1251
2282
|
*/
|
|
@@ -1275,11 +2306,11 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1275
2306
|
/**
|
|
1276
2307
|
* Other attached files, including filenames and recorded upload metadata.
|
|
1277
2308
|
*/
|
|
1278
|
-
attachments?: Array<
|
|
2309
|
+
attachments?: Array<ReimbursementUpdateResponse.Attachment>;
|
|
1279
2310
|
/**
|
|
1280
2311
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
1281
2312
|
*/
|
|
1282
|
-
company_amount?:
|
|
2313
|
+
company_amount?: ReimbursementUpdateResponse.CompanyAmount;
|
|
1283
2314
|
/**
|
|
1284
2315
|
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
1285
2316
|
*/
|
|
@@ -1287,7 +2318,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1287
2318
|
/**
|
|
1288
2319
|
* End of a mileage trip. Null except on mileage reimbursements.
|
|
1289
2320
|
*/
|
|
1290
|
-
end_location?:
|
|
2321
|
+
end_location?: ReimbursementUpdateResponse.EndLocation;
|
|
1291
2322
|
/**
|
|
1292
2323
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
1293
2324
|
* `/company-legal-entities/{id}/`.
|
|
@@ -1305,11 +2336,11 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1305
2336
|
/**
|
|
1306
2337
|
* Vendor in the connected accounting system.
|
|
1307
2338
|
*/
|
|
1308
|
-
gl_vendor?:
|
|
2339
|
+
gl_vendor?: ReimbursementUpdateResponse.GlVendor;
|
|
1309
2340
|
/**
|
|
1310
2341
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
1311
2342
|
*/
|
|
1312
|
-
line_items?: Array<
|
|
2343
|
+
line_items?: Array<ReimbursementUpdateResponse.LineItem>;
|
|
1313
2344
|
/**
|
|
1314
2345
|
* Memo entered on the transaction.
|
|
1315
2346
|
*/
|
|
@@ -1318,14 +2349,14 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1318
2349
|
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
1319
2350
|
* decimal string.
|
|
1320
2351
|
*/
|
|
1321
|
-
merchant_amount?:
|
|
2352
|
+
merchant_amount?: ReimbursementUpdateResponse.MerchantAmount;
|
|
1322
2353
|
/**
|
|
1323
2354
|
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
1324
2355
|
* `reimbursements.read`.
|
|
1325
2356
|
*
|
|
1326
2357
|
* Expandable field
|
|
1327
2358
|
*/
|
|
1328
|
-
mileage_rate?:
|
|
2359
|
+
mileage_rate?: ReimbursementUpdateResponse.MileageRate;
|
|
1329
2360
|
/**
|
|
1330
2361
|
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
1331
2362
|
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
@@ -1335,7 +2366,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1335
2366
|
/**
|
|
1336
2367
|
* Amount credited to the worker. The `value` is a decimal string.
|
|
1337
2368
|
*/
|
|
1338
|
-
payout_amount?:
|
|
2369
|
+
payout_amount?: ReimbursementUpdateResponse.PayoutAmount;
|
|
1339
2370
|
/**
|
|
1340
2371
|
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
1341
2372
|
* assigned.
|
|
@@ -1352,14 +2383,14 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1352
2383
|
/**
|
|
1353
2384
|
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
1354
2385
|
*/
|
|
1355
|
-
per_diem_line_items?: Array<
|
|
2386
|
+
per_diem_line_items?: Array<ReimbursementUpdateResponse.PerDiemLineItem>;
|
|
1356
2387
|
/**
|
|
1357
2388
|
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
1358
2389
|
* `reimbursements.read`.
|
|
1359
2390
|
*
|
|
1360
2391
|
* Expandable field
|
|
1361
2392
|
*/
|
|
1362
|
-
per_diem_rate?:
|
|
2393
|
+
per_diem_rate?: ReimbursementUpdateResponse.PerDiemRate;
|
|
1363
2394
|
/**
|
|
1364
2395
|
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
1365
2396
|
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
@@ -1369,11 +2400,11 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1369
2400
|
/**
|
|
1370
2401
|
* Receipt file and its filename.
|
|
1371
2402
|
*/
|
|
1372
|
-
receipt?:
|
|
2403
|
+
receipt?: ReimbursementUpdateResponse.Receipt;
|
|
1373
2404
|
/**
|
|
1374
2405
|
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
1375
2406
|
*/
|
|
1376
|
-
start_location?:
|
|
2407
|
+
start_location?: ReimbursementUpdateResponse.StartLocation;
|
|
1377
2408
|
/**
|
|
1378
2409
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
1379
2410
|
*/
|
|
@@ -1400,7 +2431,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1400
2431
|
*
|
|
1401
2432
|
* Expandable field
|
|
1402
2433
|
*/
|
|
1403
|
-
vendor?:
|
|
2434
|
+
vendor?: ReimbursementUpdateResponse.Vendor;
|
|
1404
2435
|
/**
|
|
1405
2436
|
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
1406
2437
|
*/
|
|
@@ -1409,7 +2440,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1409
2440
|
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
1410
2441
|
* except on mileage reimbursements.
|
|
1411
2442
|
*/
|
|
1412
|
-
waypoints?: Array<
|
|
2443
|
+
waypoints?: Array<ReimbursementUpdateResponse.Waypoint>;
|
|
1413
2444
|
/**
|
|
1414
2445
|
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
1415
2446
|
*
|
|
@@ -1421,7 +2452,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1421
2452
|
*/
|
|
1422
2453
|
worker_id?: string;
|
|
1423
2454
|
}
|
|
1424
|
-
export declare namespace
|
|
2455
|
+
export declare namespace ReimbursementUpdateResponse {
|
|
1425
2456
|
/**
|
|
1426
2457
|
* A Finance transaction attachment with recorded upload details.
|
|
1427
2458
|
*/
|
|
@@ -2070,7 +3101,7 @@ export declare namespace ReimbursementRetrieveResponse {
|
|
|
2070
3101
|
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
2071
3102
|
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
2072
3103
|
*/
|
|
2073
|
-
export interface
|
|
3104
|
+
export interface ReimbursementUploadReceiptResponse {
|
|
2074
3105
|
/**
|
|
2075
3106
|
* Identifier field
|
|
2076
3107
|
*/
|
|
@@ -2100,11 +3131,11 @@ export interface ReimbursementUpdateResponse {
|
|
|
2100
3131
|
/**
|
|
2101
3132
|
* Other attached files, including filenames and recorded upload metadata.
|
|
2102
3133
|
*/
|
|
2103
|
-
attachments?: Array<
|
|
3134
|
+
attachments?: Array<ReimbursementUploadReceiptResponse.Attachment>;
|
|
2104
3135
|
/**
|
|
2105
3136
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
2106
3137
|
*/
|
|
2107
|
-
company_amount?:
|
|
3138
|
+
company_amount?: ReimbursementUploadReceiptResponse.CompanyAmount;
|
|
2108
3139
|
/**
|
|
2109
3140
|
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
2110
3141
|
*/
|
|
@@ -2112,7 +3143,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2112
3143
|
/**
|
|
2113
3144
|
* End of a mileage trip. Null except on mileage reimbursements.
|
|
2114
3145
|
*/
|
|
2115
|
-
end_location?:
|
|
3146
|
+
end_location?: ReimbursementUploadReceiptResponse.EndLocation;
|
|
2116
3147
|
/**
|
|
2117
3148
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
2118
3149
|
* `/company-legal-entities/{id}/`.
|
|
@@ -2130,11 +3161,11 @@ export interface ReimbursementUpdateResponse {
|
|
|
2130
3161
|
/**
|
|
2131
3162
|
* Vendor in the connected accounting system.
|
|
2132
3163
|
*/
|
|
2133
|
-
gl_vendor?:
|
|
3164
|
+
gl_vendor?: ReimbursementUploadReceiptResponse.GlVendor;
|
|
2134
3165
|
/**
|
|
2135
3166
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
2136
3167
|
*/
|
|
2137
|
-
line_items?: Array<
|
|
3168
|
+
line_items?: Array<ReimbursementUploadReceiptResponse.LineItem>;
|
|
2138
3169
|
/**
|
|
2139
3170
|
* Memo entered on the transaction.
|
|
2140
3171
|
*/
|
|
@@ -2143,14 +3174,14 @@ export interface ReimbursementUpdateResponse {
|
|
|
2143
3174
|
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
2144
3175
|
* decimal string.
|
|
2145
3176
|
*/
|
|
2146
|
-
merchant_amount?:
|
|
3177
|
+
merchant_amount?: ReimbursementUploadReceiptResponse.MerchantAmount;
|
|
2147
3178
|
/**
|
|
2148
3179
|
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
2149
3180
|
* `reimbursements.read`.
|
|
2150
3181
|
*
|
|
2151
3182
|
* Expandable field
|
|
2152
3183
|
*/
|
|
2153
|
-
mileage_rate?:
|
|
3184
|
+
mileage_rate?: ReimbursementUploadReceiptResponse.MileageRate;
|
|
2154
3185
|
/**
|
|
2155
3186
|
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
2156
3187
|
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
@@ -2160,7 +3191,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2160
3191
|
/**
|
|
2161
3192
|
* Amount credited to the worker. The `value` is a decimal string.
|
|
2162
3193
|
*/
|
|
2163
|
-
payout_amount?:
|
|
3194
|
+
payout_amount?: ReimbursementUploadReceiptResponse.PayoutAmount;
|
|
2164
3195
|
/**
|
|
2165
3196
|
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
2166
3197
|
* assigned.
|
|
@@ -2177,14 +3208,14 @@ export interface ReimbursementUpdateResponse {
|
|
|
2177
3208
|
/**
|
|
2178
3209
|
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
2179
3210
|
*/
|
|
2180
|
-
per_diem_line_items?: Array<
|
|
3211
|
+
per_diem_line_items?: Array<ReimbursementUploadReceiptResponse.PerDiemLineItem>;
|
|
2181
3212
|
/**
|
|
2182
3213
|
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
2183
3214
|
* `reimbursements.read`.
|
|
2184
3215
|
*
|
|
2185
3216
|
* Expandable field
|
|
2186
3217
|
*/
|
|
2187
|
-
per_diem_rate?:
|
|
3218
|
+
per_diem_rate?: ReimbursementUploadReceiptResponse.PerDiemRate;
|
|
2188
3219
|
/**
|
|
2189
3220
|
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
2190
3221
|
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
@@ -2194,11 +3225,11 @@ export interface ReimbursementUpdateResponse {
|
|
|
2194
3225
|
/**
|
|
2195
3226
|
* Receipt file and its filename.
|
|
2196
3227
|
*/
|
|
2197
|
-
receipt?:
|
|
3228
|
+
receipt?: ReimbursementUploadReceiptResponse.Receipt;
|
|
2198
3229
|
/**
|
|
2199
3230
|
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
2200
3231
|
*/
|
|
2201
|
-
start_location?:
|
|
3232
|
+
start_location?: ReimbursementUploadReceiptResponse.StartLocation;
|
|
2202
3233
|
/**
|
|
2203
3234
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
2204
3235
|
*/
|
|
@@ -2225,7 +3256,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2225
3256
|
*
|
|
2226
3257
|
* Expandable field
|
|
2227
3258
|
*/
|
|
2228
|
-
vendor?:
|
|
3259
|
+
vendor?: ReimbursementUploadReceiptResponse.Vendor;
|
|
2229
3260
|
/**
|
|
2230
3261
|
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
2231
3262
|
*/
|
|
@@ -2234,7 +3265,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2234
3265
|
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
2235
3266
|
* except on mileage reimbursements.
|
|
2236
3267
|
*/
|
|
2237
|
-
waypoints?: Array<
|
|
3268
|
+
waypoints?: Array<ReimbursementUploadReceiptResponse.Waypoint>;
|
|
2238
3269
|
/**
|
|
2239
3270
|
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
2240
3271
|
*
|
|
@@ -2246,7 +3277,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2246
3277
|
*/
|
|
2247
3278
|
worker_id?: string;
|
|
2248
3279
|
}
|
|
2249
|
-
export declare namespace
|
|
3280
|
+
export declare namespace ReimbursementUploadReceiptResponse {
|
|
2250
3281
|
/**
|
|
2251
3282
|
* A Finance transaction attachment with recorded upload details.
|
|
2252
3283
|
*/
|
|
@@ -2900,6 +3931,8 @@ export interface ReimbursementRetrieveParams {
|
|
|
2900
3931
|
export interface ReimbursementUpdateParams {
|
|
2901
3932
|
/**
|
|
2902
3933
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
3934
|
+
* `amount` and `tax_amount` are decimal strings in the merchant currency. The sum
|
|
3935
|
+
* of `amount` values must match the transaction's merchant amount.
|
|
2903
3936
|
*/
|
|
2904
3937
|
line_items?: Array<ReimbursementUpdateParams.LineItem>;
|
|
2905
3938
|
}
|
|
@@ -3005,18 +4038,27 @@ export declare namespace ReimbursementUpdateParams {
|
|
|
3005
4038
|
* Account ID in the connected accounting system.
|
|
3006
4039
|
*/
|
|
3007
4040
|
account_id?: string;
|
|
3008
|
-
/**
|
|
3009
|
-
* Account code.
|
|
3010
|
-
*/
|
|
3011
|
-
code?: string;
|
|
3012
4041
|
/**
|
|
3013
4042
|
* Account name.
|
|
3014
4043
|
*/
|
|
3015
4044
|
name?: string;
|
|
4045
|
+
/**
|
|
4046
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
4047
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
4048
|
+
* when not set.
|
|
4049
|
+
*/
|
|
4050
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
3016
4051
|
}
|
|
3017
4052
|
}
|
|
3018
4053
|
}
|
|
4054
|
+
export interface ReimbursementUploadReceiptParams {
|
|
4055
|
+
/**
|
|
4056
|
+
* The receipt file: PDF, JPEG, PNG, or BMP, up to 10 MB. The type is detected from
|
|
4057
|
+
* the file's contents.
|
|
4058
|
+
*/
|
|
4059
|
+
file: Uploadable;
|
|
4060
|
+
}
|
|
3019
4061
|
export declare namespace Reimbursements {
|
|
3020
|
-
export { type ReimbursementListResponse as ReimbursementListResponse, type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse, type ReimbursementUpdateResponse as ReimbursementUpdateResponse, type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL, type ReimbursementListParams as ReimbursementListParams, type ReimbursementRetrieveParams as ReimbursementRetrieveParams, type ReimbursementUpdateParams as ReimbursementUpdateParams, };
|
|
4062
|
+
export { type ReimbursementListResponse as ReimbursementListResponse, type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse, type ReimbursementUpdateResponse as ReimbursementUpdateResponse, type ReimbursementUploadReceiptResponse as ReimbursementUploadReceiptResponse, type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL, type ReimbursementListParams as ReimbursementListParams, type ReimbursementRetrieveParams as ReimbursementRetrieveParams, type ReimbursementUpdateParams as ReimbursementUpdateParams, type ReimbursementUploadReceiptParams as ReimbursementUploadReceiptParams, };
|
|
3021
4063
|
}
|
|
3022
4064
|
//# sourceMappingURL=reimbursements.d.mts.map
|