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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<WebHookRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Authorization>String</Authorization>
<accessId>String</accessId>
<createdAt>String</createdAt>
<errorCode>String</errorCode>
<eventId>String</eventId>
<eventType>String</eventType>
<formData>String</formData>
<merchantId>String</merchantId>
<merchantReference>String</merchantReference>
<message>String</message>
<objectId>String</objectId>
<objectType>String</objectType>
<parentObjectId>String</parentObjectId>
<paymentProviderTransactionstatus>String</paymentProviderTransactionstatus>
<paymentProviderTransactionstatusMessage>String</paymentProviderTransactionstatusMessage>
<paymentType>String</paymentType>
<requestSignature>String</requestSignature>
<splitToken>String</splitToken>
<status>String</status>
<thirdPartyDeclineCode>String</thirdPartyDeclineCode>
<timeZone>String</timeZone>
<transactionId>String</transactionId>
<transactionType>String</transactionType>
</WebHookRequest>