feat: redeem voucher

This commit is contained in:
Hasta Ragil Saputra
2019-01-06 19:09:53 +07:00
parent 4002822374
commit 8cba7a1de8
2 changed files with 59 additions and 4 deletions

View File

@@ -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();
});
}
}