This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,11 @@ const supportedMetadata = {
8282 defaultValue : null ,
8383 description : 'Billing Project'
8484 } ,
85+ 31 : {
86+ method : metadataExtractor . extractAdminFee ,
87+ defaultValue : 0 ,
88+ description : 'Admin Fee'
89+ } ,
8590 30 : {
8691 method : metadataExtractor . extractDrPoints ,
8792 defaultValue : 0 ,
Original file line number Diff line number Diff line change @@ -28,6 +28,16 @@ function extractMarkup (challenge, defaultValue) {
2828 return _ . toString ( _ . get ( challenge , 'billing.markup' , defaultValue ) )
2929}
3030
31+ /**
32+ * Extract Admin Fee
33+ * @param {Object } challenge the challenge object
34+ * @param {Any } defaultValue the default value
35+ */
36+ function extractAdminFee ( challenge , defaultValue ) {
37+ // TODO for now just return 0
38+ return _ . toString ( _ . get ( challenge , 0 , defaultValue ) )
39+ }
40+
3141/**
3242 * Extract submission limit
3343 * @param {Object } challenge the challenge object
@@ -192,6 +202,7 @@ function extractEstimateEffortOnsite (challenge, defaultValue) {
192202
193203module . exports = {
194204 extractMarkup,
205+ extractAdminFee,
195206 extractBillingProject,
196207 extractSubmissionLimit,
197208 extractSpecReviewCost,
You can’t perform that action at this time.
0 commit comments