| POST, PUT, DELETE | /api/SalesForce/StoredAccountDetail | ||
|---|---|---|---|
| POST, PUT, DELETE | /members/storedaccountdetail |
import 'package:servicestack/servicestack.dart';
class BaseClass implements IConvertible
{
String? ClassName;
String? UniqueId;
DateTime? CreatedDateTime;
int? Version;
BaseClass({this.ClassName,this.UniqueId,this.CreatedDateTime,this.Version});
BaseClass.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ClassName = json['ClassName'];
UniqueId = json['UniqueId'];
CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!);
Version = json['Version'];
return this;
}
Map<String, dynamic> toJson() => {
'ClassName': ClassName,
'UniqueId': UniqueId,
'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!),
'Version': Version
};
getTypeName() => "BaseClass";
TypeContext? context = _ctx;
}
class StoredAccountDetail extends BaseClass implements IConvertible
{
int? StoredAccountId;
String? NameOnCard;
int? ClientId;
String? GroupId;
String? ClientUserId;
int? BhUserId;
String? CardNumber;
int? ExpMonth;
int? ExpYear;
String? Cvv;
String? CardType;
String? BillingAddress;
String? BillingCity;
String? BillingState;
String? BillingPostalCode;
String? BillingCountry;
String? ErrorCode;
String? Message;
StoredAccountDetail({this.StoredAccountId,this.NameOnCard,this.ClientId,this.GroupId,this.ClientUserId,this.BhUserId,this.CardNumber,this.ExpMonth,this.ExpYear,this.Cvv,this.CardType,this.BillingAddress,this.BillingCity,this.BillingState,this.BillingPostalCode,this.BillingCountry,this.ErrorCode,this.Message});
StoredAccountDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
StoredAccountId = json['StoredAccountId'];
NameOnCard = json['NameOnCard'];
ClientId = json['ClientId'];
GroupId = json['GroupId'];
ClientUserId = json['ClientUserId'];
BhUserId = json['BhUserId'];
CardNumber = json['CardNumber'];
ExpMonth = json['ExpMonth'];
ExpYear = json['ExpYear'];
Cvv = json['Cvv'];
CardType = json['CardType'];
BillingAddress = json['BillingAddress'];
BillingCity = json['BillingCity'];
BillingState = json['BillingState'];
BillingPostalCode = json['BillingPostalCode'];
BillingCountry = json['BillingCountry'];
ErrorCode = json['ErrorCode'];
Message = json['Message'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'StoredAccountId': StoredAccountId,
'NameOnCard': NameOnCard,
'ClientId': ClientId,
'GroupId': GroupId,
'ClientUserId': ClientUserId,
'BhUserId': BhUserId,
'CardNumber': CardNumber,
'ExpMonth': ExpMonth,
'ExpYear': ExpYear,
'Cvv': Cvv,
'CardType': CardType,
'BillingAddress': BillingAddress,
'BillingCity': BillingCity,
'BillingState': BillingState,
'BillingPostalCode': BillingPostalCode,
'BillingCountry': BillingCountry,
'ErrorCode': ErrorCode,
'Message': Message
});
getTypeName() => "StoredAccountDetail";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
'BaseClass': TypeInfo(TypeOf.Class, create:() => BaseClass()),
'StoredAccountDetail': TypeInfo(TypeOf.Class, create:() => StoredAccountDetail()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/SalesForce/StoredAccountDetail HTTP/1.1
Host: devapi.billhighway.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"StoredAccountId":0,"NameOnCard":"String","ClientId":0,"GroupId":"String","ClientUserId":"String","BhUserId":0,"CardNumber":"String","ExpMonth":0,"ExpYear":0,"Cvv":"String","CardType":"String","BillingAddress":"String","BillingCity":"String","BillingState":"String","BillingPostalCode":"String","BillingCountry":"String","ErrorCode":"String","Message":"String","ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","Version":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"StoredAccountId":0,"NameOnCard":"String","ClientId":0,"GroupId":"String","ClientUserId":"String","BhUserId":0,"CardNumber":"String","ExpMonth":0,"ExpYear":0,"Cvv":"String","CardType":"String","BillingAddress":"String","BillingCity":"String","BillingState":"String","BillingPostalCode":"String","BillingCountry":"String","ErrorCode":"String","Message":"String","ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","Version":0}