| GET | /signup/api/memberSubscriptionInvoice/{memberSubscriptionInvoiceID} |
|---|
import 'package:servicestack/servicestack.dart';
class MemberSubscriptionPaymentRq implements IApiRequest, IConvertible
{
int? MemberSubscriptionInvoiceId;
MemberSubscriptionPaymentRq({this.MemberSubscriptionInvoiceId});
MemberSubscriptionPaymentRq.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
MemberSubscriptionInvoiceId = json['MemberSubscriptionInvoiceId'];
return this;
}
Map<String, dynamic> toJson() => {
'MemberSubscriptionInvoiceId': MemberSubscriptionInvoiceId
};
getTypeName() => "MemberSubscriptionPaymentRq";
TypeContext? context = _ctx;
}
class ApiParameter implements IConvertible
{
String? Name;
String? Value;
ApiParameter({this.Name,this.Value});
ApiParameter.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() => "ApiParameter";
TypeContext? context = _ctx;
}
class CountryInfo implements IConvertible
{
int? CountryID;
String? Abbr;
String? FullName;
String? IsoA2;
int? IsoNum;
CountryInfo({this.CountryID,this.Abbr,this.FullName,this.IsoA2,this.IsoNum});
CountryInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CountryID = json['CountryID'];
Abbr = json['Abbr'];
FullName = json['FullName'];
IsoA2 = json['IsoA2'];
IsoNum = json['IsoNum'];
return this;
}
Map<String, dynamic> toJson() => {
'CountryID': CountryID,
'Abbr': Abbr,
'FullName': FullName,
'IsoA2': IsoA2,
'IsoNum': IsoNum
};
getTypeName() => "CountryInfo";
TypeContext? context = _ctx;
}
class StateInfo implements IConvertible
{
int? CountryID;
int? StateID;
String? Abbr;
String? FullName;
StateInfo({this.CountryID,this.StateID,this.Abbr,this.FullName});
StateInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CountryID = json['CountryID'];
StateID = json['StateID'];
Abbr = json['Abbr'];
FullName = json['FullName'];
return this;
}
Map<String, dynamic> toJson() => {
'CountryID': CountryID,
'StateID': StateID,
'Abbr': Abbr,
'FullName': FullName
};
getTypeName() => "StateInfo";
TypeContext? context = _ctx;
}
class GroupBrandingInfo implements IConvertible
{
List<ApiParameter>? Items;
List<CountryInfo>? Countries;
List<StateInfo>? States;
GroupBrandingInfo({this.Items,this.Countries,this.States});
GroupBrandingInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Items = JsonConverters.fromJson(json['Items'],'List<ApiParameter>',context!);
Countries = JsonConverters.fromJson(json['Countries'],'List<CountryInfo>',context!);
States = JsonConverters.fromJson(json['States'],'List<StateInfo>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Items': JsonConverters.toJson(Items,'List<ApiParameter>',context!),
'Countries': JsonConverters.toJson(Countries,'List<CountryInfo>',context!),
'States': JsonConverters.toJson(States,'List<StateInfo>',context!)
};
getTypeName() => "GroupBrandingInfo";
TypeContext? context = _ctx;
}
class SubscriptionFrequency implements IConvertible
{
int? ID;
String? Description;
String? FriendlyDescription;
double? TotalAmount;
double? InstallmentAmount;
int? NumInstallments;
SubscriptionFrequency({this.ID,this.Description,this.FriendlyDescription,this.TotalAmount,this.InstallmentAmount,this.NumInstallments});
SubscriptionFrequency.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
Description = json['Description'];
FriendlyDescription = json['FriendlyDescription'];
TotalAmount = JsonConverters.toDouble(json['TotalAmount']);
InstallmentAmount = JsonConverters.toDouble(json['InstallmentAmount']);
NumInstallments = json['NumInstallments'];
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID,
'Description': Description,
'FriendlyDescription': FriendlyDescription,
'TotalAmount': TotalAmount,
'InstallmentAmount': InstallmentAmount,
'NumInstallments': NumInstallments
};
getTypeName() => "SubscriptionFrequency";
TypeContext? context = _ctx;
}
class GroupSubscriptionInvoiceItem implements IConvertible
{
int? ID;
String? Description;
double? Amount;
List<SubscriptionFrequency>? Frequencies;
GroupSubscriptionInvoiceItem({this.ID,this.Description,this.Amount,this.Frequencies});
GroupSubscriptionInvoiceItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
Description = json['Description'];
Amount = JsonConverters.toDouble(json['Amount']);
Frequencies = JsonConverters.fromJson(json['Frequencies'],'List<SubscriptionFrequency>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID,
'Description': Description,
'Amount': Amount,
'Frequencies': JsonConverters.toJson(Frequencies,'List<SubscriptionFrequency>',context!)
};
getTypeName() => "GroupSubscriptionInvoiceItem";
TypeContext? context = _ctx;
}
class GroupSubscriptionInvoice implements IConvertible
{
int? ID;
int? LineageID;
int? TypeID;
String? Description;
List<GroupSubscriptionInvoiceItem>? InvoiceItems;
List<SubscriptionFrequency>? FrequencyTotals;
String? ClientSubscriptionTypeID;
GroupSubscriptionInvoice({this.ID,this.LineageID,this.TypeID,this.Description,this.InvoiceItems,this.FrequencyTotals,this.ClientSubscriptionTypeID});
GroupSubscriptionInvoice.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
LineageID = json['LineageID'];
TypeID = json['TypeID'];
Description = json['Description'];
InvoiceItems = JsonConverters.fromJson(json['InvoiceItems'],'List<GroupSubscriptionInvoiceItem>',context!);
FrequencyTotals = JsonConverters.fromJson(json['FrequencyTotals'],'List<SubscriptionFrequency>',context!);
ClientSubscriptionTypeID = json['ClientSubscriptionTypeID'];
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID,
'LineageID': LineageID,
'TypeID': TypeID,
'Description': Description,
'InvoiceItems': JsonConverters.toJson(InvoiceItems,'List<GroupSubscriptionInvoiceItem>',context!),
'FrequencyTotals': JsonConverters.toJson(FrequencyTotals,'List<SubscriptionFrequency>',context!),
'ClientSubscriptionTypeID': ClientSubscriptionTypeID
};
getTypeName() => "GroupSubscriptionInvoice";
TypeContext? context = _ctx;
}
class GroupSubscriptionInvoiceType implements IConvertible
{
int? ID;
String? Name;
List<GroupSubscriptionInvoice>? SubscriptionInvoices;
int? SubscriptionInvTemplateTypeID;
String? TemplateTypeName;
GroupSubscriptionInvoiceType({this.ID,this.Name,this.SubscriptionInvoices,this.SubscriptionInvTemplateTypeID,this.TemplateTypeName});
GroupSubscriptionInvoiceType.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
Name = json['Name'];
SubscriptionInvoices = JsonConverters.fromJson(json['SubscriptionInvoices'],'List<GroupSubscriptionInvoice>',context!);
SubscriptionInvTemplateTypeID = json['SubscriptionInvTemplateTypeID'];
TemplateTypeName = json['TemplateTypeName'];
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID,
'Name': Name,
'SubscriptionInvoices': JsonConverters.toJson(SubscriptionInvoices,'List<GroupSubscriptionInvoice>',context!),
'SubscriptionInvTemplateTypeID': SubscriptionInvTemplateTypeID,
'TemplateTypeName': TemplateTypeName
};
getTypeName() => "GroupSubscriptionInvoiceType";
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 SubscriberForm implements IConvertible
{
int? ID;
int? FormTempateID;
int? SubscriptionInvoiceID;
int? SignupTypeID;
List<SubscriberFormField>? Fields;
SubscriberForm({this.ID,this.FormTempateID,this.SubscriptionInvoiceID,this.SignupTypeID,this.Fields});
SubscriberForm.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
FormTempateID = json['FormTempateID'];
SubscriptionInvoiceID = json['SubscriptionInvoiceID'];
SignupTypeID = json['SignupTypeID'];
Fields = JsonConverters.fromJson(json['Fields'],'List<SubscriberFormField>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID,
'FormTempateID': FormTempateID,
'SubscriptionInvoiceID': SubscriptionInvoiceID,
'SignupTypeID': SignupTypeID,
'Fields': JsonConverters.toJson(Fields,'List<SubscriberFormField>',context!)
};
getTypeName() => "SubscriberForm";
TypeContext? context = _ctx;
}
class CampaignThemeImage implements IConvertible
{
String? BackgroundImage;
String? Icon;
CampaignThemeImage({this.BackgroundImage,this.Icon});
CampaignThemeImage.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BackgroundImage = json['BackgroundImage'];
Icon = json['Icon'];
return this;
}
Map<String, dynamic> toJson() => {
'BackgroundImage': BackgroundImage,
'Icon': Icon
};
getTypeName() => "CampaignThemeImage";
TypeContext? context = _ctx;
}
class CampaignTheme implements IConvertible
{
int? Id;
String? Name;
String? MainColor;
String? SecondaryColor;
CampaignThemeImage? iPhone;
CampaignThemeImage? iPhoneRetina;
CampaignTheme({this.Id,this.Name,this.MainColor,this.SecondaryColor,this.iPhone,this.iPhoneRetina});
CampaignTheme.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Name = json['Name'];
MainColor = json['MainColor'];
SecondaryColor = json['SecondaryColor'];
iPhone = JsonConverters.fromJson(json['iPhone'],'CampaignThemeImage',context!);
iPhoneRetina = JsonConverters.fromJson(json['iPhoneRetina'],'CampaignThemeImage',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Name': Name,
'MainColor': MainColor,
'SecondaryColor': SecondaryColor,
'iPhone': JsonConverters.toJson(iPhone,'CampaignThemeImage',context!),
'iPhoneRetina': JsonConverters.toJson(iPhoneRetina,'CampaignThemeImage',context!)
};
getTypeName() => "CampaignTheme";
TypeContext? context = _ctx;
}
class CampaignGoal implements IConvertible
{
double? Target;
double? Actual;
CampaignGoal({this.Target,this.Actual});
CampaignGoal.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Target = JsonConverters.toDouble(json['Target']);
Actual = JsonConverters.toDouble(json['Actual']);
return this;
}
Map<String, dynamic> toJson() => {
'Target': Target,
'Actual': Actual
};
getTypeName() => "CampaignGoal";
TypeContext? context = _ctx;
}
class Signup implements IConvertible
{
bool? ShowOnNewMembership;
bool? ShowOnSignupRenewal;
bool? ShowOtherAmount;
Signup({this.ShowOnNewMembership,this.ShowOnSignupRenewal,this.ShowOtherAmount});
Signup.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ShowOnNewMembership = json['ShowOnNewMembership'];
ShowOnSignupRenewal = json['ShowOnSignupRenewal'];
ShowOtherAmount = json['ShowOtherAmount'];
return this;
}
Map<String, dynamic> toJson() => {
'ShowOnNewMembership': ShowOnNewMembership,
'ShowOnSignupRenewal': ShowOnSignupRenewal,
'ShowOtherAmount': ShowOtherAmount
};
getTypeName() => "Signup";
TypeContext? context = _ctx;
}
class CampaignItem implements IConvertible
{
int? Id;
String? Name;
String? SubTitle;
String? Description;
bool? HasGoal;
String? DetailUri;
CampaignTheme? Theme;
CampaignGoal? Goal;
List<CampaignLevel>? Levels;
String? LogoUrl;
String? HighResolutionLogoUrl;
Signup? Signup;
CampaignItem({this.Id,this.Name,this.SubTitle,this.Description,this.HasGoal,this.DetailUri,this.Theme,this.Goal,this.Levels,this.LogoUrl,this.HighResolutionLogoUrl,this.Signup});
CampaignItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Name = json['Name'];
SubTitle = json['SubTitle'];
Description = json['Description'];
HasGoal = json['HasGoal'];
DetailUri = json['DetailUri'];
Theme = JsonConverters.fromJson(json['Theme'],'CampaignTheme',context!);
Goal = JsonConverters.fromJson(json['Goal'],'CampaignGoal',context!);
Levels = JsonConverters.fromJson(json['Levels'],'List<CampaignLevel>',context!);
LogoUrl = json['LogoUrl'];
HighResolutionLogoUrl = json['HighResolutionLogoUrl'];
Signup = JsonConverters.fromJson(json['Signup'],'Signup',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Name': Name,
'SubTitle': SubTitle,
'Description': Description,
'HasGoal': HasGoal,
'DetailUri': DetailUri,
'Theme': JsonConverters.toJson(Theme,'CampaignTheme',context!),
'Goal': JsonConverters.toJson(Goal,'CampaignGoal',context!),
'Levels': JsonConverters.toJson(Levels,'List<CampaignLevel>',context!),
'LogoUrl': LogoUrl,
'HighResolutionLogoUrl': HighResolutionLogoUrl,
'Signup': JsonConverters.toJson(Signup,'Signup',context!)
};
getTypeName() => "CampaignItem";
TypeContext? context = _ctx;
}
class GroupSubscriptionInfo implements IConvertible
{
GroupBrandingInfo? BrandingInfo;
List<GroupSubscriptionInvoiceType>? Subscriptions;
SubscriberForm? FormInfo;
List<CampaignItem>? Campaigns;
GroupSubscriptionInfo({this.BrandingInfo,this.Subscriptions,this.FormInfo,this.Campaigns});
GroupSubscriptionInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BrandingInfo = JsonConverters.fromJson(json['BrandingInfo'],'GroupBrandingInfo',context!);
Subscriptions = JsonConverters.fromJson(json['Subscriptions'],'List<GroupSubscriptionInvoiceType>',context!);
FormInfo = JsonConverters.fromJson(json['FormInfo'],'SubscriberForm',context!);
Campaigns = JsonConverters.fromJson(json['Campaigns'],'List<CampaignItem>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'BrandingInfo': JsonConverters.toJson(BrandingInfo,'GroupBrandingInfo',context!),
'Subscriptions': JsonConverters.toJson(Subscriptions,'List<GroupSubscriptionInvoiceType>',context!),
'FormInfo': JsonConverters.toJson(FormInfo,'SubscriberForm',context!),
'Campaigns': JsonConverters.toJson(Campaigns,'List<CampaignItem>',context!)
};
getTypeName() => "GroupSubscriptionInfo";
TypeContext? context = _ctx;
}
class Link implements IConvertible
{
String? Rel;
String? Url;
Link({this.Rel,this.Url});
Link.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Rel = json['Rel'];
Url = json['Url'];
return this;
}
Map<String, dynamic> toJson() => {
'Rel': Rel,
'Url': Url
};
getTypeName() => "Link";
TypeContext? context = _ctx;
}
class GroupSubscriptionInfoGetRs implements IApiResponse, IConvertible
{
GroupSubscriptionInfo? SignupInfo;
List<Link>? Links;
GroupSubscriptionInfoGetRs({this.SignupInfo,this.Links});
GroupSubscriptionInfoGetRs.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
SignupInfo = JsonConverters.fromJson(json['SignupInfo'],'GroupSubscriptionInfo',context!);
Links = JsonConverters.fromJson(json['Links'],'List<Link>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'SignupInfo': JsonConverters.toJson(SignupInfo,'GroupSubscriptionInfo',context!),
'Links': JsonConverters.toJson(Links,'List<Link>',context!)
};
getTypeName() => "GroupSubscriptionInfoGetRs";
TypeContext? context = _ctx;
}
class CampaignLevel implements IConvertible
{
int? Sequence;
double? Amount;
String? Description;
CampaignLevel({this.Sequence,this.Amount,this.Description});
CampaignLevel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Sequence = json['Sequence'];
Amount = JsonConverters.toDouble(json['Amount']);
Description = json['Description'];
return this;
}
Map<String, dynamic> toJson() => {
'Sequence': Sequence,
'Amount': Amount,
'Description': Description
};
getTypeName() => "CampaignLevel";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
'MemberSubscriptionPaymentRq': TypeInfo(TypeOf.Class, create:() => MemberSubscriptionPaymentRq()),
'ApiParameter': TypeInfo(TypeOf.Class, create:() => ApiParameter()),
'CountryInfo': TypeInfo(TypeOf.Class, create:() => CountryInfo()),
'StateInfo': TypeInfo(TypeOf.Class, create:() => StateInfo()),
'GroupBrandingInfo': TypeInfo(TypeOf.Class, create:() => GroupBrandingInfo()),
'List<ApiParameter>': TypeInfo(TypeOf.Class, create:() => <ApiParameter>[]),
'List<CountryInfo>': TypeInfo(TypeOf.Class, create:() => <CountryInfo>[]),
'List<StateInfo>': TypeInfo(TypeOf.Class, create:() => <StateInfo>[]),
'SubscriptionFrequency': TypeInfo(TypeOf.Class, create:() => SubscriptionFrequency()),
'GroupSubscriptionInvoiceItem': TypeInfo(TypeOf.Class, create:() => GroupSubscriptionInvoiceItem()),
'List<SubscriptionFrequency>': TypeInfo(TypeOf.Class, create:() => <SubscriptionFrequency>[]),
'GroupSubscriptionInvoice': TypeInfo(TypeOf.Class, create:() => GroupSubscriptionInvoice()),
'List<GroupSubscriptionInvoiceItem>': TypeInfo(TypeOf.Class, create:() => <GroupSubscriptionInvoiceItem>[]),
'GroupSubscriptionInvoiceType': TypeInfo(TypeOf.Class, create:() => GroupSubscriptionInvoiceType()),
'List<GroupSubscriptionInvoice>': TypeInfo(TypeOf.Class, create:() => <GroupSubscriptionInvoice>[]),
'SubscriberFormField': TypeInfo(TypeOf.Class, create:() => SubscriberFormField()),
'SubscriberForm': TypeInfo(TypeOf.Class, create:() => SubscriberForm()),
'List<SubscriberFormField>': TypeInfo(TypeOf.Class, create:() => <SubscriberFormField>[]),
'CampaignThemeImage': TypeInfo(TypeOf.Class, create:() => CampaignThemeImage()),
'CampaignTheme': TypeInfo(TypeOf.Class, create:() => CampaignTheme()),
'CampaignGoal': TypeInfo(TypeOf.Class, create:() => CampaignGoal()),
'Signup': TypeInfo(TypeOf.Class, create:() => Signup()),
'CampaignItem': TypeInfo(TypeOf.Class, create:() => CampaignItem()),
'List<CampaignLevel>': TypeInfo(TypeOf.Class, create:() => <CampaignLevel>[]),
'CampaignLevel': TypeInfo(TypeOf.Class, create:() => CampaignLevel()),
'GroupSubscriptionInfo': TypeInfo(TypeOf.Class, create:() => GroupSubscriptionInfo()),
'List<GroupSubscriptionInvoiceType>': TypeInfo(TypeOf.Class, create:() => <GroupSubscriptionInvoiceType>[]),
'List<CampaignItem>': TypeInfo(TypeOf.Class, create:() => <CampaignItem>[]),
'Link': TypeInfo(TypeOf.Class, create:() => Link()),
'GroupSubscriptionInfoGetRs': TypeInfo(TypeOf.Class, create:() => GroupSubscriptionInfoGetRs()),
'List<Link>': TypeInfo(TypeOf.Class, create:() => <Link>[]),
});
Dart MemberSubscriptionPaymentRq DTOs
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.
GET /signup/api/memberSubscriptionInvoice/{memberSubscriptionInvoiceID} HTTP/1.1
Host: devapi.billhighway.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"SignupInfo":{"BrandingInfo":{"Items":[{"Name":"String","Value":"String"}]},"FormInfo":{"ID":0,"FormTempateID":0,"SubscriptionInvoiceID":0,"SignupTypeID":0,"Fields":[{"FormTemplateFieldID":0,"Name":"String","Value":"String"}]}},"Links":[{"Rel":"String","Url":"String"}]}