@rippling/rippling-sdk 0.2.0-alpha.115 → 0.2.0-alpha.117
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/lib/manifest/package-manifest.d.mts +39 -2
- package/lib/manifest/package-manifest.d.mts.map +1 -1
- package/lib/manifest/package-manifest.d.ts +39 -2
- package/lib/manifest/package-manifest.d.ts.map +1 -1
- package/lib/manifest/package-manifest.js +37 -0
- package/lib/manifest/package-manifest.js.map +1 -1
- package/lib/manifest/package-manifest.mjs +37 -0
- package/lib/manifest/package-manifest.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +70 -7
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +70 -7
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +20 -7
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +20 -7
- 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/lib/manifest/definitions/README.md +64 -0
- package/src/lib/manifest/package-manifest.ts +88 -2
- package/src/resources/agents/agents.ts +80 -7
- 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
|
@@ -383,6 +383,218 @@ export class CardTransactions extends APIResource {
|
|
|
383
383
|
return this._client.patch(path`/card-transactions/${id}/`, { body, ...options });
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
+
/**
|
|
387
|
+
* Send the file as `multipart/form-data` in a `file` field. It is stored and
|
|
388
|
+
* appended to the transaction's attachments in a single request. Existing
|
|
389
|
+
* attachments are kept. Declined authorizations cannot be changed. Once a charge
|
|
390
|
+
* posts, its authorization is replaced by a card transaction and returns 404, so
|
|
391
|
+
* upload to the card transaction instead.
|
|
392
|
+
*
|
|
393
|
+
* Attachments are supporting documents, separate from the receipt. Rippling
|
|
394
|
+
* doesn't read their contents or fill in transaction fields from them, and they
|
|
395
|
+
* don't change whether the transaction is missing a receipt. Attachments can only
|
|
396
|
+
* be removed in Rippling.
|
|
397
|
+
*
|
|
398
|
+
* Uploading the same file again returns the transaction without adding another
|
|
399
|
+
* copy, so a request can be retried after a timeout. This applies to files
|
|
400
|
+
* previously attached by this API; older attachments are not deduplicated. Returns
|
|
401
|
+
* the updated card transaction in the same shape as
|
|
402
|
+
* `GET /card-transactions/{id}/`, with the new file last in `attachments`.
|
|
403
|
+
*
|
|
404
|
+
* @example HTTP
|
|
405
|
+
* Representative request and response shapes.
|
|
406
|
+
* ```
|
|
407
|
+
* POST /card-transactions/{id}/attachments/ HTTP/1.1
|
|
408
|
+
* Host: rest.ripplingapis.com
|
|
409
|
+
* Content-Type: multipart/form-data
|
|
410
|
+
* Accept: application/json
|
|
411
|
+
* Rippling-Api-Version: 2024-08-01
|
|
412
|
+
*
|
|
413
|
+
* <multipart form data>
|
|
414
|
+
*
|
|
415
|
+
* HTTP/1.1 200 OK
|
|
416
|
+
* Content-Type: application/json
|
|
417
|
+
*
|
|
418
|
+
* {
|
|
419
|
+
* "id": "string",
|
|
420
|
+
* "created_at": "string",
|
|
421
|
+
* "updated_at": "string",
|
|
422
|
+
* "worker_id": "string",
|
|
423
|
+
* "worker": {
|
|
424
|
+
* "id": "string",
|
|
425
|
+
* "created_at": "string",
|
|
426
|
+
* "updated_at": "string",
|
|
427
|
+
* "user_id": "string",
|
|
428
|
+
* "user": {
|
|
429
|
+
* "id": "string",
|
|
430
|
+
* "created_at": "string",
|
|
431
|
+
* "updated_at": "string"
|
|
432
|
+
* },
|
|
433
|
+
* "is_manager": false,
|
|
434
|
+
* "manager_id": "string",
|
|
435
|
+
* "manager": {
|
|
436
|
+
* "id": "string",
|
|
437
|
+
* "created_at": "string",
|
|
438
|
+
* "updated_at": "string"
|
|
439
|
+
* },
|
|
440
|
+
* "legal_entity_id": "string",
|
|
441
|
+
* "legal_entity": {
|
|
442
|
+
* "id": "string",
|
|
443
|
+
* "created_at": "string",
|
|
444
|
+
* "updated_at": "string"
|
|
445
|
+
* },
|
|
446
|
+
* "country": "AF",
|
|
447
|
+
* "start_date": "string",
|
|
448
|
+
* "end_date": "string",
|
|
449
|
+
* "number": 0,
|
|
450
|
+
* "work_email": "string",
|
|
451
|
+
* "personal_email": "string",
|
|
452
|
+
* "status": "INIT",
|
|
453
|
+
* "location": {
|
|
454
|
+
* "type": "REMOTE",
|
|
455
|
+
* "work_location_id": "string"
|
|
456
|
+
* },
|
|
457
|
+
* "employment_type_id": "string",
|
|
458
|
+
* "employment_type": {
|
|
459
|
+
* "id": "string",
|
|
460
|
+
* "created_at": "string",
|
|
461
|
+
* "updated_at": "string",
|
|
462
|
+
* "label": "string"
|
|
463
|
+
* },
|
|
464
|
+
* "gender": "MALE",
|
|
465
|
+
* "date_of_birth": "string",
|
|
466
|
+
* "race": "BLACK",
|
|
467
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
468
|
+
* "citizenship": "AF",
|
|
469
|
+
* "compensation_id": "string",
|
|
470
|
+
* "compensation": {
|
|
471
|
+
* "id": "string",
|
|
472
|
+
* "created_at": "string",
|
|
473
|
+
* "updated_at": "string"
|
|
474
|
+
* },
|
|
475
|
+
* "overtime_exemption": "EXEMPT",
|
|
476
|
+
* "department_id": "string",
|
|
477
|
+
* "department": {
|
|
478
|
+
* "id": "string",
|
|
479
|
+
* "created_at": "string",
|
|
480
|
+
* "updated_at": "string",
|
|
481
|
+
* "name": "string"
|
|
482
|
+
* },
|
|
483
|
+
* "teams_id": [
|
|
484
|
+
* "string"
|
|
485
|
+
* ]
|
|
486
|
+
* },
|
|
487
|
+
* "company_amount": {
|
|
488
|
+
* "currency_type": "string",
|
|
489
|
+
* "value": 0
|
|
490
|
+
* },
|
|
491
|
+
* "merchant_amount": {
|
|
492
|
+
* "currency_type": "string",
|
|
493
|
+
* "value": 0
|
|
494
|
+
* },
|
|
495
|
+
* "accounting_date": "string",
|
|
496
|
+
* "gl_sync_state": "NOT_FINALIZED",
|
|
497
|
+
* "approval_status": "DRAFT",
|
|
498
|
+
* "entity_id": "string",
|
|
499
|
+
* "vendor": {
|
|
500
|
+
* "id": "string",
|
|
501
|
+
* "created_at": "string",
|
|
502
|
+
* "updated_at": "string",
|
|
503
|
+
* "name": "string",
|
|
504
|
+
* "logo": "string",
|
|
505
|
+
* "is_archived": false
|
|
506
|
+
* },
|
|
507
|
+
* "gl_vendor": {
|
|
508
|
+
* "id": "string",
|
|
509
|
+
* "name": "string",
|
|
510
|
+
* "gl_vendor_id": "string"
|
|
511
|
+
* },
|
|
512
|
+
* "memo": "string",
|
|
513
|
+
* "attachments": [
|
|
514
|
+
* {
|
|
515
|
+
* "url": "string",
|
|
516
|
+
* "file_name": "string",
|
|
517
|
+
* "uploaded_at": "string",
|
|
518
|
+
* "uploaded_by_id": "string"
|
|
519
|
+
* }
|
|
520
|
+
* ],
|
|
521
|
+
* "line_items": [
|
|
522
|
+
* {
|
|
523
|
+
* "gl_customer": "string",
|
|
524
|
+
* "gl_billable": "BILLABLE",
|
|
525
|
+
* "dimension_choices": {},
|
|
526
|
+
* "memo": "string",
|
|
527
|
+
* "gl_amortization_template": {
|
|
528
|
+
* "gl_object_id": "string",
|
|
529
|
+
* "accounting_integration_id": "string",
|
|
530
|
+
* "name": "string",
|
|
531
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
|
|
532
|
+
* },
|
|
533
|
+
* "amortized": false,
|
|
534
|
+
* "start_date": "string",
|
|
535
|
+
* "end_date": "string",
|
|
536
|
+
* "prepaid_account": {
|
|
537
|
+
* "account_id": "string",
|
|
538
|
+
* "name": "string",
|
|
539
|
+
* "code": "string",
|
|
540
|
+
* "type": "RECEIVABLE",
|
|
541
|
+
* "required_custom_dimensions": [],
|
|
542
|
+
* "requires_department": "string",
|
|
543
|
+
* "requires_work_location": "string"
|
|
544
|
+
* },
|
|
545
|
+
* "gl_amortization_schedule": {
|
|
546
|
+
* "gl_object_id": "string",
|
|
547
|
+
* "accounting_integration_id": "string",
|
|
548
|
+
* "name": "string",
|
|
549
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
|
|
550
|
+
* "start_date": "string",
|
|
551
|
+
* "end_date": "string",
|
|
552
|
+
* "total_amount": "string",
|
|
553
|
+
* "total_amortized_amount": "string",
|
|
554
|
+
* "amortization_period": "string",
|
|
555
|
+
* "status": "NOT_STARTED"
|
|
556
|
+
* },
|
|
557
|
+
* "gl_tax_code": "string",
|
|
558
|
+
* "id": "string",
|
|
559
|
+
* "category_id": "string",
|
|
560
|
+
* "category_name": "string",
|
|
561
|
+
* "amount": {
|
|
562
|
+
* "currency_type": "string",
|
|
563
|
+
* "value": "string"
|
|
564
|
+
* },
|
|
565
|
+
* "tax_amount": {
|
|
566
|
+
* "currency_type": "string",
|
|
567
|
+
* "value": "string"
|
|
568
|
+
* }
|
|
569
|
+
* }
|
|
570
|
+
* ],
|
|
571
|
+
* "vendor_id": "string",
|
|
572
|
+
* "transaction_date": "string",
|
|
573
|
+
* "receipts": [
|
|
574
|
+
* {
|
|
575
|
+
* "url": "string",
|
|
576
|
+
* "preview_url": "string",
|
|
577
|
+
* "file_name": "string",
|
|
578
|
+
* "content_type": "string"
|
|
579
|
+
* }
|
|
580
|
+
* ],
|
|
581
|
+
* "transaction_type": "CARD_TRANSACTION",
|
|
582
|
+
* "authorization_state": "PENDING",
|
|
583
|
+
* "card_id": "string"
|
|
584
|
+
* }
|
|
585
|
+
* ```
|
|
586
|
+
*/
|
|
587
|
+
uploadAttachment(
|
|
588
|
+
id: string,
|
|
589
|
+
body: CardTransactionUploadAttachmentParams,
|
|
590
|
+
options?: RequestOptions,
|
|
591
|
+
): APIPromise<CardTransactionUploadAttachmentResponse> {
|
|
592
|
+
return this._client.post(
|
|
593
|
+
path`/card-transactions/${id}/attachments/`,
|
|
594
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
595
|
+
);
|
|
596
|
+
}
|
|
597
|
+
|
|
386
598
|
/**
|
|
387
599
|
* Send the receipt file as `multipart/form-data` in a `file` field. It is stored
|
|
388
600
|
* and attached in a single request.
|
|
@@ -2461,7 +2673,7 @@ export namespace CardTransactionUpdateResponse {
|
|
|
2461
2673
|
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
2462
2674
|
* The sum of request `amount` values must equal the transaction's merchant amount.
|
|
2463
2675
|
*/
|
|
2464
|
-
export interface
|
|
2676
|
+
export interface CardTransactionUploadAttachmentResponse {
|
|
2465
2677
|
/**
|
|
2466
2678
|
* Identifier field
|
|
2467
2679
|
*/
|
|
@@ -2505,7 +2717,7 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2505
2717
|
/**
|
|
2506
2718
|
* Other attached files, including filenames and recorded upload metadata.
|
|
2507
2719
|
*/
|
|
2508
|
-
attachments?: Array<
|
|
2720
|
+
attachments?: Array<CardTransactionUploadAttachmentResponse.Attachment>;
|
|
2509
2721
|
|
|
2510
2722
|
/**
|
|
2511
2723
|
* State of the card authorization. `PENDING`: an active hold awaiting completion.
|
|
@@ -2525,7 +2737,7 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2525
2737
|
/**
|
|
2526
2738
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
2527
2739
|
*/
|
|
2528
|
-
company_amount?:
|
|
2740
|
+
company_amount?: CardTransactionUploadAttachmentResponse.CompanyAmount;
|
|
2529
2741
|
|
|
2530
2742
|
/**
|
|
2531
2743
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
@@ -2555,12 +2767,12 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2555
2767
|
/**
|
|
2556
2768
|
* Vendor in the connected accounting system.
|
|
2557
2769
|
*/
|
|
2558
|
-
gl_vendor?:
|
|
2770
|
+
gl_vendor?: CardTransactionUploadAttachmentResponse.GlVendor;
|
|
2559
2771
|
|
|
2560
2772
|
/**
|
|
2561
2773
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
2562
2774
|
*/
|
|
2563
|
-
line_items?: Array<
|
|
2775
|
+
line_items?: Array<CardTransactionUploadAttachmentResponse.LineItem>;
|
|
2564
2776
|
|
|
2565
2777
|
/**
|
|
2566
2778
|
* Memo entered on the transaction.
|
|
@@ -2571,13 +2783,13 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2571
2783
|
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
2572
2784
|
* decimal string.
|
|
2573
2785
|
*/
|
|
2574
|
-
merchant_amount?:
|
|
2786
|
+
merchant_amount?: CardTransactionUploadAttachmentResponse.MerchantAmount;
|
|
2575
2787
|
|
|
2576
2788
|
/**
|
|
2577
2789
|
* Receipt files attached to the transaction, in display order, up to 5. Empty when
|
|
2578
2790
|
* there are none. Null when the caller cannot read the transaction's receipts.
|
|
2579
2791
|
*/
|
|
2580
|
-
receipts?: Array<
|
|
2792
|
+
receipts?: Array<CardTransactionUploadAttachmentResponse.Receipt> | null;
|
|
2581
2793
|
|
|
2582
2794
|
/**
|
|
2583
2795
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
@@ -2595,7 +2807,7 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2595
2807
|
*
|
|
2596
2808
|
* Expandable field
|
|
2597
2809
|
*/
|
|
2598
|
-
vendor?:
|
|
2810
|
+
vendor?: CardTransactionUploadAttachmentResponse.Vendor;
|
|
2599
2811
|
|
|
2600
2812
|
/**
|
|
2601
2813
|
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
@@ -2615,7 +2827,7 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2615
2827
|
worker_id?: string;
|
|
2616
2828
|
}
|
|
2617
2829
|
|
|
2618
|
-
export namespace
|
|
2830
|
+
export namespace CardTransactionUploadAttachmentResponse {
|
|
2619
2831
|
/**
|
|
2620
2832
|
* A Finance transaction attachment with recorded upload details.
|
|
2621
2833
|
*/
|
|
@@ -3069,47 +3281,666 @@ export namespace CardTransactionUploadReceiptResponse {
|
|
|
3069
3281
|
}
|
|
3070
3282
|
}
|
|
3071
3283
|
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3284
|
+
/**
|
|
3285
|
+
* A Finance card transaction or authorization the caller can see.
|
|
3286
|
+
*
|
|
3287
|
+
* An authorization is a pending hold the card network places at the time of purchase. A card transaction
|
|
3288
|
+
* is the posted charge. List returns both; retrieve returns one by ID. A transaction the
|
|
3289
|
+
* caller cannot see returns 404, the same as one that does not exist.
|
|
3290
|
+
* PATCH `/card-transactions/{id}/` accepts only `line_items` and replaces the entire list.
|
|
3291
|
+
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
3292
|
+
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
3293
|
+
* The sum of request `amount` values must equal the transaction's merchant amount.
|
|
3294
|
+
*/
|
|
3295
|
+
export interface CardTransactionUploadReceiptResponse {
|
|
3079
3296
|
/**
|
|
3080
|
-
*
|
|
3297
|
+
* Identifier field
|
|
3081
3298
|
*/
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
order_by?: string;
|
|
3085
|
-
}
|
|
3299
|
+
id: string;
|
|
3086
3300
|
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3301
|
+
/**
|
|
3302
|
+
* Record creation date
|
|
3303
|
+
*/
|
|
3304
|
+
created_at: string;
|
|
3090
3305
|
|
|
3091
|
-
export interface CardTransactionUpdateParams {
|
|
3092
3306
|
/**
|
|
3093
|
-
*
|
|
3094
|
-
* `amount` and `tax_amount` are decimal strings in the merchant currency. The sum
|
|
3095
|
-
* of `amount` values must match the transaction's merchant amount.
|
|
3307
|
+
* Record update date
|
|
3096
3308
|
*/
|
|
3097
|
-
|
|
3098
|
-
}
|
|
3309
|
+
updated_at: string;
|
|
3099
3310
|
|
|
3100
|
-
export namespace CardTransactionUpdateParams {
|
|
3101
3311
|
/**
|
|
3102
|
-
*
|
|
3103
|
-
*
|
|
3312
|
+
* Date the transaction is booked in the accounting system, as an ISO 8601 date
|
|
3313
|
+
* (YYYY-MM-DD).
|
|
3104
3314
|
*/
|
|
3105
|
-
|
|
3106
|
-
/**
|
|
3107
|
-
* Amount of this split, in the merchant currency, as a decimal string.
|
|
3108
|
-
*/
|
|
3109
|
-
amount: string;
|
|
3315
|
+
accounting_date?: string;
|
|
3110
3316
|
|
|
3111
|
-
|
|
3112
|
-
|
|
3317
|
+
/**
|
|
3318
|
+
* Approval status of the transaction. `DRAFT`: not submitted for approval.
|
|
3319
|
+
* `PENDING`: awaiting required information or submission before approval.
|
|
3320
|
+
* `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
|
|
3321
|
+
* rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
|
|
3322
|
+
* reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
|
|
3323
|
+
* for card authorizations.
|
|
3324
|
+
*/
|
|
3325
|
+
approval_status?:
|
|
3326
|
+
| 'DRAFT'
|
|
3327
|
+
| 'PENDING'
|
|
3328
|
+
| 'REQUESTED'
|
|
3329
|
+
| 'APPROVED'
|
|
3330
|
+
| 'REJECTED'
|
|
3331
|
+
| 'FINALIZED'
|
|
3332
|
+
| 'ACTIONED'
|
|
3333
|
+
| 'CANCELLED'
|
|
3334
|
+
| 'FAILED';
|
|
3335
|
+
|
|
3336
|
+
/**
|
|
3337
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
3338
|
+
*/
|
|
3339
|
+
attachments?: Array<CardTransactionUploadReceiptResponse.Attachment>;
|
|
3340
|
+
|
|
3341
|
+
/**
|
|
3342
|
+
* State of the card authorization. `PENDING`: an active hold awaiting completion.
|
|
3343
|
+
* `CLOSED`: the authorization was declined, or it completed and was replaced by a
|
|
3344
|
+
* posted card transaction. `REVERSED`: the authorization was reversed and the hold
|
|
3345
|
+
* released. `EXPIRED`: the hold expired without completion. Null for posted card
|
|
3346
|
+
* transactions.
|
|
3347
|
+
*/
|
|
3348
|
+
authorization_state?: 'PENDING' | 'CLOSED' | 'REVERSED' | 'EXPIRED';
|
|
3349
|
+
|
|
3350
|
+
/**
|
|
3351
|
+
* ID of the Finance card used. No public API is currently available to retrieve
|
|
3352
|
+
* this card.
|
|
3353
|
+
*/
|
|
3354
|
+
card_id?: string;
|
|
3355
|
+
|
|
3356
|
+
/**
|
|
3357
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
3358
|
+
*/
|
|
3359
|
+
company_amount?: CardTransactionUploadReceiptResponse.CompanyAmount;
|
|
3360
|
+
|
|
3361
|
+
/**
|
|
3362
|
+
* ID of the legal entity the transaction belongs to. Use it with
|
|
3363
|
+
* `/company-legal-entities/{id}/`.
|
|
3364
|
+
*/
|
|
3365
|
+
entity_id?: string;
|
|
3366
|
+
|
|
3367
|
+
/**
|
|
3368
|
+
* State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
|
|
3369
|
+
* accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
|
|
3370
|
+
* sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
|
|
3371
|
+
* failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
|
|
3372
|
+
* accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
|
|
3373
|
+
* be synced automatically. Null when no sync state is set.
|
|
3374
|
+
*/
|
|
3375
|
+
gl_sync_state?:
|
|
3376
|
+
| 'NOT_FINALIZED'
|
|
3377
|
+
| 'FOR_REVIEW'
|
|
3378
|
+
| 'PENDING_SYNC'
|
|
3379
|
+
| 'SYNCED'
|
|
3380
|
+
| 'ERROR'
|
|
3381
|
+
| 'DO_NOT_SYNC'
|
|
3382
|
+
| 'EXPORTED'
|
|
3383
|
+
| 'NOT_SYNCABLE'
|
|
3384
|
+
| 'AUTO_SYNC';
|
|
3385
|
+
|
|
3386
|
+
/**
|
|
3387
|
+
* Vendor in the connected accounting system.
|
|
3388
|
+
*/
|
|
3389
|
+
gl_vendor?: CardTransactionUploadReceiptResponse.GlVendor;
|
|
3390
|
+
|
|
3391
|
+
/**
|
|
3392
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
3393
|
+
*/
|
|
3394
|
+
line_items?: Array<CardTransactionUploadReceiptResponse.LineItem>;
|
|
3395
|
+
|
|
3396
|
+
/**
|
|
3397
|
+
* Memo entered on the transaction.
|
|
3398
|
+
*/
|
|
3399
|
+
memo?: string;
|
|
3400
|
+
|
|
3401
|
+
/**
|
|
3402
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
3403
|
+
* decimal string.
|
|
3404
|
+
*/
|
|
3405
|
+
merchant_amount?: CardTransactionUploadReceiptResponse.MerchantAmount;
|
|
3406
|
+
|
|
3407
|
+
/**
|
|
3408
|
+
* Receipt files attached to the transaction, in display order, up to 5. Empty when
|
|
3409
|
+
* there are none. Null when the caller cannot read the transaction's receipts.
|
|
3410
|
+
*/
|
|
3411
|
+
receipts?: Array<CardTransactionUploadReceiptResponse.Receipt> | null;
|
|
3412
|
+
|
|
3413
|
+
/**
|
|
3414
|
+
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
3415
|
+
*/
|
|
3416
|
+
transaction_date?: string;
|
|
3417
|
+
|
|
3418
|
+
/**
|
|
3419
|
+
* `CARD_TRANSACTION`: a posted card charge. `CARD_AUTHORIZATION`: a hold placed by
|
|
3420
|
+
* the card network before the charge posts.
|
|
3421
|
+
*/
|
|
3422
|
+
transaction_type?: 'CARD_TRANSACTION' | 'CARD_AUTHORIZATION';
|
|
3423
|
+
|
|
3424
|
+
/**
|
|
3425
|
+
* Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
|
|
3426
|
+
*
|
|
3427
|
+
* Expandable field
|
|
3428
|
+
*/
|
|
3429
|
+
vendor?: CardTransactionUploadReceiptResponse.Vendor;
|
|
3430
|
+
|
|
3431
|
+
/**
|
|
3432
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
3433
|
+
*/
|
|
3434
|
+
vendor_id?: string;
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
* Worker details. Expand with `card-transactions.read` and `workers.read`.
|
|
3438
|
+
*
|
|
3439
|
+
* Expandable field
|
|
3440
|
+
*/
|
|
3441
|
+
worker?: WorkersAPI.Worker;
|
|
3442
|
+
|
|
3443
|
+
/**
|
|
3444
|
+
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
3445
|
+
*/
|
|
3446
|
+
worker_id?: string;
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3449
|
+
export namespace CardTransactionUploadReceiptResponse {
|
|
3450
|
+
/**
|
|
3451
|
+
* A Finance transaction attachment with recorded upload details.
|
|
3452
|
+
*/
|
|
3453
|
+
export interface Attachment {
|
|
3454
|
+
/**
|
|
3455
|
+
* URL for accessing the file.
|
|
3456
|
+
*/
|
|
3457
|
+
url: string;
|
|
3458
|
+
|
|
3459
|
+
/**
|
|
3460
|
+
* Original file name, when recorded.
|
|
3461
|
+
*/
|
|
3462
|
+
file_name?: string;
|
|
3463
|
+
|
|
3464
|
+
/**
|
|
3465
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
3466
|
+
* recorded.
|
|
3467
|
+
*/
|
|
3468
|
+
uploaded_at?: string;
|
|
3469
|
+
|
|
3470
|
+
/**
|
|
3471
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
3472
|
+
*/
|
|
3473
|
+
uploaded_by_id?: string;
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
/**
|
|
3477
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
3478
|
+
*/
|
|
3479
|
+
export interface CompanyAmount {
|
|
3480
|
+
/**
|
|
3481
|
+
* The currency type, ex: USD, EUR, etc.
|
|
3482
|
+
*/
|
|
3483
|
+
currency_type?: string;
|
|
3484
|
+
|
|
3485
|
+
/**
|
|
3486
|
+
* The decimal amount for the currency.
|
|
3487
|
+
*/
|
|
3488
|
+
value?: number;
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
/**
|
|
3492
|
+
* Vendor in the connected accounting system.
|
|
3493
|
+
*/
|
|
3494
|
+
export interface GlVendor {
|
|
3495
|
+
/**
|
|
3496
|
+
* ID of the accounting vendor in Rippling.
|
|
3497
|
+
*/
|
|
3498
|
+
id?: string;
|
|
3499
|
+
|
|
3500
|
+
/**
|
|
3501
|
+
* ID of the vendor in the accounting system.
|
|
3502
|
+
*/
|
|
3503
|
+
gl_vendor_id?: string;
|
|
3504
|
+
|
|
3505
|
+
/**
|
|
3506
|
+
* Name of the vendor in the accounting system.
|
|
3507
|
+
*/
|
|
3508
|
+
name?: string;
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
export interface LineItem {
|
|
3512
|
+
/**
|
|
3513
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
3514
|
+
* been assigned one yet.
|
|
3515
|
+
*/
|
|
3516
|
+
id?: string;
|
|
3517
|
+
|
|
3518
|
+
/**
|
|
3519
|
+
* Whether this line is amortized.
|
|
3520
|
+
*/
|
|
3521
|
+
amortized?: boolean;
|
|
3522
|
+
|
|
3523
|
+
/**
|
|
3524
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
3525
|
+
*/
|
|
3526
|
+
amount?: LineItem.Amount;
|
|
3527
|
+
|
|
3528
|
+
/**
|
|
3529
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
3530
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
3531
|
+
*/
|
|
3532
|
+
category_id?: string;
|
|
3533
|
+
|
|
3534
|
+
/**
|
|
3535
|
+
* Name of the finance category.
|
|
3536
|
+
*/
|
|
3537
|
+
category_name?: string;
|
|
3538
|
+
|
|
3539
|
+
/**
|
|
3540
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
3541
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
3542
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
3543
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
3544
|
+
*/
|
|
3545
|
+
dimension_choices?: { [key: string]: LineItem.DimensionChoices };
|
|
3546
|
+
|
|
3547
|
+
/**
|
|
3548
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
3549
|
+
*/
|
|
3550
|
+
end_date?: string;
|
|
3551
|
+
|
|
3552
|
+
/**
|
|
3553
|
+
* ERP amortization schedule associated with this line.
|
|
3554
|
+
*/
|
|
3555
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
3556
|
+
|
|
3557
|
+
/**
|
|
3558
|
+
* ERP amortization template for this line.
|
|
3559
|
+
*/
|
|
3560
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
3561
|
+
|
|
3562
|
+
/**
|
|
3563
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
3564
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
3565
|
+
* set.
|
|
3566
|
+
*/
|
|
3567
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
3568
|
+
|
|
3569
|
+
/**
|
|
3570
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
3571
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
3572
|
+
*/
|
|
3573
|
+
gl_customer?: string;
|
|
3574
|
+
|
|
3575
|
+
/**
|
|
3576
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
3577
|
+
* available to retrieve this accounting tax code.
|
|
3578
|
+
*/
|
|
3579
|
+
gl_tax_code?: string;
|
|
3580
|
+
|
|
3581
|
+
/**
|
|
3582
|
+
* Memo entered on this split.
|
|
3583
|
+
*/
|
|
3584
|
+
memo?: string;
|
|
3585
|
+
|
|
3586
|
+
/**
|
|
3587
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
3588
|
+
*/
|
|
3589
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
3590
|
+
|
|
3591
|
+
/**
|
|
3592
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
3593
|
+
*/
|
|
3594
|
+
start_date?: string;
|
|
3595
|
+
|
|
3596
|
+
/**
|
|
3597
|
+
* Total tax amount for this line in the merchant currency.
|
|
3598
|
+
*/
|
|
3599
|
+
tax_amount?: LineItem.TaxAmount;
|
|
3600
|
+
}
|
|
3601
|
+
|
|
3602
|
+
export namespace LineItem {
|
|
3603
|
+
/**
|
|
3604
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
3605
|
+
*/
|
|
3606
|
+
export interface Amount {
|
|
3607
|
+
/**
|
|
3608
|
+
* The currency type, ex: USD, EUR, etc.
|
|
3609
|
+
*/
|
|
3610
|
+
currency_type?: string;
|
|
3611
|
+
|
|
3612
|
+
/**
|
|
3613
|
+
* The decimal amount for the currency.
|
|
3614
|
+
*/
|
|
3615
|
+
value?: number;
|
|
3616
|
+
}
|
|
3617
|
+
|
|
3618
|
+
export interface DimensionChoices {
|
|
3619
|
+
/**
|
|
3620
|
+
* Name of the dimension, such as Department.
|
|
3621
|
+
*/
|
|
3622
|
+
dimension_name?: string;
|
|
3623
|
+
|
|
3624
|
+
/**
|
|
3625
|
+
* Display name of the selected dimension value.
|
|
3626
|
+
*/
|
|
3627
|
+
label?: string;
|
|
3628
|
+
|
|
3629
|
+
/**
|
|
3630
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
3631
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
3632
|
+
* `/job-codes/{id}/`.
|
|
3633
|
+
*/
|
|
3634
|
+
value?: string;
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
/**
|
|
3638
|
+
* ERP amortization schedule associated with this line.
|
|
3639
|
+
*/
|
|
3640
|
+
export interface GlAmortizationSchedule {
|
|
3641
|
+
/**
|
|
3642
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
3643
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
3644
|
+
*/
|
|
3645
|
+
accounting_integration_id?: string;
|
|
3646
|
+
|
|
3647
|
+
/**
|
|
3648
|
+
* Number of amortization periods.
|
|
3649
|
+
*/
|
|
3650
|
+
amortization_period?: number;
|
|
3651
|
+
|
|
3652
|
+
/**
|
|
3653
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
3654
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
3655
|
+
* indicate UTC. Null when not set.
|
|
3656
|
+
*/
|
|
3657
|
+
end_date?: string;
|
|
3658
|
+
|
|
3659
|
+
/**
|
|
3660
|
+
* Object ID in the connected accounting system.
|
|
3661
|
+
*/
|
|
3662
|
+
gl_object_id?: string;
|
|
3663
|
+
|
|
3664
|
+
/**
|
|
3665
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
3666
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
3667
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
3668
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
3669
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
3670
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
3671
|
+
* when not set.
|
|
3672
|
+
*/
|
|
3673
|
+
gl_object_type?:
|
|
3674
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
3675
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
3676
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
3677
|
+
| 'GL_ACCOUNT'
|
|
3678
|
+
| 'GL_JOURNAL_ENTRY'
|
|
3679
|
+
| 'GL_POSTING_PERIOD'
|
|
3680
|
+
| 'GL_VENDOR'
|
|
3681
|
+
| 'GL_CUSTOMER'
|
|
3682
|
+
| 'GL_EMPLOYEE'
|
|
3683
|
+
| 'GL_SUBSIDIARY';
|
|
3684
|
+
|
|
3685
|
+
/**
|
|
3686
|
+
* Accounting object name.
|
|
3687
|
+
*/
|
|
3688
|
+
name?: string;
|
|
3689
|
+
|
|
3690
|
+
/**
|
|
3691
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
3692
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
3693
|
+
* indicate UTC. Null when not set.
|
|
3694
|
+
*/
|
|
3695
|
+
start_date?: string;
|
|
3696
|
+
|
|
3697
|
+
/**
|
|
3698
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
3699
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
3700
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
3701
|
+
*/
|
|
3702
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
3703
|
+
|
|
3704
|
+
/**
|
|
3705
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
3706
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
3707
|
+
* not available in this response.
|
|
3708
|
+
*/
|
|
3709
|
+
total_amortized_amount?: number;
|
|
3710
|
+
|
|
3711
|
+
/**
|
|
3712
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
3713
|
+
* schedule currency code is not available in this response.
|
|
3714
|
+
*/
|
|
3715
|
+
total_amount?: number;
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
/**
|
|
3719
|
+
* ERP amortization template for this line.
|
|
3720
|
+
*/
|
|
3721
|
+
export interface GlAmortizationTemplate {
|
|
3722
|
+
/**
|
|
3723
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
3724
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
3725
|
+
*/
|
|
3726
|
+
accounting_integration_id?: string;
|
|
3727
|
+
|
|
3728
|
+
/**
|
|
3729
|
+
* Object ID in the connected accounting system.
|
|
3730
|
+
*/
|
|
3731
|
+
gl_object_id?: string;
|
|
3732
|
+
|
|
3733
|
+
/**
|
|
3734
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
3735
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
3736
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
3737
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
3738
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
3739
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
3740
|
+
* when not set.
|
|
3741
|
+
*/
|
|
3742
|
+
gl_object_type?:
|
|
3743
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
3744
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
3745
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
3746
|
+
| 'GL_ACCOUNT'
|
|
3747
|
+
| 'GL_JOURNAL_ENTRY'
|
|
3748
|
+
| 'GL_POSTING_PERIOD'
|
|
3749
|
+
| 'GL_VENDOR'
|
|
3750
|
+
| 'GL_CUSTOMER'
|
|
3751
|
+
| 'GL_EMPLOYEE'
|
|
3752
|
+
| 'GL_SUBSIDIARY';
|
|
3753
|
+
|
|
3754
|
+
/**
|
|
3755
|
+
* Accounting object name.
|
|
3756
|
+
*/
|
|
3757
|
+
name?: string;
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
/**
|
|
3761
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
3762
|
+
*/
|
|
3763
|
+
export interface PrepaidAccount {
|
|
3764
|
+
/**
|
|
3765
|
+
* Account ID in the connected accounting system.
|
|
3766
|
+
*/
|
|
3767
|
+
account_id?: string;
|
|
3768
|
+
|
|
3769
|
+
/**
|
|
3770
|
+
* Account code.
|
|
3771
|
+
*/
|
|
3772
|
+
code?: string;
|
|
3773
|
+
|
|
3774
|
+
/**
|
|
3775
|
+
* Account name.
|
|
3776
|
+
*/
|
|
3777
|
+
name?: string;
|
|
3778
|
+
|
|
3779
|
+
/**
|
|
3780
|
+
* IDs of custom dimensions required by this account.
|
|
3781
|
+
*/
|
|
3782
|
+
required_custom_dimensions?: Array<string>;
|
|
3783
|
+
|
|
3784
|
+
/**
|
|
3785
|
+
* Whether this account requires a department.
|
|
3786
|
+
*/
|
|
3787
|
+
requires_department?: boolean;
|
|
3788
|
+
|
|
3789
|
+
/**
|
|
3790
|
+
* Whether this account requires a work location.
|
|
3791
|
+
*/
|
|
3792
|
+
requires_work_location?: boolean;
|
|
3793
|
+
|
|
3794
|
+
/**
|
|
3795
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
3796
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
3797
|
+
* when not set.
|
|
3798
|
+
*/
|
|
3799
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3802
|
+
/**
|
|
3803
|
+
* Total tax amount for this line in the merchant currency.
|
|
3804
|
+
*/
|
|
3805
|
+
export interface TaxAmount {
|
|
3806
|
+
/**
|
|
3807
|
+
* The currency type, ex: USD, EUR, etc.
|
|
3808
|
+
*/
|
|
3809
|
+
currency_type?: string;
|
|
3810
|
+
|
|
3811
|
+
/**
|
|
3812
|
+
* The decimal amount for the currency.
|
|
3813
|
+
*/
|
|
3814
|
+
value?: number;
|
|
3815
|
+
}
|
|
3816
|
+
}
|
|
3817
|
+
|
|
3818
|
+
/**
|
|
3819
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
3820
|
+
* decimal string.
|
|
3821
|
+
*/
|
|
3822
|
+
export interface MerchantAmount {
|
|
3823
|
+
/**
|
|
3824
|
+
* The currency type, ex: USD, EUR, etc.
|
|
3825
|
+
*/
|
|
3826
|
+
currency_type?: string;
|
|
3827
|
+
|
|
3828
|
+
/**
|
|
3829
|
+
* The decimal amount for the currency.
|
|
3830
|
+
*/
|
|
3831
|
+
value?: number;
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3834
|
+
/**
|
|
3835
|
+
* A receipt file attached to a card transaction.
|
|
3836
|
+
*/
|
|
3837
|
+
export interface Receipt {
|
|
3838
|
+
/**
|
|
3839
|
+
* URL of the original receipt file, such as the uploaded PDF. The link is signed
|
|
3840
|
+
* and expires, so fetch the transaction again for a current link instead of
|
|
3841
|
+
* storing it.
|
|
3842
|
+
*/
|
|
3843
|
+
url: string;
|
|
3844
|
+
|
|
3845
|
+
/**
|
|
3846
|
+
* MIME type of the receipt file, such as `application/pdf`. Null when it cannot be
|
|
3847
|
+
* determined.
|
|
3848
|
+
*/
|
|
3849
|
+
content_type?: string | null;
|
|
3850
|
+
|
|
3851
|
+
/**
|
|
3852
|
+
* Name of the receipt file. Null when it was not recorded.
|
|
3853
|
+
*/
|
|
3854
|
+
file_name?: string | null;
|
|
3855
|
+
|
|
3856
|
+
/**
|
|
3857
|
+
* URL of an image preview of the receipt. Null when the receipt is itself an image
|
|
3858
|
+
* or no preview is available. Like `url`, the link is signed and expires.
|
|
3859
|
+
*/
|
|
3860
|
+
preview_url?: string | null;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
/**
|
|
3864
|
+
* Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
|
|
3865
|
+
*
|
|
3866
|
+
* Expandable field
|
|
3867
|
+
*/
|
|
3868
|
+
export interface Vendor {
|
|
3869
|
+
/**
|
|
3870
|
+
* Identifier field
|
|
3871
|
+
*/
|
|
3872
|
+
id: string;
|
|
3873
|
+
|
|
3874
|
+
/**
|
|
3875
|
+
* Record creation date
|
|
3876
|
+
*/
|
|
3877
|
+
created_at: string;
|
|
3878
|
+
|
|
3879
|
+
/**
|
|
3880
|
+
* Record update date
|
|
3881
|
+
*/
|
|
3882
|
+
updated_at: string;
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
3886
|
+
* references.
|
|
3887
|
+
*/
|
|
3888
|
+
is_archived?: boolean;
|
|
3889
|
+
|
|
3890
|
+
/**
|
|
3891
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
3892
|
+
*/
|
|
3893
|
+
logo?: string;
|
|
3894
|
+
|
|
3895
|
+
/**
|
|
3896
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
3897
|
+
* alternate names.
|
|
3898
|
+
*/
|
|
3899
|
+
name?: string;
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
|
|
3903
|
+
export interface CardTransactionListParams {
|
|
3904
|
+
cursor?: string;
|
|
3905
|
+
|
|
3906
|
+
expand?: string;
|
|
3907
|
+
|
|
3908
|
+
filter?: string;
|
|
3909
|
+
|
|
3910
|
+
/**
|
|
3911
|
+
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
3912
|
+
*/
|
|
3913
|
+
limit?: number;
|
|
3914
|
+
|
|
3915
|
+
order_by?: string;
|
|
3916
|
+
}
|
|
3917
|
+
|
|
3918
|
+
export interface CardTransactionRetrieveParams {
|
|
3919
|
+
expand?: string;
|
|
3920
|
+
}
|
|
3921
|
+
|
|
3922
|
+
export interface CardTransactionUpdateParams {
|
|
3923
|
+
/**
|
|
3924
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
3925
|
+
* `amount` and `tax_amount` are decimal strings in the merchant currency. The sum
|
|
3926
|
+
* of `amount` values must match the transaction's merchant amount.
|
|
3927
|
+
*/
|
|
3928
|
+
line_items?: Array<CardTransactionUpdateParams.LineItem>;
|
|
3929
|
+
}
|
|
3930
|
+
|
|
3931
|
+
export namespace CardTransactionUpdateParams {
|
|
3932
|
+
/**
|
|
3933
|
+
* PATCH body for a line item. `amount` and `tax_amount` are decimal strings, not
|
|
3934
|
+
* Currency objects.
|
|
3935
|
+
*/
|
|
3936
|
+
export interface LineItem {
|
|
3937
|
+
/**
|
|
3938
|
+
* Amount of this split, in the merchant currency, as a decimal string.
|
|
3939
|
+
*/
|
|
3940
|
+
amount: string;
|
|
3941
|
+
|
|
3942
|
+
/**
|
|
3943
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
3113
3944
|
* `/finance-categories/{id}/`.
|
|
3114
3945
|
*/
|
|
3115
3946
|
category_id: string;
|
|
@@ -3230,6 +4061,14 @@ export namespace CardTransactionUpdateParams {
|
|
|
3230
4061
|
}
|
|
3231
4062
|
}
|
|
3232
4063
|
|
|
4064
|
+
export interface CardTransactionUploadAttachmentParams {
|
|
4065
|
+
/**
|
|
4066
|
+
* The file to attach, up to 10 MB. Any type except executables and scripts. The
|
|
4067
|
+
* type is detected from the file's contents.
|
|
4068
|
+
*/
|
|
4069
|
+
file: Uploadable;
|
|
4070
|
+
}
|
|
4071
|
+
|
|
3233
4072
|
export interface CardTransactionUploadReceiptParams {
|
|
3234
4073
|
/**
|
|
3235
4074
|
* The receipt file: PDF, JPEG, PNG, or BMP, up to 10 MB. The type is detected from
|
|
@@ -3243,11 +4082,13 @@ export declare namespace CardTransactions {
|
|
|
3243
4082
|
type CardTransactionListResponse as CardTransactionListResponse,
|
|
3244
4083
|
type CardTransactionRetrieveResponse as CardTransactionRetrieveResponse,
|
|
3245
4084
|
type CardTransactionUpdateResponse as CardTransactionUpdateResponse,
|
|
4085
|
+
type CardTransactionUploadAttachmentResponse as CardTransactionUploadAttachmentResponse,
|
|
3246
4086
|
type CardTransactionUploadReceiptResponse as CardTransactionUploadReceiptResponse,
|
|
3247
4087
|
type CardTransactionListResponsesPageCursorURL as CardTransactionListResponsesPageCursorURL,
|
|
3248
4088
|
type CardTransactionListParams as CardTransactionListParams,
|
|
3249
4089
|
type CardTransactionRetrieveParams as CardTransactionRetrieveParams,
|
|
3250
4090
|
type CardTransactionUpdateParams as CardTransactionUpdateParams,
|
|
4091
|
+
type CardTransactionUploadAttachmentParams as CardTransactionUploadAttachmentParams,
|
|
3251
4092
|
type CardTransactionUploadReceiptParams as CardTransactionUploadReceiptParams,
|
|
3252
4093
|
};
|
|
3253
4094
|
}
|