POST | /portal/10dlc |
---|
import 'package:servicestack/servicestack.dart';
/**
* Submits a registration for the current customer's 10DLC
*/
// @Api(Description="Submits a registration for the current customer's 10DLC")
class AppRegister10Dlc implements IConvertible
{
String? accountId;
String? customerId;
bool? usOrCanada;
String? taxId;
String? taxIdValue;
String? businessName;
String? firstName;
String? lastName;
String? email;
String? country;
String? phoneNumber;
String? addressStreet1;
String? addressStreet2;
String? addressCity;
String? addressState;
String? addressPostalCode;
String? description;
bool? acceptTerms;
String? representative;
String? websiteUrl;
String? businessIndustry;
String? businessRegistrationNumber;
String? businessRegistrationIDType;
String? businessType;
String? businesTitle;
String? brandName;
String? brandType;
String? companyType;
String? politicalOrganization;
String? mobilePhoneNumber;
String? stockExchange;
String? stockTicker;
String? campaignVerifyToken;
bool? campaign;
String? campaignDescription;
String? sampleMessage1;
String? sampleMessage2;
String? sampleMessage3;
String? sampleMessage4;
String? sampleMessage5;
String? consentMessage;
String? optKeywords;
String? optMessage;
String? campaignUseCases;
bool? embeddedLinks;
bool? includePhonenumbers;
bool? loanArrangement;
String? vertical;
String? jobPosition;
bool? ctia;
List<String>? businessRegions;
String? brandMobilePhoneNumber;
AppRegister10Dlc({this.accountId,this.customerId,this.usOrCanada,this.taxId,this.taxIdValue,this.businessName,this.firstName,this.lastName,this.email,this.country,this.phoneNumber,this.addressStreet1,this.addressStreet2,this.addressCity,this.addressState,this.addressPostalCode,this.description,this.acceptTerms,this.representative,this.websiteUrl,this.businessIndustry,this.businessRegistrationNumber,this.businessRegistrationIDType,this.businessType,this.businesTitle,this.brandName,this.brandType,this.companyType,this.politicalOrganization,this.mobilePhoneNumber,this.stockExchange,this.stockTicker,this.campaignVerifyToken,this.campaign,this.campaignDescription,this.sampleMessage1,this.sampleMessage2,this.sampleMessage3,this.sampleMessage4,this.sampleMessage5,this.consentMessage,this.optKeywords,this.optMessage,this.campaignUseCases,this.embeddedLinks,this.includePhonenumbers,this.loanArrangement,this.vertical,this.jobPosition,this.ctia,this.businessRegions,this.brandMobilePhoneNumber});
AppRegister10Dlc.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
accountId = json['accountId'];
customerId = json['customerId'];
usOrCanada = json['usOrCanada'];
taxId = json['taxId'];
taxIdValue = json['taxIdValue'];
businessName = json['businessName'];
firstName = json['firstName'];
lastName = json['lastName'];
email = json['email'];
country = json['country'];
phoneNumber = json['phoneNumber'];
addressStreet1 = json['addressStreet1'];
addressStreet2 = json['addressStreet2'];
addressCity = json['addressCity'];
addressState = json['addressState'];
addressPostalCode = json['addressPostalCode'];
description = json['description'];
acceptTerms = json['acceptTerms'];
representative = json['representative'];
websiteUrl = json['websiteUrl'];
businessIndustry = json['businessIndustry'];
businessRegistrationNumber = json['businessRegistrationNumber'];
businessRegistrationIDType = json['businessRegistrationIDType'];
businessType = json['businessType'];
businesTitle = json['businesTitle'];
brandName = json['brandName'];
brandType = json['brandType'];
companyType = json['companyType'];
politicalOrganization = json['politicalOrganization'];
mobilePhoneNumber = json['mobilePhoneNumber'];
stockExchange = json['stockExchange'];
stockTicker = json['stockTicker'];
campaignVerifyToken = json['campaignVerifyToken'];
campaign = json['campaign'];
campaignDescription = json['campaignDescription'];
sampleMessage1 = json['sampleMessage1'];
sampleMessage2 = json['sampleMessage2'];
sampleMessage3 = json['sampleMessage3'];
sampleMessage4 = json['sampleMessage4'];
sampleMessage5 = json['sampleMessage5'];
consentMessage = json['consentMessage'];
optKeywords = json['optKeywords'];
optMessage = json['optMessage'];
campaignUseCases = json['campaignUseCases'];
embeddedLinks = json['embeddedLinks'];
includePhonenumbers = json['includePhonenumbers'];
loanArrangement = json['loanArrangement'];
vertical = json['vertical'];
jobPosition = json['jobPosition'];
ctia = json['ctia'];
businessRegions = JsonConverters.fromJson(json['businessRegions'],'List<String>',context!);
brandMobilePhoneNumber = json['brandMobilePhoneNumber'];
return this;
}
Map<String, dynamic> toJson() => {
'accountId': accountId,
'customerId': customerId,
'usOrCanada': usOrCanada,
'taxId': taxId,
'taxIdValue': taxIdValue,
'businessName': businessName,
'firstName': firstName,
'lastName': lastName,
'email': email,
'country': country,
'phoneNumber': phoneNumber,
'addressStreet1': addressStreet1,
'addressStreet2': addressStreet2,
'addressCity': addressCity,
'addressState': addressState,
'addressPostalCode': addressPostalCode,
'description': description,
'acceptTerms': acceptTerms,
'representative': representative,
'websiteUrl': websiteUrl,
'businessIndustry': businessIndustry,
'businessRegistrationNumber': businessRegistrationNumber,
'businessRegistrationIDType': businessRegistrationIDType,
'businessType': businessType,
'businesTitle': businesTitle,
'brandName': brandName,
'brandType': brandType,
'companyType': companyType,
'politicalOrganization': politicalOrganization,
'mobilePhoneNumber': mobilePhoneNumber,
'stockExchange': stockExchange,
'stockTicker': stockTicker,
'campaignVerifyToken': campaignVerifyToken,
'campaign': campaign,
'campaignDescription': campaignDescription,
'sampleMessage1': sampleMessage1,
'sampleMessage2': sampleMessage2,
'sampleMessage3': sampleMessage3,
'sampleMessage4': sampleMessage4,
'sampleMessage5': sampleMessage5,
'consentMessage': consentMessage,
'optKeywords': optKeywords,
'optMessage': optMessage,
'campaignUseCases': campaignUseCases,
'embeddedLinks': embeddedLinks,
'includePhonenumbers': includePhonenumbers,
'loanArrangement': loanArrangement,
'vertical': vertical,
'jobPosition': jobPosition,
'ctia': ctia,
'businessRegions': JsonConverters.toJson(businessRegions,'List<String>',context!),
'brandMobilePhoneNumber': brandMobilePhoneNumber
};
getTypeName() => "AppRegister10Dlc";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'evovoice.io', types: <String, TypeInfo> {
'AppRegister10Dlc': TypeInfo(TypeOf.Class, create:() => AppRegister10Dlc()),
});
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 /portal/10dlc HTTP/1.1
Host: evovoice.io
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AppRegister10Dlc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Portal">
<AcceptTerms>false</AcceptTerms>
<AccountId>String</AccountId>
<AddressCity>String</AddressCity>
<AddressPostalCode>String</AddressPostalCode>
<AddressState>String</AddressState>
<AddressStreet1>String</AddressStreet1>
<AddressStreet2>String</AddressStreet2>
<BrandMobilePhoneNumber>String</BrandMobilePhoneNumber>
<BrandName>String</BrandName>
<BrandType>String</BrandType>
<BusinesTitle>String</BusinesTitle>
<BusinessIndustry>String</BusinessIndustry>
<BusinessName>String</BusinessName>
<BusinessRegions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</BusinessRegions>
<BusinessRegistrationIDType>String</BusinessRegistrationIDType>
<BusinessRegistrationNumber>String</BusinessRegistrationNumber>
<BusinessType>String</BusinessType>
<CTIA>false</CTIA>
<Campaign>false</Campaign>
<CampaignDescription>String</CampaignDescription>
<CampaignUseCases>String</CampaignUseCases>
<CampaignVerifyToken>String</CampaignVerifyToken>
<CompanyType>String</CompanyType>
<ConsentMessage>String</ConsentMessage>
<Country>String</Country>
<CustomerId>String</CustomerId>
<Description>String</Description>
<Email>String</Email>
<EmbeddedLinks>false</EmbeddedLinks>
<FirstName>String</FirstName>
<IncludePhonenumbers>false</IncludePhonenumbers>
<JobPosition>String</JobPosition>
<LastName>String</LastName>
<LoanArrangement>false</LoanArrangement>
<MobilePhoneNumber>String</MobilePhoneNumber>
<OptKeywords>String</OptKeywords>
<OptMessage>String</OptMessage>
<PhoneNumber>String</PhoneNumber>
<PoliticalOrganization>String</PoliticalOrganization>
<Representative>String</Representative>
<SampleMessage1>String</SampleMessage1>
<SampleMessage2>String</SampleMessage2>
<SampleMessage3>String</SampleMessage3>
<SampleMessage4>String</SampleMessage4>
<SampleMessage5>String</SampleMessage5>
<StockExchange>String</StockExchange>
<StockTicker>String</StockTicker>
<TaxId>String</TaxId>
<TaxIdValue>String</TaxIdValue>
<USOrCanada>false</USOrCanada>
<Vertical>String</Vertical>
<WebsiteUrl>String</WebsiteUrl>
</AppRegister10Dlc>