@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.
Files changed (277) hide show
  1. package/client.d.mts +41 -8
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +41 -8
  4. package/client.d.ts.map +1 -1
  5. package/client.js +35 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +35 -0
  8. package/client.mjs.map +1 -1
  9. package/lib/manifest/app.d.mts +20 -1
  10. package/lib/manifest/app.d.mts.map +1 -1
  11. package/lib/manifest/app.d.ts +20 -1
  12. package/lib/manifest/app.d.ts.map +1 -1
  13. package/lib/manifest/app.js +50 -0
  14. package/lib/manifest/app.js.map +1 -1
  15. package/lib/manifest/app.mjs +51 -1
  16. package/lib/manifest/app.mjs.map +1 -1
  17. package/lib/manifest/composition.d.mts +3 -0
  18. package/lib/manifest/composition.d.mts.map +1 -1
  19. package/lib/manifest/composition.d.ts +3 -0
  20. package/lib/manifest/composition.d.ts.map +1 -1
  21. package/lib/manifest/composition.js.map +1 -1
  22. package/lib/manifest/composition.mjs.map +1 -1
  23. package/lib/manifest/definitions/app.js +4 -1
  24. package/lib/manifest/definitions/app.js.map +1 -1
  25. package/lib/manifest/definitions/app.mjs +4 -1
  26. package/lib/manifest/definitions/app.mjs.map +1 -1
  27. package/lib/manifest/definitions/canvas-instance.d.mts +114 -0
  28. package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
  29. package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
  30. package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
  31. package/lib/manifest/definitions/canvas-instance.js +31 -0
  32. package/lib/manifest/definitions/canvas-instance.js.map +1 -0
  33. package/lib/manifest/definitions/canvas-instance.mjs +28 -0
  34. package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
  35. package/lib/manifest/definitions/function.d.mts.map +1 -1
  36. package/lib/manifest/definitions/function.d.ts.map +1 -1
  37. package/lib/manifest/definitions/function.js +1 -0
  38. package/lib/manifest/definitions/function.js.map +1 -1
  39. package/lib/manifest/definitions/function.mjs +1 -0
  40. package/lib/manifest/definitions/function.mjs.map +1 -1
  41. package/lib/manifest/definitions/group.d.mts +64 -0
  42. package/lib/manifest/definitions/group.d.mts.map +1 -0
  43. package/lib/manifest/definitions/group.d.ts +64 -0
  44. package/lib/manifest/definitions/group.d.ts.map +1 -0
  45. package/lib/manifest/definitions/group.js +57 -0
  46. package/lib/manifest/definitions/group.js.map +1 -0
  47. package/lib/manifest/definitions/group.mjs +50 -0
  48. package/lib/manifest/definitions/group.mjs.map +1 -0
  49. package/lib/manifest/definitions/index.d.mts +5 -0
  50. package/lib/manifest/definitions/index.d.mts.map +1 -1
  51. package/lib/manifest/definitions/index.d.ts +5 -0
  52. package/lib/manifest/definitions/index.d.ts.map +1 -1
  53. package/lib/manifest/definitions/index.js +9 -1
  54. package/lib/manifest/definitions/index.js.map +1 -1
  55. package/lib/manifest/definitions/index.mjs +3 -0
  56. package/lib/manifest/definitions/index.mjs.map +1 -1
  57. package/lib/manifest/definitions/saved-super-group.d.mts +12 -0
  58. package/lib/manifest/definitions/saved-super-group.d.mts.map +1 -0
  59. package/lib/manifest/definitions/saved-super-group.d.ts +12 -0
  60. package/lib/manifest/definitions/saved-super-group.d.ts.map +1 -0
  61. package/lib/manifest/definitions/saved-super-group.js +26 -0
  62. package/lib/manifest/definitions/saved-super-group.js.map +1 -0
  63. package/lib/manifest/definitions/saved-super-group.mjs +21 -0
  64. package/lib/manifest/definitions/saved-super-group.mjs.map +1 -0
  65. package/lib/manifest/existing-manifest-context.d.mts +3 -0
  66. package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
  67. package/lib/manifest/existing-manifest-context.d.ts +3 -0
  68. package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
  69. package/lib/manifest/existing-manifest-context.js +15 -0
  70. package/lib/manifest/existing-manifest-context.js.map +1 -1
  71. package/lib/manifest/existing-manifest-context.mjs +15 -0
  72. package/lib/manifest/existing-manifest-context.mjs.map +1 -1
  73. package/lib/manifest/group.d.mts +83 -0
  74. package/lib/manifest/group.d.mts.map +1 -0
  75. package/lib/manifest/group.d.ts +83 -0
  76. package/lib/manifest/group.d.ts.map +1 -0
  77. package/lib/manifest/group.js +207 -0
  78. package/lib/manifest/group.js.map +1 -0
  79. package/lib/manifest/group.mjs +203 -0
  80. package/lib/manifest/group.mjs.map +1 -0
  81. package/lib/manifest/index.d.mts +2 -0
  82. package/lib/manifest/index.d.mts.map +1 -1
  83. package/lib/manifest/index.d.ts +2 -0
  84. package/lib/manifest/index.d.ts.map +1 -1
  85. package/lib/manifest/index.js +5 -1
  86. package/lib/manifest/index.js.map +1 -1
  87. package/lib/manifest/index.mjs +2 -0
  88. package/lib/manifest/index.mjs.map +1 -1
  89. package/lib/manifest/manifest-builder.d.mts +1 -1
  90. package/lib/manifest/manifest-builder.d.mts.map +1 -1
  91. package/lib/manifest/manifest-builder.d.ts +1 -1
  92. package/lib/manifest/manifest-builder.d.ts.map +1 -1
  93. package/lib/manifest/manifest-builder.js.map +1 -1
  94. package/lib/manifest/manifest-builder.mjs.map +1 -1
  95. package/lib/manifest/manifest-function.d.mts +16 -0
  96. package/lib/manifest/manifest-function.d.mts.map +1 -1
  97. package/lib/manifest/manifest-function.d.ts +16 -0
  98. package/lib/manifest/manifest-function.d.ts.map +1 -1
  99. package/lib/manifest/manifest-function.js +67 -0
  100. package/lib/manifest/manifest-function.js.map +1 -1
  101. package/lib/manifest/manifest-function.mjs +68 -1
  102. package/lib/manifest/manifest-function.mjs.map +1 -1
  103. package/lib/manifest/saved-super-group.d.mts +43 -0
  104. package/lib/manifest/saved-super-group.d.mts.map +1 -0
  105. package/lib/manifest/saved-super-group.d.ts +43 -0
  106. package/lib/manifest/saved-super-group.d.ts.map +1 -0
  107. package/lib/manifest/saved-super-group.js +136 -0
  108. package/lib/manifest/saved-super-group.js.map +1 -0
  109. package/lib/manifest/saved-super-group.mjs +132 -0
  110. package/lib/manifest/saved-super-group.mjs.map +1 -0
  111. package/package.json +1 -1
  112. package/resources/application-submissions.d.mts +261 -0
  113. package/resources/application-submissions.d.mts.map +1 -0
  114. package/resources/application-submissions.d.ts +261 -0
  115. package/resources/application-submissions.d.ts.map +1 -0
  116. package/resources/application-submissions.js +112 -0
  117. package/resources/application-submissions.js.map +1 -0
  118. package/resources/application-submissions.mjs +108 -0
  119. package/resources/application-submissions.mjs.map +1 -0
  120. package/resources/bills.d.mts +913 -12
  121. package/resources/bills.d.mts.map +1 -1
  122. package/resources/bills.d.ts +913 -12
  123. package/resources/bills.d.ts.map +1 -1
  124. package/resources/bills.js +221 -0
  125. package/resources/bills.js.map +1 -1
  126. package/resources/bills.mjs +221 -0
  127. package/resources/bills.mjs.map +1 -1
  128. package/resources/candidate-applications.d.mts +247 -9
  129. package/resources/candidate-applications.d.mts.map +1 -1
  130. package/resources/candidate-applications.d.ts +247 -9
  131. package/resources/candidate-applications.d.ts.map +1 -1
  132. package/resources/candidate-applications.js +37 -5
  133. package/resources/candidate-applications.js.map +1 -1
  134. package/resources/candidate-applications.mjs +37 -5
  135. package/resources/candidate-applications.mjs.map +1 -1
  136. package/resources/card-transactions.d.mts +1580 -30
  137. package/resources/card-transactions.d.mts.map +1 -1
  138. package/resources/card-transactions.d.ts +1580 -30
  139. package/resources/card-transactions.d.ts.map +1 -1
  140. package/resources/card-transactions.js +404 -4
  141. package/resources/card-transactions.js.map +1 -1
  142. package/resources/card-transactions.mjs +404 -4
  143. package/resources/card-transactions.mjs.map +1 -1
  144. package/resources/custom-objects/custom-objects.d.mts +4 -0
  145. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  146. package/resources/custom-objects/custom-objects.d.ts +4 -0
  147. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  148. package/resources/custom-objects/custom-objects.js +4 -0
  149. package/resources/custom-objects/custom-objects.js.map +1 -1
  150. package/resources/custom-objects/custom-objects.mjs +4 -0
  151. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  152. package/resources/custom-objects/index.d.mts +1 -0
  153. package/resources/custom-objects/index.d.mts.map +1 -1
  154. package/resources/custom-objects/index.d.ts +1 -0
  155. package/resources/custom-objects/index.d.ts.map +1 -1
  156. package/resources/custom-objects/index.js +3 -1
  157. package/resources/custom-objects/index.js.map +1 -1
  158. package/resources/custom-objects/index.mjs +1 -0
  159. package/resources/custom-objects/index.mjs.map +1 -1
  160. package/resources/custom-objects/record-actions.d.mts +98 -0
  161. package/resources/custom-objects/record-actions.d.mts.map +1 -0
  162. package/resources/custom-objects/record-actions.d.ts +98 -0
  163. package/resources/custom-objects/record-actions.d.ts.map +1 -0
  164. package/resources/custom-objects/record-actions.js +58 -0
  165. package/resources/custom-objects/record-actions.js.map +1 -0
  166. package/resources/custom-objects/record-actions.mjs +54 -0
  167. package/resources/custom-objects/record-actions.mjs.map +1 -0
  168. package/resources/earnings-inputs.d.mts +14 -2
  169. package/resources/earnings-inputs.d.mts.map +1 -1
  170. package/resources/earnings-inputs.d.ts +14 -2
  171. package/resources/earnings-inputs.d.ts.map +1 -1
  172. package/resources/earnings-inputs.js +14 -2
  173. package/resources/earnings-inputs.js.map +1 -1
  174. package/resources/earnings-inputs.mjs +14 -2
  175. package/resources/earnings-inputs.mjs.map +1 -1
  176. package/resources/index.d.mts +9 -4
  177. package/resources/index.d.mts.map +1 -1
  178. package/resources/index.d.ts +9 -4
  179. package/resources/index.d.ts.map +1 -1
  180. package/resources/index.js +13 -3
  181. package/resources/index.js.map +1 -1
  182. package/resources/index.mjs +5 -0
  183. package/resources/index.mjs.map +1 -1
  184. package/resources/job-posts.d.mts +345 -0
  185. package/resources/job-posts.d.mts.map +1 -0
  186. package/resources/job-posts.d.ts +345 -0
  187. package/resources/job-posts.d.ts.map +1 -0
  188. package/resources/job-posts.js +110 -0
  189. package/resources/job-posts.js.map +1 -0
  190. package/resources/job-posts.mjs +106 -0
  191. package/resources/job-posts.mjs.map +1 -0
  192. package/resources/job-requisitions.d.mts +96 -4
  193. package/resources/job-requisitions.d.mts.map +1 -1
  194. package/resources/job-requisitions.d.ts +96 -4
  195. package/resources/job-requisitions.d.ts.map +1 -1
  196. package/resources/job-requisitions.js +64 -3
  197. package/resources/job-requisitions.js.map +1 -1
  198. package/resources/job-requisitions.mjs +64 -3
  199. package/resources/job-requisitions.mjs.map +1 -1
  200. package/resources/record-detail-related-records.d.mts +60 -30
  201. package/resources/record-detail-related-records.d.mts.map +1 -1
  202. package/resources/record-detail-related-records.d.ts +60 -30
  203. package/resources/record-detail-related-records.d.ts.map +1 -1
  204. package/resources/record-details.d.mts +120 -60
  205. package/resources/record-details.d.mts.map +1 -1
  206. package/resources/record-details.d.ts +120 -60
  207. package/resources/record-details.d.ts.map +1 -1
  208. package/resources/reimbursements.d.mts +1106 -64
  209. package/resources/reimbursements.d.mts.map +1 -1
  210. package/resources/reimbursements.d.ts +1106 -64
  211. package/resources/reimbursements.d.ts.map +1 -1
  212. package/resources/reimbursements.js +208 -0
  213. package/resources/reimbursements.js.map +1 -1
  214. package/resources/reimbursements.mjs +208 -0
  215. package/resources/reimbursements.mjs.map +1 -1
  216. package/resources/scheduled-payout-labels.d.mts +267 -0
  217. package/resources/scheduled-payout-labels.d.mts.map +1 -0
  218. package/resources/scheduled-payout-labels.d.ts +267 -0
  219. package/resources/scheduled-payout-labels.d.ts.map +1 -0
  220. package/resources/scheduled-payout-labels.js +151 -0
  221. package/resources/scheduled-payout-labels.js.map +1 -0
  222. package/resources/scheduled-payout-labels.mjs +147 -0
  223. package/resources/scheduled-payout-labels.mjs.map +1 -0
  224. package/resources/scheduled-payout-types.d.mts +680 -0
  225. package/resources/scheduled-payout-types.d.mts.map +1 -0
  226. package/resources/scheduled-payout-types.d.ts +680 -0
  227. package/resources/scheduled-payout-types.d.ts.map +1 -0
  228. package/resources/scheduled-payout-types.js +546 -0
  229. package/resources/scheduled-payout-types.js.map +1 -0
  230. package/resources/scheduled-payout-types.mjs +542 -0
  231. package/resources/scheduled-payout-types.mjs.map +1 -0
  232. package/resources/scheduled-payouts.d.mts +1588 -0
  233. package/resources/scheduled-payouts.d.mts.map +1 -0
  234. package/resources/scheduled-payouts.d.ts +1588 -0
  235. package/resources/scheduled-payouts.d.ts.map +1 -0
  236. package/resources/scheduled-payouts.js +582 -0
  237. package/resources/scheduled-payouts.js.map +1 -0
  238. package/resources/scheduled-payouts.mjs +578 -0
  239. package/resources/scheduled-payouts.mjs.map +1 -0
  240. package/src/client.ts +150 -0
  241. package/src/lib/manifest/app.ts +72 -2
  242. package/src/lib/manifest/composition.ts +8 -2
  243. package/src/lib/manifest/definitions/README.md +3 -1
  244. package/src/lib/manifest/definitions/app.ts +4 -1
  245. package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
  246. package/src/lib/manifest/definitions/function.ts +1 -0
  247. package/src/lib/manifest/definitions/group.ts +159 -0
  248. package/src/lib/manifest/definitions/index.ts +42 -0
  249. package/src/lib/manifest/definitions/saved-super-group.ts +28 -0
  250. package/src/lib/manifest/existing-manifest-context.ts +24 -0
  251. package/src/lib/manifest/group.ts +282 -0
  252. package/src/lib/manifest/index.ts +16 -0
  253. package/src/lib/manifest/manifest-builder.ts +2 -0
  254. package/src/lib/manifest/manifest-function.ts +91 -1
  255. package/src/lib/manifest/saved-super-group.ts +171 -0
  256. package/src/resources/application-submissions.ts +315 -0
  257. package/src/resources/bills.ts +1085 -12
  258. package/src/resources/candidate-applications.ts +282 -9
  259. package/src/resources/card-transactions.ts +1874 -32
  260. package/src/resources/custom-objects/custom-objects.ts +16 -0
  261. package/src/resources/custom-objects/index.ts +6 -0
  262. package/src/resources/custom-objects/record-actions.ts +125 -0
  263. package/src/resources/earnings-inputs.ts +14 -2
  264. package/src/resources/index.ts +57 -0
  265. package/src/resources/job-posts.ts +415 -0
  266. package/src/resources/job-requisitions.ts +110 -3
  267. package/src/resources/record-detail-related-records.ts +60 -30
  268. package/src/resources/record-details.ts +120 -60
  269. package/src/resources/reimbursements.ts +1299 -63
  270. package/src/resources/scheduled-payout-labels.ts +373 -0
  271. package/src/resources/scheduled-payout-types.ts +755 -0
  272. package/src/resources/scheduled-payouts.ts +1947 -0
  273. package/src/version.ts +1 -1
  274. package/version.d.mts +1 -1
  275. package/version.d.ts +1 -1
  276. package/version.js +1 -1
  277. package/version.mjs +1 -1
@@ -0,0 +1,1947 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as BusinessPartnersAPI from './business-partners';
5
+ import * as WorkersAPI from './workers';
6
+ import { APIPromise } from '../core/api-promise';
7
+ import { PageCursorURL, PagePromise } from '../core/pagination';
8
+ import { RequestOptions } from '../internal/request-options';
9
+ import { path } from '../internal/utils/path';
10
+
11
+ /**
12
+ * Compensation associated with workers
13
+ */
14
+ export class ScheduledPayouts extends APIResource {
15
+ /**
16
+ * List scheduled payouts. Paginated with limit and cursor. Filter with string
17
+ * equality joined by and on payee_id, client, external_id, status,
18
+ * source_label_id, and group_label_id, for example filter=client eq 'CUSTOM' and
19
+ * status eq 'SCHEDULED'. Supports
20
+ * expand=payee,payout_type,source_label,group_label. Always uses the company admin
21
+ * payout rowset; callers without admin payout visibility receive an empty list.
22
+ * Retrieve returns NotFound for the same rows.
23
+ *
24
+ * - Requires: `Internal Testing`
25
+ *
26
+ * @example HTTP
27
+ * Representative request and response shapes.
28
+ * ```
29
+ * GET /scheduled-payouts/?limit=0&cursor=cursor&filter=filter&expand=expand HTTP/1.1
30
+ * Host: rest.ripplingapis.com
31
+ * Accept: application/json
32
+ * Rippling-Api-Version: 2024-08-01
33
+ *
34
+ * HTTP/1.1 200 OK
35
+ * Content-Type: application/json
36
+ *
37
+ * {
38
+ * "__meta": {
39
+ * "redacted_fields": [
40
+ * {
41
+ * "name": "date_of_birth",
42
+ * "reason": "Insufficient entitlements"
43
+ * }
44
+ * ]
45
+ * },
46
+ * "results": [
47
+ * {
48
+ * "id": "string",
49
+ * "payee_id": "string",
50
+ * "payee": {
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
+ * },
99
+ * "client": "VC_PLAN_CYCLE",
100
+ * "external_id": "string",
101
+ * "amount_base": {
102
+ * "currency_type": "string",
103
+ * "value": "string"
104
+ * },
105
+ * "amount_usd": {
106
+ * "currency_type": "string",
107
+ * "value": "string"
108
+ * },
109
+ * "pay_classification": "string",
110
+ * "payout_type_id": "string",
111
+ * "payout_type": {
112
+ * "id": "string",
113
+ * "key": "string",
114
+ * "display_name": "string",
115
+ * "is_system": "string",
116
+ * "created_by_id": "string",
117
+ * "created_by": {}
118
+ * },
119
+ * "scheduled_date": "string",
120
+ * "effective_start_date": "string",
121
+ * "effective_end_date": "string",
122
+ * "name": "string",
123
+ * "description": "string",
124
+ * "status": "DRAFT",
125
+ * "cancel_reason": "string",
126
+ * "source_label_id": "string",
127
+ * "source_label": {
128
+ * "id": "string",
129
+ * "client": "VC_PLAN_CYCLE",
130
+ * "external_id": "string",
131
+ * "name": "string"
132
+ * },
133
+ * "group_label_id": "string",
134
+ * "group_label": {
135
+ * "id": "string",
136
+ * "client": "VC_PLAN_CYCLE",
137
+ * "external_id": "string",
138
+ * "name": "string"
139
+ * },
140
+ * "paystub_id": "string",
141
+ * "created_at": "string",
142
+ * "updated_at": "string"
143
+ * }
144
+ * ],
145
+ * "next_link": "string"
146
+ * }
147
+ * ```
148
+ */
149
+ list(
150
+ query: ScheduledPayoutListParams | null | undefined = {},
151
+ options?: RequestOptions,
152
+ ): PagePromise<ScheduledPayoutListResponsesPageCursorURL, ScheduledPayoutListResponse> {
153
+ return this._client.getAPIList('/scheduled-payouts/', PageCursorURL<ScheduledPayoutListResponse>, {
154
+ query,
155
+ ...options,
156
+ });
157
+ }
158
+
159
+ /**
160
+ * Create or update one payout. Identity is (client, external_id), not id. Same key
161
+ * and same body replays with 200. Same key and a different body overwrites a
162
+ * SCHEDULED or EVALUATION_FAILED payout when the caller can edit scheduled
163
+ * payouts; otherwise 403. RELEASED payouts return 409. Successful creates and
164
+ * updates return 200. client must be CUSTOM; other clients are written by Rippling
165
+ * systems and return 400.
166
+ *
167
+ * @example HTTP
168
+ * Representative request and response shapes.
169
+ * ```
170
+ * POST /scheduled-payouts/ HTTP/1.1
171
+ * Host: rest.ripplingapis.com
172
+ * Content-Type: application/json
173
+ * Accept: application/json
174
+ * Rippling-Api-Version: 2024-08-01
175
+ *
176
+ * {
177
+ * "amount_base": {},
178
+ * "amount_usd": {},
179
+ * "client": "VC_PLAN_CYCLE",
180
+ * "effective_end_date": "effective_end_date",
181
+ * "effective_start_date": "effective_start_date",
182
+ * "external_id": "external_id",
183
+ * "payee_id": "payee_id",
184
+ * "payout_type_id": "payout_type_id",
185
+ * "scheduled_date": "scheduled_date"
186
+ * }
187
+ *
188
+ * HTTP/1.1 200 OK
189
+ * Content-Type: application/json
190
+ *
191
+ * {
192
+ * "id": "string",
193
+ * "payee_id": "string",
194
+ * "payee": {
195
+ * "id": "string",
196
+ * "created_at": "string",
197
+ * "updated_at": "string"
198
+ * },
199
+ * "client": "VC_PLAN_CYCLE",
200
+ * "external_id": "string",
201
+ * "amount_base": {},
202
+ * "amount_usd": {},
203
+ * "pay_classification": "string",
204
+ * "payout_type_id": "string",
205
+ * "payout_type": {
206
+ * "id": "string",
207
+ * "key": "string",
208
+ * "display_name": "string",
209
+ * "is_system": false,
210
+ * "created_by_id": "string",
211
+ * "created_by": {
212
+ * "id": "string",
213
+ * "created_at": "string",
214
+ * "updated_at": "string",
215
+ * "user_id": "string",
216
+ * "user": {
217
+ * "id": "string",
218
+ * "created_at": "string",
219
+ * "updated_at": "string"
220
+ * },
221
+ * "is_manager": false,
222
+ * "manager_id": "string",
223
+ * "manager": {
224
+ * "id": "string",
225
+ * "created_at": "string",
226
+ * "updated_at": "string"
227
+ * },
228
+ * "legal_entity_id": "string",
229
+ * "legal_entity": {
230
+ * "id": "string",
231
+ * "created_at": "string",
232
+ * "updated_at": "string"
233
+ * },
234
+ * "country": "AF",
235
+ * "start_date": "string",
236
+ * "end_date": "string",
237
+ * "number": 0,
238
+ * "work_email": "string",
239
+ * "personal_email": "string",
240
+ * "status": "INIT",
241
+ * "location": {
242
+ * "type": "REMOTE",
243
+ * "work_location_id": "string"
244
+ * },
245
+ * "employment_type_id": "string",
246
+ * "employment_type": {
247
+ * "id": "string",
248
+ * "created_at": "string",
249
+ * "updated_at": "string",
250
+ * "label": "string"
251
+ * },
252
+ * "gender": "MALE",
253
+ * "date_of_birth": "string",
254
+ * "race": "BLACK",
255
+ * "ethnicity": "HISPANIC_OR_LATINO",
256
+ * "citizenship": "AF",
257
+ * "compensation_id": "string",
258
+ * "compensation": {
259
+ * "id": "string",
260
+ * "created_at": "string",
261
+ * "updated_at": "string"
262
+ * },
263
+ * "overtime_exemption": "EXEMPT",
264
+ * "department_id": "string",
265
+ * "department": {
266
+ * "id": "string",
267
+ * "created_at": "string",
268
+ * "updated_at": "string",
269
+ * "name": "string",
270
+ * "parent_id": "string",
271
+ * "parent": {},
272
+ * "reference_code": "string",
273
+ * "department_hierarchy_id": [],
274
+ * "department_hierarchy": []
275
+ * },
276
+ * "teams_id": [
277
+ * "string"
278
+ * ],
279
+ * "teams": [
280
+ * {}
281
+ * ],
282
+ * "title": "string",
283
+ * "title_effective_date": "string",
284
+ * "level_id": "string",
285
+ * "level": {
286
+ * "id": "string",
287
+ * "created_at": "string",
288
+ * "updated_at": "string",
289
+ * "name": "string",
290
+ * "parent_id": "string",
291
+ * "parent": {},
292
+ * "global_level": "string",
293
+ * "description": "string",
294
+ * "scope_of_responsibilities": "string",
295
+ * "experience_requirements": "string",
296
+ * "rank": "string",
297
+ * "track_id": "string",
298
+ * "track": {}
299
+ * },
300
+ * "job_function_id": "string",
301
+ * "job_function": {
302
+ * "id": "string",
303
+ * "created_at": "string",
304
+ * "updated_at": "string",
305
+ * "name": "string"
306
+ * },
307
+ * "termination_details": {
308
+ * "type": "VOLUNTARY",
309
+ * "reason": "string"
310
+ * },
311
+ * "pay_schedule_id": "string",
312
+ * "work_schedule": {},
313
+ * "compensation_grade": {
314
+ * "id": "string",
315
+ * "label": "string"
316
+ * },
317
+ * "original_start_date": "string",
318
+ * "custom_fields": [
319
+ * "string"
320
+ * ],
321
+ * "country_fields": {
322
+ * "us": {},
323
+ * "ca": {},
324
+ * "nz": {}
325
+ * },
326
+ * "business_partners_id": [
327
+ * "string"
328
+ * ],
329
+ * "business_partners": [
330
+ * {}
331
+ * ]
332
+ * }
333
+ * },
334
+ * "scheduled_date": "string",
335
+ * "effective_start_date": "string",
336
+ * "effective_end_date": "string",
337
+ * "name": "string",
338
+ * "description": "string",
339
+ * "status": "DRAFT",
340
+ * "cancel_reason": "string",
341
+ * "source_label_id": "string",
342
+ * "source_label": {
343
+ * "id": "string",
344
+ * "client": "VC_PLAN_CYCLE",
345
+ * "external_id": "string",
346
+ * "name": "string"
347
+ * },
348
+ * "group_label_id": "string",
349
+ * "group_label": {
350
+ * "id": "string",
351
+ * "client": "VC_PLAN_CYCLE",
352
+ * "external_id": "string",
353
+ * "name": "string"
354
+ * },
355
+ * "paystub_id": "string",
356
+ * "created_at": "string",
357
+ * "updated_at": "string"
358
+ * }
359
+ * ```
360
+ */
361
+ create(
362
+ body: ScheduledPayoutCreateParams,
363
+ options?: RequestOptions,
364
+ ): APIPromise<ScheduledPayoutCreateResponse> {
365
+ return this._client.post('/scheduled-payouts/', { body, ...options });
366
+ }
367
+
368
+ /**
369
+ * Retrieve a specific scheduled payout. Uses the company admin payout rowset;
370
+ * callers without admin payout visibility receive NotFound.
371
+ *
372
+ * @example HTTP
373
+ * Representative request and response shapes.
374
+ * ```
375
+ * GET /scheduled-payouts/{id}/ HTTP/1.1
376
+ * Host: rest.ripplingapis.com
377
+ * Accept: application/json
378
+ * Rippling-Api-Version: 2024-08-01
379
+ *
380
+ * HTTP/1.1 200 OK
381
+ * Content-Type: application/json
382
+ *
383
+ * {
384
+ * "__meta": {
385
+ * "redacted_fields": [
386
+ * {}
387
+ * ]
388
+ * }
389
+ * }
390
+ * ```
391
+ */
392
+ retrieve(id: string, options?: RequestOptions): APIPromise<ScheduledPayoutRetrieveResponse> {
393
+ return this._client.get(path`/scheduled-payouts/${id}/`, options);
394
+ }
395
+
396
+ /**
397
+ * SCHEDULED and EVALUATION_FAILED payouts can be cancelled; cancelling an already
398
+ * cancelled payout returns it unchanged. Payouts in any other status return 409.
399
+ * Only CUSTOM payouts can be cancelled through this API; other clients return 400.
400
+ * The required reason is stored as cancel_reason. Callers without admin payout
401
+ * visibility receive 404.
402
+ *
403
+ * @example HTTP
404
+ * Representative request and response shapes.
405
+ * ```
406
+ * POST /scheduled-payouts/{id}/cancel/ HTTP/1.1
407
+ * Host: rest.ripplingapis.com
408
+ * Content-Type: application/json
409
+ * Accept: application/json
410
+ * Rippling-Api-Version: 2024-08-01
411
+ *
412
+ * {
413
+ * "reason": "reason"
414
+ * }
415
+ *
416
+ * HTTP/1.1 200 OK
417
+ * Content-Type: application/json
418
+ *
419
+ * {
420
+ * "id": "string",
421
+ * "payee_id": "string",
422
+ * "payee": {
423
+ * "id": "string",
424
+ * "created_at": "string",
425
+ * "updated_at": "string"
426
+ * },
427
+ * "client": "VC_PLAN_CYCLE",
428
+ * "external_id": "string",
429
+ * "amount_base": {},
430
+ * "amount_usd": {},
431
+ * "pay_classification": "string",
432
+ * "payout_type_id": "string",
433
+ * "payout_type": {
434
+ * "id": "string",
435
+ * "key": "string",
436
+ * "display_name": "string",
437
+ * "is_system": false,
438
+ * "created_by_id": "string",
439
+ * "created_by": {
440
+ * "id": "string",
441
+ * "created_at": "string",
442
+ * "updated_at": "string",
443
+ * "user_id": "string",
444
+ * "user": {
445
+ * "id": "string",
446
+ * "created_at": "string",
447
+ * "updated_at": "string"
448
+ * },
449
+ * "is_manager": false,
450
+ * "manager_id": "string",
451
+ * "manager": {
452
+ * "id": "string",
453
+ * "created_at": "string",
454
+ * "updated_at": "string"
455
+ * },
456
+ * "legal_entity_id": "string",
457
+ * "legal_entity": {
458
+ * "id": "string",
459
+ * "created_at": "string",
460
+ * "updated_at": "string"
461
+ * },
462
+ * "country": "AF",
463
+ * "start_date": "string",
464
+ * "end_date": "string",
465
+ * "number": 0,
466
+ * "work_email": "string",
467
+ * "personal_email": "string",
468
+ * "status": "INIT",
469
+ * "location": {
470
+ * "type": "REMOTE",
471
+ * "work_location_id": "string"
472
+ * },
473
+ * "employment_type_id": "string",
474
+ * "employment_type": {
475
+ * "id": "string",
476
+ * "created_at": "string",
477
+ * "updated_at": "string",
478
+ * "label": "string"
479
+ * },
480
+ * "gender": "MALE",
481
+ * "date_of_birth": "string",
482
+ * "race": "BLACK",
483
+ * "ethnicity": "HISPANIC_OR_LATINO",
484
+ * "citizenship": "AF",
485
+ * "compensation_id": "string",
486
+ * "compensation": {
487
+ * "id": "string",
488
+ * "created_at": "string",
489
+ * "updated_at": "string"
490
+ * },
491
+ * "overtime_exemption": "EXEMPT",
492
+ * "department_id": "string",
493
+ * "department": {
494
+ * "id": "string",
495
+ * "created_at": "string",
496
+ * "updated_at": "string",
497
+ * "name": "string",
498
+ * "parent_id": "string",
499
+ * "parent": {},
500
+ * "reference_code": "string",
501
+ * "department_hierarchy_id": [],
502
+ * "department_hierarchy": []
503
+ * },
504
+ * "teams_id": [
505
+ * "string"
506
+ * ],
507
+ * "teams": [
508
+ * {}
509
+ * ],
510
+ * "title": "string",
511
+ * "title_effective_date": "string",
512
+ * "level_id": "string",
513
+ * "level": {
514
+ * "id": "string",
515
+ * "created_at": "string",
516
+ * "updated_at": "string",
517
+ * "name": "string",
518
+ * "parent_id": "string",
519
+ * "parent": {},
520
+ * "global_level": "string",
521
+ * "description": "string",
522
+ * "scope_of_responsibilities": "string",
523
+ * "experience_requirements": "string",
524
+ * "rank": "string",
525
+ * "track_id": "string",
526
+ * "track": {}
527
+ * },
528
+ * "job_function_id": "string",
529
+ * "job_function": {
530
+ * "id": "string",
531
+ * "created_at": "string",
532
+ * "updated_at": "string",
533
+ * "name": "string"
534
+ * },
535
+ * "termination_details": {
536
+ * "type": "VOLUNTARY",
537
+ * "reason": "string"
538
+ * },
539
+ * "pay_schedule_id": "string",
540
+ * "work_schedule": {},
541
+ * "compensation_grade": {
542
+ * "id": "string",
543
+ * "label": "string"
544
+ * },
545
+ * "original_start_date": "string",
546
+ * "custom_fields": [
547
+ * "string"
548
+ * ],
549
+ * "country_fields": {
550
+ * "us": {},
551
+ * "ca": {},
552
+ * "nz": {}
553
+ * },
554
+ * "business_partners_id": [
555
+ * "string"
556
+ * ],
557
+ * "business_partners": [
558
+ * {}
559
+ * ]
560
+ * }
561
+ * },
562
+ * "scheduled_date": "string",
563
+ * "effective_start_date": "string",
564
+ * "effective_end_date": "string",
565
+ * "name": "string",
566
+ * "description": "string",
567
+ * "status": "DRAFT",
568
+ * "cancel_reason": "string",
569
+ * "source_label_id": "string",
570
+ * "source_label": {
571
+ * "id": "string",
572
+ * "client": "VC_PLAN_CYCLE",
573
+ * "external_id": "string",
574
+ * "name": "string"
575
+ * },
576
+ * "group_label_id": "string",
577
+ * "group_label": {
578
+ * "id": "string",
579
+ * "client": "VC_PLAN_CYCLE",
580
+ * "external_id": "string",
581
+ * "name": "string"
582
+ * },
583
+ * "paystub_id": "string",
584
+ * "created_at": "string",
585
+ * "updated_at": "string"
586
+ * }
587
+ * ```
588
+ */
589
+ cancel(
590
+ id: string,
591
+ body: ScheduledPayoutCancelParams,
592
+ options?: RequestOptions,
593
+ ): APIPromise<ScheduledPayoutCancelResponse> {
594
+ return this._client.post(path`/scheduled-payouts/${id}/cancel/`, { body, ...options });
595
+ }
596
+ }
597
+
598
+ export type ScheduledPayoutListResponsesPageCursorURL = PageCursorURL<ScheduledPayoutListResponse>;
599
+
600
+ export interface ScheduledPayoutListResponse {
601
+ /**
602
+ * Unique identifier of the payout.
603
+ */
604
+ id: string;
605
+
606
+ /**
607
+ * Payout amount in the worker's base currency.
608
+ */
609
+ amount_base: ScheduledPayoutListResponse.AmountBase;
610
+
611
+ /**
612
+ * Payout amount converted to USD.
613
+ */
614
+ amount_usd: ScheduledPayoutListResponse.AmountUsd;
615
+
616
+ /**
617
+ * System that owns the payout; together with external_id it is the upsert
618
+ * identity. CUSTOM: created by an integrator through this API (the only value
619
+ * accepted on create). Rippling-generated, read-only here: VC_PLAN_CYCLE and
620
+ * VC_EVENT_DRIVEN_PLAN (variable compensation plans), MANUAL_PAYOUT (entered in
621
+ * Rippling), HRIS_SIGN_ON (new-hire sign-on bonuses), OFFLINE_RECOMMENDATION and
622
+ * NEW_HIRE_AGENT (Rippling recommendations).
623
+ */
624
+ client:
625
+ | 'VC_PLAN_CYCLE'
626
+ | 'VC_EVENT_DRIVEN_PLAN'
627
+ | 'CUSTOM'
628
+ | 'MANUAL_PAYOUT'
629
+ | 'HRIS_SIGN_ON'
630
+ | 'OFFLINE_RECOMMENDATION'
631
+ | 'NEW_HIRE_AGENT';
632
+
633
+ /**
634
+ * When the payout was created, as an ISO 8601 UTC timestamp.
635
+ */
636
+ created_at: string;
637
+
638
+ /**
639
+ * Last day of the period the payout covers, as YYYY-MM-DD (inclusive).
640
+ */
641
+ effective_end_date: string;
642
+
643
+ /**
644
+ * First day of the period the payout covers, as YYYY-MM-DD (inclusive).
645
+ */
646
+ effective_start_date: string;
647
+
648
+ /**
649
+ * External identifier unique per company and client.
650
+ */
651
+ external_id: string;
652
+
653
+ /**
654
+ * ID of the worker who receives this payout.
655
+ */
656
+ payee_id: string;
657
+
658
+ /**
659
+ * Key of the company payout type used for this payout. List valid keys with GET
660
+ * /scheduled-payout-types/.
661
+ */
662
+ payout_type_id: string;
663
+
664
+ /**
665
+ * Date the payout becomes eligible for release, as YYYY-MM-DD.
666
+ */
667
+ scheduled_date: string;
668
+
669
+ /**
670
+ * Lifecycle status. Before scheduling: DRAFT, PENDING_APPROVAL, APPROVAL_REJECTED.
671
+ * SCHEDULED: waiting for scheduled_date and its release conditions.
672
+ * EVALUATION_FAILED: release conditions could not be evaluated and will be
673
+ * retried; editable like SCHEDULED. RELEASED: sent to payroll and locked.
674
+ * PAYROLL_RETRACT_IN_PROGRESS: being removed from payroll. Terminal: PAID,
675
+ * FORFEITED (release conditions not met), CANCELLED.
676
+ */
677
+ status:
678
+ | 'DRAFT'
679
+ | 'PENDING_APPROVAL'
680
+ | 'APPROVAL_REJECTED'
681
+ | 'SCHEDULED'
682
+ | 'RELEASED'
683
+ | 'PAYROLL_RETRACT_IN_PROGRESS'
684
+ | 'PAID'
685
+ | 'FORFEITED'
686
+ | 'EVALUATION_FAILED'
687
+ | 'CANCELLED';
688
+
689
+ /**
690
+ * When the payout was last updated, as an ISO 8601 UTC timestamp.
691
+ */
692
+ updated_at: string;
693
+
694
+ /**
695
+ * Reason provided when the payout was cancelled.
696
+ */
697
+ cancel_reason?: string;
698
+
699
+ /**
700
+ * Optional payout description.
701
+ */
702
+ description?: string;
703
+
704
+ /**
705
+ * Group label attached to the payout. Populated only with expand=group_label,
706
+ * which requires scheduled-payout-labels.read.
707
+ */
708
+ group_label?: ScheduledPayoutListResponse.GroupLabel;
709
+
710
+ /**
711
+ * ID of the group label attached to the payout.
712
+ */
713
+ group_label_id?: string;
714
+
715
+ /**
716
+ * Optional payout name.
717
+ */
718
+ name?: string;
719
+
720
+ /**
721
+ * Payroll earning code resolved from the payout type's mapping for the payee's
722
+ * payroll entity. While the payout is open, reads reflect the current mapping;
723
+ * from RELEASED, PAYROLL_RETRACT_IN_PROGRESS, PAID, FORFEITED, CANCELLED, or
724
+ * APPROVAL_REJECTED onward it is the value stored at that transition. Payouts not
725
+ * paid through Rippling payroll return the stored value, which may be null.
726
+ */
727
+ pay_classification?: string;
728
+
729
+ /**
730
+ * Worker who receives this payout. Populated only with expand=payee, which
731
+ * requires workers.read.
732
+ */
733
+ payee?: WorkersAPI.Worker;
734
+
735
+ /**
736
+ * Payout type used for this payout. Populated only with expand=payout_type, which
737
+ * requires scheduled-payout-types.read.
738
+ */
739
+ payout_type?: ScheduledPayoutListResponse.PayoutType;
740
+
741
+ /**
742
+ * Paystub identifier when the payout has been synced to payroll.
743
+ */
744
+ paystub_id?: string;
745
+
746
+ /**
747
+ * Source label attached to the payout. Populated only with expand=source_label,
748
+ * which requires scheduled-payout-labels.read.
749
+ */
750
+ source_label?: ScheduledPayoutListResponse.SourceLabel;
751
+
752
+ /**
753
+ * ID of the source label attached to the payout.
754
+ */
755
+ source_label_id?: string;
756
+ }
757
+
758
+ export namespace ScheduledPayoutListResponse {
759
+ /**
760
+ * Payout amount in the worker's base currency.
761
+ */
762
+ export interface AmountBase {
763
+ /**
764
+ * The currency type, ex: USD, EUR, etc.
765
+ */
766
+ currency_type?: string;
767
+
768
+ /**
769
+ * The decimal amount for the currency.
770
+ */
771
+ value?: number;
772
+ }
773
+
774
+ /**
775
+ * Payout amount converted to USD.
776
+ */
777
+ export interface AmountUsd {
778
+ /**
779
+ * The currency type, ex: USD, EUR, etc.
780
+ */
781
+ currency_type?: string;
782
+
783
+ /**
784
+ * The decimal amount for the currency.
785
+ */
786
+ value?: number;
787
+ }
788
+
789
+ /**
790
+ * Group label attached to the payout. Populated only with expand=group_label,
791
+ * which requires scheduled-payout-labels.read.
792
+ */
793
+ export interface GroupLabel {
794
+ /**
795
+ * Unique identifier of the payout label.
796
+ */
797
+ id: string;
798
+
799
+ /**
800
+ * System that owns the label; together with external_id it is the label identity.
801
+ * Same values as the payout client.
802
+ */
803
+ client:
804
+ | 'VC_PLAN_CYCLE'
805
+ | 'VC_EVENT_DRIVEN_PLAN'
806
+ | 'CUSTOM'
807
+ | 'MANUAL_PAYOUT'
808
+ | 'HRIS_SIGN_ON'
809
+ | 'OFFLINE_RECOMMENDATION'
810
+ | 'NEW_HIRE_AGENT';
811
+
812
+ /**
813
+ * External identifier unique per company and client.
814
+ */
815
+ external_id: string;
816
+
817
+ /**
818
+ * Display name of the label.
819
+ */
820
+ name: string;
821
+ }
822
+
823
+ /**
824
+ * Payout type used for this payout. Populated only with expand=payout_type, which
825
+ * requires scheduled-payout-types.read.
826
+ */
827
+ export interface PayoutType {
828
+ /**
829
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
830
+ * paths. Always equal to key; both are returned because every resource exposes id
831
+ * while payouts reference types by key (payout_type_id).
832
+ */
833
+ id: string;
834
+
835
+ /**
836
+ * Display name of the payout type.
837
+ */
838
+ display_name: string;
839
+
840
+ /**
841
+ * Whether this is a built-in payout type.
842
+ */
843
+ is_system: boolean;
844
+
845
+ /**
846
+ * Stable payout type key assigned by the server on create.
847
+ */
848
+ key: string;
849
+
850
+ /**
851
+ * Worker who created this custom payout type. Populated only with
852
+ * expand=created_by, which requires workers.read.
853
+ */
854
+ created_by?: WorkersAPI.Worker;
855
+
856
+ /**
857
+ * ID of the worker who created this custom payout type; null for built-in types.
858
+ */
859
+ created_by_id?: string;
860
+ }
861
+
862
+ /**
863
+ * Source label attached to the payout. Populated only with expand=source_label,
864
+ * which requires scheduled-payout-labels.read.
865
+ */
866
+ export interface SourceLabel {
867
+ /**
868
+ * Unique identifier of the payout label.
869
+ */
870
+ id: string;
871
+
872
+ /**
873
+ * System that owns the label; together with external_id it is the label identity.
874
+ * Same values as the payout client.
875
+ */
876
+ client:
877
+ | 'VC_PLAN_CYCLE'
878
+ | 'VC_EVENT_DRIVEN_PLAN'
879
+ | 'CUSTOM'
880
+ | 'MANUAL_PAYOUT'
881
+ | 'HRIS_SIGN_ON'
882
+ | 'OFFLINE_RECOMMENDATION'
883
+ | 'NEW_HIRE_AGENT';
884
+
885
+ /**
886
+ * External identifier unique per company and client.
887
+ */
888
+ external_id: string;
889
+
890
+ /**
891
+ * Display name of the label.
892
+ */
893
+ name: string;
894
+ }
895
+ }
896
+
897
+ export interface ScheduledPayoutCreateResponse {
898
+ /**
899
+ * Unique identifier of the payout.
900
+ */
901
+ id: string;
902
+
903
+ /**
904
+ * Payout amount in the worker's base currency.
905
+ */
906
+ amount_base: ScheduledPayoutCreateResponse.AmountBase;
907
+
908
+ /**
909
+ * Payout amount converted to USD.
910
+ */
911
+ amount_usd: ScheduledPayoutCreateResponse.AmountUsd;
912
+
913
+ /**
914
+ * System that owns the payout; together with external_id it is the upsert
915
+ * identity. CUSTOM: created by an integrator through this API (the only value
916
+ * accepted on create). Rippling-generated, read-only here: VC_PLAN_CYCLE and
917
+ * VC_EVENT_DRIVEN_PLAN (variable compensation plans), MANUAL_PAYOUT (entered in
918
+ * Rippling), HRIS_SIGN_ON (new-hire sign-on bonuses), OFFLINE_RECOMMENDATION and
919
+ * NEW_HIRE_AGENT (Rippling recommendations).
920
+ */
921
+ client:
922
+ | 'VC_PLAN_CYCLE'
923
+ | 'VC_EVENT_DRIVEN_PLAN'
924
+ | 'CUSTOM'
925
+ | 'MANUAL_PAYOUT'
926
+ | 'HRIS_SIGN_ON'
927
+ | 'OFFLINE_RECOMMENDATION'
928
+ | 'NEW_HIRE_AGENT';
929
+
930
+ /**
931
+ * When the payout was created, as an ISO 8601 UTC timestamp.
932
+ */
933
+ created_at: string;
934
+
935
+ /**
936
+ * Last day of the period the payout covers, as YYYY-MM-DD (inclusive).
937
+ */
938
+ effective_end_date: string;
939
+
940
+ /**
941
+ * First day of the period the payout covers, as YYYY-MM-DD (inclusive).
942
+ */
943
+ effective_start_date: string;
944
+
945
+ /**
946
+ * External identifier unique per company and client.
947
+ */
948
+ external_id: string;
949
+
950
+ /**
951
+ * ID of the worker who receives this payout.
952
+ */
953
+ payee_id: string;
954
+
955
+ /**
956
+ * Key of the company payout type used for this payout. List valid keys with GET
957
+ * /scheduled-payout-types/.
958
+ */
959
+ payout_type_id: string;
960
+
961
+ /**
962
+ * Date the payout becomes eligible for release, as YYYY-MM-DD.
963
+ */
964
+ scheduled_date: string;
965
+
966
+ /**
967
+ * Lifecycle status. Before scheduling: DRAFT, PENDING_APPROVAL, APPROVAL_REJECTED.
968
+ * SCHEDULED: waiting for scheduled_date and its release conditions.
969
+ * EVALUATION_FAILED: release conditions could not be evaluated and will be
970
+ * retried; editable like SCHEDULED. RELEASED: sent to payroll and locked.
971
+ * PAYROLL_RETRACT_IN_PROGRESS: being removed from payroll. Terminal: PAID,
972
+ * FORFEITED (release conditions not met), CANCELLED.
973
+ */
974
+ status:
975
+ | 'DRAFT'
976
+ | 'PENDING_APPROVAL'
977
+ | 'APPROVAL_REJECTED'
978
+ | 'SCHEDULED'
979
+ | 'RELEASED'
980
+ | 'PAYROLL_RETRACT_IN_PROGRESS'
981
+ | 'PAID'
982
+ | 'FORFEITED'
983
+ | 'EVALUATION_FAILED'
984
+ | 'CANCELLED';
985
+
986
+ /**
987
+ * When the payout was last updated, as an ISO 8601 UTC timestamp.
988
+ */
989
+ updated_at: string;
990
+
991
+ /**
992
+ * Reason provided when the payout was cancelled.
993
+ */
994
+ cancel_reason?: string;
995
+
996
+ /**
997
+ * Optional payout description.
998
+ */
999
+ description?: string;
1000
+
1001
+ /**
1002
+ * Group label attached to the payout. Populated only with expand=group_label,
1003
+ * which requires scheduled-payout-labels.read.
1004
+ */
1005
+ group_label?: ScheduledPayoutCreateResponse.GroupLabel;
1006
+
1007
+ /**
1008
+ * ID of the group label attached to the payout.
1009
+ */
1010
+ group_label_id?: string;
1011
+
1012
+ /**
1013
+ * Optional payout name.
1014
+ */
1015
+ name?: string;
1016
+
1017
+ /**
1018
+ * Payroll earning code resolved from the payout type's mapping for the payee's
1019
+ * payroll entity. While the payout is open, reads reflect the current mapping;
1020
+ * from RELEASED, PAYROLL_RETRACT_IN_PROGRESS, PAID, FORFEITED, CANCELLED, or
1021
+ * APPROVAL_REJECTED onward it is the value stored at that transition. Payouts not
1022
+ * paid through Rippling payroll return the stored value, which may be null.
1023
+ */
1024
+ pay_classification?: string;
1025
+
1026
+ /**
1027
+ * Worker who receives this payout. Populated only with expand=payee, which
1028
+ * requires workers.read.
1029
+ */
1030
+ payee?: WorkersAPI.Worker;
1031
+
1032
+ /**
1033
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1034
+ * requires scheduled-payout-types.read.
1035
+ */
1036
+ payout_type?: ScheduledPayoutCreateResponse.PayoutType;
1037
+
1038
+ /**
1039
+ * Paystub identifier when the payout has been synced to payroll.
1040
+ */
1041
+ paystub_id?: string;
1042
+
1043
+ /**
1044
+ * Source label attached to the payout. Populated only with expand=source_label,
1045
+ * which requires scheduled-payout-labels.read.
1046
+ */
1047
+ source_label?: ScheduledPayoutCreateResponse.SourceLabel;
1048
+
1049
+ /**
1050
+ * ID of the source label attached to the payout.
1051
+ */
1052
+ source_label_id?: string;
1053
+ }
1054
+
1055
+ export namespace ScheduledPayoutCreateResponse {
1056
+ /**
1057
+ * Payout amount in the worker's base currency.
1058
+ */
1059
+ export interface AmountBase {
1060
+ /**
1061
+ * The currency type, ex: USD, EUR, etc.
1062
+ */
1063
+ currency_type?: string;
1064
+
1065
+ /**
1066
+ * The decimal amount for the currency.
1067
+ */
1068
+ value?: number;
1069
+ }
1070
+
1071
+ /**
1072
+ * Payout amount converted to USD.
1073
+ */
1074
+ export interface AmountUsd {
1075
+ /**
1076
+ * The currency type, ex: USD, EUR, etc.
1077
+ */
1078
+ currency_type?: string;
1079
+
1080
+ /**
1081
+ * The decimal amount for the currency.
1082
+ */
1083
+ value?: number;
1084
+ }
1085
+
1086
+ /**
1087
+ * Group label attached to the payout. Populated only with expand=group_label,
1088
+ * which requires scheduled-payout-labels.read.
1089
+ */
1090
+ export interface GroupLabel {
1091
+ /**
1092
+ * Unique identifier of the payout label.
1093
+ */
1094
+ id: string;
1095
+
1096
+ /**
1097
+ * System that owns the label; together with external_id it is the label identity.
1098
+ * Same values as the payout client.
1099
+ */
1100
+ client:
1101
+ | 'VC_PLAN_CYCLE'
1102
+ | 'VC_EVENT_DRIVEN_PLAN'
1103
+ | 'CUSTOM'
1104
+ | 'MANUAL_PAYOUT'
1105
+ | 'HRIS_SIGN_ON'
1106
+ | 'OFFLINE_RECOMMENDATION'
1107
+ | 'NEW_HIRE_AGENT';
1108
+
1109
+ /**
1110
+ * External identifier unique per company and client.
1111
+ */
1112
+ external_id: string;
1113
+
1114
+ /**
1115
+ * Display name of the label.
1116
+ */
1117
+ name: string;
1118
+ }
1119
+
1120
+ /**
1121
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1122
+ * requires scheduled-payout-types.read.
1123
+ */
1124
+ export interface PayoutType {
1125
+ /**
1126
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
1127
+ * paths. Always equal to key; both are returned because every resource exposes id
1128
+ * while payouts reference types by key (payout_type_id).
1129
+ */
1130
+ id: string;
1131
+
1132
+ /**
1133
+ * Display name of the payout type.
1134
+ */
1135
+ display_name: string;
1136
+
1137
+ /**
1138
+ * Whether this is a built-in payout type.
1139
+ */
1140
+ is_system: boolean;
1141
+
1142
+ /**
1143
+ * Stable payout type key assigned by the server on create.
1144
+ */
1145
+ key: string;
1146
+
1147
+ /**
1148
+ * Worker who created this custom payout type. Populated only with
1149
+ * expand=created_by, which requires workers.read.
1150
+ */
1151
+ created_by?: WorkersAPI.Worker;
1152
+
1153
+ /**
1154
+ * ID of the worker who created this custom payout type; null for built-in types.
1155
+ */
1156
+ created_by_id?: string;
1157
+ }
1158
+
1159
+ /**
1160
+ * Source label attached to the payout. Populated only with expand=source_label,
1161
+ * which requires scheduled-payout-labels.read.
1162
+ */
1163
+ export interface SourceLabel {
1164
+ /**
1165
+ * Unique identifier of the payout label.
1166
+ */
1167
+ id: string;
1168
+
1169
+ /**
1170
+ * System that owns the label; together with external_id it is the label identity.
1171
+ * Same values as the payout client.
1172
+ */
1173
+ client:
1174
+ | 'VC_PLAN_CYCLE'
1175
+ | 'VC_EVENT_DRIVEN_PLAN'
1176
+ | 'CUSTOM'
1177
+ | 'MANUAL_PAYOUT'
1178
+ | 'HRIS_SIGN_ON'
1179
+ | 'OFFLINE_RECOMMENDATION'
1180
+ | 'NEW_HIRE_AGENT';
1181
+
1182
+ /**
1183
+ * External identifier unique per company and client.
1184
+ */
1185
+ external_id: string;
1186
+
1187
+ /**
1188
+ * Display name of the label.
1189
+ */
1190
+ name: string;
1191
+ }
1192
+ }
1193
+
1194
+ /**
1195
+ * Meta information for the response.
1196
+ */
1197
+ export interface ScheduledPayoutRetrieveResponse extends BusinessPartnersAPI.Meta {
1198
+ /**
1199
+ * Unique identifier of the payout.
1200
+ */
1201
+ id: string;
1202
+
1203
+ /**
1204
+ * Payout amount in the worker's base currency.
1205
+ */
1206
+ amount_base: ScheduledPayoutRetrieveResponse.AmountBase;
1207
+
1208
+ /**
1209
+ * Payout amount converted to USD.
1210
+ */
1211
+ amount_usd: ScheduledPayoutRetrieveResponse.AmountUsd;
1212
+
1213
+ /**
1214
+ * System that owns the payout; together with external_id it is the upsert
1215
+ * identity. CUSTOM: created by an integrator through this API (the only value
1216
+ * accepted on create). Rippling-generated, read-only here: VC_PLAN_CYCLE and
1217
+ * VC_EVENT_DRIVEN_PLAN (variable compensation plans), MANUAL_PAYOUT (entered in
1218
+ * Rippling), HRIS_SIGN_ON (new-hire sign-on bonuses), OFFLINE_RECOMMENDATION and
1219
+ * NEW_HIRE_AGENT (Rippling recommendations).
1220
+ */
1221
+ client:
1222
+ | 'VC_PLAN_CYCLE'
1223
+ | 'VC_EVENT_DRIVEN_PLAN'
1224
+ | 'CUSTOM'
1225
+ | 'MANUAL_PAYOUT'
1226
+ | 'HRIS_SIGN_ON'
1227
+ | 'OFFLINE_RECOMMENDATION'
1228
+ | 'NEW_HIRE_AGENT';
1229
+
1230
+ /**
1231
+ * When the payout was created, as an ISO 8601 UTC timestamp.
1232
+ */
1233
+ created_at: string;
1234
+
1235
+ /**
1236
+ * Last day of the period the payout covers, as YYYY-MM-DD (inclusive).
1237
+ */
1238
+ effective_end_date: string;
1239
+
1240
+ /**
1241
+ * First day of the period the payout covers, as YYYY-MM-DD (inclusive).
1242
+ */
1243
+ effective_start_date: string;
1244
+
1245
+ /**
1246
+ * External identifier unique per company and client.
1247
+ */
1248
+ external_id: string;
1249
+
1250
+ /**
1251
+ * ID of the worker who receives this payout.
1252
+ */
1253
+ payee_id: string;
1254
+
1255
+ /**
1256
+ * Key of the company payout type used for this payout. List valid keys with GET
1257
+ * /scheduled-payout-types/.
1258
+ */
1259
+ payout_type_id: string;
1260
+
1261
+ /**
1262
+ * Date the payout becomes eligible for release, as YYYY-MM-DD.
1263
+ */
1264
+ scheduled_date: string;
1265
+
1266
+ /**
1267
+ * Lifecycle status. Before scheduling: DRAFT, PENDING_APPROVAL, APPROVAL_REJECTED.
1268
+ * SCHEDULED: waiting for scheduled_date and its release conditions.
1269
+ * EVALUATION_FAILED: release conditions could not be evaluated and will be
1270
+ * retried; editable like SCHEDULED. RELEASED: sent to payroll and locked.
1271
+ * PAYROLL_RETRACT_IN_PROGRESS: being removed from payroll. Terminal: PAID,
1272
+ * FORFEITED (release conditions not met), CANCELLED.
1273
+ */
1274
+ status:
1275
+ | 'DRAFT'
1276
+ | 'PENDING_APPROVAL'
1277
+ | 'APPROVAL_REJECTED'
1278
+ | 'SCHEDULED'
1279
+ | 'RELEASED'
1280
+ | 'PAYROLL_RETRACT_IN_PROGRESS'
1281
+ | 'PAID'
1282
+ | 'FORFEITED'
1283
+ | 'EVALUATION_FAILED'
1284
+ | 'CANCELLED';
1285
+
1286
+ /**
1287
+ * When the payout was last updated, as an ISO 8601 UTC timestamp.
1288
+ */
1289
+ updated_at: string;
1290
+
1291
+ /**
1292
+ * Reason provided when the payout was cancelled.
1293
+ */
1294
+ cancel_reason?: string;
1295
+
1296
+ /**
1297
+ * Optional payout description.
1298
+ */
1299
+ description?: string;
1300
+
1301
+ /**
1302
+ * Group label attached to the payout. Populated only with expand=group_label,
1303
+ * which requires scheduled-payout-labels.read.
1304
+ */
1305
+ group_label?: ScheduledPayoutRetrieveResponse.GroupLabel;
1306
+
1307
+ /**
1308
+ * ID of the group label attached to the payout.
1309
+ */
1310
+ group_label_id?: string;
1311
+
1312
+ /**
1313
+ * Optional payout name.
1314
+ */
1315
+ name?: string;
1316
+
1317
+ /**
1318
+ * Payroll earning code resolved from the payout type's mapping for the payee's
1319
+ * payroll entity. While the payout is open, reads reflect the current mapping;
1320
+ * from RELEASED, PAYROLL_RETRACT_IN_PROGRESS, PAID, FORFEITED, CANCELLED, or
1321
+ * APPROVAL_REJECTED onward it is the value stored at that transition. Payouts not
1322
+ * paid through Rippling payroll return the stored value, which may be null.
1323
+ */
1324
+ pay_classification?: string;
1325
+
1326
+ /**
1327
+ * Worker who receives this payout. Populated only with expand=payee, which
1328
+ * requires workers.read.
1329
+ */
1330
+ payee?: WorkersAPI.Worker;
1331
+
1332
+ /**
1333
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1334
+ * requires scheduled-payout-types.read.
1335
+ */
1336
+ payout_type?: ScheduledPayoutRetrieveResponse.PayoutType;
1337
+
1338
+ /**
1339
+ * Paystub identifier when the payout has been synced to payroll.
1340
+ */
1341
+ paystub_id?: string;
1342
+
1343
+ /**
1344
+ * Source label attached to the payout. Populated only with expand=source_label,
1345
+ * which requires scheduled-payout-labels.read.
1346
+ */
1347
+ source_label?: ScheduledPayoutRetrieveResponse.SourceLabel;
1348
+
1349
+ /**
1350
+ * ID of the source label attached to the payout.
1351
+ */
1352
+ source_label_id?: string;
1353
+ }
1354
+
1355
+ export namespace ScheduledPayoutRetrieveResponse {
1356
+ /**
1357
+ * Payout amount in the worker's base currency.
1358
+ */
1359
+ export interface AmountBase {
1360
+ /**
1361
+ * The currency type, ex: USD, EUR, etc.
1362
+ */
1363
+ currency_type?: string;
1364
+
1365
+ /**
1366
+ * The decimal amount for the currency.
1367
+ */
1368
+ value?: number;
1369
+ }
1370
+
1371
+ /**
1372
+ * Payout amount converted to USD.
1373
+ */
1374
+ export interface AmountUsd {
1375
+ /**
1376
+ * The currency type, ex: USD, EUR, etc.
1377
+ */
1378
+ currency_type?: string;
1379
+
1380
+ /**
1381
+ * The decimal amount for the currency.
1382
+ */
1383
+ value?: number;
1384
+ }
1385
+
1386
+ /**
1387
+ * Group label attached to the payout. Populated only with expand=group_label,
1388
+ * which requires scheduled-payout-labels.read.
1389
+ */
1390
+ export interface GroupLabel {
1391
+ /**
1392
+ * Unique identifier of the payout label.
1393
+ */
1394
+ id: string;
1395
+
1396
+ /**
1397
+ * System that owns the label; together with external_id it is the label identity.
1398
+ * Same values as the payout client.
1399
+ */
1400
+ client:
1401
+ | 'VC_PLAN_CYCLE'
1402
+ | 'VC_EVENT_DRIVEN_PLAN'
1403
+ | 'CUSTOM'
1404
+ | 'MANUAL_PAYOUT'
1405
+ | 'HRIS_SIGN_ON'
1406
+ | 'OFFLINE_RECOMMENDATION'
1407
+ | 'NEW_HIRE_AGENT';
1408
+
1409
+ /**
1410
+ * External identifier unique per company and client.
1411
+ */
1412
+ external_id: string;
1413
+
1414
+ /**
1415
+ * Display name of the label.
1416
+ */
1417
+ name: string;
1418
+ }
1419
+
1420
+ /**
1421
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1422
+ * requires scheduled-payout-types.read.
1423
+ */
1424
+ export interface PayoutType {
1425
+ /**
1426
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
1427
+ * paths. Always equal to key; both are returned because every resource exposes id
1428
+ * while payouts reference types by key (payout_type_id).
1429
+ */
1430
+ id: string;
1431
+
1432
+ /**
1433
+ * Display name of the payout type.
1434
+ */
1435
+ display_name: string;
1436
+
1437
+ /**
1438
+ * Whether this is a built-in payout type.
1439
+ */
1440
+ is_system: boolean;
1441
+
1442
+ /**
1443
+ * Stable payout type key assigned by the server on create.
1444
+ */
1445
+ key: string;
1446
+
1447
+ /**
1448
+ * Worker who created this custom payout type. Populated only with
1449
+ * expand=created_by, which requires workers.read.
1450
+ */
1451
+ created_by?: WorkersAPI.Worker;
1452
+
1453
+ /**
1454
+ * ID of the worker who created this custom payout type; null for built-in types.
1455
+ */
1456
+ created_by_id?: string;
1457
+ }
1458
+
1459
+ /**
1460
+ * Source label attached to the payout. Populated only with expand=source_label,
1461
+ * which requires scheduled-payout-labels.read.
1462
+ */
1463
+ export interface SourceLabel {
1464
+ /**
1465
+ * Unique identifier of the payout label.
1466
+ */
1467
+ id: string;
1468
+
1469
+ /**
1470
+ * System that owns the label; together with external_id it is the label identity.
1471
+ * Same values as the payout client.
1472
+ */
1473
+ client:
1474
+ | 'VC_PLAN_CYCLE'
1475
+ | 'VC_EVENT_DRIVEN_PLAN'
1476
+ | 'CUSTOM'
1477
+ | 'MANUAL_PAYOUT'
1478
+ | 'HRIS_SIGN_ON'
1479
+ | 'OFFLINE_RECOMMENDATION'
1480
+ | 'NEW_HIRE_AGENT';
1481
+
1482
+ /**
1483
+ * External identifier unique per company and client.
1484
+ */
1485
+ external_id: string;
1486
+
1487
+ /**
1488
+ * Display name of the label.
1489
+ */
1490
+ name: string;
1491
+ }
1492
+ }
1493
+
1494
+ export interface ScheduledPayoutCancelResponse {
1495
+ /**
1496
+ * Unique identifier of the payout.
1497
+ */
1498
+ id: string;
1499
+
1500
+ /**
1501
+ * Payout amount in the worker's base currency.
1502
+ */
1503
+ amount_base: ScheduledPayoutCancelResponse.AmountBase;
1504
+
1505
+ /**
1506
+ * Payout amount converted to USD.
1507
+ */
1508
+ amount_usd: ScheduledPayoutCancelResponse.AmountUsd;
1509
+
1510
+ /**
1511
+ * System that owns the payout; together with external_id it is the upsert
1512
+ * identity. CUSTOM: created by an integrator through this API (the only value
1513
+ * accepted on create). Rippling-generated, read-only here: VC_PLAN_CYCLE and
1514
+ * VC_EVENT_DRIVEN_PLAN (variable compensation plans), MANUAL_PAYOUT (entered in
1515
+ * Rippling), HRIS_SIGN_ON (new-hire sign-on bonuses), OFFLINE_RECOMMENDATION and
1516
+ * NEW_HIRE_AGENT (Rippling recommendations).
1517
+ */
1518
+ client:
1519
+ | 'VC_PLAN_CYCLE'
1520
+ | 'VC_EVENT_DRIVEN_PLAN'
1521
+ | 'CUSTOM'
1522
+ | 'MANUAL_PAYOUT'
1523
+ | 'HRIS_SIGN_ON'
1524
+ | 'OFFLINE_RECOMMENDATION'
1525
+ | 'NEW_HIRE_AGENT';
1526
+
1527
+ /**
1528
+ * When the payout was created, as an ISO 8601 UTC timestamp.
1529
+ */
1530
+ created_at: string;
1531
+
1532
+ /**
1533
+ * Last day of the period the payout covers, as YYYY-MM-DD (inclusive).
1534
+ */
1535
+ effective_end_date: string;
1536
+
1537
+ /**
1538
+ * First day of the period the payout covers, as YYYY-MM-DD (inclusive).
1539
+ */
1540
+ effective_start_date: string;
1541
+
1542
+ /**
1543
+ * External identifier unique per company and client.
1544
+ */
1545
+ external_id: string;
1546
+
1547
+ /**
1548
+ * ID of the worker who receives this payout.
1549
+ */
1550
+ payee_id: string;
1551
+
1552
+ /**
1553
+ * Key of the company payout type used for this payout. List valid keys with GET
1554
+ * /scheduled-payout-types/.
1555
+ */
1556
+ payout_type_id: string;
1557
+
1558
+ /**
1559
+ * Date the payout becomes eligible for release, as YYYY-MM-DD.
1560
+ */
1561
+ scheduled_date: string;
1562
+
1563
+ /**
1564
+ * Lifecycle status. Before scheduling: DRAFT, PENDING_APPROVAL, APPROVAL_REJECTED.
1565
+ * SCHEDULED: waiting for scheduled_date and its release conditions.
1566
+ * EVALUATION_FAILED: release conditions could not be evaluated and will be
1567
+ * retried; editable like SCHEDULED. RELEASED: sent to payroll and locked.
1568
+ * PAYROLL_RETRACT_IN_PROGRESS: being removed from payroll. Terminal: PAID,
1569
+ * FORFEITED (release conditions not met), CANCELLED.
1570
+ */
1571
+ status:
1572
+ | 'DRAFT'
1573
+ | 'PENDING_APPROVAL'
1574
+ | 'APPROVAL_REJECTED'
1575
+ | 'SCHEDULED'
1576
+ | 'RELEASED'
1577
+ | 'PAYROLL_RETRACT_IN_PROGRESS'
1578
+ | 'PAID'
1579
+ | 'FORFEITED'
1580
+ | 'EVALUATION_FAILED'
1581
+ | 'CANCELLED';
1582
+
1583
+ /**
1584
+ * When the payout was last updated, as an ISO 8601 UTC timestamp.
1585
+ */
1586
+ updated_at: string;
1587
+
1588
+ /**
1589
+ * Reason provided when the payout was cancelled.
1590
+ */
1591
+ cancel_reason?: string;
1592
+
1593
+ /**
1594
+ * Optional payout description.
1595
+ */
1596
+ description?: string;
1597
+
1598
+ /**
1599
+ * Group label attached to the payout. Populated only with expand=group_label,
1600
+ * which requires scheduled-payout-labels.read.
1601
+ */
1602
+ group_label?: ScheduledPayoutCancelResponse.GroupLabel;
1603
+
1604
+ /**
1605
+ * ID of the group label attached to the payout.
1606
+ */
1607
+ group_label_id?: string;
1608
+
1609
+ /**
1610
+ * Optional payout name.
1611
+ */
1612
+ name?: string;
1613
+
1614
+ /**
1615
+ * Payroll earning code resolved from the payout type's mapping for the payee's
1616
+ * payroll entity. While the payout is open, reads reflect the current mapping;
1617
+ * from RELEASED, PAYROLL_RETRACT_IN_PROGRESS, PAID, FORFEITED, CANCELLED, or
1618
+ * APPROVAL_REJECTED onward it is the value stored at that transition. Payouts not
1619
+ * paid through Rippling payroll return the stored value, which may be null.
1620
+ */
1621
+ pay_classification?: string;
1622
+
1623
+ /**
1624
+ * Worker who receives this payout. Populated only with expand=payee, which
1625
+ * requires workers.read.
1626
+ */
1627
+ payee?: WorkersAPI.Worker;
1628
+
1629
+ /**
1630
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1631
+ * requires scheduled-payout-types.read.
1632
+ */
1633
+ payout_type?: ScheduledPayoutCancelResponse.PayoutType;
1634
+
1635
+ /**
1636
+ * Paystub identifier when the payout has been synced to payroll.
1637
+ */
1638
+ paystub_id?: string;
1639
+
1640
+ /**
1641
+ * Source label attached to the payout. Populated only with expand=source_label,
1642
+ * which requires scheduled-payout-labels.read.
1643
+ */
1644
+ source_label?: ScheduledPayoutCancelResponse.SourceLabel;
1645
+
1646
+ /**
1647
+ * ID of the source label attached to the payout.
1648
+ */
1649
+ source_label_id?: string;
1650
+ }
1651
+
1652
+ export namespace ScheduledPayoutCancelResponse {
1653
+ /**
1654
+ * Payout amount in the worker's base currency.
1655
+ */
1656
+ export interface AmountBase {
1657
+ /**
1658
+ * The currency type, ex: USD, EUR, etc.
1659
+ */
1660
+ currency_type?: string;
1661
+
1662
+ /**
1663
+ * The decimal amount for the currency.
1664
+ */
1665
+ value?: number;
1666
+ }
1667
+
1668
+ /**
1669
+ * Payout amount converted to USD.
1670
+ */
1671
+ export interface AmountUsd {
1672
+ /**
1673
+ * The currency type, ex: USD, EUR, etc.
1674
+ */
1675
+ currency_type?: string;
1676
+
1677
+ /**
1678
+ * The decimal amount for the currency.
1679
+ */
1680
+ value?: number;
1681
+ }
1682
+
1683
+ /**
1684
+ * Group label attached to the payout. Populated only with expand=group_label,
1685
+ * which requires scheduled-payout-labels.read.
1686
+ */
1687
+ export interface GroupLabel {
1688
+ /**
1689
+ * Unique identifier of the payout label.
1690
+ */
1691
+ id: string;
1692
+
1693
+ /**
1694
+ * System that owns the label; together with external_id it is the label identity.
1695
+ * Same values as the payout client.
1696
+ */
1697
+ client:
1698
+ | 'VC_PLAN_CYCLE'
1699
+ | 'VC_EVENT_DRIVEN_PLAN'
1700
+ | 'CUSTOM'
1701
+ | 'MANUAL_PAYOUT'
1702
+ | 'HRIS_SIGN_ON'
1703
+ | 'OFFLINE_RECOMMENDATION'
1704
+ | 'NEW_HIRE_AGENT';
1705
+
1706
+ /**
1707
+ * External identifier unique per company and client.
1708
+ */
1709
+ external_id: string;
1710
+
1711
+ /**
1712
+ * Display name of the label.
1713
+ */
1714
+ name: string;
1715
+ }
1716
+
1717
+ /**
1718
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1719
+ * requires scheduled-payout-types.read.
1720
+ */
1721
+ export interface PayoutType {
1722
+ /**
1723
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
1724
+ * paths. Always equal to key; both are returned because every resource exposes id
1725
+ * while payouts reference types by key (payout_type_id).
1726
+ */
1727
+ id: string;
1728
+
1729
+ /**
1730
+ * Display name of the payout type.
1731
+ */
1732
+ display_name: string;
1733
+
1734
+ /**
1735
+ * Whether this is a built-in payout type.
1736
+ */
1737
+ is_system: boolean;
1738
+
1739
+ /**
1740
+ * Stable payout type key assigned by the server on create.
1741
+ */
1742
+ key: string;
1743
+
1744
+ /**
1745
+ * Worker who created this custom payout type. Populated only with
1746
+ * expand=created_by, which requires workers.read.
1747
+ */
1748
+ created_by?: WorkersAPI.Worker;
1749
+
1750
+ /**
1751
+ * ID of the worker who created this custom payout type; null for built-in types.
1752
+ */
1753
+ created_by_id?: string;
1754
+ }
1755
+
1756
+ /**
1757
+ * Source label attached to the payout. Populated only with expand=source_label,
1758
+ * which requires scheduled-payout-labels.read.
1759
+ */
1760
+ export interface SourceLabel {
1761
+ /**
1762
+ * Unique identifier of the payout label.
1763
+ */
1764
+ id: string;
1765
+
1766
+ /**
1767
+ * System that owns the label; together with external_id it is the label identity.
1768
+ * Same values as the payout client.
1769
+ */
1770
+ client:
1771
+ | 'VC_PLAN_CYCLE'
1772
+ | 'VC_EVENT_DRIVEN_PLAN'
1773
+ | 'CUSTOM'
1774
+ | 'MANUAL_PAYOUT'
1775
+ | 'HRIS_SIGN_ON'
1776
+ | 'OFFLINE_RECOMMENDATION'
1777
+ | 'NEW_HIRE_AGENT';
1778
+
1779
+ /**
1780
+ * External identifier unique per company and client.
1781
+ */
1782
+ external_id: string;
1783
+
1784
+ /**
1785
+ * Display name of the label.
1786
+ */
1787
+ name: string;
1788
+ }
1789
+ }
1790
+
1791
+ export interface ScheduledPayoutListParams {
1792
+ /**
1793
+ * Opaque pagination cursor from the previous page's next_link.
1794
+ */
1795
+ cursor?: string;
1796
+
1797
+ /**
1798
+ * Comma-separated relationships to include: payee (requires workers.read),
1799
+ * payout_type (requires scheduled-payout-types.read), source_label and group_label
1800
+ * (require scheduled-payout-labels.read). Retrieve accepts the same values.
1801
+ */
1802
+ expand?: string;
1803
+
1804
+ /**
1805
+ * String equality filters joined by and. Supported fields: payee_id, client,
1806
+ * external_id, status, source_label_id, group_label_id. payout_type_id is returned
1807
+ * but not filterable.
1808
+ */
1809
+ filter?: string;
1810
+
1811
+ /**
1812
+ * Page size. Defaults to 50. Maximum 100.
1813
+ */
1814
+ limit?: number;
1815
+ }
1816
+
1817
+ export interface ScheduledPayoutCreateParams {
1818
+ /**
1819
+ * Payout amount in the worker's base currency.
1820
+ */
1821
+ amount_base: ScheduledPayoutCreateParams.AmountBase;
1822
+
1823
+ /**
1824
+ * Payout amount converted to USD.
1825
+ */
1826
+ amount_usd: ScheduledPayoutCreateParams.AmountUsd;
1827
+
1828
+ /**
1829
+ * System that owns the payout; together with external_id it is the upsert
1830
+ * identity. CUSTOM: created by an integrator through this API (the only value
1831
+ * accepted on create). Rippling-generated, read-only here: VC_PLAN_CYCLE and
1832
+ * VC_EVENT_DRIVEN_PLAN (variable compensation plans), MANUAL_PAYOUT (entered in
1833
+ * Rippling), HRIS_SIGN_ON (new-hire sign-on bonuses), OFFLINE_RECOMMENDATION and
1834
+ * NEW_HIRE_AGENT (Rippling recommendations).
1835
+ */
1836
+ client:
1837
+ | 'VC_PLAN_CYCLE'
1838
+ | 'VC_EVENT_DRIVEN_PLAN'
1839
+ | 'CUSTOM'
1840
+ | 'MANUAL_PAYOUT'
1841
+ | 'HRIS_SIGN_ON'
1842
+ | 'OFFLINE_RECOMMENDATION'
1843
+ | 'NEW_HIRE_AGENT';
1844
+
1845
+ /**
1846
+ * Last day of the period the payout covers, as YYYY-MM-DD (inclusive).
1847
+ */
1848
+ effective_end_date: string;
1849
+
1850
+ /**
1851
+ * First day of the period the payout covers, as YYYY-MM-DD (inclusive).
1852
+ */
1853
+ effective_start_date: string;
1854
+
1855
+ /**
1856
+ * External identifier unique per company and client.
1857
+ */
1858
+ external_id: string;
1859
+
1860
+ /**
1861
+ * ID of the worker who receives this payout.
1862
+ */
1863
+ payee_id: string;
1864
+
1865
+ /**
1866
+ * Key of the company payout type used for this payout. List valid keys with GET
1867
+ * /scheduled-payout-types/.
1868
+ */
1869
+ payout_type_id: string;
1870
+
1871
+ /**
1872
+ * Date the payout becomes eligible for release, as YYYY-MM-DD.
1873
+ */
1874
+ scheduled_date: string;
1875
+
1876
+ /**
1877
+ * Optional payout description.
1878
+ */
1879
+ description?: string;
1880
+
1881
+ /**
1882
+ * ID of the group label attached to the payout.
1883
+ */
1884
+ group_label_id?: string;
1885
+
1886
+ /**
1887
+ * Optional payout name.
1888
+ */
1889
+ name?: string;
1890
+
1891
+ /**
1892
+ * ID of the source label attached to the payout.
1893
+ */
1894
+ source_label_id?: string;
1895
+ }
1896
+
1897
+ export namespace ScheduledPayoutCreateParams {
1898
+ /**
1899
+ * Payout amount in the worker's base currency.
1900
+ */
1901
+ export interface AmountBase {
1902
+ /**
1903
+ * The currency type, ex: USD, EUR, etc.
1904
+ */
1905
+ currency_type?: string;
1906
+
1907
+ /**
1908
+ * The decimal amount for the currency.
1909
+ */
1910
+ value?: number;
1911
+ }
1912
+
1913
+ /**
1914
+ * Payout amount converted to USD.
1915
+ */
1916
+ export interface AmountUsd {
1917
+ /**
1918
+ * The currency type, ex: USD, EUR, etc.
1919
+ */
1920
+ currency_type?: string;
1921
+
1922
+ /**
1923
+ * The decimal amount for the currency.
1924
+ */
1925
+ value?: number;
1926
+ }
1927
+ }
1928
+
1929
+ export interface ScheduledPayoutCancelParams {
1930
+ /**
1931
+ * Why the payout is being cancelled. Stored on the payout as cancel_reason.
1932
+ */
1933
+ reason: string;
1934
+ }
1935
+
1936
+ export declare namespace ScheduledPayouts {
1937
+ export {
1938
+ type ScheduledPayoutListResponse as ScheduledPayoutListResponse,
1939
+ type ScheduledPayoutCreateResponse as ScheduledPayoutCreateResponse,
1940
+ type ScheduledPayoutRetrieveResponse as ScheduledPayoutRetrieveResponse,
1941
+ type ScheduledPayoutCancelResponse as ScheduledPayoutCancelResponse,
1942
+ type ScheduledPayoutListResponsesPageCursorURL as ScheduledPayoutListResponsesPageCursorURL,
1943
+ type ScheduledPayoutListParams as ScheduledPayoutListParams,
1944
+ type ScheduledPayoutCreateParams as ScheduledPayoutCreateParams,
1945
+ type ScheduledPayoutCancelParams as ScheduledPayoutCancelParams,
1946
+ };
1947
+ }