Members
available
Number of points available for redemption
expired
Points that have expired.
redeemable
Number of points accured since the creation of account
redeemed
Points that have been redeemed since the creation of account
referral
Points earned through referrals. Becomes redeemable once the account has accrued 10 or more referrals.
refunded
Points that have been refunded
signup
Points earned at signup. Becomes redeemable once the account has spent ₹1,000 or more on the Magic Batua platform.
transactions
Points transactions listing all the issuance, redemption and refund transactions.
Methods
count(transactions)
Goes over all point transactions one by one and separates all the points in their respective baskets.
Parameters:
| Name | Type | Description |
|---|---|---|
transactions |
An array of Points |
Issue()
Issues a Magic Point for the given reason
MakeReferralsRedeemable()
This method will be called by the Account module when the condition for
unlocking signup bonus is met.
To move points from Referrals bucket this.signup to Redeemable bucket this.redeemable,
we change the notes property of signup points issuance from "Signup" to
"Referral points can be redeemed now.".
MakeSignupRedeemable()
This method will be called by the Account module when the condition for
unlocking signup bonus is met.
To move points from Signup bucket this.signup to Redeemable bucket this.redeemable,
we change the notes property of signup points issuance from "Signup" to
"Signup Points become active".
Redeem()
Redeems points from the balance