@rippling/rippling-sdk 0.2.0-alpha.113 → 0.2.0-alpha.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.d.mts +23 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -8
- package/client.d.ts.map +1 -1
- package/client.js +17 -0
- package/client.js.map +1 -1
- package/client.mjs +17 -0
- package/client.mjs.map +1 -1
- package/lib/manifest/app.d.mts +20 -1
- package/lib/manifest/app.d.mts.map +1 -1
- package/lib/manifest/app.d.ts +20 -1
- package/lib/manifest/app.d.ts.map +1 -1
- package/lib/manifest/app.js +50 -0
- package/lib/manifest/app.js.map +1 -1
- package/lib/manifest/app.mjs +51 -1
- package/lib/manifest/app.mjs.map +1 -1
- package/lib/manifest/composition.d.mts +3 -0
- package/lib/manifest/composition.d.mts.map +1 -1
- package/lib/manifest/composition.d.ts +3 -0
- package/lib/manifest/composition.d.ts.map +1 -1
- package/lib/manifest/composition.js.map +1 -1
- package/lib/manifest/composition.mjs.map +1 -1
- package/lib/manifest/definitions/app.js +4 -1
- package/lib/manifest/definitions/app.js.map +1 -1
- package/lib/manifest/definitions/app.mjs +4 -1
- package/lib/manifest/definitions/app.mjs.map +1 -1
- package/lib/manifest/definitions/function.d.mts.map +1 -1
- package/lib/manifest/definitions/function.d.ts.map +1 -1
- package/lib/manifest/definitions/function.js +1 -0
- package/lib/manifest/definitions/function.js.map +1 -1
- package/lib/manifest/definitions/function.mjs +1 -0
- package/lib/manifest/definitions/function.mjs.map +1 -1
- package/lib/manifest/definitions/group.d.mts +64 -0
- package/lib/manifest/definitions/group.d.mts.map +1 -0
- package/lib/manifest/definitions/group.d.ts +64 -0
- package/lib/manifest/definitions/group.d.ts.map +1 -0
- package/lib/manifest/definitions/group.js +57 -0
- package/lib/manifest/definitions/group.js.map +1 -0
- package/lib/manifest/definitions/group.mjs +50 -0
- package/lib/manifest/definitions/group.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +4 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -1
- package/lib/manifest/definitions/index.d.ts +4 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -1
- package/lib/manifest/definitions/index.js +7 -1
- package/lib/manifest/definitions/index.js.map +1 -1
- package/lib/manifest/definitions/index.mjs +2 -0
- package/lib/manifest/definitions/index.mjs.map +1 -1
- package/lib/manifest/definitions/saved-super-group.d.mts +12 -0
- package/lib/manifest/definitions/saved-super-group.d.mts.map +1 -0
- package/lib/manifest/definitions/saved-super-group.d.ts +12 -0
- package/lib/manifest/definitions/saved-super-group.d.ts.map +1 -0
- package/lib/manifest/definitions/saved-super-group.js +26 -0
- package/lib/manifest/definitions/saved-super-group.js.map +1 -0
- package/lib/manifest/definitions/saved-super-group.mjs +21 -0
- package/lib/manifest/definitions/saved-super-group.mjs.map +1 -0
- package/lib/manifest/existing-manifest-context.d.mts +3 -0
- package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
- package/lib/manifest/existing-manifest-context.d.ts +3 -0
- package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
- package/lib/manifest/existing-manifest-context.js +15 -0
- package/lib/manifest/existing-manifest-context.js.map +1 -1
- package/lib/manifest/existing-manifest-context.mjs +15 -0
- package/lib/manifest/existing-manifest-context.mjs.map +1 -1
- package/lib/manifest/group.d.mts +83 -0
- package/lib/manifest/group.d.mts.map +1 -0
- package/lib/manifest/group.d.ts +83 -0
- package/lib/manifest/group.d.ts.map +1 -0
- package/lib/manifest/group.js +207 -0
- package/lib/manifest/group.js.map +1 -0
- package/lib/manifest/group.mjs +203 -0
- package/lib/manifest/group.mjs.map +1 -0
- package/lib/manifest/index.d.mts +2 -0
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +2 -0
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +5 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +2 -0
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/manifest-builder.d.mts +1 -1
- package/lib/manifest/manifest-builder.d.mts.map +1 -1
- package/lib/manifest/manifest-builder.d.ts +1 -1
- package/lib/manifest/manifest-builder.d.ts.map +1 -1
- package/lib/manifest/manifest-builder.js.map +1 -1
- package/lib/manifest/manifest-builder.mjs.map +1 -1
- package/lib/manifest/manifest-function.d.mts +16 -0
- package/lib/manifest/manifest-function.d.mts.map +1 -1
- package/lib/manifest/manifest-function.d.ts +16 -0
- package/lib/manifest/manifest-function.d.ts.map +1 -1
- package/lib/manifest/manifest-function.js +67 -0
- package/lib/manifest/manifest-function.js.map +1 -1
- package/lib/manifest/manifest-function.mjs +68 -1
- package/lib/manifest/manifest-function.mjs.map +1 -1
- package/lib/manifest/saved-super-group.d.mts +43 -0
- package/lib/manifest/saved-super-group.d.mts.map +1 -0
- package/lib/manifest/saved-super-group.d.ts +43 -0
- package/lib/manifest/saved-super-group.d.ts.map +1 -0
- package/lib/manifest/saved-super-group.js +136 -0
- package/lib/manifest/saved-super-group.js.map +1 -0
- package/lib/manifest/saved-super-group.mjs +132 -0
- package/lib/manifest/saved-super-group.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/application-submissions.d.mts +261 -0
- package/resources/application-submissions.d.mts.map +1 -0
- package/resources/application-submissions.d.ts +261 -0
- package/resources/application-submissions.d.ts.map +1 -0
- package/resources/application-submissions.js +112 -0
- package/resources/application-submissions.js.map +1 -0
- package/resources/application-submissions.mjs +108 -0
- package/resources/application-submissions.mjs.map +1 -0
- package/resources/bills.d.mts +913 -12
- package/resources/bills.d.mts.map +1 -1
- package/resources/bills.d.ts +913 -12
- package/resources/bills.d.ts.map +1 -1
- package/resources/bills.js +221 -0
- package/resources/bills.js.map +1 -1
- package/resources/bills.mjs +221 -0
- package/resources/bills.mjs.map +1 -1
- package/resources/candidate-applications.d.mts +247 -9
- package/resources/candidate-applications.d.mts.map +1 -1
- package/resources/candidate-applications.d.ts +247 -9
- package/resources/candidate-applications.d.ts.map +1 -1
- package/resources/candidate-applications.js +37 -5
- package/resources/candidate-applications.js.map +1 -1
- package/resources/candidate-applications.mjs +37 -5
- package/resources/candidate-applications.mjs.map +1 -1
- package/resources/card-transactions.d.mts +1580 -30
- package/resources/card-transactions.d.mts.map +1 -1
- package/resources/card-transactions.d.ts +1580 -30
- package/resources/card-transactions.d.ts.map +1 -1
- package/resources/card-transactions.js +404 -4
- package/resources/card-transactions.js.map +1 -1
- package/resources/card-transactions.mjs +404 -4
- package/resources/card-transactions.mjs.map +1 -1
- package/resources/index.d.mts +6 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-posts.d.mts +345 -0
- package/resources/job-posts.d.mts.map +1 -0
- package/resources/job-posts.d.ts +345 -0
- package/resources/job-posts.d.ts.map +1 -0
- package/resources/job-posts.js +110 -0
- package/resources/job-posts.js.map +1 -0
- package/resources/job-posts.mjs +106 -0
- package/resources/job-posts.mjs.map +1 -0
- package/resources/job-requisitions.d.mts +96 -4
- package/resources/job-requisitions.d.mts.map +1 -1
- package/resources/job-requisitions.d.ts +96 -4
- package/resources/job-requisitions.d.ts.map +1 -1
- package/resources/job-requisitions.js +64 -3
- package/resources/job-requisitions.js.map +1 -1
- package/resources/job-requisitions.mjs +64 -3
- package/resources/job-requisitions.mjs.map +1 -1
- package/resources/reimbursements.d.mts +1106 -64
- package/resources/reimbursements.d.mts.map +1 -1
- package/resources/reimbursements.d.ts +1106 -64
- package/resources/reimbursements.d.ts.map +1 -1
- package/resources/reimbursements.js +208 -0
- package/resources/reimbursements.js.map +1 -1
- package/resources/reimbursements.mjs +208 -0
- package/resources/reimbursements.mjs.map +1 -1
- package/resources/scheduled-payouts.d.mts +0 -2
- package/resources/scheduled-payouts.d.mts.map +1 -1
- package/resources/scheduled-payouts.d.ts +0 -2
- package/resources/scheduled-payouts.d.ts.map +1 -1
- package/resources/scheduled-payouts.js +0 -2
- package/resources/scheduled-payouts.js.map +1 -1
- package/resources/scheduled-payouts.mjs +0 -2
- package/resources/scheduled-payouts.mjs.map +1 -1
- package/src/client.ts +66 -0
- package/src/lib/manifest/app.ts +72 -2
- package/src/lib/manifest/composition.ts +8 -2
- package/src/lib/manifest/definitions/app.ts +4 -1
- package/src/lib/manifest/definitions/function.ts +1 -0
- package/src/lib/manifest/definitions/group.ts +159 -0
- package/src/lib/manifest/definitions/index.ts +25 -0
- package/src/lib/manifest/definitions/saved-super-group.ts +28 -0
- package/src/lib/manifest/existing-manifest-context.ts +24 -0
- package/src/lib/manifest/group.ts +282 -0
- package/src/lib/manifest/index.ts +16 -0
- package/src/lib/manifest/manifest-builder.ts +1 -0
- package/src/lib/manifest/manifest-function.ts +91 -1
- package/src/lib/manifest/saved-super-group.ts +171 -0
- package/src/resources/application-submissions.ts +315 -0
- package/src/resources/bills.ts +1085 -12
- package/src/resources/candidate-applications.ts +282 -9
- package/src/resources/card-transactions.ts +1874 -32
- package/src/resources/index.ts +24 -0
- package/src/resources/job-posts.ts +415 -0
- package/src/resources/job-requisitions.ts +110 -3
- package/src/resources/reimbursements.ts +1299 -63
- package/src/resources/scheduled-payouts.ts +0 -2
- 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
package/resources/bills.d.mts
CHANGED
|
@@ -204,6 +204,225 @@ export declare class Bills extends APIResource {
|
|
|
204
204
|
* ```
|
|
205
205
|
*/
|
|
206
206
|
retrieve(id: string, query?: BillRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<BillRetrieveResponse>;
|
|
207
|
+
/**
|
|
208
|
+
* Updates a bill's line items. Send `line_items` as the full list of lines the
|
|
209
|
+
* bill should have. A line with an `id` is updated and keeps that ID. A line
|
|
210
|
+
* without an `id` is added, and the response includes its new ID. A line left out
|
|
211
|
+
* is deleted, along with any purchase-order match or ERP link on it, as in the
|
|
212
|
+
* bill editor. To keep a line as it is, send it back as GET returns it. Optional
|
|
213
|
+
* fields that are omitted or null on a supplied line are cleared. `amount` and
|
|
214
|
+
* `tax_amount` are decimal strings in the bill's merchant currency, such as
|
|
215
|
+
* `"75.00"`; GET returns them as Currency objects. Line amounts must add up to the
|
|
216
|
+
* bill's merchant amount. Lines sent without an `id` get new IDs on every
|
|
217
|
+
* successful request, so after a timeout, GET the bill and send its current lines
|
|
218
|
+
* instead of replaying the request. A line that GET returns with a null `id`
|
|
219
|
+
* cannot be matched; sending it back replaces it with a new line and ID. Returns
|
|
220
|
+
* 400 for a line `id` that is not on the bill, is repeated, or is not a valid ID,
|
|
221
|
+
* and for amounts that do not add up. Returns 403 without write access to the
|
|
222
|
+
* bill, or for a caller who is not a bill manager when the bill is outside
|
|
223
|
+
* `DRAFT`, `PENDING`, or `CANCELLED`.
|
|
224
|
+
*
|
|
225
|
+
* @example HTTP
|
|
226
|
+
* Representative request and response shapes.
|
|
227
|
+
* ```
|
|
228
|
+
* PATCH /bills/{id}/ HTTP/1.1
|
|
229
|
+
* Host: rest.ripplingapis.com
|
|
230
|
+
* Content-Type: application/json
|
|
231
|
+
* Accept: application/json
|
|
232
|
+
* Rippling-Api-Version: 2024-08-01
|
|
233
|
+
*
|
|
234
|
+
* {}
|
|
235
|
+
*
|
|
236
|
+
* HTTP/1.1 200 OK
|
|
237
|
+
* Content-Type: application/json
|
|
238
|
+
*
|
|
239
|
+
* {
|
|
240
|
+
* "id": "string",
|
|
241
|
+
* "created_at": "string",
|
|
242
|
+
* "updated_at": "string",
|
|
243
|
+
* "worker_id": "string",
|
|
244
|
+
* "worker": {
|
|
245
|
+
* "id": "string",
|
|
246
|
+
* "created_at": "string",
|
|
247
|
+
* "updated_at": "string"
|
|
248
|
+
* },
|
|
249
|
+
* "company_amount": {},
|
|
250
|
+
* "merchant_amount": {},
|
|
251
|
+
* "accounting_date": "string",
|
|
252
|
+
* "gl_sync_state": "NOT_FINALIZED",
|
|
253
|
+
* "approval_status": "DRAFT",
|
|
254
|
+
* "entity_id": "string",
|
|
255
|
+
* "vendor": {
|
|
256
|
+
* "id": "string",
|
|
257
|
+
* "created_at": "string",
|
|
258
|
+
* "updated_at": "string"
|
|
259
|
+
* },
|
|
260
|
+
* "gl_vendor": {},
|
|
261
|
+
* "memo": "string",
|
|
262
|
+
* "attachments": [
|
|
263
|
+
* {
|
|
264
|
+
* "url": "string"
|
|
265
|
+
* }
|
|
266
|
+
* ],
|
|
267
|
+
* "line_items": [
|
|
268
|
+
* {}
|
|
269
|
+
* ],
|
|
270
|
+
* "vendor_id": "string",
|
|
271
|
+
* "transaction_type": "BILL_PAYMENT",
|
|
272
|
+
* "submitter_id": "string",
|
|
273
|
+
* "parent_bill_id": "string",
|
|
274
|
+
* "submitter": {
|
|
275
|
+
* "id": "string",
|
|
276
|
+
* "created_at": "string",
|
|
277
|
+
* "updated_at": "string",
|
|
278
|
+
* "user_id": "string",
|
|
279
|
+
* "user": {
|
|
280
|
+
* "id": "string",
|
|
281
|
+
* "created_at": "string",
|
|
282
|
+
* "updated_at": "string"
|
|
283
|
+
* },
|
|
284
|
+
* "is_manager": false,
|
|
285
|
+
* "manager_id": "string",
|
|
286
|
+
* "manager": {
|
|
287
|
+
* "id": "string",
|
|
288
|
+
* "created_at": "string",
|
|
289
|
+
* "updated_at": "string"
|
|
290
|
+
* },
|
|
291
|
+
* "legal_entity_id": "string",
|
|
292
|
+
* "legal_entity": {
|
|
293
|
+
* "id": "string",
|
|
294
|
+
* "created_at": "string",
|
|
295
|
+
* "updated_at": "string"
|
|
296
|
+
* },
|
|
297
|
+
* "country": "AF",
|
|
298
|
+
* "start_date": "string",
|
|
299
|
+
* "end_date": "string",
|
|
300
|
+
* "number": 0,
|
|
301
|
+
* "work_email": "string",
|
|
302
|
+
* "personal_email": "string",
|
|
303
|
+
* "status": "INIT",
|
|
304
|
+
* "location": {
|
|
305
|
+
* "type": "REMOTE",
|
|
306
|
+
* "work_location_id": "string"
|
|
307
|
+
* },
|
|
308
|
+
* "employment_type_id": "string",
|
|
309
|
+
* "employment_type": {
|
|
310
|
+
* "id": "string",
|
|
311
|
+
* "created_at": "string",
|
|
312
|
+
* "updated_at": "string",
|
|
313
|
+
* "label": "string"
|
|
314
|
+
* },
|
|
315
|
+
* "gender": "MALE",
|
|
316
|
+
* "date_of_birth": "string",
|
|
317
|
+
* "race": "BLACK",
|
|
318
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
319
|
+
* "citizenship": "AF",
|
|
320
|
+
* "compensation_id": "string",
|
|
321
|
+
* "compensation": {
|
|
322
|
+
* "id": "string",
|
|
323
|
+
* "created_at": "string",
|
|
324
|
+
* "updated_at": "string"
|
|
325
|
+
* },
|
|
326
|
+
* "overtime_exemption": "EXEMPT",
|
|
327
|
+
* "department_id": "string",
|
|
328
|
+
* "department": {
|
|
329
|
+
* "id": "string",
|
|
330
|
+
* "created_at": "string",
|
|
331
|
+
* "updated_at": "string",
|
|
332
|
+
* "name": "string"
|
|
333
|
+
* },
|
|
334
|
+
* "teams_id": [
|
|
335
|
+
* "string"
|
|
336
|
+
* ],
|
|
337
|
+
* "teams": [
|
|
338
|
+
* {
|
|
339
|
+
* "id": "string",
|
|
340
|
+
* "created_at": "string",
|
|
341
|
+
* "updated_at": "string",
|
|
342
|
+
* "name": "string"
|
|
343
|
+
* }
|
|
344
|
+
* ],
|
|
345
|
+
* "title": "string",
|
|
346
|
+
* "title_effective_date": "string",
|
|
347
|
+
* "level_id": "string",
|
|
348
|
+
* "level": {
|
|
349
|
+
* "id": "string",
|
|
350
|
+
* "created_at": "string",
|
|
351
|
+
* "updated_at": "string",
|
|
352
|
+
* "name": "string"
|
|
353
|
+
* },
|
|
354
|
+
* "job_function_id": "string",
|
|
355
|
+
* "job_function": {
|
|
356
|
+
* "id": "string",
|
|
357
|
+
* "created_at": "string",
|
|
358
|
+
* "updated_at": "string"
|
|
359
|
+
* },
|
|
360
|
+
* "termination_details": {},
|
|
361
|
+
* "pay_schedule_id": "string",
|
|
362
|
+
* "work_schedule": {},
|
|
363
|
+
* "compensation_grade": {
|
|
364
|
+
* "id": "string",
|
|
365
|
+
* "label": "string"
|
|
366
|
+
* },
|
|
367
|
+
* "original_start_date": "string",
|
|
368
|
+
* "custom_fields": [
|
|
369
|
+
* null
|
|
370
|
+
* ],
|
|
371
|
+
* "country_fields": {
|
|
372
|
+
* "us": {
|
|
373
|
+
* "ssn": "string"
|
|
374
|
+
* },
|
|
375
|
+
* "ca": {
|
|
376
|
+
* "sin": "string"
|
|
377
|
+
* },
|
|
378
|
+
* "nz": {
|
|
379
|
+
* "ird_number": "string"
|
|
380
|
+
* }
|
|
381
|
+
* },
|
|
382
|
+
* "business_partners_id": [
|
|
383
|
+
* "string"
|
|
384
|
+
* ],
|
|
385
|
+
* "business_partners": [
|
|
386
|
+
* {
|
|
387
|
+
* "id": "string",
|
|
388
|
+
* "created_at": "string",
|
|
389
|
+
* "updated_at": "string",
|
|
390
|
+
* "business_partner_group_id": "string",
|
|
391
|
+
* "business_partner_group": {},
|
|
392
|
+
* "worker_id": "string",
|
|
393
|
+
* "worker": {},
|
|
394
|
+
* "client_group_id": "string",
|
|
395
|
+
* "client_group": {},
|
|
396
|
+
* "client_group_member_count": "string"
|
|
397
|
+
* }
|
|
398
|
+
* ]
|
|
399
|
+
* },
|
|
400
|
+
* "invoice_date": "string",
|
|
401
|
+
* "invoice": {
|
|
402
|
+
* "url": "string",
|
|
403
|
+
* "file_name": "string"
|
|
404
|
+
* },
|
|
405
|
+
* "payment_amount": {
|
|
406
|
+
* "currency_type": "string",
|
|
407
|
+
* "value": 0
|
|
408
|
+
* },
|
|
409
|
+
* "payment_method_fee": {
|
|
410
|
+
* "currency_type": "string",
|
|
411
|
+
* "value": 0
|
|
412
|
+
* },
|
|
413
|
+
* "invoice_number": "string",
|
|
414
|
+
* "due_date": "string",
|
|
415
|
+
* "vendor_paid_date": "string",
|
|
416
|
+
* "scheduled_payment_date": "string",
|
|
417
|
+
* "estimated_payment_arrival": "string",
|
|
418
|
+
* "payment_velocity": "TWO_DAY",
|
|
419
|
+
* "credit_method": "ACH",
|
|
420
|
+
* "payment_schedule_setting": "SCHEDULE_NOW",
|
|
421
|
+
* "vendor_memo": "string"
|
|
422
|
+
* }
|
|
423
|
+
* ```
|
|
424
|
+
*/
|
|
425
|
+
update(id: string, body?: BillUpdateParams | null | undefined, options?: RequestOptions): APIPromise<BillUpdateResponse>;
|
|
207
426
|
}
|
|
208
427
|
export type BillListResponsesPageCursorURL = PageCursorURL<BillListResponse>;
|
|
209
428
|
/**
|
|
@@ -292,7 +511,7 @@ export interface BillListResponse {
|
|
|
292
511
|
*/
|
|
293
512
|
invoice_number?: string;
|
|
294
513
|
/**
|
|
295
|
-
* Category splits of the
|
|
514
|
+
* Category splits of the bill amount.
|
|
296
515
|
*/
|
|
297
516
|
line_items?: Array<BillListResponse.LineItem>;
|
|
298
517
|
/**
|
|
@@ -851,7 +1070,7 @@ export interface BillRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
851
1070
|
*/
|
|
852
1071
|
invoice_number?: string;
|
|
853
1072
|
/**
|
|
854
|
-
* Category splits of the
|
|
1073
|
+
* Category splits of the bill amount.
|
|
855
1074
|
*/
|
|
856
1075
|
line_items?: Array<BillRetrieveResponse.LineItem>;
|
|
857
1076
|
/**
|
|
@@ -1324,20 +1543,702 @@ export declare namespace BillRetrieveResponse {
|
|
|
1324
1543
|
name?: string;
|
|
1325
1544
|
}
|
|
1326
1545
|
}
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1546
|
+
/**
|
|
1547
|
+
* A bill visible to the caller, including its invoice and payment details.
|
|
1548
|
+
*/
|
|
1549
|
+
export interface BillUpdateResponse {
|
|
1331
1550
|
/**
|
|
1332
|
-
*
|
|
1551
|
+
* Identifier field
|
|
1333
1552
|
*/
|
|
1334
|
-
|
|
1335
|
-
|
|
1553
|
+
id: string;
|
|
1554
|
+
/**
|
|
1555
|
+
* Record creation date
|
|
1556
|
+
*/
|
|
1557
|
+
created_at: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* Record update date
|
|
1560
|
+
*/
|
|
1561
|
+
updated_at: string;
|
|
1562
|
+
/**
|
|
1563
|
+
* Date the transaction is booked in the accounting system, as an ISO 8601 date
|
|
1564
|
+
* (YYYY-MM-DD).
|
|
1565
|
+
*/
|
|
1566
|
+
accounting_date?: string;
|
|
1567
|
+
/**
|
|
1568
|
+
* Approval state of the bill. `DRAFT`: not submitted. `PENDING`: awaiting required
|
|
1569
|
+
* information before submission. `REQUESTED`: awaiting approval. `APPROVED`:
|
|
1570
|
+
* approved. `REJECTED`: rejected. `FINALIZED`: finalized for payment. `ACTIONED`:
|
|
1571
|
+
* paid. `CANCELLED`: cancelled. `FAILED`: payment failed.
|
|
1572
|
+
*/
|
|
1573
|
+
approval_status?: 'DRAFT' | 'PENDING' | 'REQUESTED' | 'APPROVED' | 'REJECTED' | 'FINALIZED' | 'ACTIONED' | 'CANCELLED' | 'FAILED';
|
|
1574
|
+
/**
|
|
1575
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
1576
|
+
*/
|
|
1577
|
+
attachments?: Array<BillUpdateResponse.Attachment>;
|
|
1578
|
+
/**
|
|
1579
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
1580
|
+
*/
|
|
1581
|
+
company_amount?: BillUpdateResponse.CompanyAmount;
|
|
1582
|
+
/**
|
|
1583
|
+
* How the vendor is paid: ACH, WIRE, CHECK, GLOBAL_ORDER, EXISTING_CORPORATE_CARD,
|
|
1584
|
+
* MANUALLY_PAID, or PAID_IN_FULL_VIA_VENDOR_CREDIT. GLOBAL_ORDER is an
|
|
1585
|
+
* international transfer. PAID_IN_FULL_VIA_VENDOR_CREDIT means vendor credits
|
|
1586
|
+
* cover the full bill, with no cash payment.
|
|
1587
|
+
*/
|
|
1588
|
+
credit_method?: 'ACH' | 'WIRE' | 'CHECK' | 'GLOBAL_ORDER' | 'EXISTING_CORPORATE_CARD' | 'MANUALLY_PAID' | 'PAID_IN_FULL_VIA_VENDOR_CREDIT';
|
|
1589
|
+
/**
|
|
1590
|
+
* Invoice due date, as an ISO 8601 date. A draft can omit it.
|
|
1591
|
+
*/
|
|
1592
|
+
due_date?: string;
|
|
1593
|
+
/**
|
|
1594
|
+
* ID of the legal entity the transaction belongs to. Use it with
|
|
1595
|
+
* `/company-legal-entities/{id}/`.
|
|
1596
|
+
*/
|
|
1597
|
+
entity_id?: string;
|
|
1598
|
+
/**
|
|
1599
|
+
* Date the vendor is expected to receive the payment, as an ISO 8601 date. Null
|
|
1600
|
+
* when not set.
|
|
1601
|
+
*/
|
|
1602
|
+
estimated_payment_arrival?: string;
|
|
1603
|
+
/**
|
|
1604
|
+
* State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
|
|
1605
|
+
* accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
|
|
1606
|
+
* sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
|
|
1607
|
+
* failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
|
|
1608
|
+
* accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
|
|
1609
|
+
* be synced automatically. Null when no sync state is set.
|
|
1610
|
+
*/
|
|
1611
|
+
gl_sync_state?: 'NOT_FINALIZED' | 'FOR_REVIEW' | 'PENDING_SYNC' | 'SYNCED' | 'ERROR' | 'DO_NOT_SYNC' | 'EXPORTED' | 'NOT_SYNCABLE' | 'AUTO_SYNC';
|
|
1612
|
+
/**
|
|
1613
|
+
* Vendor in the connected accounting system.
|
|
1614
|
+
*/
|
|
1615
|
+
gl_vendor?: BillUpdateResponse.GlVendor;
|
|
1616
|
+
/**
|
|
1617
|
+
* Invoice file and its filename.
|
|
1618
|
+
*/
|
|
1619
|
+
invoice?: BillUpdateResponse.Invoice;
|
|
1620
|
+
/**
|
|
1621
|
+
* Invoice date, as an ISO 8601 date (YYYY-MM-DD). Null when not set. Filters
|
|
1622
|
+
* compare UTC calendar days: `eq` includes the whole day, `gt` starts the
|
|
1623
|
+
* following day, and `lt` excludes the specified day. `ge` and `le` include the
|
|
1624
|
+
* specified day; `in` matches any listed day.
|
|
1625
|
+
*/
|
|
1626
|
+
invoice_date?: string;
|
|
1627
|
+
/**
|
|
1628
|
+
* Invoice number. Null when the bill has no invoice number.
|
|
1629
|
+
*/
|
|
1630
|
+
invoice_number?: string;
|
|
1631
|
+
/**
|
|
1632
|
+
* Category splits of the bill amount.
|
|
1633
|
+
*/
|
|
1634
|
+
line_items?: Array<BillUpdateResponse.LineItem>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Memo entered on the transaction.
|
|
1637
|
+
*/
|
|
1638
|
+
memo?: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
1641
|
+
* decimal string.
|
|
1642
|
+
*/
|
|
1643
|
+
merchant_amount?: BillUpdateResponse.MerchantAmount;
|
|
1644
|
+
/**
|
|
1645
|
+
* ID of the bill this payment was split from. Use it with `/bills/{id}/`. Null
|
|
1646
|
+
* when it is not a split bill.
|
|
1647
|
+
*/
|
|
1648
|
+
parent_bill_id?: string;
|
|
1649
|
+
/**
|
|
1650
|
+
* Amount paid to the vendor, in the payment currency. The `value` is a decimal
|
|
1651
|
+
* string.
|
|
1652
|
+
*/
|
|
1653
|
+
payment_amount?: BillUpdateResponse.PaymentAmount;
|
|
1654
|
+
/**
|
|
1655
|
+
* Payment method fee, in the company's headquarters currency. The `value` is a
|
|
1656
|
+
* decimal string. Zero when there is no fee.
|
|
1657
|
+
*/
|
|
1658
|
+
payment_method_fee?: BillUpdateResponse.PaymentMethodFee;
|
|
1659
|
+
/**
|
|
1660
|
+
* Payment scheduling choice: `SCHEDULE_NOW` to schedule payment, or `SKIP_FOR_NOW`
|
|
1661
|
+
* to defer scheduling.
|
|
1662
|
+
*/
|
|
1663
|
+
payment_schedule_setting?: 'SCHEDULE_NOW' | 'SKIP_FOR_NOW';
|
|
1664
|
+
/**
|
|
1665
|
+
* Payment speed option: `TWO_DAY` (accelerated) or `FOUR_DAY` (standard). Use
|
|
1666
|
+
* `estimated_payment_arrival` for the expected arrival date.
|
|
1667
|
+
*/
|
|
1668
|
+
payment_velocity?: 'TWO_DAY' | 'FOUR_DAY';
|
|
1669
|
+
/**
|
|
1670
|
+
* Date used to estimate vendor payment, as an ISO 8601 date. Null when not set.
|
|
1671
|
+
*/
|
|
1672
|
+
scheduled_payment_date?: string;
|
|
1673
|
+
/**
|
|
1674
|
+
* Submitting bill manager. Expand with `bills.read` and `workers.read`.
|
|
1675
|
+
*
|
|
1676
|
+
* Expandable field
|
|
1677
|
+
*/
|
|
1678
|
+
submitter?: WorkersAPI.Worker;
|
|
1679
|
+
/**
|
|
1680
|
+
* ID of the bill manager who submitted the bill. Use it with `/workers/{id}/`. Can
|
|
1681
|
+
* differ from `worker_id`. Null before submission.
|
|
1682
|
+
*/
|
|
1683
|
+
submitter_id?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* Type of transaction: `BILL_PAYMENT`.
|
|
1686
|
+
*/
|
|
1687
|
+
transaction_type?: 'BILL_PAYMENT';
|
|
1688
|
+
/**
|
|
1689
|
+
* Vendor details. Expand with `bills.read` and `finance-vendors.read`.
|
|
1690
|
+
*
|
|
1691
|
+
* Expandable field
|
|
1692
|
+
*/
|
|
1693
|
+
vendor?: BillUpdateResponse.Vendor;
|
|
1694
|
+
/**
|
|
1695
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
1696
|
+
*/
|
|
1697
|
+
vendor_id?: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* Memo included on the payment to the vendor. Supported for ACH; null when not
|
|
1700
|
+
* set.
|
|
1701
|
+
*/
|
|
1702
|
+
vendor_memo?: string;
|
|
1703
|
+
/**
|
|
1704
|
+
* Date the vendor is paid, as an ISO 8601 date. Null until paid.
|
|
1705
|
+
*/
|
|
1706
|
+
vendor_paid_date?: string;
|
|
1707
|
+
/**
|
|
1708
|
+
* Worker details. Expand with `bills.read` and `workers.read`.
|
|
1709
|
+
*
|
|
1710
|
+
* Expandable field
|
|
1711
|
+
*/
|
|
1712
|
+
worker?: WorkersAPI.Worker;
|
|
1713
|
+
/**
|
|
1714
|
+
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
1715
|
+
*/
|
|
1716
|
+
worker_id?: string;
|
|
1336
1717
|
}
|
|
1337
|
-
export
|
|
1338
|
-
|
|
1718
|
+
export declare namespace BillUpdateResponse {
|
|
1719
|
+
/**
|
|
1720
|
+
* A Finance transaction attachment with recorded upload details.
|
|
1721
|
+
*/
|
|
1722
|
+
interface Attachment {
|
|
1723
|
+
/**
|
|
1724
|
+
* URL for accessing the file.
|
|
1725
|
+
*/
|
|
1726
|
+
url: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* Original file name, when recorded.
|
|
1729
|
+
*/
|
|
1730
|
+
file_name?: string;
|
|
1731
|
+
/**
|
|
1732
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
1733
|
+
* recorded.
|
|
1734
|
+
*/
|
|
1735
|
+
uploaded_at?: string;
|
|
1736
|
+
/**
|
|
1737
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
1738
|
+
*/
|
|
1739
|
+
uploaded_by_id?: string;
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
1743
|
+
*/
|
|
1744
|
+
interface CompanyAmount {
|
|
1745
|
+
/**
|
|
1746
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1747
|
+
*/
|
|
1748
|
+
currency_type?: string;
|
|
1749
|
+
/**
|
|
1750
|
+
* The decimal amount for the currency.
|
|
1751
|
+
*/
|
|
1752
|
+
value?: number;
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
* Vendor in the connected accounting system.
|
|
1756
|
+
*/
|
|
1757
|
+
interface GlVendor {
|
|
1758
|
+
/**
|
|
1759
|
+
* ID of the accounting vendor in Rippling.
|
|
1760
|
+
*/
|
|
1761
|
+
id?: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* ID of the vendor in the accounting system.
|
|
1764
|
+
*/
|
|
1765
|
+
gl_vendor_id?: string;
|
|
1766
|
+
/**
|
|
1767
|
+
* Name of the vendor in the accounting system.
|
|
1768
|
+
*/
|
|
1769
|
+
name?: string;
|
|
1770
|
+
}
|
|
1771
|
+
/**
|
|
1772
|
+
* Invoice file and its filename.
|
|
1773
|
+
*/
|
|
1774
|
+
interface Invoice {
|
|
1775
|
+
/**
|
|
1776
|
+
* URL for accessing the file.
|
|
1777
|
+
*/
|
|
1778
|
+
url: string;
|
|
1779
|
+
/**
|
|
1780
|
+
* Original file name, when recorded.
|
|
1781
|
+
*/
|
|
1782
|
+
file_name?: string;
|
|
1783
|
+
}
|
|
1784
|
+
interface LineItem {
|
|
1785
|
+
/**
|
|
1786
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
1787
|
+
* been assigned one yet.
|
|
1788
|
+
*/
|
|
1789
|
+
id?: string;
|
|
1790
|
+
/**
|
|
1791
|
+
* Whether this line is amortized.
|
|
1792
|
+
*/
|
|
1793
|
+
amortized?: boolean;
|
|
1794
|
+
/**
|
|
1795
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
1796
|
+
*/
|
|
1797
|
+
amount?: LineItem.Amount;
|
|
1798
|
+
/**
|
|
1799
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
1800
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
1801
|
+
*/
|
|
1802
|
+
category_id?: string;
|
|
1803
|
+
/**
|
|
1804
|
+
* Name of the finance category.
|
|
1805
|
+
*/
|
|
1806
|
+
category_name?: string;
|
|
1807
|
+
/**
|
|
1808
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
1809
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
1810
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
1811
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
1812
|
+
*/
|
|
1813
|
+
dimension_choices?: {
|
|
1814
|
+
[key: string]: LineItem.DimensionChoices;
|
|
1815
|
+
};
|
|
1816
|
+
/**
|
|
1817
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
1818
|
+
*/
|
|
1819
|
+
end_date?: string;
|
|
1820
|
+
/**
|
|
1821
|
+
* ERP amortization schedule associated with this line.
|
|
1822
|
+
*/
|
|
1823
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
1824
|
+
/**
|
|
1825
|
+
* ERP amortization template for this line.
|
|
1826
|
+
*/
|
|
1827
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
1828
|
+
/**
|
|
1829
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
1830
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
1831
|
+
* set.
|
|
1832
|
+
*/
|
|
1833
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
1834
|
+
/**
|
|
1835
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
1836
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
1837
|
+
*/
|
|
1838
|
+
gl_customer?: string;
|
|
1839
|
+
/**
|
|
1840
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
1841
|
+
* available to retrieve this accounting tax code.
|
|
1842
|
+
*/
|
|
1843
|
+
gl_tax_code?: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* Memo entered on this split.
|
|
1846
|
+
*/
|
|
1847
|
+
memo?: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
1850
|
+
*/
|
|
1851
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
1852
|
+
/**
|
|
1853
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
1854
|
+
*/
|
|
1855
|
+
start_date?: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* Total tax amount for this line in the merchant currency.
|
|
1858
|
+
*/
|
|
1859
|
+
tax_amount?: LineItem.TaxAmount;
|
|
1860
|
+
}
|
|
1861
|
+
namespace LineItem {
|
|
1862
|
+
/**
|
|
1863
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
1864
|
+
*/
|
|
1865
|
+
interface Amount {
|
|
1866
|
+
/**
|
|
1867
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1868
|
+
*/
|
|
1869
|
+
currency_type?: string;
|
|
1870
|
+
/**
|
|
1871
|
+
* The decimal amount for the currency.
|
|
1872
|
+
*/
|
|
1873
|
+
value?: number;
|
|
1874
|
+
}
|
|
1875
|
+
interface DimensionChoices {
|
|
1876
|
+
/**
|
|
1877
|
+
* Name of the dimension, such as Department.
|
|
1878
|
+
*/
|
|
1879
|
+
dimension_name?: string;
|
|
1880
|
+
/**
|
|
1881
|
+
* Display name of the selected dimension value.
|
|
1882
|
+
*/
|
|
1883
|
+
label?: string;
|
|
1884
|
+
/**
|
|
1885
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
1886
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
1887
|
+
* `/job-codes/{id}/`.
|
|
1888
|
+
*/
|
|
1889
|
+
value?: string;
|
|
1890
|
+
}
|
|
1891
|
+
/**
|
|
1892
|
+
* ERP amortization schedule associated with this line.
|
|
1893
|
+
*/
|
|
1894
|
+
interface GlAmortizationSchedule {
|
|
1895
|
+
/**
|
|
1896
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
1897
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
1898
|
+
*/
|
|
1899
|
+
accounting_integration_id?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* Number of amortization periods.
|
|
1902
|
+
*/
|
|
1903
|
+
amortization_period?: number;
|
|
1904
|
+
/**
|
|
1905
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
1906
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
1907
|
+
* indicate UTC. Null when not set.
|
|
1908
|
+
*/
|
|
1909
|
+
end_date?: string;
|
|
1910
|
+
/**
|
|
1911
|
+
* Object ID in the connected accounting system.
|
|
1912
|
+
*/
|
|
1913
|
+
gl_object_id?: string;
|
|
1914
|
+
/**
|
|
1915
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
1916
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
1917
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
1918
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
1919
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
1920
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
1921
|
+
* when not set.
|
|
1922
|
+
*/
|
|
1923
|
+
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';
|
|
1924
|
+
/**
|
|
1925
|
+
* Accounting object name.
|
|
1926
|
+
*/
|
|
1927
|
+
name?: string;
|
|
1928
|
+
/**
|
|
1929
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
1930
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
1931
|
+
* indicate UTC. Null when not set.
|
|
1932
|
+
*/
|
|
1933
|
+
start_date?: string;
|
|
1934
|
+
/**
|
|
1935
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
1936
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
1937
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
1938
|
+
*/
|
|
1939
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
1940
|
+
/**
|
|
1941
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
1942
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
1943
|
+
* not available in this response.
|
|
1944
|
+
*/
|
|
1945
|
+
total_amortized_amount?: number;
|
|
1946
|
+
/**
|
|
1947
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
1948
|
+
* schedule currency code is not available in this response.
|
|
1949
|
+
*/
|
|
1950
|
+
total_amount?: number;
|
|
1951
|
+
}
|
|
1952
|
+
/**
|
|
1953
|
+
* ERP amortization template for this line.
|
|
1954
|
+
*/
|
|
1955
|
+
interface GlAmortizationTemplate {
|
|
1956
|
+
/**
|
|
1957
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
1958
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
1959
|
+
*/
|
|
1960
|
+
accounting_integration_id?: string;
|
|
1961
|
+
/**
|
|
1962
|
+
* Object ID in the connected accounting system.
|
|
1963
|
+
*/
|
|
1964
|
+
gl_object_id?: string;
|
|
1965
|
+
/**
|
|
1966
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
1967
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
1968
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
1969
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
1970
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
1971
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
1972
|
+
* when not set.
|
|
1973
|
+
*/
|
|
1974
|
+
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';
|
|
1975
|
+
/**
|
|
1976
|
+
* Accounting object name.
|
|
1977
|
+
*/
|
|
1978
|
+
name?: string;
|
|
1979
|
+
}
|
|
1980
|
+
/**
|
|
1981
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
1982
|
+
*/
|
|
1983
|
+
interface PrepaidAccount {
|
|
1984
|
+
/**
|
|
1985
|
+
* Account ID in the connected accounting system.
|
|
1986
|
+
*/
|
|
1987
|
+
account_id?: string;
|
|
1988
|
+
/**
|
|
1989
|
+
* Account code.
|
|
1990
|
+
*/
|
|
1991
|
+
code?: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* Account name.
|
|
1994
|
+
*/
|
|
1995
|
+
name?: string;
|
|
1996
|
+
/**
|
|
1997
|
+
* IDs of custom dimensions required by this account.
|
|
1998
|
+
*/
|
|
1999
|
+
required_custom_dimensions?: Array<string>;
|
|
2000
|
+
/**
|
|
2001
|
+
* Whether this account requires a department.
|
|
2002
|
+
*/
|
|
2003
|
+
requires_department?: boolean;
|
|
2004
|
+
/**
|
|
2005
|
+
* Whether this account requires a work location.
|
|
2006
|
+
*/
|
|
2007
|
+
requires_work_location?: boolean;
|
|
2008
|
+
/**
|
|
2009
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
2010
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
2011
|
+
* when not set.
|
|
2012
|
+
*/
|
|
2013
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
2014
|
+
}
|
|
2015
|
+
/**
|
|
2016
|
+
* Total tax amount for this line in the merchant currency.
|
|
2017
|
+
*/
|
|
2018
|
+
interface TaxAmount {
|
|
2019
|
+
/**
|
|
2020
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2021
|
+
*/
|
|
2022
|
+
currency_type?: string;
|
|
2023
|
+
/**
|
|
2024
|
+
* The decimal amount for the currency.
|
|
2025
|
+
*/
|
|
2026
|
+
value?: number;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
2031
|
+
* decimal string.
|
|
2032
|
+
*/
|
|
2033
|
+
interface MerchantAmount {
|
|
2034
|
+
/**
|
|
2035
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2036
|
+
*/
|
|
2037
|
+
currency_type?: string;
|
|
2038
|
+
/**
|
|
2039
|
+
* The decimal amount for the currency.
|
|
2040
|
+
*/
|
|
2041
|
+
value?: number;
|
|
2042
|
+
}
|
|
2043
|
+
/**
|
|
2044
|
+
* Amount paid to the vendor, in the payment currency. The `value` is a decimal
|
|
2045
|
+
* string.
|
|
2046
|
+
*/
|
|
2047
|
+
interface PaymentAmount {
|
|
2048
|
+
/**
|
|
2049
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2050
|
+
*/
|
|
2051
|
+
currency_type?: string;
|
|
2052
|
+
/**
|
|
2053
|
+
* The decimal amount for the currency.
|
|
2054
|
+
*/
|
|
2055
|
+
value?: number;
|
|
2056
|
+
}
|
|
2057
|
+
/**
|
|
2058
|
+
* Payment method fee, in the company's headquarters currency. The `value` is a
|
|
2059
|
+
* decimal string. Zero when there is no fee.
|
|
2060
|
+
*/
|
|
2061
|
+
interface PaymentMethodFee {
|
|
2062
|
+
/**
|
|
2063
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2064
|
+
*/
|
|
2065
|
+
currency_type?: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* The decimal amount for the currency.
|
|
2068
|
+
*/
|
|
2069
|
+
value?: number;
|
|
2070
|
+
}
|
|
2071
|
+
/**
|
|
2072
|
+
* Vendor details. Expand with `bills.read` and `finance-vendors.read`.
|
|
2073
|
+
*
|
|
2074
|
+
* Expandable field
|
|
2075
|
+
*/
|
|
2076
|
+
interface Vendor {
|
|
2077
|
+
/**
|
|
2078
|
+
* Identifier field
|
|
2079
|
+
*/
|
|
2080
|
+
id: string;
|
|
2081
|
+
/**
|
|
2082
|
+
* Record creation date
|
|
2083
|
+
*/
|
|
2084
|
+
created_at: string;
|
|
2085
|
+
/**
|
|
2086
|
+
* Record update date
|
|
2087
|
+
*/
|
|
2088
|
+
updated_at: string;
|
|
2089
|
+
/**
|
|
2090
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
2091
|
+
* references.
|
|
2092
|
+
*/
|
|
2093
|
+
is_archived?: boolean;
|
|
2094
|
+
/**
|
|
2095
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
2096
|
+
*/
|
|
2097
|
+
logo?: string;
|
|
2098
|
+
/**
|
|
2099
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
2100
|
+
* alternate names.
|
|
2101
|
+
*/
|
|
2102
|
+
name?: string;
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
export interface BillListParams {
|
|
2106
|
+
cursor?: string;
|
|
2107
|
+
expand?: string;
|
|
2108
|
+
filter?: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
2111
|
+
*/
|
|
2112
|
+
limit?: number;
|
|
2113
|
+
order_by?: string;
|
|
2114
|
+
}
|
|
2115
|
+
export interface BillRetrieveParams {
|
|
2116
|
+
expand?: string;
|
|
2117
|
+
}
|
|
2118
|
+
export interface BillUpdateParams {
|
|
2119
|
+
/**
|
|
2120
|
+
* Full list of lines the bill should have. Lines with an `id` are updated, lines
|
|
2121
|
+
* without one are added, and lines left out are deleted. Line amounts must add up
|
|
2122
|
+
* to the bill's merchant amount.
|
|
2123
|
+
*/
|
|
2124
|
+
line_items?: Array<BillUpdateParams.LineItem>;
|
|
2125
|
+
}
|
|
2126
|
+
export declare namespace BillUpdateParams {
|
|
2127
|
+
/**
|
|
2128
|
+
* PATCH body for a bill line item. `amount` and `tax_amount` are decimal strings,
|
|
2129
|
+
* not Currency objects.
|
|
2130
|
+
*/
|
|
2131
|
+
interface LineItem {
|
|
2132
|
+
/**
|
|
2133
|
+
* Amount of this split, in the merchant currency, as a decimal string.
|
|
2134
|
+
*/
|
|
2135
|
+
amount: string;
|
|
2136
|
+
/**
|
|
2137
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
2138
|
+
* `/finance-categories/{id}/`.
|
|
2139
|
+
*/
|
|
2140
|
+
category_id: string;
|
|
2141
|
+
/**
|
|
2142
|
+
* ID of a line already on the bill. Send it to update that line and keep its ID.
|
|
2143
|
+
* Omit it to create a new line; the response includes the new line's ID.
|
|
2144
|
+
*/
|
|
2145
|
+
id?: string;
|
|
2146
|
+
/**
|
|
2147
|
+
* Whether this line is amortized.
|
|
2148
|
+
*/
|
|
2149
|
+
amortized?: boolean;
|
|
2150
|
+
/**
|
|
2151
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
2152
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
2153
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each value is an ID:
|
|
2154
|
+
* `/departments/{id}/` for `DEPARTMENT`, `/work-locations/{id}/` for
|
|
2155
|
+
* `WORK_LOCATION`, and `/job-codes/{id}/` for a custom job dimension.
|
|
2156
|
+
*/
|
|
2157
|
+
dimension_choices?: {
|
|
2158
|
+
[key: string]: string;
|
|
2159
|
+
};
|
|
2160
|
+
/**
|
|
2161
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
2162
|
+
*/
|
|
2163
|
+
end_date?: string;
|
|
2164
|
+
/**
|
|
2165
|
+
* ERP amortization template for this line.
|
|
2166
|
+
*/
|
|
2167
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
2168
|
+
/**
|
|
2169
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
2170
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
2171
|
+
* set.
|
|
2172
|
+
*/
|
|
2173
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
2174
|
+
/**
|
|
2175
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
2176
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
2177
|
+
*/
|
|
2178
|
+
gl_customer?: string;
|
|
2179
|
+
/**
|
|
2180
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
2181
|
+
* available to retrieve this accounting tax code.
|
|
2182
|
+
*/
|
|
2183
|
+
gl_tax_code?: string;
|
|
2184
|
+
/**
|
|
2185
|
+
* Memo entered on this split.
|
|
2186
|
+
*/
|
|
2187
|
+
memo?: string;
|
|
2188
|
+
/**
|
|
2189
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
2190
|
+
*/
|
|
2191
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
2192
|
+
/**
|
|
2193
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
2194
|
+
*/
|
|
2195
|
+
start_date?: string;
|
|
2196
|
+
/**
|
|
2197
|
+
* Total tax amount for this line in the merchant currency, as a decimal string.
|
|
2198
|
+
*/
|
|
2199
|
+
tax_amount?: string;
|
|
2200
|
+
}
|
|
2201
|
+
namespace LineItem {
|
|
2202
|
+
/**
|
|
2203
|
+
* ERP amortization template for this line.
|
|
2204
|
+
*/
|
|
2205
|
+
interface GlAmortizationTemplate {
|
|
2206
|
+
/**
|
|
2207
|
+
* Rippling ID of the accounting integration that owns this template. No public
|
|
2208
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
2209
|
+
*/
|
|
2210
|
+
accounting_integration_id?: string;
|
|
2211
|
+
/**
|
|
2212
|
+
* Object ID of the amortization template in the connected accounting system.
|
|
2213
|
+
*/
|
|
2214
|
+
gl_object_id?: string;
|
|
2215
|
+
/**
|
|
2216
|
+
* Amortization template name.
|
|
2217
|
+
*/
|
|
2218
|
+
name?: string;
|
|
2219
|
+
}
|
|
2220
|
+
/**
|
|
2221
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
2222
|
+
*/
|
|
2223
|
+
interface PrepaidAccount {
|
|
2224
|
+
/**
|
|
2225
|
+
* Account ID in the connected accounting system.
|
|
2226
|
+
*/
|
|
2227
|
+
account_id?: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* Account name.
|
|
2230
|
+
*/
|
|
2231
|
+
name?: string;
|
|
2232
|
+
/**
|
|
2233
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
2234
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
2235
|
+
* when not set.
|
|
2236
|
+
*/
|
|
2237
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
1339
2240
|
}
|
|
1340
2241
|
export declare namespace Bills {
|
|
1341
|
-
export { type BillListResponse as BillListResponse, type BillRetrieveResponse as BillRetrieveResponse, type BillListResponsesPageCursorURL as BillListResponsesPageCursorURL, type BillListParams as BillListParams, type BillRetrieveParams as BillRetrieveParams, };
|
|
2242
|
+
export { type BillListResponse as BillListResponse, type BillRetrieveResponse as BillRetrieveResponse, type BillUpdateResponse as BillUpdateResponse, type BillListResponsesPageCursorURL as BillListResponsesPageCursorURL, type BillListParams as BillListParams, type BillRetrieveParams as BillRetrieveParams, type BillUpdateParams as BillUpdateParams, };
|
|
1342
2243
|
}
|
|
1343
2244
|
//# sourceMappingURL=bills.d.mts.map
|