Payfort request & response insert
parent
6abcdf135e
commit
3dd4665f6e
@ -0,0 +1,128 @@
|
||||
class PayfortRequestInsertModel {
|
||||
String? accessCode;
|
||||
String? commandType;
|
||||
num? amount;
|
||||
String? customerEmail;
|
||||
String? orderDescription;
|
||||
String? serviceID;
|
||||
String? returnURL;
|
||||
String? paymentOption;
|
||||
String? clientRequestID;
|
||||
String? projectID;
|
||||
String? fileNumber;
|
||||
String? customerName;
|
||||
String? currency;
|
||||
String? liveServiceID;
|
||||
String? longitude;
|
||||
String? latitude;
|
||||
String? merchantReference;
|
||||
String? merchantIdentifier;
|
||||
String? deviceToken;
|
||||
String? sHARequestPhase;
|
||||
String? sHAResponsePhase;
|
||||
String? signature;
|
||||
String? language;
|
||||
String? integrationId;
|
||||
String? iPAdress;
|
||||
String? isSchedule;
|
||||
String? appointmentDate;
|
||||
String? appointmentNo;
|
||||
String? doctorID;
|
||||
|
||||
PayfortRequestInsertModel(
|
||||
{this.accessCode,
|
||||
this.commandType,
|
||||
this.amount,
|
||||
this.customerEmail,
|
||||
this.orderDescription,
|
||||
this.serviceID,
|
||||
this.returnURL,
|
||||
this.paymentOption,
|
||||
this.clientRequestID,
|
||||
this.projectID,
|
||||
this.fileNumber,
|
||||
this.customerName,
|
||||
this.currency,
|
||||
this.liveServiceID,
|
||||
this.longitude,
|
||||
this.latitude,
|
||||
this.merchantReference,
|
||||
this.merchantIdentifier,
|
||||
this.deviceToken,
|
||||
this.sHARequestPhase,
|
||||
this.sHAResponsePhase,
|
||||
this.signature,
|
||||
this.language,
|
||||
this.integrationId,
|
||||
this.iPAdress,
|
||||
this.isSchedule,
|
||||
this.appointmentDate,
|
||||
this.appointmentNo,
|
||||
this.doctorID});
|
||||
|
||||
PayfortRequestInsertModel.fromJson(Map<String, dynamic> json) {
|
||||
accessCode = json['Access_code'];
|
||||
commandType = json['CommandType'];
|
||||
amount = json['Amount'];
|
||||
customerEmail = json['CustomerEmail'];
|
||||
orderDescription = json['OrderDescription'];
|
||||
serviceID = json['Service_ID'];
|
||||
returnURL = json['ReturnURL'];
|
||||
paymentOption = json['PaymentOption'];
|
||||
clientRequestID = json['ClientRequestID'];
|
||||
projectID = json['ProjectID'];
|
||||
fileNumber = json['FileNumber'];
|
||||
customerName = json['CustomerName'];
|
||||
currency = json['Currency'];
|
||||
liveServiceID = json['Live_ServiceID'];
|
||||
longitude = json['Longitude'];
|
||||
latitude = json['Latitude'];
|
||||
merchantReference = json['Merchant_Reference'];
|
||||
merchantIdentifier = json['Merchant_Identifier'];
|
||||
deviceToken = json['DeviceToken'];
|
||||
sHARequestPhase = json['SHA_RequestPhase'];
|
||||
sHAResponsePhase = json['SHA_ResponsePhase'];
|
||||
signature = json['Signature'];
|
||||
language = json['Language'];
|
||||
integrationId = json['Integration_Id'];
|
||||
iPAdress = json['IPAdress'];
|
||||
isSchedule = json['IsSchedule'];
|
||||
appointmentDate = json['AppointmentDate'];
|
||||
appointmentNo = json['AppointmentNo'];
|
||||
doctorID = json['DoctorID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['Access_code'] = this.accessCode;
|
||||
data['CommandType'] = this.commandType;
|
||||
data['Amount'] = this.amount;
|
||||
data['CustomerEmail'] = this.customerEmail;
|
||||
data['OrderDescription'] = this.orderDescription;
|
||||
data['Service_ID'] = this.serviceID;
|
||||
data['ReturnURL'] = this.returnURL;
|
||||
data['PaymentOption'] = this.paymentOption;
|
||||
data['ClientRequestID'] = this.clientRequestID;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['FileNumber'] = this.fileNumber;
|
||||
data['CustomerName'] = this.customerName;
|
||||
data['Currency'] = this.currency;
|
||||
data['Live_ServiceID'] = this.liveServiceID;
|
||||
data['Longitude'] = this.longitude;
|
||||
data['Latitude'] = this.latitude;
|
||||
data['Merchant_Reference'] = this.merchantReference;
|
||||
data['Merchant_Identifier'] = this.merchantIdentifier;
|
||||
data['DeviceToken'] = this.deviceToken;
|
||||
data['SHA_RequestPhase'] = this.sHARequestPhase;
|
||||
data['SHA_ResponsePhase'] = this.sHAResponsePhase;
|
||||
data['Signature'] = this.signature;
|
||||
data['Language'] = this.language;
|
||||
data['Integration_Id'] = this.integrationId;
|
||||
data['IPAdress'] = this.iPAdress;
|
||||
data['IsSchedule'] = this.isSchedule;
|
||||
data['AppointmentDate'] = this.appointmentDate;
|
||||
data['AppointmentNo'] = this.appointmentNo;
|
||||
data['DoctorID'] = this.doctorID;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,77 @@
|
||||
class PayfortResponseInsertModel {
|
||||
String? fortId;
|
||||
String? commandType;
|
||||
num? amount;
|
||||
String? sadadOLP;
|
||||
String? paymentOption;
|
||||
String? customerIP;
|
||||
String? eCI;
|
||||
String? responseMessage;
|
||||
String? cardNumber;
|
||||
String? cardBin;
|
||||
int? installmentsNumber;
|
||||
String? status;
|
||||
String? merchantRef;
|
||||
bool? isRefund;
|
||||
bool? remmeberMe;
|
||||
String? reconciliationReference;
|
||||
|
||||
PayfortResponseInsertModel({
|
||||
this.fortId,
|
||||
this.commandType,
|
||||
this.amount,
|
||||
this.sadadOLP,
|
||||
this.paymentOption,
|
||||
this.customerIP,
|
||||
this.eCI,
|
||||
this.responseMessage,
|
||||
this.cardNumber,
|
||||
this.cardBin,
|
||||
this.installmentsNumber,
|
||||
this.status,
|
||||
this.merchantRef,
|
||||
this.isRefund,
|
||||
this.remmeberMe,
|
||||
this.reconciliationReference,
|
||||
});
|
||||
|
||||
PayfortResponseInsertModel.fromJson(Map<String, dynamic> json) {
|
||||
fortId = json['Fort_id'];
|
||||
commandType = json['CommandType'];
|
||||
amount = json['Amount'];
|
||||
sadadOLP = json['Sadad_OLP'];
|
||||
paymentOption = json['Payment_Option'];
|
||||
customerIP = json['Customer_IP'];
|
||||
eCI = json['ECI'];
|
||||
responseMessage = json['Response_Message'];
|
||||
cardNumber = json['Card_Number'];
|
||||
cardBin = json['Card_Bin'];
|
||||
installmentsNumber = json['Installments_Number'];
|
||||
status = json['Status'];
|
||||
merchantRef = json['Merchant_Ref'];
|
||||
isRefund = json['IsRefund'];
|
||||
remmeberMe = json['RemmeberMe'];
|
||||
reconciliationReference = json['Reconciliation_Reference'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = Map<String, dynamic>();
|
||||
data['Fort_id'] = this.fortId;
|
||||
data['CommandType'] = this.commandType;
|
||||
data['Amount'] = this.amount;
|
||||
data['Sadad_OLP'] = this.sadadOLP;
|
||||
data['Payment_Option'] = this.paymentOption;
|
||||
data['Customer_IP'] = this.customerIP;
|
||||
data['ECI'] = this.eCI;
|
||||
data['Response_Message'] = this.responseMessage;
|
||||
data['Card_Number'] = this.cardNumber;
|
||||
data['Card_Bin'] = this.cardBin;
|
||||
data['Installments_Number'] = this.installmentsNumber;
|
||||
data['Status'] = this.status;
|
||||
data['Merchant_Ref'] = this.merchantRef;
|
||||
data['IsRefund'] = this.isRefund;
|
||||
data['RemmeberMe'] = this.remmeberMe;
|
||||
data['Reconciliation_Reference'] = this.reconciliationReference;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue