Skip to content

Commit 71ae9ab

Browse files
committed
Payments - Batch Endpoints
1 parent 232329c commit 71ae9ab

16 files changed

+672
-192
lines changed

app-constants.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ const ChallengeStatus = {
7676
COMPLETED: 'Completed'
7777
}
7878

79-
const PaymentProcessingSwitch = {
80-
ON: 'ON',
81-
OFF: 'OFF'
79+
const WorkPeriodPaymentStatus = {
80+
COMPLETED: 'completed',
81+
CANCELLED: 'cancelled',
82+
SCHEDULED: 'scheduled'
8283
}
8384

8485
module.exports = {
@@ -87,5 +88,5 @@ module.exports = {
8788
Scopes,
8889
Interviews,
8990
ChallengeStatus,
90-
PaymentProcessingSwitch
91+
WorkPeriodPaymentStatus
9192
}

config/default.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ module.exports = {
160160
ROLE_ID_SUBMITTER: process.env.ROLE_ID_SUBMITTER || '732339e7-8e30-49d7-9198-cccf9451e221',
161161
TYPE_ID_TASK: process.env.TYPE_ID_TASK || 'ecd58c69-238f-43a4-a4bb-d172719b9f31',
162162
DEFAULT_TIMELINE_TEMPLATE_ID: process.env.DEFAULT_TIMELINE_TEMPLATE_ID || '53a307ce-b4b3-4d6f-b9a1-3741a58f77e6',
163-
DEFAULT_TRACK_ID: process.env.DEFAULT_TRACK_ID || '9b6fc876-f4d9-4ccb-9dfd-419247628825',
163+
DEFAULT_TRACK_ID: process.env.DEFAULT_TRACK_ID || '9b6fc876-f4d9-4ccb-9dfd-419247628825'
164164

165-
PAYMENT_PROCESSING_SWITCH: process.env.PAYMENT_PROCESSING_SWITCH || 'OFF'
166165
}

data/demo-data.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@
182182
{
183183
"id": "077aa2ca-5b60-4ad9-a965-1b37e08a5046",
184184
"jobCandidateId": "881a19de-2b0c-4bb9-b36a-4cb5e223bdb5",
185-
"googleCalendarId": null,
185+
"calendarEventId": null,
186186
"customMessage": null,
187-
"xaiTemplate": "interview-30",
187+
"templateUrl": "interview-30",
188188
"round": 1,
189189
"startTimestamp": null,
190-
"attendeesList": null,
190+
"guestEmails": null,
191191
"status": "Completed",
192192
"createdBy": "57646ff9-1cd3-4d3c-88ba-eb09a395366c",
193193
"updatedBy": null,
@@ -211,12 +211,12 @@
211211
{
212212
"id": "b1f7ba76-640f-47e2-9463-59e51b51ec60",
213213
"jobCandidateId": "827ee401-df04-42e1-abbe-7b97ce7937ff",
214-
"googleCalendarId": "dummyId",
214+
"calendarEventId": "dummyId",
215215
"customMessage": "This is a custom message",
216-
"xaiTemplate": "interview-30",
216+
"templateUrl": "interview-30",
217217
"round": 2,
218218
"startTimestamp": null,
219-
"attendeesList": null,
219+
"guestEmails": null,
220220
"status": "Scheduling",
221221
"createdBy": "57646ff9-1cd3-4d3c-88ba-eb09a395366c",
222222
"updatedBy": null,
@@ -226,12 +226,12 @@
226226
{
227227
"id": "3144fa65-ea1a-4bec-81b0-7cb1c8845826",
228228
"jobCandidateId": "827ee401-df04-42e1-abbe-7b97ce7937ff",
229-
"googleCalendarId": null,
229+
"calendarEventId": null,
230230
"customMessage": null,
231-
"xaiTemplate": "interview-30",
231+
"templateUrl": "interview-30",
232232
"round": 1,
233233
"startTimestamp": null,
234-
"attendeesList": null,
234+
"guestEmails": null,
235235
"status": "Completed",
236236
"createdBy": "57646ff9-1cd3-4d3c-88ba-eb09a395366c",
237237
"updatedBy": null,
@@ -255,12 +255,12 @@
255255
{
256256
"id": "976d23a9-5710-453f-99d9-f57a588bb610",
257257
"jobCandidateId": "a4ea7bcf-5b99-4381-b99c-a9bd05d83a36",
258-
"googleCalendarId": "dummyId",
258+
"calendarEventId": "dummyId",
259259
"customMessage": "This is a custom message",
260-
"xaiTemplate": "interview-30",
260+
"templateUrl": "interview-30",
261261
"round": 3,
262262
"startTimestamp": null,
263-
"attendeesList": [
263+
"guestEmails": [
264264
"attendee1@yopmail.com",
265265
"attendee2@yopmail.com"
266266
],
@@ -273,12 +273,12 @@
273273
{
274274
"id": "a23e1bf2-1084-4cfe-a0d8-d83bc6fec655",
275275
"jobCandidateId": "a4ea7bcf-5b99-4381-b99c-a9bd05d83a36",
276-
"googleCalendarId": "dummyId",
276+
"calendarEventId": "dummyId",
277277
"customMessage": "This is a custom message",
278-
"xaiTemplate": "interview-30",
278+
"templateUrl": "interview-30",
279279
"round": 2,
280280
"startTimestamp": null,
281-
"attendeesList": [
281+
"guestEmails": [
282282
"attendee1@yopmail.com",
283283
"attendee2@yopmail.com"
284284
],
@@ -291,12 +291,12 @@
291291
{
292292
"id": "9efd72c3-1dc7-4ce2-9869-8cca81d0adeb",
293293
"jobCandidateId": "a4ea7bcf-5b99-4381-b99c-a9bd05d83a36",
294-
"googleCalendarId": null,
294+
"calendarEventId": null,
295295
"customMessage": null,
296-
"xaiTemplate": "interview-30",
296+
"templateUrl": "interview-30",
297297
"round": 1,
298298
"startTimestamp": null,
299-
"attendeesList": null,
299+
"guestEmails": null,
300300
"status": "Completed",
301301
"createdBy": "57646ff9-1cd3-4d3c-88ba-eb09a395366c",
302302
"updatedBy": null,

0 commit comments

Comments
 (0)