@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
|
@@ -5,7 +5,9 @@ import * as BusinessPartnersAPI from './business-partners';
|
|
|
5
5
|
import * as WorkersAPI from './workers';
|
|
6
6
|
import { APIPromise } from '../core/api-promise';
|
|
7
7
|
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
8
|
+
import { type Uploadable } from '../core/uploads';
|
|
8
9
|
import { RequestOptions } from '../internal/request-options';
|
|
10
|
+
import { multipartFormRequestOptions } from '../internal/uploads';
|
|
9
11
|
import { path } from '../internal/utils/path';
|
|
10
12
|
|
|
11
13
|
/**
|
|
@@ -441,22 +443,1234 @@ export class Reimbursements extends APIResource {
|
|
|
441
443
|
): APIPromise<ReimbursementUpdateResponse> {
|
|
442
444
|
return this._client.patch(path`/reimbursements/${id}/`, { body, ...options });
|
|
443
445
|
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Send the receipt file as `multipart/form-data` in a `file` field. It is stored
|
|
449
|
+
* and attached in a single request, replacing the existing receipt, so a retried
|
|
450
|
+
* request does not add a second receipt. Reimbursements that are paid out,
|
|
451
|
+
* finalized, or failed cannot be changed.
|
|
452
|
+
*
|
|
453
|
+
* The receipt is attached without scanning or populating reimbursement fields from
|
|
454
|
+
* its contents. Returns the updated reimbursement in the same shape as
|
|
455
|
+
* `GET /reimbursements/{id}/`, with the new receipt in `receipt`. For a PDF,
|
|
456
|
+
* `receipt` is an image of its first page; the original PDF is not returned yet.
|
|
457
|
+
*
|
|
458
|
+
* @example HTTP
|
|
459
|
+
* Representative request and response shapes.
|
|
460
|
+
* ```
|
|
461
|
+
* POST /reimbursements/{id}/receipts/ HTTP/1.1
|
|
462
|
+
* Host: rest.ripplingapis.com
|
|
463
|
+
* Content-Type: multipart/form-data
|
|
464
|
+
* Accept: application/json
|
|
465
|
+
* Rippling-Api-Version: 2024-08-01
|
|
466
|
+
*
|
|
467
|
+
* <multipart form data>
|
|
468
|
+
*
|
|
469
|
+
* HTTP/1.1 200 OK
|
|
470
|
+
* Content-Type: application/json
|
|
471
|
+
*
|
|
472
|
+
* {
|
|
473
|
+
* "id": "string",
|
|
474
|
+
* "created_at": "string",
|
|
475
|
+
* "updated_at": "string",
|
|
476
|
+
* "worker_id": "string",
|
|
477
|
+
* "worker": {
|
|
478
|
+
* "id": "string",
|
|
479
|
+
* "created_at": "string",
|
|
480
|
+
* "updated_at": "string"
|
|
481
|
+
* },
|
|
482
|
+
* "company_amount": {},
|
|
483
|
+
* "merchant_amount": {
|
|
484
|
+
* "currency_type": "string",
|
|
485
|
+
* "value": 0
|
|
486
|
+
* },
|
|
487
|
+
* "accounting_date": "string",
|
|
488
|
+
* "gl_sync_state": "NOT_FINALIZED",
|
|
489
|
+
* "approval_status": "DRAFT",
|
|
490
|
+
* "entity_id": "string",
|
|
491
|
+
* "vendor": {
|
|
492
|
+
* "id": "string",
|
|
493
|
+
* "created_at": "string",
|
|
494
|
+
* "updated_at": "string",
|
|
495
|
+
* "name": "string",
|
|
496
|
+
* "logo": "string",
|
|
497
|
+
* "is_archived": false
|
|
498
|
+
* },
|
|
499
|
+
* "gl_vendor": {
|
|
500
|
+
* "id": "string",
|
|
501
|
+
* "name": "string",
|
|
502
|
+
* "gl_vendor_id": "string"
|
|
503
|
+
* },
|
|
504
|
+
* "memo": "string",
|
|
505
|
+
* "attachments": [
|
|
506
|
+
* {
|
|
507
|
+
* "url": "string",
|
|
508
|
+
* "file_name": "string",
|
|
509
|
+
* "uploaded_at": "string",
|
|
510
|
+
* "uploaded_by_id": "string"
|
|
511
|
+
* }
|
|
512
|
+
* ],
|
|
513
|
+
* "line_items": [
|
|
514
|
+
* {
|
|
515
|
+
* "gl_customer": "string",
|
|
516
|
+
* "gl_billable": "BILLABLE",
|
|
517
|
+
* "dimension_choices": {},
|
|
518
|
+
* "memo": "string",
|
|
519
|
+
* "gl_amortization_template": {
|
|
520
|
+
* "gl_object_id": "string",
|
|
521
|
+
* "accounting_integration_id": "string",
|
|
522
|
+
* "name": "string",
|
|
523
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
|
|
524
|
+
* },
|
|
525
|
+
* "amortized": false,
|
|
526
|
+
* "start_date": "string",
|
|
527
|
+
* "end_date": "string",
|
|
528
|
+
* "prepaid_account": {
|
|
529
|
+
* "account_id": "string",
|
|
530
|
+
* "name": "string",
|
|
531
|
+
* "code": "string",
|
|
532
|
+
* "type": "RECEIVABLE",
|
|
533
|
+
* "required_custom_dimensions": [],
|
|
534
|
+
* "requires_department": "string",
|
|
535
|
+
* "requires_work_location": "string"
|
|
536
|
+
* },
|
|
537
|
+
* "gl_amortization_schedule": {
|
|
538
|
+
* "gl_object_id": "string",
|
|
539
|
+
* "accounting_integration_id": "string",
|
|
540
|
+
* "name": "string",
|
|
541
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
|
|
542
|
+
* "start_date": "string",
|
|
543
|
+
* "end_date": "string",
|
|
544
|
+
* "total_amount": "string",
|
|
545
|
+
* "total_amortized_amount": "string",
|
|
546
|
+
* "amortization_period": "string",
|
|
547
|
+
* "status": "NOT_STARTED"
|
|
548
|
+
* },
|
|
549
|
+
* "gl_tax_code": "string",
|
|
550
|
+
* "id": "string",
|
|
551
|
+
* "category_id": "string",
|
|
552
|
+
* "category_name": "string",
|
|
553
|
+
* "amount": {
|
|
554
|
+
* "currency_type": "string",
|
|
555
|
+
* "value": "string"
|
|
556
|
+
* },
|
|
557
|
+
* "tax_amount": {
|
|
558
|
+
* "currency_type": "string",
|
|
559
|
+
* "value": "string"
|
|
560
|
+
* }
|
|
561
|
+
* }
|
|
562
|
+
* ],
|
|
563
|
+
* "vendor_id": "string",
|
|
564
|
+
* "transaction_date": "string",
|
|
565
|
+
* "receipt": {
|
|
566
|
+
* "url": "string",
|
|
567
|
+
* "file_name": "string"
|
|
568
|
+
* },
|
|
569
|
+
* "transaction_type": "REIMBURSEMENT",
|
|
570
|
+
* "payout_amount": {
|
|
571
|
+
* "currency_type": "string",
|
|
572
|
+
* "value": 0
|
|
573
|
+
* },
|
|
574
|
+
* "payout_method": "NOT_SET",
|
|
575
|
+
* "payout_date": "string",
|
|
576
|
+
* "distance": 0,
|
|
577
|
+
* "mileage_rate_id": "string",
|
|
578
|
+
* "mileage_rate": {
|
|
579
|
+
* "id": "string",
|
|
580
|
+
* "created_at": "string",
|
|
581
|
+
* "updated_at": "string",
|
|
582
|
+
* "name": "string",
|
|
583
|
+
* "rate": {
|
|
584
|
+
* "currency_type": "string",
|
|
585
|
+
* "value": 0
|
|
586
|
+
* },
|
|
587
|
+
* "units": "km",
|
|
588
|
+
* "start_date": "string",
|
|
589
|
+
* "end_date": "string",
|
|
590
|
+
* "country": "string",
|
|
591
|
+
* "half_cent": false
|
|
592
|
+
* },
|
|
593
|
+
* "start_location": {
|
|
594
|
+
* "address": "string",
|
|
595
|
+
* "coordinates": {
|
|
596
|
+
* "latitude": 0,
|
|
597
|
+
* "longitude": 0
|
|
598
|
+
* }
|
|
599
|
+
* },
|
|
600
|
+
* "end_location": {
|
|
601
|
+
* "address": "string",
|
|
602
|
+
* "coordinates": {
|
|
603
|
+
* "latitude": 0,
|
|
604
|
+
* "longitude": 0
|
|
605
|
+
* }
|
|
606
|
+
* },
|
|
607
|
+
* "waypoints": [
|
|
608
|
+
* {
|
|
609
|
+
* "address": "string",
|
|
610
|
+
* "coordinates": {
|
|
611
|
+
* "latitude": "string",
|
|
612
|
+
* "longitude": "string"
|
|
613
|
+
* }
|
|
614
|
+
* }
|
|
615
|
+
* ],
|
|
616
|
+
* "trip_start_date": "string",
|
|
617
|
+
* "trip_end_date": "string",
|
|
618
|
+
* "per_diem_rate_id": "string",
|
|
619
|
+
* "per_diem_rate": {
|
|
620
|
+
* "id": "string",
|
|
621
|
+
* "created_at": "string",
|
|
622
|
+
* "updated_at": "string",
|
|
623
|
+
* "destination_name": "string",
|
|
624
|
+
* "country": "string",
|
|
625
|
+
* "currency": "string",
|
|
626
|
+
* "start_date": "string",
|
|
627
|
+
* "end_date": "string",
|
|
628
|
+
* "is_current": false,
|
|
629
|
+
* "is_archived": false
|
|
630
|
+
* },
|
|
631
|
+
* "per_diem_line_items": [
|
|
632
|
+
* {
|
|
633
|
+
* "sub_rate_id": "string",
|
|
634
|
+
* "sub_rate_type": "FULL_DAY",
|
|
635
|
+
* "label": "string",
|
|
636
|
+
* "amount": {
|
|
637
|
+
* "currency_type": "string",
|
|
638
|
+
* "value": "string"
|
|
639
|
+
* },
|
|
640
|
+
* "count": 0,
|
|
641
|
+
* "line_type": "INCLUDE",
|
|
642
|
+
* "calculated_amount": {
|
|
643
|
+
* "currency_type": "string",
|
|
644
|
+
* "value": "string"
|
|
645
|
+
* }
|
|
646
|
+
* }
|
|
647
|
+
* ]
|
|
648
|
+
* }
|
|
649
|
+
* ```
|
|
650
|
+
*/
|
|
651
|
+
uploadReceipt(
|
|
652
|
+
id: string,
|
|
653
|
+
body: ReimbursementUploadReceiptParams,
|
|
654
|
+
options?: RequestOptions,
|
|
655
|
+
): APIPromise<ReimbursementUploadReceiptResponse> {
|
|
656
|
+
return this._client.post(
|
|
657
|
+
path`/reimbursements/${id}/receipts/`,
|
|
658
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
659
|
+
);
|
|
660
|
+
}
|
|
444
661
|
}
|
|
445
662
|
|
|
446
|
-
export type ReimbursementListResponsesPageCursorURL = PageCursorURL<ReimbursementListResponse>;
|
|
663
|
+
export type ReimbursementListResponsesPageCursorURL = PageCursorURL<ReimbursementListResponse>;
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* A Finance reimbursement the caller can see.
|
|
667
|
+
*
|
|
668
|
+
* A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
|
|
669
|
+
* use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
|
|
670
|
+
* Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
|
|
671
|
+
* that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
|
|
672
|
+
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
673
|
+
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
674
|
+
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
675
|
+
*/
|
|
676
|
+
export interface ReimbursementListResponse {
|
|
677
|
+
/**
|
|
678
|
+
* Identifier field
|
|
679
|
+
*/
|
|
680
|
+
id: string;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Record creation date
|
|
684
|
+
*/
|
|
685
|
+
created_at: string;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Record update date
|
|
689
|
+
*/
|
|
690
|
+
updated_at: string;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Date the transaction is booked in the accounting system, as an ISO 8601 date
|
|
694
|
+
* (YYYY-MM-DD).
|
|
695
|
+
*/
|
|
696
|
+
accounting_date?: string;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Approval status of the transaction. `DRAFT`: not submitted for approval.
|
|
700
|
+
* `PENDING`: awaiting required information or submission before approval.
|
|
701
|
+
* `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
|
|
702
|
+
* rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
|
|
703
|
+
* reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
|
|
704
|
+
* for card authorizations.
|
|
705
|
+
*/
|
|
706
|
+
approval_status?:
|
|
707
|
+
| 'DRAFT'
|
|
708
|
+
| 'PENDING'
|
|
709
|
+
| 'REQUESTED'
|
|
710
|
+
| 'APPROVED'
|
|
711
|
+
| 'REJECTED'
|
|
712
|
+
| 'FINALIZED'
|
|
713
|
+
| 'ACTIONED'
|
|
714
|
+
| 'CANCELLED'
|
|
715
|
+
| 'FAILED';
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
719
|
+
*/
|
|
720
|
+
attachments?: Array<ReimbursementListResponse.Attachment>;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
724
|
+
*/
|
|
725
|
+
company_amount?: ReimbursementListResponse.CompanyAmount;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
729
|
+
*/
|
|
730
|
+
distance?: number;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
734
|
+
*/
|
|
735
|
+
end_location?: ReimbursementListResponse.EndLocation;
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* ID of the legal entity the transaction belongs to. Use it with
|
|
739
|
+
* `/company-legal-entities/{id}/`.
|
|
740
|
+
*/
|
|
741
|
+
entity_id?: string;
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
|
|
745
|
+
* accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
|
|
746
|
+
* sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
|
|
747
|
+
* failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
|
|
748
|
+
* accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
|
|
749
|
+
* be synced automatically. Null when no sync state is set.
|
|
750
|
+
*/
|
|
751
|
+
gl_sync_state?:
|
|
752
|
+
| 'NOT_FINALIZED'
|
|
753
|
+
| 'FOR_REVIEW'
|
|
754
|
+
| 'PENDING_SYNC'
|
|
755
|
+
| 'SYNCED'
|
|
756
|
+
| 'ERROR'
|
|
757
|
+
| 'DO_NOT_SYNC'
|
|
758
|
+
| 'EXPORTED'
|
|
759
|
+
| 'NOT_SYNCABLE'
|
|
760
|
+
| 'AUTO_SYNC';
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Vendor in the connected accounting system.
|
|
764
|
+
*/
|
|
765
|
+
gl_vendor?: ReimbursementListResponse.GlVendor;
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
769
|
+
*/
|
|
770
|
+
line_items?: Array<ReimbursementListResponse.LineItem>;
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Memo entered on the transaction.
|
|
774
|
+
*/
|
|
775
|
+
memo?: string;
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
779
|
+
* decimal string.
|
|
780
|
+
*/
|
|
781
|
+
merchant_amount?: ReimbursementListResponse.MerchantAmount;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
785
|
+
* `reimbursements.read`.
|
|
786
|
+
*
|
|
787
|
+
* Expandable field
|
|
788
|
+
*/
|
|
789
|
+
mileage_rate?: ReimbursementListResponse.MileageRate;
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
793
|
+
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
794
|
+
* there is no standalone rate lookup endpoint.
|
|
795
|
+
*/
|
|
796
|
+
mileage_rate_id?: string;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
800
|
+
*/
|
|
801
|
+
payout_amount?: ReimbursementListResponse.PayoutAmount;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
805
|
+
* assigned.
|
|
806
|
+
*/
|
|
807
|
+
payout_date?: string;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* How the worker is paid. `NOT_SET`: no payout run is assigned. `US_PAYROLL`:
|
|
811
|
+
* assigned to a US payroll run. `GLOBAL_PAYROLL`: assigned to a global payroll
|
|
812
|
+
* run. `DIRECT_DEPOSIT`: assigned to a direct deposit run. `EOR`: assigned to an
|
|
813
|
+
* employer-of-record payroll run. `MANUAL`: marked paid outside a run. If a payout
|
|
814
|
+
* method override is set, it is returned.
|
|
815
|
+
*/
|
|
816
|
+
payout_method?: 'NOT_SET' | 'GLOBAL_PAYROLL' | 'US_PAYROLL' | 'DIRECT_DEPOSIT' | 'EOR' | 'MANUAL';
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
820
|
+
*/
|
|
821
|
+
per_diem_line_items?: Array<ReimbursementListResponse.PerDiemLineItem>;
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
825
|
+
* `reimbursements.read`.
|
|
826
|
+
*
|
|
827
|
+
* Expandable field
|
|
828
|
+
*/
|
|
829
|
+
per_diem_rate?: ReimbursementListResponse.PerDiemRate;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
833
|
+
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
834
|
+
* is no standalone rate lookup endpoint.
|
|
835
|
+
*/
|
|
836
|
+
per_diem_rate_id?: string;
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Receipt file and its filename.
|
|
840
|
+
*/
|
|
841
|
+
receipt?: ReimbursementListResponse.Receipt;
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
845
|
+
*/
|
|
846
|
+
start_location?: ReimbursementListResponse.StartLocation;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
850
|
+
*/
|
|
851
|
+
transaction_date?: string;
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* `REIMBURSEMENT`: an expense the worker paid and the company pays back.
|
|
855
|
+
* `MILEAGE_REIMBURSEMENT`: payback for distance driven. `PER_DIEM_REIMBURSEMENT`:
|
|
856
|
+
* payback for a daily travel allowance. This decides which mileage or per diem
|
|
857
|
+
* fields are set.
|
|
858
|
+
*/
|
|
859
|
+
transaction_type?: 'REIMBURSEMENT' | 'MILEAGE_REIMBURSEMENT' | 'PER_DIEM_REIMBURSEMENT';
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Per diem trip end date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
|
|
863
|
+
* diem reimbursements.
|
|
864
|
+
*/
|
|
865
|
+
trip_end_date?: string;
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Per diem trip start date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
|
|
869
|
+
* diem reimbursements.
|
|
870
|
+
*/
|
|
871
|
+
trip_start_date?: string;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
875
|
+
*
|
|
876
|
+
* Expandable field
|
|
877
|
+
*/
|
|
878
|
+
vendor?: ReimbursementListResponse.Vendor;
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
882
|
+
*/
|
|
883
|
+
vendor_id?: string;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
887
|
+
* except on mileage reimbursements.
|
|
888
|
+
*/
|
|
889
|
+
waypoints?: Array<ReimbursementListResponse.Waypoint>;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
893
|
+
*
|
|
894
|
+
* Expandable field
|
|
895
|
+
*/
|
|
896
|
+
worker?: WorkersAPI.Worker;
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
900
|
+
*/
|
|
901
|
+
worker_id?: string;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export namespace ReimbursementListResponse {
|
|
905
|
+
/**
|
|
906
|
+
* A Finance transaction attachment with recorded upload details.
|
|
907
|
+
*/
|
|
908
|
+
export interface Attachment {
|
|
909
|
+
/**
|
|
910
|
+
* URL for accessing the file.
|
|
911
|
+
*/
|
|
912
|
+
url: string;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Original file name, when recorded.
|
|
916
|
+
*/
|
|
917
|
+
file_name?: string;
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
921
|
+
* recorded.
|
|
922
|
+
*/
|
|
923
|
+
uploaded_at?: string;
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
927
|
+
*/
|
|
928
|
+
uploaded_by_id?: string;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
933
|
+
*/
|
|
934
|
+
export interface CompanyAmount {
|
|
935
|
+
/**
|
|
936
|
+
* The currency type, ex: USD, EUR, etc.
|
|
937
|
+
*/
|
|
938
|
+
currency_type?: string;
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* The decimal amount for the currency.
|
|
942
|
+
*/
|
|
943
|
+
value?: number;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
948
|
+
*/
|
|
949
|
+
export interface EndLocation {
|
|
950
|
+
/**
|
|
951
|
+
* Address of this point. Null when the point has no address.
|
|
952
|
+
*/
|
|
953
|
+
address?: string;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
957
|
+
* has no coordinates.
|
|
958
|
+
*/
|
|
959
|
+
coordinates?: EndLocation.Coordinates;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
export namespace EndLocation {
|
|
963
|
+
/**
|
|
964
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
965
|
+
* has no coordinates.
|
|
966
|
+
*/
|
|
967
|
+
export interface Coordinates {
|
|
968
|
+
/**
|
|
969
|
+
* Latitude of this point, in decimal degrees.
|
|
970
|
+
*/
|
|
971
|
+
latitude?: number;
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* Longitude of this point, in decimal degrees.
|
|
975
|
+
*/
|
|
976
|
+
longitude?: number;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Vendor in the connected accounting system.
|
|
982
|
+
*/
|
|
983
|
+
export interface GlVendor {
|
|
984
|
+
/**
|
|
985
|
+
* ID of the accounting vendor in Rippling.
|
|
986
|
+
*/
|
|
987
|
+
id?: string;
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* ID of the vendor in the accounting system.
|
|
991
|
+
*/
|
|
992
|
+
gl_vendor_id?: string;
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Name of the vendor in the accounting system.
|
|
996
|
+
*/
|
|
997
|
+
name?: string;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
export interface LineItem {
|
|
1001
|
+
/**
|
|
1002
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
1003
|
+
* been assigned one yet.
|
|
1004
|
+
*/
|
|
1005
|
+
id?: string;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Whether this line is amortized.
|
|
1009
|
+
*/
|
|
1010
|
+
amortized?: boolean;
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
1014
|
+
*/
|
|
1015
|
+
amount?: LineItem.Amount;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
1019
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
1020
|
+
*/
|
|
1021
|
+
category_id?: string;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Name of the finance category.
|
|
1025
|
+
*/
|
|
1026
|
+
category_name?: string;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
1030
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
1031
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
1032
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
1033
|
+
*/
|
|
1034
|
+
dimension_choices?: { [key: string]: LineItem.DimensionChoices };
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
1038
|
+
*/
|
|
1039
|
+
end_date?: string;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* ERP amortization schedule associated with this line.
|
|
1043
|
+
*/
|
|
1044
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* ERP amortization template for this line.
|
|
1048
|
+
*/
|
|
1049
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
1053
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
1054
|
+
* set.
|
|
1055
|
+
*/
|
|
1056
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
1060
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
1061
|
+
*/
|
|
1062
|
+
gl_customer?: string;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
1066
|
+
* available to retrieve this accounting tax code.
|
|
1067
|
+
*/
|
|
1068
|
+
gl_tax_code?: string;
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Memo entered on this split.
|
|
1072
|
+
*/
|
|
1073
|
+
memo?: string;
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
1077
|
+
*/
|
|
1078
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
1082
|
+
*/
|
|
1083
|
+
start_date?: string;
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Total tax amount for this line in the merchant currency.
|
|
1087
|
+
*/
|
|
1088
|
+
tax_amount?: LineItem.TaxAmount;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
export namespace LineItem {
|
|
1092
|
+
/**
|
|
1093
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
1094
|
+
*/
|
|
1095
|
+
export interface Amount {
|
|
1096
|
+
/**
|
|
1097
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1098
|
+
*/
|
|
1099
|
+
currency_type?: string;
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* The decimal amount for the currency.
|
|
1103
|
+
*/
|
|
1104
|
+
value?: number;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
export interface DimensionChoices {
|
|
1108
|
+
/**
|
|
1109
|
+
* Name of the dimension, such as Department.
|
|
1110
|
+
*/
|
|
1111
|
+
dimension_name?: string;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Display name of the selected dimension value.
|
|
1115
|
+
*/
|
|
1116
|
+
label?: string;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
1120
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
1121
|
+
* `/job-codes/{id}/`.
|
|
1122
|
+
*/
|
|
1123
|
+
value?: string;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* ERP amortization schedule associated with this line.
|
|
1128
|
+
*/
|
|
1129
|
+
export interface GlAmortizationSchedule {
|
|
1130
|
+
/**
|
|
1131
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
1132
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
1133
|
+
*/
|
|
1134
|
+
accounting_integration_id?: string;
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Number of amortization periods.
|
|
1138
|
+
*/
|
|
1139
|
+
amortization_period?: number;
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
1143
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
1144
|
+
* indicate UTC. Null when not set.
|
|
1145
|
+
*/
|
|
1146
|
+
end_date?: string;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Object ID in the connected accounting system.
|
|
1150
|
+
*/
|
|
1151
|
+
gl_object_id?: string;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
1155
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
1156
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
1157
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
1158
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
1159
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
1160
|
+
* when not set.
|
|
1161
|
+
*/
|
|
1162
|
+
gl_object_type?:
|
|
1163
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
1164
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
1165
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
1166
|
+
| 'GL_ACCOUNT'
|
|
1167
|
+
| 'GL_JOURNAL_ENTRY'
|
|
1168
|
+
| 'GL_POSTING_PERIOD'
|
|
1169
|
+
| 'GL_VENDOR'
|
|
1170
|
+
| 'GL_CUSTOMER'
|
|
1171
|
+
| 'GL_EMPLOYEE'
|
|
1172
|
+
| 'GL_SUBSIDIARY';
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Accounting object name.
|
|
1176
|
+
*/
|
|
1177
|
+
name?: string;
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
1181
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
1182
|
+
* indicate UTC. Null when not set.
|
|
1183
|
+
*/
|
|
1184
|
+
start_date?: string;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
1188
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
1189
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
1190
|
+
*/
|
|
1191
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
1195
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
1196
|
+
* not available in this response.
|
|
1197
|
+
*/
|
|
1198
|
+
total_amortized_amount?: number;
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
1202
|
+
* schedule currency code is not available in this response.
|
|
1203
|
+
*/
|
|
1204
|
+
total_amount?: number;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* ERP amortization template for this line.
|
|
1209
|
+
*/
|
|
1210
|
+
export interface GlAmortizationTemplate {
|
|
1211
|
+
/**
|
|
1212
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
1213
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
1214
|
+
*/
|
|
1215
|
+
accounting_integration_id?: string;
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Object ID in the connected accounting system.
|
|
1219
|
+
*/
|
|
1220
|
+
gl_object_id?: string;
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
1224
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
1225
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
1226
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
1227
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
1228
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
1229
|
+
* when not set.
|
|
1230
|
+
*/
|
|
1231
|
+
gl_object_type?:
|
|
1232
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
1233
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
1234
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
1235
|
+
| 'GL_ACCOUNT'
|
|
1236
|
+
| 'GL_JOURNAL_ENTRY'
|
|
1237
|
+
| 'GL_POSTING_PERIOD'
|
|
1238
|
+
| 'GL_VENDOR'
|
|
1239
|
+
| 'GL_CUSTOMER'
|
|
1240
|
+
| 'GL_EMPLOYEE'
|
|
1241
|
+
| 'GL_SUBSIDIARY';
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* Accounting object name.
|
|
1245
|
+
*/
|
|
1246
|
+
name?: string;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
1251
|
+
*/
|
|
1252
|
+
export interface PrepaidAccount {
|
|
1253
|
+
/**
|
|
1254
|
+
* Account ID in the connected accounting system.
|
|
1255
|
+
*/
|
|
1256
|
+
account_id?: string;
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Account code.
|
|
1260
|
+
*/
|
|
1261
|
+
code?: string;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* Account name.
|
|
1265
|
+
*/
|
|
1266
|
+
name?: string;
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* IDs of custom dimensions required by this account.
|
|
1270
|
+
*/
|
|
1271
|
+
required_custom_dimensions?: Array<string>;
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* Whether this account requires a department.
|
|
1275
|
+
*/
|
|
1276
|
+
requires_department?: boolean;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* Whether this account requires a work location.
|
|
1280
|
+
*/
|
|
1281
|
+
requires_work_location?: boolean;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
1285
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
1286
|
+
* when not set.
|
|
1287
|
+
*/
|
|
1288
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* Total tax amount for this line in the merchant currency.
|
|
1293
|
+
*/
|
|
1294
|
+
export interface TaxAmount {
|
|
1295
|
+
/**
|
|
1296
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1297
|
+
*/
|
|
1298
|
+
currency_type?: string;
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* The decimal amount for the currency.
|
|
1302
|
+
*/
|
|
1303
|
+
value?: number;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
1309
|
+
* decimal string.
|
|
1310
|
+
*/
|
|
1311
|
+
export interface MerchantAmount {
|
|
1312
|
+
/**
|
|
1313
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1314
|
+
*/
|
|
1315
|
+
currency_type?: string;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* The decimal amount for the currency.
|
|
1319
|
+
*/
|
|
1320
|
+
value?: number;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
1325
|
+
* `reimbursements.read`.
|
|
1326
|
+
*
|
|
1327
|
+
* Expandable field
|
|
1328
|
+
*/
|
|
1329
|
+
export interface MileageRate {
|
|
1330
|
+
/**
|
|
1331
|
+
* Company mileage rate ID.
|
|
1332
|
+
*/
|
|
1333
|
+
id: string;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* When the mileage rate was created, as an ISO 8601 date-time in UTC.
|
|
1337
|
+
*/
|
|
1338
|
+
created_at: string;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
|
|
1342
|
+
*/
|
|
1343
|
+
updated_at: string;
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* ISO 3166-1 alpha-2 country code.
|
|
1347
|
+
*/
|
|
1348
|
+
country?: string;
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1352
|
+
*/
|
|
1353
|
+
end_date?: string;
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* Whether an additional half cent per distance unit applies.
|
|
1357
|
+
*/
|
|
1358
|
+
half_cent?: boolean;
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* Company-defined label for this mileage rate, such as the rate used for a country
|
|
1362
|
+
* or vehicle type.
|
|
1363
|
+
*/
|
|
1364
|
+
name?: string;
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
1368
|
+
*/
|
|
1369
|
+
rate?: MileageRate.Rate;
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1373
|
+
*/
|
|
1374
|
+
start_date?: string;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* Distance unit, mi or km.
|
|
1378
|
+
*/
|
|
1379
|
+
units?: 'km' | 'mi';
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
export namespace MileageRate {
|
|
1383
|
+
/**
|
|
1384
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
1385
|
+
*/
|
|
1386
|
+
export interface Rate {
|
|
1387
|
+
/**
|
|
1388
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1389
|
+
*/
|
|
1390
|
+
currency_type?: string;
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* The decimal amount for the currency.
|
|
1394
|
+
*/
|
|
1395
|
+
value?: number;
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
1401
|
+
*/
|
|
1402
|
+
export interface PayoutAmount {
|
|
1403
|
+
/**
|
|
1404
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1405
|
+
*/
|
|
1406
|
+
currency_type?: string;
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* The decimal amount for the currency.
|
|
1410
|
+
*/
|
|
1411
|
+
value?: number;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
export interface PerDiemLineItem {
|
|
1415
|
+
/**
|
|
1416
|
+
* Sub-rate amount for one unit. The `value` is a decimal string.
|
|
1417
|
+
*/
|
|
1418
|
+
amount?: PerDiemLineItem.Amount;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* amount times count. The `value` is a decimal string. Negative when line_type is
|
|
1422
|
+
* EXCLUDE.
|
|
1423
|
+
*/
|
|
1424
|
+
calculated_amount?: PerDiemLineItem.CalculatedAmount;
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* How many units.
|
|
1428
|
+
*/
|
|
1429
|
+
count?: number;
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* Sub-rate label.
|
|
1433
|
+
*/
|
|
1434
|
+
label?: string;
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* `INCLUDE`: this row is added to the reimbursement. `EXCLUDE`: this row is
|
|
1438
|
+
* subtracted. `calculated_amount.value` is negative when excluded.
|
|
1439
|
+
*/
|
|
1440
|
+
line_type?: 'INCLUDE' | 'EXCLUDE';
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* Per diem sub-rate ID.
|
|
1444
|
+
*/
|
|
1445
|
+
sub_rate_id?: string;
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* `FULL_DAY`: the full daily allowance. `MEALS`: the meals portion of the daily
|
|
1449
|
+
* allowance. `OTHERS`: an allowance that is not the full day or meals.
|
|
1450
|
+
*/
|
|
1451
|
+
sub_rate_type?: 'FULL_DAY' | 'MEALS' | 'OTHERS';
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
export namespace PerDiemLineItem {
|
|
1455
|
+
/**
|
|
1456
|
+
* Sub-rate amount for one unit. The `value` is a decimal string.
|
|
1457
|
+
*/
|
|
1458
|
+
export interface Amount {
|
|
1459
|
+
/**
|
|
1460
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1461
|
+
*/
|
|
1462
|
+
currency_type?: string;
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* The decimal amount for the currency.
|
|
1466
|
+
*/
|
|
1467
|
+
value?: number;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* amount times count. The `value` is a decimal string. Negative when line_type is
|
|
1472
|
+
* EXCLUDE.
|
|
1473
|
+
*/
|
|
1474
|
+
export interface CalculatedAmount {
|
|
1475
|
+
/**
|
|
1476
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1477
|
+
*/
|
|
1478
|
+
currency_type?: string;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* The decimal amount for the currency.
|
|
1482
|
+
*/
|
|
1483
|
+
value?: number;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
1489
|
+
* `reimbursements.read`.
|
|
1490
|
+
*
|
|
1491
|
+
* Expandable field
|
|
1492
|
+
*/
|
|
1493
|
+
export interface PerDiemRate {
|
|
1494
|
+
/**
|
|
1495
|
+
* Per diem rate ID.
|
|
1496
|
+
*/
|
|
1497
|
+
id: string;
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* When the per diem rate was created, as an ISO 8601 date-time in UTC.
|
|
1501
|
+
*/
|
|
1502
|
+
created_at: string;
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
|
|
1506
|
+
*/
|
|
1507
|
+
updated_at: string;
|
|
1508
|
+
|
|
1509
|
+
/**
|
|
1510
|
+
* Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
|
|
1511
|
+
* US.
|
|
1512
|
+
*/
|
|
1513
|
+
country?: string;
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* Currency of the per diem rate, as an ISO 4217 code. Example: USD.
|
|
1517
|
+
*/
|
|
1518
|
+
currency?: string;
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* Place this per diem rate applies to, such as a city.
|
|
1522
|
+
*/
|
|
1523
|
+
destination_name?: string;
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1527
|
+
*/
|
|
1528
|
+
end_date?: string;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* Whether the rate is archived. Archived rates remain readable for historical
|
|
1532
|
+
* references.
|
|
1533
|
+
*/
|
|
1534
|
+
is_archived?: boolean;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Whether this is the current version of the rate.
|
|
1538
|
+
*/
|
|
1539
|
+
is_current?: boolean;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1543
|
+
*/
|
|
1544
|
+
start_date?: string;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* Receipt file and its filename.
|
|
1549
|
+
*/
|
|
1550
|
+
export interface Receipt {
|
|
1551
|
+
/**
|
|
1552
|
+
* URL for accessing the file.
|
|
1553
|
+
*/
|
|
1554
|
+
url: string;
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* Original file name, when recorded.
|
|
1558
|
+
*/
|
|
1559
|
+
file_name?: string;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
1564
|
+
*/
|
|
1565
|
+
export interface StartLocation {
|
|
1566
|
+
/**
|
|
1567
|
+
* Address of this point. Null when the point has no address.
|
|
1568
|
+
*/
|
|
1569
|
+
address?: string;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1573
|
+
* has no coordinates.
|
|
1574
|
+
*/
|
|
1575
|
+
coordinates?: StartLocation.Coordinates;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
export namespace StartLocation {
|
|
1579
|
+
/**
|
|
1580
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1581
|
+
* has no coordinates.
|
|
1582
|
+
*/
|
|
1583
|
+
export interface Coordinates {
|
|
1584
|
+
/**
|
|
1585
|
+
* Latitude of this point, in decimal degrees.
|
|
1586
|
+
*/
|
|
1587
|
+
latitude?: number;
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* Longitude of this point, in decimal degrees.
|
|
1591
|
+
*/
|
|
1592
|
+
longitude?: number;
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
1598
|
+
*
|
|
1599
|
+
* Expandable field
|
|
1600
|
+
*/
|
|
1601
|
+
export interface Vendor {
|
|
1602
|
+
/**
|
|
1603
|
+
* Identifier field
|
|
1604
|
+
*/
|
|
1605
|
+
id: string;
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Record creation date
|
|
1609
|
+
*/
|
|
1610
|
+
created_at: string;
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* Record update date
|
|
1614
|
+
*/
|
|
1615
|
+
updated_at: string;
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
1619
|
+
* references.
|
|
1620
|
+
*/
|
|
1621
|
+
is_archived?: boolean;
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
1625
|
+
*/
|
|
1626
|
+
logo?: string;
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
1630
|
+
* alternate names.
|
|
1631
|
+
*/
|
|
1632
|
+
name?: string;
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* Start, end, or intermediate stop on a mileage trip.
|
|
1637
|
+
*/
|
|
1638
|
+
export interface Waypoint {
|
|
1639
|
+
/**
|
|
1640
|
+
* Address of this point. Null when the point has no address.
|
|
1641
|
+
*/
|
|
1642
|
+
address?: string;
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1646
|
+
* has no coordinates.
|
|
1647
|
+
*/
|
|
1648
|
+
coordinates?: Waypoint.Coordinates;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
export namespace Waypoint {
|
|
1652
|
+
/**
|
|
1653
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1654
|
+
* has no coordinates.
|
|
1655
|
+
*/
|
|
1656
|
+
export interface Coordinates {
|
|
1657
|
+
/**
|
|
1658
|
+
* Latitude of this point, in decimal degrees.
|
|
1659
|
+
*/
|
|
1660
|
+
latitude?: number;
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Longitude of this point, in decimal degrees.
|
|
1664
|
+
*/
|
|
1665
|
+
longitude?: number;
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
447
1669
|
|
|
448
1670
|
/**
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
* A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
|
|
452
|
-
* use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
|
|
453
|
-
* Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
|
|
454
|
-
* that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
|
|
455
|
-
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
456
|
-
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
457
|
-
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
1671
|
+
* Meta information for the response.
|
|
458
1672
|
*/
|
|
459
|
-
export interface
|
|
1673
|
+
export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
460
1674
|
/**
|
|
461
1675
|
* Identifier field
|
|
462
1676
|
*/
|
|
@@ -500,12 +1714,12 @@ export interface ReimbursementListResponse {
|
|
|
500
1714
|
/**
|
|
501
1715
|
* Other attached files, including filenames and recorded upload metadata.
|
|
502
1716
|
*/
|
|
503
|
-
attachments?: Array<
|
|
1717
|
+
attachments?: Array<ReimbursementRetrieveResponse.Attachment>;
|
|
504
1718
|
|
|
505
1719
|
/**
|
|
506
1720
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
507
1721
|
*/
|
|
508
|
-
company_amount?:
|
|
1722
|
+
company_amount?: ReimbursementRetrieveResponse.CompanyAmount;
|
|
509
1723
|
|
|
510
1724
|
/**
|
|
511
1725
|
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
@@ -515,7 +1729,7 @@ export interface ReimbursementListResponse {
|
|
|
515
1729
|
/**
|
|
516
1730
|
* End of a mileage trip. Null except on mileage reimbursements.
|
|
517
1731
|
*/
|
|
518
|
-
end_location?:
|
|
1732
|
+
end_location?: ReimbursementRetrieveResponse.EndLocation;
|
|
519
1733
|
|
|
520
1734
|
/**
|
|
521
1735
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
@@ -545,12 +1759,12 @@ export interface ReimbursementListResponse {
|
|
|
545
1759
|
/**
|
|
546
1760
|
* Vendor in the connected accounting system.
|
|
547
1761
|
*/
|
|
548
|
-
gl_vendor?:
|
|
1762
|
+
gl_vendor?: ReimbursementRetrieveResponse.GlVendor;
|
|
549
1763
|
|
|
550
1764
|
/**
|
|
551
1765
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
552
1766
|
*/
|
|
553
|
-
line_items?: Array<
|
|
1767
|
+
line_items?: Array<ReimbursementRetrieveResponse.LineItem>;
|
|
554
1768
|
|
|
555
1769
|
/**
|
|
556
1770
|
* Memo entered on the transaction.
|
|
@@ -561,7 +1775,7 @@ export interface ReimbursementListResponse {
|
|
|
561
1775
|
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
562
1776
|
* decimal string.
|
|
563
1777
|
*/
|
|
564
|
-
merchant_amount?:
|
|
1778
|
+
merchant_amount?: ReimbursementRetrieveResponse.MerchantAmount;
|
|
565
1779
|
|
|
566
1780
|
/**
|
|
567
1781
|
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
@@ -569,7 +1783,7 @@ export interface ReimbursementListResponse {
|
|
|
569
1783
|
*
|
|
570
1784
|
* Expandable field
|
|
571
1785
|
*/
|
|
572
|
-
mileage_rate?:
|
|
1786
|
+
mileage_rate?: ReimbursementRetrieveResponse.MileageRate;
|
|
573
1787
|
|
|
574
1788
|
/**
|
|
575
1789
|
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
@@ -581,7 +1795,7 @@ export interface ReimbursementListResponse {
|
|
|
581
1795
|
/**
|
|
582
1796
|
* Amount credited to the worker. The `value` is a decimal string.
|
|
583
1797
|
*/
|
|
584
|
-
payout_amount?:
|
|
1798
|
+
payout_amount?: ReimbursementRetrieveResponse.PayoutAmount;
|
|
585
1799
|
|
|
586
1800
|
/**
|
|
587
1801
|
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
@@ -601,7 +1815,7 @@ export interface ReimbursementListResponse {
|
|
|
601
1815
|
/**
|
|
602
1816
|
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
603
1817
|
*/
|
|
604
|
-
per_diem_line_items?: Array<
|
|
1818
|
+
per_diem_line_items?: Array<ReimbursementRetrieveResponse.PerDiemLineItem>;
|
|
605
1819
|
|
|
606
1820
|
/**
|
|
607
1821
|
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
@@ -609,7 +1823,7 @@ export interface ReimbursementListResponse {
|
|
|
609
1823
|
*
|
|
610
1824
|
* Expandable field
|
|
611
1825
|
*/
|
|
612
|
-
per_diem_rate?:
|
|
1826
|
+
per_diem_rate?: ReimbursementRetrieveResponse.PerDiemRate;
|
|
613
1827
|
|
|
614
1828
|
/**
|
|
615
1829
|
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
@@ -621,12 +1835,12 @@ export interface ReimbursementListResponse {
|
|
|
621
1835
|
/**
|
|
622
1836
|
* Receipt file and its filename.
|
|
623
1837
|
*/
|
|
624
|
-
receipt?:
|
|
1838
|
+
receipt?: ReimbursementRetrieveResponse.Receipt;
|
|
625
1839
|
|
|
626
1840
|
/**
|
|
627
1841
|
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
628
1842
|
*/
|
|
629
|
-
start_location?:
|
|
1843
|
+
start_location?: ReimbursementRetrieveResponse.StartLocation;
|
|
630
1844
|
|
|
631
1845
|
/**
|
|
632
1846
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
@@ -658,7 +1872,7 @@ export interface ReimbursementListResponse {
|
|
|
658
1872
|
*
|
|
659
1873
|
* Expandable field
|
|
660
1874
|
*/
|
|
661
|
-
vendor?:
|
|
1875
|
+
vendor?: ReimbursementRetrieveResponse.Vendor;
|
|
662
1876
|
|
|
663
1877
|
/**
|
|
664
1878
|
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
@@ -669,7 +1883,7 @@ export interface ReimbursementListResponse {
|
|
|
669
1883
|
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
670
1884
|
* except on mileage reimbursements.
|
|
671
1885
|
*/
|
|
672
|
-
waypoints?: Array<
|
|
1886
|
+
waypoints?: Array<ReimbursementRetrieveResponse.Waypoint>;
|
|
673
1887
|
|
|
674
1888
|
/**
|
|
675
1889
|
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
@@ -684,7 +1898,7 @@ export interface ReimbursementListResponse {
|
|
|
684
1898
|
worker_id?: string;
|
|
685
1899
|
}
|
|
686
1900
|
|
|
687
|
-
export namespace
|
|
1901
|
+
export namespace ReimbursementRetrieveResponse {
|
|
688
1902
|
/**
|
|
689
1903
|
* A Finance transaction attachment with recorded upload details.
|
|
690
1904
|
*/
|
|
@@ -1451,9 +2665,17 @@ export namespace ReimbursementListResponse {
|
|
|
1451
2665
|
}
|
|
1452
2666
|
|
|
1453
2667
|
/**
|
|
1454
|
-
*
|
|
2668
|
+
* A Finance reimbursement the caller can see.
|
|
2669
|
+
*
|
|
2670
|
+
* A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
|
|
2671
|
+
* use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
|
|
2672
|
+
* Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
|
|
2673
|
+
* that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
|
|
2674
|
+
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
2675
|
+
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
2676
|
+
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
1455
2677
|
*/
|
|
1456
|
-
export interface
|
|
2678
|
+
export interface ReimbursementUpdateResponse {
|
|
1457
2679
|
/**
|
|
1458
2680
|
* Identifier field
|
|
1459
2681
|
*/
|
|
@@ -1497,12 +2719,12 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1497
2719
|
/**
|
|
1498
2720
|
* Other attached files, including filenames and recorded upload metadata.
|
|
1499
2721
|
*/
|
|
1500
|
-
attachments?: Array<
|
|
2722
|
+
attachments?: Array<ReimbursementUpdateResponse.Attachment>;
|
|
1501
2723
|
|
|
1502
2724
|
/**
|
|
1503
2725
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
1504
2726
|
*/
|
|
1505
|
-
company_amount?:
|
|
2727
|
+
company_amount?: ReimbursementUpdateResponse.CompanyAmount;
|
|
1506
2728
|
|
|
1507
2729
|
/**
|
|
1508
2730
|
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
@@ -1512,7 +2734,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1512
2734
|
/**
|
|
1513
2735
|
* End of a mileage trip. Null except on mileage reimbursements.
|
|
1514
2736
|
*/
|
|
1515
|
-
end_location?:
|
|
2737
|
+
end_location?: ReimbursementUpdateResponse.EndLocation;
|
|
1516
2738
|
|
|
1517
2739
|
/**
|
|
1518
2740
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
@@ -1542,12 +2764,12 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1542
2764
|
/**
|
|
1543
2765
|
* Vendor in the connected accounting system.
|
|
1544
2766
|
*/
|
|
1545
|
-
gl_vendor?:
|
|
2767
|
+
gl_vendor?: ReimbursementUpdateResponse.GlVendor;
|
|
1546
2768
|
|
|
1547
2769
|
/**
|
|
1548
2770
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
1549
2771
|
*/
|
|
1550
|
-
line_items?: Array<
|
|
2772
|
+
line_items?: Array<ReimbursementUpdateResponse.LineItem>;
|
|
1551
2773
|
|
|
1552
2774
|
/**
|
|
1553
2775
|
* Memo entered on the transaction.
|
|
@@ -1558,7 +2780,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1558
2780
|
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
1559
2781
|
* decimal string.
|
|
1560
2782
|
*/
|
|
1561
|
-
merchant_amount?:
|
|
2783
|
+
merchant_amount?: ReimbursementUpdateResponse.MerchantAmount;
|
|
1562
2784
|
|
|
1563
2785
|
/**
|
|
1564
2786
|
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
@@ -1566,7 +2788,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1566
2788
|
*
|
|
1567
2789
|
* Expandable field
|
|
1568
2790
|
*/
|
|
1569
|
-
mileage_rate?:
|
|
2791
|
+
mileage_rate?: ReimbursementUpdateResponse.MileageRate;
|
|
1570
2792
|
|
|
1571
2793
|
/**
|
|
1572
2794
|
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
@@ -1578,7 +2800,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1578
2800
|
/**
|
|
1579
2801
|
* Amount credited to the worker. The `value` is a decimal string.
|
|
1580
2802
|
*/
|
|
1581
|
-
payout_amount?:
|
|
2803
|
+
payout_amount?: ReimbursementUpdateResponse.PayoutAmount;
|
|
1582
2804
|
|
|
1583
2805
|
/**
|
|
1584
2806
|
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
@@ -1598,7 +2820,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1598
2820
|
/**
|
|
1599
2821
|
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
1600
2822
|
*/
|
|
1601
|
-
per_diem_line_items?: Array<
|
|
2823
|
+
per_diem_line_items?: Array<ReimbursementUpdateResponse.PerDiemLineItem>;
|
|
1602
2824
|
|
|
1603
2825
|
/**
|
|
1604
2826
|
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
@@ -1606,7 +2828,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1606
2828
|
*
|
|
1607
2829
|
* Expandable field
|
|
1608
2830
|
*/
|
|
1609
|
-
per_diem_rate?:
|
|
2831
|
+
per_diem_rate?: ReimbursementUpdateResponse.PerDiemRate;
|
|
1610
2832
|
|
|
1611
2833
|
/**
|
|
1612
2834
|
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
@@ -1618,12 +2840,12 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1618
2840
|
/**
|
|
1619
2841
|
* Receipt file and its filename.
|
|
1620
2842
|
*/
|
|
1621
|
-
receipt?:
|
|
2843
|
+
receipt?: ReimbursementUpdateResponse.Receipt;
|
|
1622
2844
|
|
|
1623
2845
|
/**
|
|
1624
2846
|
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
1625
2847
|
*/
|
|
1626
|
-
start_location?:
|
|
2848
|
+
start_location?: ReimbursementUpdateResponse.StartLocation;
|
|
1627
2849
|
|
|
1628
2850
|
/**
|
|
1629
2851
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
@@ -1655,7 +2877,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1655
2877
|
*
|
|
1656
2878
|
* Expandable field
|
|
1657
2879
|
*/
|
|
1658
|
-
vendor?:
|
|
2880
|
+
vendor?: ReimbursementUpdateResponse.Vendor;
|
|
1659
2881
|
|
|
1660
2882
|
/**
|
|
1661
2883
|
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
@@ -1666,7 +2888,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1666
2888
|
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
1667
2889
|
* except on mileage reimbursements.
|
|
1668
2890
|
*/
|
|
1669
|
-
waypoints?: Array<
|
|
2891
|
+
waypoints?: Array<ReimbursementUpdateResponse.Waypoint>;
|
|
1670
2892
|
|
|
1671
2893
|
/**
|
|
1672
2894
|
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
@@ -1681,7 +2903,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
1681
2903
|
worker_id?: string;
|
|
1682
2904
|
}
|
|
1683
2905
|
|
|
1684
|
-
export namespace
|
|
2906
|
+
export namespace ReimbursementUpdateResponse {
|
|
1685
2907
|
/**
|
|
1686
2908
|
* A Finance transaction attachment with recorded upload details.
|
|
1687
2909
|
*/
|
|
@@ -2458,7 +3680,7 @@ export namespace ReimbursementRetrieveResponse {
|
|
|
2458
3680
|
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
2459
3681
|
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
2460
3682
|
*/
|
|
2461
|
-
export interface
|
|
3683
|
+
export interface ReimbursementUploadReceiptResponse {
|
|
2462
3684
|
/**
|
|
2463
3685
|
* Identifier field
|
|
2464
3686
|
*/
|
|
@@ -2502,12 +3724,12 @@ export interface ReimbursementUpdateResponse {
|
|
|
2502
3724
|
/**
|
|
2503
3725
|
* Other attached files, including filenames and recorded upload metadata.
|
|
2504
3726
|
*/
|
|
2505
|
-
attachments?: Array<
|
|
3727
|
+
attachments?: Array<ReimbursementUploadReceiptResponse.Attachment>;
|
|
2506
3728
|
|
|
2507
3729
|
/**
|
|
2508
3730
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
2509
3731
|
*/
|
|
2510
|
-
company_amount?:
|
|
3732
|
+
company_amount?: ReimbursementUploadReceiptResponse.CompanyAmount;
|
|
2511
3733
|
|
|
2512
3734
|
/**
|
|
2513
3735
|
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
@@ -2517,7 +3739,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2517
3739
|
/**
|
|
2518
3740
|
* End of a mileage trip. Null except on mileage reimbursements.
|
|
2519
3741
|
*/
|
|
2520
|
-
end_location?:
|
|
3742
|
+
end_location?: ReimbursementUploadReceiptResponse.EndLocation;
|
|
2521
3743
|
|
|
2522
3744
|
/**
|
|
2523
3745
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
@@ -2547,12 +3769,12 @@ export interface ReimbursementUpdateResponse {
|
|
|
2547
3769
|
/**
|
|
2548
3770
|
* Vendor in the connected accounting system.
|
|
2549
3771
|
*/
|
|
2550
|
-
gl_vendor?:
|
|
3772
|
+
gl_vendor?: ReimbursementUploadReceiptResponse.GlVendor;
|
|
2551
3773
|
|
|
2552
3774
|
/**
|
|
2553
3775
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
2554
3776
|
*/
|
|
2555
|
-
line_items?: Array<
|
|
3777
|
+
line_items?: Array<ReimbursementUploadReceiptResponse.LineItem>;
|
|
2556
3778
|
|
|
2557
3779
|
/**
|
|
2558
3780
|
* Memo entered on the transaction.
|
|
@@ -2563,7 +3785,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2563
3785
|
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
2564
3786
|
* decimal string.
|
|
2565
3787
|
*/
|
|
2566
|
-
merchant_amount?:
|
|
3788
|
+
merchant_amount?: ReimbursementUploadReceiptResponse.MerchantAmount;
|
|
2567
3789
|
|
|
2568
3790
|
/**
|
|
2569
3791
|
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
@@ -2571,7 +3793,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2571
3793
|
*
|
|
2572
3794
|
* Expandable field
|
|
2573
3795
|
*/
|
|
2574
|
-
mileage_rate?:
|
|
3796
|
+
mileage_rate?: ReimbursementUploadReceiptResponse.MileageRate;
|
|
2575
3797
|
|
|
2576
3798
|
/**
|
|
2577
3799
|
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
@@ -2583,7 +3805,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2583
3805
|
/**
|
|
2584
3806
|
* Amount credited to the worker. The `value` is a decimal string.
|
|
2585
3807
|
*/
|
|
2586
|
-
payout_amount?:
|
|
3808
|
+
payout_amount?: ReimbursementUploadReceiptResponse.PayoutAmount;
|
|
2587
3809
|
|
|
2588
3810
|
/**
|
|
2589
3811
|
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
@@ -2603,7 +3825,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2603
3825
|
/**
|
|
2604
3826
|
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
2605
3827
|
*/
|
|
2606
|
-
per_diem_line_items?: Array<
|
|
3828
|
+
per_diem_line_items?: Array<ReimbursementUploadReceiptResponse.PerDiemLineItem>;
|
|
2607
3829
|
|
|
2608
3830
|
/**
|
|
2609
3831
|
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
@@ -2611,7 +3833,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2611
3833
|
*
|
|
2612
3834
|
* Expandable field
|
|
2613
3835
|
*/
|
|
2614
|
-
per_diem_rate?:
|
|
3836
|
+
per_diem_rate?: ReimbursementUploadReceiptResponse.PerDiemRate;
|
|
2615
3837
|
|
|
2616
3838
|
/**
|
|
2617
3839
|
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
@@ -2623,12 +3845,12 @@ export interface ReimbursementUpdateResponse {
|
|
|
2623
3845
|
/**
|
|
2624
3846
|
* Receipt file and its filename.
|
|
2625
3847
|
*/
|
|
2626
|
-
receipt?:
|
|
3848
|
+
receipt?: ReimbursementUploadReceiptResponse.Receipt;
|
|
2627
3849
|
|
|
2628
3850
|
/**
|
|
2629
3851
|
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
2630
3852
|
*/
|
|
2631
|
-
start_location?:
|
|
3853
|
+
start_location?: ReimbursementUploadReceiptResponse.StartLocation;
|
|
2632
3854
|
|
|
2633
3855
|
/**
|
|
2634
3856
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
@@ -2660,7 +3882,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2660
3882
|
*
|
|
2661
3883
|
* Expandable field
|
|
2662
3884
|
*/
|
|
2663
|
-
vendor?:
|
|
3885
|
+
vendor?: ReimbursementUploadReceiptResponse.Vendor;
|
|
2664
3886
|
|
|
2665
3887
|
/**
|
|
2666
3888
|
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
@@ -2671,7 +3893,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2671
3893
|
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
2672
3894
|
* except on mileage reimbursements.
|
|
2673
3895
|
*/
|
|
2674
|
-
waypoints?: Array<
|
|
3896
|
+
waypoints?: Array<ReimbursementUploadReceiptResponse.Waypoint>;
|
|
2675
3897
|
|
|
2676
3898
|
/**
|
|
2677
3899
|
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
@@ -2686,7 +3908,7 @@ export interface ReimbursementUpdateResponse {
|
|
|
2686
3908
|
worker_id?: string;
|
|
2687
3909
|
}
|
|
2688
3910
|
|
|
2689
|
-
export namespace
|
|
3911
|
+
export namespace ReimbursementUploadReceiptResponse {
|
|
2690
3912
|
/**
|
|
2691
3913
|
* A Finance transaction attachment with recorded upload details.
|
|
2692
3914
|
*/
|
|
@@ -3474,6 +4696,8 @@ export interface ReimbursementRetrieveParams {
|
|
|
3474
4696
|
export interface ReimbursementUpdateParams {
|
|
3475
4697
|
/**
|
|
3476
4698
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
4699
|
+
* `amount` and `tax_amount` are decimal strings in the merchant currency. The sum
|
|
4700
|
+
* of `amount` values must match the transaction's merchant amount.
|
|
3477
4701
|
*/
|
|
3478
4702
|
line_items?: Array<ReimbursementUpdateParams.LineItem>;
|
|
3479
4703
|
}
|
|
@@ -3597,26 +4821,38 @@ export namespace ReimbursementUpdateParams {
|
|
|
3597
4821
|
account_id?: string;
|
|
3598
4822
|
|
|
3599
4823
|
/**
|
|
3600
|
-
* Account
|
|
4824
|
+
* Account name.
|
|
3601
4825
|
*/
|
|
3602
|
-
|
|
4826
|
+
name?: string;
|
|
3603
4827
|
|
|
3604
4828
|
/**
|
|
3605
|
-
*
|
|
4829
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
4830
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
4831
|
+
* when not set.
|
|
3606
4832
|
*/
|
|
3607
|
-
|
|
4833
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
3608
4834
|
}
|
|
3609
4835
|
}
|
|
3610
4836
|
}
|
|
3611
4837
|
|
|
4838
|
+
export interface ReimbursementUploadReceiptParams {
|
|
4839
|
+
/**
|
|
4840
|
+
* The receipt file: PDF, JPEG, PNG, or BMP, up to 10 MB. The type is detected from
|
|
4841
|
+
* the file's contents.
|
|
4842
|
+
*/
|
|
4843
|
+
file: Uploadable;
|
|
4844
|
+
}
|
|
4845
|
+
|
|
3612
4846
|
export declare namespace Reimbursements {
|
|
3613
4847
|
export {
|
|
3614
4848
|
type ReimbursementListResponse as ReimbursementListResponse,
|
|
3615
4849
|
type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse,
|
|
3616
4850
|
type ReimbursementUpdateResponse as ReimbursementUpdateResponse,
|
|
4851
|
+
type ReimbursementUploadReceiptResponse as ReimbursementUploadReceiptResponse,
|
|
3617
4852
|
type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL,
|
|
3618
4853
|
type ReimbursementListParams as ReimbursementListParams,
|
|
3619
4854
|
type ReimbursementRetrieveParams as ReimbursementRetrieveParams,
|
|
3620
4855
|
type ReimbursementUpdateParams as ReimbursementUpdateParams,
|
|
4856
|
+
type ReimbursementUploadReceiptParams as ReimbursementUploadReceiptParams,
|
|
3621
4857
|
};
|
|
3622
4858
|
}
|