CPQ API QuoteModel

The Quote model represents a CPQ quote data model in Salesforce CPQ.
Available in: Salesforce CPQ Summer ’16 and later

Name Type Description
record SBQQ__Quote__c The record that this model represents.
lineItems QuoteLineModel[] The lines that this quote contains.
lineItemGroups QuoteLineGroupModel[] The groups that this quote contains.
nextKey Integer The next key to use for new groups or lines. To keep keys unique, do not lower this value.
applyAdditionalDiscountLast Boolean Corresponds to the field SBQQ__Quote__c.ApplyAdditionalDiscountLast__c.
applyPartnerDiscountFirst Boolean Corresponds to the field SBQQ__Quote__c.ApplyPartnerDiscountFirst__c.
channelDiscountsOffList Boolean Corresponds to the field SBQQ__Quote__c.ChannelDiscountsOffList__c.
customerTotal Decimal SBQQ__Quote__c.SBQQ__CustomerAmount__c is a roll-up summary field, so its accuracy is guaranteed only after a quote has been saved. In the meantime, its current value is stored in customerTotal.
netTotal Decimal SBQQ__Quote__c.SBQQ__NetAmount__c is a roll-up summary field, so its accuracy is guaranteed only after a quote has been saved. In the meantime, its current value is stored in netTotal.
netNonSegmentTotal Decimal The net total for all non-multidimensional quote lines.
1public class QuoteModel {
2    public SBQQ__Quote__c record;
3    public QuoteLineModel[] lineItems;
4    public QuoteLineGroupModel[] lineItemGroups;
5    public Integer nextKey;
6    public Boolean applyAdditionalDiscountLast;
7    public Boolean applyPartnerDiscountFirst;
8    public Boolean channelDiscountsOffList;
9    public Decimal customerTotal;
10    public Decimal netTotal;
11    public Decimal netNonSegmentTotal;
12}