| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- import '../models/amount.dart';
- import '../models/customization_settings.dart';
- import '../models/method_save_payment.dart';
- import '../models/test_mode_settings.dart';
- import '../models/host_parameters.dart';
- class SavedBankCardModuleInputData {
- String clientApplicationKey;
- String title;
- String subtitle;
- Amount amount;
- SavePaymentMethod savePaymentMethod;
- String shopId;
- String paymentMethodId;
- String? gatewayId;
- TestModeSettings? testModeSettings;
- String? returnUrl;
- bool isLoggingEnabled;
- CustomizationSettings customizationSettings;
- String? customerId;
- bool isSafeDeal;
- HostParameters? hostParameters;
- SavedBankCardModuleInputData(
- {required this.clientApplicationKey,
- required this.title,
- required this.subtitle,
- required this.amount,
- required this.savePaymentMethod,
- required this.shopId,
- required this.paymentMethodId,
- required this.isSafeDeal,
- this.gatewayId,
- this.testModeSettings,
- this.returnUrl,
- this.isLoggingEnabled = false,
- this.customizationSettings = const CustomizationSettings(),
- this.customerId,
- this.hostParameters});
- Map<String, dynamic> toJson() => {
- 'clientApplicationKey': clientApplicationKey,
- 'title': title,
- 'subtitle': subtitle,
- 'amount': amount.toJson(),
- 'savePaymentMethod': savePaymentMethod.toString(),
- 'gatewayId': gatewayId,
- 'testModeSettings': testModeSettings?.toJson(),
- 'shopId': shopId,
- 'returnUrl': returnUrl,
- 'isLoggingEnabled': isLoggingEnabled,
- 'customizationSettings': customizationSettings.toJson(),
- 'paymentMethodId': paymentMethodId,
- 'customerId': customerId,
- 'isSafeDeal': isSafeDeal,
- 'hostParameters': hostParameters?.toJson(),
- };
- }
|