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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CallCenterProfileGetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <AccountStatus>String</AccountStatus>
  <AccountType>String</AccountType>
  <AmountDue>0</AmountDue>
  <AppointmentCampYear>String</AppointmentCampYear>
  <ApptDate>0001-01-01T00:00:00</ApptDate>
  <AwardSalesCurrentBonus>0</AwardSalesCurrentBonus>
  <AwardSalesCurrentCamp>0</AwardSalesCurrentCamp>
  <AwardSalesCurrentCycle>0</AwardSalesCurrentCycle>
  <AwardSalesPreviousCamp>0</AwardSalesPreviousCamp>
  <AwardSalesPriorBonus>0</AwardSalesPriorBonus>
  <AwardSalesPriorCamp>0</AwardSalesPriorCamp>
  <AwardSalesPriorCycle>0</AwardSalesPriorCycle>
  <AwardSalesTier>String</AwardSalesTier>
  <BeeNumber>0</BeeNumber>
  <Birthday>0001-01-01T00:00:00</Birthday>
  <BonusSalesPreviousCamp>0</BonusSalesPreviousCamp>
  <CoApplicantBirthday>0001-01-01T00:00:00</CoApplicantBirthday>
  <CoApplicantName>String</CoApplicantName>
  <CoApplicantRelation>String</CoApplicantRelation>
  <CoApplicantSsn>String</CoApplicantSsn>
  <CollectionTag>String</CollectionTag>
  <CreditCardPaymentAllowed>String</CreditCardPaymentAllowed>
  <CreditLimit>0</CreditLimit>
  <CurrentBalance>0</CurrentBalance>
  <DeceasedTag>String</DeceasedTag>
  <DeliveryMethod>String</DeliveryMethod>
  <DirectDepositPaymentsTag>false</DirectDepositPaymentsTag>
  <DisabilityTag>String</DisabilityTag>
  <EmailAddress>String</EmailAddress>
  <FirstName>String</FirstName>
  <FullName>String</FullName>
  <IsNewLeadershipLevel>String</IsNewLeadershipLevel>
  <IsNewRecognitionLevel>String</IsNewRecognitionLevel>
  <LABCTag>String</LABCTag>
  <Language>String</Language>
  <LastName>String</LastName>
  <LastPaymentAmount>0</LastPaymentAmount>
  <LastPaymentDate>0001-01-01T00:00:00</LastPaymentDate>
  <LeadershipLevel>String</LeadershipLevel>
  <LeadershipTag>String</LeadershipTag>
  <LegalDateOfEnrollment>0001-01-01T00:00:00</LegalDateOfEnrollment>
  <Loa>0</Loa>
  <MailingAddress>
    <AddressLine1>String</AddressLine1>
    <AddressLine2>String</AddressLine2>
    <AddressLine3>String</AddressLine3>
    <City>String</City>
    <CountryCode>String</CountryCode>
    <PostalCode>String</PostalCode>
    <StateCode>String</StateCode>
  </MailingAddress>
  <MiddleName>String</MiddleName>
  <Nickname>String</Nickname>
  <NoCode21>String</NoCode21>
  <NoCodeBilledNotShipped>String</NoCodeBilledNotShipped>
  <PCPremierTag>String</PCPremierTag>
  <PCTag>String</PCTag>
  <PastDue>0</PastDue>
  <PastDue2>0</PastDue2>
  <PastDue3>0</PastDue3>
  <PendingOrdersBalance>0</PendingOrdersBalance>
  <PrimaryPhone>String</PrimaryPhone>
  <ReinstatedDate>String</ReinstatedDate>
  <ReinstatedTag>String</ReinstatedTag>
  <RemovalReason>String</RemovalReason>
  <RepAccountName>String</RepAccountName>
  <RepAccountNumber>0</RepAccountNumber>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <RetireeTag>false</RetireeTag>
  <SecondaryPhone>String</SecondaryPhone>
  <ShippingAddress>
    <AddressLine1>String</AddressLine1>
    <AddressLine2>String</AddressLine2>
    <AddressLine3>String</AddressLine3>
    <City>String</City>
    <CountryCode>String</CountryCode>
    <PostalCode>String</PostalCode>
    <StateCode>String</StateCode>
  </ShippingAddress>
  <SocialSecurityNumber>String</SocialSecurityNumber>
  <TaxExempt>String</TaxExempt>
  <TermsAcknowledgeDate>0001-01-01T00:00:00</TermsAcknowledgeDate>
  <TermsVersion>String</TermsVersion>
  <TotalPastDue>0</TotalPastDue>
  <UpdatedForCampaign>String</UpdatedForCampaign>
  <UplineAccount>0</UplineAccount>
  <UplineName>String</UplineName>
  <WebPageUrl>String</WebPageUrl>
</CallCenterProfileGetResponse>