Skip to content
Jin Li edited this page May 1, 2016 · 6 revisions

Collection Name

EF-Orders

Mobil Base Schema

{
            accountID:{
                type: String
            },
            details:{
                type:[String]   // ClassStudentID
            },
            status: {
                type: String,
                allowedValues : ['pending', 'checkouted', 'expired', 'canceled']
            },
            amount:{
                type: Number
            },
            registrationFee:{
                type: Number,
                optional: true
            },
            discount:{          // the discounts coming from coupon
                type: Number,
                optional: true
            },
            paymentTotal:{      // actual total payment, including process fee (like when using a credit card)
                type: String,
                optional: true
            },
            couponID:{
                type: String,
                optional: true
            },
            customerCouponID: {
                type: String,
                optional: true
            },
            schoolCredit:{
                type: Number,
                optional: true
            },
            createTime: EdminForce.utils.schemaUtil.createTime(),
            updateTime: EdminForce.utils.schemaUtil.updateTime()
}