Connect customer quotations and payment execution to Sendico (#50)
This commit is contained in:
1 parent
5d67c25c8e
commit
7a6510d1a8
45 files changed
+2696
-45
No files matched your search
@@ -1,7 +1,17 @@
|
||||
import '../models/wallet.dart';
|
||||
|
||||
class AccountDTO {
|
||||
AccountDTO(this.id, this.currency, this.precision, this.available);
|
||||
AccountDTO(
|
||||
this.id,
|
||||
this.currency,
|
||||
this.precision,
|
||||
this.available, {
|
||||
this.payoutMethod = '',
|
||||
this.payoutLabel = '',
|
||||
this.canFund = true,
|
||||
});
|
||||
final String payoutMethod, payoutLabel;
|
||||
final bool canFund;
|
||||
final String id, currency;
|
||||
final int precision;
|
||||
int available;
|
||||
@@ -64,6 +74,9 @@ abstract final class WalletMapper {
|
||||
currency: d.currency,
|
||||
precision: d.precision,
|
||||
available: d.available,
|
||||
payoutMethod: d.payoutMethod,
|
||||
payoutLabel: d.payoutLabel,
|
||||
canFund: d.canFund,
|
||||
);
|
||||
static RequestDTO request(TransferRequest r) =>
|
||||
RequestDTO(r.kind.name, r.source, r.destination, r.amount, r.recipient);
|
||||
|
||||
Reference in new issue
Block a user