| POST | /SMP |
|---|
import 'package:servicestack/servicestack.dart';
class SmpReply implements IHaveErrorField, IConvertible
{
String? UniqueId;
DateTime? CreatedDateTime;
int? ClientId;
int? BillhighwayUserId;
String? ConfirmationNumber;
int? PaymentConfirmationNumber;
int? SubscriptionConfirmationNumber;
int? ErrorCode;
String? ErrorMessage;
bool? IsError;
SmpReply({this.UniqueId,this.CreatedDateTime,this.ClientId,this.BillhighwayUserId,this.ConfirmationNumber,this.PaymentConfirmationNumber,this.SubscriptionConfirmationNumber,this.ErrorCode,this.ErrorMessage,this.IsError});
SmpReply.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
UniqueId = json['UniqueId'];
CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!);
ClientId = json['ClientId'];
BillhighwayUserId = json['BillhighwayUserId'];
ConfirmationNumber = json['ConfirmationNumber'];
PaymentConfirmationNumber = json['PaymentConfirmationNumber'];
SubscriptionConfirmationNumber = json['SubscriptionConfirmationNumber'];
ErrorCode = json['ErrorCode'];
ErrorMessage = json['ErrorMessage'];
IsError = json['IsError'];
return this;
}
Map<String, dynamic> toJson() => {
'UniqueId': UniqueId,
'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!),
'ClientId': ClientId,
'BillhighwayUserId': BillhighwayUserId,
'ConfirmationNumber': ConfirmationNumber,
'PaymentConfirmationNumber': PaymentConfirmationNumber,
'SubscriptionConfirmationNumber': SubscriptionConfirmationNumber,
'ErrorCode': ErrorCode,
'ErrorMessage': ErrorMessage,
'IsError': IsError
};
getTypeName() => "SmpReply";
TypeContext? context = _ctx;
}
class RecurringInvoiceSettings implements IConvertible
{
String? DonationAmount;
RecurringInvoiceSettings({this.DonationAmount});
RecurringInvoiceSettings.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
DonationAmount = json['DonationAmount'];
return this;
}
Map<String, dynamic> toJson() => {
'DonationAmount': DonationAmount
};
getTypeName() => "RecurringInvoiceSettings";
TypeContext? context = _ctx;
}
class SubscriberFormField implements IConvertible
{
String? Name;
String? Value;
SubscriberFormField({this.Name,this.Value});
SubscriberFormField.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Name = json['Name'];
Value = json['Value'];
return this;
}
Map<String, dynamic> toJson() => {
'Name': Name,
'Value': Value
};
getTypeName() => "SubscriberFormField";
TypeContext? context = _ctx;
}
class AttributeItem implements IConvertible
{
String? Name;
String? Value;
AttributeItem({this.Name,this.Value});
AttributeItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Name = json['Name'];
Value = json['Value'];
return this;
}
Map<String, dynamic> toJson() => {
'Name': Name,
'Value': Value
};
getTypeName() => "AttributeItem";
TypeContext? context = _ctx;
}
class Chapter implements IConvertible
{
String? GroupId;
Chapter({this.GroupId});
Chapter.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
GroupId = json['GroupId'];
return this;
}
Map<String, dynamic> toJson() => {
'GroupId': GroupId
};
getTypeName() => "Chapter";
TypeContext? context = _ctx;
}
class Member implements IConvertible
{
String? ClassName;
String? UniqueId;
DateTime? CreatedDateTime;
int? ClientId;
String? GroupId;
String? UserId;
String? AlternateUserId;
int? BhUserId;
String? FirstName;
String? LastName;
String? MiddleName;
String? PreferredEmailAddress;
String? OtherEmailAddress;
String? PreferredPhoneNumber;
String? PreferredAddress1;
String? PreferredAddress2;
String? PreferredCity;
String? PreferredState;
String? PreferredZip;
String? PreferredCountry;
String? AccessLevel;
String? MemberStatus;
String? MemberTypeClient;
String? BillingType;
int? FiscalYear;
String? WorkLocation;
DateTime? DOB;
String? Paperless;
String? DisplayName;
String? DisableLogin;
RecurringInvoiceSettings? RecurringInvoiceSettings;
List<SubscriberFormField>? FormFields;
List<AttributeItem>? Attributes;
List<Chapter>? GroupList;
Member({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.AlternateUserId,this.BhUserId,this.FirstName,this.LastName,this.MiddleName,this.PreferredEmailAddress,this.OtherEmailAddress,this.PreferredPhoneNumber,this.PreferredAddress1,this.PreferredAddress2,this.PreferredCity,this.PreferredState,this.PreferredZip,this.PreferredCountry,this.AccessLevel,this.MemberStatus,this.MemberTypeClient,this.BillingType,this.FiscalYear,this.WorkLocation,this.DOB,this.Paperless,this.DisplayName,this.DisableLogin,this.RecurringInvoiceSettings,this.FormFields,this.Attributes,this.GroupList});
Member.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!);
ClientId = json['ClientId'];
GroupId = json['GroupId'];
UserId = json['UserId'];
AlternateUserId = json['AlternateUserId'];
BhUserId = json['BhUserId'];
FirstName = json['FirstName'];
LastName = json['LastName'];
MiddleName = json['MiddleName'];
PreferredEmailAddress = json['PreferredEmailAddress'];
OtherEmailAddress = json['OtherEmailAddress'];
PreferredPhoneNumber = json['PreferredPhoneNumber'];
PreferredAddress1 = json['PreferredAddress1'];
PreferredAddress2 = json['PreferredAddress2'];
PreferredCity = json['PreferredCity'];
PreferredState = json['PreferredState'];
PreferredZip = json['PreferredZip'];
PreferredCountry = json['PreferredCountry'];
AccessLevel = json['AccessLevel'];
MemberStatus = json['MemberStatus'];
MemberTypeClient = json['MemberTypeClient'];
BillingType = json['BillingType'];
FiscalYear = json['FiscalYear'];
WorkLocation = json['WorkLocation'];
DOB = JsonConverters.fromJson(json['DOB'],'DateTime',context!);
Paperless = json['Paperless'];
DisplayName = json['DisplayName'];
DisableLogin = json['DisableLogin'];
RecurringInvoiceSettings = JsonConverters.fromJson(json['RecurringInvoiceSettings'],'RecurringInvoiceSettings',context!);
FormFields = JsonConverters.fromJson(json['FormFields'],'List<SubscriberFormField>',context!);
Attributes = JsonConverters.fromJson(json['Attributes'],'List<AttributeItem>',context!);
GroupList = JsonConverters.fromJson(json['GroupList'],'List<Chapter>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ClassName': ClassName,
'UniqueId': UniqueId,
'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!),
'ClientId': ClientId,
'GroupId': GroupId,
'UserId': UserId,
'AlternateUserId': AlternateUserId,
'BhUserId': BhUserId,
'FirstName': FirstName,
'LastName': LastName,
'MiddleName': MiddleName,
'PreferredEmailAddress': PreferredEmailAddress,
'OtherEmailAddress': OtherEmailAddress,
'PreferredPhoneNumber': PreferredPhoneNumber,
'PreferredAddress1': PreferredAddress1,
'PreferredAddress2': PreferredAddress2,
'PreferredCity': PreferredCity,
'PreferredState': PreferredState,
'PreferredZip': PreferredZip,
'PreferredCountry': PreferredCountry,
'AccessLevel': AccessLevel,
'MemberStatus': MemberStatus,
'MemberTypeClient': MemberTypeClient,
'BillingType': BillingType,
'FiscalYear': FiscalYear,
'WorkLocation': WorkLocation,
'DOB': JsonConverters.toJson(DOB,'DateTime',context!),
'Paperless': Paperless,
'DisplayName': DisplayName,
'DisableLogin': DisableLogin,
'RecurringInvoiceSettings': JsonConverters.toJson(RecurringInvoiceSettings,'RecurringInvoiceSettings',context!),
'FormFields': JsonConverters.toJson(FormFields,'List<SubscriberFormField>',context!),
'Attributes': JsonConverters.toJson(Attributes,'List<AttributeItem>',context!),
'GroupList': JsonConverters.toJson(GroupList,'List<Chapter>',context!)
};
getTypeName() => "Member";
TypeContext? context = _ctx;
}
class SubscriptionParameters implements IConvertible
{
int? FormTemplateID;
int? SubscriptionInvoiceID;
String? ClientSubscriberId;
int? SignupTypeID;
int? FrequencyID;
bool? AutoRenew;
int? CompanyID;
int? UserID;
int? ChapMemPayID;
int? MemberSubscriptionInvID;
List<SubscriberFormField>? Fields;
int? CreatedBy;
int? UpdatedBy;
int? AptifyUpdateType;
int? RenewedMemberSubscriptionInvID;
int? ChapId;
SubscriptionParameters({this.FormTemplateID,this.SubscriptionInvoiceID,this.ClientSubscriberId,this.SignupTypeID,this.FrequencyID,this.AutoRenew,this.CompanyID,this.UserID,this.ChapMemPayID,this.MemberSubscriptionInvID,this.Fields,this.CreatedBy,this.UpdatedBy,this.AptifyUpdateType,this.RenewedMemberSubscriptionInvID,this.ChapId});
SubscriptionParameters.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
FormTemplateID = json['FormTemplateID'];
SubscriptionInvoiceID = json['SubscriptionInvoiceID'];
ClientSubscriberId = json['ClientSubscriberId'];
SignupTypeID = json['SignupTypeID'];
FrequencyID = json['FrequencyID'];
AutoRenew = json['AutoRenew'];
CompanyID = json['CompanyID'];
UserID = json['UserID'];
ChapMemPayID = json['ChapMemPayID'];
MemberSubscriptionInvID = json['MemberSubscriptionInvID'];
Fields = JsonConverters.fromJson(json['Fields'],'List<SubscriberFormField>',context!);
CreatedBy = json['CreatedBy'];
UpdatedBy = json['UpdatedBy'];
AptifyUpdateType = json['AptifyUpdateType'];
RenewedMemberSubscriptionInvID = json['RenewedMemberSubscriptionInvID'];
ChapId = json['ChapId'];
return this;
}
Map<String, dynamic> toJson() => {
'FormTemplateID': FormTemplateID,
'SubscriptionInvoiceID': SubscriptionInvoiceID,
'ClientSubscriberId': ClientSubscriberId,
'SignupTypeID': SignupTypeID,
'FrequencyID': FrequencyID,
'AutoRenew': AutoRenew,
'CompanyID': CompanyID,
'UserID': UserID,
'ChapMemPayID': ChapMemPayID,
'MemberSubscriptionInvID': MemberSubscriptionInvID,
'Fields': JsonConverters.toJson(Fields,'List<SubscriberFormField>',context!),
'CreatedBy': CreatedBy,
'UpdatedBy': UpdatedBy,
'AptifyUpdateType': AptifyUpdateType,
'RenewedMemberSubscriptionInvID': RenewedMemberSubscriptionInvID,
'ChapId': ChapId
};
getTypeName() => "SubscriptionParameters";
TypeContext? context = _ctx;
}
class CreditCardPayment extends CreditCardPayment implements IConvertible
{
SubscriptionParameters? SubscriptionInfo;
CreditCardPayment({this.SubscriptionInfo});
CreditCardPayment.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
SubscriptionInfo = JsonConverters.fromJson(json['SubscriptionInfo'],'SubscriptionParameters',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'SubscriptionInfo': JsonConverters.toJson(SubscriptionInfo,'SubscriptionParameters',context!)
});
getTypeName() => "CreditCardPayment";
TypeContext? context = _ctx;
}
class SalesForceMemberPaymentInvoiceDetail implements IConvertible
{
String? ClassName;
String? UniqueId;
DateTime? CreatedDateTime;
int? ClientId;
int? Invoice;
String? AmountPaid;
SalesForceMemberPaymentInvoiceDetail({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.Invoice,this.AmountPaid});
SalesForceMemberPaymentInvoiceDetail.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!);
ClientId = json['ClientId'];
Invoice = json['Invoice'];
AmountPaid = json['AmountPaid'];
return this;
}
Map<String, dynamic> toJson() => {
'ClassName': ClassName,
'UniqueId': UniqueId,
'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!),
'ClientId': ClientId,
'Invoice': Invoice,
'AmountPaid': AmountPaid
};
getTypeName() => "SalesForceMemberPaymentInvoiceDetail";
TypeContext? context = _ctx;
}
class AchPayment implements IConvertible
{
String? ClassName;
String? UniqueId;
DateTime? CreatedDateTime;
int? ClientId;
String? GroupId;
String? UserId;
int? BhUserId;
double? Amount;
String? CurrencyType;
String? Country;
String? RoutingNumber;
String? AccountNumber;
String? AchReference;
String? AccountType;
bool? IsSavingsAccount;
String? PayerName;
String? CheckNumber;
String? PreferredEmailAddress;
String? Memo;
List<SalesForceMemberPaymentInvoiceDetail>? InvoiceList;
bool? AutoPay;
bool? StoreAchInfo;
int? EncryptionTypeId;
AchPayment({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.BhUserId,this.Amount,this.CurrencyType,this.Country,this.RoutingNumber,this.AccountNumber,this.AchReference,this.AccountType,this.IsSavingsAccount,this.PayerName,this.CheckNumber,this.PreferredEmailAddress,this.Memo,this.InvoiceList,this.AutoPay,this.StoreAchInfo,this.EncryptionTypeId});
AchPayment.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!);
ClientId = json['ClientId'];
GroupId = json['GroupId'];
UserId = json['UserId'];
BhUserId = json['BhUserId'];
Amount = JsonConverters.toDouble(json['Amount']);
CurrencyType = json['CurrencyType'];
Country = json['Country'];
RoutingNumber = json['RoutingNumber'];
AccountNumber = json['AccountNumber'];
AchReference = json['AchReference'];
AccountType = json['AccountType'];
IsSavingsAccount = json['IsSavingsAccount'];
PayerName = json['PayerName'];
CheckNumber = json['CheckNumber'];
PreferredEmailAddress = json['PreferredEmailAddress'];
Memo = json['Memo'];
InvoiceList = JsonConverters.fromJson(json['InvoiceList'],'List<SalesForceMemberPaymentInvoiceDetail>',context!);
AutoPay = json['AutoPay'];
StoreAchInfo = json['StoreAchInfo'];
EncryptionTypeId = json['EncryptionTypeId'];
return this;
}
Map<String, dynamic> toJson() => {
'ClassName': ClassName,
'UniqueId': UniqueId,
'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!),
'ClientId': ClientId,
'GroupId': GroupId,
'UserId': UserId,
'BhUserId': BhUserId,
'Amount': Amount,
'CurrencyType': CurrencyType,
'Country': Country,
'RoutingNumber': RoutingNumber,
'AccountNumber': AccountNumber,
'AchReference': AchReference,
'AccountType': AccountType,
'IsSavingsAccount': IsSavingsAccount,
'PayerName': PayerName,
'CheckNumber': CheckNumber,
'PreferredEmailAddress': PreferredEmailAddress,
'Memo': Memo,
'InvoiceList': JsonConverters.toJson(InvoiceList,'List<SalesForceMemberPaymentInvoiceDetail>',context!),
'AutoPay': AutoPay,
'StoreAchInfo': StoreAchInfo,
'EncryptionTypeId': EncryptionTypeId
};
getTypeName() => "AchPayment";
TypeContext? context = _ctx;
}
class Subscription implements IConvertible
{
String? UniqueId;
int? FormTemplateID;
int? SubscriptionInvoiceID;
String? ClientSubscriberId;
int? SignupTypeID;
int? FrequencyID;
bool? AutoRenew;
int? UserID;
int? ChapMemPayID;
List<SubscriberFormField>? Fields;
int? CreatedBy;
int? UpdatedBy;
int? RenewedMemberSubscriptionInvID;
String? SubscriptionTypeId;
Subscription({this.UniqueId,this.FormTemplateID,this.SubscriptionInvoiceID,this.ClientSubscriberId,this.SignupTypeID,this.FrequencyID,this.AutoRenew,this.UserID,this.ChapMemPayID,this.Fields,this.CreatedBy,this.UpdatedBy,this.RenewedMemberSubscriptionInvID,this.SubscriptionTypeId});
Subscription.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
UniqueId = json['UniqueId'];
FormTemplateID = json['FormTemplateID'];
SubscriptionInvoiceID = json['SubscriptionInvoiceID'];
ClientSubscriberId = json['ClientSubscriberId'];
SignupTypeID = json['SignupTypeID'];
FrequencyID = json['FrequencyID'];
AutoRenew = json['AutoRenew'];
UserID = json['UserID'];
ChapMemPayID = json['ChapMemPayID'];
Fields = JsonConverters.fromJson(json['Fields'],'List<SubscriberFormField>',context!);
CreatedBy = json['CreatedBy'];
UpdatedBy = json['UpdatedBy'];
RenewedMemberSubscriptionInvID = json['RenewedMemberSubscriptionInvID'];
SubscriptionTypeId = json['SubscriptionTypeId'];
return this;
}
Map<String, dynamic> toJson() => {
'UniqueId': UniqueId,
'FormTemplateID': FormTemplateID,
'SubscriptionInvoiceID': SubscriptionInvoiceID,
'ClientSubscriberId': ClientSubscriberId,
'SignupTypeID': SignupTypeID,
'FrequencyID': FrequencyID,
'AutoRenew': AutoRenew,
'UserID': UserID,
'ChapMemPayID': ChapMemPayID,
'Fields': JsonConverters.toJson(Fields,'List<SubscriberFormField>',context!),
'CreatedBy': CreatedBy,
'UpdatedBy': UpdatedBy,
'RenewedMemberSubscriptionInvID': RenewedMemberSubscriptionInvID,
'SubscriptionTypeId': SubscriptionTypeId
};
getTypeName() => "Subscription";
TypeContext? context = _ctx;
}
class CampaignInformation implements IConvertible
{
int? CampaignId;
String? CampaignName;
double? Amount;
String? ChapPayID;
CampaignInformation({this.CampaignId,this.CampaignName,this.Amount,this.ChapPayID});
CampaignInformation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CampaignId = json['CampaignId'];
CampaignName = json['CampaignName'];
Amount = JsonConverters.toDouble(json['Amount']);
ChapPayID = json['ChapPayID'];
return this;
}
Map<String, dynamic> toJson() => {
'CampaignId': CampaignId,
'CampaignName': CampaignName,
'Amount': Amount,
'ChapPayID': ChapPayID
};
getTypeName() => "CampaignInformation";
TypeContext? context = _ctx;
}
class BillMeLaterInformation implements IConvertible
{
bool? IsBillMeLaterPayment;
bool? IsBillMeLaterSubscription;
int? MemberSubscriptionInvId;
List<CampaignInformation>? Campaigns;
BillMeLaterInformation({this.IsBillMeLaterPayment,this.IsBillMeLaterSubscription,this.MemberSubscriptionInvId,this.Campaigns});
BillMeLaterInformation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
IsBillMeLaterPayment = json['IsBillMeLaterPayment'];
IsBillMeLaterSubscription = json['IsBillMeLaterSubscription'];
MemberSubscriptionInvId = json['MemberSubscriptionInvId'];
Campaigns = JsonConverters.fromJson(json['Campaigns'],'List<CampaignInformation>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'IsBillMeLaterPayment': IsBillMeLaterPayment,
'IsBillMeLaterSubscription': IsBillMeLaterSubscription,
'MemberSubscriptionInvId': MemberSubscriptionInvId,
'Campaigns': JsonConverters.toJson(Campaigns,'List<CampaignInformation>',context!)
};
getTypeName() => "BillMeLaterInformation";
TypeContext? context = _ctx;
}
class Smp implements IConvertible
{
String? UniqueId;
DateTime? CreatedDateTime;
int? ClientId;
String? GroupId;
int? UserId;
int? AdminId;
Member? MemberInfo;
CreditCardPayment? CcPaymentInfo;
AchPayment? AchPaymentInfo;
Subscription? Subscription;
BillMeLaterInformation? BillMeLaterInfo;
Smp({this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.AdminId,this.MemberInfo,this.CcPaymentInfo,this.AchPaymentInfo,this.Subscription,this.BillMeLaterInfo});
Smp.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
UniqueId = json['UniqueId'];
CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!);
ClientId = json['ClientId'];
GroupId = json['GroupId'];
UserId = json['UserId'];
AdminId = json['AdminId'];
MemberInfo = JsonConverters.fromJson(json['MemberInfo'],'Member',context!);
CcPaymentInfo = JsonConverters.fromJson(json['CcPaymentInfo'],'CreditCardPayment',context!);
AchPaymentInfo = JsonConverters.fromJson(json['AchPaymentInfo'],'AchPayment',context!);
Subscription = JsonConverters.fromJson(json['Subscription'],'Subscription',context!);
BillMeLaterInfo = JsonConverters.fromJson(json['BillMeLaterInfo'],'BillMeLaterInformation',context!);
return this;
}
Map<String, dynamic> toJson() => {
'UniqueId': UniqueId,
'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!),
'ClientId': ClientId,
'GroupId': GroupId,
'UserId': UserId,
'AdminId': AdminId,
'MemberInfo': JsonConverters.toJson(MemberInfo,'Member',context!),
'CcPaymentInfo': JsonConverters.toJson(CcPaymentInfo,'CreditCardPayment',context!),
'AchPaymentInfo': JsonConverters.toJson(AchPaymentInfo,'AchPayment',context!),
'Subscription': JsonConverters.toJson(Subscription,'Subscription',context!),
'BillMeLaterInfo': JsonConverters.toJson(BillMeLaterInfo,'BillMeLaterInformation',context!)
};
getTypeName() => "Smp";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
'SmpReply': TypeInfo(TypeOf.Class, create:() => SmpReply()),
'RecurringInvoiceSettings': TypeInfo(TypeOf.Class, create:() => RecurringInvoiceSettings()),
'SubscriberFormField': TypeInfo(TypeOf.Class, create:() => SubscriberFormField()),
'AttributeItem': TypeInfo(TypeOf.Class, create:() => AttributeItem()),
'Chapter': TypeInfo(TypeOf.Class, create:() => Chapter()),
'Member': TypeInfo(TypeOf.Class, create:() => Member()),
'List<SubscriberFormField>': TypeInfo(TypeOf.Class, create:() => <SubscriberFormField>[]),
'List<AttributeItem>': TypeInfo(TypeOf.Class, create:() => <AttributeItem>[]),
'List<Chapter>': TypeInfo(TypeOf.Class, create:() => <Chapter>[]),
'SubscriptionParameters': TypeInfo(TypeOf.Class, create:() => SubscriptionParameters()),
'CreditCardPayment': TypeInfo(TypeOf.Class, create:() => CreditCardPayment()),
'SalesForceMemberPaymentInvoiceDetail': TypeInfo(TypeOf.Class, create:() => SalesForceMemberPaymentInvoiceDetail()),
'AchPayment': TypeInfo(TypeOf.Class, create:() => AchPayment()),
'List<SalesForceMemberPaymentInvoiceDetail>': TypeInfo(TypeOf.Class, create:() => <SalesForceMemberPaymentInvoiceDetail>[]),
'Subscription': TypeInfo(TypeOf.Class, create:() => Subscription()),
'CampaignInformation': TypeInfo(TypeOf.Class, create:() => CampaignInformation()),
'BillMeLaterInformation': TypeInfo(TypeOf.Class, create:() => BillMeLaterInformation()),
'List<CampaignInformation>': TypeInfo(TypeOf.Class, create:() => <CampaignInformation>[]),
'Smp': TypeInfo(TypeOf.Class, create:() => Smp()),
});
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 /SMP HTTP/1.1
Host: devapi.billhighway.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
GroupId: String,
UserId: 0,
AdminId: 0,
MemberInfo:
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
GroupId: String,
UserId: String,
AlternateUserId: String,
BhUserId: 0,
FirstName: String,
LastName: String,
MiddleName: String,
PreferredEmailAddress: String,
OtherEmailAddress: String,
PreferredPhoneNumber: String,
PreferredAddress1: String,
PreferredAddress2: String,
PreferredCity: String,
PreferredState: String,
PreferredZip: String,
PreferredCountry: String,
AccessLevel: String,
MemberStatus: String,
MemberTypeClient: String,
BillingType: String,
FiscalYear: 0,
WorkLocation: String,
DOB: 0001-01-01,
Paperless: String,
DisplayName: String,
DisableLogin: String,
RecurringInvoiceSettings:
{
DonationAmount: String
},
FormFields:
[
{
Name: String,
Value: String
}
],
Attributes:
[
{
Name: String,
Value: String
}
],
GroupList:
[
{
GroupId: String
}
]
},
CcPaymentInfo:
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
GroupId: String,
UserId: String,
BhUserId: 0,
Amount: String,
AutoPay: False,
CurrencyType: String,
Country: String,
CardReferenceOrCardNumber: String,
StoreCardInfo: False,
Address1: String,
Address2: String,
BillingCity: String,
BillingState: String,
PreferredEmailAddress: String,
Memo: String,
OpportunityId: String,
ExpMonth: 0,
ExpYear: 0,
Cvv: String,
PostalCode: String,
Location: String,
NameOnCard: String,
CardType: String,
InvoiceList:
[
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
Invoice: 0,
AmountPaid: String
}
]
},
AchPaymentInfo:
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
GroupId: String,
UserId: String,
BhUserId: 0,
Amount: 0,
CurrencyType: String,
Country: String,
RoutingNumber: String,
AccountNumber: String,
AchReference: String,
AccountType: String,
IsSavingsAccount: False,
PayerName: String,
CheckNumber: String,
PreferredEmailAddress: String,
Memo: String,
InvoiceList:
[
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
Invoice: 0,
AmountPaid: String
}
],
AutoPay: False,
StoreAchInfo: False,
EncryptionTypeId: 0
},
Subscription:
{
UniqueId: String,
FormTemplateID: 0,
SubscriptionInvoiceID: 0,
ClientSubscriberId: String,
SignupTypeID: 0,
FrequencyID: 0,
AutoRenew: False,
UserID: 0,
ChapMemPayID: 0,
Fields:
[
{
Name: String,
Value: String
}
],
CreatedBy: 0,
UpdatedBy: 0,
RenewedMemberSubscriptionInvID: 0,
SubscriptionTypeId: String
},
BillMeLaterInfo:
{
IsBillMeLaterPayment: False,
IsBillMeLaterSubscription: False,
MemberSubscriptionInvId: 0,
Campaigns:
[
{
CampaignId: 0,
CampaignName: String,
Amount: 0,
ChapPayID: String
}
]
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
BillhighwayUserId: 0,
ConfirmationNumber: String,
PaymentConfirmationNumber: 0,
SubscriptionConfirmationNumber: 0,
ErrorCode: 0,
ErrorMessage: String,
IsError: False
}