| POST | /integrations/api/{integrationType}/core/verifycharge |
|---|
import 'package:servicestack/servicestack.dart';
class CreditCardVerificationDetails implements IConvertible
{
bool? IsError;
bool? IsDuplicate;
String? GatewayResponseCode;
String? GatewayMessage;
bool? NetworkVerificationAttempted;
String? CvvVerificationResult;
String? AddressVerificationResult;
String? PostalCodeVerificationResult;
String? NetworkTransactionId;
CreditCardVerificationDetails({this.IsError,this.IsDuplicate,this.GatewayResponseCode,this.GatewayMessage,this.NetworkVerificationAttempted,this.CvvVerificationResult,this.AddressVerificationResult,this.PostalCodeVerificationResult,this.NetworkTransactionId});
CreditCardVerificationDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
IsError = json['IsError'];
IsDuplicate = json['IsDuplicate'];
GatewayResponseCode = json['GatewayResponseCode'];
GatewayMessage = json['GatewayMessage'];
NetworkVerificationAttempted = json['NetworkVerificationAttempted'];
CvvVerificationResult = json['CvvVerificationResult'];
AddressVerificationResult = json['AddressVerificationResult'];
PostalCodeVerificationResult = json['PostalCodeVerificationResult'];
NetworkTransactionId = json['NetworkTransactionId'];
return this;
}
Map<String, dynamic> toJson() => {
'IsError': IsError,
'IsDuplicate': IsDuplicate,
'GatewayResponseCode': GatewayResponseCode,
'GatewayMessage': GatewayMessage,
'NetworkVerificationAttempted': NetworkVerificationAttempted,
'CvvVerificationResult': CvvVerificationResult,
'AddressVerificationResult': AddressVerificationResult,
'PostalCodeVerificationResult': PostalCodeVerificationResult,
'NetworkTransactionId': NetworkTransactionId
};
getTypeName() => "CreditCardVerificationDetails";
TypeContext? context = _ctx;
}
class AchVerificationDetails implements IConvertible
{
bool? IsError;
bool? NetworkVerificationAttempted;
String? Result;
String? Code;
String? Message;
AchVerificationDetails({this.IsError,this.NetworkVerificationAttempted,this.Result,this.Code,this.Message});
AchVerificationDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
IsError = json['IsError'];
NetworkVerificationAttempted = json['NetworkVerificationAttempted'];
Result = json['Result'];
Code = json['Code'];
Message = json['Message'];
return this;
}
Map<String, dynamic> toJson() => {
'IsError': IsError,
'NetworkVerificationAttempted': NetworkVerificationAttempted,
'Result': Result,
'Code': Code,
'Message': Message
};
getTypeName() => "AchVerificationDetails";
TypeContext? context = _ctx;
}
class CoreChargeVerifyRs implements IConvertible
{
String? Token;
CreditCardVerificationDetails? CardVerificationDetails;
AchVerificationDetails? AchVerificationDetails;
CoreChargeVerifyRs({this.Token,this.CardVerificationDetails,this.AchVerificationDetails});
CoreChargeVerifyRs.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Token = json['Token'];
CardVerificationDetails = JsonConverters.fromJson(json['CardVerificationDetails'],'CreditCardVerificationDetails',context!);
AchVerificationDetails = JsonConverters.fromJson(json['AchVerificationDetails'],'AchVerificationDetails',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Token': Token,
'CardVerificationDetails': JsonConverters.toJson(CardVerificationDetails,'CreditCardVerificationDetails',context!),
'AchVerificationDetails': JsonConverters.toJson(AchVerificationDetails,'AchVerificationDetails',context!)
};
getTypeName() => "CoreChargeVerifyRs";
TypeContext? context = _ctx;
}
class CoreChargeVerifyRq implements IConvertible
{
double? reCaptchaScore;
String? integrationType;
int? NationalId;
int? ChapterId;
int? ContextIntegrationPartnerId;
int? AuthenticationId;
String? Token;
CoreChargeVerifyRq({this.reCaptchaScore,this.integrationType,this.NationalId,this.ChapterId,this.ContextIntegrationPartnerId,this.AuthenticationId,this.Token});
CoreChargeVerifyRq.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
reCaptchaScore = JsonConverters.toDouble(json['reCaptchaScore']);
integrationType = json['integrationType'];
NationalId = json['NationalId'];
ChapterId = json['ChapterId'];
ContextIntegrationPartnerId = json['ContextIntegrationPartnerId'];
AuthenticationId = json['AuthenticationId'];
Token = json['Token'];
return this;
}
Map<String, dynamic> toJson() => {
'reCaptchaScore': reCaptchaScore,
'integrationType': integrationType,
'NationalId': NationalId,
'ChapterId': ChapterId,
'ContextIntegrationPartnerId': ContextIntegrationPartnerId,
'AuthenticationId': AuthenticationId,
'Token': Token
};
getTypeName() => "CoreChargeVerifyRq";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
'CreditCardVerificationDetails': TypeInfo(TypeOf.Class, create:() => CreditCardVerificationDetails()),
'AchVerificationDetails': TypeInfo(TypeOf.Class, create:() => AchVerificationDetails()),
'CoreChargeVerifyRs': TypeInfo(TypeOf.Class, create:() => CoreChargeVerifyRs()),
'CoreChargeVerifyRq': TypeInfo(TypeOf.Class, create:() => CoreChargeVerifyRq()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /integrations/api/{integrationType}/core/verifycharge HTTP/1.1
Host: devapi.billhighway.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
reCaptchaScore: 0,
integrationType: String,
NationalId: 0,
ChapterId: 0,
ContextIntegrationPartnerId: 0,
AuthenticationId: 0,
Token: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Token: String,
CardVerificationDetails:
{
IsError: False,
IsDuplicate: False,
GatewayResponseCode: String,
GatewayMessage: String,
NetworkVerificationAttempted: False,
CvvVerificationResult: String,
AddressVerificationResult: String,
PostalCodeVerificationResult: String,
NetworkTransactionId: String
},
AchVerificationDetails:
{
IsError: False,
NetworkVerificationAttempted: False,
Result: String,
Code: String,
Message: String
}
}