mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-08 20:09:24 +00:00
Add savingsPercentage to ionia merch discount.
This commit is contained in:
parent
5148272e42
commit
7e32ba4463
1 changed files with 6 additions and 4 deletions
|
@ -55,8 +55,8 @@ class IoniaMerchant {
|
|||
@required this.ngcSku,
|
||||
@required this.acceptedCurrency,
|
||||
@required this.deepLink,
|
||||
@required this.isPayLater
|
||||
});
|
||||
@required this.isPayLater,
|
||||
@required this.savingsPercentage});
|
||||
|
||||
factory IoniaMerchant.fromJsonMap(Map<String, dynamic> element) {
|
||||
return IoniaMerchant(
|
||||
|
@ -112,7 +112,8 @@ class IoniaMerchant {
|
|||
ngcSku: element["NgcSku"] as String,
|
||||
acceptedCurrency: element["AcceptedCurrency"] as String,
|
||||
deepLink: element["DeepLink"] as String,
|
||||
isPayLater: element["IsPayLater"] as bool);
|
||||
isPayLater: element["IsPayLater"] as bool,
|
||||
savingsPercentage: element["SavingsPercentage"] as double);
|
||||
}
|
||||
|
||||
final int id;
|
||||
|
@ -168,7 +169,8 @@ class IoniaMerchant {
|
|||
final String acceptedCurrency;
|
||||
final String deepLink;
|
||||
final bool isPayLater;
|
||||
final double savingsPercentage;
|
||||
|
||||
double get discount => level3;
|
||||
double get discount => savingsPercentage;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue