Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit eca5e1c

Browse files
authored
Merge pull request #12 from topcoder-platform/support-billing-account
Add support for billing account ID
2 parents 539b268 + 84d58bb commit eca5e1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/services/ProcessorService.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ async function parsePayload (payload, m2mToken, isCreated = true) {
7878
projectId,
7979
status: payload.status
8080
}
81+
if (payload.billingAccountId) {
82+
data.billingAccountId = payload.billingAccountId
83+
}
8184
if (_.get(payload, 'legacy.forumId')) {
8285
data.forumId = payload.legacy.forumId
8386
}
@@ -240,6 +243,7 @@ processCreate.schema = {
240243
directProjectId: Joi.number(),
241244
forumId: Joi.number().integer().positive()
242245
}),
246+
billingAccountId: Joi.number(),
243247
name: Joi.string().required(),
244248
description: Joi.string(),
245249
privateDescription: Joi.string(),
@@ -333,6 +337,7 @@ processUpdate.schema = {
333337
forumId: Joi.number().integer().positive(),
334338
informixModified: Joi.string()
335339
}),
340+
billingAccountId: Joi.number(),
336341
typeId: Joi.string(),
337342
name: Joi.string(),
338343
description: Joi.string(),

0 commit comments

Comments
 (0)