@rippling/rippling-sdk 0.2.0-alpha.112 → 0.2.0-alpha.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.d.mts +41 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -8
- package/client.d.ts.map +1 -1
- package/client.js +35 -0
- package/client.js.map +1 -1
- package/client.mjs +35 -0
- package/client.mjs.map +1 -1
- package/lib/manifest/app.d.mts +20 -1
- package/lib/manifest/app.d.mts.map +1 -1
- package/lib/manifest/app.d.ts +20 -1
- package/lib/manifest/app.d.ts.map +1 -1
- package/lib/manifest/app.js +50 -0
- package/lib/manifest/app.js.map +1 -1
- package/lib/manifest/app.mjs +51 -1
- package/lib/manifest/app.mjs.map +1 -1
- package/lib/manifest/composition.d.mts +3 -0
- package/lib/manifest/composition.d.mts.map +1 -1
- package/lib/manifest/composition.d.ts +3 -0
- package/lib/manifest/composition.d.ts.map +1 -1
- package/lib/manifest/composition.js.map +1 -1
- package/lib/manifest/composition.mjs.map +1 -1
- package/lib/manifest/definitions/app.js +4 -1
- package/lib/manifest/definitions/app.js.map +1 -1
- package/lib/manifest/definitions/app.mjs +4 -1
- package/lib/manifest/definitions/app.mjs.map +1 -1
- package/lib/manifest/definitions/canvas-instance.d.mts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.js +31 -0
- package/lib/manifest/definitions/canvas-instance.js.map +1 -0
- package/lib/manifest/definitions/canvas-instance.mjs +28 -0
- package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
- package/lib/manifest/definitions/function.d.mts.map +1 -1
- package/lib/manifest/definitions/function.d.ts.map +1 -1
- package/lib/manifest/definitions/function.js +1 -0
- package/lib/manifest/definitions/function.js.map +1 -1
- package/lib/manifest/definitions/function.mjs +1 -0
- package/lib/manifest/definitions/function.mjs.map +1 -1
- package/lib/manifest/definitions/group.d.mts +64 -0
- package/lib/manifest/definitions/group.d.mts.map +1 -0
- package/lib/manifest/definitions/group.d.ts +64 -0
- package/lib/manifest/definitions/group.d.ts.map +1 -0
- package/lib/manifest/definitions/group.js +57 -0
- package/lib/manifest/definitions/group.js.map +1 -0
- package/lib/manifest/definitions/group.mjs +50 -0
- package/lib/manifest/definitions/group.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +5 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -1
- package/lib/manifest/definitions/index.d.ts +5 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -1
- package/lib/manifest/definitions/index.js +9 -1
- package/lib/manifest/definitions/index.js.map +1 -1
- package/lib/manifest/definitions/index.mjs +3 -0
- package/lib/manifest/definitions/index.mjs.map +1 -1
- package/lib/manifest/definitions/saved-super-group.d.mts +12 -0
- package/lib/manifest/definitions/saved-super-group.d.mts.map +1 -0
- package/lib/manifest/definitions/saved-super-group.d.ts +12 -0
- package/lib/manifest/definitions/saved-super-group.d.ts.map +1 -0
- package/lib/manifest/definitions/saved-super-group.js +26 -0
- package/lib/manifest/definitions/saved-super-group.js.map +1 -0
- package/lib/manifest/definitions/saved-super-group.mjs +21 -0
- package/lib/manifest/definitions/saved-super-group.mjs.map +1 -0
- package/lib/manifest/existing-manifest-context.d.mts +3 -0
- package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
- package/lib/manifest/existing-manifest-context.d.ts +3 -0
- package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
- package/lib/manifest/existing-manifest-context.js +15 -0
- package/lib/manifest/existing-manifest-context.js.map +1 -1
- package/lib/manifest/existing-manifest-context.mjs +15 -0
- package/lib/manifest/existing-manifest-context.mjs.map +1 -1
- package/lib/manifest/group.d.mts +83 -0
- package/lib/manifest/group.d.mts.map +1 -0
- package/lib/manifest/group.d.ts +83 -0
- package/lib/manifest/group.d.ts.map +1 -0
- package/lib/manifest/group.js +207 -0
- package/lib/manifest/group.js.map +1 -0
- package/lib/manifest/group.mjs +203 -0
- package/lib/manifest/group.mjs.map +1 -0
- package/lib/manifest/index.d.mts +2 -0
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +2 -0
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +5 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +2 -0
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/manifest-builder.d.mts +1 -1
- package/lib/manifest/manifest-builder.d.mts.map +1 -1
- package/lib/manifest/manifest-builder.d.ts +1 -1
- package/lib/manifest/manifest-builder.d.ts.map +1 -1
- package/lib/manifest/manifest-builder.js.map +1 -1
- package/lib/manifest/manifest-builder.mjs.map +1 -1
- package/lib/manifest/manifest-function.d.mts +16 -0
- package/lib/manifest/manifest-function.d.mts.map +1 -1
- package/lib/manifest/manifest-function.d.ts +16 -0
- package/lib/manifest/manifest-function.d.ts.map +1 -1
- package/lib/manifest/manifest-function.js +67 -0
- package/lib/manifest/manifest-function.js.map +1 -1
- package/lib/manifest/manifest-function.mjs +68 -1
- package/lib/manifest/manifest-function.mjs.map +1 -1
- package/lib/manifest/saved-super-group.d.mts +43 -0
- package/lib/manifest/saved-super-group.d.mts.map +1 -0
- package/lib/manifest/saved-super-group.d.ts +43 -0
- package/lib/manifest/saved-super-group.d.ts.map +1 -0
- package/lib/manifest/saved-super-group.js +136 -0
- package/lib/manifest/saved-super-group.js.map +1 -0
- package/lib/manifest/saved-super-group.mjs +132 -0
- package/lib/manifest/saved-super-group.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/application-submissions.d.mts +261 -0
- package/resources/application-submissions.d.mts.map +1 -0
- package/resources/application-submissions.d.ts +261 -0
- package/resources/application-submissions.d.ts.map +1 -0
- package/resources/application-submissions.js +112 -0
- package/resources/application-submissions.js.map +1 -0
- package/resources/application-submissions.mjs +108 -0
- package/resources/application-submissions.mjs.map +1 -0
- package/resources/bills.d.mts +913 -12
- package/resources/bills.d.mts.map +1 -1
- package/resources/bills.d.ts +913 -12
- package/resources/bills.d.ts.map +1 -1
- package/resources/bills.js +221 -0
- package/resources/bills.js.map +1 -1
- package/resources/bills.mjs +221 -0
- package/resources/bills.mjs.map +1 -1
- package/resources/candidate-applications.d.mts +247 -9
- package/resources/candidate-applications.d.mts.map +1 -1
- package/resources/candidate-applications.d.ts +247 -9
- package/resources/candidate-applications.d.ts.map +1 -1
- package/resources/candidate-applications.js +37 -5
- package/resources/candidate-applications.js.map +1 -1
- package/resources/candidate-applications.mjs +37 -5
- package/resources/candidate-applications.mjs.map +1 -1
- package/resources/card-transactions.d.mts +1580 -30
- package/resources/card-transactions.d.mts.map +1 -1
- package/resources/card-transactions.d.ts +1580 -30
- package/resources/card-transactions.d.ts.map +1 -1
- package/resources/card-transactions.js +404 -4
- package/resources/card-transactions.js.map +1 -1
- package/resources/card-transactions.mjs +404 -4
- package/resources/card-transactions.mjs.map +1 -1
- package/resources/custom-objects/custom-objects.d.mts +4 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +4 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +4 -0
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +4 -0
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +1 -0
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +1 -0
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/index.js +3 -1
- package/resources/custom-objects/index.js.map +1 -1
- package/resources/custom-objects/index.mjs +1 -0
- package/resources/custom-objects/index.mjs.map +1 -1
- package/resources/custom-objects/record-actions.d.mts +98 -0
- package/resources/custom-objects/record-actions.d.mts.map +1 -0
- package/resources/custom-objects/record-actions.d.ts +98 -0
- package/resources/custom-objects/record-actions.d.ts.map +1 -0
- package/resources/custom-objects/record-actions.js +58 -0
- package/resources/custom-objects/record-actions.js.map +1 -0
- package/resources/custom-objects/record-actions.mjs +54 -0
- package/resources/custom-objects/record-actions.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +14 -2
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +14 -2
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/earnings-inputs.js +14 -2
- package/resources/earnings-inputs.js.map +1 -1
- package/resources/earnings-inputs.mjs +14 -2
- package/resources/earnings-inputs.mjs.map +1 -1
- package/resources/index.d.mts +9 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-posts.d.mts +345 -0
- package/resources/job-posts.d.mts.map +1 -0
- package/resources/job-posts.d.ts +345 -0
- package/resources/job-posts.d.ts.map +1 -0
- package/resources/job-posts.js +110 -0
- package/resources/job-posts.js.map +1 -0
- package/resources/job-posts.mjs +106 -0
- package/resources/job-posts.mjs.map +1 -0
- package/resources/job-requisitions.d.mts +96 -4
- package/resources/job-requisitions.d.mts.map +1 -1
- package/resources/job-requisitions.d.ts +96 -4
- package/resources/job-requisitions.d.ts.map +1 -1
- package/resources/job-requisitions.js +64 -3
- package/resources/job-requisitions.js.map +1 -1
- package/resources/job-requisitions.mjs +64 -3
- package/resources/job-requisitions.mjs.map +1 -1
- package/resources/record-detail-related-records.d.mts +60 -30
- package/resources/record-detail-related-records.d.mts.map +1 -1
- package/resources/record-detail-related-records.d.ts +60 -30
- package/resources/record-detail-related-records.d.ts.map +1 -1
- package/resources/record-details.d.mts +120 -60
- package/resources/record-details.d.mts.map +1 -1
- package/resources/record-details.d.ts +120 -60
- package/resources/record-details.d.ts.map +1 -1
- package/resources/reimbursements.d.mts +1106 -64
- package/resources/reimbursements.d.mts.map +1 -1
- package/resources/reimbursements.d.ts +1106 -64
- package/resources/reimbursements.d.ts.map +1 -1
- package/resources/reimbursements.js +208 -0
- package/resources/reimbursements.js.map +1 -1
- package/resources/reimbursements.mjs +208 -0
- package/resources/reimbursements.mjs.map +1 -1
- package/resources/scheduled-payout-labels.d.mts +267 -0
- package/resources/scheduled-payout-labels.d.mts.map +1 -0
- package/resources/scheduled-payout-labels.d.ts +267 -0
- package/resources/scheduled-payout-labels.d.ts.map +1 -0
- package/resources/scheduled-payout-labels.js +151 -0
- package/resources/scheduled-payout-labels.js.map +1 -0
- package/resources/scheduled-payout-labels.mjs +147 -0
- package/resources/scheduled-payout-labels.mjs.map +1 -0
- package/resources/scheduled-payout-types.d.mts +680 -0
- package/resources/scheduled-payout-types.d.mts.map +1 -0
- package/resources/scheduled-payout-types.d.ts +680 -0
- package/resources/scheduled-payout-types.d.ts.map +1 -0
- package/resources/scheduled-payout-types.js +546 -0
- package/resources/scheduled-payout-types.js.map +1 -0
- package/resources/scheduled-payout-types.mjs +542 -0
- package/resources/scheduled-payout-types.mjs.map +1 -0
- package/resources/scheduled-payouts.d.mts +1588 -0
- package/resources/scheduled-payouts.d.mts.map +1 -0
- package/resources/scheduled-payouts.d.ts +1588 -0
- package/resources/scheduled-payouts.d.ts.map +1 -0
- package/resources/scheduled-payouts.js +582 -0
- package/resources/scheduled-payouts.js.map +1 -0
- package/resources/scheduled-payouts.mjs +578 -0
- package/resources/scheduled-payouts.mjs.map +1 -0
- package/src/client.ts +150 -0
- package/src/lib/manifest/app.ts +72 -2
- package/src/lib/manifest/composition.ts +8 -2
- package/src/lib/manifest/definitions/README.md +3 -1
- package/src/lib/manifest/definitions/app.ts +4 -1
- package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
- package/src/lib/manifest/definitions/function.ts +1 -0
- package/src/lib/manifest/definitions/group.ts +159 -0
- package/src/lib/manifest/definitions/index.ts +42 -0
- package/src/lib/manifest/definitions/saved-super-group.ts +28 -0
- package/src/lib/manifest/existing-manifest-context.ts +24 -0
- package/src/lib/manifest/group.ts +282 -0
- package/src/lib/manifest/index.ts +16 -0
- package/src/lib/manifest/manifest-builder.ts +2 -0
- package/src/lib/manifest/manifest-function.ts +91 -1
- package/src/lib/manifest/saved-super-group.ts +171 -0
- package/src/resources/application-submissions.ts +315 -0
- package/src/resources/bills.ts +1085 -12
- package/src/resources/candidate-applications.ts +282 -9
- package/src/resources/card-transactions.ts +1874 -32
- package/src/resources/custom-objects/custom-objects.ts +16 -0
- package/src/resources/custom-objects/index.ts +6 -0
- package/src/resources/custom-objects/record-actions.ts +125 -0
- package/src/resources/earnings-inputs.ts +14 -2
- package/src/resources/index.ts +57 -0
- package/src/resources/job-posts.ts +415 -0
- package/src/resources/job-requisitions.ts +110 -3
- package/src/resources/record-detail-related-records.ts +60 -30
- package/src/resources/record-details.ts +120 -60
- package/src/resources/reimbursements.ts +1299 -63
- package/src/resources/scheduled-payout-labels.ts +373 -0
- package/src/resources/scheduled-payout-types.ts +755 -0
- package/src/resources/scheduled-payouts.ts +1947 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { PageCursorURL } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Compensation associated with workers
|
|
7
|
+
*/
|
|
8
|
+
export class ScheduledPayouts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List scheduled payouts. Paginated with limit and cursor. Filter with string
|
|
11
|
+
* equality joined by and on payee_id, client, external_id, status,
|
|
12
|
+
* source_label_id, and group_label_id, for example filter=client eq 'CUSTOM' and
|
|
13
|
+
* status eq 'SCHEDULED'. Supports
|
|
14
|
+
* expand=payee,payout_type,source_label,group_label. Always uses the company admin
|
|
15
|
+
* payout rowset; callers without admin payout visibility receive an empty list.
|
|
16
|
+
* Retrieve returns NotFound for the same rows.
|
|
17
|
+
*
|
|
18
|
+
* - Requires: `Internal Testing`
|
|
19
|
+
*
|
|
20
|
+
* @example HTTP
|
|
21
|
+
* Representative request and response shapes.
|
|
22
|
+
* ```
|
|
23
|
+
* GET /scheduled-payouts/?limit=0&cursor=cursor&filter=filter&expand=expand HTTP/1.1
|
|
24
|
+
* Host: rest.ripplingapis.com
|
|
25
|
+
* Accept: application/json
|
|
26
|
+
* Rippling-Api-Version: 2024-08-01
|
|
27
|
+
*
|
|
28
|
+
* HTTP/1.1 200 OK
|
|
29
|
+
* Content-Type: application/json
|
|
30
|
+
*
|
|
31
|
+
* {
|
|
32
|
+
* "__meta": {
|
|
33
|
+
* "redacted_fields": [
|
|
34
|
+
* {
|
|
35
|
+
* "name": "date_of_birth",
|
|
36
|
+
* "reason": "Insufficient entitlements"
|
|
37
|
+
* }
|
|
38
|
+
* ]
|
|
39
|
+
* },
|
|
40
|
+
* "results": [
|
|
41
|
+
* {
|
|
42
|
+
* "id": "string",
|
|
43
|
+
* "payee_id": "string",
|
|
44
|
+
* "payee": {
|
|
45
|
+
* "id": "string",
|
|
46
|
+
* "created_at": "string",
|
|
47
|
+
* "updated_at": "string",
|
|
48
|
+
* "user_id": "string",
|
|
49
|
+
* "user": {},
|
|
50
|
+
* "is_manager": "string",
|
|
51
|
+
* "manager_id": "string",
|
|
52
|
+
* "manager": {},
|
|
53
|
+
* "legal_entity_id": "string",
|
|
54
|
+
* "legal_entity": {},
|
|
55
|
+
* "country": "AF",
|
|
56
|
+
* "start_date": "string",
|
|
57
|
+
* "end_date": "string",
|
|
58
|
+
* "number": "string",
|
|
59
|
+
* "work_email": "string",
|
|
60
|
+
* "personal_email": "string",
|
|
61
|
+
* "status": "INIT",
|
|
62
|
+
* "location": {},
|
|
63
|
+
* "employment_type_id": "string",
|
|
64
|
+
* "employment_type": {},
|
|
65
|
+
* "gender": "MALE",
|
|
66
|
+
* "date_of_birth": "string",
|
|
67
|
+
* "race": "BLACK",
|
|
68
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
69
|
+
* "citizenship": "AF",
|
|
70
|
+
* "compensation_id": "string",
|
|
71
|
+
* "compensation": {},
|
|
72
|
+
* "overtime_exemption": "EXEMPT",
|
|
73
|
+
* "department_id": "string",
|
|
74
|
+
* "department": {},
|
|
75
|
+
* "teams_id": [],
|
|
76
|
+
* "teams": [],
|
|
77
|
+
* "title": "string",
|
|
78
|
+
* "title_effective_date": "string",
|
|
79
|
+
* "level_id": "string",
|
|
80
|
+
* "level": {},
|
|
81
|
+
* "job_function_id": "string",
|
|
82
|
+
* "job_function": {},
|
|
83
|
+
* "termination_details": {},
|
|
84
|
+
* "pay_schedule_id": "string",
|
|
85
|
+
* "work_schedule": {},
|
|
86
|
+
* "compensation_grade": {},
|
|
87
|
+
* "original_start_date": "string",
|
|
88
|
+
* "custom_fields": [],
|
|
89
|
+
* "country_fields": {},
|
|
90
|
+
* "business_partners_id": [],
|
|
91
|
+
* "business_partners": []
|
|
92
|
+
* },
|
|
93
|
+
* "client": "VC_PLAN_CYCLE",
|
|
94
|
+
* "external_id": "string",
|
|
95
|
+
* "amount_base": {
|
|
96
|
+
* "currency_type": "string",
|
|
97
|
+
* "value": "string"
|
|
98
|
+
* },
|
|
99
|
+
* "amount_usd": {
|
|
100
|
+
* "currency_type": "string",
|
|
101
|
+
* "value": "string"
|
|
102
|
+
* },
|
|
103
|
+
* "pay_classification": "string",
|
|
104
|
+
* "payout_type_id": "string",
|
|
105
|
+
* "payout_type": {
|
|
106
|
+
* "id": "string",
|
|
107
|
+
* "key": "string",
|
|
108
|
+
* "display_name": "string",
|
|
109
|
+
* "is_system": "string",
|
|
110
|
+
* "created_by_id": "string",
|
|
111
|
+
* "created_by": {}
|
|
112
|
+
* },
|
|
113
|
+
* "scheduled_date": "string",
|
|
114
|
+
* "effective_start_date": "string",
|
|
115
|
+
* "effective_end_date": "string",
|
|
116
|
+
* "name": "string",
|
|
117
|
+
* "description": "string",
|
|
118
|
+
* "status": "DRAFT",
|
|
119
|
+
* "cancel_reason": "string",
|
|
120
|
+
* "source_label_id": "string",
|
|
121
|
+
* "source_label": {
|
|
122
|
+
* "id": "string",
|
|
123
|
+
* "client": "VC_PLAN_CYCLE",
|
|
124
|
+
* "external_id": "string",
|
|
125
|
+
* "name": "string"
|
|
126
|
+
* },
|
|
127
|
+
* "group_label_id": "string",
|
|
128
|
+
* "group_label": {
|
|
129
|
+
* "id": "string",
|
|
130
|
+
* "client": "VC_PLAN_CYCLE",
|
|
131
|
+
* "external_id": "string",
|
|
132
|
+
* "name": "string"
|
|
133
|
+
* },
|
|
134
|
+
* "paystub_id": "string",
|
|
135
|
+
* "created_at": "string",
|
|
136
|
+
* "updated_at": "string"
|
|
137
|
+
* }
|
|
138
|
+
* ],
|
|
139
|
+
* "next_link": "string"
|
|
140
|
+
* }
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
list(query = {}, options) {
|
|
144
|
+
return this._client.getAPIList('/scheduled-payouts/', (PageCursorURL), {
|
|
145
|
+
query,
|
|
146
|
+
...options,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Create or update one payout. Identity is (client, external_id), not id. Same key
|
|
151
|
+
* and same body replays with 200. Same key and a different body overwrites a
|
|
152
|
+
* SCHEDULED or EVALUATION_FAILED payout when the caller can edit scheduled
|
|
153
|
+
* payouts; otherwise 403. RELEASED payouts return 409. Successful creates and
|
|
154
|
+
* updates return 200. client must be CUSTOM; other clients are written by Rippling
|
|
155
|
+
* systems and return 400.
|
|
156
|
+
*
|
|
157
|
+
* @example HTTP
|
|
158
|
+
* Representative request and response shapes.
|
|
159
|
+
* ```
|
|
160
|
+
* POST /scheduled-payouts/ HTTP/1.1
|
|
161
|
+
* Host: rest.ripplingapis.com
|
|
162
|
+
* Content-Type: application/json
|
|
163
|
+
* Accept: application/json
|
|
164
|
+
* Rippling-Api-Version: 2024-08-01
|
|
165
|
+
*
|
|
166
|
+
* {
|
|
167
|
+
* "amount_base": {},
|
|
168
|
+
* "amount_usd": {},
|
|
169
|
+
* "client": "VC_PLAN_CYCLE",
|
|
170
|
+
* "effective_end_date": "effective_end_date",
|
|
171
|
+
* "effective_start_date": "effective_start_date",
|
|
172
|
+
* "external_id": "external_id",
|
|
173
|
+
* "payee_id": "payee_id",
|
|
174
|
+
* "payout_type_id": "payout_type_id",
|
|
175
|
+
* "scheduled_date": "scheduled_date"
|
|
176
|
+
* }
|
|
177
|
+
*
|
|
178
|
+
* HTTP/1.1 200 OK
|
|
179
|
+
* Content-Type: application/json
|
|
180
|
+
*
|
|
181
|
+
* {
|
|
182
|
+
* "id": "string",
|
|
183
|
+
* "payee_id": "string",
|
|
184
|
+
* "payee": {
|
|
185
|
+
* "id": "string",
|
|
186
|
+
* "created_at": "string",
|
|
187
|
+
* "updated_at": "string"
|
|
188
|
+
* },
|
|
189
|
+
* "client": "VC_PLAN_CYCLE",
|
|
190
|
+
* "external_id": "string",
|
|
191
|
+
* "amount_base": {},
|
|
192
|
+
* "amount_usd": {},
|
|
193
|
+
* "pay_classification": "string",
|
|
194
|
+
* "payout_type_id": "string",
|
|
195
|
+
* "payout_type": {
|
|
196
|
+
* "id": "string",
|
|
197
|
+
* "key": "string",
|
|
198
|
+
* "display_name": "string",
|
|
199
|
+
* "is_system": false,
|
|
200
|
+
* "created_by_id": "string",
|
|
201
|
+
* "created_by": {
|
|
202
|
+
* "id": "string",
|
|
203
|
+
* "created_at": "string",
|
|
204
|
+
* "updated_at": "string",
|
|
205
|
+
* "user_id": "string",
|
|
206
|
+
* "user": {
|
|
207
|
+
* "id": "string",
|
|
208
|
+
* "created_at": "string",
|
|
209
|
+
* "updated_at": "string"
|
|
210
|
+
* },
|
|
211
|
+
* "is_manager": false,
|
|
212
|
+
* "manager_id": "string",
|
|
213
|
+
* "manager": {
|
|
214
|
+
* "id": "string",
|
|
215
|
+
* "created_at": "string",
|
|
216
|
+
* "updated_at": "string"
|
|
217
|
+
* },
|
|
218
|
+
* "legal_entity_id": "string",
|
|
219
|
+
* "legal_entity": {
|
|
220
|
+
* "id": "string",
|
|
221
|
+
* "created_at": "string",
|
|
222
|
+
* "updated_at": "string"
|
|
223
|
+
* },
|
|
224
|
+
* "country": "AF",
|
|
225
|
+
* "start_date": "string",
|
|
226
|
+
* "end_date": "string",
|
|
227
|
+
* "number": 0,
|
|
228
|
+
* "work_email": "string",
|
|
229
|
+
* "personal_email": "string",
|
|
230
|
+
* "status": "INIT",
|
|
231
|
+
* "location": {
|
|
232
|
+
* "type": "REMOTE",
|
|
233
|
+
* "work_location_id": "string"
|
|
234
|
+
* },
|
|
235
|
+
* "employment_type_id": "string",
|
|
236
|
+
* "employment_type": {
|
|
237
|
+
* "id": "string",
|
|
238
|
+
* "created_at": "string",
|
|
239
|
+
* "updated_at": "string",
|
|
240
|
+
* "label": "string"
|
|
241
|
+
* },
|
|
242
|
+
* "gender": "MALE",
|
|
243
|
+
* "date_of_birth": "string",
|
|
244
|
+
* "race": "BLACK",
|
|
245
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
246
|
+
* "citizenship": "AF",
|
|
247
|
+
* "compensation_id": "string",
|
|
248
|
+
* "compensation": {
|
|
249
|
+
* "id": "string",
|
|
250
|
+
* "created_at": "string",
|
|
251
|
+
* "updated_at": "string"
|
|
252
|
+
* },
|
|
253
|
+
* "overtime_exemption": "EXEMPT",
|
|
254
|
+
* "department_id": "string",
|
|
255
|
+
* "department": {
|
|
256
|
+
* "id": "string",
|
|
257
|
+
* "created_at": "string",
|
|
258
|
+
* "updated_at": "string",
|
|
259
|
+
* "name": "string",
|
|
260
|
+
* "parent_id": "string",
|
|
261
|
+
* "parent": {},
|
|
262
|
+
* "reference_code": "string",
|
|
263
|
+
* "department_hierarchy_id": [],
|
|
264
|
+
* "department_hierarchy": []
|
|
265
|
+
* },
|
|
266
|
+
* "teams_id": [
|
|
267
|
+
* "string"
|
|
268
|
+
* ],
|
|
269
|
+
* "teams": [
|
|
270
|
+
* {}
|
|
271
|
+
* ],
|
|
272
|
+
* "title": "string",
|
|
273
|
+
* "title_effective_date": "string",
|
|
274
|
+
* "level_id": "string",
|
|
275
|
+
* "level": {
|
|
276
|
+
* "id": "string",
|
|
277
|
+
* "created_at": "string",
|
|
278
|
+
* "updated_at": "string",
|
|
279
|
+
* "name": "string",
|
|
280
|
+
* "parent_id": "string",
|
|
281
|
+
* "parent": {},
|
|
282
|
+
* "global_level": "string",
|
|
283
|
+
* "description": "string",
|
|
284
|
+
* "scope_of_responsibilities": "string",
|
|
285
|
+
* "experience_requirements": "string",
|
|
286
|
+
* "rank": "string",
|
|
287
|
+
* "track_id": "string",
|
|
288
|
+
* "track": {}
|
|
289
|
+
* },
|
|
290
|
+
* "job_function_id": "string",
|
|
291
|
+
* "job_function": {
|
|
292
|
+
* "id": "string",
|
|
293
|
+
* "created_at": "string",
|
|
294
|
+
* "updated_at": "string",
|
|
295
|
+
* "name": "string"
|
|
296
|
+
* },
|
|
297
|
+
* "termination_details": {
|
|
298
|
+
* "type": "VOLUNTARY",
|
|
299
|
+
* "reason": "string"
|
|
300
|
+
* },
|
|
301
|
+
* "pay_schedule_id": "string",
|
|
302
|
+
* "work_schedule": {},
|
|
303
|
+
* "compensation_grade": {
|
|
304
|
+
* "id": "string",
|
|
305
|
+
* "label": "string"
|
|
306
|
+
* },
|
|
307
|
+
* "original_start_date": "string",
|
|
308
|
+
* "custom_fields": [
|
|
309
|
+
* "string"
|
|
310
|
+
* ],
|
|
311
|
+
* "country_fields": {
|
|
312
|
+
* "us": {},
|
|
313
|
+
* "ca": {},
|
|
314
|
+
* "nz": {}
|
|
315
|
+
* },
|
|
316
|
+
* "business_partners_id": [
|
|
317
|
+
* "string"
|
|
318
|
+
* ],
|
|
319
|
+
* "business_partners": [
|
|
320
|
+
* {}
|
|
321
|
+
* ]
|
|
322
|
+
* }
|
|
323
|
+
* },
|
|
324
|
+
* "scheduled_date": "string",
|
|
325
|
+
* "effective_start_date": "string",
|
|
326
|
+
* "effective_end_date": "string",
|
|
327
|
+
* "name": "string",
|
|
328
|
+
* "description": "string",
|
|
329
|
+
* "status": "DRAFT",
|
|
330
|
+
* "cancel_reason": "string",
|
|
331
|
+
* "source_label_id": "string",
|
|
332
|
+
* "source_label": {
|
|
333
|
+
* "id": "string",
|
|
334
|
+
* "client": "VC_PLAN_CYCLE",
|
|
335
|
+
* "external_id": "string",
|
|
336
|
+
* "name": "string"
|
|
337
|
+
* },
|
|
338
|
+
* "group_label_id": "string",
|
|
339
|
+
* "group_label": {
|
|
340
|
+
* "id": "string",
|
|
341
|
+
* "client": "VC_PLAN_CYCLE",
|
|
342
|
+
* "external_id": "string",
|
|
343
|
+
* "name": "string"
|
|
344
|
+
* },
|
|
345
|
+
* "paystub_id": "string",
|
|
346
|
+
* "created_at": "string",
|
|
347
|
+
* "updated_at": "string"
|
|
348
|
+
* }
|
|
349
|
+
* ```
|
|
350
|
+
*/
|
|
351
|
+
create(body, options) {
|
|
352
|
+
return this._client.post('/scheduled-payouts/', { body, ...options });
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Retrieve a specific scheduled payout. Uses the company admin payout rowset;
|
|
356
|
+
* callers without admin payout visibility receive NotFound.
|
|
357
|
+
*
|
|
358
|
+
* @example HTTP
|
|
359
|
+
* Representative request and response shapes.
|
|
360
|
+
* ```
|
|
361
|
+
* GET /scheduled-payouts/{id}/ HTTP/1.1
|
|
362
|
+
* Host: rest.ripplingapis.com
|
|
363
|
+
* Accept: application/json
|
|
364
|
+
* Rippling-Api-Version: 2024-08-01
|
|
365
|
+
*
|
|
366
|
+
* HTTP/1.1 200 OK
|
|
367
|
+
* Content-Type: application/json
|
|
368
|
+
*
|
|
369
|
+
* {
|
|
370
|
+
* "__meta": {
|
|
371
|
+
* "redacted_fields": [
|
|
372
|
+
* {}
|
|
373
|
+
* ]
|
|
374
|
+
* }
|
|
375
|
+
* }
|
|
376
|
+
* ```
|
|
377
|
+
*/
|
|
378
|
+
retrieve(id, options) {
|
|
379
|
+
return this._client.get(path `/scheduled-payouts/${id}/`, options);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* SCHEDULED and EVALUATION_FAILED payouts can be cancelled; cancelling an already
|
|
383
|
+
* cancelled payout returns it unchanged. Payouts in any other status return 409.
|
|
384
|
+
* Only CUSTOM payouts can be cancelled through this API; other clients return 400.
|
|
385
|
+
* The required reason is stored as cancel_reason. Callers without admin payout
|
|
386
|
+
* visibility receive 404.
|
|
387
|
+
*
|
|
388
|
+
* @example HTTP
|
|
389
|
+
* Representative request and response shapes.
|
|
390
|
+
* ```
|
|
391
|
+
* POST /scheduled-payouts/{id}/cancel/ HTTP/1.1
|
|
392
|
+
* Host: rest.ripplingapis.com
|
|
393
|
+
* Content-Type: application/json
|
|
394
|
+
* Accept: application/json
|
|
395
|
+
* Rippling-Api-Version: 2024-08-01
|
|
396
|
+
*
|
|
397
|
+
* {
|
|
398
|
+
* "reason": "reason"
|
|
399
|
+
* }
|
|
400
|
+
*
|
|
401
|
+
* HTTP/1.1 200 OK
|
|
402
|
+
* Content-Type: application/json
|
|
403
|
+
*
|
|
404
|
+
* {
|
|
405
|
+
* "id": "string",
|
|
406
|
+
* "payee_id": "string",
|
|
407
|
+
* "payee": {
|
|
408
|
+
* "id": "string",
|
|
409
|
+
* "created_at": "string",
|
|
410
|
+
* "updated_at": "string"
|
|
411
|
+
* },
|
|
412
|
+
* "client": "VC_PLAN_CYCLE",
|
|
413
|
+
* "external_id": "string",
|
|
414
|
+
* "amount_base": {},
|
|
415
|
+
* "amount_usd": {},
|
|
416
|
+
* "pay_classification": "string",
|
|
417
|
+
* "payout_type_id": "string",
|
|
418
|
+
* "payout_type": {
|
|
419
|
+
* "id": "string",
|
|
420
|
+
* "key": "string",
|
|
421
|
+
* "display_name": "string",
|
|
422
|
+
* "is_system": false,
|
|
423
|
+
* "created_by_id": "string",
|
|
424
|
+
* "created_by": {
|
|
425
|
+
* "id": "string",
|
|
426
|
+
* "created_at": "string",
|
|
427
|
+
* "updated_at": "string",
|
|
428
|
+
* "user_id": "string",
|
|
429
|
+
* "user": {
|
|
430
|
+
* "id": "string",
|
|
431
|
+
* "created_at": "string",
|
|
432
|
+
* "updated_at": "string"
|
|
433
|
+
* },
|
|
434
|
+
* "is_manager": false,
|
|
435
|
+
* "manager_id": "string",
|
|
436
|
+
* "manager": {
|
|
437
|
+
* "id": "string",
|
|
438
|
+
* "created_at": "string",
|
|
439
|
+
* "updated_at": "string"
|
|
440
|
+
* },
|
|
441
|
+
* "legal_entity_id": "string",
|
|
442
|
+
* "legal_entity": {
|
|
443
|
+
* "id": "string",
|
|
444
|
+
* "created_at": "string",
|
|
445
|
+
* "updated_at": "string"
|
|
446
|
+
* },
|
|
447
|
+
* "country": "AF",
|
|
448
|
+
* "start_date": "string",
|
|
449
|
+
* "end_date": "string",
|
|
450
|
+
* "number": 0,
|
|
451
|
+
* "work_email": "string",
|
|
452
|
+
* "personal_email": "string",
|
|
453
|
+
* "status": "INIT",
|
|
454
|
+
* "location": {
|
|
455
|
+
* "type": "REMOTE",
|
|
456
|
+
* "work_location_id": "string"
|
|
457
|
+
* },
|
|
458
|
+
* "employment_type_id": "string",
|
|
459
|
+
* "employment_type": {
|
|
460
|
+
* "id": "string",
|
|
461
|
+
* "created_at": "string",
|
|
462
|
+
* "updated_at": "string",
|
|
463
|
+
* "label": "string"
|
|
464
|
+
* },
|
|
465
|
+
* "gender": "MALE",
|
|
466
|
+
* "date_of_birth": "string",
|
|
467
|
+
* "race": "BLACK",
|
|
468
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
469
|
+
* "citizenship": "AF",
|
|
470
|
+
* "compensation_id": "string",
|
|
471
|
+
* "compensation": {
|
|
472
|
+
* "id": "string",
|
|
473
|
+
* "created_at": "string",
|
|
474
|
+
* "updated_at": "string"
|
|
475
|
+
* },
|
|
476
|
+
* "overtime_exemption": "EXEMPT",
|
|
477
|
+
* "department_id": "string",
|
|
478
|
+
* "department": {
|
|
479
|
+
* "id": "string",
|
|
480
|
+
* "created_at": "string",
|
|
481
|
+
* "updated_at": "string",
|
|
482
|
+
* "name": "string",
|
|
483
|
+
* "parent_id": "string",
|
|
484
|
+
* "parent": {},
|
|
485
|
+
* "reference_code": "string",
|
|
486
|
+
* "department_hierarchy_id": [],
|
|
487
|
+
* "department_hierarchy": []
|
|
488
|
+
* },
|
|
489
|
+
* "teams_id": [
|
|
490
|
+
* "string"
|
|
491
|
+
* ],
|
|
492
|
+
* "teams": [
|
|
493
|
+
* {}
|
|
494
|
+
* ],
|
|
495
|
+
* "title": "string",
|
|
496
|
+
* "title_effective_date": "string",
|
|
497
|
+
* "level_id": "string",
|
|
498
|
+
* "level": {
|
|
499
|
+
* "id": "string",
|
|
500
|
+
* "created_at": "string",
|
|
501
|
+
* "updated_at": "string",
|
|
502
|
+
* "name": "string",
|
|
503
|
+
* "parent_id": "string",
|
|
504
|
+
* "parent": {},
|
|
505
|
+
* "global_level": "string",
|
|
506
|
+
* "description": "string",
|
|
507
|
+
* "scope_of_responsibilities": "string",
|
|
508
|
+
* "experience_requirements": "string",
|
|
509
|
+
* "rank": "string",
|
|
510
|
+
* "track_id": "string",
|
|
511
|
+
* "track": {}
|
|
512
|
+
* },
|
|
513
|
+
* "job_function_id": "string",
|
|
514
|
+
* "job_function": {
|
|
515
|
+
* "id": "string",
|
|
516
|
+
* "created_at": "string",
|
|
517
|
+
* "updated_at": "string",
|
|
518
|
+
* "name": "string"
|
|
519
|
+
* },
|
|
520
|
+
* "termination_details": {
|
|
521
|
+
* "type": "VOLUNTARY",
|
|
522
|
+
* "reason": "string"
|
|
523
|
+
* },
|
|
524
|
+
* "pay_schedule_id": "string",
|
|
525
|
+
* "work_schedule": {},
|
|
526
|
+
* "compensation_grade": {
|
|
527
|
+
* "id": "string",
|
|
528
|
+
* "label": "string"
|
|
529
|
+
* },
|
|
530
|
+
* "original_start_date": "string",
|
|
531
|
+
* "custom_fields": [
|
|
532
|
+
* "string"
|
|
533
|
+
* ],
|
|
534
|
+
* "country_fields": {
|
|
535
|
+
* "us": {},
|
|
536
|
+
* "ca": {},
|
|
537
|
+
* "nz": {}
|
|
538
|
+
* },
|
|
539
|
+
* "business_partners_id": [
|
|
540
|
+
* "string"
|
|
541
|
+
* ],
|
|
542
|
+
* "business_partners": [
|
|
543
|
+
* {}
|
|
544
|
+
* ]
|
|
545
|
+
* }
|
|
546
|
+
* },
|
|
547
|
+
* "scheduled_date": "string",
|
|
548
|
+
* "effective_start_date": "string",
|
|
549
|
+
* "effective_end_date": "string",
|
|
550
|
+
* "name": "string",
|
|
551
|
+
* "description": "string",
|
|
552
|
+
* "status": "DRAFT",
|
|
553
|
+
* "cancel_reason": "string",
|
|
554
|
+
* "source_label_id": "string",
|
|
555
|
+
* "source_label": {
|
|
556
|
+
* "id": "string",
|
|
557
|
+
* "client": "VC_PLAN_CYCLE",
|
|
558
|
+
* "external_id": "string",
|
|
559
|
+
* "name": "string"
|
|
560
|
+
* },
|
|
561
|
+
* "group_label_id": "string",
|
|
562
|
+
* "group_label": {
|
|
563
|
+
* "id": "string",
|
|
564
|
+
* "client": "VC_PLAN_CYCLE",
|
|
565
|
+
* "external_id": "string",
|
|
566
|
+
* "name": "string"
|
|
567
|
+
* },
|
|
568
|
+
* "paystub_id": "string",
|
|
569
|
+
* "created_at": "string",
|
|
570
|
+
* "updated_at": "string"
|
|
571
|
+
* }
|
|
572
|
+
* ```
|
|
573
|
+
*/
|
|
574
|
+
cancel(id, body, options) {
|
|
575
|
+
return this._client.post(path `/scheduled-payouts/${id}/cancel/`, { body, ...options });
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
//# sourceMappingURL=scheduled-payouts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduled-payouts.mjs","sourceRoot":"","sources":["../src/resources/scheduled-payouts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqIG;IACH,IAAI,CACF,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAA,aAA0C,CAAA,EAAE;YAChG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyMG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgMG;IACH,MAAM,CACJ,EAAU,EACV,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}
|