@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
|
@@ -355,6 +355,208 @@ export declare class CardTransactions extends APIResource {
|
|
|
355
355
|
* ```
|
|
356
356
|
*/
|
|
357
357
|
update(id: string, body?: CardTransactionUpdateParams | null | undefined, options?: RequestOptions): APIPromise<CardTransactionUpdateResponse>;
|
|
358
|
+
/**
|
|
359
|
+
* Send the file as `multipart/form-data` in a `file` field. It is stored and
|
|
360
|
+
* appended to the transaction's attachments in a single request. Existing
|
|
361
|
+
* attachments are kept. Declined authorizations cannot be changed. Once a charge
|
|
362
|
+
* posts, its authorization is replaced by a card transaction and returns 404, so
|
|
363
|
+
* upload to the card transaction instead.
|
|
364
|
+
*
|
|
365
|
+
* Attachments are supporting documents, separate from the receipt. Rippling
|
|
366
|
+
* doesn't read their contents or fill in transaction fields from them, and they
|
|
367
|
+
* don't change whether the transaction is missing a receipt. Attachments can only
|
|
368
|
+
* be removed in Rippling.
|
|
369
|
+
*
|
|
370
|
+
* Uploading the same file again returns the transaction without adding another
|
|
371
|
+
* copy, so a request can be retried after a timeout. This applies to files
|
|
372
|
+
* previously attached by this API; older attachments are not deduplicated. Returns
|
|
373
|
+
* the updated card transaction in the same shape as
|
|
374
|
+
* `GET /card-transactions/{id}/`, with the new file last in `attachments`.
|
|
375
|
+
*
|
|
376
|
+
* @example HTTP
|
|
377
|
+
* Representative request and response shapes.
|
|
378
|
+
* ```
|
|
379
|
+
* POST /card-transactions/{id}/attachments/ HTTP/1.1
|
|
380
|
+
* Host: rest.ripplingapis.com
|
|
381
|
+
* Content-Type: multipart/form-data
|
|
382
|
+
* Accept: application/json
|
|
383
|
+
* Rippling-Api-Version: 2024-08-01
|
|
384
|
+
*
|
|
385
|
+
* <multipart form data>
|
|
386
|
+
*
|
|
387
|
+
* HTTP/1.1 200 OK
|
|
388
|
+
* Content-Type: application/json
|
|
389
|
+
*
|
|
390
|
+
* {
|
|
391
|
+
* "id": "string",
|
|
392
|
+
* "created_at": "string",
|
|
393
|
+
* "updated_at": "string",
|
|
394
|
+
* "worker_id": "string",
|
|
395
|
+
* "worker": {
|
|
396
|
+
* "id": "string",
|
|
397
|
+
* "created_at": "string",
|
|
398
|
+
* "updated_at": "string",
|
|
399
|
+
* "user_id": "string",
|
|
400
|
+
* "user": {
|
|
401
|
+
* "id": "string",
|
|
402
|
+
* "created_at": "string",
|
|
403
|
+
* "updated_at": "string"
|
|
404
|
+
* },
|
|
405
|
+
* "is_manager": false,
|
|
406
|
+
* "manager_id": "string",
|
|
407
|
+
* "manager": {
|
|
408
|
+
* "id": "string",
|
|
409
|
+
* "created_at": "string",
|
|
410
|
+
* "updated_at": "string"
|
|
411
|
+
* },
|
|
412
|
+
* "legal_entity_id": "string",
|
|
413
|
+
* "legal_entity": {
|
|
414
|
+
* "id": "string",
|
|
415
|
+
* "created_at": "string",
|
|
416
|
+
* "updated_at": "string"
|
|
417
|
+
* },
|
|
418
|
+
* "country": "AF",
|
|
419
|
+
* "start_date": "string",
|
|
420
|
+
* "end_date": "string",
|
|
421
|
+
* "number": 0,
|
|
422
|
+
* "work_email": "string",
|
|
423
|
+
* "personal_email": "string",
|
|
424
|
+
* "status": "INIT",
|
|
425
|
+
* "location": {
|
|
426
|
+
* "type": "REMOTE",
|
|
427
|
+
* "work_location_id": "string"
|
|
428
|
+
* },
|
|
429
|
+
* "employment_type_id": "string",
|
|
430
|
+
* "employment_type": {
|
|
431
|
+
* "id": "string",
|
|
432
|
+
* "created_at": "string",
|
|
433
|
+
* "updated_at": "string",
|
|
434
|
+
* "label": "string"
|
|
435
|
+
* },
|
|
436
|
+
* "gender": "MALE",
|
|
437
|
+
* "date_of_birth": "string",
|
|
438
|
+
* "race": "BLACK",
|
|
439
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
440
|
+
* "citizenship": "AF",
|
|
441
|
+
* "compensation_id": "string",
|
|
442
|
+
* "compensation": {
|
|
443
|
+
* "id": "string",
|
|
444
|
+
* "created_at": "string",
|
|
445
|
+
* "updated_at": "string"
|
|
446
|
+
* },
|
|
447
|
+
* "overtime_exemption": "EXEMPT",
|
|
448
|
+
* "department_id": "string",
|
|
449
|
+
* "department": {
|
|
450
|
+
* "id": "string",
|
|
451
|
+
* "created_at": "string",
|
|
452
|
+
* "updated_at": "string",
|
|
453
|
+
* "name": "string"
|
|
454
|
+
* },
|
|
455
|
+
* "teams_id": [
|
|
456
|
+
* "string"
|
|
457
|
+
* ]
|
|
458
|
+
* },
|
|
459
|
+
* "company_amount": {
|
|
460
|
+
* "currency_type": "string",
|
|
461
|
+
* "value": 0
|
|
462
|
+
* },
|
|
463
|
+
* "merchant_amount": {
|
|
464
|
+
* "currency_type": "string",
|
|
465
|
+
* "value": 0
|
|
466
|
+
* },
|
|
467
|
+
* "accounting_date": "string",
|
|
468
|
+
* "gl_sync_state": "NOT_FINALIZED",
|
|
469
|
+
* "approval_status": "DRAFT",
|
|
470
|
+
* "entity_id": "string",
|
|
471
|
+
* "vendor": {
|
|
472
|
+
* "id": "string",
|
|
473
|
+
* "created_at": "string",
|
|
474
|
+
* "updated_at": "string",
|
|
475
|
+
* "name": "string",
|
|
476
|
+
* "logo": "string",
|
|
477
|
+
* "is_archived": false
|
|
478
|
+
* },
|
|
479
|
+
* "gl_vendor": {
|
|
480
|
+
* "id": "string",
|
|
481
|
+
* "name": "string",
|
|
482
|
+
* "gl_vendor_id": "string"
|
|
483
|
+
* },
|
|
484
|
+
* "memo": "string",
|
|
485
|
+
* "attachments": [
|
|
486
|
+
* {
|
|
487
|
+
* "url": "string",
|
|
488
|
+
* "file_name": "string",
|
|
489
|
+
* "uploaded_at": "string",
|
|
490
|
+
* "uploaded_by_id": "string"
|
|
491
|
+
* }
|
|
492
|
+
* ],
|
|
493
|
+
* "line_items": [
|
|
494
|
+
* {
|
|
495
|
+
* "gl_customer": "string",
|
|
496
|
+
* "gl_billable": "BILLABLE",
|
|
497
|
+
* "dimension_choices": {},
|
|
498
|
+
* "memo": "string",
|
|
499
|
+
* "gl_amortization_template": {
|
|
500
|
+
* "gl_object_id": "string",
|
|
501
|
+
* "accounting_integration_id": "string",
|
|
502
|
+
* "name": "string",
|
|
503
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
|
|
504
|
+
* },
|
|
505
|
+
* "amortized": false,
|
|
506
|
+
* "start_date": "string",
|
|
507
|
+
* "end_date": "string",
|
|
508
|
+
* "prepaid_account": {
|
|
509
|
+
* "account_id": "string",
|
|
510
|
+
* "name": "string",
|
|
511
|
+
* "code": "string",
|
|
512
|
+
* "type": "RECEIVABLE",
|
|
513
|
+
* "required_custom_dimensions": [],
|
|
514
|
+
* "requires_department": "string",
|
|
515
|
+
* "requires_work_location": "string"
|
|
516
|
+
* },
|
|
517
|
+
* "gl_amortization_schedule": {
|
|
518
|
+
* "gl_object_id": "string",
|
|
519
|
+
* "accounting_integration_id": "string",
|
|
520
|
+
* "name": "string",
|
|
521
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
|
|
522
|
+
* "start_date": "string",
|
|
523
|
+
* "end_date": "string",
|
|
524
|
+
* "total_amount": "string",
|
|
525
|
+
* "total_amortized_amount": "string",
|
|
526
|
+
* "amortization_period": "string",
|
|
527
|
+
* "status": "NOT_STARTED"
|
|
528
|
+
* },
|
|
529
|
+
* "gl_tax_code": "string",
|
|
530
|
+
* "id": "string",
|
|
531
|
+
* "category_id": "string",
|
|
532
|
+
* "category_name": "string",
|
|
533
|
+
* "amount": {
|
|
534
|
+
* "currency_type": "string",
|
|
535
|
+
* "value": "string"
|
|
536
|
+
* },
|
|
537
|
+
* "tax_amount": {
|
|
538
|
+
* "currency_type": "string",
|
|
539
|
+
* "value": "string"
|
|
540
|
+
* }
|
|
541
|
+
* }
|
|
542
|
+
* ],
|
|
543
|
+
* "vendor_id": "string",
|
|
544
|
+
* "transaction_date": "string",
|
|
545
|
+
* "receipts": [
|
|
546
|
+
* {
|
|
547
|
+
* "url": "string",
|
|
548
|
+
* "preview_url": "string",
|
|
549
|
+
* "file_name": "string",
|
|
550
|
+
* "content_type": "string"
|
|
551
|
+
* }
|
|
552
|
+
* ],
|
|
553
|
+
* "transaction_type": "CARD_TRANSACTION",
|
|
554
|
+
* "authorization_state": "PENDING",
|
|
555
|
+
* "card_id": "string"
|
|
556
|
+
* }
|
|
557
|
+
* ```
|
|
558
|
+
*/
|
|
559
|
+
uploadAttachment(id: string, body: CardTransactionUploadAttachmentParams, options?: RequestOptions): APIPromise<CardTransactionUploadAttachmentResponse>;
|
|
358
560
|
/**
|
|
359
561
|
* Send the receipt file as `multipart/form-data` in a `file` field. It is stored
|
|
360
562
|
* and attached in a single request.
|
|
@@ -2053,7 +2255,7 @@ export declare namespace CardTransactionUpdateResponse {
|
|
|
2053
2255
|
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
2054
2256
|
* The sum of request `amount` values must equal the transaction's merchant amount.
|
|
2055
2257
|
*/
|
|
2056
|
-
export interface
|
|
2258
|
+
export interface CardTransactionUploadAttachmentResponse {
|
|
2057
2259
|
/**
|
|
2058
2260
|
* Identifier field
|
|
2059
2261
|
*/
|
|
@@ -2083,7 +2285,7 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2083
2285
|
/**
|
|
2084
2286
|
* Other attached files, including filenames and recorded upload metadata.
|
|
2085
2287
|
*/
|
|
2086
|
-
attachments?: Array<
|
|
2288
|
+
attachments?: Array<CardTransactionUploadAttachmentResponse.Attachment>;
|
|
2087
2289
|
/**
|
|
2088
2290
|
* State of the card authorization. `PENDING`: an active hold awaiting completion.
|
|
2089
2291
|
* `CLOSED`: the authorization was declined, or it completed and was replaced by a
|
|
@@ -2100,7 +2302,7 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2100
2302
|
/**
|
|
2101
2303
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
2102
2304
|
*/
|
|
2103
|
-
company_amount?:
|
|
2305
|
+
company_amount?: CardTransactionUploadAttachmentResponse.CompanyAmount;
|
|
2104
2306
|
/**
|
|
2105
2307
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
2106
2308
|
* `/company-legal-entities/{id}/`.
|
|
@@ -2118,11 +2320,11 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2118
2320
|
/**
|
|
2119
2321
|
* Vendor in the connected accounting system.
|
|
2120
2322
|
*/
|
|
2121
|
-
gl_vendor?:
|
|
2323
|
+
gl_vendor?: CardTransactionUploadAttachmentResponse.GlVendor;
|
|
2122
2324
|
/**
|
|
2123
2325
|
* Category splits of the transaction amount. Updates replace the entire list.
|
|
2124
2326
|
*/
|
|
2125
|
-
line_items?: Array<
|
|
2327
|
+
line_items?: Array<CardTransactionUploadAttachmentResponse.LineItem>;
|
|
2126
2328
|
/**
|
|
2127
2329
|
* Memo entered on the transaction.
|
|
2128
2330
|
*/
|
|
@@ -2131,12 +2333,12 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2131
2333
|
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
2132
2334
|
* decimal string.
|
|
2133
2335
|
*/
|
|
2134
|
-
merchant_amount?:
|
|
2336
|
+
merchant_amount?: CardTransactionUploadAttachmentResponse.MerchantAmount;
|
|
2135
2337
|
/**
|
|
2136
2338
|
* Receipt files attached to the transaction, in display order, up to 5. Empty when
|
|
2137
2339
|
* there are none. Null when the caller cannot read the transaction's receipts.
|
|
2138
2340
|
*/
|
|
2139
|
-
receipts?: Array<
|
|
2341
|
+
receipts?: Array<CardTransactionUploadAttachmentResponse.Receipt> | null;
|
|
2140
2342
|
/**
|
|
2141
2343
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
2142
2344
|
*/
|
|
@@ -2151,7 +2353,7 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2151
2353
|
*
|
|
2152
2354
|
* Expandable field
|
|
2153
2355
|
*/
|
|
2154
|
-
vendor?:
|
|
2356
|
+
vendor?: CardTransactionUploadAttachmentResponse.Vendor;
|
|
2155
2357
|
/**
|
|
2156
2358
|
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
2157
2359
|
*/
|
|
@@ -2167,7 +2369,7 @@ export interface CardTransactionUploadReceiptResponse {
|
|
|
2167
2369
|
*/
|
|
2168
2370
|
worker_id?: string;
|
|
2169
2371
|
}
|
|
2170
|
-
export declare namespace
|
|
2372
|
+
export declare namespace CardTransactionUploadAttachmentResponse {
|
|
2171
2373
|
/**
|
|
2172
2374
|
* A Finance transaction attachment with recorded upload details.
|
|
2173
2375
|
*/
|
|
@@ -2538,56 +2740,552 @@ export declare namespace CardTransactionUploadReceiptResponse {
|
|
|
2538
2740
|
name?: string;
|
|
2539
2741
|
}
|
|
2540
2742
|
}
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2743
|
+
/**
|
|
2744
|
+
* A Finance card transaction or authorization the caller can see.
|
|
2745
|
+
*
|
|
2746
|
+
* An authorization is a pending hold the card network places at the time of purchase. A card transaction
|
|
2747
|
+
* is the posted charge. List returns both; retrieve returns one by ID. A transaction the
|
|
2748
|
+
* caller cannot see returns 404, the same as one that does not exist.
|
|
2749
|
+
* PATCH `/card-transactions/{id}/` accepts only `line_items` and replaces the entire list.
|
|
2750
|
+
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
2751
|
+
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
2752
|
+
* The sum of request `amount` values must equal the transaction's merchant amount.
|
|
2753
|
+
*/
|
|
2754
|
+
export interface CardTransactionUploadReceiptResponse {
|
|
2545
2755
|
/**
|
|
2546
|
-
*
|
|
2756
|
+
* Identifier field
|
|
2547
2757
|
*/
|
|
2548
|
-
|
|
2549
|
-
order_by?: string;
|
|
2550
|
-
}
|
|
2551
|
-
export interface CardTransactionRetrieveParams {
|
|
2552
|
-
expand?: string;
|
|
2553
|
-
}
|
|
2554
|
-
export interface CardTransactionUpdateParams {
|
|
2758
|
+
id: string;
|
|
2555
2759
|
/**
|
|
2556
|
-
*
|
|
2557
|
-
* `amount` and `tax_amount` are decimal strings in the merchant currency. The sum
|
|
2558
|
-
* of `amount` values must match the transaction's merchant amount.
|
|
2760
|
+
* Record creation date
|
|
2559
2761
|
*/
|
|
2560
|
-
|
|
2561
|
-
}
|
|
2562
|
-
export declare namespace CardTransactionUpdateParams {
|
|
2762
|
+
created_at: string;
|
|
2563
2763
|
/**
|
|
2564
|
-
*
|
|
2565
|
-
* Currency objects.
|
|
2764
|
+
* Record update date
|
|
2566
2765
|
*/
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2766
|
+
updated_at: string;
|
|
2767
|
+
/**
|
|
2768
|
+
* Date the transaction is booked in the accounting system, as an ISO 8601 date
|
|
2769
|
+
* (YYYY-MM-DD).
|
|
2770
|
+
*/
|
|
2771
|
+
accounting_date?: string;
|
|
2772
|
+
/**
|
|
2773
|
+
* Approval status of the transaction. `DRAFT`: not submitted for approval.
|
|
2774
|
+
* `PENDING`: awaiting required information or submission before approval.
|
|
2775
|
+
* `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
|
|
2776
|
+
* rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
|
|
2777
|
+
* reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
|
|
2778
|
+
* for card authorizations.
|
|
2779
|
+
*/
|
|
2780
|
+
approval_status?: 'DRAFT' | 'PENDING' | 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'FINALIZED' | 'ACTIONED' | 'CANCELLED' | 'FAILED';
|
|
2781
|
+
/**
|
|
2782
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
2783
|
+
*/
|
|
2784
|
+
attachments?: Array<CardTransactionUploadReceiptResponse.Attachment>;
|
|
2785
|
+
/**
|
|
2786
|
+
* State of the card authorization. `PENDING`: an active hold awaiting completion.
|
|
2787
|
+
* `CLOSED`: the authorization was declined, or it completed and was replaced by a
|
|
2788
|
+
* posted card transaction. `REVERSED`: the authorization was reversed and the hold
|
|
2789
|
+
* released. `EXPIRED`: the hold expired without completion. Null for posted card
|
|
2790
|
+
* transactions.
|
|
2791
|
+
*/
|
|
2792
|
+
authorization_state?: 'PENDING' | 'CLOSED' | 'REVERSED' | 'EXPIRED';
|
|
2793
|
+
/**
|
|
2794
|
+
* ID of the Finance card used. No public API is currently available to retrieve
|
|
2795
|
+
* this card.
|
|
2796
|
+
*/
|
|
2797
|
+
card_id?: string;
|
|
2798
|
+
/**
|
|
2799
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
2800
|
+
*/
|
|
2801
|
+
company_amount?: CardTransactionUploadReceiptResponse.CompanyAmount;
|
|
2802
|
+
/**
|
|
2803
|
+
* ID of the legal entity the transaction belongs to. Use it with
|
|
2804
|
+
* `/company-legal-entities/{id}/`.
|
|
2805
|
+
*/
|
|
2806
|
+
entity_id?: string;
|
|
2807
|
+
/**
|
|
2808
|
+
* State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
|
|
2809
|
+
* accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
|
|
2810
|
+
* sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
|
|
2811
|
+
* failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
|
|
2812
|
+
* accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
|
|
2813
|
+
* be synced automatically. Null when no sync state is set.
|
|
2814
|
+
*/
|
|
2815
|
+
gl_sync_state?: 'NOT_FINALIZED' | 'FOR_REVIEW' | 'PENDING_SYNC' | 'SYNCED' | 'ERROR' | 'DO_NOT_SYNC' | 'EXPORTED' | 'NOT_SYNCABLE' | 'AUTO_SYNC';
|
|
2816
|
+
/**
|
|
2817
|
+
* Vendor in the connected accounting system.
|
|
2818
|
+
*/
|
|
2819
|
+
gl_vendor?: CardTransactionUploadReceiptResponse.GlVendor;
|
|
2820
|
+
/**
|
|
2821
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
2822
|
+
*/
|
|
2823
|
+
line_items?: Array<CardTransactionUploadReceiptResponse.LineItem>;
|
|
2824
|
+
/**
|
|
2825
|
+
* Memo entered on the transaction.
|
|
2826
|
+
*/
|
|
2827
|
+
memo?: string;
|
|
2828
|
+
/**
|
|
2829
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
2830
|
+
* decimal string.
|
|
2831
|
+
*/
|
|
2832
|
+
merchant_amount?: CardTransactionUploadReceiptResponse.MerchantAmount;
|
|
2833
|
+
/**
|
|
2834
|
+
* Receipt files attached to the transaction, in display order, up to 5. Empty when
|
|
2835
|
+
* there are none. Null when the caller cannot read the transaction's receipts.
|
|
2836
|
+
*/
|
|
2837
|
+
receipts?: Array<CardTransactionUploadReceiptResponse.Receipt> | null;
|
|
2838
|
+
/**
|
|
2839
|
+
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
2840
|
+
*/
|
|
2841
|
+
transaction_date?: string;
|
|
2842
|
+
/**
|
|
2843
|
+
* `CARD_TRANSACTION`: a posted card charge. `CARD_AUTHORIZATION`: a hold placed by
|
|
2844
|
+
* the card network before the charge posts.
|
|
2845
|
+
*/
|
|
2846
|
+
transaction_type?: 'CARD_TRANSACTION' | 'CARD_AUTHORIZATION';
|
|
2847
|
+
/**
|
|
2848
|
+
* Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
|
|
2849
|
+
*
|
|
2850
|
+
* Expandable field
|
|
2851
|
+
*/
|
|
2852
|
+
vendor?: CardTransactionUploadReceiptResponse.Vendor;
|
|
2853
|
+
/**
|
|
2854
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
2855
|
+
*/
|
|
2856
|
+
vendor_id?: string;
|
|
2857
|
+
/**
|
|
2858
|
+
* Worker details. Expand with `card-transactions.read` and `workers.read`.
|
|
2859
|
+
*
|
|
2860
|
+
* Expandable field
|
|
2861
|
+
*/
|
|
2862
|
+
worker?: WorkersAPI.Worker;
|
|
2863
|
+
/**
|
|
2864
|
+
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
2865
|
+
*/
|
|
2866
|
+
worker_id?: string;
|
|
2867
|
+
}
|
|
2868
|
+
export declare namespace CardTransactionUploadReceiptResponse {
|
|
2869
|
+
/**
|
|
2870
|
+
* A Finance transaction attachment with recorded upload details.
|
|
2871
|
+
*/
|
|
2872
|
+
interface Attachment {
|
|
2873
|
+
/**
|
|
2874
|
+
* URL for accessing the file.
|
|
2875
|
+
*/
|
|
2876
|
+
url: string;
|
|
2877
|
+
/**
|
|
2878
|
+
* Original file name, when recorded.
|
|
2879
|
+
*/
|
|
2880
|
+
file_name?: string;
|
|
2881
|
+
/**
|
|
2882
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
2883
|
+
* recorded.
|
|
2884
|
+
*/
|
|
2885
|
+
uploaded_at?: string;
|
|
2886
|
+
/**
|
|
2887
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
2888
|
+
*/
|
|
2889
|
+
uploaded_by_id?: string;
|
|
2890
|
+
}
|
|
2891
|
+
/**
|
|
2892
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
2893
|
+
*/
|
|
2894
|
+
interface CompanyAmount {
|
|
2895
|
+
/**
|
|
2896
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2897
|
+
*/
|
|
2898
|
+
currency_type?: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* The decimal amount for the currency.
|
|
2901
|
+
*/
|
|
2902
|
+
value?: number;
|
|
2903
|
+
}
|
|
2904
|
+
/**
|
|
2905
|
+
* Vendor in the connected accounting system.
|
|
2906
|
+
*/
|
|
2907
|
+
interface GlVendor {
|
|
2908
|
+
/**
|
|
2909
|
+
* ID of the accounting vendor in Rippling.
|
|
2910
|
+
*/
|
|
2911
|
+
id?: string;
|
|
2912
|
+
/**
|
|
2913
|
+
* ID of the vendor in the accounting system.
|
|
2914
|
+
*/
|
|
2915
|
+
gl_vendor_id?: string;
|
|
2916
|
+
/**
|
|
2917
|
+
* Name of the vendor in the accounting system.
|
|
2918
|
+
*/
|
|
2919
|
+
name?: string;
|
|
2920
|
+
}
|
|
2921
|
+
interface LineItem {
|
|
2922
|
+
/**
|
|
2923
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
2924
|
+
* been assigned one yet.
|
|
2925
|
+
*/
|
|
2926
|
+
id?: string;
|
|
2927
|
+
/**
|
|
2928
|
+
* Whether this line is amortized.
|
|
2929
|
+
*/
|
|
2930
|
+
amortized?: boolean;
|
|
2931
|
+
/**
|
|
2932
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
2933
|
+
*/
|
|
2934
|
+
amount?: LineItem.Amount;
|
|
2935
|
+
/**
|
|
2936
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
2937
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
2938
|
+
*/
|
|
2939
|
+
category_id?: string;
|
|
2940
|
+
/**
|
|
2941
|
+
* Name of the finance category.
|
|
2942
|
+
*/
|
|
2943
|
+
category_name?: string;
|
|
2944
|
+
/**
|
|
2945
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
2946
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
2947
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
2948
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
2949
|
+
*/
|
|
2950
|
+
dimension_choices?: {
|
|
2951
|
+
[key: string]: LineItem.DimensionChoices;
|
|
2952
|
+
};
|
|
2953
|
+
/**
|
|
2954
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
2955
|
+
*/
|
|
2956
|
+
end_date?: string;
|
|
2957
|
+
/**
|
|
2958
|
+
* ERP amortization schedule associated with this line.
|
|
2959
|
+
*/
|
|
2960
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
2961
|
+
/**
|
|
2962
|
+
* ERP amortization template for this line.
|
|
2963
|
+
*/
|
|
2964
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
2965
|
+
/**
|
|
2966
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
2967
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
2968
|
+
* set.
|
|
2969
|
+
*/
|
|
2970
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
2971
|
+
/**
|
|
2972
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
2973
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
2974
|
+
*/
|
|
2975
|
+
gl_customer?: string;
|
|
2976
|
+
/**
|
|
2977
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
2978
|
+
* available to retrieve this accounting tax code.
|
|
2979
|
+
*/
|
|
2980
|
+
gl_tax_code?: string;
|
|
2981
|
+
/**
|
|
2982
|
+
* Memo entered on this split.
|
|
2983
|
+
*/
|
|
2984
|
+
memo?: string;
|
|
2985
|
+
/**
|
|
2986
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
2987
|
+
*/
|
|
2988
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
2989
|
+
/**
|
|
2990
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
2991
|
+
*/
|
|
2992
|
+
start_date?: string;
|
|
2993
|
+
/**
|
|
2994
|
+
* Total tax amount for this line in the merchant currency.
|
|
2995
|
+
*/
|
|
2996
|
+
tax_amount?: LineItem.TaxAmount;
|
|
2997
|
+
}
|
|
2998
|
+
namespace LineItem {
|
|
2999
|
+
/**
|
|
3000
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
3001
|
+
*/
|
|
3002
|
+
interface Amount {
|
|
3003
|
+
/**
|
|
3004
|
+
* The currency type, ex: USD, EUR, etc.
|
|
3005
|
+
*/
|
|
3006
|
+
currency_type?: string;
|
|
3007
|
+
/**
|
|
3008
|
+
* The decimal amount for the currency.
|
|
3009
|
+
*/
|
|
3010
|
+
value?: number;
|
|
3011
|
+
}
|
|
3012
|
+
interface DimensionChoices {
|
|
3013
|
+
/**
|
|
3014
|
+
* Name of the dimension, such as Department.
|
|
3015
|
+
*/
|
|
3016
|
+
dimension_name?: string;
|
|
3017
|
+
/**
|
|
3018
|
+
* Display name of the selected dimension value.
|
|
3019
|
+
*/
|
|
3020
|
+
label?: string;
|
|
3021
|
+
/**
|
|
3022
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
3023
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
3024
|
+
* `/job-codes/{id}/`.
|
|
3025
|
+
*/
|
|
3026
|
+
value?: string;
|
|
3027
|
+
}
|
|
3028
|
+
/**
|
|
3029
|
+
* ERP amortization schedule associated with this line.
|
|
3030
|
+
*/
|
|
3031
|
+
interface GlAmortizationSchedule {
|
|
3032
|
+
/**
|
|
3033
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
3034
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
3035
|
+
*/
|
|
3036
|
+
accounting_integration_id?: string;
|
|
3037
|
+
/**
|
|
3038
|
+
* Number of amortization periods.
|
|
3039
|
+
*/
|
|
3040
|
+
amortization_period?: number;
|
|
3041
|
+
/**
|
|
3042
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
3043
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
3044
|
+
* indicate UTC. Null when not set.
|
|
3045
|
+
*/
|
|
3046
|
+
end_date?: string;
|
|
3047
|
+
/**
|
|
3048
|
+
* Object ID in the connected accounting system.
|
|
3049
|
+
*/
|
|
3050
|
+
gl_object_id?: string;
|
|
3051
|
+
/**
|
|
3052
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
3053
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
3054
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
3055
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
3056
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
3057
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
3058
|
+
* when not set.
|
|
3059
|
+
*/
|
|
3060
|
+
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';
|
|
3061
|
+
/**
|
|
3062
|
+
* Accounting object name.
|
|
3063
|
+
*/
|
|
3064
|
+
name?: string;
|
|
3065
|
+
/**
|
|
3066
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
3067
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
3068
|
+
* indicate UTC. Null when not set.
|
|
3069
|
+
*/
|
|
3070
|
+
start_date?: string;
|
|
3071
|
+
/**
|
|
3072
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
3073
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
3074
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
3075
|
+
*/
|
|
3076
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
3077
|
+
/**
|
|
3078
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
3079
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
3080
|
+
* not available in this response.
|
|
3081
|
+
*/
|
|
3082
|
+
total_amortized_amount?: number;
|
|
3083
|
+
/**
|
|
3084
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
3085
|
+
* schedule currency code is not available in this response.
|
|
3086
|
+
*/
|
|
3087
|
+
total_amount?: number;
|
|
3088
|
+
}
|
|
3089
|
+
/**
|
|
3090
|
+
* ERP amortization template for this line.
|
|
3091
|
+
*/
|
|
3092
|
+
interface GlAmortizationTemplate {
|
|
3093
|
+
/**
|
|
3094
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
3095
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
3096
|
+
*/
|
|
3097
|
+
accounting_integration_id?: string;
|
|
3098
|
+
/**
|
|
3099
|
+
* Object ID in the connected accounting system.
|
|
3100
|
+
*/
|
|
3101
|
+
gl_object_id?: string;
|
|
3102
|
+
/**
|
|
3103
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
3104
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
3105
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
3106
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
3107
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
3108
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
3109
|
+
* when not set.
|
|
3110
|
+
*/
|
|
3111
|
+
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';
|
|
3112
|
+
/**
|
|
3113
|
+
* Accounting object name.
|
|
3114
|
+
*/
|
|
3115
|
+
name?: string;
|
|
3116
|
+
}
|
|
3117
|
+
/**
|
|
3118
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
3119
|
+
*/
|
|
3120
|
+
interface PrepaidAccount {
|
|
3121
|
+
/**
|
|
3122
|
+
* Account ID in the connected accounting system.
|
|
3123
|
+
*/
|
|
3124
|
+
account_id?: string;
|
|
3125
|
+
/**
|
|
3126
|
+
* Account code.
|
|
3127
|
+
*/
|
|
3128
|
+
code?: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Account name.
|
|
3131
|
+
*/
|
|
3132
|
+
name?: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* IDs of custom dimensions required by this account.
|
|
3135
|
+
*/
|
|
3136
|
+
required_custom_dimensions?: Array<string>;
|
|
3137
|
+
/**
|
|
3138
|
+
* Whether this account requires a department.
|
|
3139
|
+
*/
|
|
3140
|
+
requires_department?: boolean;
|
|
3141
|
+
/**
|
|
3142
|
+
* Whether this account requires a work location.
|
|
3143
|
+
*/
|
|
3144
|
+
requires_work_location?: boolean;
|
|
3145
|
+
/**
|
|
3146
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
3147
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
3148
|
+
* when not set.
|
|
3149
|
+
*/
|
|
3150
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
3151
|
+
}
|
|
3152
|
+
/**
|
|
3153
|
+
* Total tax amount for this line in the merchant currency.
|
|
3154
|
+
*/
|
|
3155
|
+
interface TaxAmount {
|
|
3156
|
+
/**
|
|
3157
|
+
* The currency type, ex: USD, EUR, etc.
|
|
3158
|
+
*/
|
|
3159
|
+
currency_type?: string;
|
|
3160
|
+
/**
|
|
3161
|
+
* The decimal amount for the currency.
|
|
3162
|
+
*/
|
|
3163
|
+
value?: number;
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
/**
|
|
3167
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
3168
|
+
* decimal string.
|
|
3169
|
+
*/
|
|
3170
|
+
interface MerchantAmount {
|
|
3171
|
+
/**
|
|
3172
|
+
* The currency type, ex: USD, EUR, etc.
|
|
3173
|
+
*/
|
|
3174
|
+
currency_type?: string;
|
|
3175
|
+
/**
|
|
3176
|
+
* The decimal amount for the currency.
|
|
3177
|
+
*/
|
|
3178
|
+
value?: number;
|
|
3179
|
+
}
|
|
3180
|
+
/**
|
|
3181
|
+
* A receipt file attached to a card transaction.
|
|
3182
|
+
*/
|
|
3183
|
+
interface Receipt {
|
|
3184
|
+
/**
|
|
3185
|
+
* URL of the original receipt file, such as the uploaded PDF. The link is signed
|
|
3186
|
+
* and expires, so fetch the transaction again for a current link instead of
|
|
3187
|
+
* storing it.
|
|
3188
|
+
*/
|
|
3189
|
+
url: string;
|
|
3190
|
+
/**
|
|
3191
|
+
* MIME type of the receipt file, such as `application/pdf`. Null when it cannot be
|
|
3192
|
+
* determined.
|
|
3193
|
+
*/
|
|
3194
|
+
content_type?: string | null;
|
|
3195
|
+
/**
|
|
3196
|
+
* Name of the receipt file. Null when it was not recorded.
|
|
3197
|
+
*/
|
|
3198
|
+
file_name?: string | null;
|
|
3199
|
+
/**
|
|
3200
|
+
* URL of an image preview of the receipt. Null when the receipt is itself an image
|
|
3201
|
+
* or no preview is available. Like `url`, the link is signed and expires.
|
|
3202
|
+
*/
|
|
3203
|
+
preview_url?: string | null;
|
|
3204
|
+
}
|
|
3205
|
+
/**
|
|
3206
|
+
* Vendor details. Expand with `card-transactions.read` and `finance-vendors.read`.
|
|
3207
|
+
*
|
|
3208
|
+
* Expandable field
|
|
3209
|
+
*/
|
|
3210
|
+
interface Vendor {
|
|
3211
|
+
/**
|
|
3212
|
+
* Identifier field
|
|
3213
|
+
*/
|
|
3214
|
+
id: string;
|
|
3215
|
+
/**
|
|
3216
|
+
* Record creation date
|
|
3217
|
+
*/
|
|
3218
|
+
created_at: string;
|
|
3219
|
+
/**
|
|
3220
|
+
* Record update date
|
|
3221
|
+
*/
|
|
3222
|
+
updated_at: string;
|
|
3223
|
+
/**
|
|
3224
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
3225
|
+
* references.
|
|
3226
|
+
*/
|
|
3227
|
+
is_archived?: boolean;
|
|
3228
|
+
/**
|
|
3229
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
3230
|
+
*/
|
|
3231
|
+
logo?: string;
|
|
3232
|
+
/**
|
|
3233
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
3234
|
+
* alternate names.
|
|
3235
|
+
*/
|
|
3236
|
+
name?: string;
|
|
3237
|
+
}
|
|
3238
|
+
}
|
|
3239
|
+
export interface CardTransactionListParams {
|
|
3240
|
+
cursor?: string;
|
|
3241
|
+
expand?: string;
|
|
3242
|
+
filter?: string;
|
|
3243
|
+
/**
|
|
3244
|
+
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
3245
|
+
*/
|
|
3246
|
+
limit?: number;
|
|
3247
|
+
order_by?: string;
|
|
3248
|
+
}
|
|
3249
|
+
export interface CardTransactionRetrieveParams {
|
|
3250
|
+
expand?: string;
|
|
3251
|
+
}
|
|
3252
|
+
export interface CardTransactionUpdateParams {
|
|
3253
|
+
/**
|
|
3254
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
3255
|
+
* `amount` and `tax_amount` are decimal strings in the merchant currency. The sum
|
|
3256
|
+
* of `amount` values must match the transaction's merchant amount.
|
|
3257
|
+
*/
|
|
3258
|
+
line_items?: Array<CardTransactionUpdateParams.LineItem>;
|
|
3259
|
+
}
|
|
3260
|
+
export declare namespace CardTransactionUpdateParams {
|
|
3261
|
+
/**
|
|
3262
|
+
* PATCH body for a line item. `amount` and `tax_amount` are decimal strings, not
|
|
3263
|
+
* Currency objects.
|
|
3264
|
+
*/
|
|
3265
|
+
interface LineItem {
|
|
3266
|
+
/**
|
|
3267
|
+
* Amount of this split, in the merchant currency, as a decimal string.
|
|
3268
|
+
*/
|
|
3269
|
+
amount: string;
|
|
3270
|
+
/**
|
|
3271
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
3272
|
+
* `/finance-categories/{id}/`.
|
|
3273
|
+
*/
|
|
3274
|
+
category_id: string;
|
|
3275
|
+
/**
|
|
3276
|
+
* Optional. Omit to create a new line. Replacing `line_items` assigns new IDs; a
|
|
3277
|
+
* supplied `id` is not preserved.
|
|
3278
|
+
*/
|
|
3279
|
+
id?: string;
|
|
3280
|
+
/**
|
|
3281
|
+
* Whether this line is amortized.
|
|
3282
|
+
*/
|
|
3283
|
+
amortized?: boolean;
|
|
3284
|
+
/**
|
|
3285
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
3286
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
3287
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each value is an ID:
|
|
3288
|
+
* `/departments/{id}/` for `DEPARTMENT`, `/work-locations/{id}/` for
|
|
2591
3289
|
* `WORK_LOCATION`, and `/job-codes/{id}/` for a custom job dimension.
|
|
2592
3290
|
*/
|
|
2593
3291
|
dimension_choices?: {
|
|
@@ -2674,6 +3372,13 @@ export declare namespace CardTransactionUpdateParams {
|
|
|
2674
3372
|
}
|
|
2675
3373
|
}
|
|
2676
3374
|
}
|
|
3375
|
+
export interface CardTransactionUploadAttachmentParams {
|
|
3376
|
+
/**
|
|
3377
|
+
* The file to attach, up to 10 MB. Any type except executables and scripts. The
|
|
3378
|
+
* type is detected from the file's contents.
|
|
3379
|
+
*/
|
|
3380
|
+
file: Uploadable;
|
|
3381
|
+
}
|
|
2677
3382
|
export interface CardTransactionUploadReceiptParams {
|
|
2678
3383
|
/**
|
|
2679
3384
|
* The receipt file: PDF, JPEG, PNG, or BMP, up to 10 MB. The type is detected from
|
|
@@ -2682,6 +3387,6 @@ export interface CardTransactionUploadReceiptParams {
|
|
|
2682
3387
|
file: Uploadable;
|
|
2683
3388
|
}
|
|
2684
3389
|
export declare namespace CardTransactions {
|
|
2685
|
-
export { type CardTransactionListResponse as CardTransactionListResponse, type CardTransactionRetrieveResponse as CardTransactionRetrieveResponse, type CardTransactionUpdateResponse as CardTransactionUpdateResponse, type CardTransactionUploadReceiptResponse as CardTransactionUploadReceiptResponse, type CardTransactionListResponsesPageCursorURL as CardTransactionListResponsesPageCursorURL, type CardTransactionListParams as CardTransactionListParams, type CardTransactionRetrieveParams as CardTransactionRetrieveParams, type CardTransactionUpdateParams as CardTransactionUpdateParams, type CardTransactionUploadReceiptParams as CardTransactionUploadReceiptParams, };
|
|
3390
|
+
export { type CardTransactionListResponse as CardTransactionListResponse, type CardTransactionRetrieveResponse as CardTransactionRetrieveResponse, type CardTransactionUpdateResponse as CardTransactionUpdateResponse, type CardTransactionUploadAttachmentResponse as CardTransactionUploadAttachmentResponse, type CardTransactionUploadReceiptResponse as CardTransactionUploadReceiptResponse, type CardTransactionListResponsesPageCursorURL as CardTransactionListResponsesPageCursorURL, type CardTransactionListParams as CardTransactionListParams, type CardTransactionRetrieveParams as CardTransactionRetrieveParams, type CardTransactionUpdateParams as CardTransactionUpdateParams, type CardTransactionUploadAttachmentParams as CardTransactionUploadAttachmentParams, type CardTransactionUploadReceiptParams as CardTransactionUploadReceiptParams, };
|
|
2686
3391
|
}
|
|
2687
3392
|
//# sourceMappingURL=card-transactions.d.ts.map
|