NAV

<back to all web services

CallCenterProfileSalesRecognitionGet

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

class CallCenterProfileSalesRecognitionGetResponse implements IConvertible
{
    double? accountNumber;
    String? pCtag;
    double? loa;
    double? amtNeededForPremierLevel;
    double? amtNeededForPresidentsClub;
    double? amtNeededForHonorSociety;
    double? amtNeededForRoseCircle;
    double? amtNeededForMcConnells;
    double? amtNeededForPresidentsCouncil;
    double? amtNeededForInnerCircle;
    double? currentCampaignSaleThisYear;
    double? currentCampaignSaleLastYear;
    double? previousCampaignSaleThisYear;
    double? previousCampaignSaleLastYear;
    double? campaignSaleThisCycle;
    double? campaignSaleLastCycle;
    double? bonusSaleThisCycle;
    double? bonusSaleLastCycle;
    ResponseStatus? responseStatus;

    CallCenterProfileSalesRecognitionGetResponse({this.accountNumber,this.pCtag,this.loa,this.amtNeededForPremierLevel,this.amtNeededForPresidentsClub,this.amtNeededForHonorSociety,this.amtNeededForRoseCircle,this.amtNeededForMcConnells,this.amtNeededForPresidentsCouncil,this.amtNeededForInnerCircle,this.currentCampaignSaleThisYear,this.currentCampaignSaleLastYear,this.previousCampaignSaleThisYear,this.previousCampaignSaleLastYear,this.campaignSaleThisCycle,this.campaignSaleLastCycle,this.bonusSaleThisCycle,this.bonusSaleLastCycle,this.responseStatus});
    CallCenterProfileSalesRecognitionGetResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        accountNumber = JsonConverters.toDouble(json['accountNumber']);
        pCtag = json['pCtag'];
        loa = JsonConverters.toDouble(json['loa']);
        amtNeededForPremierLevel = JsonConverters.toDouble(json['amtNeededForPremierLevel']);
        amtNeededForPresidentsClub = JsonConverters.toDouble(json['amtNeededForPresidentsClub']);
        amtNeededForHonorSociety = JsonConverters.toDouble(json['amtNeededForHonorSociety']);
        amtNeededForRoseCircle = JsonConverters.toDouble(json['amtNeededForRoseCircle']);
        amtNeededForMcConnells = JsonConverters.toDouble(json['amtNeededForMcConnells']);
        amtNeededForPresidentsCouncil = JsonConverters.toDouble(json['amtNeededForPresidentsCouncil']);
        amtNeededForInnerCircle = JsonConverters.toDouble(json['amtNeededForInnerCircle']);
        currentCampaignSaleThisYear = JsonConverters.toDouble(json['currentCampaignSaleThisYear']);
        currentCampaignSaleLastYear = JsonConverters.toDouble(json['currentCampaignSaleLastYear']);
        previousCampaignSaleThisYear = JsonConverters.toDouble(json['previousCampaignSaleThisYear']);
        previousCampaignSaleLastYear = JsonConverters.toDouble(json['previousCampaignSaleLastYear']);
        campaignSaleThisCycle = JsonConverters.toDouble(json['campaignSaleThisCycle']);
        campaignSaleLastCycle = JsonConverters.toDouble(json['campaignSaleLastCycle']);
        bonusSaleThisCycle = JsonConverters.toDouble(json['bonusSaleThisCycle']);
        bonusSaleLastCycle = JsonConverters.toDouble(json['bonusSaleLastCycle']);
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'accountNumber': accountNumber,
        'pCtag': pCtag,
        'loa': loa,
        'amtNeededForPremierLevel': amtNeededForPremierLevel,
        'amtNeededForPresidentsClub': amtNeededForPresidentsClub,
        'amtNeededForHonorSociety': amtNeededForHonorSociety,
        'amtNeededForRoseCircle': amtNeededForRoseCircle,
        'amtNeededForMcConnells': amtNeededForMcConnells,
        'amtNeededForPresidentsCouncil': amtNeededForPresidentsCouncil,
        'amtNeededForInnerCircle': amtNeededForInnerCircle,
        'currentCampaignSaleThisYear': currentCampaignSaleThisYear,
        'currentCampaignSaleLastYear': currentCampaignSaleLastYear,
        'previousCampaignSaleThisYear': previousCampaignSaleThisYear,
        'previousCampaignSaleLastYear': previousCampaignSaleLastYear,
        'campaignSaleThisCycle': campaignSaleThisCycle,
        'campaignSaleLastCycle': campaignSaleLastCycle,
        'bonusSaleThisCycle': bonusSaleThisCycle,
        'bonusSaleLastCycle': bonusSaleLastCycle,
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };

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

class CallCenterProfileSalesRecognitionGet implements IGet, IConvertible
{
    double? beeNumber;

    CallCenterProfileSalesRecognitionGet({this.beeNumber});
    CallCenterProfileSalesRecognitionGet.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() => "CallCenterProfileSalesRecognitionGet";
    TypeContext? context = _ctx;
}

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

Dart CallCenterProfileSalesRecognitionGet 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/profiles/{BeeNumber}/sales-recognition HTTP/1.1 
Host: extensions.avon.ca 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CallCenterProfileSalesRecognitionGetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <AccountNumber>0</AccountNumber>
  <AmtNeededForHonorSociety>0</AmtNeededForHonorSociety>
  <AmtNeededForInnerCircle>0</AmtNeededForInnerCircle>
  <AmtNeededForMcConnells>0</AmtNeededForMcConnells>
  <AmtNeededForPremierLevel>0</AmtNeededForPremierLevel>
  <AmtNeededForPresidentsClub>0</AmtNeededForPresidentsClub>
  <AmtNeededForPresidentsCouncil>0</AmtNeededForPresidentsCouncil>
  <AmtNeededForRoseCircle>0</AmtNeededForRoseCircle>
  <BonusSaleLastCycle>0</BonusSaleLastCycle>
  <BonusSaleThisCycle>0</BonusSaleThisCycle>
  <CampaignSaleLastCycle>0</CampaignSaleLastCycle>
  <CampaignSaleThisCycle>0</CampaignSaleThisCycle>
  <CurrentCampaignSaleLastYear>0</CurrentCampaignSaleLastYear>
  <CurrentCampaignSaleThisYear>0</CurrentCampaignSaleThisYear>
  <LOA>0</LOA>
  <PCtag>String</PCtag>
  <PreviousCampaignSaleLastYear>0</PreviousCampaignSaleLastYear>
  <PreviousCampaignSaleThisYear>0</PreviousCampaignSaleThisYear>
  <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>
</CallCenterProfileSalesRecognitionGetResponse>