@rippling/rippling-sdk 0.2.0-alpha.115 → 0.2.0-alpha.116
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 +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/lib/manifest/acp-agent-source-files.d.mts +2 -1
- package/lib/manifest/acp-agent-source-files.d.mts.map +1 -1
- package/lib/manifest/acp-agent-source-files.d.ts +2 -1
- package/lib/manifest/acp-agent-source-files.d.ts.map +1 -1
- package/lib/manifest/acp-agent-source-files.js +21 -2
- package/lib/manifest/acp-agent-source-files.js.map +1 -1
- package/lib/manifest/acp-agent-source-files.mjs +21 -2
- package/lib/manifest/acp-agent-source-files.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +32 -6
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +32 -6
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +12 -6
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +12 -6
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/sessions/messages.d.mts +16 -1
- package/resources/agents/sessions/messages.d.mts.map +1 -1
- package/resources/agents/sessions/messages.d.ts +16 -1
- package/resources/agents/sessions/messages.d.ts.map +1 -1
- package/resources/agents/sessions/messages.js +4 -1
- package/resources/agents/sessions/messages.js.map +1 -1
- package/resources/agents/sessions/messages.mjs +4 -1
- package/resources/agents/sessions/messages.mjs.map +1 -1
- package/resources/card-transactions.d.mts +759 -54
- package/resources/card-transactions.d.mts.map +1 -1
- package/resources/card-transactions.d.ts +759 -54
- package/resources/card-transactions.d.ts.map +1 -1
- package/resources/card-transactions.js +204 -0
- package/resources/card-transactions.js.map +1 -1
- package/resources/card-transactions.mjs +204 -0
- package/resources/card-transactions.mjs.map +1 -1
- package/resources/custom-apps.d.mts +6 -6
- package/resources/custom-apps.d.ts +6 -6
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/package-manifests/packages/versions.d.mts +10 -0
- package/resources/package-manifests/packages/versions.d.mts.map +1 -1
- package/resources/package-manifests/packages/versions.d.ts +10 -0
- package/resources/package-manifests/packages/versions.d.ts.map +1 -1
- package/resources/package-manifests/packages/versions.js +1 -0
- package/resources/package-manifests/packages/versions.js.map +1 -1
- package/resources/package-manifests/packages/versions.mjs +1 -0
- package/resources/package-manifests/packages/versions.mjs.map +1 -1
- package/resources/package-versions/package-versions.d.mts +35 -5
- package/resources/package-versions/package-versions.d.mts.map +1 -1
- package/resources/package-versions/package-versions.d.ts +35 -5
- package/resources/package-versions/package-versions.d.ts.map +1 -1
- package/resources/package-versions/package-versions.js +8 -5
- package/resources/package-versions/package-versions.js.map +1 -1
- package/resources/package-versions/package-versions.mjs +8 -5
- package/resources/package-versions/package-versions.mjs.map +1 -1
- package/resources/package-versions/publish.d.mts +10 -0
- package/resources/package-versions/publish.d.mts.map +1 -1
- package/resources/package-versions/publish.d.ts +10 -0
- package/resources/package-versions/publish.d.ts.map +1 -1
- package/resources/package-versions/publish.js +1 -0
- package/resources/package-versions/publish.js.map +1 -1
- package/resources/package-versions/publish.mjs +1 -0
- package/resources/package-versions/publish.mjs.map +1 -1
- package/resources/packages/next-versions.d.mts +10 -0
- package/resources/packages/next-versions.d.mts.map +1 -1
- package/resources/packages/next-versions.d.ts +10 -0
- package/resources/packages/next-versions.d.ts.map +1 -1
- package/resources/packages/next-versions.js +1 -0
- package/resources/packages/next-versions.js.map +1 -1
- package/resources/packages/next-versions.mjs +1 -0
- package/resources/packages/next-versions.mjs.map +1 -1
- package/resources/packages/versions.d.mts +20 -0
- package/resources/packages/versions.d.mts.map +1 -1
- package/resources/packages/versions.d.ts +20 -0
- package/resources/packages/versions.d.ts.map +1 -1
- package/resources/packages/versions.js +2 -0
- package/resources/packages/versions.js.map +1 -1
- package/resources/packages/versions.mjs +2 -0
- package/resources/packages/versions.mjs.map +1 -1
- package/resources/reimbursements.d.mts +1086 -44
- package/resources/reimbursements.d.mts.map +1 -1
- package/resources/reimbursements.d.ts +1086 -44
- package/resources/reimbursements.d.ts.map +1 -1
- package/resources/reimbursements.js +212 -0
- package/resources/reimbursements.js.map +1 -1
- package/resources/reimbursements.mjs +212 -0
- package/resources/reimbursements.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/lib/manifest/acp-agent-source-files.ts +17 -2
- package/src/resources/agents/agents.ts +36 -6
- package/src/resources/agents/sessions/messages.ts +17 -1
- package/src/resources/card-transactions.ts +881 -40
- package/src/resources/custom-apps.ts +6 -6
- package/src/resources/index.ts +4 -0
- package/src/resources/package-manifests/packages/versions.ts +11 -0
- package/src/resources/package-versions/package-versions.ts +38 -5
- package/src/resources/package-versions/publish.ts +11 -0
- package/src/resources/packages/next-versions.ts +11 -0
- package/src/resources/packages/versions.ts +22 -0
- package/src/resources/reimbursements.ts +1266 -31
- 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
|
@@ -444,6 +444,226 @@ export class Reimbursements extends APIResource {
|
|
|
444
444
|
return this._client.patch(path`/reimbursements/${id}/`, { body, ...options });
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
+
/**
|
|
448
|
+
* Send the file as `multipart/form-data` in a `file` field. It is stored and
|
|
449
|
+
* appended to the reimbursement's attachments in a single request. Existing
|
|
450
|
+
* attachments are kept. As in Rippling, attachments can still be added after the
|
|
451
|
+
* reimbursement is paid out, finalized, or failed.
|
|
452
|
+
*
|
|
453
|
+
* Attachments are supporting documents, separate from the receipt. Rippling
|
|
454
|
+
* doesn't read their contents or fill in reimbursement fields from them.
|
|
455
|
+
* Attachments can only be removed in Rippling.
|
|
456
|
+
*
|
|
457
|
+
* Uploading the same file again returns the reimbursement without adding another
|
|
458
|
+
* copy, so a request can be retried after a timeout. This applies to files
|
|
459
|
+
* previously attached by this API; older attachments are not deduplicated. Returns
|
|
460
|
+
* the updated reimbursement in the same shape as `GET /reimbursements/{id}/`, with
|
|
461
|
+
* the new file last in `attachments`.
|
|
462
|
+
*
|
|
463
|
+
* @example HTTP
|
|
464
|
+
* Representative request and response shapes.
|
|
465
|
+
* ```
|
|
466
|
+
* POST /reimbursements/{id}/attachments/ HTTP/1.1
|
|
467
|
+
* Host: rest.ripplingapis.com
|
|
468
|
+
* Content-Type: multipart/form-data
|
|
469
|
+
* Accept: application/json
|
|
470
|
+
* Rippling-Api-Version: 2024-08-01
|
|
471
|
+
*
|
|
472
|
+
* <multipart form data>
|
|
473
|
+
*
|
|
474
|
+
* HTTP/1.1 200 OK
|
|
475
|
+
* Content-Type: application/json
|
|
476
|
+
*
|
|
477
|
+
* {
|
|
478
|
+
* "id": "string",
|
|
479
|
+
* "created_at": "string",
|
|
480
|
+
* "updated_at": "string",
|
|
481
|
+
* "worker_id": "string",
|
|
482
|
+
* "worker": {
|
|
483
|
+
* "id": "string",
|
|
484
|
+
* "created_at": "string",
|
|
485
|
+
* "updated_at": "string"
|
|
486
|
+
* },
|
|
487
|
+
* "company_amount": {},
|
|
488
|
+
* "merchant_amount": {
|
|
489
|
+
* "currency_type": "string",
|
|
490
|
+
* "value": 0
|
|
491
|
+
* },
|
|
492
|
+
* "accounting_date": "string",
|
|
493
|
+
* "gl_sync_state": "NOT_FINALIZED",
|
|
494
|
+
* "approval_status": "DRAFT",
|
|
495
|
+
* "entity_id": "string",
|
|
496
|
+
* "vendor": {
|
|
497
|
+
* "id": "string",
|
|
498
|
+
* "created_at": "string",
|
|
499
|
+
* "updated_at": "string",
|
|
500
|
+
* "name": "string",
|
|
501
|
+
* "logo": "string",
|
|
502
|
+
* "is_archived": false
|
|
503
|
+
* },
|
|
504
|
+
* "gl_vendor": {
|
|
505
|
+
* "id": "string",
|
|
506
|
+
* "name": "string",
|
|
507
|
+
* "gl_vendor_id": "string"
|
|
508
|
+
* },
|
|
509
|
+
* "memo": "string",
|
|
510
|
+
* "attachments": [
|
|
511
|
+
* {
|
|
512
|
+
* "url": "string",
|
|
513
|
+
* "file_name": "string",
|
|
514
|
+
* "uploaded_at": "string",
|
|
515
|
+
* "uploaded_by_id": "string"
|
|
516
|
+
* }
|
|
517
|
+
* ],
|
|
518
|
+
* "line_items": [
|
|
519
|
+
* {
|
|
520
|
+
* "gl_customer": "string",
|
|
521
|
+
* "gl_billable": "BILLABLE",
|
|
522
|
+
* "dimension_choices": {},
|
|
523
|
+
* "memo": "string",
|
|
524
|
+
* "gl_amortization_template": {
|
|
525
|
+
* "gl_object_id": "string",
|
|
526
|
+
* "accounting_integration_id": "string",
|
|
527
|
+
* "name": "string",
|
|
528
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
|
|
529
|
+
* },
|
|
530
|
+
* "amortized": false,
|
|
531
|
+
* "start_date": "string",
|
|
532
|
+
* "end_date": "string",
|
|
533
|
+
* "prepaid_account": {
|
|
534
|
+
* "account_id": "string",
|
|
535
|
+
* "name": "string",
|
|
536
|
+
* "code": "string",
|
|
537
|
+
* "type": "RECEIVABLE",
|
|
538
|
+
* "required_custom_dimensions": [],
|
|
539
|
+
* "requires_department": "string",
|
|
540
|
+
* "requires_work_location": "string"
|
|
541
|
+
* },
|
|
542
|
+
* "gl_amortization_schedule": {
|
|
543
|
+
* "gl_object_id": "string",
|
|
544
|
+
* "accounting_integration_id": "string",
|
|
545
|
+
* "name": "string",
|
|
546
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
|
|
547
|
+
* "start_date": "string",
|
|
548
|
+
* "end_date": "string",
|
|
549
|
+
* "total_amount": "string",
|
|
550
|
+
* "total_amortized_amount": "string",
|
|
551
|
+
* "amortization_period": "string",
|
|
552
|
+
* "status": "NOT_STARTED"
|
|
553
|
+
* },
|
|
554
|
+
* "gl_tax_code": "string",
|
|
555
|
+
* "id": "string",
|
|
556
|
+
* "category_id": "string",
|
|
557
|
+
* "category_name": "string",
|
|
558
|
+
* "amount": {
|
|
559
|
+
* "currency_type": "string",
|
|
560
|
+
* "value": "string"
|
|
561
|
+
* },
|
|
562
|
+
* "tax_amount": {
|
|
563
|
+
* "currency_type": "string",
|
|
564
|
+
* "value": "string"
|
|
565
|
+
* }
|
|
566
|
+
* }
|
|
567
|
+
* ],
|
|
568
|
+
* "vendor_id": "string",
|
|
569
|
+
* "transaction_date": "string",
|
|
570
|
+
* "receipt": {
|
|
571
|
+
* "url": "string",
|
|
572
|
+
* "file_name": "string"
|
|
573
|
+
* },
|
|
574
|
+
* "transaction_type": "REIMBURSEMENT",
|
|
575
|
+
* "payout_amount": {
|
|
576
|
+
* "currency_type": "string",
|
|
577
|
+
* "value": 0
|
|
578
|
+
* },
|
|
579
|
+
* "payout_method": "NOT_SET",
|
|
580
|
+
* "payout_date": "string",
|
|
581
|
+
* "distance": 0,
|
|
582
|
+
* "mileage_rate_id": "string",
|
|
583
|
+
* "mileage_rate": {
|
|
584
|
+
* "id": "string",
|
|
585
|
+
* "created_at": "string",
|
|
586
|
+
* "updated_at": "string",
|
|
587
|
+
* "name": "string",
|
|
588
|
+
* "rate": {
|
|
589
|
+
* "currency_type": "string",
|
|
590
|
+
* "value": 0
|
|
591
|
+
* },
|
|
592
|
+
* "units": "km",
|
|
593
|
+
* "start_date": "string",
|
|
594
|
+
* "end_date": "string",
|
|
595
|
+
* "country": "string",
|
|
596
|
+
* "half_cent": false
|
|
597
|
+
* },
|
|
598
|
+
* "start_location": {
|
|
599
|
+
* "address": "string",
|
|
600
|
+
* "coordinates": {
|
|
601
|
+
* "latitude": 0,
|
|
602
|
+
* "longitude": 0
|
|
603
|
+
* }
|
|
604
|
+
* },
|
|
605
|
+
* "end_location": {
|
|
606
|
+
* "address": "string",
|
|
607
|
+
* "coordinates": {
|
|
608
|
+
* "latitude": 0,
|
|
609
|
+
* "longitude": 0
|
|
610
|
+
* }
|
|
611
|
+
* },
|
|
612
|
+
* "waypoints": [
|
|
613
|
+
* {
|
|
614
|
+
* "address": "string",
|
|
615
|
+
* "coordinates": {
|
|
616
|
+
* "latitude": "string",
|
|
617
|
+
* "longitude": "string"
|
|
618
|
+
* }
|
|
619
|
+
* }
|
|
620
|
+
* ],
|
|
621
|
+
* "trip_start_date": "string",
|
|
622
|
+
* "trip_end_date": "string",
|
|
623
|
+
* "per_diem_rate_id": "string",
|
|
624
|
+
* "per_diem_rate": {
|
|
625
|
+
* "id": "string",
|
|
626
|
+
* "created_at": "string",
|
|
627
|
+
* "updated_at": "string",
|
|
628
|
+
* "destination_name": "string",
|
|
629
|
+
* "country": "string",
|
|
630
|
+
* "currency": "string",
|
|
631
|
+
* "start_date": "string",
|
|
632
|
+
* "end_date": "string",
|
|
633
|
+
* "is_current": false,
|
|
634
|
+
* "is_archived": false
|
|
635
|
+
* },
|
|
636
|
+
* "per_diem_line_items": [
|
|
637
|
+
* {
|
|
638
|
+
* "sub_rate_id": "string",
|
|
639
|
+
* "sub_rate_type": "FULL_DAY",
|
|
640
|
+
* "label": "string",
|
|
641
|
+
* "amount": {
|
|
642
|
+
* "currency_type": "string",
|
|
643
|
+
* "value": "string"
|
|
644
|
+
* },
|
|
645
|
+
* "count": 0,
|
|
646
|
+
* "line_type": "INCLUDE",
|
|
647
|
+
* "calculated_amount": {
|
|
648
|
+
* "currency_type": "string",
|
|
649
|
+
* "value": "string"
|
|
650
|
+
* }
|
|
651
|
+
* }
|
|
652
|
+
* ]
|
|
653
|
+
* }
|
|
654
|
+
* ```
|
|
655
|
+
*/
|
|
656
|
+
uploadAttachment(
|
|
657
|
+
id: string,
|
|
658
|
+
body: ReimbursementUploadAttachmentParams,
|
|
659
|
+
options?: RequestOptions,
|
|
660
|
+
): APIPromise<ReimbursementUploadAttachmentResponse> {
|
|
661
|
+
return this._client.post(
|
|
662
|
+
path`/reimbursements/${id}/attachments/`,
|
|
663
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
664
|
+
);
|
|
665
|
+
}
|
|
666
|
+
|
|
447
667
|
/**
|
|
448
668
|
* Send the receipt file as `multipart/form-data` in a `file` field. It is stored
|
|
449
669
|
* and attached in a single request, replacing the existing receipt, so a retried
|
|
@@ -3680,7 +3900,7 @@ export namespace ReimbursementUpdateResponse {
|
|
|
3680
3900
|
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
3681
3901
|
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
3682
3902
|
*/
|
|
3683
|
-
export interface
|
|
3903
|
+
export interface ReimbursementUploadAttachmentResponse {
|
|
3684
3904
|
/**
|
|
3685
3905
|
* Identifier field
|
|
3686
3906
|
*/
|
|
@@ -3724,12 +3944,12 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3724
3944
|
/**
|
|
3725
3945
|
* Other attached files, including filenames and recorded upload metadata.
|
|
3726
3946
|
*/
|
|
3727
|
-
attachments?: Array<
|
|
3947
|
+
attachments?: Array<ReimbursementUploadAttachmentResponse.Attachment>;
|
|
3728
3948
|
|
|
3729
3949
|
/**
|
|
3730
3950
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
3731
3951
|
*/
|
|
3732
|
-
company_amount?:
|
|
3952
|
+
company_amount?: ReimbursementUploadAttachmentResponse.CompanyAmount;
|
|
3733
3953
|
|
|
3734
3954
|
/**
|
|
3735
3955
|
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
@@ -3739,7 +3959,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3739
3959
|
/**
|
|
3740
3960
|
* End of a mileage trip. Null except on mileage reimbursements.
|
|
3741
3961
|
*/
|
|
3742
|
-
end_location?:
|
|
3962
|
+
end_location?: ReimbursementUploadAttachmentResponse.EndLocation;
|
|
3743
3963
|
|
|
3744
3964
|
/**
|
|
3745
3965
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
@@ -3769,12 +3989,12 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3769
3989
|
/**
|
|
3770
3990
|
* Vendor in the connected accounting system.
|
|
3771
3991
|
*/
|
|
3772
|
-
gl_vendor?:
|
|
3992
|
+
gl_vendor?: ReimbursementUploadAttachmentResponse.GlVendor;
|
|
3773
3993
|
|
|
3774
3994
|
/**
|
|
3775
3995
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
3776
3996
|
*/
|
|
3777
|
-
line_items?: Array<
|
|
3997
|
+
line_items?: Array<ReimbursementUploadAttachmentResponse.LineItem>;
|
|
3778
3998
|
|
|
3779
3999
|
/**
|
|
3780
4000
|
* Memo entered on the transaction.
|
|
@@ -3785,7 +4005,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3785
4005
|
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
3786
4006
|
* decimal string.
|
|
3787
4007
|
*/
|
|
3788
|
-
merchant_amount?:
|
|
4008
|
+
merchant_amount?: ReimbursementUploadAttachmentResponse.MerchantAmount;
|
|
3789
4009
|
|
|
3790
4010
|
/**
|
|
3791
4011
|
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
@@ -3793,7 +4013,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3793
4013
|
*
|
|
3794
4014
|
* Expandable field
|
|
3795
4015
|
*/
|
|
3796
|
-
mileage_rate?:
|
|
4016
|
+
mileage_rate?: ReimbursementUploadAttachmentResponse.MileageRate;
|
|
3797
4017
|
|
|
3798
4018
|
/**
|
|
3799
4019
|
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
@@ -3805,7 +4025,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3805
4025
|
/**
|
|
3806
4026
|
* Amount credited to the worker. The `value` is a decimal string.
|
|
3807
4027
|
*/
|
|
3808
|
-
payout_amount?:
|
|
4028
|
+
payout_amount?: ReimbursementUploadAttachmentResponse.PayoutAmount;
|
|
3809
4029
|
|
|
3810
4030
|
/**
|
|
3811
4031
|
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
@@ -3825,7 +4045,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3825
4045
|
/**
|
|
3826
4046
|
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
3827
4047
|
*/
|
|
3828
|
-
per_diem_line_items?: Array<
|
|
4048
|
+
per_diem_line_items?: Array<ReimbursementUploadAttachmentResponse.PerDiemLineItem>;
|
|
3829
4049
|
|
|
3830
4050
|
/**
|
|
3831
4051
|
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
@@ -3833,7 +4053,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3833
4053
|
*
|
|
3834
4054
|
* Expandable field
|
|
3835
4055
|
*/
|
|
3836
|
-
per_diem_rate?:
|
|
4056
|
+
per_diem_rate?: ReimbursementUploadAttachmentResponse.PerDiemRate;
|
|
3837
4057
|
|
|
3838
4058
|
/**
|
|
3839
4059
|
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
@@ -3845,12 +4065,12 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3845
4065
|
/**
|
|
3846
4066
|
* Receipt file and its filename.
|
|
3847
4067
|
*/
|
|
3848
|
-
receipt?:
|
|
4068
|
+
receipt?: ReimbursementUploadAttachmentResponse.Receipt;
|
|
3849
4069
|
|
|
3850
4070
|
/**
|
|
3851
4071
|
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
3852
4072
|
*/
|
|
3853
|
-
start_location?:
|
|
4073
|
+
start_location?: ReimbursementUploadAttachmentResponse.StartLocation;
|
|
3854
4074
|
|
|
3855
4075
|
/**
|
|
3856
4076
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
@@ -3882,7 +4102,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3882
4102
|
*
|
|
3883
4103
|
* Expandable field
|
|
3884
4104
|
*/
|
|
3885
|
-
vendor?:
|
|
4105
|
+
vendor?: ReimbursementUploadAttachmentResponse.Vendor;
|
|
3886
4106
|
|
|
3887
4107
|
/**
|
|
3888
4108
|
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
@@ -3893,7 +4113,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3893
4113
|
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
3894
4114
|
* except on mileage reimbursements.
|
|
3895
4115
|
*/
|
|
3896
|
-
waypoints?: Array<
|
|
4116
|
+
waypoints?: Array<ReimbursementUploadAttachmentResponse.Waypoint>;
|
|
3897
4117
|
|
|
3898
4118
|
/**
|
|
3899
4119
|
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
@@ -3908,7 +4128,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3908
4128
|
worker_id?: string;
|
|
3909
4129
|
}
|
|
3910
4130
|
|
|
3911
|
-
export namespace
|
|
4131
|
+
export namespace ReimbursementUploadAttachmentResponse {
|
|
3912
4132
|
/**
|
|
3913
4133
|
* A Finance transaction attachment with recorded upload details.
|
|
3914
4134
|
*/
|
|
@@ -4674,26 +4894,1031 @@ export namespace ReimbursementUploadReceiptResponse {
|
|
|
4674
4894
|
}
|
|
4675
4895
|
}
|
|
4676
4896
|
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4897
|
+
/**
|
|
4898
|
+
* A Finance reimbursement the caller can see.
|
|
4899
|
+
*
|
|
4900
|
+
* A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
|
|
4901
|
+
* use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
|
|
4902
|
+
* Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
|
|
4903
|
+
* that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
|
|
4904
|
+
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
4905
|
+
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
4906
|
+
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
4907
|
+
*/
|
|
4908
|
+
export interface ReimbursementUploadReceiptResponse {
|
|
4684
4909
|
/**
|
|
4685
|
-
*
|
|
4910
|
+
* Identifier field
|
|
4686
4911
|
*/
|
|
4687
|
-
|
|
4912
|
+
id: string;
|
|
4688
4913
|
|
|
4689
|
-
|
|
4690
|
-
|
|
4914
|
+
/**
|
|
4915
|
+
* Record creation date
|
|
4916
|
+
*/
|
|
4917
|
+
created_at: string;
|
|
4691
4918
|
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4919
|
+
/**
|
|
4920
|
+
* Record update date
|
|
4921
|
+
*/
|
|
4922
|
+
updated_at: string;
|
|
4695
4923
|
|
|
4696
|
-
|
|
4924
|
+
/**
|
|
4925
|
+
* Date the transaction is booked in the accounting system, as an ISO 8601 date
|
|
4926
|
+
* (YYYY-MM-DD).
|
|
4927
|
+
*/
|
|
4928
|
+
accounting_date?: string;
|
|
4929
|
+
|
|
4930
|
+
/**
|
|
4931
|
+
* Approval status of the transaction. `DRAFT`: not submitted for approval.
|
|
4932
|
+
* `PENDING`: awaiting required information or submission before approval.
|
|
4933
|
+
* `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
|
|
4934
|
+
* rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
|
|
4935
|
+
* reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
|
|
4936
|
+
* for card authorizations.
|
|
4937
|
+
*/
|
|
4938
|
+
approval_status?:
|
|
4939
|
+
| 'DRAFT'
|
|
4940
|
+
| 'PENDING'
|
|
4941
|
+
| 'REQUESTED'
|
|
4942
|
+
| 'APPROVED'
|
|
4943
|
+
| 'REJECTED'
|
|
4944
|
+
| 'FINALIZED'
|
|
4945
|
+
| 'ACTIONED'
|
|
4946
|
+
| 'CANCELLED'
|
|
4947
|
+
| 'FAILED';
|
|
4948
|
+
|
|
4949
|
+
/**
|
|
4950
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
4951
|
+
*/
|
|
4952
|
+
attachments?: Array<ReimbursementUploadReceiptResponse.Attachment>;
|
|
4953
|
+
|
|
4954
|
+
/**
|
|
4955
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
4956
|
+
*/
|
|
4957
|
+
company_amount?: ReimbursementUploadReceiptResponse.CompanyAmount;
|
|
4958
|
+
|
|
4959
|
+
/**
|
|
4960
|
+
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
4961
|
+
*/
|
|
4962
|
+
distance?: number;
|
|
4963
|
+
|
|
4964
|
+
/**
|
|
4965
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
4966
|
+
*/
|
|
4967
|
+
end_location?: ReimbursementUploadReceiptResponse.EndLocation;
|
|
4968
|
+
|
|
4969
|
+
/**
|
|
4970
|
+
* ID of the legal entity the transaction belongs to. Use it with
|
|
4971
|
+
* `/company-legal-entities/{id}/`.
|
|
4972
|
+
*/
|
|
4973
|
+
entity_id?: string;
|
|
4974
|
+
|
|
4975
|
+
/**
|
|
4976
|
+
* State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
|
|
4977
|
+
* accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
|
|
4978
|
+
* sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
|
|
4979
|
+
* failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
|
|
4980
|
+
* accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
|
|
4981
|
+
* be synced automatically. Null when no sync state is set.
|
|
4982
|
+
*/
|
|
4983
|
+
gl_sync_state?:
|
|
4984
|
+
| 'NOT_FINALIZED'
|
|
4985
|
+
| 'FOR_REVIEW'
|
|
4986
|
+
| 'PENDING_SYNC'
|
|
4987
|
+
| 'SYNCED'
|
|
4988
|
+
| 'ERROR'
|
|
4989
|
+
| 'DO_NOT_SYNC'
|
|
4990
|
+
| 'EXPORTED'
|
|
4991
|
+
| 'NOT_SYNCABLE'
|
|
4992
|
+
| 'AUTO_SYNC';
|
|
4993
|
+
|
|
4994
|
+
/**
|
|
4995
|
+
* Vendor in the connected accounting system.
|
|
4996
|
+
*/
|
|
4997
|
+
gl_vendor?: ReimbursementUploadReceiptResponse.GlVendor;
|
|
4998
|
+
|
|
4999
|
+
/**
|
|
5000
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
5001
|
+
*/
|
|
5002
|
+
line_items?: Array<ReimbursementUploadReceiptResponse.LineItem>;
|
|
5003
|
+
|
|
5004
|
+
/**
|
|
5005
|
+
* Memo entered on the transaction.
|
|
5006
|
+
*/
|
|
5007
|
+
memo?: string;
|
|
5008
|
+
|
|
5009
|
+
/**
|
|
5010
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
5011
|
+
* decimal string.
|
|
5012
|
+
*/
|
|
5013
|
+
merchant_amount?: ReimbursementUploadReceiptResponse.MerchantAmount;
|
|
5014
|
+
|
|
5015
|
+
/**
|
|
5016
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
5017
|
+
* `reimbursements.read`.
|
|
5018
|
+
*
|
|
5019
|
+
* Expandable field
|
|
5020
|
+
*/
|
|
5021
|
+
mileage_rate?: ReimbursementUploadReceiptResponse.MileageRate;
|
|
5022
|
+
|
|
5023
|
+
/**
|
|
5024
|
+
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
5025
|
+
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
5026
|
+
* there is no standalone rate lookup endpoint.
|
|
5027
|
+
*/
|
|
5028
|
+
mileage_rate_id?: string;
|
|
5029
|
+
|
|
5030
|
+
/**
|
|
5031
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
5032
|
+
*/
|
|
5033
|
+
payout_amount?: ReimbursementUploadReceiptResponse.PayoutAmount;
|
|
5034
|
+
|
|
5035
|
+
/**
|
|
5036
|
+
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
5037
|
+
* assigned.
|
|
5038
|
+
*/
|
|
5039
|
+
payout_date?: string;
|
|
5040
|
+
|
|
5041
|
+
/**
|
|
5042
|
+
* How the worker is paid. `NOT_SET`: no payout run is assigned. `US_PAYROLL`:
|
|
5043
|
+
* assigned to a US payroll run. `GLOBAL_PAYROLL`: assigned to a global payroll
|
|
5044
|
+
* run. `DIRECT_DEPOSIT`: assigned to a direct deposit run. `EOR`: assigned to an
|
|
5045
|
+
* employer-of-record payroll run. `MANUAL`: marked paid outside a run. If a payout
|
|
5046
|
+
* method override is set, it is returned.
|
|
5047
|
+
*/
|
|
5048
|
+
payout_method?: 'NOT_SET' | 'GLOBAL_PAYROLL' | 'US_PAYROLL' | 'DIRECT_DEPOSIT' | 'EOR' | 'MANUAL';
|
|
5049
|
+
|
|
5050
|
+
/**
|
|
5051
|
+
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
5052
|
+
*/
|
|
5053
|
+
per_diem_line_items?: Array<ReimbursementUploadReceiptResponse.PerDiemLineItem>;
|
|
5054
|
+
|
|
5055
|
+
/**
|
|
5056
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
5057
|
+
* `reimbursements.read`.
|
|
5058
|
+
*
|
|
5059
|
+
* Expandable field
|
|
5060
|
+
*/
|
|
5061
|
+
per_diem_rate?: ReimbursementUploadReceiptResponse.PerDiemRate;
|
|
5062
|
+
|
|
5063
|
+
/**
|
|
5064
|
+
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
5065
|
+
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
5066
|
+
* is no standalone rate lookup endpoint.
|
|
5067
|
+
*/
|
|
5068
|
+
per_diem_rate_id?: string;
|
|
5069
|
+
|
|
5070
|
+
/**
|
|
5071
|
+
* Receipt file and its filename.
|
|
5072
|
+
*/
|
|
5073
|
+
receipt?: ReimbursementUploadReceiptResponse.Receipt;
|
|
5074
|
+
|
|
5075
|
+
/**
|
|
5076
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
5077
|
+
*/
|
|
5078
|
+
start_location?: ReimbursementUploadReceiptResponse.StartLocation;
|
|
5079
|
+
|
|
5080
|
+
/**
|
|
5081
|
+
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
5082
|
+
*/
|
|
5083
|
+
transaction_date?: string;
|
|
5084
|
+
|
|
5085
|
+
/**
|
|
5086
|
+
* `REIMBURSEMENT`: an expense the worker paid and the company pays back.
|
|
5087
|
+
* `MILEAGE_REIMBURSEMENT`: payback for distance driven. `PER_DIEM_REIMBURSEMENT`:
|
|
5088
|
+
* payback for a daily travel allowance. This decides which mileage or per diem
|
|
5089
|
+
* fields are set.
|
|
5090
|
+
*/
|
|
5091
|
+
transaction_type?: 'REIMBURSEMENT' | 'MILEAGE_REIMBURSEMENT' | 'PER_DIEM_REIMBURSEMENT';
|
|
5092
|
+
|
|
5093
|
+
/**
|
|
5094
|
+
* Per diem trip end date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
|
|
5095
|
+
* diem reimbursements.
|
|
5096
|
+
*/
|
|
5097
|
+
trip_end_date?: string;
|
|
5098
|
+
|
|
5099
|
+
/**
|
|
5100
|
+
* Per diem trip start date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
|
|
5101
|
+
* diem reimbursements.
|
|
5102
|
+
*/
|
|
5103
|
+
trip_start_date?: string;
|
|
5104
|
+
|
|
5105
|
+
/**
|
|
5106
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
5107
|
+
*
|
|
5108
|
+
* Expandable field
|
|
5109
|
+
*/
|
|
5110
|
+
vendor?: ReimbursementUploadReceiptResponse.Vendor;
|
|
5111
|
+
|
|
5112
|
+
/**
|
|
5113
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
5114
|
+
*/
|
|
5115
|
+
vendor_id?: string;
|
|
5116
|
+
|
|
5117
|
+
/**
|
|
5118
|
+
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
5119
|
+
* except on mileage reimbursements.
|
|
5120
|
+
*/
|
|
5121
|
+
waypoints?: Array<ReimbursementUploadReceiptResponse.Waypoint>;
|
|
5122
|
+
|
|
5123
|
+
/**
|
|
5124
|
+
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
5125
|
+
*
|
|
5126
|
+
* Expandable field
|
|
5127
|
+
*/
|
|
5128
|
+
worker?: WorkersAPI.Worker;
|
|
5129
|
+
|
|
5130
|
+
/**
|
|
5131
|
+
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
5132
|
+
*/
|
|
5133
|
+
worker_id?: string;
|
|
5134
|
+
}
|
|
5135
|
+
|
|
5136
|
+
export namespace ReimbursementUploadReceiptResponse {
|
|
5137
|
+
/**
|
|
5138
|
+
* A Finance transaction attachment with recorded upload details.
|
|
5139
|
+
*/
|
|
5140
|
+
export interface Attachment {
|
|
5141
|
+
/**
|
|
5142
|
+
* URL for accessing the file.
|
|
5143
|
+
*/
|
|
5144
|
+
url: string;
|
|
5145
|
+
|
|
5146
|
+
/**
|
|
5147
|
+
* Original file name, when recorded.
|
|
5148
|
+
*/
|
|
5149
|
+
file_name?: string;
|
|
5150
|
+
|
|
5151
|
+
/**
|
|
5152
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
5153
|
+
* recorded.
|
|
5154
|
+
*/
|
|
5155
|
+
uploaded_at?: string;
|
|
5156
|
+
|
|
5157
|
+
/**
|
|
5158
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
5159
|
+
*/
|
|
5160
|
+
uploaded_by_id?: string;
|
|
5161
|
+
}
|
|
5162
|
+
|
|
5163
|
+
/**
|
|
5164
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
5165
|
+
*/
|
|
5166
|
+
export interface CompanyAmount {
|
|
5167
|
+
/**
|
|
5168
|
+
* The currency type, ex: USD, EUR, etc.
|
|
5169
|
+
*/
|
|
5170
|
+
currency_type?: string;
|
|
5171
|
+
|
|
5172
|
+
/**
|
|
5173
|
+
* The decimal amount for the currency.
|
|
5174
|
+
*/
|
|
5175
|
+
value?: number;
|
|
5176
|
+
}
|
|
5177
|
+
|
|
5178
|
+
/**
|
|
5179
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
5180
|
+
*/
|
|
5181
|
+
export interface EndLocation {
|
|
5182
|
+
/**
|
|
5183
|
+
* Address of this point. Null when the point has no address.
|
|
5184
|
+
*/
|
|
5185
|
+
address?: string;
|
|
5186
|
+
|
|
5187
|
+
/**
|
|
5188
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
5189
|
+
* has no coordinates.
|
|
5190
|
+
*/
|
|
5191
|
+
coordinates?: EndLocation.Coordinates;
|
|
5192
|
+
}
|
|
5193
|
+
|
|
5194
|
+
export namespace EndLocation {
|
|
5195
|
+
/**
|
|
5196
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
5197
|
+
* has no coordinates.
|
|
5198
|
+
*/
|
|
5199
|
+
export interface Coordinates {
|
|
5200
|
+
/**
|
|
5201
|
+
* Latitude of this point, in decimal degrees.
|
|
5202
|
+
*/
|
|
5203
|
+
latitude?: number;
|
|
5204
|
+
|
|
5205
|
+
/**
|
|
5206
|
+
* Longitude of this point, in decimal degrees.
|
|
5207
|
+
*/
|
|
5208
|
+
longitude?: number;
|
|
5209
|
+
}
|
|
5210
|
+
}
|
|
5211
|
+
|
|
5212
|
+
/**
|
|
5213
|
+
* Vendor in the connected accounting system.
|
|
5214
|
+
*/
|
|
5215
|
+
export interface GlVendor {
|
|
5216
|
+
/**
|
|
5217
|
+
* ID of the accounting vendor in Rippling.
|
|
5218
|
+
*/
|
|
5219
|
+
id?: string;
|
|
5220
|
+
|
|
5221
|
+
/**
|
|
5222
|
+
* ID of the vendor in the accounting system.
|
|
5223
|
+
*/
|
|
5224
|
+
gl_vendor_id?: string;
|
|
5225
|
+
|
|
5226
|
+
/**
|
|
5227
|
+
* Name of the vendor in the accounting system.
|
|
5228
|
+
*/
|
|
5229
|
+
name?: string;
|
|
5230
|
+
}
|
|
5231
|
+
|
|
5232
|
+
export interface LineItem {
|
|
5233
|
+
/**
|
|
5234
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
5235
|
+
* been assigned one yet.
|
|
5236
|
+
*/
|
|
5237
|
+
id?: string;
|
|
5238
|
+
|
|
5239
|
+
/**
|
|
5240
|
+
* Whether this line is amortized.
|
|
5241
|
+
*/
|
|
5242
|
+
amortized?: boolean;
|
|
5243
|
+
|
|
5244
|
+
/**
|
|
5245
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
5246
|
+
*/
|
|
5247
|
+
amount?: LineItem.Amount;
|
|
5248
|
+
|
|
5249
|
+
/**
|
|
5250
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
5251
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
5252
|
+
*/
|
|
5253
|
+
category_id?: string;
|
|
5254
|
+
|
|
5255
|
+
/**
|
|
5256
|
+
* Name of the finance category.
|
|
5257
|
+
*/
|
|
5258
|
+
category_name?: string;
|
|
5259
|
+
|
|
5260
|
+
/**
|
|
5261
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
5262
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
5263
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
5264
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
5265
|
+
*/
|
|
5266
|
+
dimension_choices?: { [key: string]: LineItem.DimensionChoices };
|
|
5267
|
+
|
|
5268
|
+
/**
|
|
5269
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
5270
|
+
*/
|
|
5271
|
+
end_date?: string;
|
|
5272
|
+
|
|
5273
|
+
/**
|
|
5274
|
+
* ERP amortization schedule associated with this line.
|
|
5275
|
+
*/
|
|
5276
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
5277
|
+
|
|
5278
|
+
/**
|
|
5279
|
+
* ERP amortization template for this line.
|
|
5280
|
+
*/
|
|
5281
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
5282
|
+
|
|
5283
|
+
/**
|
|
5284
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
5285
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
5286
|
+
* set.
|
|
5287
|
+
*/
|
|
5288
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
5289
|
+
|
|
5290
|
+
/**
|
|
5291
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
5292
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
5293
|
+
*/
|
|
5294
|
+
gl_customer?: string;
|
|
5295
|
+
|
|
5296
|
+
/**
|
|
5297
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
5298
|
+
* available to retrieve this accounting tax code.
|
|
5299
|
+
*/
|
|
5300
|
+
gl_tax_code?: string;
|
|
5301
|
+
|
|
5302
|
+
/**
|
|
5303
|
+
* Memo entered on this split.
|
|
5304
|
+
*/
|
|
5305
|
+
memo?: string;
|
|
5306
|
+
|
|
5307
|
+
/**
|
|
5308
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
5309
|
+
*/
|
|
5310
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
5311
|
+
|
|
5312
|
+
/**
|
|
5313
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
5314
|
+
*/
|
|
5315
|
+
start_date?: string;
|
|
5316
|
+
|
|
5317
|
+
/**
|
|
5318
|
+
* Total tax amount for this line in the merchant currency.
|
|
5319
|
+
*/
|
|
5320
|
+
tax_amount?: LineItem.TaxAmount;
|
|
5321
|
+
}
|
|
5322
|
+
|
|
5323
|
+
export namespace LineItem {
|
|
5324
|
+
/**
|
|
5325
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
5326
|
+
*/
|
|
5327
|
+
export interface Amount {
|
|
5328
|
+
/**
|
|
5329
|
+
* The currency type, ex: USD, EUR, etc.
|
|
5330
|
+
*/
|
|
5331
|
+
currency_type?: string;
|
|
5332
|
+
|
|
5333
|
+
/**
|
|
5334
|
+
* The decimal amount for the currency.
|
|
5335
|
+
*/
|
|
5336
|
+
value?: number;
|
|
5337
|
+
}
|
|
5338
|
+
|
|
5339
|
+
export interface DimensionChoices {
|
|
5340
|
+
/**
|
|
5341
|
+
* Name of the dimension, such as Department.
|
|
5342
|
+
*/
|
|
5343
|
+
dimension_name?: string;
|
|
5344
|
+
|
|
5345
|
+
/**
|
|
5346
|
+
* Display name of the selected dimension value.
|
|
5347
|
+
*/
|
|
5348
|
+
label?: string;
|
|
5349
|
+
|
|
5350
|
+
/**
|
|
5351
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
5352
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
5353
|
+
* `/job-codes/{id}/`.
|
|
5354
|
+
*/
|
|
5355
|
+
value?: string;
|
|
5356
|
+
}
|
|
5357
|
+
|
|
5358
|
+
/**
|
|
5359
|
+
* ERP amortization schedule associated with this line.
|
|
5360
|
+
*/
|
|
5361
|
+
export interface GlAmortizationSchedule {
|
|
5362
|
+
/**
|
|
5363
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
5364
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
5365
|
+
*/
|
|
5366
|
+
accounting_integration_id?: string;
|
|
5367
|
+
|
|
5368
|
+
/**
|
|
5369
|
+
* Number of amortization periods.
|
|
5370
|
+
*/
|
|
5371
|
+
amortization_period?: number;
|
|
5372
|
+
|
|
5373
|
+
/**
|
|
5374
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
5375
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
5376
|
+
* indicate UTC. Null when not set.
|
|
5377
|
+
*/
|
|
5378
|
+
end_date?: string;
|
|
5379
|
+
|
|
5380
|
+
/**
|
|
5381
|
+
* Object ID in the connected accounting system.
|
|
5382
|
+
*/
|
|
5383
|
+
gl_object_id?: string;
|
|
5384
|
+
|
|
5385
|
+
/**
|
|
5386
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
5387
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
5388
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
5389
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
5390
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
5391
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
5392
|
+
* when not set.
|
|
5393
|
+
*/
|
|
5394
|
+
gl_object_type?:
|
|
5395
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
5396
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
5397
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
5398
|
+
| 'GL_ACCOUNT'
|
|
5399
|
+
| 'GL_JOURNAL_ENTRY'
|
|
5400
|
+
| 'GL_POSTING_PERIOD'
|
|
5401
|
+
| 'GL_VENDOR'
|
|
5402
|
+
| 'GL_CUSTOMER'
|
|
5403
|
+
| 'GL_EMPLOYEE'
|
|
5404
|
+
| 'GL_SUBSIDIARY';
|
|
5405
|
+
|
|
5406
|
+
/**
|
|
5407
|
+
* Accounting object name.
|
|
5408
|
+
*/
|
|
5409
|
+
name?: string;
|
|
5410
|
+
|
|
5411
|
+
/**
|
|
5412
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
5413
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
5414
|
+
* indicate UTC. Null when not set.
|
|
5415
|
+
*/
|
|
5416
|
+
start_date?: string;
|
|
5417
|
+
|
|
5418
|
+
/**
|
|
5419
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
5420
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
5421
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
5422
|
+
*/
|
|
5423
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
5424
|
+
|
|
5425
|
+
/**
|
|
5426
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
5427
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
5428
|
+
* not available in this response.
|
|
5429
|
+
*/
|
|
5430
|
+
total_amortized_amount?: number;
|
|
5431
|
+
|
|
5432
|
+
/**
|
|
5433
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
5434
|
+
* schedule currency code is not available in this response.
|
|
5435
|
+
*/
|
|
5436
|
+
total_amount?: number;
|
|
5437
|
+
}
|
|
5438
|
+
|
|
5439
|
+
/**
|
|
5440
|
+
* ERP amortization template for this line.
|
|
5441
|
+
*/
|
|
5442
|
+
export interface GlAmortizationTemplate {
|
|
5443
|
+
/**
|
|
5444
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
5445
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
5446
|
+
*/
|
|
5447
|
+
accounting_integration_id?: string;
|
|
5448
|
+
|
|
5449
|
+
/**
|
|
5450
|
+
* Object ID in the connected accounting system.
|
|
5451
|
+
*/
|
|
5452
|
+
gl_object_id?: string;
|
|
5453
|
+
|
|
5454
|
+
/**
|
|
5455
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
5456
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
5457
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
5458
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
5459
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
5460
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
5461
|
+
* when not set.
|
|
5462
|
+
*/
|
|
5463
|
+
gl_object_type?:
|
|
5464
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
5465
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
5466
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
5467
|
+
| 'GL_ACCOUNT'
|
|
5468
|
+
| 'GL_JOURNAL_ENTRY'
|
|
5469
|
+
| 'GL_POSTING_PERIOD'
|
|
5470
|
+
| 'GL_VENDOR'
|
|
5471
|
+
| 'GL_CUSTOMER'
|
|
5472
|
+
| 'GL_EMPLOYEE'
|
|
5473
|
+
| 'GL_SUBSIDIARY';
|
|
5474
|
+
|
|
5475
|
+
/**
|
|
5476
|
+
* Accounting object name.
|
|
5477
|
+
*/
|
|
5478
|
+
name?: string;
|
|
5479
|
+
}
|
|
5480
|
+
|
|
5481
|
+
/**
|
|
5482
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
5483
|
+
*/
|
|
5484
|
+
export interface PrepaidAccount {
|
|
5485
|
+
/**
|
|
5486
|
+
* Account ID in the connected accounting system.
|
|
5487
|
+
*/
|
|
5488
|
+
account_id?: string;
|
|
5489
|
+
|
|
5490
|
+
/**
|
|
5491
|
+
* Account code.
|
|
5492
|
+
*/
|
|
5493
|
+
code?: string;
|
|
5494
|
+
|
|
5495
|
+
/**
|
|
5496
|
+
* Account name.
|
|
5497
|
+
*/
|
|
5498
|
+
name?: string;
|
|
5499
|
+
|
|
5500
|
+
/**
|
|
5501
|
+
* IDs of custom dimensions required by this account.
|
|
5502
|
+
*/
|
|
5503
|
+
required_custom_dimensions?: Array<string>;
|
|
5504
|
+
|
|
5505
|
+
/**
|
|
5506
|
+
* Whether this account requires a department.
|
|
5507
|
+
*/
|
|
5508
|
+
requires_department?: boolean;
|
|
5509
|
+
|
|
5510
|
+
/**
|
|
5511
|
+
* Whether this account requires a work location.
|
|
5512
|
+
*/
|
|
5513
|
+
requires_work_location?: boolean;
|
|
5514
|
+
|
|
5515
|
+
/**
|
|
5516
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
5517
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
5518
|
+
* when not set.
|
|
5519
|
+
*/
|
|
5520
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
5521
|
+
}
|
|
5522
|
+
|
|
5523
|
+
/**
|
|
5524
|
+
* Total tax amount for this line in the merchant currency.
|
|
5525
|
+
*/
|
|
5526
|
+
export interface TaxAmount {
|
|
5527
|
+
/**
|
|
5528
|
+
* The currency type, ex: USD, EUR, etc.
|
|
5529
|
+
*/
|
|
5530
|
+
currency_type?: string;
|
|
5531
|
+
|
|
5532
|
+
/**
|
|
5533
|
+
* The decimal amount for the currency.
|
|
5534
|
+
*/
|
|
5535
|
+
value?: number;
|
|
5536
|
+
}
|
|
5537
|
+
}
|
|
5538
|
+
|
|
5539
|
+
/**
|
|
5540
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
5541
|
+
* decimal string.
|
|
5542
|
+
*/
|
|
5543
|
+
export interface MerchantAmount {
|
|
5544
|
+
/**
|
|
5545
|
+
* The currency type, ex: USD, EUR, etc.
|
|
5546
|
+
*/
|
|
5547
|
+
currency_type?: string;
|
|
5548
|
+
|
|
5549
|
+
/**
|
|
5550
|
+
* The decimal amount for the currency.
|
|
5551
|
+
*/
|
|
5552
|
+
value?: number;
|
|
5553
|
+
}
|
|
5554
|
+
|
|
5555
|
+
/**
|
|
5556
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
5557
|
+
* `reimbursements.read`.
|
|
5558
|
+
*
|
|
5559
|
+
* Expandable field
|
|
5560
|
+
*/
|
|
5561
|
+
export interface MileageRate {
|
|
5562
|
+
/**
|
|
5563
|
+
* Company mileage rate ID.
|
|
5564
|
+
*/
|
|
5565
|
+
id: string;
|
|
5566
|
+
|
|
5567
|
+
/**
|
|
5568
|
+
* When the mileage rate was created, as an ISO 8601 date-time in UTC.
|
|
5569
|
+
*/
|
|
5570
|
+
created_at: string;
|
|
5571
|
+
|
|
5572
|
+
/**
|
|
5573
|
+
* When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
|
|
5574
|
+
*/
|
|
5575
|
+
updated_at: string;
|
|
5576
|
+
|
|
5577
|
+
/**
|
|
5578
|
+
* ISO 3166-1 alpha-2 country code.
|
|
5579
|
+
*/
|
|
5580
|
+
country?: string;
|
|
5581
|
+
|
|
5582
|
+
/**
|
|
5583
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
5584
|
+
*/
|
|
5585
|
+
end_date?: string;
|
|
5586
|
+
|
|
5587
|
+
/**
|
|
5588
|
+
* Whether an additional half cent per distance unit applies.
|
|
5589
|
+
*/
|
|
5590
|
+
half_cent?: boolean;
|
|
5591
|
+
|
|
5592
|
+
/**
|
|
5593
|
+
* Company-defined label for this mileage rate, such as the rate used for a country
|
|
5594
|
+
* or vehicle type.
|
|
5595
|
+
*/
|
|
5596
|
+
name?: string;
|
|
5597
|
+
|
|
5598
|
+
/**
|
|
5599
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
5600
|
+
*/
|
|
5601
|
+
rate?: MileageRate.Rate;
|
|
5602
|
+
|
|
5603
|
+
/**
|
|
5604
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
5605
|
+
*/
|
|
5606
|
+
start_date?: string;
|
|
5607
|
+
|
|
5608
|
+
/**
|
|
5609
|
+
* Distance unit, mi or km.
|
|
5610
|
+
*/
|
|
5611
|
+
units?: 'km' | 'mi';
|
|
5612
|
+
}
|
|
5613
|
+
|
|
5614
|
+
export namespace MileageRate {
|
|
5615
|
+
/**
|
|
5616
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
5617
|
+
*/
|
|
5618
|
+
export interface Rate {
|
|
5619
|
+
/**
|
|
5620
|
+
* The currency type, ex: USD, EUR, etc.
|
|
5621
|
+
*/
|
|
5622
|
+
currency_type?: string;
|
|
5623
|
+
|
|
5624
|
+
/**
|
|
5625
|
+
* The decimal amount for the currency.
|
|
5626
|
+
*/
|
|
5627
|
+
value?: number;
|
|
5628
|
+
}
|
|
5629
|
+
}
|
|
5630
|
+
|
|
5631
|
+
/**
|
|
5632
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
5633
|
+
*/
|
|
5634
|
+
export interface PayoutAmount {
|
|
5635
|
+
/**
|
|
5636
|
+
* The currency type, ex: USD, EUR, etc.
|
|
5637
|
+
*/
|
|
5638
|
+
currency_type?: string;
|
|
5639
|
+
|
|
5640
|
+
/**
|
|
5641
|
+
* The decimal amount for the currency.
|
|
5642
|
+
*/
|
|
5643
|
+
value?: number;
|
|
5644
|
+
}
|
|
5645
|
+
|
|
5646
|
+
export interface PerDiemLineItem {
|
|
5647
|
+
/**
|
|
5648
|
+
* Sub-rate amount for one unit. The `value` is a decimal string.
|
|
5649
|
+
*/
|
|
5650
|
+
amount?: PerDiemLineItem.Amount;
|
|
5651
|
+
|
|
5652
|
+
/**
|
|
5653
|
+
* amount times count. The `value` is a decimal string. Negative when line_type is
|
|
5654
|
+
* EXCLUDE.
|
|
5655
|
+
*/
|
|
5656
|
+
calculated_amount?: PerDiemLineItem.CalculatedAmount;
|
|
5657
|
+
|
|
5658
|
+
/**
|
|
5659
|
+
* How many units.
|
|
5660
|
+
*/
|
|
5661
|
+
count?: number;
|
|
5662
|
+
|
|
5663
|
+
/**
|
|
5664
|
+
* Sub-rate label.
|
|
5665
|
+
*/
|
|
5666
|
+
label?: string;
|
|
5667
|
+
|
|
5668
|
+
/**
|
|
5669
|
+
* `INCLUDE`: this row is added to the reimbursement. `EXCLUDE`: this row is
|
|
5670
|
+
* subtracted. `calculated_amount.value` is negative when excluded.
|
|
5671
|
+
*/
|
|
5672
|
+
line_type?: 'INCLUDE' | 'EXCLUDE';
|
|
5673
|
+
|
|
5674
|
+
/**
|
|
5675
|
+
* Per diem sub-rate ID.
|
|
5676
|
+
*/
|
|
5677
|
+
sub_rate_id?: string;
|
|
5678
|
+
|
|
5679
|
+
/**
|
|
5680
|
+
* `FULL_DAY`: the full daily allowance. `MEALS`: the meals portion of the daily
|
|
5681
|
+
* allowance. `OTHERS`: an allowance that is not the full day or meals.
|
|
5682
|
+
*/
|
|
5683
|
+
sub_rate_type?: 'FULL_DAY' | 'MEALS' | 'OTHERS';
|
|
5684
|
+
}
|
|
5685
|
+
|
|
5686
|
+
export namespace PerDiemLineItem {
|
|
5687
|
+
/**
|
|
5688
|
+
* Sub-rate amount for one unit. The `value` is a decimal string.
|
|
5689
|
+
*/
|
|
5690
|
+
export interface Amount {
|
|
5691
|
+
/**
|
|
5692
|
+
* The currency type, ex: USD, EUR, etc.
|
|
5693
|
+
*/
|
|
5694
|
+
currency_type?: string;
|
|
5695
|
+
|
|
5696
|
+
/**
|
|
5697
|
+
* The decimal amount for the currency.
|
|
5698
|
+
*/
|
|
5699
|
+
value?: number;
|
|
5700
|
+
}
|
|
5701
|
+
|
|
5702
|
+
/**
|
|
5703
|
+
* amount times count. The `value` is a decimal string. Negative when line_type is
|
|
5704
|
+
* EXCLUDE.
|
|
5705
|
+
*/
|
|
5706
|
+
export interface CalculatedAmount {
|
|
5707
|
+
/**
|
|
5708
|
+
* The currency type, ex: USD, EUR, etc.
|
|
5709
|
+
*/
|
|
5710
|
+
currency_type?: string;
|
|
5711
|
+
|
|
5712
|
+
/**
|
|
5713
|
+
* The decimal amount for the currency.
|
|
5714
|
+
*/
|
|
5715
|
+
value?: number;
|
|
5716
|
+
}
|
|
5717
|
+
}
|
|
5718
|
+
|
|
5719
|
+
/**
|
|
5720
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
5721
|
+
* `reimbursements.read`.
|
|
5722
|
+
*
|
|
5723
|
+
* Expandable field
|
|
5724
|
+
*/
|
|
5725
|
+
export interface PerDiemRate {
|
|
5726
|
+
/**
|
|
5727
|
+
* Per diem rate ID.
|
|
5728
|
+
*/
|
|
5729
|
+
id: string;
|
|
5730
|
+
|
|
5731
|
+
/**
|
|
5732
|
+
* When the per diem rate was created, as an ISO 8601 date-time in UTC.
|
|
5733
|
+
*/
|
|
5734
|
+
created_at: string;
|
|
5735
|
+
|
|
5736
|
+
/**
|
|
5737
|
+
* When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
|
|
5738
|
+
*/
|
|
5739
|
+
updated_at: string;
|
|
5740
|
+
|
|
5741
|
+
/**
|
|
5742
|
+
* Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
|
|
5743
|
+
* US.
|
|
5744
|
+
*/
|
|
5745
|
+
country?: string;
|
|
5746
|
+
|
|
5747
|
+
/**
|
|
5748
|
+
* Currency of the per diem rate, as an ISO 4217 code. Example: USD.
|
|
5749
|
+
*/
|
|
5750
|
+
currency?: string;
|
|
5751
|
+
|
|
5752
|
+
/**
|
|
5753
|
+
* Place this per diem rate applies to, such as a city.
|
|
5754
|
+
*/
|
|
5755
|
+
destination_name?: string;
|
|
5756
|
+
|
|
5757
|
+
/**
|
|
5758
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
5759
|
+
*/
|
|
5760
|
+
end_date?: string;
|
|
5761
|
+
|
|
5762
|
+
/**
|
|
5763
|
+
* Whether the rate is archived. Archived rates remain readable for historical
|
|
5764
|
+
* references.
|
|
5765
|
+
*/
|
|
5766
|
+
is_archived?: boolean;
|
|
5767
|
+
|
|
5768
|
+
/**
|
|
5769
|
+
* Whether this is the current version of the rate.
|
|
5770
|
+
*/
|
|
5771
|
+
is_current?: boolean;
|
|
5772
|
+
|
|
5773
|
+
/**
|
|
5774
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
5775
|
+
*/
|
|
5776
|
+
start_date?: string;
|
|
5777
|
+
}
|
|
5778
|
+
|
|
5779
|
+
/**
|
|
5780
|
+
* Receipt file and its filename.
|
|
5781
|
+
*/
|
|
5782
|
+
export interface Receipt {
|
|
5783
|
+
/**
|
|
5784
|
+
* URL for accessing the file.
|
|
5785
|
+
*/
|
|
5786
|
+
url: string;
|
|
5787
|
+
|
|
5788
|
+
/**
|
|
5789
|
+
* Original file name, when recorded.
|
|
5790
|
+
*/
|
|
5791
|
+
file_name?: string;
|
|
5792
|
+
}
|
|
5793
|
+
|
|
5794
|
+
/**
|
|
5795
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
5796
|
+
*/
|
|
5797
|
+
export interface StartLocation {
|
|
5798
|
+
/**
|
|
5799
|
+
* Address of this point. Null when the point has no address.
|
|
5800
|
+
*/
|
|
5801
|
+
address?: string;
|
|
5802
|
+
|
|
5803
|
+
/**
|
|
5804
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
5805
|
+
* has no coordinates.
|
|
5806
|
+
*/
|
|
5807
|
+
coordinates?: StartLocation.Coordinates;
|
|
5808
|
+
}
|
|
5809
|
+
|
|
5810
|
+
export namespace StartLocation {
|
|
5811
|
+
/**
|
|
5812
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
5813
|
+
* has no coordinates.
|
|
5814
|
+
*/
|
|
5815
|
+
export interface Coordinates {
|
|
5816
|
+
/**
|
|
5817
|
+
* Latitude of this point, in decimal degrees.
|
|
5818
|
+
*/
|
|
5819
|
+
latitude?: number;
|
|
5820
|
+
|
|
5821
|
+
/**
|
|
5822
|
+
* Longitude of this point, in decimal degrees.
|
|
5823
|
+
*/
|
|
5824
|
+
longitude?: number;
|
|
5825
|
+
}
|
|
5826
|
+
}
|
|
5827
|
+
|
|
5828
|
+
/**
|
|
5829
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
5830
|
+
*
|
|
5831
|
+
* Expandable field
|
|
5832
|
+
*/
|
|
5833
|
+
export interface Vendor {
|
|
5834
|
+
/**
|
|
5835
|
+
* Identifier field
|
|
5836
|
+
*/
|
|
5837
|
+
id: string;
|
|
5838
|
+
|
|
5839
|
+
/**
|
|
5840
|
+
* Record creation date
|
|
5841
|
+
*/
|
|
5842
|
+
created_at: string;
|
|
5843
|
+
|
|
5844
|
+
/**
|
|
5845
|
+
* Record update date
|
|
5846
|
+
*/
|
|
5847
|
+
updated_at: string;
|
|
5848
|
+
|
|
5849
|
+
/**
|
|
5850
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
5851
|
+
* references.
|
|
5852
|
+
*/
|
|
5853
|
+
is_archived?: boolean;
|
|
5854
|
+
|
|
5855
|
+
/**
|
|
5856
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
5857
|
+
*/
|
|
5858
|
+
logo?: string;
|
|
5859
|
+
|
|
5860
|
+
/**
|
|
5861
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
5862
|
+
* alternate names.
|
|
5863
|
+
*/
|
|
5864
|
+
name?: string;
|
|
5865
|
+
}
|
|
5866
|
+
|
|
5867
|
+
/**
|
|
5868
|
+
* Start, end, or intermediate stop on a mileage trip.
|
|
5869
|
+
*/
|
|
5870
|
+
export interface Waypoint {
|
|
5871
|
+
/**
|
|
5872
|
+
* Address of this point. Null when the point has no address.
|
|
5873
|
+
*/
|
|
5874
|
+
address?: string;
|
|
5875
|
+
|
|
5876
|
+
/**
|
|
5877
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
5878
|
+
* has no coordinates.
|
|
5879
|
+
*/
|
|
5880
|
+
coordinates?: Waypoint.Coordinates;
|
|
5881
|
+
}
|
|
5882
|
+
|
|
5883
|
+
export namespace Waypoint {
|
|
5884
|
+
/**
|
|
5885
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
5886
|
+
* has no coordinates.
|
|
5887
|
+
*/
|
|
5888
|
+
export interface Coordinates {
|
|
5889
|
+
/**
|
|
5890
|
+
* Latitude of this point, in decimal degrees.
|
|
5891
|
+
*/
|
|
5892
|
+
latitude?: number;
|
|
5893
|
+
|
|
5894
|
+
/**
|
|
5895
|
+
* Longitude of this point, in decimal degrees.
|
|
5896
|
+
*/
|
|
5897
|
+
longitude?: number;
|
|
5898
|
+
}
|
|
5899
|
+
}
|
|
5900
|
+
}
|
|
5901
|
+
|
|
5902
|
+
export interface ReimbursementListParams {
|
|
5903
|
+
cursor?: string;
|
|
5904
|
+
|
|
5905
|
+
expand?: string;
|
|
5906
|
+
|
|
5907
|
+
filter?: string;
|
|
5908
|
+
|
|
5909
|
+
/**
|
|
5910
|
+
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
5911
|
+
*/
|
|
5912
|
+
limit?: number;
|
|
5913
|
+
|
|
5914
|
+
order_by?: string;
|
|
5915
|
+
}
|
|
5916
|
+
|
|
5917
|
+
export interface ReimbursementRetrieveParams {
|
|
5918
|
+
expand?: string;
|
|
5919
|
+
}
|
|
5920
|
+
|
|
5921
|
+
export interface ReimbursementUpdateParams {
|
|
4697
5922
|
/**
|
|
4698
5923
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
4699
5924
|
* `amount` and `tax_amount` are decimal strings in the merchant currency. The sum
|
|
@@ -4835,6 +6060,14 @@ export namespace ReimbursementUpdateParams {
|
|
|
4835
6060
|
}
|
|
4836
6061
|
}
|
|
4837
6062
|
|
|
6063
|
+
export interface ReimbursementUploadAttachmentParams {
|
|
6064
|
+
/**
|
|
6065
|
+
* The file to attach, up to 10 MB. Any type except executables and scripts. The
|
|
6066
|
+
* type is detected from the file's contents.
|
|
6067
|
+
*/
|
|
6068
|
+
file: Uploadable;
|
|
6069
|
+
}
|
|
6070
|
+
|
|
4838
6071
|
export interface ReimbursementUploadReceiptParams {
|
|
4839
6072
|
/**
|
|
4840
6073
|
* The receipt file: PDF, JPEG, PNG, or BMP, up to 10 MB. The type is detected from
|
|
@@ -4848,11 +6081,13 @@ export declare namespace Reimbursements {
|
|
|
4848
6081
|
type ReimbursementListResponse as ReimbursementListResponse,
|
|
4849
6082
|
type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse,
|
|
4850
6083
|
type ReimbursementUpdateResponse as ReimbursementUpdateResponse,
|
|
6084
|
+
type ReimbursementUploadAttachmentResponse as ReimbursementUploadAttachmentResponse,
|
|
4851
6085
|
type ReimbursementUploadReceiptResponse as ReimbursementUploadReceiptResponse,
|
|
4852
6086
|
type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL,
|
|
4853
6087
|
type ReimbursementListParams as ReimbursementListParams,
|
|
4854
6088
|
type ReimbursementRetrieveParams as ReimbursementRetrieveParams,
|
|
4855
6089
|
type ReimbursementUpdateParams as ReimbursementUpdateParams,
|
|
6090
|
+
type ReimbursementUploadAttachmentParams as ReimbursementUploadAttachmentParams,
|
|
4856
6091
|
type ReimbursementUploadReceiptParams as ReimbursementUploadReceiptParams,
|
|
4857
6092
|
};
|
|
4858
6093
|
}
|