Skip to content

Commit ae9be19

Browse files
authored
Merge pull request #66 from xxcxy/feature/batch-payments
Payments - Batch Endpoints
2 parents 19c4190 + c7a47a2 commit ae9be19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bootstrap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ global.Promise = require('bluebird')
1212
Joi.rateType = () => Joi.string().valid('hourly', 'daily', 'weekly', 'monthly')
1313
Joi.jobStatus = () => Joi.string().valid('sourcing', 'in-review', 'assigned', 'closed', 'cancelled')
1414
Joi.resourceBookingStatus = () => Joi.string().valid('placed', 'closed', 'cancelled')
15-
Joi.jobCandidateStatus = () => Joi.string().valid('open', 'placed', 'selected', 'client rejected - screening', 'client rejected - interview', 'rejected - other', 'cancelled', 'interview', 'topcoder-rejected','applied','rejected-pre-screen','skills-test','skills-test','phone-screen','job-closed')
15+
Joi.jobCandidateStatus = () => Joi.string().valid('open', 'placed', 'selected', 'client rejected - screening', 'client rejected - interview', 'rejected - other', 'cancelled', 'interview', 'topcoder-rejected', 'applied', 'rejected-pre-screen', 'skills-test', 'skills-test', 'phone-screen', 'job-closed')
1616
Joi.workload = () => Joi.string().valid('full-time', 'fractional')
1717
Joi.title = () => Joi.string().max(128)
1818
Joi.paymentStatus = () => Joi.string().valid('pending', 'partially-completed', 'completed', 'cancelled')
1919
Joi.xaiTemplate = () => Joi.string().valid(...allowedXAITemplates)
2020
Joi.interviewStatus = () => Joi.string().valid(...allowedInterviewStatuses)
21-
Joi.workPeriodPaymentStatus = () => Joi.string().valid('completed', 'cancelled')
21+
Joi.workPeriodPaymentStatus = () => Joi.string().valid('completed', 'scheduled', 'cancelled')
2222
// Empty string is not allowed by Joi by default and must be enabled with allow('').
2323
// See https://joi.dev/api/?v=17.3.0#string fro details why it's like this.
2424
// In many cases we would like to allow empty string to make it easier to create UI for editing data.

src/services/WorkPeriodPaymentProcessorService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ processCreate.schema = {
6565
payload: Joi.object().keys({
6666
id: Joi.string().uuid().required(),
6767
workPeriodId: Joi.string().uuid().required(),
68-
challengeId: Joi.string().uuid().required(),
68+
challengeId: Joi.string().uuid().allow(null),
6969
amount: Joi.number().greater(0).allow(null),
7070
status: Joi.workPeriodPaymentStatus().required(),
7171
billingAccountId: Joi.number().allow(null),

0 commit comments

Comments
 (0)