yoomoney_flutter/lib/models/google_pay_parameters.dart

18 lines
394 B
Dart
Raw Permalink Normal View History

2022-07-03 20:52:22 +03:00
class GooglePayParameters {
final List<GooglePayCardNetwork> paymentSystems;
const GooglePayParameters([this.paymentSystems = const [GooglePayCardNetwork.mastercard, GooglePayCardNetwork.visa]]);
List<String> jsonList() {
return paymentSystems.map((e) => e.toString()).toList();
}
}
enum GooglePayCardNetwork {
amex,
discover,
jcb,
mastercard,
visa,
interac,
other
}