You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dateCreated =String.localizedStringWithFormat(NSLocalizedString("Created %@", comment:"Order created date"), order.dateCreatedString) //FIXME: use a formatted date instead of raw timestamp
19
-
paymentStatus = order.status.description
20
-
paymentBackgroundColor = order.status.backgroundColor // MVVM: who should own color responsibilities? Maybe address this down the road.
21
-
paymentBorderColor = order.status.borderColor // same here
returnString.localizedStringWithFormat(NSLocalizedString("Created %@", comment:"Order created date"), order.dateCreatedString) //FIXME: use a formatted date instead of raw timestamp
19
+
}
20
+
21
+
varpaymentStatus:String{
22
+
return order.status.description
23
+
}
24
+
25
+
varpaymentBackgroundColor:UIColor{
26
+
return order.status.backgroundColor // MVVM: who should own color responsibilities? Maybe address this down the road.
returnNSLocalizedString("Total", comment:"Total label for payment view")
79
+
}
80
+
81
+
vartotalValue:String{
82
+
return order.currencySymbol + order.total
83
+
}
84
+
85
+
varpaymentSummary:String{
86
+
returnNSLocalizedString("Payment of \(totalValue) received via \(order.paymentMethodTitle)", comment:"Payment of <currency symbol><payment total> received via (payment method title)")
0 commit comments