feat: redeem voucher
This commit is contained in:
@@ -25,4 +25,14 @@ export default class WalletStore {
|
||||
throw err;
|
||||
})
|
||||
}
|
||||
|
||||
@action
|
||||
redeemVoucherCode(voucherCode) {
|
||||
return this.http.post("wallet/redeem", {
|
||||
unique_code: voucherCode
|
||||
})
|
||||
.then(res => {
|
||||
this.getData();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user