@rippling/rippling-sdk 0.2.0-alpha.112 → 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 +41 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -8
- package/client.d.ts.map +1 -1
- package/client.js +35 -0
- package/client.js.map +1 -1
- package/client.mjs +35 -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/canvas-instance.d.mts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.js +31 -0
- package/lib/manifest/definitions/canvas-instance.js.map +1 -0
- package/lib/manifest/definitions/canvas-instance.mjs +28 -0
- package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
- 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 +5 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -1
- package/lib/manifest/definitions/index.d.ts +5 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -1
- package/lib/manifest/definitions/index.js +9 -1
- package/lib/manifest/definitions/index.js.map +1 -1
- package/lib/manifest/definitions/index.mjs +3 -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/custom-objects/custom-objects.d.mts +4 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +4 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +4 -0
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +4 -0
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +1 -0
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +1 -0
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/index.js +3 -1
- package/resources/custom-objects/index.js.map +1 -1
- package/resources/custom-objects/index.mjs +1 -0
- package/resources/custom-objects/index.mjs.map +1 -1
- package/resources/custom-objects/record-actions.d.mts +98 -0
- package/resources/custom-objects/record-actions.d.mts.map +1 -0
- package/resources/custom-objects/record-actions.d.ts +98 -0
- package/resources/custom-objects/record-actions.d.ts.map +1 -0
- package/resources/custom-objects/record-actions.js +58 -0
- package/resources/custom-objects/record-actions.js.map +1 -0
- package/resources/custom-objects/record-actions.mjs +54 -0
- package/resources/custom-objects/record-actions.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +14 -2
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +14 -2
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/earnings-inputs.js +14 -2
- package/resources/earnings-inputs.js.map +1 -1
- package/resources/earnings-inputs.mjs +14 -2
- package/resources/earnings-inputs.mjs.map +1 -1
- package/resources/index.d.mts +9 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -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/record-detail-related-records.d.mts +60 -30
- package/resources/record-detail-related-records.d.mts.map +1 -1
- package/resources/record-detail-related-records.d.ts +60 -30
- package/resources/record-detail-related-records.d.ts.map +1 -1
- package/resources/record-details.d.mts +120 -60
- package/resources/record-details.d.mts.map +1 -1
- package/resources/record-details.d.ts +120 -60
- package/resources/record-details.d.ts.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-payout-labels.d.mts +267 -0
- package/resources/scheduled-payout-labels.d.mts.map +1 -0
- package/resources/scheduled-payout-labels.d.ts +267 -0
- package/resources/scheduled-payout-labels.d.ts.map +1 -0
- package/resources/scheduled-payout-labels.js +151 -0
- package/resources/scheduled-payout-labels.js.map +1 -0
- package/resources/scheduled-payout-labels.mjs +147 -0
- package/resources/scheduled-payout-labels.mjs.map +1 -0
- package/resources/scheduled-payout-types.d.mts +680 -0
- package/resources/scheduled-payout-types.d.mts.map +1 -0
- package/resources/scheduled-payout-types.d.ts +680 -0
- package/resources/scheduled-payout-types.d.ts.map +1 -0
- package/resources/scheduled-payout-types.js +546 -0
- package/resources/scheduled-payout-types.js.map +1 -0
- package/resources/scheduled-payout-types.mjs +542 -0
- package/resources/scheduled-payout-types.mjs.map +1 -0
- package/resources/scheduled-payouts.d.mts +1588 -0
- package/resources/scheduled-payouts.d.mts.map +1 -0
- package/resources/scheduled-payouts.d.ts +1588 -0
- package/resources/scheduled-payouts.d.ts.map +1 -0
- package/resources/scheduled-payouts.js +582 -0
- package/resources/scheduled-payouts.js.map +1 -0
- package/resources/scheduled-payouts.mjs +578 -0
- package/resources/scheduled-payouts.mjs.map +1 -0
- package/src/client.ts +150 -0
- package/src/lib/manifest/app.ts +72 -2
- package/src/lib/manifest/composition.ts +8 -2
- package/src/lib/manifest/definitions/README.md +3 -1
- package/src/lib/manifest/definitions/app.ts +4 -1
- package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
- 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 +42 -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 +2 -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/custom-objects/custom-objects.ts +16 -0
- package/src/resources/custom-objects/index.ts +6 -0
- package/src/resources/custom-objects/record-actions.ts +125 -0
- package/src/resources/earnings-inputs.ts +14 -2
- package/src/resources/index.ts +57 -0
- package/src/resources/job-posts.ts +415 -0
- package/src/resources/job-requisitions.ts +110 -3
- package/src/resources/record-detail-related-records.ts +60 -30
- package/src/resources/record-details.ts +120 -60
- package/src/resources/reimbursements.ts +1299 -63
- package/src/resources/scheduled-payout-labels.ts +373 -0
- package/src/resources/scheduled-payout-types.ts +755 -0
- package/src/resources/scheduled-payouts.ts +1947 -0
- 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/src/resources/bills.ts
CHANGED
|
@@ -220,6 +220,232 @@ export class Bills extends APIResource {
|
|
|
220
220
|
): APIPromise<BillRetrieveResponse> {
|
|
221
221
|
return this._client.get(path`/bills/${id}/`, { query, ...options });
|
|
222
222
|
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Updates a bill's line items. Send `line_items` as the full list of lines the
|
|
226
|
+
* bill should have. A line with an `id` is updated and keeps that ID. A line
|
|
227
|
+
* without an `id` is added, and the response includes its new ID. A line left out
|
|
228
|
+
* is deleted, along with any purchase-order match or ERP link on it, as in the
|
|
229
|
+
* bill editor. To keep a line as it is, send it back as GET returns it. Optional
|
|
230
|
+
* fields that are omitted or null on a supplied line are cleared. `amount` and
|
|
231
|
+
* `tax_amount` are decimal strings in the bill's merchant currency, such as
|
|
232
|
+
* `"75.00"`; GET returns them as Currency objects. Line amounts must add up to the
|
|
233
|
+
* bill's merchant amount. Lines sent without an `id` get new IDs on every
|
|
234
|
+
* successful request, so after a timeout, GET the bill and send its current lines
|
|
235
|
+
* instead of replaying the request. A line that GET returns with a null `id`
|
|
236
|
+
* cannot be matched; sending it back replaces it with a new line and ID. Returns
|
|
237
|
+
* 400 for a line `id` that is not on the bill, is repeated, or is not a valid ID,
|
|
238
|
+
* and for amounts that do not add up. Returns 403 without write access to the
|
|
239
|
+
* bill, or for a caller who is not a bill manager when the bill is outside
|
|
240
|
+
* `DRAFT`, `PENDING`, or `CANCELLED`.
|
|
241
|
+
*
|
|
242
|
+
* @example HTTP
|
|
243
|
+
* Representative request and response shapes.
|
|
244
|
+
* ```
|
|
245
|
+
* PATCH /bills/{id}/ HTTP/1.1
|
|
246
|
+
* Host: rest.ripplingapis.com
|
|
247
|
+
* Content-Type: application/json
|
|
248
|
+
* Accept: application/json
|
|
249
|
+
* Rippling-Api-Version: 2024-08-01
|
|
250
|
+
*
|
|
251
|
+
* {}
|
|
252
|
+
*
|
|
253
|
+
* HTTP/1.1 200 OK
|
|
254
|
+
* Content-Type: application/json
|
|
255
|
+
*
|
|
256
|
+
* {
|
|
257
|
+
* "id": "string",
|
|
258
|
+
* "created_at": "string",
|
|
259
|
+
* "updated_at": "string",
|
|
260
|
+
* "worker_id": "string",
|
|
261
|
+
* "worker": {
|
|
262
|
+
* "id": "string",
|
|
263
|
+
* "created_at": "string",
|
|
264
|
+
* "updated_at": "string"
|
|
265
|
+
* },
|
|
266
|
+
* "company_amount": {},
|
|
267
|
+
* "merchant_amount": {},
|
|
268
|
+
* "accounting_date": "string",
|
|
269
|
+
* "gl_sync_state": "NOT_FINALIZED",
|
|
270
|
+
* "approval_status": "DRAFT",
|
|
271
|
+
* "entity_id": "string",
|
|
272
|
+
* "vendor": {
|
|
273
|
+
* "id": "string",
|
|
274
|
+
* "created_at": "string",
|
|
275
|
+
* "updated_at": "string"
|
|
276
|
+
* },
|
|
277
|
+
* "gl_vendor": {},
|
|
278
|
+
* "memo": "string",
|
|
279
|
+
* "attachments": [
|
|
280
|
+
* {
|
|
281
|
+
* "url": "string"
|
|
282
|
+
* }
|
|
283
|
+
* ],
|
|
284
|
+
* "line_items": [
|
|
285
|
+
* {}
|
|
286
|
+
* ],
|
|
287
|
+
* "vendor_id": "string",
|
|
288
|
+
* "transaction_type": "BILL_PAYMENT",
|
|
289
|
+
* "submitter_id": "string",
|
|
290
|
+
* "parent_bill_id": "string",
|
|
291
|
+
* "submitter": {
|
|
292
|
+
* "id": "string",
|
|
293
|
+
* "created_at": "string",
|
|
294
|
+
* "updated_at": "string",
|
|
295
|
+
* "user_id": "string",
|
|
296
|
+
* "user": {
|
|
297
|
+
* "id": "string",
|
|
298
|
+
* "created_at": "string",
|
|
299
|
+
* "updated_at": "string"
|
|
300
|
+
* },
|
|
301
|
+
* "is_manager": false,
|
|
302
|
+
* "manager_id": "string",
|
|
303
|
+
* "manager": {
|
|
304
|
+
* "id": "string",
|
|
305
|
+
* "created_at": "string",
|
|
306
|
+
* "updated_at": "string"
|
|
307
|
+
* },
|
|
308
|
+
* "legal_entity_id": "string",
|
|
309
|
+
* "legal_entity": {
|
|
310
|
+
* "id": "string",
|
|
311
|
+
* "created_at": "string",
|
|
312
|
+
* "updated_at": "string"
|
|
313
|
+
* },
|
|
314
|
+
* "country": "AF",
|
|
315
|
+
* "start_date": "string",
|
|
316
|
+
* "end_date": "string",
|
|
317
|
+
* "number": 0,
|
|
318
|
+
* "work_email": "string",
|
|
319
|
+
* "personal_email": "string",
|
|
320
|
+
* "status": "INIT",
|
|
321
|
+
* "location": {
|
|
322
|
+
* "type": "REMOTE",
|
|
323
|
+
* "work_location_id": "string"
|
|
324
|
+
* },
|
|
325
|
+
* "employment_type_id": "string",
|
|
326
|
+
* "employment_type": {
|
|
327
|
+
* "id": "string",
|
|
328
|
+
* "created_at": "string",
|
|
329
|
+
* "updated_at": "string",
|
|
330
|
+
* "label": "string"
|
|
331
|
+
* },
|
|
332
|
+
* "gender": "MALE",
|
|
333
|
+
* "date_of_birth": "string",
|
|
334
|
+
* "race": "BLACK",
|
|
335
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
336
|
+
* "citizenship": "AF",
|
|
337
|
+
* "compensation_id": "string",
|
|
338
|
+
* "compensation": {
|
|
339
|
+
* "id": "string",
|
|
340
|
+
* "created_at": "string",
|
|
341
|
+
* "updated_at": "string"
|
|
342
|
+
* },
|
|
343
|
+
* "overtime_exemption": "EXEMPT",
|
|
344
|
+
* "department_id": "string",
|
|
345
|
+
* "department": {
|
|
346
|
+
* "id": "string",
|
|
347
|
+
* "created_at": "string",
|
|
348
|
+
* "updated_at": "string",
|
|
349
|
+
* "name": "string"
|
|
350
|
+
* },
|
|
351
|
+
* "teams_id": [
|
|
352
|
+
* "string"
|
|
353
|
+
* ],
|
|
354
|
+
* "teams": [
|
|
355
|
+
* {
|
|
356
|
+
* "id": "string",
|
|
357
|
+
* "created_at": "string",
|
|
358
|
+
* "updated_at": "string",
|
|
359
|
+
* "name": "string"
|
|
360
|
+
* }
|
|
361
|
+
* ],
|
|
362
|
+
* "title": "string",
|
|
363
|
+
* "title_effective_date": "string",
|
|
364
|
+
* "level_id": "string",
|
|
365
|
+
* "level": {
|
|
366
|
+
* "id": "string",
|
|
367
|
+
* "created_at": "string",
|
|
368
|
+
* "updated_at": "string",
|
|
369
|
+
* "name": "string"
|
|
370
|
+
* },
|
|
371
|
+
* "job_function_id": "string",
|
|
372
|
+
* "job_function": {
|
|
373
|
+
* "id": "string",
|
|
374
|
+
* "created_at": "string",
|
|
375
|
+
* "updated_at": "string"
|
|
376
|
+
* },
|
|
377
|
+
* "termination_details": {},
|
|
378
|
+
* "pay_schedule_id": "string",
|
|
379
|
+
* "work_schedule": {},
|
|
380
|
+
* "compensation_grade": {
|
|
381
|
+
* "id": "string",
|
|
382
|
+
* "label": "string"
|
|
383
|
+
* },
|
|
384
|
+
* "original_start_date": "string",
|
|
385
|
+
* "custom_fields": [
|
|
386
|
+
* null
|
|
387
|
+
* ],
|
|
388
|
+
* "country_fields": {
|
|
389
|
+
* "us": {
|
|
390
|
+
* "ssn": "string"
|
|
391
|
+
* },
|
|
392
|
+
* "ca": {
|
|
393
|
+
* "sin": "string"
|
|
394
|
+
* },
|
|
395
|
+
* "nz": {
|
|
396
|
+
* "ird_number": "string"
|
|
397
|
+
* }
|
|
398
|
+
* },
|
|
399
|
+
* "business_partners_id": [
|
|
400
|
+
* "string"
|
|
401
|
+
* ],
|
|
402
|
+
* "business_partners": [
|
|
403
|
+
* {
|
|
404
|
+
* "id": "string",
|
|
405
|
+
* "created_at": "string",
|
|
406
|
+
* "updated_at": "string",
|
|
407
|
+
* "business_partner_group_id": "string",
|
|
408
|
+
* "business_partner_group": {},
|
|
409
|
+
* "worker_id": "string",
|
|
410
|
+
* "worker": {},
|
|
411
|
+
* "client_group_id": "string",
|
|
412
|
+
* "client_group": {},
|
|
413
|
+
* "client_group_member_count": "string"
|
|
414
|
+
* }
|
|
415
|
+
* ]
|
|
416
|
+
* },
|
|
417
|
+
* "invoice_date": "string",
|
|
418
|
+
* "invoice": {
|
|
419
|
+
* "url": "string",
|
|
420
|
+
* "file_name": "string"
|
|
421
|
+
* },
|
|
422
|
+
* "payment_amount": {
|
|
423
|
+
* "currency_type": "string",
|
|
424
|
+
* "value": 0
|
|
425
|
+
* },
|
|
426
|
+
* "payment_method_fee": {
|
|
427
|
+
* "currency_type": "string",
|
|
428
|
+
* "value": 0
|
|
429
|
+
* },
|
|
430
|
+
* "invoice_number": "string",
|
|
431
|
+
* "due_date": "string",
|
|
432
|
+
* "vendor_paid_date": "string",
|
|
433
|
+
* "scheduled_payment_date": "string",
|
|
434
|
+
* "estimated_payment_arrival": "string",
|
|
435
|
+
* "payment_velocity": "TWO_DAY",
|
|
436
|
+
* "credit_method": "ACH",
|
|
437
|
+
* "payment_schedule_setting": "SCHEDULE_NOW",
|
|
438
|
+
* "vendor_memo": "string"
|
|
439
|
+
* }
|
|
440
|
+
* ```
|
|
441
|
+
*/
|
|
442
|
+
update(
|
|
443
|
+
id: string,
|
|
444
|
+
body: BillUpdateParams | null | undefined = {},
|
|
445
|
+
options?: RequestOptions,
|
|
446
|
+
): APIPromise<BillUpdateResponse> {
|
|
447
|
+
return this._client.patch(path`/bills/${id}/`, { body, ...options });
|
|
448
|
+
}
|
|
223
449
|
}
|
|
224
450
|
|
|
225
451
|
export type BillListResponsesPageCursorURL = PageCursorURL<BillListResponse>;
|
|
@@ -351,7 +577,7 @@ export interface BillListResponse {
|
|
|
351
577
|
invoice_number?: string;
|
|
352
578
|
|
|
353
579
|
/**
|
|
354
|
-
* Category splits of the
|
|
580
|
+
* Category splits of the bill amount.
|
|
355
581
|
*/
|
|
356
582
|
line_items?: Array<BillListResponse.LineItem>;
|
|
357
583
|
|
|
@@ -1054,7 +1280,7 @@ export interface BillRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
1054
1280
|
invoice_number?: string;
|
|
1055
1281
|
|
|
1056
1282
|
/**
|
|
1057
|
-
* Category splits of the
|
|
1283
|
+
* Category splits of the bill amount.
|
|
1058
1284
|
*/
|
|
1059
1285
|
line_items?: Array<BillRetrieveResponse.LineItem>;
|
|
1060
1286
|
|
|
@@ -1630,31 +1856,878 @@ export namespace BillRetrieveResponse {
|
|
|
1630
1856
|
}
|
|
1631
1857
|
}
|
|
1632
1858
|
|
|
1633
|
-
|
|
1634
|
-
|
|
1859
|
+
/**
|
|
1860
|
+
* A bill visible to the caller, including its invoice and payment details.
|
|
1861
|
+
*/
|
|
1862
|
+
export interface BillUpdateResponse {
|
|
1863
|
+
/**
|
|
1864
|
+
* Identifier field
|
|
1865
|
+
*/
|
|
1866
|
+
id: string;
|
|
1635
1867
|
|
|
1636
|
-
|
|
1868
|
+
/**
|
|
1869
|
+
* Record creation date
|
|
1870
|
+
*/
|
|
1871
|
+
created_at: string;
|
|
1637
1872
|
|
|
1638
|
-
|
|
1873
|
+
/**
|
|
1874
|
+
* Record update date
|
|
1875
|
+
*/
|
|
1876
|
+
updated_at: string;
|
|
1639
1877
|
|
|
1640
1878
|
/**
|
|
1641
|
-
*
|
|
1879
|
+
* Date the transaction is booked in the accounting system, as an ISO 8601 date
|
|
1880
|
+
* (YYYY-MM-DD).
|
|
1642
1881
|
*/
|
|
1643
|
-
|
|
1882
|
+
accounting_date?: string;
|
|
1644
1883
|
|
|
1645
|
-
|
|
1646
|
-
|
|
1884
|
+
/**
|
|
1885
|
+
* Approval state of the bill. `DRAFT`: not submitted. `PENDING`: awaiting required
|
|
1886
|
+
* information before submission. `REQUESTED`: awaiting approval. `APPROVED`:
|
|
1887
|
+
* approved. `REJECTED`: rejected. `FINALIZED`: finalized for payment. `ACTIONED`:
|
|
1888
|
+
* paid. `CANCELLED`: cancelled. `FAILED`: payment failed.
|
|
1889
|
+
*/
|
|
1890
|
+
approval_status?:
|
|
1891
|
+
| 'DRAFT'
|
|
1892
|
+
| 'PENDING'
|
|
1893
|
+
| 'REQUESTED'
|
|
1894
|
+
| 'APPROVED'
|
|
1895
|
+
| 'REJECTED'
|
|
1896
|
+
| 'FINALIZED'
|
|
1897
|
+
| 'ACTIONED'
|
|
1898
|
+
| 'CANCELLED'
|
|
1899
|
+
| 'FAILED';
|
|
1647
1900
|
|
|
1648
|
-
|
|
1649
|
-
|
|
1901
|
+
/**
|
|
1902
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
1903
|
+
*/
|
|
1904
|
+
attachments?: Array<BillUpdateResponse.Attachment>;
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
1908
|
+
*/
|
|
1909
|
+
company_amount?: BillUpdateResponse.CompanyAmount;
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* How the vendor is paid: ACH, WIRE, CHECK, GLOBAL_ORDER, EXISTING_CORPORATE_CARD,
|
|
1913
|
+
* MANUALLY_PAID, or PAID_IN_FULL_VIA_VENDOR_CREDIT. GLOBAL_ORDER is an
|
|
1914
|
+
* international transfer. PAID_IN_FULL_VIA_VENDOR_CREDIT means vendor credits
|
|
1915
|
+
* cover the full bill, with no cash payment.
|
|
1916
|
+
*/
|
|
1917
|
+
credit_method?:
|
|
1918
|
+
| 'ACH'
|
|
1919
|
+
| 'WIRE'
|
|
1920
|
+
| 'CHECK'
|
|
1921
|
+
| 'GLOBAL_ORDER'
|
|
1922
|
+
| 'EXISTING_CORPORATE_CARD'
|
|
1923
|
+
| 'MANUALLY_PAID'
|
|
1924
|
+
| 'PAID_IN_FULL_VIA_VENDOR_CREDIT';
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* Invoice due date, as an ISO 8601 date. A draft can omit it.
|
|
1928
|
+
*/
|
|
1929
|
+
due_date?: string;
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* ID of the legal entity the transaction belongs to. Use it with
|
|
1933
|
+
* `/company-legal-entities/{id}/`.
|
|
1934
|
+
*/
|
|
1935
|
+
entity_id?: string;
|
|
1936
|
+
|
|
1937
|
+
/**
|
|
1938
|
+
* Date the vendor is expected to receive the payment, as an ISO 8601 date. Null
|
|
1939
|
+
* when not set.
|
|
1940
|
+
*/
|
|
1941
|
+
estimated_payment_arrival?: string;
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
|
|
1945
|
+
* accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
|
|
1946
|
+
* sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
|
|
1947
|
+
* failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
|
|
1948
|
+
* accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
|
|
1949
|
+
* be synced automatically. Null when no sync state is set.
|
|
1950
|
+
*/
|
|
1951
|
+
gl_sync_state?:
|
|
1952
|
+
| 'NOT_FINALIZED'
|
|
1953
|
+
| 'FOR_REVIEW'
|
|
1954
|
+
| 'PENDING_SYNC'
|
|
1955
|
+
| 'SYNCED'
|
|
1956
|
+
| 'ERROR'
|
|
1957
|
+
| 'DO_NOT_SYNC'
|
|
1958
|
+
| 'EXPORTED'
|
|
1959
|
+
| 'NOT_SYNCABLE'
|
|
1960
|
+
| 'AUTO_SYNC';
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* Vendor in the connected accounting system.
|
|
1964
|
+
*/
|
|
1965
|
+
gl_vendor?: BillUpdateResponse.GlVendor;
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* Invoice file and its filename.
|
|
1969
|
+
*/
|
|
1970
|
+
invoice?: BillUpdateResponse.Invoice;
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* Invoice date, as an ISO 8601 date (YYYY-MM-DD). Null when not set. Filters
|
|
1974
|
+
* compare UTC calendar days: `eq` includes the whole day, `gt` starts the
|
|
1975
|
+
* following day, and `lt` excludes the specified day. `ge` and `le` include the
|
|
1976
|
+
* specified day; `in` matches any listed day.
|
|
1977
|
+
*/
|
|
1978
|
+
invoice_date?: string;
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* Invoice number. Null when the bill has no invoice number.
|
|
1982
|
+
*/
|
|
1983
|
+
invoice_number?: string;
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* Category splits of the bill amount.
|
|
1987
|
+
*/
|
|
1988
|
+
line_items?: Array<BillUpdateResponse.LineItem>;
|
|
1989
|
+
|
|
1990
|
+
/**
|
|
1991
|
+
* Memo entered on the transaction.
|
|
1992
|
+
*/
|
|
1993
|
+
memo?: string;
|
|
1994
|
+
|
|
1995
|
+
/**
|
|
1996
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
1997
|
+
* decimal string.
|
|
1998
|
+
*/
|
|
1999
|
+
merchant_amount?: BillUpdateResponse.MerchantAmount;
|
|
2000
|
+
|
|
2001
|
+
/**
|
|
2002
|
+
* ID of the bill this payment was split from. Use it with `/bills/{id}/`. Null
|
|
2003
|
+
* when it is not a split bill.
|
|
2004
|
+
*/
|
|
2005
|
+
parent_bill_id?: string;
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Amount paid to the vendor, in the payment currency. The `value` is a decimal
|
|
2009
|
+
* string.
|
|
2010
|
+
*/
|
|
2011
|
+
payment_amount?: BillUpdateResponse.PaymentAmount;
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* Payment method fee, in the company's headquarters currency. The `value` is a
|
|
2015
|
+
* decimal string. Zero when there is no fee.
|
|
2016
|
+
*/
|
|
2017
|
+
payment_method_fee?: BillUpdateResponse.PaymentMethodFee;
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* Payment scheduling choice: `SCHEDULE_NOW` to schedule payment, or `SKIP_FOR_NOW`
|
|
2021
|
+
* to defer scheduling.
|
|
2022
|
+
*/
|
|
2023
|
+
payment_schedule_setting?: 'SCHEDULE_NOW' | 'SKIP_FOR_NOW';
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Payment speed option: `TWO_DAY` (accelerated) or `FOUR_DAY` (standard). Use
|
|
2027
|
+
* `estimated_payment_arrival` for the expected arrival date.
|
|
2028
|
+
*/
|
|
2029
|
+
payment_velocity?: 'TWO_DAY' | 'FOUR_DAY';
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
* Date used to estimate vendor payment, as an ISO 8601 date. Null when not set.
|
|
2033
|
+
*/
|
|
2034
|
+
scheduled_payment_date?: string;
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* Submitting bill manager. Expand with `bills.read` and `workers.read`.
|
|
2038
|
+
*
|
|
2039
|
+
* Expandable field
|
|
2040
|
+
*/
|
|
2041
|
+
submitter?: WorkersAPI.Worker;
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* ID of the bill manager who submitted the bill. Use it with `/workers/{id}/`. Can
|
|
2045
|
+
* differ from `worker_id`. Null before submission.
|
|
2046
|
+
*/
|
|
2047
|
+
submitter_id?: string;
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* Type of transaction: `BILL_PAYMENT`.
|
|
2051
|
+
*/
|
|
2052
|
+
transaction_type?: 'BILL_PAYMENT';
|
|
2053
|
+
|
|
2054
|
+
/**
|
|
2055
|
+
* Vendor details. Expand with `bills.read` and `finance-vendors.read`.
|
|
2056
|
+
*
|
|
2057
|
+
* Expandable field
|
|
2058
|
+
*/
|
|
2059
|
+
vendor?: BillUpdateResponse.Vendor;
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
2063
|
+
*/
|
|
2064
|
+
vendor_id?: string;
|
|
2065
|
+
|
|
2066
|
+
/**
|
|
2067
|
+
* Memo included on the payment to the vendor. Supported for ACH; null when not
|
|
2068
|
+
* set.
|
|
2069
|
+
*/
|
|
2070
|
+
vendor_memo?: string;
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* Date the vendor is paid, as an ISO 8601 date. Null until paid.
|
|
2074
|
+
*/
|
|
2075
|
+
vendor_paid_date?: string;
|
|
2076
|
+
|
|
2077
|
+
/**
|
|
2078
|
+
* Worker details. Expand with `bills.read` and `workers.read`.
|
|
2079
|
+
*
|
|
2080
|
+
* Expandable field
|
|
2081
|
+
*/
|
|
2082
|
+
worker?: WorkersAPI.Worker;
|
|
2083
|
+
|
|
2084
|
+
/**
|
|
2085
|
+
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
2086
|
+
*/
|
|
2087
|
+
worker_id?: string;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
export namespace BillUpdateResponse {
|
|
2091
|
+
/**
|
|
2092
|
+
* A Finance transaction attachment with recorded upload details.
|
|
2093
|
+
*/
|
|
2094
|
+
export interface Attachment {
|
|
2095
|
+
/**
|
|
2096
|
+
* URL for accessing the file.
|
|
2097
|
+
*/
|
|
2098
|
+
url: string;
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* Original file name, when recorded.
|
|
2102
|
+
*/
|
|
2103
|
+
file_name?: string;
|
|
2104
|
+
|
|
2105
|
+
/**
|
|
2106
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
2107
|
+
* recorded.
|
|
2108
|
+
*/
|
|
2109
|
+
uploaded_at?: string;
|
|
2110
|
+
|
|
2111
|
+
/**
|
|
2112
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
2113
|
+
*/
|
|
2114
|
+
uploaded_by_id?: string;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
2119
|
+
*/
|
|
2120
|
+
export interface CompanyAmount {
|
|
2121
|
+
/**
|
|
2122
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2123
|
+
*/
|
|
2124
|
+
currency_type?: string;
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* The decimal amount for the currency.
|
|
2128
|
+
*/
|
|
2129
|
+
value?: number;
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
/**
|
|
2133
|
+
* Vendor in the connected accounting system.
|
|
2134
|
+
*/
|
|
2135
|
+
export interface GlVendor {
|
|
2136
|
+
/**
|
|
2137
|
+
* ID of the accounting vendor in Rippling.
|
|
2138
|
+
*/
|
|
2139
|
+
id?: string;
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* ID of the vendor in the accounting system.
|
|
2143
|
+
*/
|
|
2144
|
+
gl_vendor_id?: string;
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* Name of the vendor in the accounting system.
|
|
2148
|
+
*/
|
|
2149
|
+
name?: string;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
/**
|
|
2153
|
+
* Invoice file and its filename.
|
|
2154
|
+
*/
|
|
2155
|
+
export interface Invoice {
|
|
2156
|
+
/**
|
|
2157
|
+
* URL for accessing the file.
|
|
2158
|
+
*/
|
|
2159
|
+
url: string;
|
|
2160
|
+
|
|
2161
|
+
/**
|
|
2162
|
+
* Original file name, when recorded.
|
|
2163
|
+
*/
|
|
2164
|
+
file_name?: string;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
export interface LineItem {
|
|
2168
|
+
/**
|
|
2169
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
2170
|
+
* been assigned one yet.
|
|
2171
|
+
*/
|
|
2172
|
+
id?: string;
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* Whether this line is amortized.
|
|
2176
|
+
*/
|
|
2177
|
+
amortized?: boolean;
|
|
2178
|
+
|
|
2179
|
+
/**
|
|
2180
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
2181
|
+
*/
|
|
2182
|
+
amount?: LineItem.Amount;
|
|
2183
|
+
|
|
2184
|
+
/**
|
|
2185
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
2186
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
2187
|
+
*/
|
|
2188
|
+
category_id?: string;
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* Name of the finance category.
|
|
2192
|
+
*/
|
|
2193
|
+
category_name?: string;
|
|
2194
|
+
|
|
2195
|
+
/**
|
|
2196
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
2197
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
2198
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
2199
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
2200
|
+
*/
|
|
2201
|
+
dimension_choices?: { [key: string]: LineItem.DimensionChoices };
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
2205
|
+
*/
|
|
2206
|
+
end_date?: string;
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* ERP amortization schedule associated with this line.
|
|
2210
|
+
*/
|
|
2211
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
2212
|
+
|
|
2213
|
+
/**
|
|
2214
|
+
* ERP amortization template for this line.
|
|
2215
|
+
*/
|
|
2216
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
2220
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
2221
|
+
* set.
|
|
2222
|
+
*/
|
|
2223
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
2227
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
2228
|
+
*/
|
|
2229
|
+
gl_customer?: string;
|
|
2230
|
+
|
|
2231
|
+
/**
|
|
2232
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
2233
|
+
* available to retrieve this accounting tax code.
|
|
2234
|
+
*/
|
|
2235
|
+
gl_tax_code?: string;
|
|
2236
|
+
|
|
2237
|
+
/**
|
|
2238
|
+
* Memo entered on this split.
|
|
2239
|
+
*/
|
|
2240
|
+
memo?: string;
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
2244
|
+
*/
|
|
2245
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
2246
|
+
|
|
2247
|
+
/**
|
|
2248
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
2249
|
+
*/
|
|
2250
|
+
start_date?: string;
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* Total tax amount for this line in the merchant currency.
|
|
2254
|
+
*/
|
|
2255
|
+
tax_amount?: LineItem.TaxAmount;
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
export namespace LineItem {
|
|
2259
|
+
/**
|
|
2260
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
2261
|
+
*/
|
|
2262
|
+
export interface Amount {
|
|
2263
|
+
/**
|
|
2264
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2265
|
+
*/
|
|
2266
|
+
currency_type?: string;
|
|
2267
|
+
|
|
2268
|
+
/**
|
|
2269
|
+
* The decimal amount for the currency.
|
|
2270
|
+
*/
|
|
2271
|
+
value?: number;
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
export interface DimensionChoices {
|
|
2275
|
+
/**
|
|
2276
|
+
* Name of the dimension, such as Department.
|
|
2277
|
+
*/
|
|
2278
|
+
dimension_name?: string;
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* Display name of the selected dimension value.
|
|
2282
|
+
*/
|
|
2283
|
+
label?: string;
|
|
2284
|
+
|
|
2285
|
+
/**
|
|
2286
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
2287
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
2288
|
+
* `/job-codes/{id}/`.
|
|
2289
|
+
*/
|
|
2290
|
+
value?: string;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* ERP amortization schedule associated with this line.
|
|
2295
|
+
*/
|
|
2296
|
+
export interface GlAmortizationSchedule {
|
|
2297
|
+
/**
|
|
2298
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
2299
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
2300
|
+
*/
|
|
2301
|
+
accounting_integration_id?: string;
|
|
2302
|
+
|
|
2303
|
+
/**
|
|
2304
|
+
* Number of amortization periods.
|
|
2305
|
+
*/
|
|
2306
|
+
amortization_period?: number;
|
|
2307
|
+
|
|
2308
|
+
/**
|
|
2309
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
2310
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
2311
|
+
* indicate UTC. Null when not set.
|
|
2312
|
+
*/
|
|
2313
|
+
end_date?: string;
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* Object ID in the connected accounting system.
|
|
2317
|
+
*/
|
|
2318
|
+
gl_object_id?: string;
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
2322
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
2323
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
2324
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
2325
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
2326
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
2327
|
+
* when not set.
|
|
2328
|
+
*/
|
|
2329
|
+
gl_object_type?:
|
|
2330
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
2331
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
2332
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
2333
|
+
| 'GL_ACCOUNT'
|
|
2334
|
+
| 'GL_JOURNAL_ENTRY'
|
|
2335
|
+
| 'GL_POSTING_PERIOD'
|
|
2336
|
+
| 'GL_VENDOR'
|
|
2337
|
+
| 'GL_CUSTOMER'
|
|
2338
|
+
| 'GL_EMPLOYEE'
|
|
2339
|
+
| 'GL_SUBSIDIARY';
|
|
2340
|
+
|
|
2341
|
+
/**
|
|
2342
|
+
* Accounting object name.
|
|
2343
|
+
*/
|
|
2344
|
+
name?: string;
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
2348
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
2349
|
+
* indicate UTC. Null when not set.
|
|
2350
|
+
*/
|
|
2351
|
+
start_date?: string;
|
|
2352
|
+
|
|
2353
|
+
/**
|
|
2354
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
2355
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
2356
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
2357
|
+
*/
|
|
2358
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
2359
|
+
|
|
2360
|
+
/**
|
|
2361
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
2362
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
2363
|
+
* not available in this response.
|
|
2364
|
+
*/
|
|
2365
|
+
total_amortized_amount?: number;
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
2369
|
+
* schedule currency code is not available in this response.
|
|
2370
|
+
*/
|
|
2371
|
+
total_amount?: number;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* ERP amortization template for this line.
|
|
2376
|
+
*/
|
|
2377
|
+
export interface GlAmortizationTemplate {
|
|
2378
|
+
/**
|
|
2379
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
2380
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
2381
|
+
*/
|
|
2382
|
+
accounting_integration_id?: string;
|
|
2383
|
+
|
|
2384
|
+
/**
|
|
2385
|
+
* Object ID in the connected accounting system.
|
|
2386
|
+
*/
|
|
2387
|
+
gl_object_id?: string;
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
2391
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
2392
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
2393
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
2394
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
2395
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
2396
|
+
* when not set.
|
|
2397
|
+
*/
|
|
2398
|
+
gl_object_type?:
|
|
2399
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
2400
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
2401
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
2402
|
+
| 'GL_ACCOUNT'
|
|
2403
|
+
| 'GL_JOURNAL_ENTRY'
|
|
2404
|
+
| 'GL_POSTING_PERIOD'
|
|
2405
|
+
| 'GL_VENDOR'
|
|
2406
|
+
| 'GL_CUSTOMER'
|
|
2407
|
+
| 'GL_EMPLOYEE'
|
|
2408
|
+
| 'GL_SUBSIDIARY';
|
|
2409
|
+
|
|
2410
|
+
/**
|
|
2411
|
+
* Accounting object name.
|
|
2412
|
+
*/
|
|
2413
|
+
name?: string;
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2416
|
+
/**
|
|
2417
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
2418
|
+
*/
|
|
2419
|
+
export interface PrepaidAccount {
|
|
2420
|
+
/**
|
|
2421
|
+
* Account ID in the connected accounting system.
|
|
2422
|
+
*/
|
|
2423
|
+
account_id?: string;
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* Account code.
|
|
2427
|
+
*/
|
|
2428
|
+
code?: string;
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* Account name.
|
|
2432
|
+
*/
|
|
2433
|
+
name?: string;
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* IDs of custom dimensions required by this account.
|
|
2437
|
+
*/
|
|
2438
|
+
required_custom_dimensions?: Array<string>;
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* Whether this account requires a department.
|
|
2442
|
+
*/
|
|
2443
|
+
requires_department?: boolean;
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* Whether this account requires a work location.
|
|
2447
|
+
*/
|
|
2448
|
+
requires_work_location?: boolean;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
2452
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
2453
|
+
* when not set.
|
|
2454
|
+
*/
|
|
2455
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* Total tax amount for this line in the merchant currency.
|
|
2460
|
+
*/
|
|
2461
|
+
export interface TaxAmount {
|
|
2462
|
+
/**
|
|
2463
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2464
|
+
*/
|
|
2465
|
+
currency_type?: string;
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* The decimal amount for the currency.
|
|
2469
|
+
*/
|
|
2470
|
+
value?: number;
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
2476
|
+
* decimal string.
|
|
2477
|
+
*/
|
|
2478
|
+
export interface MerchantAmount {
|
|
2479
|
+
/**
|
|
2480
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2481
|
+
*/
|
|
2482
|
+
currency_type?: string;
|
|
2483
|
+
|
|
2484
|
+
/**
|
|
2485
|
+
* The decimal amount for the currency.
|
|
2486
|
+
*/
|
|
2487
|
+
value?: number;
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
* Amount paid to the vendor, in the payment currency. The `value` is a decimal
|
|
2492
|
+
* string.
|
|
2493
|
+
*/
|
|
2494
|
+
export interface PaymentAmount {
|
|
2495
|
+
/**
|
|
2496
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2497
|
+
*/
|
|
2498
|
+
currency_type?: string;
|
|
2499
|
+
|
|
2500
|
+
/**
|
|
2501
|
+
* The decimal amount for the currency.
|
|
2502
|
+
*/
|
|
2503
|
+
value?: number;
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Payment method fee, in the company's headquarters currency. The `value` is a
|
|
2508
|
+
* decimal string. Zero when there is no fee.
|
|
2509
|
+
*/
|
|
2510
|
+
export interface PaymentMethodFee {
|
|
2511
|
+
/**
|
|
2512
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2513
|
+
*/
|
|
2514
|
+
currency_type?: string;
|
|
2515
|
+
|
|
2516
|
+
/**
|
|
2517
|
+
* The decimal amount for the currency.
|
|
2518
|
+
*/
|
|
2519
|
+
value?: number;
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
* Vendor details. Expand with `bills.read` and `finance-vendors.read`.
|
|
2524
|
+
*
|
|
2525
|
+
* Expandable field
|
|
2526
|
+
*/
|
|
2527
|
+
export interface Vendor {
|
|
2528
|
+
/**
|
|
2529
|
+
* Identifier field
|
|
2530
|
+
*/
|
|
2531
|
+
id: string;
|
|
2532
|
+
|
|
2533
|
+
/**
|
|
2534
|
+
* Record creation date
|
|
2535
|
+
*/
|
|
2536
|
+
created_at: string;
|
|
2537
|
+
|
|
2538
|
+
/**
|
|
2539
|
+
* Record update date
|
|
2540
|
+
*/
|
|
2541
|
+
updated_at: string;
|
|
2542
|
+
|
|
2543
|
+
/**
|
|
2544
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
2545
|
+
* references.
|
|
2546
|
+
*/
|
|
2547
|
+
is_archived?: boolean;
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
2551
|
+
*/
|
|
2552
|
+
logo?: string;
|
|
2553
|
+
|
|
2554
|
+
/**
|
|
2555
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
2556
|
+
* alternate names.
|
|
2557
|
+
*/
|
|
2558
|
+
name?: string;
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
export interface BillListParams {
|
|
2563
|
+
cursor?: string;
|
|
2564
|
+
|
|
2565
|
+
expand?: string;
|
|
2566
|
+
|
|
2567
|
+
filter?: string;
|
|
2568
|
+
|
|
2569
|
+
/**
|
|
2570
|
+
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
2571
|
+
*/
|
|
2572
|
+
limit?: number;
|
|
2573
|
+
|
|
2574
|
+
order_by?: string;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
export interface BillRetrieveParams {
|
|
2578
|
+
expand?: string;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
export interface BillUpdateParams {
|
|
2582
|
+
/**
|
|
2583
|
+
* Full list of lines the bill should have. Lines with an `id` are updated, lines
|
|
2584
|
+
* without one are added, and lines left out are deleted. Line amounts must add up
|
|
2585
|
+
* to the bill's merchant amount.
|
|
2586
|
+
*/
|
|
2587
|
+
line_items?: Array<BillUpdateParams.LineItem>;
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
export namespace BillUpdateParams {
|
|
2591
|
+
/**
|
|
2592
|
+
* PATCH body for a bill line item. `amount` and `tax_amount` are decimal strings,
|
|
2593
|
+
* not Currency objects.
|
|
2594
|
+
*/
|
|
2595
|
+
export interface LineItem {
|
|
2596
|
+
/**
|
|
2597
|
+
* Amount of this split, in the merchant currency, as a decimal string.
|
|
2598
|
+
*/
|
|
2599
|
+
amount: string;
|
|
2600
|
+
|
|
2601
|
+
/**
|
|
2602
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
2603
|
+
* `/finance-categories/{id}/`.
|
|
2604
|
+
*/
|
|
2605
|
+
category_id: string;
|
|
2606
|
+
|
|
2607
|
+
/**
|
|
2608
|
+
* ID of a line already on the bill. Send it to update that line and keep its ID.
|
|
2609
|
+
* Omit it to create a new line; the response includes the new line's ID.
|
|
2610
|
+
*/
|
|
2611
|
+
id?: string;
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* Whether this line is amortized.
|
|
2615
|
+
*/
|
|
2616
|
+
amortized?: boolean;
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
2620
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
2621
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each value is an ID:
|
|
2622
|
+
* `/departments/{id}/` for `DEPARTMENT`, `/work-locations/{id}/` for
|
|
2623
|
+
* `WORK_LOCATION`, and `/job-codes/{id}/` for a custom job dimension.
|
|
2624
|
+
*/
|
|
2625
|
+
dimension_choices?: { [key: string]: string };
|
|
2626
|
+
|
|
2627
|
+
/**
|
|
2628
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
2629
|
+
*/
|
|
2630
|
+
end_date?: string;
|
|
2631
|
+
|
|
2632
|
+
/**
|
|
2633
|
+
* ERP amortization template for this line.
|
|
2634
|
+
*/
|
|
2635
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
2636
|
+
|
|
2637
|
+
/**
|
|
2638
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
2639
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
2640
|
+
* set.
|
|
2641
|
+
*/
|
|
2642
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
2643
|
+
|
|
2644
|
+
/**
|
|
2645
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
2646
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
2647
|
+
*/
|
|
2648
|
+
gl_customer?: string;
|
|
2649
|
+
|
|
2650
|
+
/**
|
|
2651
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
2652
|
+
* available to retrieve this accounting tax code.
|
|
2653
|
+
*/
|
|
2654
|
+
gl_tax_code?: string;
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* Memo entered on this split.
|
|
2658
|
+
*/
|
|
2659
|
+
memo?: string;
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
2663
|
+
*/
|
|
2664
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
2668
|
+
*/
|
|
2669
|
+
start_date?: string;
|
|
2670
|
+
|
|
2671
|
+
/**
|
|
2672
|
+
* Total tax amount for this line in the merchant currency, as a decimal string.
|
|
2673
|
+
*/
|
|
2674
|
+
tax_amount?: string;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
export namespace LineItem {
|
|
2678
|
+
/**
|
|
2679
|
+
* ERP amortization template for this line.
|
|
2680
|
+
*/
|
|
2681
|
+
export interface GlAmortizationTemplate {
|
|
2682
|
+
/**
|
|
2683
|
+
* Rippling ID of the accounting integration that owns this template. No public
|
|
2684
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
2685
|
+
*/
|
|
2686
|
+
accounting_integration_id?: string;
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* Object ID of the amortization template in the connected accounting system.
|
|
2690
|
+
*/
|
|
2691
|
+
gl_object_id?: string;
|
|
2692
|
+
|
|
2693
|
+
/**
|
|
2694
|
+
* Amortization template name.
|
|
2695
|
+
*/
|
|
2696
|
+
name?: string;
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
2701
|
+
*/
|
|
2702
|
+
export interface PrepaidAccount {
|
|
2703
|
+
/**
|
|
2704
|
+
* Account ID in the connected accounting system.
|
|
2705
|
+
*/
|
|
2706
|
+
account_id?: string;
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* Account name.
|
|
2710
|
+
*/
|
|
2711
|
+
name?: string;
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
2715
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
2716
|
+
* when not set.
|
|
2717
|
+
*/
|
|
2718
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
1650
2721
|
}
|
|
1651
2722
|
|
|
1652
2723
|
export declare namespace Bills {
|
|
1653
2724
|
export {
|
|
1654
2725
|
type BillListResponse as BillListResponse,
|
|
1655
2726
|
type BillRetrieveResponse as BillRetrieveResponse,
|
|
2727
|
+
type BillUpdateResponse as BillUpdateResponse,
|
|
1656
2728
|
type BillListResponsesPageCursorURL as BillListResponsesPageCursorURL,
|
|
1657
2729
|
type BillListParams as BillListParams,
|
|
1658
2730
|
type BillRetrieveParams as BillRetrieveParams,
|
|
2731
|
+
type BillUpdateParams as BillUpdateParams,
|
|
1659
2732
|
};
|
|
1660
2733
|
}
|