yoomoney_flutter/lib/models/test_mode_settings.dart

18 lines
492 B
Dart
Raw Normal View History

2022-07-03 20:52:22 +03:00
import 'amount.dart';
class TestModeSettings {
bool paymentAuthorizationPassed;
int cardsCount;
Amount charge;
bool enablePaymentError;
TestModeSettings(this.paymentAuthorizationPassed, this.cardsCount, this.charge, this.enablePaymentError);
Map<String, dynamic> toJson() =>
{
'paymentAuthorizationPassed': paymentAuthorizationPassed,
'cardsCount': cardsCount,
'charge': charge.toJson(),
'enablePaymentError': enablePaymentError
};
}