Evo Voice

<back to all web services

AppRegister10Dlc

Submits a registration for the current customer's 10DLC

Requires Authentication
The following routes are available for this service:
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()),
});

Dart AppRegister10Dlc DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	accountId: String,
	customerId: String,
	usOrCanada: False,
	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: String,
	acceptTerms: False,
	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: String,
	campaign: False,
	campaignDescription: String,
	sampleMessage1: String,
	sampleMessage2: String,
	sampleMessage3: String,
	sampleMessage4: String,
	sampleMessage5: String,
	consentMessage: String,
	optKeywords: String,
	optMessage: String,
	campaignUseCases: String,
	embeddedLinks: False,
	includePhonenumbers: False,
	loanArrangement: False,
	vertical: String,
	jobPosition: String,
	ctia: False,
	businessRegions: 
	[
		String
	],
	brandMobilePhoneNumber: String
}