INFRA: Set Up Project.
This commit is contained in:
15
lib/models/payment_model/cod_setting_model.dart
Normal file
15
lib/models/payment_model/cod_setting_model.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
class CodSettingModel {
|
||||
bool? isEnabled;
|
||||
|
||||
CodSettingModel({this.isEnabled});
|
||||
|
||||
CodSettingModel.fromJson(Map<String, dynamic> json) {
|
||||
isEnabled = json['isEnabled'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['isEnabled'] = isEnabled;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
30
lib/models/payment_model/flutter_wave_model.dart
Normal file
30
lib/models/payment_model/flutter_wave_model.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
class FlutterWaveModel {
|
||||
bool? isSandbox;
|
||||
bool? isWithdrawEnabled;
|
||||
String? publicKey;
|
||||
String? encryptionKey;
|
||||
bool? isEnable;
|
||||
String? secretKey;
|
||||
|
||||
FlutterWaveModel({this.isSandbox, this.isWithdrawEnabled, this.publicKey, this.encryptionKey, this.isEnable, this.secretKey});
|
||||
|
||||
FlutterWaveModel.fromJson(Map<String, dynamic> json) {
|
||||
isSandbox = json['isSandbox'];
|
||||
isWithdrawEnabled = json['isWithdrawEnabled'];
|
||||
publicKey = json['publicKey'];
|
||||
encryptionKey = json['encryptionKey'];
|
||||
isEnable = json['isEnable'];
|
||||
secretKey = json['secretKey'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['isSandbox'] = isSandbox;
|
||||
data['isWithdrawEnabled'] = isWithdrawEnabled;
|
||||
data['publicKey'] = publicKey;
|
||||
data['encryptionKey'] = encryptionKey;
|
||||
data['isEnable'] = isEnable;
|
||||
data['secretKey'] = secretKey;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
24
lib/models/payment_model/mercado_pago_model.dart
Normal file
24
lib/models/payment_model/mercado_pago_model.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
class MercadoPagoModel {
|
||||
bool? isSandboxEnabled;
|
||||
bool? isEnabled;
|
||||
String? accessToken;
|
||||
String? publicKey;
|
||||
|
||||
MercadoPagoModel({this.isSandboxEnabled, this.isEnabled, this.accessToken, this.publicKey});
|
||||
|
||||
MercadoPagoModel.fromJson(Map<String, dynamic> json) {
|
||||
isSandboxEnabled = json['isSandboxEnabled'];
|
||||
isEnabled = json['isEnabled'];
|
||||
accessToken = json['AccessToken'];
|
||||
publicKey = json['PublicKey'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['isSandboxEnabled'] = isSandboxEnabled;
|
||||
data['isEnabled'] = isEnabled;
|
||||
data['AccessToken'] = accessToken;
|
||||
data['PublicKey'] = publicKey;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
34
lib/models/payment_model/mid_trans.dart
Normal file
34
lib/models/payment_model/mid_trans.dart
Normal file
@@ -0,0 +1,34 @@
|
||||
class MidTrans {
|
||||
bool? enable;
|
||||
String? name;
|
||||
bool? isSandbox;
|
||||
String? serverKey;
|
||||
String? image;
|
||||
|
||||
MidTrans({
|
||||
this.name,
|
||||
this.enable,
|
||||
this.serverKey,
|
||||
this.isSandbox,
|
||||
this.image,
|
||||
});
|
||||
|
||||
MidTrans.fromJson(Map<String, dynamic> json) {
|
||||
enable = json['enable'];
|
||||
name = json['name'];
|
||||
isSandbox = json['isSandbox'];
|
||||
serverKey = json['serverKey'];
|
||||
image = json['image'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
|
||||
data['enable'] = enable;
|
||||
data['name'] = name;
|
||||
data['isSandbox'] = isSandbox;
|
||||
data['serverKey'] = serverKey;
|
||||
data['image'] = image;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
60
lib/models/payment_model/orange_money.dart
Normal file
60
lib/models/payment_model/orange_money.dart
Normal file
@@ -0,0 +1,60 @@
|
||||
class OrangeMoney {
|
||||
String? image;
|
||||
String? clientId;
|
||||
String? auth;
|
||||
bool? enable;
|
||||
String? name;
|
||||
String? notifyUrl;
|
||||
String? clientSecret;
|
||||
bool? isSandbox;
|
||||
String? returnUrl;
|
||||
String? merchantKey;
|
||||
String? cancelUrl;
|
||||
String? notifUrl;
|
||||
|
||||
OrangeMoney(
|
||||
{this.image,
|
||||
this.clientId,
|
||||
this.auth,
|
||||
this.enable,
|
||||
this.name,
|
||||
this.notifyUrl,
|
||||
this.clientSecret,
|
||||
this.isSandbox,
|
||||
this.returnUrl,
|
||||
this.cancelUrl,
|
||||
this.notifUrl,
|
||||
this.merchantKey});
|
||||
|
||||
OrangeMoney.fromJson(Map<String, dynamic> json) {
|
||||
image = json['image'];
|
||||
clientId = json['clientId'];
|
||||
auth = json['auth'];
|
||||
enable = json['enable'];
|
||||
name = json['name'];
|
||||
notifyUrl = json['notifyUrl'];
|
||||
clientSecret = json['clientSecret'];
|
||||
isSandbox = json['isSandbox'];
|
||||
returnUrl = json['returnUrl'];
|
||||
merchantKey = json['merchantKey'];
|
||||
cancelUrl = json['cancelUrl'];
|
||||
notifUrl = json['notifUrl'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['image'] = image;
|
||||
data['clientId'] = clientId;
|
||||
data['auth'] = auth;
|
||||
data['enable'] = enable;
|
||||
data['name'] = name;
|
||||
data['notifyUrl'] = notifyUrl;
|
||||
data['clientSecret'] = clientSecret;
|
||||
data['isSandbox'] = isSandbox;
|
||||
data['returnUrl'] = returnUrl;
|
||||
data['merchantKey'] = merchantKey;
|
||||
data['cancelUrl'] = cancelUrl;
|
||||
data['notifUrl'] = notifUrl;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
33
lib/models/payment_model/pay_fast_model.dart
Normal file
33
lib/models/payment_model/pay_fast_model.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
class PayFastModel {
|
||||
String? returnUrl;
|
||||
String? cancelUrl;
|
||||
String? notifyUrl;
|
||||
String? merchantKey;
|
||||
bool? isEnable;
|
||||
String? merchantId;
|
||||
bool? isSandbox;
|
||||
|
||||
PayFastModel({this.returnUrl, this.cancelUrl, this.notifyUrl, this.merchantKey, this.isEnable, this.merchantId, this.isSandbox});
|
||||
|
||||
PayFastModel.fromJson(Map<String, dynamic> json) {
|
||||
returnUrl = json['return_url'];
|
||||
cancelUrl = json['cancel_url'];
|
||||
notifyUrl = json['notify_url'];
|
||||
merchantKey = json['merchant_key'];
|
||||
isEnable = json['isEnable'];
|
||||
merchantId = json['merchant_id'];
|
||||
isSandbox = json['isSandbox'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['return_url'] = returnUrl;
|
||||
data['cancel_url'] = cancelUrl;
|
||||
data['notify_url'] = notifyUrl;
|
||||
data['merchant_key'] = merchantKey;
|
||||
data['isEnable'] = isEnable;
|
||||
data['merchant_id'] = merchantId;
|
||||
data['isSandbox'] = isSandbox;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
30
lib/models/payment_model/pay_stack_model.dart
Normal file
30
lib/models/payment_model/pay_stack_model.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
class PayStackModel {
|
||||
bool? isSandbox;
|
||||
String? callbackURL;
|
||||
String? publicKey;
|
||||
String? secretKey;
|
||||
bool? isEnable;
|
||||
String? webhookURL;
|
||||
|
||||
PayStackModel({this.isSandbox, this.callbackURL, this.publicKey, this.secretKey, this.isEnable, this.webhookURL});
|
||||
|
||||
PayStackModel.fromJson(Map<String, dynamic> json) {
|
||||
isSandbox = json['isSandbox'];
|
||||
callbackURL = json['callbackURL'];
|
||||
publicKey = json['publicKey'];
|
||||
secretKey = json['secretKey'];
|
||||
isEnable = json['isEnable'];
|
||||
webhookURL = json['webhookURL'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['isSandbox'] = isSandbox;
|
||||
data['callbackURL'] = callbackURL;
|
||||
data['publicKey'] = publicKey;
|
||||
data['secretKey'] = secretKey;
|
||||
data['isEnable'] = isEnable;
|
||||
data['webhookURL'] = webhookURL;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
30
lib/models/payment_model/paypal_model.dart
Normal file
30
lib/models/payment_model/paypal_model.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
class PayPalModel {
|
||||
String? paypalSecret;
|
||||
bool? isWithdrawEnabled;
|
||||
String? paypalAppId;
|
||||
bool? isEnabled;
|
||||
bool? isLive;
|
||||
String? paypalClient;
|
||||
|
||||
PayPalModel({this.paypalSecret, this.isWithdrawEnabled, this.paypalAppId, this.isEnabled, this.isLive, this.paypalClient});
|
||||
|
||||
PayPalModel.fromJson(Map<String, dynamic> json) {
|
||||
paypalSecret = json['paypalSecret'];
|
||||
isWithdrawEnabled = json['isWithdrawEnabled'];
|
||||
paypalAppId = json['paypalAppId'];
|
||||
isEnabled = json['isEnabled'];
|
||||
isLive = json['isLive'];
|
||||
paypalClient = json['paypalClient'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['paypalSecret'] = paypalSecret;
|
||||
data['isWithdrawEnabled'] = isWithdrawEnabled;
|
||||
data['paypalAppId'] = paypalAppId;
|
||||
data['isEnabled'] = isEnabled;
|
||||
data['isLive'] = isLive;
|
||||
data['paypalClient'] = paypalClient;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
24
lib/models/payment_model/paytm_model.dart
Normal file
24
lib/models/payment_model/paytm_model.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
class PaytmModel {
|
||||
String? paytmMID;
|
||||
String? pAYTMMERCHANTKEY;
|
||||
bool? isEnabled;
|
||||
bool? isSandboxEnabled;
|
||||
|
||||
PaytmModel({this.paytmMID, this.pAYTMMERCHANTKEY, this.isEnabled, this.isSandboxEnabled});
|
||||
|
||||
PaytmModel.fromJson(Map<String, dynamic> json) {
|
||||
paytmMID = json['PaytmMID'];
|
||||
pAYTMMERCHANTKEY = json['PAYTM_MERCHANT_KEY'];
|
||||
isEnabled = json['isEnabled'];
|
||||
isSandboxEnabled = json['isSandboxEnabled'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['PaytmMID'] = paytmMID;
|
||||
data['PAYTM_MERCHANT_KEY'] = pAYTMMERCHANTKEY;
|
||||
data['isEnabled'] = isEnabled;
|
||||
data['isSandboxEnabled'] = isSandboxEnabled;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
27
lib/models/payment_model/razorpay_model.dart
Normal file
27
lib/models/payment_model/razorpay_model.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
class RazorPayModel {
|
||||
String? razorpaySecret;
|
||||
bool? isWithdrawEnabled;
|
||||
bool? isSandboxEnabled;
|
||||
bool? isEnabled;
|
||||
String? razorpayKey;
|
||||
|
||||
RazorPayModel({this.razorpaySecret, this.isWithdrawEnabled, this.isSandboxEnabled, this.isEnabled, this.razorpayKey});
|
||||
|
||||
RazorPayModel.fromJson(Map<String, dynamic> json) {
|
||||
razorpaySecret = json['razorpaySecret'];
|
||||
isWithdrawEnabled = json['isWithdrawEnabled'];
|
||||
isSandboxEnabled = json['isSandboxEnabled'];
|
||||
isEnabled = json['isEnabled'];
|
||||
razorpayKey = json['razorpayKey'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['razorpaySecret'] = razorpaySecret;
|
||||
data['isWithdrawEnabled'] = isWithdrawEnabled;
|
||||
data['isSandboxEnabled'] = isSandboxEnabled;
|
||||
data['isEnabled'] = isEnabled;
|
||||
data['razorpayKey'] = razorpayKey;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
30
lib/models/payment_model/stripe_model.dart
Normal file
30
lib/models/payment_model/stripe_model.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
class StripeModel {
|
||||
String? stripeSecret;
|
||||
String? clientpublishableKey;
|
||||
bool? isWithdrawEnabled;
|
||||
bool? isEnabled;
|
||||
bool? isSandboxEnabled;
|
||||
String? stripeKey;
|
||||
|
||||
StripeModel({this.stripeSecret, this.clientpublishableKey, this.isWithdrawEnabled, this.isEnabled, this.isSandboxEnabled, this.stripeKey});
|
||||
|
||||
StripeModel.fromJson(Map<String, dynamic> json) {
|
||||
stripeSecret = json['stripeSecret'];
|
||||
clientpublishableKey = json['clientpublishableKey'];
|
||||
isWithdrawEnabled = json['isWithdrawEnabled'];
|
||||
isEnabled = json['isEnabled'];
|
||||
isSandboxEnabled = json['isSandboxEnabled'];
|
||||
stripeKey = json['stripeKey'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['stripeSecret'] = stripeSecret;
|
||||
data['clientpublishableKey'] = clientpublishableKey;
|
||||
data['isWithdrawEnabled'] = isWithdrawEnabled;
|
||||
data['isEnabled'] = isEnabled;
|
||||
data['isSandboxEnabled'] = isSandboxEnabled;
|
||||
data['stripeKey'] = stripeKey;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
15
lib/models/payment_model/wallet_setting_model.dart
Normal file
15
lib/models/payment_model/wallet_setting_model.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
class WalletSettingModel {
|
||||
bool? isEnabled;
|
||||
|
||||
WalletSettingModel({this.isEnabled});
|
||||
|
||||
WalletSettingModel.fromJson(Map<String, dynamic> json) {
|
||||
isEnabled = json['isEnabled'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['isEnabled'] = isEnabled;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
34
lib/models/payment_model/xendit.dart
Normal file
34
lib/models/payment_model/xendit.dart
Normal file
@@ -0,0 +1,34 @@
|
||||
class Xendit {
|
||||
bool? enable;
|
||||
String? name;
|
||||
bool? isSandbox;
|
||||
String? apiKey;
|
||||
String? image;
|
||||
|
||||
Xendit({
|
||||
this.name,
|
||||
this.enable,
|
||||
this.apiKey,
|
||||
this.isSandbox,
|
||||
this.image,
|
||||
});
|
||||
|
||||
Xendit.fromJson(Map<String, dynamic> json) {
|
||||
enable = json['enable'];
|
||||
name = json['name'];
|
||||
isSandbox = json['isSandbox'];
|
||||
apiKey = json['apiKey'];
|
||||
image = json['image'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
|
||||
data['enable'] = enable;
|
||||
data['name'] = name;
|
||||
data['isSandbox'] = isSandbox;
|
||||
data['apiKey'] = apiKey;
|
||||
data['image'] = image;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user