create Wallet Transaction - integration (convert the amount)

This commit is contained in:
weiken.intex
2020-12-06 22:01:42 +08:00
parent f08a863e2c
commit 3eef8cff25
4 changed files with 70 additions and 7 deletions
@@ -14,7 +14,8 @@ class WalletTransactionValidation extends AbstractValidation
return [
'wallet_id' => $object->getWalletId(),
'currency_id' => $object->getCurrency(),
'original_currency_id' => $object->getOriginalCurrency(),
'amount' => $object->getAmount(),
'trans_type'=>$object->getTransType()
];
}
@@ -26,7 +27,8 @@ class WalletTransactionValidation extends AbstractValidation
return [
'wallet_id' => 'required',
'currency_id' => 'required',
'original_currency_id' => 'required',
'amount' => 'required',
'trans_type'=>'required'
];
}