@rippling/rippling-sdk 0.2.0-alpha.109 → 0.2.0-alpha.111
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 +69 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +69 -7
- package/client.d.ts.map +1 -1
- package/client.js +69 -3
- package/client.js.map +1 -1
- package/client.mjs +69 -3
- package/client.mjs.map +1 -1
- package/core/platform/custom-objects/manager.d.mts +43 -23
- package/core/platform/custom-objects/manager.d.mts.map +1 -1
- package/core/platform/custom-objects/manager.d.ts +43 -23
- package/core/platform/custom-objects/manager.d.ts.map +1 -1
- package/core/platform/custom-objects/manager.js +21 -17
- package/core/platform/custom-objects/manager.js.map +1 -1
- package/core/platform/custom-objects/manager.mjs +21 -17
- package/core/platform/custom-objects/manager.mjs.map +1 -1
- package/core/platform/custom-objects.d.mts +1 -1
- package/core/platform/custom-objects.d.mts.map +1 -1
- package/core/platform/custom-objects.d.ts +1 -1
- package/core/platform/custom-objects.d.ts.map +1 -1
- package/core/platform/custom-objects.js.map +1 -1
- package/core/platform/custom-objects.mjs.map +1 -1
- package/examples/manifest/acp-agent/acp-agent.ts +27 -23
- package/index.d.mts +5 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -1
- package/index.js +11 -1
- package/index.js.map +1 -1
- package/index.mjs +5 -0
- package/index.mjs.map +1 -1
- package/lib/manifest/acp-agent.d.mts +1 -1
- package/lib/manifest/acp-agent.d.mts.map +1 -1
- package/lib/manifest/acp-agent.d.ts +1 -1
- package/lib/manifest/acp-agent.d.ts.map +1 -1
- package/lib/manifest/acp-agent.js +6 -0
- package/lib/manifest/acp-agent.js.map +1 -1
- package/lib/manifest/acp-agent.mjs +6 -0
- package/lib/manifest/acp-agent.mjs.map +1 -1
- package/lib/manifest/composition.d.mts +21 -0
- package/lib/manifest/composition.d.mts.map +1 -0
- package/lib/manifest/composition.d.ts +21 -0
- package/lib/manifest/composition.d.ts.map +1 -0
- package/lib/manifest/composition.js +103 -0
- package/lib/manifest/composition.js.map +1 -0
- package/lib/manifest/composition.mjs +99 -0
- package/lib/manifest/composition.mjs.map +1 -0
- package/lib/manifest/definitions/_object-records.d.mts +23 -0
- package/lib/manifest/definitions/_object-records.d.mts.map +1 -0
- package/lib/manifest/definitions/_object-records.d.ts +23 -0
- package/lib/manifest/definitions/_object-records.d.ts.map +1 -0
- package/lib/manifest/definitions/_object-records.js +153 -0
- package/lib/manifest/definitions/_object-records.js.map +1 -0
- package/lib/manifest/definitions/_object-records.mjs +149 -0
- package/lib/manifest/definitions/_object-records.mjs.map +1 -0
- package/lib/manifest/definitions/action.d.mts +7 -0
- package/lib/manifest/definitions/action.d.mts.map +1 -0
- package/lib/manifest/definitions/action.d.ts +7 -0
- package/lib/manifest/definitions/action.d.ts.map +1 -0
- package/lib/manifest/definitions/action.js +25 -0
- package/lib/manifest/definitions/action.js.map +1 -0
- package/lib/manifest/definitions/action.mjs +22 -0
- package/lib/manifest/definitions/action.mjs.map +1 -0
- package/lib/manifest/definitions/agent.d.mts +51 -0
- package/lib/manifest/definitions/agent.d.mts.map +1 -0
- package/lib/manifest/definitions/agent.d.ts +51 -0
- package/lib/manifest/definitions/agent.d.ts.map +1 -0
- package/lib/manifest/definitions/agent.js +65 -0
- package/lib/manifest/definitions/agent.js.map +1 -0
- package/lib/manifest/definitions/agent.mjs +59 -0
- package/lib/manifest/definitions/agent.mjs.map +1 -0
- package/lib/manifest/definitions/app.d.mts +3 -0
- package/lib/manifest/definitions/app.d.mts.map +1 -0
- package/lib/manifest/definitions/app.d.ts +3 -0
- package/lib/manifest/definitions/app.d.ts.map +1 -0
- package/lib/manifest/definitions/app.js +14 -0
- package/lib/manifest/definitions/app.js.map +1 -0
- package/lib/manifest/definitions/app.mjs +11 -0
- package/lib/manifest/definitions/app.mjs.map +1 -0
- package/lib/manifest/definitions/category.d.mts +9 -0
- package/lib/manifest/definitions/category.d.mts.map +1 -0
- package/lib/manifest/definitions/category.d.ts +9 -0
- package/lib/manifest/definitions/category.d.ts.map +1 -0
- package/lib/manifest/definitions/category.js +27 -0
- package/lib/manifest/definitions/category.js.map +1 -0
- package/lib/manifest/definitions/category.mjs +23 -0
- package/lib/manifest/definitions/category.mjs.map +1 -0
- package/lib/manifest/definitions/component.d.mts +101 -0
- package/lib/manifest/definitions/component.d.mts.map +1 -0
- package/lib/manifest/definitions/component.d.ts +101 -0
- package/lib/manifest/definitions/component.d.ts.map +1 -0
- package/lib/manifest/definitions/component.js +106 -0
- package/lib/manifest/definitions/component.js.map +1 -0
- package/lib/manifest/definitions/component.mjs +97 -0
- package/lib/manifest/definitions/component.mjs.map +1 -0
- package/lib/manifest/definitions/custom-field-section.d.mts +13 -0
- package/lib/manifest/definitions/custom-field-section.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-field-section.d.ts +13 -0
- package/lib/manifest/definitions/custom-field-section.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-field-section.js +15 -0
- package/lib/manifest/definitions/custom-field-section.js.map +1 -0
- package/lib/manifest/definitions/custom-field-section.mjs +12 -0
- package/lib/manifest/definitions/custom-field-section.mjs.map +1 -0
- package/lib/manifest/definitions/custom-field.d.mts +10 -0
- package/lib/manifest/definitions/custom-field.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-field.d.ts +10 -0
- package/lib/manifest/definitions/custom-field.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-field.js +18 -0
- package/lib/manifest/definitions/custom-field.js.map +1 -0
- package/lib/manifest/definitions/custom-field.mjs +15 -0
- package/lib/manifest/definitions/custom-field.mjs.map +1 -0
- package/lib/manifest/definitions/custom-object.d.mts +162 -0
- package/lib/manifest/definitions/custom-object.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-object.d.ts +162 -0
- package/lib/manifest/definitions/custom-object.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-object.js +412 -0
- package/lib/manifest/definitions/custom-object.js.map +1 -0
- package/lib/manifest/definitions/custom-object.mjs +386 -0
- package/lib/manifest/definitions/custom-object.mjs.map +1 -0
- package/lib/manifest/definitions/custom-skill.d.mts +8 -0
- package/lib/manifest/definitions/custom-skill.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-skill.d.ts +8 -0
- package/lib/manifest/definitions/custom-skill.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-skill.js +15 -0
- package/lib/manifest/definitions/custom-skill.js.map +1 -0
- package/lib/manifest/definitions/custom-skill.mjs +12 -0
- package/lib/manifest/definitions/custom-skill.mjs.map +1 -0
- package/lib/manifest/definitions/field-section.d.mts +7 -0
- package/lib/manifest/definitions/field-section.d.mts.map +1 -0
- package/lib/manifest/definitions/field-section.d.ts +7 -0
- package/lib/manifest/definitions/field-section.d.ts.map +1 -0
- package/lib/manifest/definitions/field-section.js +16 -0
- package/lib/manifest/definitions/field-section.js.map +1 -0
- package/lib/manifest/definitions/field-section.mjs +13 -0
- package/lib/manifest/definitions/field-section.mjs.map +1 -0
- package/lib/manifest/definitions/field.d.mts +38 -0
- package/lib/manifest/definitions/field.d.mts.map +1 -0
- package/lib/manifest/definitions/field.d.ts +38 -0
- package/lib/manifest/definitions/field.d.ts.map +1 -0
- package/lib/manifest/definitions/field.js +50 -0
- package/lib/manifest/definitions/field.js.map +1 -0
- package/lib/manifest/definitions/field.mjs +45 -0
- package/lib/manifest/definitions/field.mjs.map +1 -0
- package/lib/manifest/definitions/function.d.mts +61 -0
- package/lib/manifest/definitions/function.d.mts.map +1 -0
- package/lib/manifest/definitions/function.d.ts +61 -0
- package/lib/manifest/definitions/function.d.ts.map +1 -0
- package/lib/manifest/definitions/function.js +79 -0
- package/lib/manifest/definitions/function.js.map +1 -0
- package/lib/manifest/definitions/function.mjs +73 -0
- package/lib/manifest/definitions/function.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +22 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -0
- package/lib/manifest/definitions/index.d.ts +22 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -0
- package/lib/manifest/definitions/index.js +64 -0
- package/lib/manifest/definitions/index.js.map +1 -0
- package/lib/manifest/definitions/index.mjs +22 -0
- package/lib/manifest/definitions/index.mjs.map +1 -0
- package/lib/manifest/definitions/list-view.d.mts +9 -0
- package/lib/manifest/definitions/list-view.d.mts.map +1 -0
- package/lib/manifest/definitions/list-view.d.ts +9 -0
- package/lib/manifest/definitions/list-view.d.ts.map +1 -0
- package/lib/manifest/definitions/list-view.js +25 -0
- package/lib/manifest/definitions/list-view.js.map +1 -0
- package/lib/manifest/definitions/list-view.mjs +22 -0
- package/lib/manifest/definitions/list-view.mjs.map +1 -0
- package/lib/manifest/definitions/object-search-config.d.mts +13 -0
- package/lib/manifest/definitions/object-search-config.d.mts.map +1 -0
- package/lib/manifest/definitions/object-search-config.d.ts +13 -0
- package/lib/manifest/definitions/object-search-config.d.ts.map +1 -0
- package/lib/manifest/definitions/object-search-config.js +25 -0
- package/lib/manifest/definitions/object-search-config.js.map +1 -0
- package/lib/manifest/definitions/object-search-config.mjs +22 -0
- package/lib/manifest/definitions/object-search-config.mjs.map +1 -0
- package/lib/manifest/definitions/object-settings.d.mts +24 -0
- package/lib/manifest/definitions/object-settings.d.mts.map +1 -0
- package/lib/manifest/definitions/object-settings.d.ts +24 -0
- package/lib/manifest/definitions/object-settings.d.ts.map +1 -0
- package/lib/manifest/definitions/object-settings.js +32 -0
- package/lib/manifest/definitions/object-settings.js.map +1 -0
- package/lib/manifest/definitions/object-settings.mjs +29 -0
- package/lib/manifest/definitions/object-settings.mjs.map +1 -0
- package/lib/manifest/definitions/page-layout.d.mts +21 -0
- package/lib/manifest/definitions/page-layout.d.mts.map +1 -0
- package/lib/manifest/definitions/page-layout.d.ts +21 -0
- package/lib/manifest/definitions/page-layout.d.ts.map +1 -0
- package/lib/manifest/definitions/page-layout.js +155 -0
- package/lib/manifest/definitions/page-layout.js.map +1 -0
- package/lib/manifest/definitions/page-layout.mjs +152 -0
- package/lib/manifest/definitions/page-layout.mjs.map +1 -0
- package/lib/manifest/definitions/page.d.mts +8 -0
- package/lib/manifest/definitions/page.d.mts.map +1 -0
- package/lib/manifest/definitions/page.d.ts +8 -0
- package/lib/manifest/definitions/page.d.ts.map +1 -0
- package/lib/manifest/definitions/page.js +15 -0
- package/lib/manifest/definitions/page.js.map +1 -0
- package/lib/manifest/definitions/page.mjs +12 -0
- package/lib/manifest/definitions/page.mjs.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.d.mts +24 -0
- package/lib/manifest/definitions/record-triggered-flow.d.mts.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.d.ts +24 -0
- package/lib/manifest/definitions/record-triggered-flow.d.ts.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.js +28 -0
- package/lib/manifest/definitions/record-triggered-flow.js.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.mjs +25 -0
- package/lib/manifest/definitions/record-triggered-flow.mjs.map +1 -0
- package/lib/manifest/definitions/validation.d.mts +8 -0
- package/lib/manifest/definitions/validation.d.mts.map +1 -0
- package/lib/manifest/definitions/validation.d.ts +8 -0
- package/lib/manifest/definitions/validation.d.ts.map +1 -0
- package/lib/manifest/definitions/validation.js +24 -0
- package/lib/manifest/definitions/validation.js.map +1 -0
- package/lib/manifest/definitions/validation.mjs +21 -0
- package/lib/manifest/definitions/validation.mjs.map +1 -0
- package/lib/manifest/definitions/workflow.d.mts +10 -0
- package/lib/manifest/definitions/workflow.d.mts.map +1 -0
- package/lib/manifest/definitions/workflow.d.ts +10 -0
- package/lib/manifest/definitions/workflow.d.ts.map +1 -0
- package/lib/manifest/definitions/workflow.js +33 -0
- package/lib/manifest/definitions/workflow.js.map +1 -0
- package/lib/manifest/definitions/workflow.mjs +29 -0
- package/lib/manifest/definitions/workflow.mjs.map +1 -0
- package/lib/manifest/index.d.mts +3 -0
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +3 -0
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +4 -0
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +3 -0
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/package-manifest.d.mts +17 -0
- package/lib/manifest/package-manifest.d.mts.map +1 -0
- package/lib/manifest/package-manifest.d.ts +17 -0
- package/lib/manifest/package-manifest.d.ts.map +1 -0
- package/lib/manifest/package-manifest.js +26 -0
- package/lib/manifest/package-manifest.js.map +1 -0
- package/lib/manifest/package-manifest.mjs +23 -0
- package/lib/manifest/package-manifest.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/activity-log.d.mts +1 -1
- package/resources/activity-log.d.ts +1 -1
- package/resources/activity-log.js +1 -1
- package/resources/activity-log.mjs +1 -1
- package/resources/agents/sessions/messages.d.mts +10 -1
- package/resources/agents/sessions/messages.d.mts.map +1 -1
- package/resources/agents/sessions/messages.d.ts +10 -1
- package/resources/agents/sessions/messages.d.ts.map +1 -1
- package/resources/agents/sessions/sessions.d.mts +30 -3
- package/resources/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/agents/sessions/sessions.d.ts +30 -3
- package/resources/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/agents/sessions/sessions.js.map +1 -1
- package/resources/agents/sessions/sessions.mjs.map +1 -1
- package/resources/bills.d.mts +1343 -0
- package/resources/bills.d.mts.map +1 -0
- package/resources/bills.d.ts +1343 -0
- package/resources/bills.d.ts.map +1 -0
- package/resources/bills.js +214 -0
- package/resources/bills.js.map +1 -0
- package/resources/bills.mjs +210 -0
- package/resources/bills.mjs.map +1 -0
- package/resources/card-transactions.d.mts +607 -49
- package/resources/card-transactions.d.mts.map +1 -1
- package/resources/card-transactions.d.ts +607 -49
- package/resources/card-transactions.d.ts.map +1 -1
- package/resources/card-transactions.js +73 -12
- package/resources/card-transactions.js.map +1 -1
- package/resources/card-transactions.mjs +73 -12
- package/resources/card-transactions.mjs.map +1 -1
- package/resources/custom-objects/custom-objects.d.mts +39 -3
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +39 -3
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +38 -2
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +38 -2
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/fields.d.mts +44 -0
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +44 -0
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/resources/custom-objects/fields.js +44 -0
- package/resources/custom-objects/fields.js.map +1 -1
- package/resources/custom-objects/fields.mjs +44 -0
- package/resources/custom-objects/fields.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +2 -1
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +2 -1
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/index.js +5 -3
- package/resources/custom-objects/index.js.map +1 -1
- package/resources/custom-objects/index.mjs +2 -1
- package/resources/custom-objects/index.mjs.map +1 -1
- package/resources/custom-objects/list-views/capabilities.d.mts +63 -0
- package/resources/custom-objects/list-views/capabilities.d.mts.map +1 -0
- package/resources/custom-objects/list-views/capabilities.d.ts +63 -0
- package/resources/custom-objects/list-views/capabilities.d.ts.map +1 -0
- package/resources/custom-objects/list-views/capabilities.js +48 -0
- package/resources/custom-objects/list-views/capabilities.js.map +1 -0
- package/resources/custom-objects/list-views/capabilities.mjs +44 -0
- package/resources/custom-objects/list-views/capabilities.mjs.map +1 -0
- package/resources/custom-objects/list-views/default.d.mts +69 -0
- package/resources/custom-objects/list-views/default.d.mts.map +1 -0
- package/resources/custom-objects/list-views/default.d.ts +69 -0
- package/resources/custom-objects/list-views/default.d.ts.map +1 -0
- package/resources/custom-objects/list-views/default.js +59 -0
- package/resources/custom-objects/list-views/default.js.map +1 -0
- package/resources/custom-objects/list-views/default.mjs +55 -0
- package/resources/custom-objects/list-views/default.mjs.map +1 -0
- package/resources/custom-objects/list-views/index.d.mts +4 -0
- package/resources/custom-objects/list-views/index.d.mts.map +1 -0
- package/resources/custom-objects/list-views/index.d.ts +4 -0
- package/resources/custom-objects/list-views/index.d.ts.map +1 -0
- package/resources/custom-objects/list-views/index.js +11 -0
- package/resources/custom-objects/list-views/index.js.map +1 -0
- package/resources/custom-objects/list-views/index.mjs +5 -0
- package/resources/custom-objects/list-views/index.mjs.map +1 -0
- package/resources/custom-objects/list-views/list-views.d.mts +806 -0
- package/resources/custom-objects/list-views/list-views.d.mts.map +1 -0
- package/resources/custom-objects/list-views/list-views.d.ts +806 -0
- package/resources/custom-objects/list-views/list-views.d.ts.map +1 -0
- package/resources/custom-objects/list-views/list-views.js +314 -0
- package/resources/custom-objects/list-views/list-views.js.map +1 -0
- package/resources/custom-objects/list-views/list-views.mjs +309 -0
- package/resources/custom-objects/list-views/list-views.mjs.map +1 -0
- package/resources/custom-objects/list-views.d.mts +2 -0
- package/resources/custom-objects/list-views.d.mts.map +1 -0
- package/resources/custom-objects/list-views.d.ts +2 -0
- package/resources/custom-objects/list-views.d.ts.map +1 -0
- package/resources/custom-objects/list-views.js +6 -0
- package/resources/custom-objects/list-views.js.map +1 -0
- package/resources/custom-objects/list-views.mjs +3 -0
- package/resources/custom-objects/list-views.mjs.map +1 -0
- package/resources/custom-objects/records/capabilities.d.mts +61 -0
- package/resources/custom-objects/records/capabilities.d.mts.map +1 -0
- package/resources/custom-objects/records/capabilities.d.ts +61 -0
- package/resources/custom-objects/records/capabilities.d.ts.map +1 -0
- package/resources/custom-objects/records/capabilities.js +47 -0
- package/resources/custom-objects/records/capabilities.js.map +1 -0
- package/resources/custom-objects/records/capabilities.mjs +43 -0
- package/resources/custom-objects/records/capabilities.mjs.map +1 -0
- package/resources/custom-objects/records/index.d.mts +3 -0
- package/resources/custom-objects/records/index.d.mts.map +1 -0
- package/resources/custom-objects/records/index.d.ts +3 -0
- package/resources/custom-objects/records/index.d.ts.map +1 -0
- package/resources/custom-objects/records/index.js +9 -0
- package/resources/custom-objects/records/index.js.map +1 -0
- package/resources/custom-objects/records/index.mjs +4 -0
- package/resources/custom-objects/records/index.mjs.map +1 -0
- package/resources/custom-objects/records/records.d.mts +787 -0
- package/resources/custom-objects/records/records.d.mts.map +1 -0
- package/resources/custom-objects/records/records.d.ts +787 -0
- package/resources/custom-objects/records/records.d.ts.map +1 -0
- package/resources/custom-objects/records/records.js +543 -0
- package/resources/custom-objects/records/records.js.map +1 -0
- package/resources/custom-objects/records/records.mjs +538 -0
- package/resources/custom-objects/records/records.mjs.map +1 -0
- package/resources/custom-objects/records.d.mts +1 -561
- package/resources/custom-objects/records.d.mts.map +1 -1
- package/resources/custom-objects/records.d.ts +1 -561
- package/resources/custom-objects/records.d.ts.map +1 -1
- package/resources/custom-objects/records.js +2 -444
- package/resources/custom-objects/records.js.map +1 -1
- package/resources/custom-objects/records.mjs +1 -442
- package/resources/custom-objects/records.mjs.map +1 -1
- package/resources/devices.d.mts +2 -2
- package/resources/devices.d.mts.map +1 -1
- package/resources/devices.d.ts +2 -2
- package/resources/devices.d.ts.map +1 -1
- package/resources/draft-transitions.d.mts +241 -307
- package/resources/draft-transitions.d.mts.map +1 -1
- package/resources/draft-transitions.d.ts +241 -307
- package/resources/draft-transitions.d.ts.map +1 -1
- package/resources/draft-transitions.js +49 -23
- package/resources/draft-transitions.js.map +1 -1
- package/resources/draft-transitions.mjs +49 -23
- package/resources/draft-transitions.mjs.map +1 -1
- package/resources/employee-documents.d.mts +2 -2
- package/resources/employee-documents.d.ts +2 -2
- package/resources/{spend-categories.d.mts → finance-categories.d.mts} +21 -18
- package/resources/finance-categories.d.mts.map +1 -0
- package/resources/{spend-categories.d.ts → finance-categories.d.ts} +21 -18
- package/resources/finance-categories.d.ts.map +1 -0
- package/resources/{spend-categories.js → finance-categories.js} +14 -11
- package/resources/finance-categories.js.map +1 -0
- package/resources/{spend-categories.mjs → finance-categories.mjs} +12 -9
- package/resources/finance-categories.mjs.map +1 -0
- package/resources/finance-vendors.d.mts +154 -0
- package/resources/finance-vendors.d.mts.map +1 -0
- package/resources/finance-vendors.d.ts +154 -0
- package/resources/finance-vendors.d.ts.map +1 -0
- package/resources/finance-vendors.js +87 -0
- package/resources/finance-vendors.js.map +1 -0
- package/resources/finance-vendors.mjs +83 -0
- package/resources/finance-vendors.mjs.map +1 -0
- package/resources/functions/executions.d.mts +4 -1
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +4 -1
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js +4 -1
- package/resources/functions/executions.js.map +1 -1
- package/resources/functions/executions.mjs +4 -1
- package/resources/functions/executions.mjs.map +1 -1
- package/resources/functions/functions.d.mts +192 -4
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +192 -4
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +72 -4
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +72 -4
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/hire-requirements.d.mts +98 -9
- package/resources/hire-requirements.d.mts.map +1 -1
- package/resources/hire-requirements.d.ts +98 -9
- package/resources/hire-requirements.d.ts.map +1 -1
- package/resources/hire-requirements.js +23 -4
- package/resources/hire-requirements.js.map +1 -1
- package/resources/hire-requirements.mjs +23 -4
- package/resources/hire-requirements.mjs.map +1 -1
- package/resources/hires.d.mts +1636 -510
- package/resources/hires.d.mts.map +1 -1
- package/resources/hires.d.ts +1636 -510
- package/resources/hires.d.ts.map +1 -1
- package/resources/hires.js +10 -4
- package/resources/hires.js.map +1 -1
- package/resources/hires.mjs +10 -4
- package/resources/hires.mjs.map +1 -1
- package/resources/index.d.mts +11 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +21 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -1
- package/resources/index.mjs.map +1 -1
- package/resources/leave-requests.d.mts +11 -2
- package/resources/leave-requests.d.mts.map +1 -1
- package/resources/leave-requests.d.ts +11 -2
- package/resources/leave-requests.d.ts.map +1 -1
- package/resources/leave-requests.js +11 -2
- package/resources/leave-requests.js.map +1 -1
- package/resources/leave-requests.mjs +11 -2
- package/resources/leave-requests.mjs.map +1 -1
- package/resources/object-categories.d.mts +2 -1
- package/resources/object-categories.d.mts.map +1 -1
- package/resources/object-categories.d.ts +2 -1
- package/resources/object-categories.d.ts.map +1 -1
- package/resources/object-categories.js +2 -1
- package/resources/object-categories.js.map +1 -1
- package/resources/object-categories.mjs +2 -1
- package/resources/object-categories.mjs.map +1 -1
- package/resources/package-components/extract.d.mts +121 -0
- package/resources/package-components/extract.d.mts.map +1 -0
- package/resources/package-components/extract.d.ts +121 -0
- package/resources/package-components/extract.d.ts.map +1 -0
- package/resources/package-components/extract.js +69 -0
- package/resources/package-components/extract.js.map +1 -0
- package/resources/package-components/extract.mjs +65 -0
- package/resources/package-components/extract.mjs.map +1 -0
- package/resources/package-components/index.d.mts +4 -0
- package/resources/package-components/index.d.mts.map +1 -0
- package/resources/package-components/index.d.ts +4 -0
- package/resources/package-components/index.d.ts.map +1 -0
- package/resources/package-components/index.js +11 -0
- package/resources/package-components/index.js.map +1 -0
- package/resources/package-components/index.mjs +5 -0
- package/resources/package-components/index.mjs.map +1 -0
- package/resources/package-components/package-components.d.mts +99 -0
- package/resources/package-components/package-components.d.mts.map +1 -0
- package/resources/package-components/package-components.d.ts +99 -0
- package/resources/package-components/package-components.d.ts.map +1 -0
- package/resources/package-components/package-components.js +63 -0
- package/resources/package-components/package-components.js.map +1 -0
- package/resources/package-components/package-components.mjs +58 -0
- package/resources/package-components/package-components.mjs.map +1 -0
- package/resources/package-components/types.d.mts +56 -0
- package/resources/package-components/types.d.mts.map +1 -0
- package/resources/package-components/types.d.ts +56 -0
- package/resources/package-components/types.d.ts.map +1 -0
- package/resources/package-components/types.js +40 -0
- package/resources/package-components/types.js.map +1 -0
- package/resources/package-components/types.mjs +36 -0
- package/resources/package-components/types.mjs.map +1 -0
- package/resources/package-components.d.mts +2 -0
- package/resources/package-components.d.mts.map +1 -0
- package/resources/package-components.d.ts +2 -0
- package/resources/package-components.d.ts.map +1 -0
- package/resources/package-components.js +6 -0
- package/resources/package-components.js.map +1 -0
- package/resources/package-components.mjs +3 -0
- package/resources/package-components.mjs.map +1 -0
- package/resources/package-installs.d.mts +96 -9
- package/resources/package-installs.d.mts.map +1 -1
- package/resources/package-installs.d.ts +96 -9
- package/resources/package-installs.d.ts.map +1 -1
- package/resources/package-installs.js +20 -3
- package/resources/package-installs.js.map +1 -1
- package/resources/package-installs.mjs +20 -3
- package/resources/package-installs.mjs.map +1 -1
- package/resources/package-managed-installs.d.mts +104 -7
- package/resources/package-managed-installs.d.mts.map +1 -1
- package/resources/package-managed-installs.d.ts +104 -7
- package/resources/package-managed-installs.d.ts.map +1 -1
- package/resources/package-managed-installs.js +22 -3
- package/resources/package-managed-installs.js.map +1 -1
- package/resources/package-managed-installs.mjs +22 -3
- package/resources/package-managed-installs.mjs.map +1 -1
- package/resources/package-manifests/index.d.mts +4 -0
- package/resources/package-manifests/index.d.mts.map +1 -0
- package/resources/package-manifests/index.d.ts +4 -0
- package/resources/package-manifests/index.d.ts.map +1 -0
- package/resources/package-manifests/index.js +11 -0
- package/resources/package-manifests/index.js.map +1 -0
- package/resources/package-manifests/index.mjs +5 -0
- package/resources/package-manifests/index.mjs.map +1 -0
- package/resources/package-manifests/package-manifests.d.mts +14 -0
- package/resources/package-manifests/package-manifests.d.mts.map +1 -0
- package/resources/package-manifests/package-manifests.d.ts +14 -0
- package/resources/package-manifests/package-manifests.d.ts.map +1 -0
- package/resources/package-manifests/package-manifests.js +21 -0
- package/resources/package-manifests/package-manifests.js.map +1 -0
- package/resources/package-manifests/package-manifests.mjs +16 -0
- package/resources/package-manifests/package-manifests.mjs.map +1 -0
- package/resources/package-manifests/packages/index.d.mts +3 -0
- package/resources/package-manifests/packages/index.d.mts.map +1 -0
- package/resources/package-manifests/packages/index.d.ts +3 -0
- package/resources/package-manifests/packages/index.d.ts.map +1 -0
- package/resources/package-manifests/packages/index.js +9 -0
- package/resources/package-manifests/packages/index.js.map +1 -0
- package/resources/package-manifests/packages/index.mjs +4 -0
- package/resources/package-manifests/packages/index.mjs.map +1 -0
- package/resources/package-manifests/packages/packages.d.mts +10 -0
- package/resources/package-manifests/packages/packages.d.mts.map +1 -0
- package/resources/package-manifests/packages/packages.d.ts +10 -0
- package/resources/package-manifests/packages/packages.d.ts.map +1 -0
- package/resources/package-manifests/packages/packages.js +17 -0
- package/resources/package-manifests/packages/packages.js.map +1 -0
- package/resources/package-manifests/packages/packages.mjs +12 -0
- package/resources/package-manifests/packages/packages.mjs.map +1 -0
- package/resources/package-manifests/packages/versions.d.mts +199 -0
- package/resources/package-manifests/packages/versions.d.mts.map +1 -0
- package/resources/package-manifests/packages/versions.d.ts +199 -0
- package/resources/package-manifests/packages/versions.d.ts.map +1 -0
- package/resources/package-manifests/packages/versions.js +68 -0
- package/resources/package-manifests/packages/versions.js.map +1 -0
- package/resources/package-manifests/packages/versions.mjs +64 -0
- package/resources/package-manifests/packages/versions.mjs.map +1 -0
- package/resources/package-manifests/packages.d.mts +2 -0
- package/resources/package-manifests/packages.d.mts.map +1 -0
- package/resources/package-manifests/packages.d.ts +2 -0
- package/resources/package-manifests/packages.d.ts.map +1 -0
- package/resources/package-manifests/packages.js +6 -0
- package/resources/package-manifests/packages.js.map +1 -0
- package/resources/package-manifests/packages.mjs +3 -0
- package/resources/package-manifests/packages.mjs.map +1 -0
- package/resources/package-manifests/versions.d.mts +84 -0
- package/resources/package-manifests/versions.d.mts.map +1 -0
- package/resources/package-manifests/versions.d.ts +84 -0
- package/resources/package-manifests/versions.d.ts.map +1 -0
- package/resources/package-manifests/versions.js +44 -0
- package/resources/package-manifests/versions.js.map +1 -0
- package/resources/package-manifests/versions.mjs +40 -0
- package/resources/package-manifests/versions.mjs.map +1 -0
- package/resources/package-manifests.d.mts +2 -0
- package/resources/package-manifests.d.mts.map +1 -0
- package/resources/package-manifests.d.ts +2 -0
- package/resources/package-manifests.d.ts.map +1 -0
- package/resources/package-manifests.js +6 -0
- package/resources/package-manifests.js.map +1 -0
- package/resources/package-manifests.mjs +3 -0
- package/resources/package-manifests.mjs.map +1 -0
- package/resources/package-versions/package-versions.d.mts +104 -14
- package/resources/package-versions/package-versions.d.mts.map +1 -1
- package/resources/package-versions/package-versions.d.ts +104 -14
- package/resources/package-versions/package-versions.d.ts.map +1 -1
- package/resources/package-versions/package-versions.js +30 -9
- package/resources/package-versions/package-versions.js.map +1 -1
- package/resources/package-versions/package-versions.mjs +30 -9
- package/resources/package-versions/package-versions.mjs.map +1 -1
- package/resources/package-versions/publish.d.mts +40 -4
- package/resources/package-versions/publish.d.mts.map +1 -1
- package/resources/package-versions/publish.d.ts +40 -4
- package/resources/package-versions/publish.d.ts.map +1 -1
- package/resources/package-versions/publish.js +8 -2
- package/resources/package-versions/publish.js.map +1 -1
- package/resources/package-versions/publish.mjs +8 -2
- package/resources/package-versions/publish.mjs.map +1 -1
- package/resources/packages/next-versions.d.mts +40 -4
- package/resources/packages/next-versions.d.mts.map +1 -1
- package/resources/packages/next-versions.d.ts +40 -4
- package/resources/packages/next-versions.d.ts.map +1 -1
- package/resources/packages/next-versions.js +8 -2
- package/resources/packages/next-versions.js.map +1 -1
- package/resources/packages/next-versions.mjs +8 -2
- package/resources/packages/next-versions.mjs.map +1 -1
- package/resources/packages/versions.d.mts +80 -9
- package/resources/packages/versions.d.mts.map +1 -1
- package/resources/packages/versions.d.ts +80 -9
- package/resources/packages/versions.d.ts.map +1 -1
- package/resources/packages/versions.js +16 -5
- package/resources/packages/versions.js.map +1 -1
- package/resources/packages/versions.mjs +16 -5
- package/resources/packages/versions.mjs.map +1 -1
- package/resources/payroll-runs/off-cycle.d.mts +17 -9
- package/resources/payroll-runs/off-cycle.d.mts.map +1 -1
- package/resources/payroll-runs/off-cycle.d.ts +17 -9
- package/resources/payroll-runs/off-cycle.d.ts.map +1 -1
- package/resources/payroll-runs/off-cycle.js +9 -5
- package/resources/payroll-runs/off-cycle.js.map +1 -1
- package/resources/payroll-runs/off-cycle.mjs +9 -5
- package/resources/payroll-runs/off-cycle.mjs.map +1 -1
- package/resources/permissions/index.d.mts +3 -0
- package/resources/permissions/index.d.mts.map +1 -0
- package/resources/permissions/index.d.ts +3 -0
- package/resources/permissions/index.d.ts.map +1 -0
- package/resources/permissions/index.js +9 -0
- package/resources/permissions/index.js.map +1 -0
- package/resources/permissions/index.mjs +4 -0
- package/resources/permissions/index.mjs.map +1 -0
- package/resources/permissions/permission-profiles.d.mts +43 -0
- package/resources/permissions/permission-profiles.d.mts.map +1 -0
- package/resources/permissions/permission-profiles.d.ts +43 -0
- package/resources/permissions/permission-profiles.d.ts.map +1 -0
- package/resources/permissions/permission-profiles.js +36 -0
- package/resources/permissions/permission-profiles.js.map +1 -0
- package/resources/permissions/permission-profiles.mjs +32 -0
- package/resources/permissions/permission-profiles.mjs.map +1 -0
- package/resources/permissions/permissions.d.mts +10 -0
- package/resources/permissions/permissions.d.mts.map +1 -0
- package/resources/permissions/permissions.d.ts +10 -0
- package/resources/permissions/permissions.d.ts.map +1 -0
- package/resources/permissions/permissions.js +17 -0
- package/resources/permissions/permissions.js.map +1 -0
- package/resources/permissions/permissions.mjs +12 -0
- package/resources/permissions/permissions.mjs.map +1 -0
- package/resources/permissions.d.mts +2 -0
- package/resources/permissions.d.mts.map +1 -0
- package/resources/permissions.d.ts +2 -0
- package/resources/permissions.d.ts.map +1 -0
- package/resources/permissions.js +6 -0
- package/resources/permissions.js.map +1 -0
- package/resources/permissions.mjs +3 -0
- package/resources/permissions.mjs.map +1 -0
- package/resources/record-detail-reference-options.d.mts +111 -0
- package/resources/record-detail-reference-options.d.mts.map +1 -0
- package/resources/record-detail-reference-options.d.ts +111 -0
- package/resources/record-detail-reference-options.d.ts.map +1 -0
- package/resources/record-detail-reference-options.js +54 -0
- package/resources/record-detail-reference-options.js.map +1 -0
- package/resources/record-detail-reference-options.mjs +50 -0
- package/resources/record-detail-reference-options.mjs.map +1 -0
- package/resources/record-detail-related-records.d.mts +1070 -0
- package/resources/record-detail-related-records.d.mts.map +1 -0
- package/resources/record-detail-related-records.d.ts +1070 -0
- package/resources/record-detail-related-records.d.ts.map +1 -0
- package/resources/record-detail-related-records.js +49 -0
- package/resources/record-detail-related-records.js.map +1 -0
- package/resources/record-detail-related-records.mjs +45 -0
- package/resources/record-detail-related-records.mjs.map +1 -0
- package/resources/record-details.d.mts +1227 -0
- package/resources/record-details.d.mts.map +1 -0
- package/resources/record-details.d.ts +1227 -0
- package/resources/record-details.d.ts.map +1 -0
- package/resources/record-details.js +71 -0
- package/resources/record-details.js.map +1 -0
- package/resources/record-details.mjs +67 -0
- package/resources/record-details.mjs.map +1 -0
- package/resources/reimbursements.d.mts +2158 -90
- package/resources/reimbursements.d.mts.map +1 -1
- package/resources/reimbursements.d.ts +2158 -90
- package/resources/reimbursements.d.ts.map +1 -1
- package/resources/reimbursements.js +306 -16
- package/resources/reimbursements.js.map +1 -1
- package/resources/reimbursements.mjs +306 -16
- package/resources/reimbursements.mjs.map +1 -1
- package/resources/report-runs.d.mts +2 -1
- package/resources/report-runs.d.mts.map +1 -1
- package/resources/report-runs.d.ts +2 -1
- package/resources/report-runs.d.ts.map +1 -1
- package/resources/report-runs.js +2 -1
- package/resources/report-runs.js.map +1 -1
- package/resources/report-runs.mjs +2 -1
- package/resources/report-runs.mjs.map +1 -1
- package/resources/sandboxes.d.mts +20 -624
- package/resources/sandboxes.d.mts.map +1 -1
- package/resources/sandboxes.d.ts +20 -624
- package/resources/sandboxes.d.ts.map +1 -1
- package/resources/sandboxes.js +5 -60
- package/resources/sandboxes.js.map +1 -1
- package/resources/sandboxes.mjs +5 -60
- package/resources/sandboxes.mjs.map +1 -1
- package/src/client.ts +180 -17
- package/src/core/platform/custom-objects/manager.ts +65 -42
- package/src/core/platform/custom-objects.ts +3 -0
- package/src/index.ts +17 -0
- package/src/lib/manifest/acp-agent.ts +7 -1
- package/src/lib/manifest/composition.ts +133 -0
- package/src/lib/manifest/definitions/README.md +89 -0
- package/src/lib/manifest/definitions/_object-records.ts +225 -0
- package/src/lib/manifest/definitions/action.ts +31 -0
- package/src/lib/manifest/definitions/agent.ts +149 -0
- package/src/lib/manifest/definitions/app.ts +12 -0
- package/src/lib/manifest/definitions/category.ts +35 -0
- package/src/lib/manifest/definitions/component.ts +241 -0
- package/src/lib/manifest/definitions/custom-field-section.ts +39 -0
- package/src/lib/manifest/definitions/custom-field.ts +32 -0
- package/src/lib/manifest/definitions/custom-object.ts +791 -0
- package/src/lib/manifest/definitions/custom-skill.ts +28 -0
- package/src/lib/manifest/definitions/field-section.ts +31 -0
- package/src/lib/manifest/definitions/field.ts +119 -0
- package/src/lib/manifest/definitions/function.ts +198 -0
- package/src/lib/manifest/definitions/index.ts +91 -0
- package/src/lib/manifest/definitions/list-view.ts +48 -0
- package/src/lib/manifest/definitions/object-search-config.ts +44 -0
- package/src/lib/manifest/definitions/object-settings.ts +61 -0
- package/src/lib/manifest/definitions/page-layout.ts +218 -0
- package/src/lib/manifest/definitions/page.ts +28 -0
- package/src/lib/manifest/definitions/record-triggered-flow.ts +71 -0
- package/src/lib/manifest/definitions/validation.ts +46 -0
- package/src/lib/manifest/definitions/workflow.ts +62 -0
- package/src/lib/manifest/index.ts +4 -0
- package/src/lib/manifest/package-manifest.ts +40 -0
- package/src/resources/activity-log.ts +1 -1
- package/src/resources/agents/sessions/messages.ts +10 -1
- package/src/resources/agents/sessions/sessions.ts +30 -3
- package/src/resources/bills.ts +1660 -0
- package/src/resources/card-transactions.ts +742 -49
- package/src/resources/custom-objects/custom-objects.ts +62 -2
- package/src/resources/custom-objects/fields.ts +44 -0
- package/src/resources/custom-objects/index.ts +13 -1
- package/src/resources/custom-objects/list-views/capabilities.ts +72 -0
- package/src/resources/custom-objects/list-views/default.ts +87 -0
- package/src/resources/custom-objects/list-views/index.ts +15 -0
- package/src/resources/custom-objects/list-views/list-views.ts +973 -0
- package/src/resources/custom-objects/list-views.ts +3 -0
- package/src/resources/custom-objects/records/capabilities.ts +73 -0
- package/src/resources/custom-objects/records/index.ts +21 -0
- package/src/resources/custom-objects/records/records.ts +955 -0
- package/src/resources/custom-objects/records.ts +1 -703
- package/src/resources/devices.ts +2 -0
- package/src/resources/draft-transitions.ts +276 -347
- package/src/resources/employee-documents.ts +2 -2
- package/src/resources/{spend-categories.ts → finance-categories.ts} +26 -23
- package/src/resources/finance-vendors.ts +191 -0
- package/src/resources/functions/executions.ts +4 -1
- package/src/resources/functions/functions.ts +216 -4
- package/src/resources/hire-requirements.ts +107 -9
- package/src/resources/hires.ts +1768 -539
- package/src/resources/index.ts +51 -7
- package/src/resources/leave-requests.ts +11 -2
- package/src/resources/object-categories.ts +2 -1
- package/src/resources/package-components/extract.ts +139 -0
- package/src/resources/package-components/index.ts +10 -0
- package/src/resources/package-components/package-components.ts +134 -0
- package/src/resources/package-components/types.ts +64 -0
- package/src/resources/package-components.ts +3 -0
- package/src/resources/package-installs.ts +120 -9
- package/src/resources/package-managed-installs.ts +146 -7
- package/src/resources/package-manifests/index.ts +5 -0
- package/src/resources/package-manifests/package-manifests.ts +21 -0
- package/src/resources/package-manifests/packages/index.ts +4 -0
- package/src/resources/package-manifests/packages/packages.ts +19 -0
- package/src/resources/package-manifests/packages/versions.ts +237 -0
- package/src/resources/package-manifests/packages.ts +3 -0
- package/src/resources/package-manifests/versions.ts +96 -0
- package/src/resources/package-manifests.ts +3 -0
- package/src/resources/package-versions/package-versions.ts +117 -14
- package/src/resources/package-versions/publish.ts +46 -4
- package/src/resources/packages/next-versions.ts +46 -4
- package/src/resources/packages/versions.ts +92 -9
- package/src/resources/payroll-runs/off-cycle.ts +17 -9
- package/src/resources/permissions/index.ts +4 -0
- package/src/resources/permissions/permission-profiles.ts +50 -0
- package/src/resources/permissions/permissions.ts +20 -0
- package/src/resources/permissions.ts +3 -0
- package/src/resources/record-detail-reference-options.ts +142 -0
- package/src/resources/record-detail-related-records.ts +1380 -0
- package/src/resources/record-details.ts +1554 -0
- package/src/resources/reimbursements.ts +2591 -126
- package/src/resources/report-runs.ts +2 -1
- package/src/resources/sandboxes.ts +48 -742
- 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/spend-categories.d.mts.map +0 -1
- package/resources/spend-categories.d.ts.map +0 -1
- package/resources/spend-categories.js.map +0 -1
- package/resources/spend-categories.mjs.map +0 -1
|
@@ -2,24 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import * as BusinessPartnersAPI from './business-partners';
|
|
5
|
+
import * as WorkersAPI from './workers';
|
|
5
6
|
import { APIPromise } from '../core/api-promise';
|
|
6
7
|
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
7
8
|
import { RequestOptions } from '../internal/request-options';
|
|
8
9
|
import { path } from '../internal/utils/path';
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Expense reimbursements, including mileage and per diem
|
|
13
|
+
*/
|
|
10
14
|
export class Reimbursements extends APIResource {
|
|
11
15
|
/**
|
|
12
16
|
* A list of reimbursements.
|
|
13
17
|
*
|
|
14
|
-
* - Requires: `
|
|
15
|
-
* - Filterable fields: `worker_id`, `
|
|
16
|
-
* `
|
|
18
|
+
* - Requires: `Spend Management Platform API`
|
|
19
|
+
* - Filterable fields: `worker_id`, `entity_id`, `vendor_id`, `transaction_date`,
|
|
20
|
+
* `transaction_type`
|
|
21
|
+
* - Expandable fields: `worker`, `vendor`, `mileage_rate`, `per_diem_rate`
|
|
17
22
|
* - Sortable fields: `id`, `created_at`, `updated_at`, `transaction_date`
|
|
18
23
|
*
|
|
19
24
|
* @example HTTP
|
|
20
25
|
* Representative request and response shapes.
|
|
21
26
|
* ```
|
|
22
|
-
* GET /reimbursements/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
|
|
27
|
+
* GET /reimbursements/?filter=filter&expand=expand&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
|
|
23
28
|
* Host: rest.ripplingapis.com
|
|
24
29
|
* Accept: application/json
|
|
25
30
|
* Rippling-Api-Version: 2024-08-01
|
|
@@ -42,6 +47,55 @@ export class Reimbursements extends APIResource {
|
|
|
42
47
|
* "created_at": "string",
|
|
43
48
|
* "updated_at": "string",
|
|
44
49
|
* "worker_id": "string",
|
|
50
|
+
* "worker": {
|
|
51
|
+
* "id": "string",
|
|
52
|
+
* "created_at": "string",
|
|
53
|
+
* "updated_at": "string",
|
|
54
|
+
* "user_id": "string",
|
|
55
|
+
* "user": {},
|
|
56
|
+
* "is_manager": "string",
|
|
57
|
+
* "manager_id": "string",
|
|
58
|
+
* "manager": {},
|
|
59
|
+
* "legal_entity_id": "string",
|
|
60
|
+
* "legal_entity": {},
|
|
61
|
+
* "country": "AF",
|
|
62
|
+
* "start_date": "string",
|
|
63
|
+
* "end_date": "string",
|
|
64
|
+
* "number": "string",
|
|
65
|
+
* "work_email": "string",
|
|
66
|
+
* "personal_email": "string",
|
|
67
|
+
* "status": "INIT",
|
|
68
|
+
* "location": {},
|
|
69
|
+
* "employment_type_id": "string",
|
|
70
|
+
* "employment_type": {},
|
|
71
|
+
* "gender": "MALE",
|
|
72
|
+
* "date_of_birth": "string",
|
|
73
|
+
* "race": "BLACK",
|
|
74
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
75
|
+
* "citizenship": "AF",
|
|
76
|
+
* "compensation_id": "string",
|
|
77
|
+
* "compensation": {},
|
|
78
|
+
* "overtime_exemption": "EXEMPT",
|
|
79
|
+
* "department_id": "string",
|
|
80
|
+
* "department": {},
|
|
81
|
+
* "teams_id": [],
|
|
82
|
+
* "teams": [],
|
|
83
|
+
* "title": "string",
|
|
84
|
+
* "title_effective_date": "string",
|
|
85
|
+
* "level_id": "string",
|
|
86
|
+
* "level": {},
|
|
87
|
+
* "job_function_id": "string",
|
|
88
|
+
* "job_function": {},
|
|
89
|
+
* "termination_details": {},
|
|
90
|
+
* "pay_schedule_id": "string",
|
|
91
|
+
* "work_schedule": {},
|
|
92
|
+
* "compensation_grade": {},
|
|
93
|
+
* "original_start_date": "string",
|
|
94
|
+
* "custom_fields": [],
|
|
95
|
+
* "country_fields": {},
|
|
96
|
+
* "business_partners_id": [],
|
|
97
|
+
* "business_partners": []
|
|
98
|
+
* },
|
|
45
99
|
* "company_amount": {
|
|
46
100
|
* "currency_type": "string",
|
|
47
101
|
* "value": "string"
|
|
@@ -50,14 +104,17 @@ export class Reimbursements extends APIResource {
|
|
|
50
104
|
* "currency_type": "string",
|
|
51
105
|
* "value": "string"
|
|
52
106
|
* },
|
|
53
|
-
* "transaction_date": "string",
|
|
54
107
|
* "accounting_date": "string",
|
|
55
108
|
* "gl_sync_state": "NOT_FINALIZED",
|
|
56
109
|
* "approval_status": "DRAFT",
|
|
57
110
|
* "entity_id": "string",
|
|
58
111
|
* "vendor": {
|
|
59
112
|
* "id": "string",
|
|
60
|
-
* "
|
|
113
|
+
* "created_at": "string",
|
|
114
|
+
* "updated_at": "string",
|
|
115
|
+
* "name": "string",
|
|
116
|
+
* "logo": "string",
|
|
117
|
+
* "is_archived": "string"
|
|
61
118
|
* },
|
|
62
119
|
* "gl_vendor": {
|
|
63
120
|
* "id": "string",
|
|
@@ -65,13 +122,18 @@ export class Reimbursements extends APIResource {
|
|
|
65
122
|
* "gl_vendor_id": "string"
|
|
66
123
|
* },
|
|
67
124
|
* "memo": "string",
|
|
68
|
-
* "receipt": "string",
|
|
69
125
|
* "attachments": [
|
|
70
|
-
*
|
|
126
|
+
* {}
|
|
71
127
|
* ],
|
|
72
128
|
* "line_items": [
|
|
73
129
|
* {}
|
|
74
130
|
* ],
|
|
131
|
+
* "vendor_id": "string",
|
|
132
|
+
* "transaction_date": "string",
|
|
133
|
+
* "receipt": {
|
|
134
|
+
* "url": "string",
|
|
135
|
+
* "file_name": "string"
|
|
136
|
+
* },
|
|
75
137
|
* "transaction_type": "REIMBURSEMENT",
|
|
76
138
|
* "payout_amount": {
|
|
77
139
|
* "currency_type": "string",
|
|
@@ -80,21 +142,44 @@ export class Reimbursements extends APIResource {
|
|
|
80
142
|
* "payout_method": "NOT_SET",
|
|
81
143
|
* "payout_date": "string",
|
|
82
144
|
* "distance": 0,
|
|
145
|
+
* "mileage_rate_id": "string",
|
|
83
146
|
* "mileage_rate": {
|
|
84
147
|
* "id": "string",
|
|
148
|
+
* "created_at": "string",
|
|
149
|
+
* "updated_at": "string",
|
|
85
150
|
* "name": "string",
|
|
86
151
|
* "rate": {},
|
|
87
|
-
* "units": "km"
|
|
152
|
+
* "units": "km",
|
|
153
|
+
* "start_date": "string",
|
|
154
|
+
* "end_date": "string",
|
|
155
|
+
* "country": "string",
|
|
156
|
+
* "half_cent": "string"
|
|
157
|
+
* },
|
|
158
|
+
* "start_location": {
|
|
159
|
+
* "address": "string",
|
|
160
|
+
* "coordinates": {}
|
|
161
|
+
* },
|
|
162
|
+
* "end_location": {
|
|
163
|
+
* "address": "string",
|
|
164
|
+
* "coordinates": {}
|
|
88
165
|
* },
|
|
89
|
-
* "
|
|
90
|
-
*
|
|
166
|
+
* "waypoints": [
|
|
167
|
+
* {}
|
|
168
|
+
* ],
|
|
91
169
|
* "trip_start_date": "string",
|
|
92
170
|
* "trip_end_date": "string",
|
|
171
|
+
* "per_diem_rate_id": "string",
|
|
93
172
|
* "per_diem_rate": {
|
|
94
173
|
* "id": "string",
|
|
174
|
+
* "created_at": "string",
|
|
175
|
+
* "updated_at": "string",
|
|
95
176
|
* "destination_name": "string",
|
|
96
177
|
* "country": "string",
|
|
97
|
-
* "currency": "string"
|
|
178
|
+
* "currency": "string",
|
|
179
|
+
* "start_date": "string",
|
|
180
|
+
* "end_date": "string",
|
|
181
|
+
* "is_current": "string",
|
|
182
|
+
* "is_archived": "string"
|
|
98
183
|
* },
|
|
99
184
|
* "per_diem_line_items": [
|
|
100
185
|
* {}
|
|
@@ -116,12 +201,13 @@ export class Reimbursements extends APIResource {
|
|
|
116
201
|
}
|
|
117
202
|
|
|
118
203
|
/**
|
|
119
|
-
* Retrieve a specific reimbursement
|
|
204
|
+
* Retrieve a specific reimbursement. Expandable fields: `worker`, `vendor`,
|
|
205
|
+
* `mileage_rate`, `per_diem_rate`.
|
|
120
206
|
*
|
|
121
207
|
* @example HTTP
|
|
122
208
|
* Representative request and response shapes.
|
|
123
209
|
* ```
|
|
124
|
-
* GET /reimbursements/{id}
|
|
210
|
+
* GET /reimbursements/{id}/?expand=expand HTTP/1.1
|
|
125
211
|
* Host: rest.ripplingapis.com
|
|
126
212
|
* Accept: application/json
|
|
127
213
|
* Rippling-Api-Version: 2024-08-01
|
|
@@ -138,20 +224,237 @@ export class Reimbursements extends APIResource {
|
|
|
138
224
|
* }
|
|
139
225
|
* ```
|
|
140
226
|
*/
|
|
141
|
-
retrieve(
|
|
142
|
-
|
|
227
|
+
retrieve(
|
|
228
|
+
id: string,
|
|
229
|
+
query: ReimbursementRetrieveParams | null | undefined = {},
|
|
230
|
+
options?: RequestOptions,
|
|
231
|
+
): APIPromise<ReimbursementRetrieveResponse> {
|
|
232
|
+
return this._client.get(path`/reimbursements/${id}/`, { query, ...options });
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Replace a reimbursement's line items. Supplying `line_items` replaces the entire
|
|
237
|
+
* list: unlisted lines are deleted, omitted or null optional fields on supplied
|
|
238
|
+
* lines are cleared. `amount` and `tax_amount` are decimal strings in the merchant
|
|
239
|
+
* currency; GET responses return them as Currency objects. Line item `amount`
|
|
240
|
+
* values must sum to the reimbursement's merchant amount. Line items on per-diem
|
|
241
|
+
* reimbursements cannot be updated. Mileage reimbursements must have exactly one
|
|
242
|
+
* line item.
|
|
243
|
+
*
|
|
244
|
+
* @example HTTP
|
|
245
|
+
* Representative request and response shapes.
|
|
246
|
+
* ```
|
|
247
|
+
* PATCH /reimbursements/{id}/ HTTP/1.1
|
|
248
|
+
* Host: rest.ripplingapis.com
|
|
249
|
+
* Content-Type: application/json
|
|
250
|
+
* Accept: application/json
|
|
251
|
+
* Rippling-Api-Version: 2024-08-01
|
|
252
|
+
*
|
|
253
|
+
* {}
|
|
254
|
+
*
|
|
255
|
+
* HTTP/1.1 200 OK
|
|
256
|
+
* Content-Type: application/json
|
|
257
|
+
*
|
|
258
|
+
* {
|
|
259
|
+
* "id": "string",
|
|
260
|
+
* "created_at": "string",
|
|
261
|
+
* "updated_at": "string",
|
|
262
|
+
* "worker_id": "string",
|
|
263
|
+
* "worker": {
|
|
264
|
+
* "id": "string",
|
|
265
|
+
* "created_at": "string",
|
|
266
|
+
* "updated_at": "string"
|
|
267
|
+
* },
|
|
268
|
+
* "company_amount": {},
|
|
269
|
+
* "merchant_amount": {
|
|
270
|
+
* "currency_type": "string",
|
|
271
|
+
* "value": 0
|
|
272
|
+
* },
|
|
273
|
+
* "accounting_date": "string",
|
|
274
|
+
* "gl_sync_state": "NOT_FINALIZED",
|
|
275
|
+
* "approval_status": "DRAFT",
|
|
276
|
+
* "entity_id": "string",
|
|
277
|
+
* "vendor": {
|
|
278
|
+
* "id": "string",
|
|
279
|
+
* "created_at": "string",
|
|
280
|
+
* "updated_at": "string",
|
|
281
|
+
* "name": "string",
|
|
282
|
+
* "logo": "string",
|
|
283
|
+
* "is_archived": false
|
|
284
|
+
* },
|
|
285
|
+
* "gl_vendor": {
|
|
286
|
+
* "id": "string",
|
|
287
|
+
* "name": "string",
|
|
288
|
+
* "gl_vendor_id": "string"
|
|
289
|
+
* },
|
|
290
|
+
* "memo": "string",
|
|
291
|
+
* "attachments": [
|
|
292
|
+
* {
|
|
293
|
+
* "url": "string",
|
|
294
|
+
* "file_name": "string",
|
|
295
|
+
* "uploaded_at": "string",
|
|
296
|
+
* "uploaded_by_id": "string"
|
|
297
|
+
* }
|
|
298
|
+
* ],
|
|
299
|
+
* "line_items": [
|
|
300
|
+
* {
|
|
301
|
+
* "gl_customer": "string",
|
|
302
|
+
* "gl_billable": "BILLABLE",
|
|
303
|
+
* "dimension_choices": {},
|
|
304
|
+
* "memo": "string",
|
|
305
|
+
* "gl_amortization_template": {
|
|
306
|
+
* "gl_object_id": "string",
|
|
307
|
+
* "accounting_integration_id": "string",
|
|
308
|
+
* "name": "string",
|
|
309
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE"
|
|
310
|
+
* },
|
|
311
|
+
* "amortized": false,
|
|
312
|
+
* "start_date": "string",
|
|
313
|
+
* "end_date": "string",
|
|
314
|
+
* "prepaid_account": {
|
|
315
|
+
* "account_id": "string",
|
|
316
|
+
* "name": "string",
|
|
317
|
+
* "code": "string",
|
|
318
|
+
* "type": "RECEIVABLE",
|
|
319
|
+
* "required_custom_dimensions": [],
|
|
320
|
+
* "requires_department": "string",
|
|
321
|
+
* "requires_work_location": "string"
|
|
322
|
+
* },
|
|
323
|
+
* "gl_amortization_schedule": {
|
|
324
|
+
* "gl_object_id": "string",
|
|
325
|
+
* "accounting_integration_id": "string",
|
|
326
|
+
* "name": "string",
|
|
327
|
+
* "gl_object_type": "GL_AMORTIZATION_TEMPLATE",
|
|
328
|
+
* "start_date": "string",
|
|
329
|
+
* "end_date": "string",
|
|
330
|
+
* "total_amount": "string",
|
|
331
|
+
* "total_amortized_amount": "string",
|
|
332
|
+
* "amortization_period": "string",
|
|
333
|
+
* "status": "NOT_STARTED"
|
|
334
|
+
* },
|
|
335
|
+
* "gl_tax_code": "string",
|
|
336
|
+
* "id": "string",
|
|
337
|
+
* "category_id": "string",
|
|
338
|
+
* "category_name": "string",
|
|
339
|
+
* "amount": {
|
|
340
|
+
* "currency_type": "string",
|
|
341
|
+
* "value": "string"
|
|
342
|
+
* },
|
|
343
|
+
* "tax_amount": {
|
|
344
|
+
* "currency_type": "string",
|
|
345
|
+
* "value": "string"
|
|
346
|
+
* }
|
|
347
|
+
* }
|
|
348
|
+
* ],
|
|
349
|
+
* "vendor_id": "string",
|
|
350
|
+
* "transaction_date": "string",
|
|
351
|
+
* "receipt": {
|
|
352
|
+
* "url": "string",
|
|
353
|
+
* "file_name": "string"
|
|
354
|
+
* },
|
|
355
|
+
* "transaction_type": "REIMBURSEMENT",
|
|
356
|
+
* "payout_amount": {
|
|
357
|
+
* "currency_type": "string",
|
|
358
|
+
* "value": 0
|
|
359
|
+
* },
|
|
360
|
+
* "payout_method": "NOT_SET",
|
|
361
|
+
* "payout_date": "string",
|
|
362
|
+
* "distance": 0,
|
|
363
|
+
* "mileage_rate_id": "string",
|
|
364
|
+
* "mileage_rate": {
|
|
365
|
+
* "id": "string",
|
|
366
|
+
* "created_at": "string",
|
|
367
|
+
* "updated_at": "string",
|
|
368
|
+
* "name": "string",
|
|
369
|
+
* "rate": {
|
|
370
|
+
* "currency_type": "string",
|
|
371
|
+
* "value": 0
|
|
372
|
+
* },
|
|
373
|
+
* "units": "km",
|
|
374
|
+
* "start_date": "string",
|
|
375
|
+
* "end_date": "string",
|
|
376
|
+
* "country": "string",
|
|
377
|
+
* "half_cent": false
|
|
378
|
+
* },
|
|
379
|
+
* "start_location": {
|
|
380
|
+
* "address": "string",
|
|
381
|
+
* "coordinates": {
|
|
382
|
+
* "latitude": 0,
|
|
383
|
+
* "longitude": 0
|
|
384
|
+
* }
|
|
385
|
+
* },
|
|
386
|
+
* "end_location": {
|
|
387
|
+
* "address": "string",
|
|
388
|
+
* "coordinates": {
|
|
389
|
+
* "latitude": 0,
|
|
390
|
+
* "longitude": 0
|
|
391
|
+
* }
|
|
392
|
+
* },
|
|
393
|
+
* "waypoints": [
|
|
394
|
+
* {
|
|
395
|
+
* "address": "string",
|
|
396
|
+
* "coordinates": {
|
|
397
|
+
* "latitude": "string",
|
|
398
|
+
* "longitude": "string"
|
|
399
|
+
* }
|
|
400
|
+
* }
|
|
401
|
+
* ],
|
|
402
|
+
* "trip_start_date": "string",
|
|
403
|
+
* "trip_end_date": "string",
|
|
404
|
+
* "per_diem_rate_id": "string",
|
|
405
|
+
* "per_diem_rate": {
|
|
406
|
+
* "id": "string",
|
|
407
|
+
* "created_at": "string",
|
|
408
|
+
* "updated_at": "string",
|
|
409
|
+
* "destination_name": "string",
|
|
410
|
+
* "country": "string",
|
|
411
|
+
* "currency": "string",
|
|
412
|
+
* "start_date": "string",
|
|
413
|
+
* "end_date": "string",
|
|
414
|
+
* "is_current": false,
|
|
415
|
+
* "is_archived": false
|
|
416
|
+
* },
|
|
417
|
+
* "per_diem_line_items": [
|
|
418
|
+
* {
|
|
419
|
+
* "sub_rate_id": "string",
|
|
420
|
+
* "sub_rate_type": "FULL_DAY",
|
|
421
|
+
* "label": "string",
|
|
422
|
+
* "amount": {
|
|
423
|
+
* "currency_type": "string",
|
|
424
|
+
* "value": "string"
|
|
425
|
+
* },
|
|
426
|
+
* "count": 0,
|
|
427
|
+
* "line_type": "INCLUDE",
|
|
428
|
+
* "calculated_amount": {
|
|
429
|
+
* "currency_type": "string",
|
|
430
|
+
* "value": "string"
|
|
431
|
+
* }
|
|
432
|
+
* }
|
|
433
|
+
* ]
|
|
434
|
+
* }
|
|
435
|
+
* ```
|
|
436
|
+
*/
|
|
437
|
+
update(
|
|
438
|
+
id: string,
|
|
439
|
+
body: ReimbursementUpdateParams | null | undefined = {},
|
|
440
|
+
options?: RequestOptions,
|
|
441
|
+
): APIPromise<ReimbursementUpdateResponse> {
|
|
442
|
+
return this._client.patch(path`/reimbursements/${id}/`, { body, ...options });
|
|
143
443
|
}
|
|
144
444
|
}
|
|
145
445
|
|
|
146
446
|
export type ReimbursementListResponsesPageCursorURL = PageCursorURL<ReimbursementListResponse>;
|
|
147
447
|
|
|
148
448
|
/**
|
|
149
|
-
* A
|
|
449
|
+
* A Finance reimbursement the caller can see.
|
|
150
450
|
*
|
|
151
451
|
* A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
|
|
152
452
|
* use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
|
|
153
453
|
* Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
|
|
154
|
-
* that does not exist.
|
|
454
|
+
* that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
|
|
455
|
+
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
456
|
+
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
457
|
+
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
155
458
|
*/
|
|
156
459
|
export interface ReimbursementListResponse {
|
|
157
460
|
/**
|
|
@@ -195,9 +498,9 @@ export interface ReimbursementListResponse {
|
|
|
195
498
|
| 'FAILED';
|
|
196
499
|
|
|
197
500
|
/**
|
|
198
|
-
*
|
|
501
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
199
502
|
*/
|
|
200
|
-
attachments?: Array<
|
|
503
|
+
attachments?: Array<ReimbursementListResponse.Attachment>;
|
|
201
504
|
|
|
202
505
|
/**
|
|
203
506
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
@@ -210,9 +513,9 @@ export interface ReimbursementListResponse {
|
|
|
210
513
|
distance?: number;
|
|
211
514
|
|
|
212
515
|
/**
|
|
213
|
-
*
|
|
516
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
214
517
|
*/
|
|
215
|
-
|
|
518
|
+
end_location?: ReimbursementListResponse.EndLocation;
|
|
216
519
|
|
|
217
520
|
/**
|
|
218
521
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
@@ -245,7 +548,7 @@ export interface ReimbursementListResponse {
|
|
|
245
548
|
gl_vendor?: ReimbursementListResponse.GlVendor;
|
|
246
549
|
|
|
247
550
|
/**
|
|
248
|
-
* Category splits of the transaction amount.
|
|
551
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
249
552
|
*/
|
|
250
553
|
line_items?: Array<ReimbursementListResponse.LineItem>;
|
|
251
554
|
|
|
@@ -261,10 +564,20 @@ export interface ReimbursementListResponse {
|
|
|
261
564
|
merchant_amount?: ReimbursementListResponse.MerchantAmount;
|
|
262
565
|
|
|
263
566
|
/**
|
|
264
|
-
* Company mileage rate.
|
|
567
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
568
|
+
* `reimbursements.read`.
|
|
569
|
+
*
|
|
570
|
+
* Expandable field
|
|
265
571
|
*/
|
|
266
572
|
mileage_rate?: ReimbursementListResponse.MileageRate;
|
|
267
573
|
|
|
574
|
+
/**
|
|
575
|
+
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
576
|
+
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
577
|
+
* there is no standalone rate lookup endpoint.
|
|
578
|
+
*/
|
|
579
|
+
mileage_rate_id?: string;
|
|
580
|
+
|
|
268
581
|
/**
|
|
269
582
|
* Amount credited to the worker. The `value` is a decimal string.
|
|
270
583
|
*/
|
|
@@ -291,19 +604,29 @@ export interface ReimbursementListResponse {
|
|
|
291
604
|
per_diem_line_items?: Array<ReimbursementListResponse.PerDiemLineItem>;
|
|
292
605
|
|
|
293
606
|
/**
|
|
294
|
-
* Per diem rate for the trip.
|
|
607
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
608
|
+
* `reimbursements.read`.
|
|
609
|
+
*
|
|
610
|
+
* Expandable field
|
|
295
611
|
*/
|
|
296
612
|
per_diem_rate?: ReimbursementListResponse.PerDiemRate;
|
|
297
613
|
|
|
298
614
|
/**
|
|
299
|
-
*
|
|
615
|
+
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
616
|
+
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
617
|
+
* is no standalone rate lookup endpoint.
|
|
618
|
+
*/
|
|
619
|
+
per_diem_rate_id?: string;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Receipt file and its filename.
|
|
300
623
|
*/
|
|
301
|
-
receipt?:
|
|
624
|
+
receipt?: ReimbursementListResponse.Receipt;
|
|
302
625
|
|
|
303
626
|
/**
|
|
304
|
-
*
|
|
627
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
305
628
|
*/
|
|
306
|
-
|
|
629
|
+
start_location?: ReimbursementListResponse.StartLocation;
|
|
307
630
|
|
|
308
631
|
/**
|
|
309
632
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
@@ -331,10 +654,30 @@ export interface ReimbursementListResponse {
|
|
|
331
654
|
trip_start_date?: string;
|
|
332
655
|
|
|
333
656
|
/**
|
|
334
|
-
* Vendor
|
|
657
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
658
|
+
*
|
|
659
|
+
* Expandable field
|
|
335
660
|
*/
|
|
336
661
|
vendor?: ReimbursementListResponse.Vendor;
|
|
337
662
|
|
|
663
|
+
/**
|
|
664
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
665
|
+
*/
|
|
666
|
+
vendor_id?: string;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
670
|
+
* except on mileage reimbursements.
|
|
671
|
+
*/
|
|
672
|
+
waypoints?: Array<ReimbursementListResponse.Waypoint>;
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
676
|
+
*
|
|
677
|
+
* Expandable field
|
|
678
|
+
*/
|
|
679
|
+
worker?: WorkersAPI.Worker;
|
|
680
|
+
|
|
338
681
|
/**
|
|
339
682
|
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
340
683
|
*/
|
|
@@ -342,6 +685,32 @@ export interface ReimbursementListResponse {
|
|
|
342
685
|
}
|
|
343
686
|
|
|
344
687
|
export namespace ReimbursementListResponse {
|
|
688
|
+
/**
|
|
689
|
+
* A Finance transaction attachment with recorded upload details.
|
|
690
|
+
*/
|
|
691
|
+
export interface Attachment {
|
|
692
|
+
/**
|
|
693
|
+
* URL for accessing the file.
|
|
694
|
+
*/
|
|
695
|
+
url: string;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Original file name, when recorded.
|
|
699
|
+
*/
|
|
700
|
+
file_name?: string;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
704
|
+
* recorded.
|
|
705
|
+
*/
|
|
706
|
+
uploaded_at?: string;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
710
|
+
*/
|
|
711
|
+
uploaded_by_id?: string;
|
|
712
|
+
}
|
|
713
|
+
|
|
345
714
|
/**
|
|
346
715
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
347
716
|
*/
|
|
@@ -357,6 +726,40 @@ export namespace ReimbursementListResponse {
|
|
|
357
726
|
value?: number;
|
|
358
727
|
}
|
|
359
728
|
|
|
729
|
+
/**
|
|
730
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
731
|
+
*/
|
|
732
|
+
export interface EndLocation {
|
|
733
|
+
/**
|
|
734
|
+
* Address of this point. Null when the point has no address.
|
|
735
|
+
*/
|
|
736
|
+
address?: string;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
740
|
+
* has no coordinates.
|
|
741
|
+
*/
|
|
742
|
+
coordinates?: EndLocation.Coordinates;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export namespace EndLocation {
|
|
746
|
+
/**
|
|
747
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
748
|
+
* has no coordinates.
|
|
749
|
+
*/
|
|
750
|
+
export interface Coordinates {
|
|
751
|
+
/**
|
|
752
|
+
* Latitude of this point, in decimal degrees.
|
|
753
|
+
*/
|
|
754
|
+
latitude?: number;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Longitude of this point, in decimal degrees.
|
|
758
|
+
*/
|
|
759
|
+
longitude?: number;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
360
763
|
/**
|
|
361
764
|
* Vendor in the connected accounting system.
|
|
362
765
|
*/
|
|
@@ -378,28 +781,56 @@ export namespace ReimbursementListResponse {
|
|
|
378
781
|
}
|
|
379
782
|
|
|
380
783
|
export interface LineItem {
|
|
784
|
+
/**
|
|
785
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
786
|
+
* been assigned one yet.
|
|
787
|
+
*/
|
|
788
|
+
id?: string;
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Whether this line is amortized.
|
|
792
|
+
*/
|
|
793
|
+
amortized?: boolean;
|
|
794
|
+
|
|
381
795
|
/**
|
|
382
796
|
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
383
797
|
*/
|
|
384
798
|
amount?: LineItem.Amount;
|
|
385
799
|
|
|
386
800
|
/**
|
|
387
|
-
* ID of the
|
|
388
|
-
*
|
|
801
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
802
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
389
803
|
*/
|
|
390
804
|
category_id?: string;
|
|
391
805
|
|
|
392
806
|
/**
|
|
393
|
-
* Name of the
|
|
807
|
+
* Name of the finance category.
|
|
394
808
|
*/
|
|
395
809
|
category_name?: string;
|
|
396
810
|
|
|
397
811
|
/**
|
|
398
|
-
* Selected dimension values, keyed by dimension ID.
|
|
399
|
-
*
|
|
812
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
813
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
814
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
815
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
400
816
|
*/
|
|
401
817
|
dimension_choices?: { [key: string]: LineItem.DimensionChoices };
|
|
402
818
|
|
|
819
|
+
/**
|
|
820
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
821
|
+
*/
|
|
822
|
+
end_date?: string;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* ERP amortization schedule associated with this line.
|
|
826
|
+
*/
|
|
827
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* ERP amortization template for this line.
|
|
831
|
+
*/
|
|
832
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
833
|
+
|
|
403
834
|
/**
|
|
404
835
|
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
405
836
|
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
@@ -413,10 +844,31 @@ export namespace ReimbursementListResponse {
|
|
|
413
844
|
*/
|
|
414
845
|
gl_customer?: string;
|
|
415
846
|
|
|
847
|
+
/**
|
|
848
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
849
|
+
* available to retrieve this accounting tax code.
|
|
850
|
+
*/
|
|
851
|
+
gl_tax_code?: string;
|
|
852
|
+
|
|
416
853
|
/**
|
|
417
854
|
* Memo entered on this split.
|
|
418
855
|
*/
|
|
419
856
|
memo?: string;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
860
|
+
*/
|
|
861
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
865
|
+
*/
|
|
866
|
+
start_date?: string;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Total tax amount for this line in the merchant currency.
|
|
870
|
+
*/
|
|
871
|
+
tax_amount?: LineItem.TaxAmount;
|
|
420
872
|
}
|
|
421
873
|
|
|
422
874
|
export namespace LineItem {
|
|
@@ -447,10 +899,192 @@ export namespace ReimbursementListResponse {
|
|
|
447
899
|
label?: string;
|
|
448
900
|
|
|
449
901
|
/**
|
|
450
|
-
* ID of the selected
|
|
902
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
903
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
904
|
+
* `/job-codes/{id}/`.
|
|
451
905
|
*/
|
|
452
906
|
value?: string;
|
|
453
907
|
}
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* ERP amortization schedule associated with this line.
|
|
911
|
+
*/
|
|
912
|
+
export interface GlAmortizationSchedule {
|
|
913
|
+
/**
|
|
914
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
915
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
916
|
+
*/
|
|
917
|
+
accounting_integration_id?: string;
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Number of amortization periods.
|
|
921
|
+
*/
|
|
922
|
+
amortization_period?: number;
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
926
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
927
|
+
* indicate UTC. Null when not set.
|
|
928
|
+
*/
|
|
929
|
+
end_date?: string;
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Object ID in the connected accounting system.
|
|
933
|
+
*/
|
|
934
|
+
gl_object_id?: string;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
938
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
939
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
940
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
941
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
942
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
943
|
+
* when not set.
|
|
944
|
+
*/
|
|
945
|
+
gl_object_type?:
|
|
946
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
947
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
948
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
949
|
+
| 'GL_ACCOUNT'
|
|
950
|
+
| 'GL_JOURNAL_ENTRY'
|
|
951
|
+
| 'GL_POSTING_PERIOD'
|
|
952
|
+
| 'GL_VENDOR'
|
|
953
|
+
| 'GL_CUSTOMER'
|
|
954
|
+
| 'GL_EMPLOYEE'
|
|
955
|
+
| 'GL_SUBSIDIARY';
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Accounting object name.
|
|
959
|
+
*/
|
|
960
|
+
name?: string;
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
964
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
965
|
+
* indicate UTC. Null when not set.
|
|
966
|
+
*/
|
|
967
|
+
start_date?: string;
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
971
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
972
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
973
|
+
*/
|
|
974
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
978
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
979
|
+
* not available in this response.
|
|
980
|
+
*/
|
|
981
|
+
total_amortized_amount?: number;
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
985
|
+
* schedule currency code is not available in this response.
|
|
986
|
+
*/
|
|
987
|
+
total_amount?: number;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* ERP amortization template for this line.
|
|
992
|
+
*/
|
|
993
|
+
export interface GlAmortizationTemplate {
|
|
994
|
+
/**
|
|
995
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
996
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
997
|
+
*/
|
|
998
|
+
accounting_integration_id?: string;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Object ID in the connected accounting system.
|
|
1002
|
+
*/
|
|
1003
|
+
gl_object_id?: string;
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
1007
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
1008
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
1009
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
1010
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
1011
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
1012
|
+
* when not set.
|
|
1013
|
+
*/
|
|
1014
|
+
gl_object_type?:
|
|
1015
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
1016
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
1017
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
1018
|
+
| 'GL_ACCOUNT'
|
|
1019
|
+
| 'GL_JOURNAL_ENTRY'
|
|
1020
|
+
| 'GL_POSTING_PERIOD'
|
|
1021
|
+
| 'GL_VENDOR'
|
|
1022
|
+
| 'GL_CUSTOMER'
|
|
1023
|
+
| 'GL_EMPLOYEE'
|
|
1024
|
+
| 'GL_SUBSIDIARY';
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* Accounting object name.
|
|
1028
|
+
*/
|
|
1029
|
+
name?: string;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
1034
|
+
*/
|
|
1035
|
+
export interface PrepaidAccount {
|
|
1036
|
+
/**
|
|
1037
|
+
* Account ID in the connected accounting system.
|
|
1038
|
+
*/
|
|
1039
|
+
account_id?: string;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Account code.
|
|
1043
|
+
*/
|
|
1044
|
+
code?: string;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Account name.
|
|
1048
|
+
*/
|
|
1049
|
+
name?: string;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* IDs of custom dimensions required by this account.
|
|
1053
|
+
*/
|
|
1054
|
+
required_custom_dimensions?: Array<string>;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Whether this account requires a department.
|
|
1058
|
+
*/
|
|
1059
|
+
requires_department?: boolean;
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* Whether this account requires a work location.
|
|
1063
|
+
*/
|
|
1064
|
+
requires_work_location?: boolean;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
1068
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
1069
|
+
* when not set.
|
|
1070
|
+
*/
|
|
1071
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* Total tax amount for this line in the merchant currency.
|
|
1076
|
+
*/
|
|
1077
|
+
export interface TaxAmount {
|
|
1078
|
+
/**
|
|
1079
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1080
|
+
*/
|
|
1081
|
+
currency_type?: string;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* The decimal amount for the currency.
|
|
1085
|
+
*/
|
|
1086
|
+
value?: number;
|
|
1087
|
+
}
|
|
454
1088
|
}
|
|
455
1089
|
|
|
456
1090
|
/**
|
|
@@ -470,30 +1104,63 @@ export namespace ReimbursementListResponse {
|
|
|
470
1104
|
}
|
|
471
1105
|
|
|
472
1106
|
/**
|
|
473
|
-
* Company mileage rate.
|
|
1107
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
1108
|
+
* `reimbursements.read`.
|
|
1109
|
+
*
|
|
1110
|
+
* Expandable field
|
|
474
1111
|
*/
|
|
475
1112
|
export interface MileageRate {
|
|
476
1113
|
/**
|
|
477
1114
|
* Company mileage rate ID.
|
|
478
1115
|
*/
|
|
479
|
-
id
|
|
1116
|
+
id: string;
|
|
480
1117
|
|
|
481
1118
|
/**
|
|
482
|
-
*
|
|
483
|
-
* or vehicle type.
|
|
1119
|
+
* When the mileage rate was created, as an ISO 8601 date-time in UTC.
|
|
484
1120
|
*/
|
|
485
|
-
|
|
1121
|
+
created_at: string;
|
|
486
1122
|
|
|
487
1123
|
/**
|
|
488
|
-
*
|
|
1124
|
+
* When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
|
|
489
1125
|
*/
|
|
490
|
-
|
|
1126
|
+
updated_at: string;
|
|
491
1127
|
|
|
492
1128
|
/**
|
|
493
|
-
*
|
|
1129
|
+
* ISO 3166-1 alpha-2 country code.
|
|
494
1130
|
*/
|
|
495
|
-
|
|
496
|
-
|
|
1131
|
+
country?: string;
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1135
|
+
*/
|
|
1136
|
+
end_date?: string;
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Whether an additional half cent per distance unit applies.
|
|
1140
|
+
*/
|
|
1141
|
+
half_cent?: boolean;
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Company-defined label for this mileage rate, such as the rate used for a country
|
|
1145
|
+
* or vehicle type.
|
|
1146
|
+
*/
|
|
1147
|
+
name?: string;
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
1151
|
+
*/
|
|
1152
|
+
rate?: MileageRate.Rate;
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1156
|
+
*/
|
|
1157
|
+
start_date?: string;
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* Distance unit, mi or km.
|
|
1161
|
+
*/
|
|
1162
|
+
units?: 'km' | 'mi';
|
|
1163
|
+
}
|
|
497
1164
|
|
|
498
1165
|
export namespace MileageRate {
|
|
499
1166
|
/**
|
|
@@ -601,13 +1268,26 @@ export namespace ReimbursementListResponse {
|
|
|
601
1268
|
}
|
|
602
1269
|
|
|
603
1270
|
/**
|
|
604
|
-
* Per diem rate for the trip.
|
|
1271
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
1272
|
+
* `reimbursements.read`.
|
|
1273
|
+
*
|
|
1274
|
+
* Expandable field
|
|
605
1275
|
*/
|
|
606
1276
|
export interface PerDiemRate {
|
|
607
1277
|
/**
|
|
608
1278
|
* Per diem rate ID.
|
|
609
1279
|
*/
|
|
610
|
-
id
|
|
1280
|
+
id: string;
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* When the per diem rate was created, as an ISO 8601 date-time in UTC.
|
|
1284
|
+
*/
|
|
1285
|
+
created_at: string;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
|
|
1289
|
+
*/
|
|
1290
|
+
updated_at: string;
|
|
611
1291
|
|
|
612
1292
|
/**
|
|
613
1293
|
* Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
|
|
@@ -624,22 +1304,150 @@ export namespace ReimbursementListResponse {
|
|
|
624
1304
|
* Place this per diem rate applies to, such as a city.
|
|
625
1305
|
*/
|
|
626
1306
|
destination_name?: string;
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1310
|
+
*/
|
|
1311
|
+
end_date?: string;
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* Whether the rate is archived. Archived rates remain readable for historical
|
|
1315
|
+
* references.
|
|
1316
|
+
*/
|
|
1317
|
+
is_archived?: boolean;
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Whether this is the current version of the rate.
|
|
1321
|
+
*/
|
|
1322
|
+
is_current?: boolean;
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
1326
|
+
*/
|
|
1327
|
+
start_date?: string;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
* Receipt file and its filename.
|
|
1332
|
+
*/
|
|
1333
|
+
export interface Receipt {
|
|
1334
|
+
/**
|
|
1335
|
+
* URL for accessing the file.
|
|
1336
|
+
*/
|
|
1337
|
+
url: string;
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* Original file name, when recorded.
|
|
1341
|
+
*/
|
|
1342
|
+
file_name?: string;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
1347
|
+
*/
|
|
1348
|
+
export interface StartLocation {
|
|
1349
|
+
/**
|
|
1350
|
+
* Address of this point. Null when the point has no address.
|
|
1351
|
+
*/
|
|
1352
|
+
address?: string;
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1356
|
+
* has no coordinates.
|
|
1357
|
+
*/
|
|
1358
|
+
coordinates?: StartLocation.Coordinates;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
export namespace StartLocation {
|
|
1362
|
+
/**
|
|
1363
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1364
|
+
* has no coordinates.
|
|
1365
|
+
*/
|
|
1366
|
+
export interface Coordinates {
|
|
1367
|
+
/**
|
|
1368
|
+
* Latitude of this point, in decimal degrees.
|
|
1369
|
+
*/
|
|
1370
|
+
latitude?: number;
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* Longitude of this point, in decimal degrees.
|
|
1374
|
+
*/
|
|
1375
|
+
longitude?: number;
|
|
1376
|
+
}
|
|
627
1377
|
}
|
|
628
1378
|
|
|
629
1379
|
/**
|
|
630
|
-
* Vendor
|
|
1380
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
1381
|
+
*
|
|
1382
|
+
* Expandable field
|
|
631
1383
|
*/
|
|
632
1384
|
export interface Vendor {
|
|
633
1385
|
/**
|
|
634
|
-
*
|
|
1386
|
+
* Identifier field
|
|
635
1387
|
*/
|
|
636
|
-
id
|
|
1388
|
+
id: string;
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Record creation date
|
|
1392
|
+
*/
|
|
1393
|
+
created_at: string;
|
|
637
1394
|
|
|
638
1395
|
/**
|
|
639
|
-
*
|
|
1396
|
+
* Record update date
|
|
1397
|
+
*/
|
|
1398
|
+
updated_at: string;
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
1402
|
+
* references.
|
|
1403
|
+
*/
|
|
1404
|
+
is_archived?: boolean;
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
1408
|
+
*/
|
|
1409
|
+
logo?: string;
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
1413
|
+
* alternate names.
|
|
640
1414
|
*/
|
|
641
1415
|
name?: string;
|
|
642
1416
|
}
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* Start, end, or intermediate stop on a mileage trip.
|
|
1420
|
+
*/
|
|
1421
|
+
export interface Waypoint {
|
|
1422
|
+
/**
|
|
1423
|
+
* Address of this point. Null when the point has no address.
|
|
1424
|
+
*/
|
|
1425
|
+
address?: string;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1429
|
+
* has no coordinates.
|
|
1430
|
+
*/
|
|
1431
|
+
coordinates?: Waypoint.Coordinates;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
export namespace Waypoint {
|
|
1435
|
+
/**
|
|
1436
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1437
|
+
* has no coordinates.
|
|
1438
|
+
*/
|
|
1439
|
+
export interface Coordinates {
|
|
1440
|
+
/**
|
|
1441
|
+
* Latitude of this point, in decimal degrees.
|
|
1442
|
+
*/
|
|
1443
|
+
latitude?: number;
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
* Longitude of this point, in decimal degrees.
|
|
1447
|
+
*/
|
|
1448
|
+
longitude?: number;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
643
1451
|
}
|
|
644
1452
|
|
|
645
1453
|
/**
|
|
@@ -687,9 +1495,9 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
687
1495
|
| 'FAILED';
|
|
688
1496
|
|
|
689
1497
|
/**
|
|
690
|
-
*
|
|
1498
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
691
1499
|
*/
|
|
692
|
-
attachments?: Array<
|
|
1500
|
+
attachments?: Array<ReimbursementRetrieveResponse.Attachment>;
|
|
693
1501
|
|
|
694
1502
|
/**
|
|
695
1503
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
@@ -702,9 +1510,9 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
702
1510
|
distance?: number;
|
|
703
1511
|
|
|
704
1512
|
/**
|
|
705
|
-
*
|
|
1513
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
706
1514
|
*/
|
|
707
|
-
|
|
1515
|
+
end_location?: ReimbursementRetrieveResponse.EndLocation;
|
|
708
1516
|
|
|
709
1517
|
/**
|
|
710
1518
|
* ID of the legal entity the transaction belongs to. Use it with
|
|
@@ -737,7 +1545,7 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
737
1545
|
gl_vendor?: ReimbursementRetrieveResponse.GlVendor;
|
|
738
1546
|
|
|
739
1547
|
/**
|
|
740
|
-
* Category splits of the transaction amount.
|
|
1548
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
741
1549
|
*/
|
|
742
1550
|
line_items?: Array<ReimbursementRetrieveResponse.LineItem>;
|
|
743
1551
|
|
|
@@ -753,10 +1561,20 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
753
1561
|
merchant_amount?: ReimbursementRetrieveResponse.MerchantAmount;
|
|
754
1562
|
|
|
755
1563
|
/**
|
|
756
|
-
* Company mileage rate.
|
|
1564
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
1565
|
+
* `reimbursements.read`.
|
|
1566
|
+
*
|
|
1567
|
+
* Expandable field
|
|
757
1568
|
*/
|
|
758
1569
|
mileage_rate?: ReimbursementRetrieveResponse.MileageRate;
|
|
759
1570
|
|
|
1571
|
+
/**
|
|
1572
|
+
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
1573
|
+
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
1574
|
+
* there is no standalone rate lookup endpoint.
|
|
1575
|
+
*/
|
|
1576
|
+
mileage_rate_id?: string;
|
|
1577
|
+
|
|
760
1578
|
/**
|
|
761
1579
|
* Amount credited to the worker. The `value` is a decimal string.
|
|
762
1580
|
*/
|
|
@@ -783,19 +1601,29 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
783
1601
|
per_diem_line_items?: Array<ReimbursementRetrieveResponse.PerDiemLineItem>;
|
|
784
1602
|
|
|
785
1603
|
/**
|
|
786
|
-
* Per diem rate for the trip.
|
|
1604
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
1605
|
+
* `reimbursements.read`.
|
|
1606
|
+
*
|
|
1607
|
+
* Expandable field
|
|
787
1608
|
*/
|
|
788
1609
|
per_diem_rate?: ReimbursementRetrieveResponse.PerDiemRate;
|
|
789
1610
|
|
|
790
1611
|
/**
|
|
791
|
-
*
|
|
1612
|
+
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
1613
|
+
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
1614
|
+
* is no standalone rate lookup endpoint.
|
|
1615
|
+
*/
|
|
1616
|
+
per_diem_rate_id?: string;
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Receipt file and its filename.
|
|
792
1620
|
*/
|
|
793
|
-
receipt?:
|
|
1621
|
+
receipt?: ReimbursementRetrieveResponse.Receipt;
|
|
794
1622
|
|
|
795
1623
|
/**
|
|
796
|
-
*
|
|
1624
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
797
1625
|
*/
|
|
798
|
-
|
|
1626
|
+
start_location?: ReimbursementRetrieveResponse.StartLocation;
|
|
799
1627
|
|
|
800
1628
|
/**
|
|
801
1629
|
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
@@ -823,10 +1651,30 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
823
1651
|
trip_start_date?: string;
|
|
824
1652
|
|
|
825
1653
|
/**
|
|
826
|
-
* Vendor
|
|
1654
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
1655
|
+
*
|
|
1656
|
+
* Expandable field
|
|
827
1657
|
*/
|
|
828
1658
|
vendor?: ReimbursementRetrieveResponse.Vendor;
|
|
829
1659
|
|
|
1660
|
+
/**
|
|
1661
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
1662
|
+
*/
|
|
1663
|
+
vendor_id?: string;
|
|
1664
|
+
|
|
1665
|
+
/**
|
|
1666
|
+
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
1667
|
+
* except on mileage reimbursements.
|
|
1668
|
+
*/
|
|
1669
|
+
waypoints?: Array<ReimbursementRetrieveResponse.Waypoint>;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
1673
|
+
*
|
|
1674
|
+
* Expandable field
|
|
1675
|
+
*/
|
|
1676
|
+
worker?: WorkersAPI.Worker;
|
|
1677
|
+
|
|
830
1678
|
/**
|
|
831
1679
|
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
832
1680
|
*/
|
|
@@ -834,6 +1682,32 @@ export interface ReimbursementRetrieveResponse extends BusinessPartnersAPI.Meta
|
|
|
834
1682
|
}
|
|
835
1683
|
|
|
836
1684
|
export namespace ReimbursementRetrieveResponse {
|
|
1685
|
+
/**
|
|
1686
|
+
* A Finance transaction attachment with recorded upload details.
|
|
1687
|
+
*/
|
|
1688
|
+
export interface Attachment {
|
|
1689
|
+
/**
|
|
1690
|
+
* URL for accessing the file.
|
|
1691
|
+
*/
|
|
1692
|
+
url: string;
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Original file name, when recorded.
|
|
1696
|
+
*/
|
|
1697
|
+
file_name?: string;
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
1701
|
+
* recorded.
|
|
1702
|
+
*/
|
|
1703
|
+
uploaded_at?: string;
|
|
1704
|
+
|
|
1705
|
+
/**
|
|
1706
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
1707
|
+
*/
|
|
1708
|
+
uploaded_by_id?: string;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
837
1711
|
/**
|
|
838
1712
|
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
839
1713
|
*/
|
|
@@ -849,6 +1723,40 @@ export namespace ReimbursementRetrieveResponse {
|
|
|
849
1723
|
value?: number;
|
|
850
1724
|
}
|
|
851
1725
|
|
|
1726
|
+
/**
|
|
1727
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
1728
|
+
*/
|
|
1729
|
+
export interface EndLocation {
|
|
1730
|
+
/**
|
|
1731
|
+
* Address of this point. Null when the point has no address.
|
|
1732
|
+
*/
|
|
1733
|
+
address?: string;
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1737
|
+
* has no coordinates.
|
|
1738
|
+
*/
|
|
1739
|
+
coordinates?: EndLocation.Coordinates;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
export namespace EndLocation {
|
|
1743
|
+
/**
|
|
1744
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
1745
|
+
* has no coordinates.
|
|
1746
|
+
*/
|
|
1747
|
+
export interface Coordinates {
|
|
1748
|
+
/**
|
|
1749
|
+
* Latitude of this point, in decimal degrees.
|
|
1750
|
+
*/
|
|
1751
|
+
latitude?: number;
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
* Longitude of this point, in decimal degrees.
|
|
1755
|
+
*/
|
|
1756
|
+
longitude?: number;
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
|
|
852
1760
|
/**
|
|
853
1761
|
* Vendor in the connected accounting system.
|
|
854
1762
|
*/
|
|
@@ -870,28 +1778,56 @@ export namespace ReimbursementRetrieveResponse {
|
|
|
870
1778
|
}
|
|
871
1779
|
|
|
872
1780
|
export interface LineItem {
|
|
1781
|
+
/**
|
|
1782
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
1783
|
+
* been assigned one yet.
|
|
1784
|
+
*/
|
|
1785
|
+
id?: string;
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* Whether this line is amortized.
|
|
1789
|
+
*/
|
|
1790
|
+
amortized?: boolean;
|
|
1791
|
+
|
|
873
1792
|
/**
|
|
874
1793
|
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
875
1794
|
*/
|
|
876
1795
|
amount?: LineItem.Amount;
|
|
877
1796
|
|
|
878
1797
|
/**
|
|
879
|
-
* ID of the
|
|
880
|
-
*
|
|
1798
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
1799
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
881
1800
|
*/
|
|
882
1801
|
category_id?: string;
|
|
883
1802
|
|
|
884
1803
|
/**
|
|
885
|
-
* Name of the
|
|
1804
|
+
* Name of the finance category.
|
|
886
1805
|
*/
|
|
887
1806
|
category_name?: string;
|
|
888
1807
|
|
|
889
1808
|
/**
|
|
890
|
-
* Selected dimension values, keyed by dimension ID.
|
|
891
|
-
*
|
|
1809
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
1810
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
1811
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
1812
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
892
1813
|
*/
|
|
893
1814
|
dimension_choices?: { [key: string]: LineItem.DimensionChoices };
|
|
894
1815
|
|
|
1816
|
+
/**
|
|
1817
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
1818
|
+
*/
|
|
1819
|
+
end_date?: string;
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* ERP amortization schedule associated with this line.
|
|
1823
|
+
*/
|
|
1824
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* ERP amortization template for this line.
|
|
1828
|
+
*/
|
|
1829
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
1830
|
+
|
|
895
1831
|
/**
|
|
896
1832
|
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
897
1833
|
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
@@ -905,10 +1841,31 @@ export namespace ReimbursementRetrieveResponse {
|
|
|
905
1841
|
*/
|
|
906
1842
|
gl_customer?: string;
|
|
907
1843
|
|
|
1844
|
+
/**
|
|
1845
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
1846
|
+
* available to retrieve this accounting tax code.
|
|
1847
|
+
*/
|
|
1848
|
+
gl_tax_code?: string;
|
|
1849
|
+
|
|
908
1850
|
/**
|
|
909
1851
|
* Memo entered on this split.
|
|
910
1852
|
*/
|
|
911
1853
|
memo?: string;
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
1857
|
+
*/
|
|
1858
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
1862
|
+
*/
|
|
1863
|
+
start_date?: string;
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* Total tax amount for this line in the merchant currency.
|
|
1867
|
+
*/
|
|
1868
|
+
tax_amount?: LineItem.TaxAmount;
|
|
912
1869
|
}
|
|
913
1870
|
|
|
914
1871
|
export namespace LineItem {
|
|
@@ -939,77 +1896,1297 @@ export namespace ReimbursementRetrieveResponse {
|
|
|
939
1896
|
label?: string;
|
|
940
1897
|
|
|
941
1898
|
/**
|
|
942
|
-
* ID of the selected
|
|
1899
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
1900
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
1901
|
+
* `/job-codes/{id}/`.
|
|
943
1902
|
*/
|
|
944
1903
|
value?: string;
|
|
945
1904
|
}
|
|
946
|
-
}
|
|
947
1905
|
|
|
948
|
-
/**
|
|
949
|
-
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
950
|
-
* decimal string.
|
|
951
|
-
*/
|
|
952
|
-
export interface MerchantAmount {
|
|
953
1906
|
/**
|
|
954
|
-
*
|
|
1907
|
+
* ERP amortization schedule associated with this line.
|
|
955
1908
|
*/
|
|
956
|
-
|
|
1909
|
+
export interface GlAmortizationSchedule {
|
|
1910
|
+
/**
|
|
1911
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
1912
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
1913
|
+
*/
|
|
1914
|
+
accounting_integration_id?: string;
|
|
957
1915
|
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
}
|
|
1916
|
+
/**
|
|
1917
|
+
* Number of amortization periods.
|
|
1918
|
+
*/
|
|
1919
|
+
amortization_period?: number;
|
|
963
1920
|
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
*/
|
|
971
|
-
id?: string;
|
|
1921
|
+
/**
|
|
1922
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
1923
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
1924
|
+
* indicate UTC. Null when not set.
|
|
1925
|
+
*/
|
|
1926
|
+
end_date?: string;
|
|
972
1927
|
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
name?: string;
|
|
1928
|
+
/**
|
|
1929
|
+
* Object ID in the connected accounting system.
|
|
1930
|
+
*/
|
|
1931
|
+
gl_object_id?: string;
|
|
978
1932
|
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1933
|
+
/**
|
|
1934
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
1935
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
1936
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
1937
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
1938
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
1939
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
1940
|
+
* when not set.
|
|
1941
|
+
*/
|
|
1942
|
+
gl_object_type?:
|
|
1943
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
1944
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
1945
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
1946
|
+
| 'GL_ACCOUNT'
|
|
1947
|
+
| 'GL_JOURNAL_ENTRY'
|
|
1948
|
+
| 'GL_POSTING_PERIOD'
|
|
1949
|
+
| 'GL_VENDOR'
|
|
1950
|
+
| 'GL_CUSTOMER'
|
|
1951
|
+
| 'GL_EMPLOYEE'
|
|
1952
|
+
| 'GL_SUBSIDIARY';
|
|
983
1953
|
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
}
|
|
1954
|
+
/**
|
|
1955
|
+
* Accounting object name.
|
|
1956
|
+
*/
|
|
1957
|
+
name?: string;
|
|
989
1958
|
|
|
990
|
-
export namespace MileageRate {
|
|
991
|
-
/**
|
|
992
|
-
* Amount per distance unit. The `value` is a decimal string.
|
|
993
|
-
*/
|
|
994
|
-
export interface Rate {
|
|
995
1959
|
/**
|
|
996
|
-
*
|
|
1960
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
1961
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
1962
|
+
* indicate UTC. Null when not set.
|
|
997
1963
|
*/
|
|
998
|
-
|
|
1964
|
+
start_date?: string;
|
|
999
1965
|
|
|
1000
1966
|
/**
|
|
1001
|
-
*
|
|
1967
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
1968
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
1969
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
1002
1970
|
*/
|
|
1003
|
-
|
|
1971
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
1972
|
+
|
|
1973
|
+
/**
|
|
1974
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
1975
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
1976
|
+
* not available in this response.
|
|
1977
|
+
*/
|
|
1978
|
+
total_amortized_amount?: number;
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
1982
|
+
* schedule currency code is not available in this response.
|
|
1983
|
+
*/
|
|
1984
|
+
total_amount?: number;
|
|
1004
1985
|
}
|
|
1005
|
-
}
|
|
1006
1986
|
|
|
1007
|
-
/**
|
|
1008
|
-
* Amount credited to the worker. The `value` is a decimal string.
|
|
1009
|
-
*/
|
|
1010
|
-
export interface PayoutAmount {
|
|
1011
1987
|
/**
|
|
1012
|
-
*
|
|
1988
|
+
* ERP amortization template for this line.
|
|
1989
|
+
*/
|
|
1990
|
+
export interface GlAmortizationTemplate {
|
|
1991
|
+
/**
|
|
1992
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
1993
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
1994
|
+
*/
|
|
1995
|
+
accounting_integration_id?: string;
|
|
1996
|
+
|
|
1997
|
+
/**
|
|
1998
|
+
* Object ID in the connected accounting system.
|
|
1999
|
+
*/
|
|
2000
|
+
gl_object_id?: string;
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
2004
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
2005
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
2006
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
2007
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
2008
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
2009
|
+
* when not set.
|
|
2010
|
+
*/
|
|
2011
|
+
gl_object_type?:
|
|
2012
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
2013
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
2014
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
2015
|
+
| 'GL_ACCOUNT'
|
|
2016
|
+
| 'GL_JOURNAL_ENTRY'
|
|
2017
|
+
| 'GL_POSTING_PERIOD'
|
|
2018
|
+
| 'GL_VENDOR'
|
|
2019
|
+
| 'GL_CUSTOMER'
|
|
2020
|
+
| 'GL_EMPLOYEE'
|
|
2021
|
+
| 'GL_SUBSIDIARY';
|
|
2022
|
+
|
|
2023
|
+
/**
|
|
2024
|
+
* Accounting object name.
|
|
2025
|
+
*/
|
|
2026
|
+
name?: string;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
/**
|
|
2030
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
2031
|
+
*/
|
|
2032
|
+
export interface PrepaidAccount {
|
|
2033
|
+
/**
|
|
2034
|
+
* Account ID in the connected accounting system.
|
|
2035
|
+
*/
|
|
2036
|
+
account_id?: string;
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* Account code.
|
|
2040
|
+
*/
|
|
2041
|
+
code?: string;
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Account name.
|
|
2045
|
+
*/
|
|
2046
|
+
name?: string;
|
|
2047
|
+
|
|
2048
|
+
/**
|
|
2049
|
+
* IDs of custom dimensions required by this account.
|
|
2050
|
+
*/
|
|
2051
|
+
required_custom_dimensions?: Array<string>;
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* Whether this account requires a department.
|
|
2055
|
+
*/
|
|
2056
|
+
requires_department?: boolean;
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* Whether this account requires a work location.
|
|
2060
|
+
*/
|
|
2061
|
+
requires_work_location?: boolean;
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
2065
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
2066
|
+
* when not set.
|
|
2067
|
+
*/
|
|
2068
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* Total tax amount for this line in the merchant currency.
|
|
2073
|
+
*/
|
|
2074
|
+
export interface TaxAmount {
|
|
2075
|
+
/**
|
|
2076
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2077
|
+
*/
|
|
2078
|
+
currency_type?: string;
|
|
2079
|
+
|
|
2080
|
+
/**
|
|
2081
|
+
* The decimal amount for the currency.
|
|
2082
|
+
*/
|
|
2083
|
+
value?: number;
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
/**
|
|
2088
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
2089
|
+
* decimal string.
|
|
2090
|
+
*/
|
|
2091
|
+
export interface MerchantAmount {
|
|
2092
|
+
/**
|
|
2093
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2094
|
+
*/
|
|
2095
|
+
currency_type?: string;
|
|
2096
|
+
|
|
2097
|
+
/**
|
|
2098
|
+
* The decimal amount for the currency.
|
|
2099
|
+
*/
|
|
2100
|
+
value?: number;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
2105
|
+
* `reimbursements.read`.
|
|
2106
|
+
*
|
|
2107
|
+
* Expandable field
|
|
2108
|
+
*/
|
|
2109
|
+
export interface MileageRate {
|
|
2110
|
+
/**
|
|
2111
|
+
* Company mileage rate ID.
|
|
2112
|
+
*/
|
|
2113
|
+
id: string;
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
* When the mileage rate was created, as an ISO 8601 date-time in UTC.
|
|
2117
|
+
*/
|
|
2118
|
+
created_at: string;
|
|
2119
|
+
|
|
2120
|
+
/**
|
|
2121
|
+
* When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
|
|
2122
|
+
*/
|
|
2123
|
+
updated_at: string;
|
|
2124
|
+
|
|
2125
|
+
/**
|
|
2126
|
+
* ISO 3166-1 alpha-2 country code.
|
|
2127
|
+
*/
|
|
2128
|
+
country?: string;
|
|
2129
|
+
|
|
2130
|
+
/**
|
|
2131
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
2132
|
+
*/
|
|
2133
|
+
end_date?: string;
|
|
2134
|
+
|
|
2135
|
+
/**
|
|
2136
|
+
* Whether an additional half cent per distance unit applies.
|
|
2137
|
+
*/
|
|
2138
|
+
half_cent?: boolean;
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
* Company-defined label for this mileage rate, such as the rate used for a country
|
|
2142
|
+
* or vehicle type.
|
|
2143
|
+
*/
|
|
2144
|
+
name?: string;
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
2148
|
+
*/
|
|
2149
|
+
rate?: MileageRate.Rate;
|
|
2150
|
+
|
|
2151
|
+
/**
|
|
2152
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
2153
|
+
*/
|
|
2154
|
+
start_date?: string;
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* Distance unit, mi or km.
|
|
2158
|
+
*/
|
|
2159
|
+
units?: 'km' | 'mi';
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
export namespace MileageRate {
|
|
2163
|
+
/**
|
|
2164
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
2165
|
+
*/
|
|
2166
|
+
export interface Rate {
|
|
2167
|
+
/**
|
|
2168
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2169
|
+
*/
|
|
2170
|
+
currency_type?: string;
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* The decimal amount for the currency.
|
|
2174
|
+
*/
|
|
2175
|
+
value?: number;
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
/**
|
|
2180
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
2181
|
+
*/
|
|
2182
|
+
export interface PayoutAmount {
|
|
2183
|
+
/**
|
|
2184
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2185
|
+
*/
|
|
2186
|
+
currency_type?: string;
|
|
2187
|
+
|
|
2188
|
+
/**
|
|
2189
|
+
* The decimal amount for the currency.
|
|
2190
|
+
*/
|
|
2191
|
+
value?: number;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
export interface PerDiemLineItem {
|
|
2195
|
+
/**
|
|
2196
|
+
* Sub-rate amount for one unit. The `value` is a decimal string.
|
|
2197
|
+
*/
|
|
2198
|
+
amount?: PerDiemLineItem.Amount;
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* amount times count. The `value` is a decimal string. Negative when line_type is
|
|
2202
|
+
* EXCLUDE.
|
|
2203
|
+
*/
|
|
2204
|
+
calculated_amount?: PerDiemLineItem.CalculatedAmount;
|
|
2205
|
+
|
|
2206
|
+
/**
|
|
2207
|
+
* How many units.
|
|
2208
|
+
*/
|
|
2209
|
+
count?: number;
|
|
2210
|
+
|
|
2211
|
+
/**
|
|
2212
|
+
* Sub-rate label.
|
|
2213
|
+
*/
|
|
2214
|
+
label?: string;
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
* `INCLUDE`: this row is added to the reimbursement. `EXCLUDE`: this row is
|
|
2218
|
+
* subtracted. `calculated_amount.value` is negative when excluded.
|
|
2219
|
+
*/
|
|
2220
|
+
line_type?: 'INCLUDE' | 'EXCLUDE';
|
|
2221
|
+
|
|
2222
|
+
/**
|
|
2223
|
+
* Per diem sub-rate ID.
|
|
2224
|
+
*/
|
|
2225
|
+
sub_rate_id?: string;
|
|
2226
|
+
|
|
2227
|
+
/**
|
|
2228
|
+
* `FULL_DAY`: the full daily allowance. `MEALS`: the meals portion of the daily
|
|
2229
|
+
* allowance. `OTHERS`: an allowance that is not the full day or meals.
|
|
2230
|
+
*/
|
|
2231
|
+
sub_rate_type?: 'FULL_DAY' | 'MEALS' | 'OTHERS';
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
export namespace PerDiemLineItem {
|
|
2235
|
+
/**
|
|
2236
|
+
* Sub-rate amount for one unit. The `value` is a decimal string.
|
|
2237
|
+
*/
|
|
2238
|
+
export interface Amount {
|
|
2239
|
+
/**
|
|
2240
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2241
|
+
*/
|
|
2242
|
+
currency_type?: string;
|
|
2243
|
+
|
|
2244
|
+
/**
|
|
2245
|
+
* The decimal amount for the currency.
|
|
2246
|
+
*/
|
|
2247
|
+
value?: number;
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* amount times count. The `value` is a decimal string. Negative when line_type is
|
|
2252
|
+
* EXCLUDE.
|
|
2253
|
+
*/
|
|
2254
|
+
export interface CalculatedAmount {
|
|
2255
|
+
/**
|
|
2256
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2257
|
+
*/
|
|
2258
|
+
currency_type?: string;
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* The decimal amount for the currency.
|
|
2262
|
+
*/
|
|
2263
|
+
value?: number;
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
/**
|
|
2268
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
2269
|
+
* `reimbursements.read`.
|
|
2270
|
+
*
|
|
2271
|
+
* Expandable field
|
|
2272
|
+
*/
|
|
2273
|
+
export interface PerDiemRate {
|
|
2274
|
+
/**
|
|
2275
|
+
* Per diem rate ID.
|
|
2276
|
+
*/
|
|
2277
|
+
id: string;
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* When the per diem rate was created, as an ISO 8601 date-time in UTC.
|
|
2281
|
+
*/
|
|
2282
|
+
created_at: string;
|
|
2283
|
+
|
|
2284
|
+
/**
|
|
2285
|
+
* When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
|
|
2286
|
+
*/
|
|
2287
|
+
updated_at: string;
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
|
|
2291
|
+
* US.
|
|
2292
|
+
*/
|
|
2293
|
+
country?: string;
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* Currency of the per diem rate, as an ISO 4217 code. Example: USD.
|
|
2297
|
+
*/
|
|
2298
|
+
currency?: string;
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* Place this per diem rate applies to, such as a city.
|
|
2302
|
+
*/
|
|
2303
|
+
destination_name?: string;
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
2307
|
+
*/
|
|
2308
|
+
end_date?: string;
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* Whether the rate is archived. Archived rates remain readable for historical
|
|
2312
|
+
* references.
|
|
2313
|
+
*/
|
|
2314
|
+
is_archived?: boolean;
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* Whether this is the current version of the rate.
|
|
2318
|
+
*/
|
|
2319
|
+
is_current?: boolean;
|
|
2320
|
+
|
|
2321
|
+
/**
|
|
2322
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
2323
|
+
*/
|
|
2324
|
+
start_date?: string;
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
/**
|
|
2328
|
+
* Receipt file and its filename.
|
|
2329
|
+
*/
|
|
2330
|
+
export interface Receipt {
|
|
2331
|
+
/**
|
|
2332
|
+
* URL for accessing the file.
|
|
2333
|
+
*/
|
|
2334
|
+
url: string;
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* Original file name, when recorded.
|
|
2338
|
+
*/
|
|
2339
|
+
file_name?: string;
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
/**
|
|
2343
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
2344
|
+
*/
|
|
2345
|
+
export interface StartLocation {
|
|
2346
|
+
/**
|
|
2347
|
+
* Address of this point. Null when the point has no address.
|
|
2348
|
+
*/
|
|
2349
|
+
address?: string;
|
|
2350
|
+
|
|
2351
|
+
/**
|
|
2352
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
2353
|
+
* has no coordinates.
|
|
2354
|
+
*/
|
|
2355
|
+
coordinates?: StartLocation.Coordinates;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
export namespace StartLocation {
|
|
2359
|
+
/**
|
|
2360
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
2361
|
+
* has no coordinates.
|
|
2362
|
+
*/
|
|
2363
|
+
export interface Coordinates {
|
|
2364
|
+
/**
|
|
2365
|
+
* Latitude of this point, in decimal degrees.
|
|
2366
|
+
*/
|
|
2367
|
+
latitude?: number;
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* Longitude of this point, in decimal degrees.
|
|
2371
|
+
*/
|
|
2372
|
+
longitude?: number;
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
/**
|
|
2377
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
2378
|
+
*
|
|
2379
|
+
* Expandable field
|
|
2380
|
+
*/
|
|
2381
|
+
export interface Vendor {
|
|
2382
|
+
/**
|
|
2383
|
+
* Identifier field
|
|
2384
|
+
*/
|
|
2385
|
+
id: string;
|
|
2386
|
+
|
|
2387
|
+
/**
|
|
2388
|
+
* Record creation date
|
|
2389
|
+
*/
|
|
2390
|
+
created_at: string;
|
|
2391
|
+
|
|
2392
|
+
/**
|
|
2393
|
+
* Record update date
|
|
2394
|
+
*/
|
|
2395
|
+
updated_at: string;
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
2399
|
+
* references.
|
|
2400
|
+
*/
|
|
2401
|
+
is_archived?: boolean;
|
|
2402
|
+
|
|
2403
|
+
/**
|
|
2404
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
2405
|
+
*/
|
|
2406
|
+
logo?: string;
|
|
2407
|
+
|
|
2408
|
+
/**
|
|
2409
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
2410
|
+
* alternate names.
|
|
2411
|
+
*/
|
|
2412
|
+
name?: string;
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
/**
|
|
2416
|
+
* Start, end, or intermediate stop on a mileage trip.
|
|
2417
|
+
*/
|
|
2418
|
+
export interface Waypoint {
|
|
2419
|
+
/**
|
|
2420
|
+
* Address of this point. Null when the point has no address.
|
|
2421
|
+
*/
|
|
2422
|
+
address?: string;
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
2426
|
+
* has no coordinates.
|
|
2427
|
+
*/
|
|
2428
|
+
coordinates?: Waypoint.Coordinates;
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
export namespace Waypoint {
|
|
2432
|
+
/**
|
|
2433
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
2434
|
+
* has no coordinates.
|
|
2435
|
+
*/
|
|
2436
|
+
export interface Coordinates {
|
|
2437
|
+
/**
|
|
2438
|
+
* Latitude of this point, in decimal degrees.
|
|
2439
|
+
*/
|
|
2440
|
+
latitude?: number;
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* Longitude of this point, in decimal degrees.
|
|
2444
|
+
*/
|
|
2445
|
+
longitude?: number;
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* A Finance reimbursement the caller can see.
|
|
2452
|
+
*
|
|
2453
|
+
* A reimbursement is an expense the worker paid and the company pays back. Mileage and per diem
|
|
2454
|
+
* use the same resource, with transaction_type MILEAGE_REIMBURSEMENT or PER_DIEM_REIMBURSEMENT.
|
|
2455
|
+
* Retrieve returns one by ID. A reimbursement the caller cannot see returns 404, the same as one
|
|
2456
|
+
* that does not exist. PATCH `/reimbursements/{id}/` accepts only `line_items` and replaces the entire list.
|
|
2457
|
+
* Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
|
|
2458
|
+
* objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
|
|
2459
|
+
* The sum of request `amount` values must equal the reimbursement's merchant amount.
|
|
2460
|
+
*/
|
|
2461
|
+
export interface ReimbursementUpdateResponse {
|
|
2462
|
+
/**
|
|
2463
|
+
* Identifier field
|
|
2464
|
+
*/
|
|
2465
|
+
id: string;
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* Record creation date
|
|
2469
|
+
*/
|
|
2470
|
+
created_at: string;
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* Record update date
|
|
2474
|
+
*/
|
|
2475
|
+
updated_at: string;
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* Date the transaction is booked in the accounting system, as an ISO 8601 date
|
|
2479
|
+
* (YYYY-MM-DD).
|
|
2480
|
+
*/
|
|
2481
|
+
accounting_date?: string;
|
|
2482
|
+
|
|
2483
|
+
/**
|
|
2484
|
+
* Approval status of the transaction. `DRAFT`: not submitted for approval.
|
|
2485
|
+
* `PENDING`: awaiting required information or submission before approval.
|
|
2486
|
+
* `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`:
|
|
2487
|
+
* rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or
|
|
2488
|
+
* reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null
|
|
2489
|
+
* for card authorizations.
|
|
2490
|
+
*/
|
|
2491
|
+
approval_status?:
|
|
2492
|
+
| 'DRAFT'
|
|
2493
|
+
| 'PENDING'
|
|
2494
|
+
| 'REQUESTED'
|
|
2495
|
+
| 'APPROVED'
|
|
2496
|
+
| 'REJECTED'
|
|
2497
|
+
| 'FINALIZED'
|
|
2498
|
+
| 'ACTIONED'
|
|
2499
|
+
| 'CANCELLED'
|
|
2500
|
+
| 'FAILED';
|
|
2501
|
+
|
|
2502
|
+
/**
|
|
2503
|
+
* Other attached files, including filenames and recorded upload metadata.
|
|
2504
|
+
*/
|
|
2505
|
+
attachments?: Array<ReimbursementUpdateResponse.Attachment>;
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
2509
|
+
*/
|
|
2510
|
+
company_amount?: ReimbursementUpdateResponse.CompanyAmount;
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* Trip length in mileage_rate.units. Null except on mileage reimbursements.
|
|
2514
|
+
*/
|
|
2515
|
+
distance?: number;
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
2519
|
+
*/
|
|
2520
|
+
end_location?: ReimbursementUpdateResponse.EndLocation;
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
* ID of the legal entity the transaction belongs to. Use it with
|
|
2524
|
+
* `/company-legal-entities/{id}/`.
|
|
2525
|
+
*/
|
|
2526
|
+
entity_id?: string;
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
* State of the sync to the accounting system. `NOT_FINALIZED`: not ready for
|
|
2530
|
+
* accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`:
|
|
2531
|
+
* sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync
|
|
2532
|
+
* failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for
|
|
2533
|
+
* accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to
|
|
2534
|
+
* be synced automatically. Null when no sync state is set.
|
|
2535
|
+
*/
|
|
2536
|
+
gl_sync_state?:
|
|
2537
|
+
| 'NOT_FINALIZED'
|
|
2538
|
+
| 'FOR_REVIEW'
|
|
2539
|
+
| 'PENDING_SYNC'
|
|
2540
|
+
| 'SYNCED'
|
|
2541
|
+
| 'ERROR'
|
|
2542
|
+
| 'DO_NOT_SYNC'
|
|
2543
|
+
| 'EXPORTED'
|
|
2544
|
+
| 'NOT_SYNCABLE'
|
|
2545
|
+
| 'AUTO_SYNC';
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* Vendor in the connected accounting system.
|
|
2549
|
+
*/
|
|
2550
|
+
gl_vendor?: ReimbursementUpdateResponse.GlVendor;
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
2554
|
+
*/
|
|
2555
|
+
line_items?: Array<ReimbursementUpdateResponse.LineItem>;
|
|
2556
|
+
|
|
2557
|
+
/**
|
|
2558
|
+
* Memo entered on the transaction.
|
|
2559
|
+
*/
|
|
2560
|
+
memo?: string;
|
|
2561
|
+
|
|
2562
|
+
/**
|
|
2563
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
2564
|
+
* decimal string.
|
|
2565
|
+
*/
|
|
2566
|
+
merchant_amount?: ReimbursementUpdateResponse.MerchantAmount;
|
|
2567
|
+
|
|
2568
|
+
/**
|
|
2569
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
2570
|
+
* `reimbursements.read`.
|
|
2571
|
+
*
|
|
2572
|
+
* Expandable field
|
|
2573
|
+
*/
|
|
2574
|
+
mileage_rate?: ReimbursementUpdateResponse.MileageRate;
|
|
2575
|
+
|
|
2576
|
+
/**
|
|
2577
|
+
* ID of the company mileage rate. Null except on mileage reimbursements. Resolve
|
|
2578
|
+
* it with `expand=mileage_rate` on this reimbursement using `reimbursements.read`;
|
|
2579
|
+
* there is no standalone rate lookup endpoint.
|
|
2580
|
+
*/
|
|
2581
|
+
mileage_rate_id?: string;
|
|
2582
|
+
|
|
2583
|
+
/**
|
|
2584
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
2585
|
+
*/
|
|
2586
|
+
payout_amount?: ReimbursementUpdateResponse.PayoutAmount;
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* Date the worker is paid, as an ISO 8601 date (YYYY-MM-DD). Null before a run is
|
|
2590
|
+
* assigned.
|
|
2591
|
+
*/
|
|
2592
|
+
payout_date?: string;
|
|
2593
|
+
|
|
2594
|
+
/**
|
|
2595
|
+
* How the worker is paid. `NOT_SET`: no payout run is assigned. `US_PAYROLL`:
|
|
2596
|
+
* assigned to a US payroll run. `GLOBAL_PAYROLL`: assigned to a global payroll
|
|
2597
|
+
* run. `DIRECT_DEPOSIT`: assigned to a direct deposit run. `EOR`: assigned to an
|
|
2598
|
+
* employer-of-record payroll run. `MANUAL`: marked paid outside a run. If a payout
|
|
2599
|
+
* method override is set, it is returned.
|
|
2600
|
+
*/
|
|
2601
|
+
payout_method?: 'NOT_SET' | 'GLOBAL_PAYROLL' | 'US_PAYROLL' | 'DIRECT_DEPOSIT' | 'EOR' | 'MANUAL';
|
|
2602
|
+
|
|
2603
|
+
/**
|
|
2604
|
+
* Per diem sub-rate rows. Null except on per diem reimbursements.
|
|
2605
|
+
*/
|
|
2606
|
+
per_diem_line_items?: Array<ReimbursementUpdateResponse.PerDiemLineItem>;
|
|
2607
|
+
|
|
2608
|
+
/**
|
|
2609
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
2610
|
+
* `reimbursements.read`.
|
|
2611
|
+
*
|
|
2612
|
+
* Expandable field
|
|
2613
|
+
*/
|
|
2614
|
+
per_diem_rate?: ReimbursementUpdateResponse.PerDiemRate;
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* ID of the per diem rate. Null except on per diem reimbursements. Resolve it with
|
|
2618
|
+
* `expand=per_diem_rate` on this reimbursement using `reimbursements.read`; there
|
|
2619
|
+
* is no standalone rate lookup endpoint.
|
|
2620
|
+
*/
|
|
2621
|
+
per_diem_rate_id?: string;
|
|
2622
|
+
|
|
2623
|
+
/**
|
|
2624
|
+
* Receipt file and its filename.
|
|
2625
|
+
*/
|
|
2626
|
+
receipt?: ReimbursementUpdateResponse.Receipt;
|
|
2627
|
+
|
|
2628
|
+
/**
|
|
2629
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
2630
|
+
*/
|
|
2631
|
+
start_location?: ReimbursementUpdateResponse.StartLocation;
|
|
2632
|
+
|
|
2633
|
+
/**
|
|
2634
|
+
* When the purchase or authorization happened, as an ISO 8601 date-time in UTC.
|
|
2635
|
+
*/
|
|
2636
|
+
transaction_date?: string;
|
|
2637
|
+
|
|
2638
|
+
/**
|
|
2639
|
+
* `REIMBURSEMENT`: an expense the worker paid and the company pays back.
|
|
2640
|
+
* `MILEAGE_REIMBURSEMENT`: payback for distance driven. `PER_DIEM_REIMBURSEMENT`:
|
|
2641
|
+
* payback for a daily travel allowance. This decides which mileage or per diem
|
|
2642
|
+
* fields are set.
|
|
2643
|
+
*/
|
|
2644
|
+
transaction_type?: 'REIMBURSEMENT' | 'MILEAGE_REIMBURSEMENT' | 'PER_DIEM_REIMBURSEMENT';
|
|
2645
|
+
|
|
2646
|
+
/**
|
|
2647
|
+
* Per diem trip end date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
|
|
2648
|
+
* diem reimbursements.
|
|
2649
|
+
*/
|
|
2650
|
+
trip_end_date?: string;
|
|
2651
|
+
|
|
2652
|
+
/**
|
|
2653
|
+
* Per diem trip start date, as an ISO 8601 date (YYYY-MM-DD). Null except on per
|
|
2654
|
+
* diem reimbursements.
|
|
2655
|
+
*/
|
|
2656
|
+
trip_start_date?: string;
|
|
2657
|
+
|
|
2658
|
+
/**
|
|
2659
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
2660
|
+
*
|
|
2661
|
+
* Expandable field
|
|
2662
|
+
*/
|
|
2663
|
+
vendor?: ReimbursementUpdateResponse.Vendor;
|
|
2664
|
+
|
|
2665
|
+
/**
|
|
2666
|
+
* ID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
|
|
2667
|
+
*/
|
|
2668
|
+
vendor_id?: string;
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* List of intermediate stops during the trip, for mileage reimbursements. Null
|
|
2672
|
+
* except on mileage reimbursements.
|
|
2673
|
+
*/
|
|
2674
|
+
waypoints?: Array<ReimbursementUpdateResponse.Waypoint>;
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* Worker details. Expand with `reimbursements.read` and `workers.read`.
|
|
2678
|
+
*
|
|
2679
|
+
* Expandable field
|
|
2680
|
+
*/
|
|
2681
|
+
worker?: WorkersAPI.Worker;
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* ID of the worker who made the transaction. Use it with `/workers/{id}/`.
|
|
2685
|
+
*/
|
|
2686
|
+
worker_id?: string;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
export namespace ReimbursementUpdateResponse {
|
|
2690
|
+
/**
|
|
2691
|
+
* A Finance transaction attachment with recorded upload details.
|
|
2692
|
+
*/
|
|
2693
|
+
export interface Attachment {
|
|
2694
|
+
/**
|
|
2695
|
+
* URL for accessing the file.
|
|
2696
|
+
*/
|
|
2697
|
+
url: string;
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* Original file name, when recorded.
|
|
2701
|
+
*/
|
|
2702
|
+
file_name?: string;
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* When the attachment was uploaded, as an ISO 8601 date-time in UTC, when
|
|
2706
|
+
* recorded.
|
|
2707
|
+
*/
|
|
2708
|
+
uploaded_at?: string;
|
|
2709
|
+
|
|
2710
|
+
/**
|
|
2711
|
+
* ID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
|
|
2712
|
+
*/
|
|
2713
|
+
uploaded_by_id?: string;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* Amount in the company's headquarters currency. The `value` is a decimal string.
|
|
2718
|
+
*/
|
|
2719
|
+
export interface CompanyAmount {
|
|
2720
|
+
/**
|
|
2721
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2722
|
+
*/
|
|
2723
|
+
currency_type?: string;
|
|
2724
|
+
|
|
2725
|
+
/**
|
|
2726
|
+
* The decimal amount for the currency.
|
|
2727
|
+
*/
|
|
2728
|
+
value?: number;
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* End of a mileage trip. Null except on mileage reimbursements.
|
|
2733
|
+
*/
|
|
2734
|
+
export interface EndLocation {
|
|
2735
|
+
/**
|
|
2736
|
+
* Address of this point. Null when the point has no address.
|
|
2737
|
+
*/
|
|
2738
|
+
address?: string;
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
2742
|
+
* has no coordinates.
|
|
2743
|
+
*/
|
|
2744
|
+
coordinates?: EndLocation.Coordinates;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
export namespace EndLocation {
|
|
2748
|
+
/**
|
|
2749
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
2750
|
+
* has no coordinates.
|
|
2751
|
+
*/
|
|
2752
|
+
export interface Coordinates {
|
|
2753
|
+
/**
|
|
2754
|
+
* Latitude of this point, in decimal degrees.
|
|
2755
|
+
*/
|
|
2756
|
+
latitude?: number;
|
|
2757
|
+
|
|
2758
|
+
/**
|
|
2759
|
+
* Longitude of this point, in decimal degrees.
|
|
2760
|
+
*/
|
|
2761
|
+
longitude?: number;
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
/**
|
|
2766
|
+
* Vendor in the connected accounting system.
|
|
2767
|
+
*/
|
|
2768
|
+
export interface GlVendor {
|
|
2769
|
+
/**
|
|
2770
|
+
* ID of the accounting vendor in Rippling.
|
|
2771
|
+
*/
|
|
2772
|
+
id?: string;
|
|
2773
|
+
|
|
2774
|
+
/**
|
|
2775
|
+
* ID of the vendor in the accounting system.
|
|
2776
|
+
*/
|
|
2777
|
+
gl_vendor_id?: string;
|
|
2778
|
+
|
|
2779
|
+
/**
|
|
2780
|
+
* Name of the vendor in the accounting system.
|
|
2781
|
+
*/
|
|
2782
|
+
name?: string;
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
export interface LineItem {
|
|
2786
|
+
/**
|
|
2787
|
+
* Unique identifier of this line item. Null for older line items that have not
|
|
2788
|
+
* been assigned one yet.
|
|
2789
|
+
*/
|
|
2790
|
+
id?: string;
|
|
2791
|
+
|
|
2792
|
+
/**
|
|
2793
|
+
* Whether this line is amortized.
|
|
2794
|
+
*/
|
|
2795
|
+
amortized?: boolean;
|
|
2796
|
+
|
|
2797
|
+
/**
|
|
2798
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
2799
|
+
*/
|
|
2800
|
+
amount?: LineItem.Amount;
|
|
2801
|
+
|
|
2802
|
+
/**
|
|
2803
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
2804
|
+
* `/finance-categories/{id}/`. The category name is in `category_name`.
|
|
2805
|
+
*/
|
|
2806
|
+
category_id?: string;
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
* Name of the finance category.
|
|
2810
|
+
*/
|
|
2811
|
+
category_name?: string;
|
|
2812
|
+
|
|
2813
|
+
/**
|
|
2814
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
2815
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
2816
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each choice `value` is a job
|
|
2817
|
+
* code ID from `/job-codes/` and `/job-codes/{id}/`.
|
|
2818
|
+
*/
|
|
2819
|
+
dimension_choices?: { [key: string]: LineItem.DimensionChoices };
|
|
2820
|
+
|
|
2821
|
+
/**
|
|
2822
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
2823
|
+
*/
|
|
2824
|
+
end_date?: string;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* ERP amortization schedule associated with this line.
|
|
2828
|
+
*/
|
|
2829
|
+
gl_amortization_schedule?: LineItem.GlAmortizationSchedule;
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* ERP amortization template for this line.
|
|
2833
|
+
*/
|
|
2834
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
2835
|
+
|
|
2836
|
+
/**
|
|
2837
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
2838
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
2839
|
+
* set.
|
|
2840
|
+
*/
|
|
2841
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
2842
|
+
|
|
2843
|
+
/**
|
|
2844
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
2845
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
2846
|
+
*/
|
|
2847
|
+
gl_customer?: string;
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
2851
|
+
* available to retrieve this accounting tax code.
|
|
2852
|
+
*/
|
|
2853
|
+
gl_tax_code?: string;
|
|
2854
|
+
|
|
2855
|
+
/**
|
|
2856
|
+
* Memo entered on this split.
|
|
2857
|
+
*/
|
|
2858
|
+
memo?: string;
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
2862
|
+
*/
|
|
2863
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
2864
|
+
|
|
2865
|
+
/**
|
|
2866
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
2867
|
+
*/
|
|
2868
|
+
start_date?: string;
|
|
2869
|
+
|
|
2870
|
+
/**
|
|
2871
|
+
* Total tax amount for this line in the merchant currency.
|
|
2872
|
+
*/
|
|
2873
|
+
tax_amount?: LineItem.TaxAmount;
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
export namespace LineItem {
|
|
2877
|
+
/**
|
|
2878
|
+
* Amount of this split, in the merchant currency. The `value` is a decimal string.
|
|
2879
|
+
*/
|
|
2880
|
+
export interface Amount {
|
|
2881
|
+
/**
|
|
2882
|
+
* The currency type, ex: USD, EUR, etc.
|
|
2883
|
+
*/
|
|
2884
|
+
currency_type?: string;
|
|
2885
|
+
|
|
2886
|
+
/**
|
|
2887
|
+
* The decimal amount for the currency.
|
|
2888
|
+
*/
|
|
2889
|
+
value?: number;
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
export interface DimensionChoices {
|
|
2893
|
+
/**
|
|
2894
|
+
* Name of the dimension, such as Department.
|
|
2895
|
+
*/
|
|
2896
|
+
dimension_name?: string;
|
|
2897
|
+
|
|
2898
|
+
/**
|
|
2899
|
+
* Display name of the selected dimension value.
|
|
2900
|
+
*/
|
|
2901
|
+
label?: string;
|
|
2902
|
+
|
|
2903
|
+
/**
|
|
2904
|
+
* ID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for
|
|
2905
|
+
* `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use
|
|
2906
|
+
* `/job-codes/{id}/`.
|
|
2907
|
+
*/
|
|
2908
|
+
value?: string;
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2911
|
+
/**
|
|
2912
|
+
* ERP amortization schedule associated with this line.
|
|
2913
|
+
*/
|
|
2914
|
+
export interface GlAmortizationSchedule {
|
|
2915
|
+
/**
|
|
2916
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
2917
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
2918
|
+
*/
|
|
2919
|
+
accounting_integration_id?: string;
|
|
2920
|
+
|
|
2921
|
+
/**
|
|
2922
|
+
* Number of amortization periods.
|
|
2923
|
+
*/
|
|
2924
|
+
amortization_period?: number;
|
|
2925
|
+
|
|
2926
|
+
/**
|
|
2927
|
+
* End of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
2928
|
+
* 2026-12-31T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
2929
|
+
* indicate UTC. Null when not set.
|
|
2930
|
+
*/
|
|
2931
|
+
end_date?: string;
|
|
2932
|
+
|
|
2933
|
+
/**
|
|
2934
|
+
* Object ID in the connected accounting system.
|
|
2935
|
+
*/
|
|
2936
|
+
gl_object_id?: string;
|
|
2937
|
+
|
|
2938
|
+
/**
|
|
2939
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
2940
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
2941
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
2942
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
2943
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
2944
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
2945
|
+
* when not set.
|
|
2946
|
+
*/
|
|
2947
|
+
gl_object_type?:
|
|
2948
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
2949
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
2950
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
2951
|
+
| 'GL_ACCOUNT'
|
|
2952
|
+
| 'GL_JOURNAL_ENTRY'
|
|
2953
|
+
| 'GL_POSTING_PERIOD'
|
|
2954
|
+
| 'GL_VENDOR'
|
|
2955
|
+
| 'GL_CUSTOMER'
|
|
2956
|
+
| 'GL_EMPLOYEE'
|
|
2957
|
+
| 'GL_SUBSIDIARY';
|
|
2958
|
+
|
|
2959
|
+
/**
|
|
2960
|
+
* Accounting object name.
|
|
2961
|
+
*/
|
|
2962
|
+
name?: string;
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* Start of the ERP amortization schedule as an ISO 8601 timestamp (for example,
|
|
2966
|
+
* 2026-01-01T00:00:00). May omit a timezone offset; an omitted offset does not
|
|
2967
|
+
* indicate UTC. Null when not set.
|
|
2968
|
+
*/
|
|
2969
|
+
start_date?: string;
|
|
2970
|
+
|
|
2971
|
+
/**
|
|
2972
|
+
* ERP amortization schedule status: NOT_STARTED means amortization has not begun;
|
|
2973
|
+
* IN_PROGRESS means amortization is underway; COMPLETED means amortization is
|
|
2974
|
+
* complete; ON_HOLD means amortization is paused. Null when not set.
|
|
2975
|
+
*/
|
|
2976
|
+
status?: 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'ON_HOLD';
|
|
2977
|
+
|
|
2978
|
+
/**
|
|
2979
|
+
* Amount already amortized as reported by the ERP, in the same currency as
|
|
2980
|
+
* total_amount. No currency conversion is applied; the schedule currency code is
|
|
2981
|
+
* not available in this response.
|
|
2982
|
+
*/
|
|
2983
|
+
total_amortized_amount?: number;
|
|
2984
|
+
|
|
2985
|
+
/**
|
|
2986
|
+
* Total schedule amount as reported by the ERP, without currency conversion. The
|
|
2987
|
+
* schedule currency code is not available in this response.
|
|
2988
|
+
*/
|
|
2989
|
+
total_amount?: number;
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
/**
|
|
2993
|
+
* ERP amortization template for this line.
|
|
2994
|
+
*/
|
|
2995
|
+
export interface GlAmortizationTemplate {
|
|
2996
|
+
/**
|
|
2997
|
+
* Rippling ID of the accounting integration that owns this object. No public
|
|
2998
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
2999
|
+
*/
|
|
3000
|
+
accounting_integration_id?: string;
|
|
3001
|
+
|
|
3002
|
+
/**
|
|
3003
|
+
* Object ID in the connected accounting system.
|
|
3004
|
+
*/
|
|
3005
|
+
gl_object_id?: string;
|
|
3006
|
+
|
|
3007
|
+
/**
|
|
3008
|
+
* Type of object in the connected accounting system: GL_AMORTIZATION_TEMPLATE
|
|
3009
|
+
* defines amortization rules; GL_AMORTIZATION_SCHEDULE tracks amortization;
|
|
3010
|
+
* GL_AMORTIZATION_SCHEDULE_RECURRENCE is a schedule entry; GL_ACCOUNT is a general
|
|
3011
|
+
* ledger account; GL_JOURNAL_ENTRY is a journal entry; GL_POSTING_PERIOD is an
|
|
3012
|
+
* accounting period; GL_VENDOR, GL_CUSTOMER, and GL_EMPLOYEE identify a vendor,
|
|
3013
|
+
* customer, and employee respectively; GL_SUBSIDIARY identifies a subsidiary. Null
|
|
3014
|
+
* when not set.
|
|
3015
|
+
*/
|
|
3016
|
+
gl_object_type?:
|
|
3017
|
+
| 'GL_AMORTIZATION_TEMPLATE'
|
|
3018
|
+
| 'GL_AMORTIZATION_SCHEDULE'
|
|
3019
|
+
| 'GL_AMORTIZATION_SCHEDULE_RECURRENCE'
|
|
3020
|
+
| 'GL_ACCOUNT'
|
|
3021
|
+
| 'GL_JOURNAL_ENTRY'
|
|
3022
|
+
| 'GL_POSTING_PERIOD'
|
|
3023
|
+
| 'GL_VENDOR'
|
|
3024
|
+
| 'GL_CUSTOMER'
|
|
3025
|
+
| 'GL_EMPLOYEE'
|
|
3026
|
+
| 'GL_SUBSIDIARY';
|
|
3027
|
+
|
|
3028
|
+
/**
|
|
3029
|
+
* Accounting object name.
|
|
3030
|
+
*/
|
|
3031
|
+
name?: string;
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
/**
|
|
3035
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
3036
|
+
*/
|
|
3037
|
+
export interface PrepaidAccount {
|
|
3038
|
+
/**
|
|
3039
|
+
* Account ID in the connected accounting system.
|
|
3040
|
+
*/
|
|
3041
|
+
account_id?: string;
|
|
3042
|
+
|
|
3043
|
+
/**
|
|
3044
|
+
* Account code.
|
|
3045
|
+
*/
|
|
3046
|
+
code?: string;
|
|
3047
|
+
|
|
3048
|
+
/**
|
|
3049
|
+
* Account name.
|
|
3050
|
+
*/
|
|
3051
|
+
name?: string;
|
|
3052
|
+
|
|
3053
|
+
/**
|
|
3054
|
+
* IDs of custom dimensions required by this account.
|
|
3055
|
+
*/
|
|
3056
|
+
required_custom_dimensions?: Array<string>;
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* Whether this account requires a department.
|
|
3060
|
+
*/
|
|
3061
|
+
requires_department?: boolean;
|
|
3062
|
+
|
|
3063
|
+
/**
|
|
3064
|
+
* Whether this account requires a work location.
|
|
3065
|
+
*/
|
|
3066
|
+
requires_work_location?: boolean;
|
|
3067
|
+
|
|
3068
|
+
/**
|
|
3069
|
+
* Accounting account type: RECEIVABLE for accounts receivable, PAYABLE for
|
|
3070
|
+
* accounts payable, EXPENSE for expense accounts, or BANK for bank accounts. Null
|
|
3071
|
+
* when not set.
|
|
3072
|
+
*/
|
|
3073
|
+
type?: 'RECEIVABLE' | 'PAYABLE' | 'EXPENSE' | 'BANK';
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* Total tax amount for this line in the merchant currency.
|
|
3078
|
+
*/
|
|
3079
|
+
export interface TaxAmount {
|
|
3080
|
+
/**
|
|
3081
|
+
* The currency type, ex: USD, EUR, etc.
|
|
3082
|
+
*/
|
|
3083
|
+
currency_type?: string;
|
|
3084
|
+
|
|
3085
|
+
/**
|
|
3086
|
+
* The decimal amount for the currency.
|
|
3087
|
+
*/
|
|
3088
|
+
value?: number;
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
/**
|
|
3093
|
+
* Amount charged by the merchant, in the merchant currency. The `value` is a
|
|
3094
|
+
* decimal string.
|
|
3095
|
+
*/
|
|
3096
|
+
export interface MerchantAmount {
|
|
3097
|
+
/**
|
|
3098
|
+
* The currency type, ex: USD, EUR, etc.
|
|
3099
|
+
*/
|
|
3100
|
+
currency_type?: string;
|
|
3101
|
+
|
|
3102
|
+
/**
|
|
3103
|
+
* The decimal amount for the currency.
|
|
3104
|
+
*/
|
|
3105
|
+
value?: number;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
/**
|
|
3109
|
+
* Company mileage rate. Include with `expand=mileage_rate` using
|
|
3110
|
+
* `reimbursements.read`.
|
|
3111
|
+
*
|
|
3112
|
+
* Expandable field
|
|
3113
|
+
*/
|
|
3114
|
+
export interface MileageRate {
|
|
3115
|
+
/**
|
|
3116
|
+
* Company mileage rate ID.
|
|
3117
|
+
*/
|
|
3118
|
+
id: string;
|
|
3119
|
+
|
|
3120
|
+
/**
|
|
3121
|
+
* When the mileage rate was created, as an ISO 8601 date-time in UTC.
|
|
3122
|
+
*/
|
|
3123
|
+
created_at: string;
|
|
3124
|
+
|
|
3125
|
+
/**
|
|
3126
|
+
* When the mileage rate was last updated, as an ISO 8601 date-time in UTC.
|
|
3127
|
+
*/
|
|
3128
|
+
updated_at: string;
|
|
3129
|
+
|
|
3130
|
+
/**
|
|
3131
|
+
* ISO 3166-1 alpha-2 country code.
|
|
3132
|
+
*/
|
|
3133
|
+
country?: string;
|
|
3134
|
+
|
|
3135
|
+
/**
|
|
3136
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
3137
|
+
*/
|
|
3138
|
+
end_date?: string;
|
|
3139
|
+
|
|
3140
|
+
/**
|
|
3141
|
+
* Whether an additional half cent per distance unit applies.
|
|
3142
|
+
*/
|
|
3143
|
+
half_cent?: boolean;
|
|
3144
|
+
|
|
3145
|
+
/**
|
|
3146
|
+
* Company-defined label for this mileage rate, such as the rate used for a country
|
|
3147
|
+
* or vehicle type.
|
|
3148
|
+
*/
|
|
3149
|
+
name?: string;
|
|
3150
|
+
|
|
3151
|
+
/**
|
|
3152
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
3153
|
+
*/
|
|
3154
|
+
rate?: MileageRate.Rate;
|
|
3155
|
+
|
|
3156
|
+
/**
|
|
3157
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
3158
|
+
*/
|
|
3159
|
+
start_date?: string;
|
|
3160
|
+
|
|
3161
|
+
/**
|
|
3162
|
+
* Distance unit, mi or km.
|
|
3163
|
+
*/
|
|
3164
|
+
units?: 'km' | 'mi';
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
export namespace MileageRate {
|
|
3168
|
+
/**
|
|
3169
|
+
* Amount per distance unit. The `value` is a decimal string.
|
|
3170
|
+
*/
|
|
3171
|
+
export interface Rate {
|
|
3172
|
+
/**
|
|
3173
|
+
* The currency type, ex: USD, EUR, etc.
|
|
3174
|
+
*/
|
|
3175
|
+
currency_type?: string;
|
|
3176
|
+
|
|
3177
|
+
/**
|
|
3178
|
+
* The decimal amount for the currency.
|
|
3179
|
+
*/
|
|
3180
|
+
value?: number;
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
/**
|
|
3185
|
+
* Amount credited to the worker. The `value` is a decimal string.
|
|
3186
|
+
*/
|
|
3187
|
+
export interface PayoutAmount {
|
|
3188
|
+
/**
|
|
3189
|
+
* The currency type, ex: USD, EUR, etc.
|
|
1013
3190
|
*/
|
|
1014
3191
|
currency_type?: string;
|
|
1015
3192
|
|
|
@@ -1093,13 +3270,26 @@ export namespace ReimbursementRetrieveResponse {
|
|
|
1093
3270
|
}
|
|
1094
3271
|
|
|
1095
3272
|
/**
|
|
1096
|
-
* Per diem rate for the trip.
|
|
3273
|
+
* Per diem rate for the trip. Include with `expand=per_diem_rate` using
|
|
3274
|
+
* `reimbursements.read`.
|
|
3275
|
+
*
|
|
3276
|
+
* Expandable field
|
|
1097
3277
|
*/
|
|
1098
3278
|
export interface PerDiemRate {
|
|
1099
3279
|
/**
|
|
1100
3280
|
* Per diem rate ID.
|
|
1101
3281
|
*/
|
|
1102
|
-
id
|
|
3282
|
+
id: string;
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
* When the per diem rate was created, as an ISO 8601 date-time in UTC.
|
|
3286
|
+
*/
|
|
3287
|
+
created_at: string;
|
|
3288
|
+
|
|
3289
|
+
/**
|
|
3290
|
+
* When the per diem rate was last updated, as an ISO 8601 date-time in UTC.
|
|
3291
|
+
*/
|
|
3292
|
+
updated_at: string;
|
|
1103
3293
|
|
|
1104
3294
|
/**
|
|
1105
3295
|
* Country this per diem rate applies to, as an ISO 3166-1 alpha-2 code. Example:
|
|
@@ -1116,27 +3306,157 @@ export namespace ReimbursementRetrieveResponse {
|
|
|
1116
3306
|
* Place this per diem rate applies to, such as a city.
|
|
1117
3307
|
*/
|
|
1118
3308
|
destination_name?: string;
|
|
3309
|
+
|
|
3310
|
+
/**
|
|
3311
|
+
* Effective end date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
3312
|
+
*/
|
|
3313
|
+
end_date?: string;
|
|
3314
|
+
|
|
3315
|
+
/**
|
|
3316
|
+
* Whether the rate is archived. Archived rates remain readable for historical
|
|
3317
|
+
* references.
|
|
3318
|
+
*/
|
|
3319
|
+
is_archived?: boolean;
|
|
3320
|
+
|
|
3321
|
+
/**
|
|
3322
|
+
* Whether this is the current version of the rate.
|
|
3323
|
+
*/
|
|
3324
|
+
is_current?: boolean;
|
|
3325
|
+
|
|
3326
|
+
/**
|
|
3327
|
+
* Effective start date of the rate, as an ISO 8601 date (YYYY-MM-DD).
|
|
3328
|
+
*/
|
|
3329
|
+
start_date?: string;
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
/**
|
|
3333
|
+
* Receipt file and its filename.
|
|
3334
|
+
*/
|
|
3335
|
+
export interface Receipt {
|
|
3336
|
+
/**
|
|
3337
|
+
* URL for accessing the file.
|
|
3338
|
+
*/
|
|
3339
|
+
url: string;
|
|
3340
|
+
|
|
3341
|
+
/**
|
|
3342
|
+
* Original file name, when recorded.
|
|
3343
|
+
*/
|
|
3344
|
+
file_name?: string;
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
/**
|
|
3348
|
+
* Start of a mileage trip. Null except on mileage reimbursements.
|
|
3349
|
+
*/
|
|
3350
|
+
export interface StartLocation {
|
|
3351
|
+
/**
|
|
3352
|
+
* Address of this point. Null when the point has no address.
|
|
3353
|
+
*/
|
|
3354
|
+
address?: string;
|
|
3355
|
+
|
|
3356
|
+
/**
|
|
3357
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
3358
|
+
* has no coordinates.
|
|
3359
|
+
*/
|
|
3360
|
+
coordinates?: StartLocation.Coordinates;
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
export namespace StartLocation {
|
|
3364
|
+
/**
|
|
3365
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
3366
|
+
* has no coordinates.
|
|
3367
|
+
*/
|
|
3368
|
+
export interface Coordinates {
|
|
3369
|
+
/**
|
|
3370
|
+
* Latitude of this point, in decimal degrees.
|
|
3371
|
+
*/
|
|
3372
|
+
latitude?: number;
|
|
3373
|
+
|
|
3374
|
+
/**
|
|
3375
|
+
* Longitude of this point, in decimal degrees.
|
|
3376
|
+
*/
|
|
3377
|
+
longitude?: number;
|
|
3378
|
+
}
|
|
1119
3379
|
}
|
|
1120
3380
|
|
|
1121
3381
|
/**
|
|
1122
|
-
* Vendor
|
|
3382
|
+
* Vendor details. Expand with `reimbursements.read` and `finance-vendors.read`.
|
|
3383
|
+
*
|
|
3384
|
+
* Expandable field
|
|
1123
3385
|
*/
|
|
1124
3386
|
export interface Vendor {
|
|
1125
3387
|
/**
|
|
1126
|
-
*
|
|
3388
|
+
* Identifier field
|
|
1127
3389
|
*/
|
|
1128
|
-
id
|
|
3390
|
+
id: string;
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* Record creation date
|
|
3394
|
+
*/
|
|
3395
|
+
created_at: string;
|
|
3396
|
+
|
|
3397
|
+
/**
|
|
3398
|
+
* Record update date
|
|
3399
|
+
*/
|
|
3400
|
+
updated_at: string;
|
|
3401
|
+
|
|
3402
|
+
/**
|
|
3403
|
+
* Whether the vendor is archived. Archived vendors remain available for historical
|
|
3404
|
+
* references.
|
|
3405
|
+
*/
|
|
3406
|
+
is_archived?: boolean;
|
|
1129
3407
|
|
|
1130
3408
|
/**
|
|
1131
|
-
*
|
|
3409
|
+
* URL of the vendor's logo. Null when no logo is available.
|
|
3410
|
+
*/
|
|
3411
|
+
logo?: string;
|
|
3412
|
+
|
|
3413
|
+
/**
|
|
3414
|
+
* Canonical name of the Finance vendor. Name eq, ne, and in filters also match
|
|
3415
|
+
* alternate names.
|
|
1132
3416
|
*/
|
|
1133
3417
|
name?: string;
|
|
1134
3418
|
}
|
|
3419
|
+
|
|
3420
|
+
/**
|
|
3421
|
+
* Start, end, or intermediate stop on a mileage trip.
|
|
3422
|
+
*/
|
|
3423
|
+
export interface Waypoint {
|
|
3424
|
+
/**
|
|
3425
|
+
* Address of this point. Null when the point has no address.
|
|
3426
|
+
*/
|
|
3427
|
+
address?: string;
|
|
3428
|
+
|
|
3429
|
+
/**
|
|
3430
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
3431
|
+
* has no coordinates.
|
|
3432
|
+
*/
|
|
3433
|
+
coordinates?: Waypoint.Coordinates;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
export namespace Waypoint {
|
|
3437
|
+
/**
|
|
3438
|
+
* Latitude and longitude of this point, in decimal degrees. Null when the point
|
|
3439
|
+
* has no coordinates.
|
|
3440
|
+
*/
|
|
3441
|
+
export interface Coordinates {
|
|
3442
|
+
/**
|
|
3443
|
+
* Latitude of this point, in decimal degrees.
|
|
3444
|
+
*/
|
|
3445
|
+
latitude?: number;
|
|
3446
|
+
|
|
3447
|
+
/**
|
|
3448
|
+
* Longitude of this point, in decimal degrees.
|
|
3449
|
+
*/
|
|
3450
|
+
longitude?: number;
|
|
3451
|
+
}
|
|
3452
|
+
}
|
|
1135
3453
|
}
|
|
1136
3454
|
|
|
1137
3455
|
export interface ReimbursementListParams {
|
|
1138
3456
|
cursor?: string;
|
|
1139
3457
|
|
|
3458
|
+
expand?: string;
|
|
3459
|
+
|
|
1140
3460
|
filter?: string;
|
|
1141
3461
|
|
|
1142
3462
|
/**
|
|
@@ -1147,11 +3467,156 @@ export interface ReimbursementListParams {
|
|
|
1147
3467
|
order_by?: string;
|
|
1148
3468
|
}
|
|
1149
3469
|
|
|
3470
|
+
export interface ReimbursementRetrieveParams {
|
|
3471
|
+
expand?: string;
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
export interface ReimbursementUpdateParams {
|
|
3475
|
+
/**
|
|
3476
|
+
* Category splits of the transaction amount. Updates replace the entire list.
|
|
3477
|
+
*/
|
|
3478
|
+
line_items?: Array<ReimbursementUpdateParams.LineItem>;
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
export namespace ReimbursementUpdateParams {
|
|
3482
|
+
/**
|
|
3483
|
+
* PATCH body for a line item. `amount` and `tax_amount` are decimal strings, not
|
|
3484
|
+
* Currency objects.
|
|
3485
|
+
*/
|
|
3486
|
+
export interface LineItem {
|
|
3487
|
+
/**
|
|
3488
|
+
* Amount of this split, in the merchant currency, as a decimal string.
|
|
3489
|
+
*/
|
|
3490
|
+
amount: string;
|
|
3491
|
+
|
|
3492
|
+
/**
|
|
3493
|
+
* ID of the Finance category assigned to this split. Use it with
|
|
3494
|
+
* `/finance-categories/{id}/`.
|
|
3495
|
+
*/
|
|
3496
|
+
category_id: string;
|
|
3497
|
+
|
|
3498
|
+
/**
|
|
3499
|
+
* Optional. Omit to create a new line. Replacing `line_items` assigns new IDs; a
|
|
3500
|
+
* supplied `id` is not preserved.
|
|
3501
|
+
*/
|
|
3502
|
+
id?: string;
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* Whether this line is amortized.
|
|
3506
|
+
*/
|
|
3507
|
+
amortized?: boolean;
|
|
3508
|
+
|
|
3509
|
+
/**
|
|
3510
|
+
* Selected dimension values, keyed by dimension ID. `DEPARTMENT` and
|
|
3511
|
+
* `WORK_LOCATION` are the built-in keys. Get custom dimension IDs from
|
|
3512
|
+
* `/job-dimensions/` and `/job-dimensions/{id}/`. Each value is an ID:
|
|
3513
|
+
* `/departments/{id}/` for `DEPARTMENT`, `/work-locations/{id}/` for
|
|
3514
|
+
* `WORK_LOCATION`, and `/job-codes/{id}/` for a custom job dimension.
|
|
3515
|
+
*/
|
|
3516
|
+
dimension_choices?: { [key: string]: string };
|
|
3517
|
+
|
|
3518
|
+
/**
|
|
3519
|
+
* End of the amortization period (YYYY-MM-DD).
|
|
3520
|
+
*/
|
|
3521
|
+
end_date?: string;
|
|
3522
|
+
|
|
3523
|
+
/**
|
|
3524
|
+
* ERP amortization template for this line.
|
|
3525
|
+
*/
|
|
3526
|
+
gl_amortization_template?: LineItem.GlAmortizationTemplate;
|
|
3527
|
+
|
|
3528
|
+
/**
|
|
3529
|
+
* Whether this split is billed to `gl_customer` in the accounting system.
|
|
3530
|
+
* `BILLABLE` means it is billed, `NOT_BILLABLE` means it is not. Null when not
|
|
3531
|
+
* set.
|
|
3532
|
+
*/
|
|
3533
|
+
gl_billable?: 'BILLABLE' | 'NOT_BILLABLE';
|
|
3534
|
+
|
|
3535
|
+
/**
|
|
3536
|
+
* ID of the customer record in the connected accounting integration. No public
|
|
3537
|
+
* Rippling API is currently available to retrieve this accounting customer.
|
|
3538
|
+
*/
|
|
3539
|
+
gl_customer?: string;
|
|
3540
|
+
|
|
3541
|
+
/**
|
|
3542
|
+
* Rippling ID of the accounting tax code. No public Rippling API is currently
|
|
3543
|
+
* available to retrieve this accounting tax code.
|
|
3544
|
+
*/
|
|
3545
|
+
gl_tax_code?: string;
|
|
3546
|
+
|
|
3547
|
+
/**
|
|
3548
|
+
* Memo entered on this split.
|
|
3549
|
+
*/
|
|
3550
|
+
memo?: string;
|
|
3551
|
+
|
|
3552
|
+
/**
|
|
3553
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
3554
|
+
*/
|
|
3555
|
+
prepaid_account?: LineItem.PrepaidAccount;
|
|
3556
|
+
|
|
3557
|
+
/**
|
|
3558
|
+
* Start of the amortization period (YYYY-MM-DD).
|
|
3559
|
+
*/
|
|
3560
|
+
start_date?: string;
|
|
3561
|
+
|
|
3562
|
+
/**
|
|
3563
|
+
* Total tax amount for this line in the merchant currency, as a decimal string.
|
|
3564
|
+
*/
|
|
3565
|
+
tax_amount?: string;
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
export namespace LineItem {
|
|
3569
|
+
/**
|
|
3570
|
+
* ERP amortization template for this line.
|
|
3571
|
+
*/
|
|
3572
|
+
export interface GlAmortizationTemplate {
|
|
3573
|
+
/**
|
|
3574
|
+
* Rippling ID of the accounting integration that owns this template. No public
|
|
3575
|
+
* Rippling API is currently available to retrieve this accounting integration.
|
|
3576
|
+
*/
|
|
3577
|
+
accounting_integration_id?: string;
|
|
3578
|
+
|
|
3579
|
+
/**
|
|
3580
|
+
* Object ID of the amortization template in the connected accounting system.
|
|
3581
|
+
*/
|
|
3582
|
+
gl_object_id?: string;
|
|
3583
|
+
|
|
3584
|
+
/**
|
|
3585
|
+
* Amortization template name.
|
|
3586
|
+
*/
|
|
3587
|
+
name?: string;
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
/**
|
|
3591
|
+
* Prepaid asset account for Rippling-managed amortization.
|
|
3592
|
+
*/
|
|
3593
|
+
export interface PrepaidAccount {
|
|
3594
|
+
/**
|
|
3595
|
+
* Account ID in the connected accounting system.
|
|
3596
|
+
*/
|
|
3597
|
+
account_id?: string;
|
|
3598
|
+
|
|
3599
|
+
/**
|
|
3600
|
+
* Account code.
|
|
3601
|
+
*/
|
|
3602
|
+
code?: string;
|
|
3603
|
+
|
|
3604
|
+
/**
|
|
3605
|
+
* Account name.
|
|
3606
|
+
*/
|
|
3607
|
+
name?: string;
|
|
3608
|
+
}
|
|
3609
|
+
}
|
|
3610
|
+
}
|
|
3611
|
+
|
|
1150
3612
|
export declare namespace Reimbursements {
|
|
1151
3613
|
export {
|
|
1152
3614
|
type ReimbursementListResponse as ReimbursementListResponse,
|
|
1153
3615
|
type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse,
|
|
3616
|
+
type ReimbursementUpdateResponse as ReimbursementUpdateResponse,
|
|
1154
3617
|
type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL,
|
|
1155
3618
|
type ReimbursementListParams as ReimbursementListParams,
|
|
3619
|
+
type ReimbursementRetrieveParams as ReimbursementRetrieveParams,
|
|
3620
|
+
type ReimbursementUpdateParams as ReimbursementUpdateParams,
|
|
1156
3621
|
};
|
|
1157
3622
|
}
|