This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ const supportedMetadata = {
63
63
defaultValue : null ,
64
64
description : 'Billing Project'
65
65
} ,
66
+ 31 : {
67
+ method : metadataExtractor . extractAdminFee ,
68
+ defaultValue : 0 ,
69
+ description : 'Admin Fee'
70
+ } ,
66
71
30 : {
67
72
method : metadataExtractor . extractDrPoints ,
68
73
defaultValue : 0 ,
Original file line number Diff line number Diff line change @@ -28,6 +28,16 @@ function extractMarkup (challenge, defaultValue) {
28
28
return _ . toString ( _ . get ( challenge , 'billing.markup' , defaultValue ) )
29
29
}
30
30
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
+
31
41
/**
32
42
* Extract submission limit
33
43
* @param {Object } challenge the challenge object
@@ -192,6 +202,7 @@ function extractEstimateEffortOnsite (challenge, defaultValue) {
192
202
193
203
module . exports = {
194
204
extractMarkup,
205
+ extractAdminFee,
195
206
extractBillingProject,
196
207
extractSubmissionLimit,
197
208
extractSpecReviewCost,
You can’t perform that action at this time.
0 commit comments