202 lines
5.8 KiB
Dart
202 lines
5.8 KiB
Dart
class Transactions {
|
|
int? id;
|
|
String? merchantLocalID;
|
|
String? amount;
|
|
String? invoice;
|
|
String? ref1;
|
|
String? ref2;
|
|
String? paymentChannel;
|
|
String? ePaymentTransactionID;
|
|
var pgwTransactionID;
|
|
String? responseURL;
|
|
String? requestUserID;
|
|
String? remark;
|
|
String? topupStatus;
|
|
String? createDate;
|
|
String? updateDate;
|
|
String? createBy;
|
|
String? updateBy;
|
|
String? requestName;
|
|
String? fullName;
|
|
|
|
Transactions(
|
|
{this.id,
|
|
this.merchantLocalID,
|
|
this.amount,
|
|
this.invoice,
|
|
this.ref1,
|
|
this.ref2,
|
|
this.paymentChannel,
|
|
this.ePaymentTransactionID,
|
|
this.pgwTransactionID,
|
|
this.responseURL,
|
|
this.requestUserID,
|
|
this.remark,
|
|
this.topupStatus,
|
|
this.createDate,
|
|
this.updateDate,
|
|
this.createBy,
|
|
this.updateBy,
|
|
this.requestName,
|
|
this.fullName});
|
|
|
|
Transactions.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
merchantLocalID = json['merchantLocalID'];
|
|
amount = json['amount'];
|
|
invoice = json['invoice'];
|
|
ref1 = json['ref1'];
|
|
ref2 = json['ref2'];
|
|
paymentChannel = json['paymentChannel'];
|
|
ePaymentTransactionID = json['ePaymentTransactionID'];
|
|
pgwTransactionID = json['pgwTransactionID'];
|
|
responseURL = json['responseURL'];
|
|
requestUserID = json['requestUserID'];
|
|
remark = json['remark'];
|
|
topupStatus = json['topupStatus'];
|
|
createDate = json['createDate'];
|
|
updateDate = json['updateDate'];
|
|
createBy = json['createBy'];
|
|
updateBy = json['updateBy'];
|
|
requestName = json['requestName'];
|
|
fullName = json['fullName'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['merchantLocalID'] = this.merchantLocalID;
|
|
data['amount'] = this.amount;
|
|
data['invoice'] = this.invoice;
|
|
data['ref1'] = this.ref1;
|
|
data['ref2'] = this.ref2;
|
|
data['paymentChannel'] = this.paymentChannel;
|
|
data['ePaymentTransactionID'] = this.ePaymentTransactionID;
|
|
data['pgwTransactionID'] = this.pgwTransactionID;
|
|
data['responseURL'] = this.responseURL;
|
|
data['requestUserID'] = this.requestUserID;
|
|
data['remark'] = this.remark;
|
|
data['topupStatus'] = this.topupStatus;
|
|
data['createDate'] = this.createDate;
|
|
data['updateDate'] = this.updateDate;
|
|
data['createBy'] = this.createBy;
|
|
data['updateBy'] = this.updateBy;
|
|
data['requestName'] = this.requestName;
|
|
data['fullName'] = this.fullName;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
|
|
class TransactionsV4 {
|
|
String? id;
|
|
String? phoneNumber;
|
|
String? payeeUserAccountId;
|
|
String? payeeName;
|
|
String? payerUserAccountId;
|
|
String? payerName;
|
|
dynamic? invoiceId;
|
|
dynamic? referencE1;
|
|
dynamic? referencE2;
|
|
dynamic? referencE3;
|
|
String? paymentStatus;
|
|
String? paymentChannel;
|
|
String? qrId;
|
|
String? createDate;
|
|
String? updateDate;
|
|
String? sattleDate;
|
|
String? voidDate;
|
|
String? refundDate;
|
|
String? cancelDate;
|
|
double? amount;
|
|
String? createBy;
|
|
String? createByName;
|
|
String? updateBy;
|
|
String? updateByName;
|
|
String? note;
|
|
|
|
TransactionsV4(
|
|
{this.id,
|
|
this.phoneNumber,
|
|
this.payeeUserAccountId,
|
|
this.payeeName,
|
|
this.payerUserAccountId,
|
|
this.payerName,
|
|
this.invoiceId,
|
|
this.referencE1,
|
|
this.referencE2,
|
|
this.referencE3,
|
|
this.paymentStatus,
|
|
this.paymentChannel,
|
|
this.qrId,
|
|
this.createDate,
|
|
this.updateDate,
|
|
this.sattleDate,
|
|
this.voidDate,
|
|
this.refundDate,
|
|
this.cancelDate,
|
|
this.amount,
|
|
this.createBy,
|
|
this.createByName,
|
|
this.updateBy,
|
|
this.updateByName,
|
|
this.note});
|
|
|
|
TransactionsV4.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
phoneNumber = json['phoneNumber'];
|
|
payeeUserAccountId = json['payeeUserAccountId'];
|
|
payeeName = json['payeeName'];
|
|
payerUserAccountId = json['payerUserAccountId'];
|
|
payerName = json['payerName'];
|
|
invoiceId = json['invoiceId'];
|
|
referencE1 = json['referencE1'];
|
|
referencE2 = json['referencE2'];
|
|
referencE3 = json['referencE3'];
|
|
paymentStatus = json['paymentStatus'];
|
|
paymentChannel = json['paymentChannel'];
|
|
qrId = json['qrId'];
|
|
createDate = json['createDate'];
|
|
updateDate = json['updateDate'];
|
|
sattleDate = json['sattleDate'];
|
|
voidDate = json['voidDate'];
|
|
refundDate = json['refundDate'];
|
|
cancelDate = json['cancelDate'];
|
|
amount = json['amount'];
|
|
createBy = json['createBy'];
|
|
createByName = json['createByName'];
|
|
updateBy = json['updateBy'];
|
|
updateByName = json['updateByName'];
|
|
note = json['note'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['phoneNumber'] = this.phoneNumber;
|
|
data['payeeUserAccountId'] = this.payeeUserAccountId;
|
|
data['payeeName'] = this.payeeName;
|
|
data['payerUserAccountId'] = this.payerUserAccountId;
|
|
data['payerName'] = this.payerName;
|
|
data['invoiceId'] = this.invoiceId;
|
|
data['referencE1'] = this.referencE1;
|
|
data['referencE2'] = this.referencE2;
|
|
data['referencE3'] = this.referencE3;
|
|
data['paymentStatus'] = this.paymentStatus;
|
|
data['paymentChannel'] = this.paymentChannel;
|
|
data['qrId'] = this.qrId;
|
|
data['createDate'] = this.createDate;
|
|
data['updateDate'] = this.updateDate;
|
|
data['sattleDate'] = this.sattleDate;
|
|
data['voidDate'] = this.voidDate;
|
|
data['refundDate'] = this.refundDate;
|
|
data['cancelDate'] = this.cancelDate;
|
|
data['amount'] = this.amount;
|
|
data['createBy'] = this.createBy;
|
|
data['createByName'] = this.createByName;
|
|
data['updateBy'] = this.updateBy;
|
|
data['updateByName'] = this.updateByName;
|
|
data['note'] = this.note;
|
|
return data;
|
|
}
|
|
} |