NAV

<back to all web services

CallCenterProfileGet

The following routes are available for this service:
GET/call-center/profile/{BeeNumber}
GET/call-center/profiles/{BeeNumber}
import 'package:servicestack/servicestack.dart';

class CallCenterAddress implements IConvertible
{
    String? addressLine1;
    String? addressLine2;
    String? addressLine3;
    String? city;
    String? stateCode;
    String? postalCode;
    String? countryCode;

    CallCenterAddress({this.addressLine1,this.addressLine2,this.addressLine3,this.city,this.stateCode,this.postalCode,this.countryCode});
    CallCenterAddress.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        addressLine1 = json['addressLine1'];
        addressLine2 = json['addressLine2'];
        addressLine3 = json['addressLine3'];
        city = json['city'];
        stateCode = json['stateCode'];
        postalCode = json['postalCode'];
        countryCode = json['countryCode'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'addressLine1': addressLine1,
        'addressLine2': addressLine2,
        'addressLine3': addressLine3,
        'city': city,
        'stateCode': stateCode,
        'postalCode': postalCode,
        'countryCode': countryCode
    };

    getTypeName() => "CallCenterAddress";
    TypeContext? context = _ctx;
}

class CallCenterProfileGetResponse implements IConvertible
{
    ResponseStatus? responseStatus;
    String? fullName;
    String? firstName;
    String? middleName;
    String? lastName;
    double? beeNumber;
    String? accountStatus;
    String? collectionTag;
    String? reinstatedTag;
    String? reinstatedDate;
    String? primaryPhone;
    String? secondaryPhone;
    double? loa;
    String? accountType;
    double? amountDue;
    DateTime? birthday;
    String? language;
    CallCenterAddress? mailingAddress;
    CallCenterAddress? shippingAddress;
    DateTime? apptDate;
    String? appointmentCampYear;
    double? uplineAccount;
    String? uplineName;
    double? awardSalesCurrentCamp;
    double? awardSalesPriorCamp;
    double? awardSalesCurrentCycle;
    double? awardSalesPriorCycle;
    double? awardSalesCurrentBonus;
    double? awardSalesPriorBonus;
    double? awardSalesPreviousCamp;
    double? bonusSalesPreviousCamp;
    DateTime? lastPaymentDate;
    double? lastPaymentAmount;
    double? totalPastDue;
    double? pastDue;
    double? pastDue2;
    double? pastDue3;
    double? currentBalance;
    String? awardSalesTier;
    String? noCodeBilledNotShipped;
    String? creditCardPaymentAllowed;
    String? termsVersion;
    DateTime? termsAcknowledgeDate;
    String? coApplicantName;
    String? coApplicantSsn;
    DateTime? coApplicantBirthday;
    String? coApplicantRelation;
    String? updatedForCampaign;
    double? creditLimit;
    bool? directDepositPaymentsTag;
    String? leadershipTag;
    String? leadershipLevel;
    String? pcTag;
    String? pcPremierTag;
    String? deceasedTag;
    String? emailAddress;
    String? nickname;
    String? webPageUrl;
    DateTime? legalDateOfEnrollment;
    String? deliveryMethod;
    String? socialSecurityNumber;
    String? isNewLeadershipLevel;
    String? isNewRecognitionLevel;
    String? disabilityTag;
    bool? retireeTag;
    String? labcTag;
    String? removalReason;
    double? repAccountNumber;
    String? repAccountName;
    String? noCode21;
    String? taxExempt;
    double? pendingOrdersBalance;

    CallCenterProfileGetResponse({this.responseStatus,this.fullName,this.firstName,this.middleName,this.lastName,this.beeNumber,this.accountStatus,this.collectionTag,this.reinstatedTag,this.reinstatedDate,this.primaryPhone,this.secondaryPhone,this.loa,this.accountType,this.amountDue,this.birthday,this.language,this.mailingAddress,this.shippingAddress,this.apptDate,this.appointmentCampYear,this.uplineAccount,this.uplineName,this.awardSalesCurrentCamp,this.awardSalesPriorCamp,this.awardSalesCurrentCycle,this.awardSalesPriorCycle,this.awardSalesCurrentBonus,this.awardSalesPriorBonus,this.awardSalesPreviousCamp,this.bonusSalesPreviousCamp,this.lastPaymentDate,this.lastPaymentAmount,this.totalPastDue,this.pastDue,this.pastDue2,this.pastDue3,this.currentBalance,this.awardSalesTier,this.noCodeBilledNotShipped,this.creditCardPaymentAllowed,this.termsVersion,this.termsAcknowledgeDate,this.coApplicantName,this.coApplicantSsn,this.coApplicantBirthday,this.coApplicantRelation,this.updatedForCampaign,this.creditLimit,this.directDepositPaymentsTag,this.leadershipTag,this.leadershipLevel,this.pcTag,this.pcPremierTag,this.deceasedTag,this.emailAddress,this.nickname,this.webPageUrl,this.legalDateOfEnrollment,this.deliveryMethod,this.socialSecurityNumber,this.isNewLeadershipLevel,this.isNewRecognitionLevel,this.disabilityTag,this.retireeTag,this.labcTag,this.removalReason,this.repAccountNumber,this.repAccountName,this.noCode21,this.taxExempt,this.pendingOrdersBalance});
    CallCenterProfileGetResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        fullName = json['fullName'];
        firstName = json['firstName'];
        middleName = json['middleName'];
        lastName = json['lastName'];
        beeNumber = JsonConverters.toDouble(json['beeNumber']);
        accountStatus = json['accountStatus'];
        collectionTag = json['collectionTag'];
        reinstatedTag = json['reinstatedTag'];
        reinstatedDate = json['reinstatedDate'];
        primaryPhone = json['primaryPhone'];
        secondaryPhone = json['secondaryPhone'];
        loa = JsonConverters.toDouble(json['loa']);
        accountType = json['accountType'];
        amountDue = JsonConverters.toDouble(json['amountDue']);
        birthday = JsonConverters.fromJson(json['birthday'],'DateTime',context!);
        language = json['language'];
        mailingAddress = JsonConverters.fromJson(json['mailingAddress'],'CallCenterAddress',context!);
        shippingAddress = JsonConverters.fromJson(json['shippingAddress'],'CallCenterAddress',context!);
        apptDate = JsonConverters.fromJson(json['apptDate'],'DateTime',context!);
        appointmentCampYear = json['appointmentCampYear'];
        uplineAccount = JsonConverters.toDouble(json['uplineAccount']);
        uplineName = json['uplineName'];
        awardSalesCurrentCamp = JsonConverters.toDouble(json['awardSalesCurrentCamp']);
        awardSalesPriorCamp = JsonConverters.toDouble(json['awardSalesPriorCamp']);
        awardSalesCurrentCycle = JsonConverters.toDouble(json['awardSalesCurrentCycle']);
        awardSalesPriorCycle = JsonConverters.toDouble(json['awardSalesPriorCycle']);
        awardSalesCurrentBonus = JsonConverters.toDouble(json['awardSalesCurrentBonus']);
        awardSalesPriorBonus = JsonConverters.toDouble(json['awardSalesPriorBonus']);
        awardSalesPreviousCamp = JsonConverters.toDouble(json['awardSalesPreviousCamp']);
        bonusSalesPreviousCamp = JsonConverters.toDouble(json['bonusSalesPreviousCamp']);
        lastPaymentDate = JsonConverters.fromJson(json['lastPaymentDate'],'DateTime',context!);
        lastPaymentAmount = JsonConverters.toDouble(json['lastPaymentAmount']);
        totalPastDue = JsonConverters.toDouble(json['totalPastDue']);
        pastDue = JsonConverters.toDouble(json['pastDue']);
        pastDue2 = JsonConverters.toDouble(json['pastDue2']);
        pastDue3 = JsonConverters.toDouble(json['pastDue3']);
        currentBalance = JsonConverters.toDouble(json['currentBalance']);
        awardSalesTier = json['awardSalesTier'];
        noCodeBilledNotShipped = json['noCodeBilledNotShipped'];
        creditCardPaymentAllowed = json['creditCardPaymentAllowed'];
        termsVersion = json['termsVersion'];
        termsAcknowledgeDate = JsonConverters.fromJson(json['termsAcknowledgeDate'],'DateTime',context!);
        coApplicantName = json['coApplicantName'];
        coApplicantSsn = json['coApplicantSsn'];
        coApplicantBirthday = JsonConverters.fromJson(json['coApplicantBirthday'],'DateTime',context!);
        coApplicantRelation = json['coApplicantRelation'];
        updatedForCampaign = json['updatedForCampaign'];
        creditLimit = JsonConverters.toDouble(json['creditLimit']);
        directDepositPaymentsTag = json['directDepositPaymentsTag'];
        leadershipTag = json['leadershipTag'];
        leadershipLevel = json['leadershipLevel'];
        pcTag = json['pcTag'];
        pcPremierTag = json['pcPremierTag'];
        deceasedTag = json['deceasedTag'];
        emailAddress = json['emailAddress'];
        nickname = json['nickname'];
        webPageUrl = json['webPageUrl'];
        legalDateOfEnrollment = JsonConverters.fromJson(json['legalDateOfEnrollment'],'DateTime',context!);
        deliveryMethod = json['deliveryMethod'];
        socialSecurityNumber = json['socialSecurityNumber'];
        isNewLeadershipLevel = json['isNewLeadershipLevel'];
        isNewRecognitionLevel = json['isNewRecognitionLevel'];
        disabilityTag = json['disabilityTag'];
        retireeTag = json['retireeTag'];
        labcTag = json['labcTag'];
        removalReason = json['removalReason'];
        repAccountNumber = JsonConverters.toDouble(json['repAccountNumber']);
        repAccountName = json['repAccountName'];
        noCode21 = json['noCode21'];
        taxExempt = json['taxExempt'];
        pendingOrdersBalance = JsonConverters.toDouble(json['pendingOrdersBalance']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
        'fullName': fullName,
        'firstName': firstName,
        'middleName': middleName,
        'lastName': lastName,
        'beeNumber': beeNumber,
        'accountStatus': accountStatus,
        'collectionTag': collectionTag,
        'reinstatedTag': reinstatedTag,
        'reinstatedDate': reinstatedDate,
        'primaryPhone': primaryPhone,
        'secondaryPhone': secondaryPhone,
        'loa': loa,
        'accountType': accountType,
        'amountDue': amountDue,
        'birthday': JsonConverters.toJson(birthday,'DateTime',context!),
        'language': language,
        'mailingAddress': JsonConverters.toJson(mailingAddress,'CallCenterAddress',context!),
        'shippingAddress': JsonConverters.toJson(shippingAddress,'CallCenterAddress',context!),
        'apptDate': JsonConverters.toJson(apptDate,'DateTime',context!),
        'appointmentCampYear': appointmentCampYear,
        'uplineAccount': uplineAccount,
        'uplineName': uplineName,
        'awardSalesCurrentCamp': awardSalesCurrentCamp,
        'awardSalesPriorCamp': awardSalesPriorCamp,
        'awardSalesCurrentCycle': awardSalesCurrentCycle,
        'awardSalesPriorCycle': awardSalesPriorCycle,
        'awardSalesCurrentBonus': awardSalesCurrentBonus,
        'awardSalesPriorBonus': awardSalesPriorBonus,
        'awardSalesPreviousCamp': awardSalesPreviousCamp,
        'bonusSalesPreviousCamp': bonusSalesPreviousCamp,
        'lastPaymentDate': JsonConverters.toJson(lastPaymentDate,'DateTime',context!),
        'lastPaymentAmount': lastPaymentAmount,
        'totalPastDue': totalPastDue,
        'pastDue': pastDue,
        'pastDue2': pastDue2,
        'pastDue3': pastDue3,
        'currentBalance': currentBalance,
        'awardSalesTier': awardSalesTier,
        'noCodeBilledNotShipped': noCodeBilledNotShipped,
        'creditCardPaymentAllowed': creditCardPaymentAllowed,
        'termsVersion': termsVersion,
        'termsAcknowledgeDate': JsonConverters.toJson(termsAcknowledgeDate,'DateTime',context!),
        'coApplicantName': coApplicantName,
        'coApplicantSsn': coApplicantSsn,
        'coApplicantBirthday': JsonConverters.toJson(coApplicantBirthday,'DateTime',context!),
        'coApplicantRelation': coApplicantRelation,
        'updatedForCampaign': updatedForCampaign,
        'creditLimit': creditLimit,
        'directDepositPaymentsTag': directDepositPaymentsTag,
        'leadershipTag': leadershipTag,
        'leadershipLevel': leadershipLevel,
        'pcTag': pcTag,
        'pcPremierTag': pcPremierTag,
        'deceasedTag': deceasedTag,
        'emailAddress': emailAddress,
        'nickname': nickname,
        'webPageUrl': webPageUrl,
        'legalDateOfEnrollment': JsonConverters.toJson(legalDateOfEnrollment,'DateTime',context!),
        'deliveryMethod': deliveryMethod,
        'socialSecurityNumber': socialSecurityNumber,
        'isNewLeadershipLevel': isNewLeadershipLevel,
        'isNewRecognitionLevel': isNewRecognitionLevel,
        'disabilityTag': disabilityTag,
        'retireeTag': retireeTag,
        'labcTag': labcTag,
        'removalReason': removalReason,
        'repAccountNumber': repAccountNumber,
        'repAccountName': repAccountName,
        'noCode21': noCode21,
        'taxExempt': taxExempt,
        'pendingOrdersBalance': pendingOrdersBalance
    };

    getTypeName() => "CallCenterProfileGetResponse";
    TypeContext? context = _ctx;
}

class CallCenterProfileGet implements IGet, IConvertible
{
    double? beeNumber;

    CallCenterProfileGet({this.beeNumber});
    CallCenterProfileGet.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        beeNumber = JsonConverters.toDouble(json['beeNumber']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'beeNumber': beeNumber
    };

    getTypeName() => "CallCenterProfileGet";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'extensions.avon.ca', types: <String, TypeInfo> {
    'CallCenterAddress': TypeInfo(TypeOf.Class, create:() => CallCenterAddress()),
    'CallCenterProfileGetResponse': TypeInfo(TypeOf.Class, create:() => CallCenterProfileGetResponse()),
    'CallCenterProfileGet': TypeInfo(TypeOf.Class, create:() => CallCenterProfileGet()),
});

Dart CallCenterProfileGet 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.

GET /call-center/profile/{BeeNumber} HTTP/1.1 
Host: extensions.avon.ca 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	},
	fullName: String,
	firstName: String,
	middleName: String,
	lastName: String,
	beeNumber: 0,
	accountStatus: String,
	collectionTag: String,
	reinstatedTag: String,
	reinstatedDate: String,
	primaryPhone: String,
	secondaryPhone: String,
	loa: 0,
	accountType: String,
	amountDue: 0,
	birthday: 0001-01-01T00:00:00,
	language: String,
	mailingAddress: 
	{
		addressLine1: String,
		addressLine2: String,
		addressLine3: String,
		city: String,
		stateCode: String,
		postalCode: String,
		countryCode: String
	},
	shippingAddress: 
	{
		addressLine1: String,
		addressLine2: String,
		addressLine3: String,
		city: String,
		stateCode: String,
		postalCode: String,
		countryCode: String
	},
	apptDate: 0001-01-01T00:00:00,
	appointmentCampYear: String,
	uplineAccount: 0,
	uplineName: String,
	awardSalesCurrentCamp: 0,
	awardSalesPriorCamp: 0,
	awardSalesCurrentCycle: 0,
	awardSalesPriorCycle: 0,
	awardSalesCurrentBonus: 0,
	awardSalesPriorBonus: 0,
	awardSalesPreviousCamp: 0,
	bonusSalesPreviousCamp: 0,
	lastPaymentDate: 0001-01-01T00:00:00,
	lastPaymentAmount: 0,
	totalPastDue: 0,
	pastDue: 0,
	pastDue2: 0,
	pastDue3: 0,
	currentBalance: 0,
	awardSalesTier: String,
	noCodeBilledNotShipped: String,
	creditCardPaymentAllowed: String,
	termsVersion: String,
	termsAcknowledgeDate: 0001-01-01T00:00:00,
	coApplicantName: String,
	coApplicantSsn: String,
	coApplicantBirthday: 0001-01-01T00:00:00,
	coApplicantRelation: String,
	updatedForCampaign: String,
	creditLimit: 0,
	directDepositPaymentsTag: False,
	leadershipTag: String,
	leadershipLevel: String,
	pcTag: String,
	pcPremierTag: String,
	deceasedTag: String,
	emailAddress: String,
	nickname: String,
	webPageUrl: String,
	legalDateOfEnrollment: 0001-01-01T00:00:00,
	deliveryMethod: String,
	socialSecurityNumber: String,
	isNewLeadershipLevel: String,
	isNewRecognitionLevel: String,
	disabilityTag: String,
	retireeTag: False,
	labcTag: String,
	removalReason: String,
	repAccountNumber: 0,
	repAccountName: String,
	noCode21: String,
	taxExempt: String,
	pendingOrdersBalance: 0
}