Skip to content

Commit 32cf10b

Browse files
Merge pull request #67 from topcoder-platform/feature/batch-payments
Feature/batch payments
2 parents 1fcb339 + c723de9 commit 32cf10b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ 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)