@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
|
@@ -416,6 +416,216 @@ export declare class Reimbursements extends APIResource {
|
|
|
416
416
|
* ```
|
|
417
417
|
*/
|
|
418
418
|
update(id: string, body?: ReimbursementUpdateParams | null | undefined, options?: RequestOptions): APIPromise<ReimbursementUpdateResponse>;
|
|
419
|
+
/**
|
|
420
|
+
* Send the file as `multipart/form-data` in a `file` field. It is stored and
|
|
421
|
+
* appended to the reimbursement's attachments in a single request. Existing
|
|
422
|
+
* attachments are kept. As in Rippling, attachments can still be added after the
|
|
423
|
+
* reimbursement is paid out, finalized, or failed.
|
|
424
|
+
*
|
|
425
|
+
* Attachments are supporting documents, separate from the receipt. Rippling
|
|
426
|
+
* doesn't read their contents or fill in reimbursement fields from them.
|
|
427
|
+
* Attachments can only be removed in Rippling.
|
|
428
|
+
*
|
|
429
|
+
* Uploading the same file again returns the reimbursement without adding another
|
|
430
|
+
* copy, so a request can be retried after a timeout. This applies to files
|
|
431
|
+
* previously attached by this API; older attachments are not deduplicated. Returns
|
|
432
|
+
* the updated reimbursement in the same shape as `GET /reimbursements/{id}/`, with
|
|
433
|
+
* the new file last in `attachments`.
|
|
434
|
+
*
|
|
435
|
+
* @example HTTP
|
|
436
|
+
* Representative request and response shapes.
|
|
437
|
+
* ```
|
|
438
|
+
* POST /reimbursements/{id}/attachments/ HTTP/1.1
|
|
439
|
+
* Host: rest.ripplingapis.com
|
|
440
|
+
* Content-Type: multipart/form-data
|
|
441
|
+
* Accept: application/json
|
|
442
|
+
* Rippling-Api-Version: 2024-08-01
|
|
443
|
+
*
|
|
444
|
+
* <multipart form data>
|
|
445
|
+
*
|
|
446
|
+
* HTTP/1.1 200 OK
|
|
447
|
+
* Content-Type: application/json
|
|
448
|
+
*
|
|
449
|
+
* {
|
|
450
|
+
* "id": "string",
|
|
451
|
+
* "created_at": "string",
|
|
452
|
+
* "updated_at": "string",
|
|
453
|
+
* "worker_id": "string",
|
|
454
|
+
* "worker": {
|
|
455
|
+
* "id": "string",
|
|
456
|
+
* "created_at": "string",
|
|
457
|
+
* "updated_at": "string"
|
|
458
|
+
* },
|
|
459
|
+
* "company_amount": {},
|
|
460
|
+
* "merchant_amount": {
|
|
461
|
+
* "currency_type": "string",
|
|
462
|
+
* "value": 0
|
|
463
|
+
* },
|
|
464
|
+
* "accounting_date": "string",
|
|
465
|
+
* "gl_sync_state": "NOT_FINALIZED",
|
|
466
|
+
* "approval_status": "DRAFT",
|
|
467
|
+
* "entity_id": "string",
|
|
468
|
+
* "vendor": {
|
|
469
|
+
* "id": "string",
|
|
470
|
+
* "created_at": "string",
|
|
471
|
+
* "updated_at": "string",
|
|
472
|
+
* "name": "string",
|
|
473
|
+
* "logo": "string",
|
|
474
|
+
* "is_archived": false
|
|
475
|
+
* },
|
|
476
|
+
* "gl_vendor": {
|
|
477
|
+
* "id": "string",
|
|
478
|
+
* "name": "string",
|
|
479
|
+
* "gl_vendor_id": "string"
|
|
480
|
+
* },
|
|
481
|
+
* "memo": "string",
|
|
482
|
+
* "attachments": [
|
|
483
|
+
* {
|
|
484
|
+
* "url": "string",
|
|
485
|
+
* "file_name": "string",
|
|
486
|
+
* "uploaded_at": "string",
|
|
487
|
+
* "uploaded_by_id": "string"
|
|
488
|
+
* }
|
|
489
|
+
* ],
|
|
490
|
+
* "line_items": [
|
|
491
|
+
* {
|
|
492
|
+
* "gl_customer": "string",
|
|
493
|
+
* "gl_billable": "BILLABLE",
|
|
494
|
+
* "dimension_choices": {},
|
|
495
|
+
* "memo": "string",
|
|
496
|
+
* "gl_amortization_template": {
|
|
497
|
+
* "gl_object_id": "string",
|
|
498
|
+
* "accounting_integration_id": "string",
|
|
499
|
+
* "name": "string",
|
|
500
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
|
|
501
|
+
* },
|
|
502
|
+
* "amortized": false,
|
|
503
|
+
* "start_date": "string",
|
|
504
|
+
* "end_date": "string",
|
|
505
|
+
* "prepaid_account": {
|
|
506
|
+
* "account_id": "string",
|
|
507
|
+
* "name": "string",
|
|
508
|
+
* "code": "string",
|
|
509
|
+
* "type": "RECEIVABLE",
|
|
510
|
+
* "required_custom_dimensions": [],
|
|
511
|
+
* "requires_department": "string",
|
|
512
|
+
* "requires_work_location": "string"
|
|
513
|
+
* },
|
|
514
|
+
* "gl_amortization_schedule": {
|
|
515
|
+
* "gl_object_id": "string",
|
|
516
|
+
* "accounting_integration_id": "string",
|
|
517
|
+
* "name": "string",
|
|
518
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
|
|
519
|
+
* "start_date": "string",
|
|
520
|
+
* "end_date": "string",
|
|
521
|
+
* "total_amount": "string",
|
|
522
|
+
* "total_amortized_amount": "string",
|
|
523
|
+
* "amortization_period": "string",
|
|
524
|
+
* "status": "NOT_STARTED"
|
|
525
|
+
* },
|
|
526
|
+
* "gl_tax_code": "string",
|
|
527
|
+
* "id": "string",
|
|
528
|
+
* "category_id": "string",
|
|
529
|
+
* "category_name": "string",
|
|
530
|
+
* "amount": {
|
|
531
|
+
* "currency_type": "string",
|
|
532
|
+
* "value": "string"
|
|
533
|
+
* },
|
|
534
|
+
* "tax_amount": {
|
|
535
|
+
* "currency_type": "string",
|
|
536
|
+
* "value": "string"
|
|
537
|
+
* }
|
|
538
|
+
* }
|
|
539
|
+
* ],
|
|
540
|
+
* "vendor_id": "string",
|
|
541
|
+
* "transaction_date": "string",
|
|
542
|
+
* "receipt": {
|
|
543
|
+
* "url": "string",
|
|
544
|
+
* "file_name": "string"
|
|
545
|
+
* },
|
|
546
|
+
* "transaction_type": "REIMBURSEMENT",
|
|
547
|
+
* "payout_amount": {
|
|
548
|
+
* "currency_type": "string",
|
|
549
|
+
* "value": 0
|
|
550
|
+
* },
|
|
551
|
+
* "payout_method": "NOT_SET",
|
|
552
|
+
* "payout_date": "string",
|
|
553
|
+
* "distance": 0,
|
|
554
|
+
* "mileage_rate_id": "string",
|
|
555
|
+
* "mileage_rate": {
|
|
556
|
+
* "id": "string",
|
|
557
|
+
* "created_at": "string",
|
|
558
|
+
* "updated_at": "string",
|
|
559
|
+
* "name": "string",
|
|
560
|
+
* "rate": {
|
|
561
|
+
* "currency_type": "string",
|
|
562
|
+
* "value": 0
|
|
563
|
+
* },
|
|
564
|
+
* "units": "km",
|
|
565
|
+
* "start_date": "string",
|
|
566
|
+
* "end_date": "string",
|
|
567
|
+
* "country": "string",
|
|
568
|
+
* "half_cent": false
|
|
569
|
+
* },
|
|
570
|
+
* "start_location": {
|
|
571
|
+
* "address": "string",
|
|
572
|
+
* "coordinates": {
|
|
573
|
+
* "latitude": 0,
|
|
574
|
+
* "longitude": 0
|
|
575
|
+
* }
|
|
576
|
+
* },
|
|
577
|
+
* "end_location": {
|
|
578
|
+
* "address": "string",
|
|
579
|
+
* "coordinates": {
|
|
580
|
+
* "latitude": 0,
|
|
581
|
+
* "longitude": 0
|
|
582
|
+
* }
|
|
583
|
+
* },
|
|
584
|
+
* "waypoints": [
|
|
585
|
+
* {
|
|
586
|
+
* "address": "string",
|
|
587
|
+
* "coordinates": {
|
|
588
|
+
* "latitude": "string",
|
|
589
|
+
* "longitude": "string"
|
|
590
|
+
* }
|
|
591
|
+
* }
|
|
592
|
+
* ],
|
|
593
|
+
* "trip_start_date": "string",
|
|
594
|
+
* "trip_end_date": "string",
|
|
595
|
+
* "per_diem_rate_id": "string",
|
|
596
|
+
* "per_diem_rate": {
|
|
597
|
+
* "id": "string",
|
|
598
|
+
* "created_at": "string",
|
|
599
|
+
* "updated_at": "string",
|
|
600
|
+
* "destination_name": "string",
|
|
601
|
+
* "country": "string",
|
|
602
|
+
* "currency": "string",
|
|
603
|
+
* "start_date": "string",
|
|
604
|
+
* "end_date": "string",
|
|
605
|
+
* "is_current": false,
|
|
606
|
+
* "is_archived": false
|
|
607
|
+
* },
|
|
608
|
+
* "per_diem_line_items": [
|
|
609
|
+
* {
|
|
610
|
+
* "sub_rate_id": "string",
|
|
611
|
+
* "sub_rate_type": "FULL_DAY",
|
|
612
|
+
* "label": "string",
|
|
613
|
+
* "amount": {
|
|
614
|
+
* "currency_type": "string",
|
|
615
|
+
* "value": "string"
|
|
616
|
+
* },
|
|
617
|
+
* "count": 0,
|
|
618
|
+
* "line_type": "INCLUDE",
|
|
619
|
+
* "calculated_amount": {
|
|
620
|
+
* "currency_type": "string",
|
|
621
|
+
* "value": "string"
|
|
622
|
+
* }
|
|
623
|
+
* }
|
|
624
|
+
* ]
|
|
625
|
+
* }
|
|
626
|
+
* ```
|
|
627
|
+
*/
|
|
628
|
+
uploadAttachment(id: string, body: ReimbursementUploadAttachmentParams, options?: RequestOptions): APIPromise<ReimbursementUploadAttachmentResponse>;
|
|
419
629
|
/**
|
|
420
630
|
* Send the receipt file as `multipart/form-data` in a `file` field. It is stored
|
|
421
631
|
* and attached in a single request, replacing the existing receipt, so a retried
|
|
@@ -3101,7 +3311,7 @@ export declare namespace ReimbursementUpdateResponse {
|
|
|
3101
3311
|
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
3102
3312
|
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
3103
3313
|
*/
|
|
3104
|
-
export interface
|
|
3314
|
+
export interface ReimbursementUploadAttachmentResponse {
|
|
3105
3315
|
/**
|
|
3106
3316
|
* Identifier field
|
|
3107
3317
|
*/
|
|
@@ -3131,11 +3341,11 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3131
3341
|
/**
|
|
3132
3342
|
* Other attached files, including filenames and recorded upload metadata.
|
|
3133
3343
|
*/
|
|
3134
|
-
attachments?: Array<
|
|
3344
|
+
attachments?: Array<ReimbursementUploadAttachmentResponse.Attachment>;
|
|
3135
3345
|
/**
|
|
3136
3346
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
3137
3347
|
*/
|
|
3138
|
-
company_amount?:
|
|
3348
|
+
company_amount?: ReimbursementUploadAttachmentResponse.CompanyAmount;
|
|
3139
3349
|
/**
|
|
3140
3350
|
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
3141
3351
|
*/
|
|
@@ -3143,7 +3353,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3143
3353
|
/**
|
|
3144
3354
|
* End of a mileage trip. Null except on mileage reimbursements.
|
|
3145
3355
|
*/
|
|
3146
|
-
end_location?:
|
|
3356
|
+
end_location?: ReimbursementUploadAttachmentResponse.EndLocation;
|
|
3147
3357
|
/**
|
|
3148
3358
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
3149
3359
|
* `/company-legal-entities/{id}/`.
|
|
@@ -3161,11 +3371,11 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3161
3371
|
/**
|
|
3162
3372
|
* Vendor in the connected accounting system.
|
|
3163
3373
|
*/
|
|
3164
|
-
gl_vendor?:
|
|
3374
|
+
gl_vendor?: ReimbursementUploadAttachmentResponse.GlVendor;
|
|
3165
3375
|
/**
|
|
3166
3376
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
3167
3377
|
*/
|
|
3168
|
-
line_items?: Array<
|
|
3378
|
+
line_items?: Array<ReimbursementUploadAttachmentResponse.LineItem>;
|
|
3169
3379
|
/**
|
|
3170
3380
|
* Memo entered on the transaction.
|
|
3171
3381
|
*/
|
|
@@ -3174,14 +3384,14 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3174
3384
|
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
3175
3385
|
* decimal string.
|
|
3176
3386
|
*/
|
|
3177
|
-
merchant_amount?:
|
|
3387
|
+
merchant_amount?: ReimbursementUploadAttachmentResponse.MerchantAmount;
|
|
3178
3388
|
/**
|
|
3179
3389
|
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
3180
3390
|
* `reimbursements.read`.
|
|
3181
3391
|
*
|
|
3182
3392
|
* Expandable field
|
|
3183
3393
|
*/
|
|
3184
|
-
mileage_rate?:
|
|
3394
|
+
mileage_rate?: ReimbursementUploadAttachmentResponse.MileageRate;
|
|
3185
3395
|
/**
|
|
3186
3396
|
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
3187
3397
|
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
@@ -3191,7 +3401,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3191
3401
|
/**
|
|
3192
3402
|
* Amount credited to the worker. The `value` is a decimal string.
|
|
3193
3403
|
*/
|
|
3194
|
-
payout_amount?:
|
|
3404
|
+
payout_amount?: ReimbursementUploadAttachmentResponse.PayoutAmount;
|
|
3195
3405
|
/**
|
|
3196
3406
|
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
3197
3407
|
* assigned.
|
|
@@ -3208,14 +3418,14 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3208
3418
|
/**
|
|
3209
3419
|
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
3210
3420
|
*/
|
|
3211
|
-
per_diem_line_items?: Array<
|
|
3421
|
+
per_diem_line_items?: Array<ReimbursementUploadAttachmentResponse.PerDiemLineItem>;
|
|
3212
3422
|
/**
|
|
3213
3423
|
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
3214
3424
|
* `reimbursements.read`.
|
|
3215
3425
|
*
|
|
3216
3426
|
* Expandable field
|
|
3217
3427
|
*/
|
|
3218
|
-
per_diem_rate?:
|
|
3428
|
+
per_diem_rate?: ReimbursementUploadAttachmentResponse.PerDiemRate;
|
|
3219
3429
|
/**
|
|
3220
3430
|
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
3221
3431
|
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
@@ -3225,11 +3435,11 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3225
3435
|
/**
|
|
3226
3436
|
* Receipt file and its filename.
|
|
3227
3437
|
*/
|
|
3228
|
-
receipt?:
|
|
3438
|
+
receipt?: ReimbursementUploadAttachmentResponse.Receipt;
|
|
3229
3439
|
/**
|
|
3230
3440
|
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
3231
3441
|
*/
|
|
3232
|
-
start_location?:
|
|
3442
|
+
start_location?: ReimbursementUploadAttachmentResponse.StartLocation;
|
|
3233
3443
|
/**
|
|
3234
3444
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
3235
3445
|
*/
|
|
@@ -3256,7 +3466,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3256
3466
|
*
|
|
3257
3467
|
* Expandable field
|
|
3258
3468
|
*/
|
|
3259
|
-
vendor?:
|
|
3469
|
+
vendor?: ReimbursementUploadAttachmentResponse.Vendor;
|
|
3260
3470
|
/**
|
|
3261
3471
|
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
3262
3472
|
*/
|
|
@@ -3265,7 +3475,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3265
3475
|
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
3266
3476
|
* except on mileage reimbursements.
|
|
3267
3477
|
*/
|
|
3268
|
-
waypoints?: Array<
|
|
3478
|
+
waypoints?: Array<ReimbursementUploadAttachmentResponse.Waypoint>;
|
|
3269
3479
|
/**
|
|
3270
3480
|
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
3271
3481
|
*
|
|
@@ -3277,7 +3487,7 @@ export interface ReimbursementUploadReceiptResponse {
|
|
|
3277
3487
|
*/
|
|
3278
3488
|
worker_id?: string;
|
|
3279
3489
|
}
|
|
3280
|
-
export declare namespace
|
|
3490
|
+
export declare namespace ReimbursementUploadAttachmentResponse {
|
|
3281
3491
|
/**
|
|
3282
3492
|
* A Finance transaction attachment with recorded upload details.
|
|
3283
3493
|
*/
|
|
@@ -3915,39 +4125,864 @@ export declare namespace ReimbursementUploadReceiptResponse {
|
|
|
3915
4125
|
}
|
|
3916
4126
|
}
|
|
3917
4127
|
}
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
4128
|
+
/**
|
|
4129
|
+
* A Finance reimbursement the caller can see.
|
|
4130
|
+
*
|
|
4131
|
+
* A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
|
|
4132
|
+
* use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
|
|
4133
|
+
* Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
|
|
4134
|
+
* that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
|
|
4135
|
+
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
4136
|
+
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
4137
|
+
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
4138
|
+
*/
|
|
4139
|
+
export interface ReimbursementUploadReceiptResponse {
|
|
3922
4140
|
/**
|
|
3923
|
-
*
|
|
4141
|
+
* Identifier field
|
|
3924
4142
|
*/
|
|
3925
|
-
|
|
3926
|
-
order_by?: string;
|
|
3927
|
-
}
|
|
3928
|
-
export interface ReimbursementRetrieveParams {
|
|
3929
|
-
expand?: string;
|
|
3930
|
-
}
|
|
3931
|
-
export interface ReimbursementUpdateParams {
|
|
4143
|
+
id: string;
|
|
3932
4144
|
/**
|
|
3933
|
-
*
|
|
3934
|
-
* `amount` and `tax_amount` are decimal strings in the merchant currency. The sum
|
|
3935
|
-
* of `amount` values must match the transaction's merchant amount.
|
|
4145
|
+
* Record creation date
|
|
3936
4146
|
*/
|
|
3937
|
-
|
|
3938
|
-
}
|
|
3939
|
-
export declare namespace ReimbursementUpdateParams {
|
|
4147
|
+
created_at: string;
|
|
3940
4148
|
/**
|
|
3941
|
-
*
|
|
3942
|
-
* Currency objects.
|
|
4149
|
+
* Record update date
|
|
3943
4150
|
*/
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
4151
|
+
updated_at: string;
|
|
4152
|
+
/**
|
|
4153
|
+
* Date the transaction is booked in the accounting system, as an ISO 8601 date
|
|
4154
|
+
* (YYYY-MM-DD).
|
|
4155
|
+
*/
|
|
4156
|
+
accounting_date?: string;
|
|
4157
|
+
/**
|
|
4158
|
+
* Approval status of the transaction. `DRAFT`: not submitted for approval.
|
|
4159
|
+
* `PENDING`: awaiting required information or submission before approval.
|
|
4160
|
+
* `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
|
|
4161
|
+
* rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
|
|
4162
|
+
* reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
|
|
4163
|
+
* for card authorizations.
|
|
4164
|
+
*/
|
|
4165
|
+
approval_status?: 'DRAFT' | 'PENDING' | 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'FINALIZED' | 'ACTIONED' | 'CANCELLED' | 'FAILED';
|
|
4166
|
+
/**
|
|
4167
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
4168
|
+
*/
|
|
4169
|
+
attachments?: Array<ReimbursementUploadReceiptResponse.Attachment>;
|
|
4170
|
+
/**
|
|
4171
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
4172
|
+
*/
|
|
4173
|
+
company_amount?: ReimbursementUploadReceiptResponse.CompanyAmount;
|
|
4174
|
+
/**
|
|
4175
|
+
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
4176
|
+
*/
|
|
4177
|
+
distance?: number;
|
|
4178
|
+
/**
|
|
4179
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
4180
|
+
*/
|
|
4181
|
+
end_location?: ReimbursementUploadReceiptResponse.EndLocation;
|
|
4182
|
+
/**
|
|
4183
|
+
* ID of the legal entity the transaction belongs to. Use it with
|
|
4184
|
+
* `/company-legal-entities/{id}/`.
|
|
4185
|
+
*/
|
|
4186
|
+
entity_id?: string;
|
|
4187
|
+
/**
|
|
4188
|
+
* State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
|
|
4189
|
+
* accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
|
|
4190
|
+
* sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
|
|
4191
|
+
* failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
|
|
4192
|
+
* accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
|
|
4193
|
+
* be synced automatically. Null when no sync state is set.
|
|
4194
|
+
*/
|
|
4195
|
+
gl_sync_state?: 'NOT_FINALIZED' | 'FOR_REVIEW' | 'PENDING_SYNC' | 'SYNCED' | 'ERROR' | 'DO_NOT_SYNC' | 'EXPORTED' | 'NOT_SYNCABLE' | 'AUTO_SYNC';
|
|
4196
|
+
/**
|
|
4197
|
+
* Vendor in the connected accounting system.
|
|
4198
|
+
*/
|
|
4199
|
+
gl_vendor?: ReimbursementUploadReceiptResponse.GlVendor;
|
|
4200
|
+
/**
|
|
4201
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
4202
|
+
*/
|
|
4203
|
+
line_items?: Array<ReimbursementUploadReceiptResponse.LineItem>;
|
|
4204
|
+
/**
|
|
4205
|
+
* Memo entered on the transaction.
|
|
4206
|
+
*/
|
|
4207
|
+
memo?: string;
|
|
4208
|
+
/**
|
|
4209
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
4210
|
+
* decimal string.
|
|
4211
|
+
*/
|
|
4212
|
+
merchant_amount?: ReimbursementUploadReceiptResponse.MerchantAmount;
|
|
4213
|
+
/**
|
|
4214
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
4215
|
+
* `reimbursements.read`.
|
|
4216
|
+
*
|
|
4217
|
+
* Expandable field
|
|
4218
|
+
*/
|
|
4219
|
+
mileage_rate?: ReimbursementUploadReceiptResponse.MileageRate;
|
|
4220
|
+
/**
|
|
4221
|
+
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
4222
|
+
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
4223
|
+
* there is no standalone rate lookup endpoint.
|
|
4224
|
+
*/
|
|
4225
|
+
mileage_rate_id?: string;
|
|
4226
|
+
/**
|
|
4227
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
4228
|
+
*/
|
|
4229
|
+
payout_amount?: ReimbursementUploadReceiptResponse.PayoutAmount;
|
|
4230
|
+
/**
|
|
4231
|
+
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
4232
|
+
* assigned.
|
|
4233
|
+
*/
|
|
4234
|
+
payout_date?: string;
|
|
4235
|
+
/**
|
|
4236
|
+
* How the worker is paid. `NOT_SET`: no payout run is assigned. `US_PAYROLL`:
|
|
4237
|
+
* assigned to a US payroll run. `GLOBAL_PAYROLL`: assigned to a global payroll
|
|
4238
|
+
* run. `DIRECT_DEPOSIT`: assigned to a direct deposit run. `EOR`: assigned to an
|
|
4239
|
+
* employer-of-record payroll run. `MANUAL`: marked paid outside a run. If a payout
|
|
4240
|
+
* method override is set, it is returned.
|
|
4241
|
+
*/
|
|
4242
|
+
payout_method?: 'NOT_SET' | 'GLOBAL_PAYROLL' | 'US_PAYROLL' | 'DIRECT_DEPOSIT' | 'EOR' | 'MANUAL';
|
|
4243
|
+
/**
|
|
4244
|
+
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
4245
|
+
*/
|
|
4246
|
+
per_diem_line_items?: Array<ReimbursementUploadReceiptResponse.PerDiemLineItem>;
|
|
4247
|
+
/**
|
|
4248
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
4249
|
+
* `reimbursements.read`.
|
|
4250
|
+
*
|
|
4251
|
+
* Expandable field
|
|
4252
|
+
*/
|
|
4253
|
+
per_diem_rate?: ReimbursementUploadReceiptResponse.PerDiemRate;
|
|
4254
|
+
/**
|
|
4255
|
+
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
4256
|
+
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
4257
|
+
* is no standalone rate lookup endpoint.
|
|
4258
|
+
*/
|
|
4259
|
+
per_diem_rate_id?: string;
|
|
4260
|
+
/**
|
|
4261
|
+
* Receipt file and its filename.
|
|
4262
|
+
*/
|
|
4263
|
+
receipt?: ReimbursementUploadReceiptResponse.Receipt;
|
|
4264
|
+
/**
|
|
4265
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
4266
|
+
*/
|
|
4267
|
+
start_location?: ReimbursementUploadReceiptResponse.StartLocation;
|
|
4268
|
+
/**
|
|
4269
|
+
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
4270
|
+
*/
|
|
4271
|
+
transaction_date?: string;
|
|
4272
|
+
/**
|
|
4273
|
+
* `REIMBURSEMENT`: an expense the worker paid and the company pays back.
|
|
4274
|
+
* `MILEAGE_REIMBURSEMENT`: payback for distance driven. `PER_DIEM_REIMBURSEMENT`:
|
|
4275
|
+
* payback for a daily travel allowance. This decides which mileage or per diem
|
|
4276
|
+
* fields are set.
|
|
4277
|
+
*/
|
|
4278
|
+
transaction_type?: 'REIMBURSEMENT' | 'MILEAGE_REIMBURSEMENT' | 'PER_DIEM_REIMBURSEMENT';
|
|
4279
|
+
/**
|
|
4280
|
+
* Per diem trip end date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
|
|
4281
|
+
* diem reimbursements.
|
|
4282
|
+
*/
|
|
4283
|
+
trip_end_date?: string;
|
|
4284
|
+
/**
|
|
4285
|
+
* Per diem trip start date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
|
|
4286
|
+
* diem reimbursements.
|
|
4287
|
+
*/
|
|
4288
|
+
trip_start_date?: string;
|
|
4289
|
+
/**
|
|
4290
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
4291
|
+
*
|
|
4292
|
+
* Expandable field
|
|
4293
|
+
*/
|
|
4294
|
+
vendor?: ReimbursementUploadReceiptResponse.Vendor;
|
|
4295
|
+
/**
|
|
4296
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
4297
|
+
*/
|
|
4298
|
+
vendor_id?: string;
|
|
4299
|
+
/**
|
|
4300
|
+
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
4301
|
+
* except on mileage reimbursements.
|
|
4302
|
+
*/
|
|
4303
|
+
waypoints?: Array<ReimbursementUploadReceiptResponse.Waypoint>;
|
|
4304
|
+
/**
|
|
4305
|
+
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
4306
|
+
*
|
|
4307
|
+
* Expandable field
|
|
4308
|
+
*/
|
|
4309
|
+
worker?: WorkersAPI.Worker;
|
|
4310
|
+
/**
|
|
4311
|
+
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
4312
|
+
*/
|
|
4313
|
+
worker_id?: string;
|
|
4314
|
+
}
|
|
4315
|
+
export declare namespace ReimbursementUploadReceiptResponse {
|
|
4316
|
+
/**
|
|
4317
|
+
* A Finance transaction attachment with recorded upload details.
|
|
4318
|
+
*/
|
|
4319
|
+
interface Attachment {
|
|
4320
|
+
/**
|
|
4321
|
+
* URL for accessing the file.
|
|
4322
|
+
*/
|
|
4323
|
+
url: string;
|
|
4324
|
+
/**
|
|
4325
|
+
* Original file name, when recorded.
|
|
4326
|
+
*/
|
|
4327
|
+
file_name?: string;
|
|
4328
|
+
/**
|
|
4329
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
4330
|
+
* recorded.
|
|
4331
|
+
*/
|
|
4332
|
+
uploaded_at?: string;
|
|
4333
|
+
/**
|
|
4334
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
4335
|
+
*/
|
|
4336
|
+
uploaded_by_id?: string;
|
|
4337
|
+
}
|
|
4338
|
+
/**
|
|
4339
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
4340
|
+
*/
|
|
4341
|
+
interface CompanyAmount {
|
|
4342
|
+
/**
|
|
4343
|
+
* The currency type, ex: USD, EUR, etc.
|
|
4344
|
+
*/
|
|
4345
|
+
currency_type?: string;
|
|
4346
|
+
/**
|
|
4347
|
+
* The decimal amount for the currency.
|
|
4348
|
+
*/
|
|
4349
|
+
value?: number;
|
|
4350
|
+
}
|
|
4351
|
+
/**
|
|
4352
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
4353
|
+
*/
|
|
4354
|
+
interface EndLocation {
|
|
4355
|
+
/**
|
|
4356
|
+
* Address of this point. Null when the point has no address.
|
|
4357
|
+
*/
|
|
4358
|
+
address?: string;
|
|
4359
|
+
/**
|
|
4360
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
4361
|
+
* has no coordinates.
|
|
4362
|
+
*/
|
|
4363
|
+
coordinates?: EndLocation.Coordinates;
|
|
4364
|
+
}
|
|
4365
|
+
namespace EndLocation {
|
|
4366
|
+
/**
|
|
4367
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
4368
|
+
* has no coordinates.
|
|
4369
|
+
*/
|
|
4370
|
+
interface Coordinates {
|
|
4371
|
+
/**
|
|
4372
|
+
* Latitude of this point, in decimal degrees.
|
|
4373
|
+
*/
|
|
4374
|
+
latitude?: number;
|
|
4375
|
+
/**
|
|
4376
|
+
* Longitude of this point, in decimal degrees.
|
|
4377
|
+
*/
|
|
4378
|
+
longitude?: number;
|
|
4379
|
+
}
|
|
4380
|
+
}
|
|
4381
|
+
/**
|
|
4382
|
+
* Vendor in the connected accounting system.
|
|
4383
|
+
*/
|
|
4384
|
+
interface GlVendor {
|
|
4385
|
+
/**
|
|
4386
|
+
* ID of the accounting vendor in Rippling.
|
|
4387
|
+
*/
|
|
4388
|
+
id?: string;
|
|
4389
|
+
/**
|
|
4390
|
+
* ID of the vendor in the accounting system.
|
|
4391
|
+
*/
|
|
4392
|
+
gl_vendor_id?: string;
|
|
4393
|
+
/**
|
|
4394
|
+
* Name of the vendor in the accounting system.
|
|
4395
|
+
*/
|
|
4396
|
+
name?: string;
|
|
4397
|
+
}
|
|
4398
|
+
interface LineItem {
|
|
4399
|
+
/**
|
|
4400
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
4401
|
+
* been assigned one yet.
|
|
4402
|
+
*/
|
|
4403
|
+
id?: string;
|
|
4404
|
+
/**
|
|
4405
|
+
* Whether this line is amortized.
|
|
4406
|
+
*/
|
|
4407
|
+
amortized?: boolean;
|
|
4408
|
+
/**
|
|
4409
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
4410
|
+
*/
|
|
4411
|
+
amount?: LineItem.Amount;
|
|
4412
|
+
/**
|
|
4413
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
4414
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
4415
|
+
*/
|
|
4416
|
+
category_id?: string;
|
|
4417
|
+
/**
|
|
4418
|
+
* Name of the finance category.
|
|
4419
|
+
*/
|
|
4420
|
+
category_name?: string;
|
|
4421
|
+
/**
|
|
4422
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
4423
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
4424
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
4425
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
4426
|
+
*/
|
|
4427
|
+
dimension_choices?: {
|
|
4428
|
+
[key: string]: LineItem.DimensionChoices;
|
|
4429
|
+
};
|
|
4430
|
+
/**
|
|
4431
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
4432
|
+
*/
|
|
4433
|
+
end_date?: string;
|
|
4434
|
+
/**
|
|
4435
|
+
* ERP amortization schedule associated with this line.
|
|
4436
|
+
*/
|
|
4437
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
4438
|
+
/**
|
|
4439
|
+
* ERP amortization template for this line.
|
|
4440
|
+
*/
|
|
4441
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
4442
|
+
/**
|
|
4443
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
4444
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
4445
|
+
* set.
|
|
4446
|
+
*/
|
|
4447
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
4448
|
+
/**
|
|
4449
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
4450
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
4451
|
+
*/
|
|
4452
|
+
gl_customer?: string;
|
|
4453
|
+
/**
|
|
4454
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
4455
|
+
* available to retrieve this accounting tax code.
|
|
4456
|
+
*/
|
|
4457
|
+
gl_tax_code?: string;
|
|
4458
|
+
/**
|
|
4459
|
+
* Memo entered on this split.
|
|
4460
|
+
*/
|
|
4461
|
+
memo?: string;
|
|
4462
|
+
/**
|
|
4463
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
4464
|
+
*/
|
|
4465
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
4466
|
+
/**
|
|
4467
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
4468
|
+
*/
|
|
4469
|
+
start_date?: string;
|
|
4470
|
+
/**
|
|
4471
|
+
* Total tax amount for this line in the merchant currency.
|
|
4472
|
+
*/
|
|
4473
|
+
tax_amount?: LineItem.TaxAmount;
|
|
4474
|
+
}
|
|
4475
|
+
namespace LineItem {
|
|
4476
|
+
/**
|
|
4477
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
4478
|
+
*/
|
|
4479
|
+
interface Amount {
|
|
4480
|
+
/**
|
|
4481
|
+
* The currency type, ex: USD, EUR, etc.
|
|
4482
|
+
*/
|
|
4483
|
+
currency_type?: string;
|
|
4484
|
+
/**
|
|
4485
|
+
* The decimal amount for the currency.
|
|
4486
|
+
*/
|
|
4487
|
+
value?: number;
|
|
4488
|
+
}
|
|
4489
|
+
interface DimensionChoices {
|
|
4490
|
+
/**
|
|
4491
|
+
* Name of the dimension, such as Department.
|
|
4492
|
+
*/
|
|
4493
|
+
dimension_name?: string;
|
|
4494
|
+
/**
|
|
4495
|
+
* Display name of the selected dimension value.
|
|
4496
|
+
*/
|
|
4497
|
+
label?: string;
|
|
4498
|
+
/**
|
|
4499
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
4500
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
4501
|
+
* `/job-codes/{id}/`.
|
|
4502
|
+
*/
|
|
4503
|
+
value?: string;
|
|
4504
|
+
}
|
|
4505
|
+
/**
|
|
4506
|
+
* ERP amortization schedule associated with this line.
|
|
4507
|
+
*/
|
|
4508
|
+
interface GlAmortizationSchedule {
|
|
4509
|
+
/**
|
|
4510
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
4511
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
4512
|
+
*/
|
|
4513
|
+
accounting_integration_id?: string;
|
|
4514
|
+
/**
|
|
4515
|
+
* Number of amortization periods.
|
|
4516
|
+
*/
|
|
4517
|
+
amortization_period?: number;
|
|
4518
|
+
/**
|
|
4519
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
4520
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
4521
|
+
* indicate UTC. Null when not set.
|
|
4522
|
+
*/
|
|
4523
|
+
end_date?: string;
|
|
4524
|
+
/**
|
|
4525
|
+
* Object ID in the connected accounting system.
|
|
4526
|
+
*/
|
|
4527
|
+
gl_object_id?: string;
|
|
4528
|
+
/**
|
|
4529
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
4530
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
4531
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
4532
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
4533
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
4534
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
4535
|
+
* when not set.
|
|
4536
|
+
*/
|
|
4537
|
+
gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
|
|
4538
|
+
/**
|
|
4539
|
+
* Accounting object name.
|
|
4540
|
+
*/
|
|
4541
|
+
name?: string;
|
|
4542
|
+
/**
|
|
4543
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
4544
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
4545
|
+
* indicate UTC. Null when not set.
|
|
4546
|
+
*/
|
|
4547
|
+
start_date?: string;
|
|
4548
|
+
/**
|
|
4549
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
4550
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
4551
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
4552
|
+
*/
|
|
4553
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
4554
|
+
/**
|
|
4555
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
4556
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
4557
|
+
* not available in this response.
|
|
4558
|
+
*/
|
|
4559
|
+
total_amortized_amount?: number;
|
|
4560
|
+
/**
|
|
4561
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
4562
|
+
* schedule currency code is not available in this response.
|
|
4563
|
+
*/
|
|
4564
|
+
total_amount?: number;
|
|
4565
|
+
}
|
|
4566
|
+
/**
|
|
4567
|
+
* ERP amortization template for this line.
|
|
4568
|
+
*/
|
|
4569
|
+
interface GlAmortizationTemplate {
|
|
4570
|
+
/**
|
|
4571
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
4572
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
4573
|
+
*/
|
|
4574
|
+
accounting_integration_id?: string;
|
|
4575
|
+
/**
|
|
4576
|
+
* Object ID in the connected accounting system.
|
|
4577
|
+
*/
|
|
4578
|
+
gl_object_id?: string;
|
|
4579
|
+
/**
|
|
4580
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
4581
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
4582
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
4583
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
4584
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
4585
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
4586
|
+
* when not set.
|
|
4587
|
+
*/
|
|
4588
|
+
gl_object_type?: 'GL_AMORTIZATION_TEMPLATE' | 'GL_AMORTIZATION_SCHEDULE' | 'GL_AMORTIZATION_SCHEDULE_RECURRENCE' | 'GL_ACCOUNT' | 'GL_JOURNAL_ENTRY' | 'GL_POSTING_PERIOD' | 'GL_VENDOR' | 'GL_CUSTOMER' | 'GL_EMPLOYEE' | 'GL_SUBSIDIARY';
|
|
4589
|
+
/**
|
|
4590
|
+
* Accounting object name.
|
|
4591
|
+
*/
|
|
4592
|
+
name?: string;
|
|
4593
|
+
}
|
|
4594
|
+
/**
|
|
4595
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
4596
|
+
*/
|
|
4597
|
+
interface PrepaidAccount {
|
|
4598
|
+
/**
|
|
4599
|
+
* Account ID in the connected accounting system.
|
|
4600
|
+
*/
|
|
4601
|
+
account_id?: string;
|
|
4602
|
+
/**
|
|
4603
|
+
* Account code.
|
|
4604
|
+
*/
|
|
4605
|
+
code?: string;
|
|
4606
|
+
/**
|
|
4607
|
+
* Account name.
|
|
4608
|
+
*/
|
|
4609
|
+
name?: string;
|
|
4610
|
+
/**
|
|
4611
|
+
* IDs of custom dimensions required by this account.
|
|
4612
|
+
*/
|
|
4613
|
+
required_custom_dimensions?: Array<string>;
|
|
4614
|
+
/**
|
|
4615
|
+
* Whether this account requires a department.
|
|
4616
|
+
*/
|
|
4617
|
+
requires_department?: boolean;
|
|
4618
|
+
/**
|
|
4619
|
+
* Whether this account requires a work location.
|
|
4620
|
+
*/
|
|
4621
|
+
requires_work_location?: boolean;
|
|
4622
|
+
/**
|
|
4623
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
4624
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
4625
|
+
* when not set.
|
|
4626
|
+
*/
|
|
4627
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
4628
|
+
}
|
|
4629
|
+
/**
|
|
4630
|
+
* Total tax amount for this line in the merchant currency.
|
|
4631
|
+
*/
|
|
4632
|
+
interface TaxAmount {
|
|
4633
|
+
/**
|
|
4634
|
+
* The currency type, ex: USD, EUR, etc.
|
|
4635
|
+
*/
|
|
4636
|
+
currency_type?: string;
|
|
4637
|
+
/**
|
|
4638
|
+
* The decimal amount for the currency.
|
|
4639
|
+
*/
|
|
4640
|
+
value?: number;
|
|
4641
|
+
}
|
|
4642
|
+
}
|
|
4643
|
+
/**
|
|
4644
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
4645
|
+
* decimal string.
|
|
4646
|
+
*/
|
|
4647
|
+
interface MerchantAmount {
|
|
4648
|
+
/**
|
|
4649
|
+
* The currency type, ex: USD, EUR, etc.
|
|
4650
|
+
*/
|
|
4651
|
+
currency_type?: string;
|
|
4652
|
+
/**
|
|
4653
|
+
* The decimal amount for the currency.
|
|
4654
|
+
*/
|
|
4655
|
+
value?: number;
|
|
4656
|
+
}
|
|
4657
|
+
/**
|
|
4658
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
4659
|
+
* `reimbursements.read`.
|
|
4660
|
+
*
|
|
4661
|
+
* Expandable field
|
|
4662
|
+
*/
|
|
4663
|
+
interface MileageRate {
|
|
4664
|
+
/**
|
|
4665
|
+
* Company mileage rate ID.
|
|
4666
|
+
*/
|
|
4667
|
+
id: string;
|
|
4668
|
+
/**
|
|
4669
|
+
* When the mileage rate was created, as an ISO 8601 date-time in UTC.
|
|
4670
|
+
*/
|
|
4671
|
+
created_at: string;
|
|
4672
|
+
/**
|
|
4673
|
+
* When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
|
|
4674
|
+
*/
|
|
4675
|
+
updated_at: string;
|
|
4676
|
+
/**
|
|
4677
|
+
* ISO 3166-1 alpha-2 country code.
|
|
4678
|
+
*/
|
|
4679
|
+
country?: string;
|
|
4680
|
+
/**
|
|
4681
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
4682
|
+
*/
|
|
4683
|
+
end_date?: string;
|
|
4684
|
+
/**
|
|
4685
|
+
* Whether an additional half cent per distance unit applies.
|
|
4686
|
+
*/
|
|
4687
|
+
half_cent?: boolean;
|
|
4688
|
+
/**
|
|
4689
|
+
* Company-defined label for this mileage rate, such as the rate used for a country
|
|
4690
|
+
* or vehicle type.
|
|
4691
|
+
*/
|
|
4692
|
+
name?: string;
|
|
4693
|
+
/**
|
|
4694
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
4695
|
+
*/
|
|
4696
|
+
rate?: MileageRate.Rate;
|
|
4697
|
+
/**
|
|
4698
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
4699
|
+
*/
|
|
4700
|
+
start_date?: string;
|
|
4701
|
+
/**
|
|
4702
|
+
* Distance unit, mi or km.
|
|
4703
|
+
*/
|
|
4704
|
+
units?: 'km' | 'mi';
|
|
4705
|
+
}
|
|
4706
|
+
namespace MileageRate {
|
|
4707
|
+
/**
|
|
4708
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
4709
|
+
*/
|
|
4710
|
+
interface Rate {
|
|
4711
|
+
/**
|
|
4712
|
+
* The currency type, ex: USD, EUR, etc.
|
|
4713
|
+
*/
|
|
4714
|
+
currency_type?: string;
|
|
4715
|
+
/**
|
|
4716
|
+
* The decimal amount for the currency.
|
|
4717
|
+
*/
|
|
4718
|
+
value?: number;
|
|
4719
|
+
}
|
|
4720
|
+
}
|
|
4721
|
+
/**
|
|
4722
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
4723
|
+
*/
|
|
4724
|
+
interface PayoutAmount {
|
|
4725
|
+
/**
|
|
4726
|
+
* The currency type, ex: USD, EUR, etc.
|
|
4727
|
+
*/
|
|
4728
|
+
currency_type?: string;
|
|
4729
|
+
/**
|
|
4730
|
+
* The decimal amount for the currency.
|
|
4731
|
+
*/
|
|
4732
|
+
value?: number;
|
|
4733
|
+
}
|
|
4734
|
+
interface PerDiemLineItem {
|
|
4735
|
+
/**
|
|
4736
|
+
* Sub-rate amount for one unit. The `value` is a decimal string.
|
|
4737
|
+
*/
|
|
4738
|
+
amount?: PerDiemLineItem.Amount;
|
|
4739
|
+
/**
|
|
4740
|
+
* amount times count. The `value` is a decimal string. Negative when line_type is
|
|
4741
|
+
* EXCLUDE.
|
|
4742
|
+
*/
|
|
4743
|
+
calculated_amount?: PerDiemLineItem.CalculatedAmount;
|
|
4744
|
+
/**
|
|
4745
|
+
* How many units.
|
|
4746
|
+
*/
|
|
4747
|
+
count?: number;
|
|
4748
|
+
/**
|
|
4749
|
+
* Sub-rate label.
|
|
4750
|
+
*/
|
|
4751
|
+
label?: string;
|
|
4752
|
+
/**
|
|
4753
|
+
* `INCLUDE`: this row is added to the reimbursement. `EXCLUDE`: this row is
|
|
4754
|
+
* subtracted. `calculated_amount.value` is negative when excluded.
|
|
4755
|
+
*/
|
|
4756
|
+
line_type?: 'INCLUDE' | 'EXCLUDE';
|
|
4757
|
+
/**
|
|
4758
|
+
* Per diem sub-rate ID.
|
|
4759
|
+
*/
|
|
4760
|
+
sub_rate_id?: string;
|
|
4761
|
+
/**
|
|
4762
|
+
* `FULL_DAY`: the full daily allowance. `MEALS`: the meals portion of the daily
|
|
4763
|
+
* allowance. `OTHERS`: an allowance that is not the full day or meals.
|
|
4764
|
+
*/
|
|
4765
|
+
sub_rate_type?: 'FULL_DAY' | 'MEALS' | 'OTHERS';
|
|
4766
|
+
}
|
|
4767
|
+
namespace PerDiemLineItem {
|
|
4768
|
+
/**
|
|
4769
|
+
* Sub-rate amount for one unit. The `value` is a decimal string.
|
|
4770
|
+
*/
|
|
4771
|
+
interface Amount {
|
|
4772
|
+
/**
|
|
4773
|
+
* The currency type, ex: USD, EUR, etc.
|
|
4774
|
+
*/
|
|
4775
|
+
currency_type?: string;
|
|
4776
|
+
/**
|
|
4777
|
+
* The decimal amount for the currency.
|
|
4778
|
+
*/
|
|
4779
|
+
value?: number;
|
|
4780
|
+
}
|
|
4781
|
+
/**
|
|
4782
|
+
* amount times count. The `value` is a decimal string. Negative when line_type is
|
|
4783
|
+
* EXCLUDE.
|
|
4784
|
+
*/
|
|
4785
|
+
interface CalculatedAmount {
|
|
4786
|
+
/**
|
|
4787
|
+
* The currency type, ex: USD, EUR, etc.
|
|
4788
|
+
*/
|
|
4789
|
+
currency_type?: string;
|
|
4790
|
+
/**
|
|
4791
|
+
* The decimal amount for the currency.
|
|
4792
|
+
*/
|
|
4793
|
+
value?: number;
|
|
4794
|
+
}
|
|
4795
|
+
}
|
|
4796
|
+
/**
|
|
4797
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
4798
|
+
* `reimbursements.read`.
|
|
4799
|
+
*
|
|
4800
|
+
* Expandable field
|
|
4801
|
+
*/
|
|
4802
|
+
interface PerDiemRate {
|
|
4803
|
+
/**
|
|
4804
|
+
* Per diem rate ID.
|
|
4805
|
+
*/
|
|
4806
|
+
id: string;
|
|
4807
|
+
/**
|
|
4808
|
+
* When the per diem rate was created, as an ISO 8601 date-time in UTC.
|
|
4809
|
+
*/
|
|
4810
|
+
created_at: string;
|
|
4811
|
+
/**
|
|
4812
|
+
* When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
|
|
4813
|
+
*/
|
|
4814
|
+
updated_at: string;
|
|
4815
|
+
/**
|
|
4816
|
+
* Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
|
|
4817
|
+
* US.
|
|
4818
|
+
*/
|
|
4819
|
+
country?: string;
|
|
4820
|
+
/**
|
|
4821
|
+
* Currency of the per diem rate, as an ISO 4217 code. Example: USD.
|
|
4822
|
+
*/
|
|
4823
|
+
currency?: string;
|
|
4824
|
+
/**
|
|
4825
|
+
* Place this per diem rate applies to, such as a city.
|
|
4826
|
+
*/
|
|
4827
|
+
destination_name?: string;
|
|
4828
|
+
/**
|
|
4829
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
4830
|
+
*/
|
|
4831
|
+
end_date?: string;
|
|
4832
|
+
/**
|
|
4833
|
+
* Whether the rate is archived. Archived rates remain readable for historical
|
|
4834
|
+
* references.
|
|
4835
|
+
*/
|
|
4836
|
+
is_archived?: boolean;
|
|
4837
|
+
/**
|
|
4838
|
+
* Whether this is the current version of the rate.
|
|
4839
|
+
*/
|
|
4840
|
+
is_current?: boolean;
|
|
4841
|
+
/**
|
|
4842
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
4843
|
+
*/
|
|
4844
|
+
start_date?: string;
|
|
4845
|
+
}
|
|
4846
|
+
/**
|
|
4847
|
+
* Receipt file and its filename.
|
|
4848
|
+
*/
|
|
4849
|
+
interface Receipt {
|
|
4850
|
+
/**
|
|
4851
|
+
* URL for accessing the file.
|
|
4852
|
+
*/
|
|
4853
|
+
url: string;
|
|
4854
|
+
/**
|
|
4855
|
+
* Original file name, when recorded.
|
|
4856
|
+
*/
|
|
4857
|
+
file_name?: string;
|
|
4858
|
+
}
|
|
4859
|
+
/**
|
|
4860
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
4861
|
+
*/
|
|
4862
|
+
interface StartLocation {
|
|
4863
|
+
/**
|
|
4864
|
+
* Address of this point. Null when the point has no address.
|
|
4865
|
+
*/
|
|
4866
|
+
address?: string;
|
|
4867
|
+
/**
|
|
4868
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
4869
|
+
* has no coordinates.
|
|
4870
|
+
*/
|
|
4871
|
+
coordinates?: StartLocation.Coordinates;
|
|
4872
|
+
}
|
|
4873
|
+
namespace StartLocation {
|
|
4874
|
+
/**
|
|
4875
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
4876
|
+
* has no coordinates.
|
|
4877
|
+
*/
|
|
4878
|
+
interface Coordinates {
|
|
4879
|
+
/**
|
|
4880
|
+
* Latitude of this point, in decimal degrees.
|
|
4881
|
+
*/
|
|
4882
|
+
latitude?: number;
|
|
4883
|
+
/**
|
|
4884
|
+
* Longitude of this point, in decimal degrees.
|
|
4885
|
+
*/
|
|
4886
|
+
longitude?: number;
|
|
4887
|
+
}
|
|
4888
|
+
}
|
|
4889
|
+
/**
|
|
4890
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
4891
|
+
*
|
|
4892
|
+
* Expandable field
|
|
4893
|
+
*/
|
|
4894
|
+
interface Vendor {
|
|
4895
|
+
/**
|
|
4896
|
+
* Identifier field
|
|
4897
|
+
*/
|
|
4898
|
+
id: string;
|
|
4899
|
+
/**
|
|
4900
|
+
* Record creation date
|
|
4901
|
+
*/
|
|
4902
|
+
created_at: string;
|
|
4903
|
+
/**
|
|
4904
|
+
* Record update date
|
|
4905
|
+
*/
|
|
4906
|
+
updated_at: string;
|
|
4907
|
+
/**
|
|
4908
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
4909
|
+
* references.
|
|
4910
|
+
*/
|
|
4911
|
+
is_archived?: boolean;
|
|
4912
|
+
/**
|
|
4913
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
4914
|
+
*/
|
|
4915
|
+
logo?: string;
|
|
4916
|
+
/**
|
|
4917
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
4918
|
+
* alternate names.
|
|
4919
|
+
*/
|
|
4920
|
+
name?: string;
|
|
4921
|
+
}
|
|
4922
|
+
/**
|
|
4923
|
+
* Start, end, or intermediate stop on a mileage trip.
|
|
4924
|
+
*/
|
|
4925
|
+
interface Waypoint {
|
|
4926
|
+
/**
|
|
4927
|
+
* Address of this point. Null when the point has no address.
|
|
4928
|
+
*/
|
|
4929
|
+
address?: string;
|
|
4930
|
+
/**
|
|
4931
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
4932
|
+
* has no coordinates.
|
|
4933
|
+
*/
|
|
4934
|
+
coordinates?: Waypoint.Coordinates;
|
|
4935
|
+
}
|
|
4936
|
+
namespace Waypoint {
|
|
4937
|
+
/**
|
|
4938
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
4939
|
+
* has no coordinates.
|
|
4940
|
+
*/
|
|
4941
|
+
interface Coordinates {
|
|
4942
|
+
/**
|
|
4943
|
+
* Latitude of this point, in decimal degrees.
|
|
4944
|
+
*/
|
|
4945
|
+
latitude?: number;
|
|
4946
|
+
/**
|
|
4947
|
+
* Longitude of this point, in decimal degrees.
|
|
4948
|
+
*/
|
|
4949
|
+
longitude?: number;
|
|
4950
|
+
}
|
|
4951
|
+
}
|
|
4952
|
+
}
|
|
4953
|
+
export interface ReimbursementListParams {
|
|
4954
|
+
cursor?: string;
|
|
4955
|
+
expand?: string;
|
|
4956
|
+
filter?: string;
|
|
4957
|
+
/**
|
|
4958
|
+
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
4959
|
+
*/
|
|
4960
|
+
limit?: number;
|
|
4961
|
+
order_by?: string;
|
|
4962
|
+
}
|
|
4963
|
+
export interface ReimbursementRetrieveParams {
|
|
4964
|
+
expand?: string;
|
|
4965
|
+
}
|
|
4966
|
+
export interface ReimbursementUpdateParams {
|
|
4967
|
+
/**
|
|
4968
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
4969
|
+
* `amount` and `tax_amount` are decimal strings in the merchant currency. The sum
|
|
4970
|
+
* of `amount` values must match the transaction's merchant amount.
|
|
4971
|
+
*/
|
|
4972
|
+
line_items?: Array<ReimbursementUpdateParams.LineItem>;
|
|
4973
|
+
}
|
|
4974
|
+
export declare namespace ReimbursementUpdateParams {
|
|
4975
|
+
/**
|
|
4976
|
+
* PATCH body for a line item. `amount` and `tax_amount` are decimal strings, not
|
|
4977
|
+
* Currency objects.
|
|
4978
|
+
*/
|
|
4979
|
+
interface LineItem {
|
|
4980
|
+
/**
|
|
4981
|
+
* Amount of this split, in the merchant currency, as a decimal string.
|
|
4982
|
+
*/
|
|
4983
|
+
amount: string;
|
|
4984
|
+
/**
|
|
4985
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
3951
4986
|
* `/finance-categories/{id}/`.
|
|
3952
4987
|
*/
|
|
3953
4988
|
category_id: string;
|
|
@@ -4051,6 +5086,13 @@ export declare namespace ReimbursementUpdateParams {
|
|
|
4051
5086
|
}
|
|
4052
5087
|
}
|
|
4053
5088
|
}
|
|
5089
|
+
export interface ReimbursementUploadAttachmentParams {
|
|
5090
|
+
/**
|
|
5091
|
+
* The file to attach, up to 10 MB. Any type except executables and scripts. The
|
|
5092
|
+
* type is detected from the file's contents.
|
|
5093
|
+
*/
|
|
5094
|
+
file: Uploadable;
|
|
5095
|
+
}
|
|
4054
5096
|
export interface ReimbursementUploadReceiptParams {
|
|
4055
5097
|
/**
|
|
4056
5098
|
* The receipt file: PDF, JPEG, PNG, or BMP, up to 10 MB. The type is detected from
|
|
@@ -4059,6 +5101,6 @@ export interface ReimbursementUploadReceiptParams {
|
|
|
4059
5101
|
file: Uploadable;
|
|
4060
5102
|
}
|
|
4061
5103
|
export declare namespace Reimbursements {
|
|
4062
|
-
export { type ReimbursementListResponse as ReimbursementListResponse, type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse, type ReimbursementUpdateResponse as ReimbursementUpdateResponse, type ReimbursementUploadReceiptResponse as ReimbursementUploadReceiptResponse, type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL, type ReimbursementListParams as ReimbursementListParams, type ReimbursementRetrieveParams as ReimbursementRetrieveParams, type ReimbursementUpdateParams as ReimbursementUpdateParams, type ReimbursementUploadReceiptParams as ReimbursementUploadReceiptParams, };
|
|
5104
|
+
export { type ReimbursementListResponse as ReimbursementListResponse, type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse, type ReimbursementUpdateResponse as ReimbursementUpdateResponse, type ReimbursementUploadAttachmentResponse as ReimbursementUploadAttachmentResponse, type ReimbursementUploadReceiptResponse as ReimbursementUploadReceiptResponse, type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL, type ReimbursementListParams as ReimbursementListParams, type ReimbursementRetrieveParams as ReimbursementRetrieveParams, type ReimbursementUpdateParams as ReimbursementUpdateParams, type ReimbursementUploadAttachmentParams as ReimbursementUploadAttachmentParams, type ReimbursementUploadReceiptParams as ReimbursementUploadReceiptParams, };
|
|
4063
5105
|
}
|
|
4064
5106
|
//# sourceMappingURL=reimbursements.d.mts.map
|