POST | /PayWithBankWebHook |
---|
import 'package:servicestack/servicestack.dart';
class WebHookRequest implements IConvertible
{
// @DataMember
String? Authorization;
// @DataMember
String? merchantId;
// @DataMember
String? merchantReference;
// @DataMember
String? paymentType;
// @DataMember
String? transactionType;
// @DataMember
String? eventId;
// @DataMember
String? eventType;
// @DataMember
String? objectId;
// @DataMember
String? objectType;
// @DataMember
String? message;
// @DataMember
String? parentObjectId;
// @DataMember
String? timeZone;
// @DataMember
String? createdAt;
// @DataMember
String? accessId;
// @DataMember
String? transactionId;
// @DataMember
String? errorCode;
// @DataMember
String? splitToken;
// @DataMember
String? requestSignature;
// @DataMember
String? formData;
// @DataMember
String? status;
// @DataMember
String? paymentProviderTransactionstatus;
// @DataMember
String? paymentProviderTransactionstatusMessage;
// @DataMember
String? thirdPartyDeclineCode;
WebHookRequest({this.Authorization,this.merchantId,this.merchantReference,this.paymentType,this.transactionType,this.eventId,this.eventType,this.objectId,this.objectType,this.message,this.parentObjectId,this.timeZone,this.createdAt,this.accessId,this.transactionId,this.errorCode,this.splitToken,this.requestSignature,this.formData,this.status,this.paymentProviderTransactionstatus,this.paymentProviderTransactionstatusMessage,this.thirdPartyDeclineCode});
WebHookRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Authorization = json['Authorization'];
merchantId = json['merchantId'];
merchantReference = json['merchantReference'];
paymentType = json['paymentType'];
transactionType = json['transactionType'];
eventId = json['eventId'];
eventType = json['eventType'];
objectId = json['objectId'];
objectType = json['objectType'];
message = json['message'];
parentObjectId = json['parentObjectId'];
timeZone = json['timeZone'];
createdAt = json['createdAt'];
accessId = json['accessId'];
transactionId = json['transactionId'];
errorCode = json['errorCode'];
splitToken = json['splitToken'];
requestSignature = json['requestSignature'];
formData = json['formData'];
status = json['status'];
paymentProviderTransactionstatus = json['paymentProviderTransactionstatus'];
paymentProviderTransactionstatusMessage = json['paymentProviderTransactionstatusMessage'];
thirdPartyDeclineCode = json['thirdPartyDeclineCode'];
return this;
}
Map<String, dynamic> toJson() => {
'Authorization': Authorization,
'merchantId': merchantId,
'merchantReference': merchantReference,
'paymentType': paymentType,
'transactionType': transactionType,
'eventId': eventId,
'eventType': eventType,
'objectId': objectId,
'objectType': objectType,
'message': message,
'parentObjectId': parentObjectId,
'timeZone': timeZone,
'createdAt': createdAt,
'accessId': accessId,
'transactionId': transactionId,
'errorCode': errorCode,
'splitToken': splitToken,
'requestSignature': requestSignature,
'formData': formData,
'status': status,
'paymentProviderTransactionstatus': paymentProviderTransactionstatus,
'paymentProviderTransactionstatusMessage': paymentProviderTransactionstatusMessage,
'thirdPartyDeclineCode': thirdPartyDeclineCode
};
getTypeName() => "WebHookRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.paysecure.acculynk.net', types: <String, TypeInfo> {
'WebHookRequest': TypeInfo(TypeOf.Class, create:() => WebHookRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /PayWithBankWebHook HTTP/1.1
Host: api.paysecure.acculynk.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Authorization":"String","merchantId":"String","merchantReference":"String","paymentType":"String","transactionType":"String","eventId":"String","eventType":"String","objectId":"String","objectType":"String","message":"String","parentObjectId":"String","timeZone":"String","createdAt":"String","accessId":"String","transactionId":"String","errorCode":"String","splitToken":"String","requestSignature":"String","formData":"String","status":"String","paymentProviderTransactionstatus":"String","paymentProviderTransactionstatusMessage":"String","thirdPartyDeclineCode":"String"}