Package com.clover.sdk.v3.report
Class ReportItem
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.report.ReportItem
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class ReportItem extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
id
name
numberSold
revenueSold
numNonRevenueSold
priceSold
numRefunds
refundAmount
refundAmountRegardlessOfRepayment
refundRepaymentAmount
numExchanges
exchangeAmount
inACategory
inventoryItem
discountSales
orderLevelDiscounts
labels
categories
deletedCategories
modifierSales
grossModifierSales
totalDiscounts
totalDiscountsFractionalCents
netNumberSold
grossItemSales
grossSales
netItemSales
netModifierSales
netSales
netSalesFractionalCents
costOfGoodsSold
grossProfit
grossProfitMargin
averageNetSales
percentTotalNetSales
partialRefundAmount
partialRefundRepaymentAmount
category
segmentLabel
startTimestamp
endTimestamp
changeInNetSales
changeInNetNumberSold
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ReportItem.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<ReportItem>
CREATOR
static JSONifiable.Creator<ReportItem>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description ReportItem()
Constructs a new empty instance.protected
ReportItem(boolean noInit)
Constructs a new empty instance.ReportItem(ReportItem src)
Constructs a new instance that is a deep copy of the source instance.ReportItem(String json)
Constructs a new instance from the given JSON String.ReportItem(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clearAverageNetSales()
Clears the 'averageNetSales' field, the 'has' method for this field will now return falsevoid
clearCategories()
Clears the 'categories' field, the 'has' method for this field will now return falsevoid
clearCategory()
Clears the 'category' field, the 'has' method for this field will now return falsevoid
clearChangeInNetNumberSold()
Clears the 'changeInNetNumberSold' field, the 'has' method for this field will now return falsevoid
clearChangeInNetSales()
Clears the 'changeInNetSales' field, the 'has' method for this field will now return falsevoid
clearCostOfGoodsSold()
Clears the 'costOfGoodsSold' field, the 'has' method for this field will now return falsevoid
clearDeletedCategories()
Clears the 'deletedCategories' field, the 'has' method for this field will now return falsevoid
clearDiscountSales()
Clears the 'discountSales' field, the 'has' method for this field will now return falsevoid
clearEndTimestamp()
Clears the 'endTimestamp' field, the 'has' method for this field will now return falsevoid
clearExchangeAmount()
Clears the 'exchangeAmount' field, the 'has' method for this field will now return falsevoid
clearGrossItemSales()
Clears the 'grossItemSales' field, the 'has' method for this field will now return falsevoid
clearGrossModifierSales()
Clears the 'grossModifierSales' field, the 'has' method for this field will now return falsevoid
clearGrossProfit()
Clears the 'grossProfit' field, the 'has' method for this field will now return falsevoid
clearGrossProfitMargin()
Clears the 'grossProfitMargin' field, the 'has' method for this field will now return falsevoid
clearGrossSales()
Clears the 'grossSales' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearInACategory()
Clears the 'inACategory' field, the 'has' method for this field will now return falsevoid
clearInventoryItem()
Clears the 'inventoryItem' field, the 'has' method for this field will now return falsevoid
clearLabels()
Clears the 'labels' field, the 'has' method for this field will now return falsevoid
clearModifierSales()
Clears the 'modifierSales' field, the 'has' method for this field will now return falsevoid
clearName()
Clears the 'name' field, the 'has' method for this field will now return falsevoid
clearNetItemSales()
Clears the 'netItemSales' field, the 'has' method for this field will now return falsevoid
clearNetModifierSales()
Clears the 'netModifierSales' field, the 'has' method for this field will now return falsevoid
clearNetNumberSold()
Clears the 'netNumberSold' field, the 'has' method for this field will now return falsevoid
clearNetSales()
Clears the 'netSales' field, the 'has' method for this field will now return falsevoid
clearNetSalesFractionalCents()
Clears the 'netSalesFractionalCents' field, the 'has' method for this field will now return falsevoid
clearNumberSold()
Clears the 'numberSold' field, the 'has' method for this field will now return falsevoid
clearNumExchanges()
Clears the 'numExchanges' field, the 'has' method for this field will now return falsevoid
clearNumNonRevenueSold()
Clears the 'numNonRevenueSold' field, the 'has' method for this field will now return falsevoid
clearNumRefunds()
Clears the 'numRefunds' field, the 'has' method for this field will now return falsevoid
clearOrderLevelDiscounts()
Clears the 'orderLevelDiscounts' field, the 'has' method for this field will now return falsevoid
clearPartialRefundAmount()
Clears the 'partialRefundAmount' field, the 'has' method for this field will now return falsevoid
clearPartialRefundRepaymentAmount()
Clears the 'partialRefundRepaymentAmount' field, the 'has' method for this field will now return falsevoid
clearPercentTotalNetSales()
Clears the 'percentTotalNetSales' field, the 'has' method for this field will now return falsevoid
clearPriceSold()
Clears the 'priceSold' field, the 'has' method for this field will now return falsevoid
clearRefundAmount()
Clears the 'refundAmount' field, the 'has' method for this field will now return falsevoid
clearRefundAmountRegardlessOfRepayment()
Clears the 'refundAmountRegardlessOfRepayment' field, the 'has' method for this field will now return falsevoid
clearRefundRepaymentAmount()
Clears the 'refundRepaymentAmount' field, the 'has' method for this field will now return falsevoid
clearRevenueSold()
Clears the 'revenueSold' field, the 'has' method for this field will now return falsevoid
clearSegmentLabel()
Clears the 'segmentLabel' field, the 'has' method for this field will now return falsevoid
clearStartTimestamp()
Clears the 'startTimestamp' field, the 'has' method for this field will now return falsevoid
clearTotalDiscounts()
Clears the 'totalDiscounts' field, the 'has' method for this field will now return falsevoid
clearTotalDiscountsFractionalCents()
Clears the 'totalDiscountsFractionalCents' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.ReportItem
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Long
getAverageNetSales()
Net sales divided by net number sold.List<ItemSalesBucket>
getCategories()
Deprecated.ItemSalesBucket
getCategory()
The oldest active category that the item belongs to.Double
getChangeInNetNumberSold()
Change in net quantity comparing the previous period to this period.Double
getChangeInNetSales()
Change in net sales comparing the previous period to this period.Long
getCostOfGoodsSold()
Cost of Goods Sold (COGS): net quantity sold multiplied by the cost.List<ItemSalesBucket>
getDeletedCategories()
Deprecated.List<BaseSale>
getDiscountSales()
Long
getEndTimestamp()
End of the time period for this summaryLong
getExchangeAmount()
protected GenericClient
getGenericClient()
Long
getGrossItemSales()
Item value before discounts and refunds.Long
getGrossModifierSales()
Total value of all modifiers sold for this item.Long
getGrossProfit()
Gross sales minus cost of goods sold.Double
getGrossProfitMargin()
Gross profit divided by gross sales.Long
getGrossSales()
Total value of sales of this item with modifiers before refunds and without taxes, discounts and service charges.String
getId()
Boolean
getInACategory()
Item
getInventoryItem()
JSONObject
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.List<ReportLabel>
getLabels()
List<BaseSale>
getModifierSales()
String
getName()
Long
getNetItemSales()
Total value of sales of this item after refunds and with discounts.Long
getNetModifierSales()
Total value of all modifiers sold for this item minus total value of all modifiers refunded.Double
getNetNumberSold()
The number sold minus the number refunded and exchanged.Long
getNetSales()
Total value of sales of this item with modifiers after refunds and with discounts.Double
getNetSalesFractionalCents()
Total value of sales of this item with modifiers after refunds and with discounts.Double
getNumberSold()
Double
getNumExchanges()
Double
getNumNonRevenueSold()
Double
getNumRefunds()
List<BaseSale>
getOrderLevelDiscounts()
Long
getPartialRefundAmount()
Total amount of refunds that partially refunded the item but did not fully refund the item, in units of cents.Long
getPartialRefundRepaymentAmount()
Total amount of refunds that partially refunded the item but did not fully refund the item and then were later re-paid, in units of cents.Double
getPercentTotalNetSales()
The percentage of the net sales of this item versus total net sales of all revenue items or of all non-revenue items.Double
getPriceSold()
Long
getRefundAmount()
Total value of items that were fully refunded.Long
getRefundAmountRegardlessOfRepayment()
Total value of items that were fully refunded.Long
getRefundRepaymentAmount()
Total value of items that were fully refunded and then later fully repaid.Long
getRevenueSold()
This is item gross sales for line items where is_revenue=true.Integer
getSegmentLabel()
An identifier that may be used to align report segments across different merchants.Long
getStartTimestamp()
Beginning of the time period for this summaryLong
getTotalDiscounts()
Total value of line item discounts and order level discounts.Double
getTotalDiscountsFractionalCents()
Total value of line item discounts and order level discounts.boolean
hasAverageNetSales()
Checks whether the 'averageNetSales' field has been set, however the value could be nullboolean
hasCategories()
Checks whether the 'categories' field has been set, however the value could be nullboolean
hasCategory()
Checks whether the 'category' field has been set, however the value could be nullboolean
hasChangeInNetNumberSold()
Checks whether the 'changeInNetNumberSold' field has been set, however the value could be nullboolean
hasChangeInNetSales()
Checks whether the 'changeInNetSales' field has been set, however the value could be nullboolean
hasCostOfGoodsSold()
Checks whether the 'costOfGoodsSold' field has been set, however the value could be nullboolean
hasDeletedCategories()
Checks whether the 'deletedCategories' field has been set, however the value could be nullboolean
hasDiscountSales()
Checks whether the 'discountSales' field has been set, however the value could be nullboolean
hasEndTimestamp()
Checks whether the 'endTimestamp' field has been set, however the value could be nullboolean
hasExchangeAmount()
Checks whether the 'exchangeAmount' field has been set, however the value could be nullboolean
hasGrossItemSales()
Checks whether the 'grossItemSales' field has been set, however the value could be nullboolean
hasGrossModifierSales()
Checks whether the 'grossModifierSales' field has been set, however the value could be nullboolean
hasGrossProfit()
Checks whether the 'grossProfit' field has been set, however the value could be nullboolean
hasGrossProfitMargin()
Checks whether the 'grossProfitMargin' field has been set, however the value could be nullboolean
hasGrossSales()
Checks whether the 'grossSales' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasInACategory()
Checks whether the 'inACategory' field has been set, however the value could be nullboolean
hasInventoryItem()
Checks whether the 'inventoryItem' field has been set, however the value could be nullboolean
hasLabels()
Checks whether the 'labels' field has been set, however the value could be nullboolean
hasModifierSales()
Checks whether the 'modifierSales' field has been set, however the value could be nullboolean
hasName()
Checks whether the 'name' field has been set, however the value could be nullboolean
hasNetItemSales()
Checks whether the 'netItemSales' field has been set, however the value could be nullboolean
hasNetModifierSales()
Checks whether the 'netModifierSales' field has been set, however the value could be nullboolean
hasNetNumberSold()
Checks whether the 'netNumberSold' field has been set, however the value could be nullboolean
hasNetSales()
Checks whether the 'netSales' field has been set, however the value could be nullboolean
hasNetSalesFractionalCents()
Checks whether the 'netSalesFractionalCents' field has been set, however the value could be nullboolean
hasNumberSold()
Checks whether the 'numberSold' field has been set, however the value could be nullboolean
hasNumExchanges()
Checks whether the 'numExchanges' field has been set, however the value could be nullboolean
hasNumNonRevenueSold()
Checks whether the 'numNonRevenueSold' field has been set, however the value could be nullboolean
hasNumRefunds()
Checks whether the 'numRefunds' field has been set, however the value could be nullboolean
hasOrderLevelDiscounts()
Checks whether the 'orderLevelDiscounts' field has been set, however the value could be nullboolean
hasPartialRefundAmount()
Checks whether the 'partialRefundAmount' field has been set, however the value could be nullboolean
hasPartialRefundRepaymentAmount()
Checks whether the 'partialRefundRepaymentAmount' field has been set, however the value could be nullboolean
hasPercentTotalNetSales()
Checks whether the 'percentTotalNetSales' field has been set, however the value could be nullboolean
hasPriceSold()
Checks whether the 'priceSold' field has been set, however the value could be nullboolean
hasRefundAmount()
Checks whether the 'refundAmount' field has been set, however the value could be nullboolean
hasRefundAmountRegardlessOfRepayment()
Checks whether the 'refundAmountRegardlessOfRepayment' field has been set, however the value could be nullboolean
hasRefundRepaymentAmount()
Checks whether the 'refundRepaymentAmount' field has been set, however the value could be nullboolean
hasRevenueSold()
Checks whether the 'revenueSold' field has been set, however the value could be nullboolean
hasSegmentLabel()
Checks whether the 'segmentLabel' field has been set, however the value could be nullboolean
hasStartTimestamp()
Checks whether the 'startTimestamp' field has been set, however the value could be nullboolean
hasTotalDiscounts()
Checks whether the 'totalDiscounts' field has been set, however the value could be nullboolean
hasTotalDiscountsFractionalCents()
Checks whether the 'totalDiscountsFractionalCents' field has been set, however the value could be nullboolean
isNotEmptyCategories()
Checks whether the 'categories' field is set and is not null and is not emptyboolean
isNotEmptyDeletedCategories()
Checks whether the 'deletedCategories' field is set and is not null and is not emptyboolean
isNotEmptyDiscountSales()
Checks whether the 'discountSales' field is set and is not null and is not emptyboolean
isNotEmptyLabels()
Checks whether the 'labels' field is set and is not null and is not emptyboolean
isNotEmptyModifierSales()
Checks whether the 'modifierSales' field is set and is not null and is not emptyboolean
isNotEmptyOrderLevelDiscounts()
Checks whether the 'orderLevelDiscounts' field is set and is not null and is not emptyboolean
isNotNullAverageNetSales()
Checks whether the 'averageNetSales' field is set and is not nullboolean
isNotNullCategories()
Checks whether the 'categories' field is set and is not nullboolean
isNotNullCategory()
Checks whether the 'category' field is set and is not nullboolean
isNotNullChangeInNetNumberSold()
Checks whether the 'changeInNetNumberSold' field is set and is not nullboolean
isNotNullChangeInNetSales()
Checks whether the 'changeInNetSales' field is set and is not nullboolean
isNotNullCostOfGoodsSold()
Checks whether the 'costOfGoodsSold' field is set and is not nullboolean
isNotNullDeletedCategories()
Checks whether the 'deletedCategories' field is set and is not nullboolean
isNotNullDiscountSales()
Checks whether the 'discountSales' field is set and is not nullboolean
isNotNullEndTimestamp()
Checks whether the 'endTimestamp' field is set and is not nullboolean
isNotNullExchangeAmount()
Checks whether the 'exchangeAmount' field is set and is not nullboolean
isNotNullGrossItemSales()
Checks whether the 'grossItemSales' field is set and is not nullboolean
isNotNullGrossModifierSales()
Checks whether the 'grossModifierSales' field is set and is not nullboolean
isNotNullGrossProfit()
Checks whether the 'grossProfit' field is set and is not nullboolean
isNotNullGrossProfitMargin()
Checks whether the 'grossProfitMargin' field is set and is not nullboolean
isNotNullGrossSales()
Checks whether the 'grossSales' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullInACategory()
Checks whether the 'inACategory' field is set and is not nullboolean
isNotNullInventoryItem()
Checks whether the 'inventoryItem' field is set and is not nullboolean
isNotNullLabels()
Checks whether the 'labels' field is set and is not nullboolean
isNotNullModifierSales()
Checks whether the 'modifierSales' field is set and is not nullboolean
isNotNullName()
Checks whether the 'name' field is set and is not nullboolean
isNotNullNetItemSales()
Checks whether the 'netItemSales' field is set and is not nullboolean
isNotNullNetModifierSales()
Checks whether the 'netModifierSales' field is set and is not nullboolean
isNotNullNetNumberSold()
Checks whether the 'netNumberSold' field is set and is not nullboolean
isNotNullNetSales()
Checks whether the 'netSales' field is set and is not nullboolean
isNotNullNetSalesFractionalCents()
Checks whether the 'netSalesFractionalCents' field is set and is not nullboolean
isNotNullNumberSold()
Checks whether the 'numberSold' field is set and is not nullboolean
isNotNullNumExchanges()
Checks whether the 'numExchanges' field is set and is not nullboolean
isNotNullNumNonRevenueSold()
Checks whether the 'numNonRevenueSold' field is set and is not nullboolean
isNotNullNumRefunds()
Checks whether the 'numRefunds' field is set and is not nullboolean
isNotNullOrderLevelDiscounts()
Checks whether the 'orderLevelDiscounts' field is set and is not nullboolean
isNotNullPartialRefundAmount()
Checks whether the 'partialRefundAmount' field is set and is not nullboolean
isNotNullPartialRefundRepaymentAmount()
Checks whether the 'partialRefundRepaymentAmount' field is set and is not nullboolean
isNotNullPercentTotalNetSales()
Checks whether the 'percentTotalNetSales' field is set and is not nullboolean
isNotNullPriceSold()
Checks whether the 'priceSold' field is set and is not nullboolean
isNotNullRefundAmount()
Checks whether the 'refundAmount' field is set and is not nullboolean
isNotNullRefundAmountRegardlessOfRepayment()
Checks whether the 'refundAmountRegardlessOfRepayment' field is set and is not nullboolean
isNotNullRefundRepaymentAmount()
Checks whether the 'refundRepaymentAmount' field is set and is not nullboolean
isNotNullRevenueSold()
Checks whether the 'revenueSold' field is set and is not nullboolean
isNotNullSegmentLabel()
Checks whether the 'segmentLabel' field is set and is not nullboolean
isNotNullStartTimestamp()
Checks whether the 'startTimestamp' field is set and is not nullboolean
isNotNullTotalDiscounts()
Checks whether the 'totalDiscounts' field is set and is not nullboolean
isNotNullTotalDiscountsFractionalCents()
Checks whether the 'totalDiscountsFractionalCents' field is set and is not nullvoid
mergeChanges(ReportItem src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.ReportItem
setAverageNetSales(Long averageNetSales)
Sets the field 'averageNetSales'.ReportItem
setCategories(List<ItemSalesBucket> categories)
Sets the field 'categories'.ReportItem
setCategory(ItemSalesBucket category)
Sets the field 'category'.ReportItem
setChangeInNetNumberSold(Double changeInNetNumberSold)
Sets the field 'changeInNetNumberSold'.ReportItem
setChangeInNetSales(Double changeInNetSales)
Sets the field 'changeInNetSales'.ReportItem
setCostOfGoodsSold(Long costOfGoodsSold)
Sets the field 'costOfGoodsSold'.ReportItem
setDeletedCategories(List<ItemSalesBucket> deletedCategories)
Sets the field 'deletedCategories'.ReportItem
setDiscountSales(List<BaseSale> discountSales)
Sets the field 'discountSales'.ReportItem
setEndTimestamp(Long endTimestamp)
Sets the field 'endTimestamp'.ReportItem
setExchangeAmount(Long exchangeAmount)
Sets the field 'exchangeAmount'.ReportItem
setGrossItemSales(Long grossItemSales)
Sets the field 'grossItemSales'.ReportItem
setGrossModifierSales(Long grossModifierSales)
Sets the field 'grossModifierSales'.ReportItem
setGrossProfit(Long grossProfit)
Sets the field 'grossProfit'.ReportItem
setGrossProfitMargin(Double grossProfitMargin)
Sets the field 'grossProfitMargin'.ReportItem
setGrossSales(Long grossSales)
Sets the field 'grossSales'.ReportItem
setId(String id)
Sets the field 'id'.ReportItem
setInACategory(Boolean inACategory)
Sets the field 'inACategory'.ReportItem
setInventoryItem(Item inventoryItem)
Sets the field 'inventoryItem'.ReportItem
setLabels(List<ReportLabel> labels)
Sets the field 'labels'.ReportItem
setModifierSales(List<BaseSale> modifierSales)
Sets the field 'modifierSales'.ReportItem
setName(String name)
Sets the field 'name'.ReportItem
setNetItemSales(Long netItemSales)
Sets the field 'netItemSales'.ReportItem
setNetModifierSales(Long netModifierSales)
Sets the field 'netModifierSales'.ReportItem
setNetNumberSold(Double netNumberSold)
Sets the field 'netNumberSold'.ReportItem
setNetSales(Long netSales)
Sets the field 'netSales'.ReportItem
setNetSalesFractionalCents(Double netSalesFractionalCents)
Sets the field 'netSalesFractionalCents'.ReportItem
setNumberSold(Double numberSold)
Sets the field 'numberSold'.ReportItem
setNumExchanges(Double numExchanges)
Sets the field 'numExchanges'.ReportItem
setNumNonRevenueSold(Double numNonRevenueSold)
Sets the field 'numNonRevenueSold'.ReportItem
setNumRefunds(Double numRefunds)
Sets the field 'numRefunds'.ReportItem
setOrderLevelDiscounts(List<BaseSale> orderLevelDiscounts)
Sets the field 'orderLevelDiscounts'.ReportItem
setPartialRefundAmount(Long partialRefundAmount)
Sets the field 'partialRefundAmount'.ReportItem
setPartialRefundRepaymentAmount(Long partialRefundRepaymentAmount)
Sets the field 'partialRefundRepaymentAmount'.ReportItem
setPercentTotalNetSales(Double percentTotalNetSales)
Sets the field 'percentTotalNetSales'.ReportItem
setPriceSold(Double priceSold)
Sets the field 'priceSold'.ReportItem
setRefundAmount(Long refundAmount)
Sets the field 'refundAmount'.ReportItem
setRefundAmountRegardlessOfRepayment(Long refundAmountRegardlessOfRepayment)
Sets the field 'refundAmountRegardlessOfRepayment'.ReportItem
setRefundRepaymentAmount(Long refundRepaymentAmount)
Sets the field 'refundRepaymentAmount'.ReportItem
setRevenueSold(Long revenueSold)
Sets the field 'revenueSold'.ReportItem
setSegmentLabel(Integer segmentLabel)
Sets the field 'segmentLabel'.ReportItem
setStartTimestamp(Long startTimestamp)
Sets the field 'startTimestamp'.ReportItem
setTotalDiscounts(Long totalDiscounts)
Sets the field 'totalDiscounts'.ReportItem
setTotalDiscountsFractionalCents(Double totalDiscountsFractionalCents)
Sets the field 'totalDiscountsFractionalCents'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<ReportItem> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<ReportItem> JSON_CREATOR
-
-
Constructor Detail
-
ReportItem
public ReportItem()
Constructs a new empty instance.
-
ReportItem
protected ReportItem(boolean noInit)
Constructs a new empty instance.
-
ReportItem
public ReportItem(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
ReportItem
public ReportItem(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
ReportItem
public ReportItem(ReportItem src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
-
getName
public String getName()
-
getNumberSold
public Double getNumberSold()
-
getRevenueSold
public Long getRevenueSold()
This is item gross sales for line items where is_revenue=true. It is the item value before discounts and refunds. Does not include non-revenue items and modifier gross sales.
-
getNumNonRevenueSold
public Double getNumNonRevenueSold()
-
getPriceSold
public Double getPriceSold()
-
getNumRefunds
public Double getNumRefunds()
-
getRefundAmount
public Long getRefundAmount()
Total value of items that were fully refunded. This excludes amounts that were later fully repaid. This is for the original design of the report from 2019.
-
getRefundAmountRegardlessOfRepayment
public Long getRefundAmountRegardlessOfRepayment()
Total value of items that were fully refunded. This includes amounts that were later fully repaid. This is for the amendment to the design of the report in 2020 to separate the display of refund repayments from refunds.
-
getRefundRepaymentAmount
public Long getRefundRepaymentAmount()
Total value of items that were fully refunded and then later fully repaid.
-
getNumExchanges
public Double getNumExchanges()
-
getExchangeAmount
public Long getExchangeAmount()
-
getInACategory
public Boolean getInACategory()
-
getInventoryItem
public Item getInventoryItem()
-
getLabels
public List<ReportLabel> getLabels()
-
getCategories
@Deprecated public List<ItemSalesBucket> getCategories()
Deprecated.DEPRECATED. Use 'category'. In practice this is the oldest active category that the item belongs to. If there are no categories for this item, then this is empty. If item belongs to categories that are all deleted, then this is not populated.
-
getDeletedCategories
@Deprecated public List<ItemSalesBucket> getDeletedCategories()
Deprecated.DEPRECATED. Use 'category'. In practice if the item belongs to only categories that are deleted, then this is most recently deleted category. If the item is in an active category then this is not populated.
-
getGrossModifierSales
public Long getGrossModifierSales()
Total value of all modifiers sold for this item.
-
getTotalDiscounts
public Long getTotalDiscounts()
Total value of line item discounts and order level discounts. Order level discounts are an estimate of how much of the order level discount can be attributed to the line item. Units are cents. Fractional cents are rounded to the nearest cent.
-
getTotalDiscountsFractionalCents
public Double getTotalDiscountsFractionalCents()
Total value of line item discounts and order level discounts. Order level discounts are an estimate of how much of the order level discount can be attributed to the line item. Units are cents. Fractional cents are preserved.
-
getNetNumberSold
public Double getNetNumberSold()
The number sold minus the number refunded and exchanged.
-
getGrossItemSales
public Long getGrossItemSales()
Item value before discounts and refunds. Does not include modifier gross sales.
-
getGrossSales
public Long getGrossSales()
Total value of sales of this item with modifiers before refunds and without taxes, discounts and service charges. Sum of Gross Modifier Sales and Gross Item Sales.
-
getNetItemSales
public Long getNetItemSales()
Total value of sales of this item after refunds and with discounts. Does not include modifier sales.
-
getNetModifierSales
public Long getNetModifierSales()
Total value of all modifiers sold for this item minus total value of all modifiers refunded.
-
getNetSales
public Long getNetSales()
Total value of sales of this item with modifiers after refunds and with discounts. Sum of Net Modifier Sales and Net Item Sales. Units are cents. Rounded to the nearest penny.
-
getNetSalesFractionalCents
public Double getNetSalesFractionalCents()
Total value of sales of this item with modifiers after refunds and with discounts. Sum of Net Modifier Sales and Net Item Sales. Units are cents. Decimal portion is fractional cents.
-
getCostOfGoodsSold
public Long getCostOfGoodsSold()
Cost of Goods Sold (COGS): net quantity sold multiplied by the cost.
-
getGrossProfit
public Long getGrossProfit()
Gross sales minus cost of goods sold.
-
getGrossProfitMargin
public Double getGrossProfitMargin()
Gross profit divided by gross sales.
-
getAverageNetSales
public Long getAverageNetSales()
Net sales divided by net number sold.
-
getPercentTotalNetSales
public Double getPercentTotalNetSales()
The percentage of the net sales of this item versus total net sales of all revenue items or of all non-revenue items.
-
getPartialRefundAmount
public Long getPartialRefundAmount()
Total amount of refunds that partially refunded the item but did not fully refund the item, in units of cents. Rounded to the nearest penny.
-
getPartialRefundRepaymentAmount
public Long getPartialRefundRepaymentAmount()
Total amount of refunds that partially refunded the item but did not fully refund the item and then were later re-paid, in units of cents. Rounded to the nearest penny.
-
getCategory
public ItemSalesBucket getCategory()
The oldest active category that the item belongs to. If item belongs to categories that are all deleted, then this is the most recently deleted category. If there are no categories for this item, then this is empty.
-
getSegmentLabel
public Integer getSegmentLabel()
An identifier that may be used to align report segments across different merchants.
-
getStartTimestamp
public Long getStartTimestamp()
Beginning of the time period for this summary
-
getEndTimestamp
public Long getEndTimestamp()
End of the time period for this summary
-
getChangeInNetSales
public Double getChangeInNetSales()
Change in net sales comparing the previous period to this period. Expressed as a proportion: 0.5 = 50% increase, -0.75 = 75% decrease, 0 = no change, null = previous period had no sales, 1.2 = 120% increase.
-
getChangeInNetNumberSold
public Double getChangeInNetNumberSold()
Change in net quantity comparing the previous period to this period. Expressed as a proportion: 0.5 = 50% increase, -0.75 = 75% decrease, 0 = no change, null = previous period had no sales, 1.2 = 120% increase.
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullName
public boolean isNotNullName()
Checks whether the 'name' field is set and is not null
-
isNotNullNumberSold
public boolean isNotNullNumberSold()
Checks whether the 'numberSold' field is set and is not null
-
isNotNullRevenueSold
public boolean isNotNullRevenueSold()
Checks whether the 'revenueSold' field is set and is not null
-
isNotNullNumNonRevenueSold
public boolean isNotNullNumNonRevenueSold()
Checks whether the 'numNonRevenueSold' field is set and is not null
-
isNotNullPriceSold
public boolean isNotNullPriceSold()
Checks whether the 'priceSold' field is set and is not null
-
isNotNullNumRefunds
public boolean isNotNullNumRefunds()
Checks whether the 'numRefunds' field is set and is not null
-
isNotNullRefundAmount
public boolean isNotNullRefundAmount()
Checks whether the 'refundAmount' field is set and is not null
-
isNotNullRefundAmountRegardlessOfRepayment
public boolean isNotNullRefundAmountRegardlessOfRepayment()
Checks whether the 'refundAmountRegardlessOfRepayment' field is set and is not null
-
isNotNullRefundRepaymentAmount
public boolean isNotNullRefundRepaymentAmount()
Checks whether the 'refundRepaymentAmount' field is set and is not null
-
isNotNullNumExchanges
public boolean isNotNullNumExchanges()
Checks whether the 'numExchanges' field is set and is not null
-
isNotNullExchangeAmount
public boolean isNotNullExchangeAmount()
Checks whether the 'exchangeAmount' field is set and is not null
-
isNotNullInACategory
public boolean isNotNullInACategory()
Checks whether the 'inACategory' field is set and is not null
-
isNotNullInventoryItem
public boolean isNotNullInventoryItem()
Checks whether the 'inventoryItem' field is set and is not null
-
isNotNullDiscountSales
public boolean isNotNullDiscountSales()
Checks whether the 'discountSales' field is set and is not null
-
isNotEmptyDiscountSales
public boolean isNotEmptyDiscountSales()
Checks whether the 'discountSales' field is set and is not null and is not empty
-
isNotNullOrderLevelDiscounts
public boolean isNotNullOrderLevelDiscounts()
Checks whether the 'orderLevelDiscounts' field is set and is not null
-
isNotEmptyOrderLevelDiscounts
public boolean isNotEmptyOrderLevelDiscounts()
Checks whether the 'orderLevelDiscounts' field is set and is not null and is not empty
-
isNotNullLabels
public boolean isNotNullLabels()
Checks whether the 'labels' field is set and is not null
-
isNotEmptyLabels
public boolean isNotEmptyLabels()
Checks whether the 'labels' field is set and is not null and is not empty
-
isNotNullCategories
public boolean isNotNullCategories()
Checks whether the 'categories' field is set and is not null
-
isNotEmptyCategories
public boolean isNotEmptyCategories()
Checks whether the 'categories' field is set and is not null and is not empty
-
isNotNullDeletedCategories
public boolean isNotNullDeletedCategories()
Checks whether the 'deletedCategories' field is set and is not null
-
isNotEmptyDeletedCategories
public boolean isNotEmptyDeletedCategories()
Checks whether the 'deletedCategories' field is set and is not null and is not empty
-
isNotNullModifierSales
public boolean isNotNullModifierSales()
Checks whether the 'modifierSales' field is set and is not null
-
isNotEmptyModifierSales
public boolean isNotEmptyModifierSales()
Checks whether the 'modifierSales' field is set and is not null and is not empty
-
isNotNullGrossModifierSales
public boolean isNotNullGrossModifierSales()
Checks whether the 'grossModifierSales' field is set and is not null
-
isNotNullTotalDiscounts
public boolean isNotNullTotalDiscounts()
Checks whether the 'totalDiscounts' field is set and is not null
-
isNotNullTotalDiscountsFractionalCents
public boolean isNotNullTotalDiscountsFractionalCents()
Checks whether the 'totalDiscountsFractionalCents' field is set and is not null
-
isNotNullNetNumberSold
public boolean isNotNullNetNumberSold()
Checks whether the 'netNumberSold' field is set and is not null
-
isNotNullGrossItemSales
public boolean isNotNullGrossItemSales()
Checks whether the 'grossItemSales' field is set and is not null
-
isNotNullGrossSales
public boolean isNotNullGrossSales()
Checks whether the 'grossSales' field is set and is not null
-
isNotNullNetItemSales
public boolean isNotNullNetItemSales()
Checks whether the 'netItemSales' field is set and is not null
-
isNotNullNetModifierSales
public boolean isNotNullNetModifierSales()
Checks whether the 'netModifierSales' field is set and is not null
-
isNotNullNetSales
public boolean isNotNullNetSales()
Checks whether the 'netSales' field is set and is not null
-
isNotNullNetSalesFractionalCents
public boolean isNotNullNetSalesFractionalCents()
Checks whether the 'netSalesFractionalCents' field is set and is not null
-
isNotNullCostOfGoodsSold
public boolean isNotNullCostOfGoodsSold()
Checks whether the 'costOfGoodsSold' field is set and is not null
-
isNotNullGrossProfit
public boolean isNotNullGrossProfit()
Checks whether the 'grossProfit' field is set and is not null
-
isNotNullGrossProfitMargin
public boolean isNotNullGrossProfitMargin()
Checks whether the 'grossProfitMargin' field is set and is not null
-
isNotNullAverageNetSales
public boolean isNotNullAverageNetSales()
Checks whether the 'averageNetSales' field is set and is not null
-
isNotNullPercentTotalNetSales
public boolean isNotNullPercentTotalNetSales()
Checks whether the 'percentTotalNetSales' field is set and is not null
-
isNotNullPartialRefundAmount
public boolean isNotNullPartialRefundAmount()
Checks whether the 'partialRefundAmount' field is set and is not null
-
isNotNullPartialRefundRepaymentAmount
public boolean isNotNullPartialRefundRepaymentAmount()
Checks whether the 'partialRefundRepaymentAmount' field is set and is not null
-
isNotNullCategory
public boolean isNotNullCategory()
Checks whether the 'category' field is set and is not null
-
isNotNullSegmentLabel
public boolean isNotNullSegmentLabel()
Checks whether the 'segmentLabel' field is set and is not null
-
isNotNullStartTimestamp
public boolean isNotNullStartTimestamp()
Checks whether the 'startTimestamp' field is set and is not null
-
isNotNullEndTimestamp
public boolean isNotNullEndTimestamp()
Checks whether the 'endTimestamp' field is set and is not null
-
isNotNullChangeInNetSales
public boolean isNotNullChangeInNetSales()
Checks whether the 'changeInNetSales' field is set and is not null
-
isNotNullChangeInNetNumberSold
public boolean isNotNullChangeInNetNumberSold()
Checks whether the 'changeInNetNumberSold' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasName
public boolean hasName()
Checks whether the 'name' field has been set, however the value could be null
-
hasNumberSold
public boolean hasNumberSold()
Checks whether the 'numberSold' field has been set, however the value could be null
-
hasRevenueSold
public boolean hasRevenueSold()
Checks whether the 'revenueSold' field has been set, however the value could be null
-
hasNumNonRevenueSold
public boolean hasNumNonRevenueSold()
Checks whether the 'numNonRevenueSold' field has been set, however the value could be null
-
hasPriceSold
public boolean hasPriceSold()
Checks whether the 'priceSold' field has been set, however the value could be null
-
hasNumRefunds
public boolean hasNumRefunds()
Checks whether the 'numRefunds' field has been set, however the value could be null
-
hasRefundAmount
public boolean hasRefundAmount()
Checks whether the 'refundAmount' field has been set, however the value could be null
-
hasRefundAmountRegardlessOfRepayment
public boolean hasRefundAmountRegardlessOfRepayment()
Checks whether the 'refundAmountRegardlessOfRepayment' field has been set, however the value could be null
-
hasRefundRepaymentAmount
public boolean hasRefundRepaymentAmount()
Checks whether the 'refundRepaymentAmount' field has been set, however the value could be null
-
hasNumExchanges
public boolean hasNumExchanges()
Checks whether the 'numExchanges' field has been set, however the value could be null
-
hasExchangeAmount
public boolean hasExchangeAmount()
Checks whether the 'exchangeAmount' field has been set, however the value could be null
-
hasInACategory
public boolean hasInACategory()
Checks whether the 'inACategory' field has been set, however the value could be null
-
hasInventoryItem
public boolean hasInventoryItem()
Checks whether the 'inventoryItem' field has been set, however the value could be null
-
hasDiscountSales
public boolean hasDiscountSales()
Checks whether the 'discountSales' field has been set, however the value could be null
-
hasOrderLevelDiscounts
public boolean hasOrderLevelDiscounts()
Checks whether the 'orderLevelDiscounts' field has been set, however the value could be null
-
hasLabels
public boolean hasLabels()
Checks whether the 'labels' field has been set, however the value could be null
-
hasCategories
public boolean hasCategories()
Checks whether the 'categories' field has been set, however the value could be null
-
hasDeletedCategories
public boolean hasDeletedCategories()
Checks whether the 'deletedCategories' field has been set, however the value could be null
-
hasModifierSales
public boolean hasModifierSales()
Checks whether the 'modifierSales' field has been set, however the value could be null
-
hasGrossModifierSales
public boolean hasGrossModifierSales()
Checks whether the 'grossModifierSales' field has been set, however the value could be null
-
hasTotalDiscounts
public boolean hasTotalDiscounts()
Checks whether the 'totalDiscounts' field has been set, however the value could be null
-
hasTotalDiscountsFractionalCents
public boolean hasTotalDiscountsFractionalCents()
Checks whether the 'totalDiscountsFractionalCents' field has been set, however the value could be null
-
hasNetNumberSold
public boolean hasNetNumberSold()
Checks whether the 'netNumberSold' field has been set, however the value could be null
-
hasGrossItemSales
public boolean hasGrossItemSales()
Checks whether the 'grossItemSales' field has been set, however the value could be null
-
hasGrossSales
public boolean hasGrossSales()
Checks whether the 'grossSales' field has been set, however the value could be null
-
hasNetItemSales
public boolean hasNetItemSales()
Checks whether the 'netItemSales' field has been set, however the value could be null
-
hasNetModifierSales
public boolean hasNetModifierSales()
Checks whether the 'netModifierSales' field has been set, however the value could be null
-
hasNetSales
public boolean hasNetSales()
Checks whether the 'netSales' field has been set, however the value could be null
-
hasNetSalesFractionalCents
public boolean hasNetSalesFractionalCents()
Checks whether the 'netSalesFractionalCents' field has been set, however the value could be null
-
hasCostOfGoodsSold
public boolean hasCostOfGoodsSold()
Checks whether the 'costOfGoodsSold' field has been set, however the value could be null
-
hasGrossProfit
public boolean hasGrossProfit()
Checks whether the 'grossProfit' field has been set, however the value could be null
-
hasGrossProfitMargin
public boolean hasGrossProfitMargin()
Checks whether the 'grossProfitMargin' field has been set, however the value could be null
-
hasAverageNetSales
public boolean hasAverageNetSales()
Checks whether the 'averageNetSales' field has been set, however the value could be null
-
hasPercentTotalNetSales
public boolean hasPercentTotalNetSales()
Checks whether the 'percentTotalNetSales' field has been set, however the value could be null
-
hasPartialRefundAmount
public boolean hasPartialRefundAmount()
Checks whether the 'partialRefundAmount' field has been set, however the value could be null
-
hasPartialRefundRepaymentAmount
public boolean hasPartialRefundRepaymentAmount()
Checks whether the 'partialRefundRepaymentAmount' field has been set, however the value could be null
-
hasCategory
public boolean hasCategory()
Checks whether the 'category' field has been set, however the value could be null
-
hasSegmentLabel
public boolean hasSegmentLabel()
Checks whether the 'segmentLabel' field has been set, however the value could be null
-
hasStartTimestamp
public boolean hasStartTimestamp()
Checks whether the 'startTimestamp' field has been set, however the value could be null
-
hasEndTimestamp
public boolean hasEndTimestamp()
Checks whether the 'endTimestamp' field has been set, however the value could be null
-
hasChangeInNetSales
public boolean hasChangeInNetSales()
Checks whether the 'changeInNetSales' field has been set, however the value could be null
-
hasChangeInNetNumberSold
public boolean hasChangeInNetNumberSold()
Checks whether the 'changeInNetNumberSold' field has been set, however the value could be null
-
setId
public ReportItem setId(String id)
Sets the field 'id'.
-
setName
public ReportItem setName(String name)
Sets the field 'name'.
-
setNumberSold
public ReportItem setNumberSold(Double numberSold)
Sets the field 'numberSold'.
-
setRevenueSold
public ReportItem setRevenueSold(Long revenueSold)
Sets the field 'revenueSold'.
-
setNumNonRevenueSold
public ReportItem setNumNonRevenueSold(Double numNonRevenueSold)
Sets the field 'numNonRevenueSold'.
-
setPriceSold
public ReportItem setPriceSold(Double priceSold)
Sets the field 'priceSold'.
-
setNumRefunds
public ReportItem setNumRefunds(Double numRefunds)
Sets the field 'numRefunds'.
-
setRefundAmount
public ReportItem setRefundAmount(Long refundAmount)
Sets the field 'refundAmount'.
-
setRefundAmountRegardlessOfRepayment
public ReportItem setRefundAmountRegardlessOfRepayment(Long refundAmountRegardlessOfRepayment)
Sets the field 'refundAmountRegardlessOfRepayment'.
-
setRefundRepaymentAmount
public ReportItem setRefundRepaymentAmount(Long refundRepaymentAmount)
Sets the field 'refundRepaymentAmount'.
-
setNumExchanges
public ReportItem setNumExchanges(Double numExchanges)
Sets the field 'numExchanges'.
-
setExchangeAmount
public ReportItem setExchangeAmount(Long exchangeAmount)
Sets the field 'exchangeAmount'.
-
setInACategory
public ReportItem setInACategory(Boolean inACategory)
Sets the field 'inACategory'.
-
setInventoryItem
public ReportItem setInventoryItem(Item inventoryItem)
Sets the field 'inventoryItem'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setDiscountSales
public ReportItem setDiscountSales(List<BaseSale> discountSales)
Sets the field 'discountSales'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setOrderLevelDiscounts
public ReportItem setOrderLevelDiscounts(List<BaseSale> orderLevelDiscounts)
Sets the field 'orderLevelDiscounts'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setLabels
public ReportItem setLabels(List<ReportLabel> labels)
Sets the field 'labels'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setCategories
public ReportItem setCategories(List<ItemSalesBucket> categories)
Sets the field 'categories'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setDeletedCategories
public ReportItem setDeletedCategories(List<ItemSalesBucket> deletedCategories)
Sets the field 'deletedCategories'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setModifierSales
public ReportItem setModifierSales(List<BaseSale> modifierSales)
Sets the field 'modifierSales'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setGrossModifierSales
public ReportItem setGrossModifierSales(Long grossModifierSales)
Sets the field 'grossModifierSales'.
-
setTotalDiscounts
public ReportItem setTotalDiscounts(Long totalDiscounts)
Sets the field 'totalDiscounts'.
-
setTotalDiscountsFractionalCents
public ReportItem setTotalDiscountsFractionalCents(Double totalDiscountsFractionalCents)
Sets the field 'totalDiscountsFractionalCents'.
-
setNetNumberSold
public ReportItem setNetNumberSold(Double netNumberSold)
Sets the field 'netNumberSold'.
-
setGrossItemSales
public ReportItem setGrossItemSales(Long grossItemSales)
Sets the field 'grossItemSales'.
-
setGrossSales
public ReportItem setGrossSales(Long grossSales)
Sets the field 'grossSales'.
-
setNetItemSales
public ReportItem setNetItemSales(Long netItemSales)
Sets the field 'netItemSales'.
-
setNetModifierSales
public ReportItem setNetModifierSales(Long netModifierSales)
Sets the field 'netModifierSales'.
-
setNetSales
public ReportItem setNetSales(Long netSales)
Sets the field 'netSales'.
-
setNetSalesFractionalCents
public ReportItem setNetSalesFractionalCents(Double netSalesFractionalCents)
Sets the field 'netSalesFractionalCents'.
-
setCostOfGoodsSold
public ReportItem setCostOfGoodsSold(Long costOfGoodsSold)
Sets the field 'costOfGoodsSold'.
-
setGrossProfit
public ReportItem setGrossProfit(Long grossProfit)
Sets the field 'grossProfit'.
-
setGrossProfitMargin
public ReportItem setGrossProfitMargin(Double grossProfitMargin)
Sets the field 'grossProfitMargin'.
-
setAverageNetSales
public ReportItem setAverageNetSales(Long averageNetSales)
Sets the field 'averageNetSales'.
-
setPercentTotalNetSales
public ReportItem setPercentTotalNetSales(Double percentTotalNetSales)
Sets the field 'percentTotalNetSales'.
-
setPartialRefundAmount
public ReportItem setPartialRefundAmount(Long partialRefundAmount)
Sets the field 'partialRefundAmount'.
-
setPartialRefundRepaymentAmount
public ReportItem setPartialRefundRepaymentAmount(Long partialRefundRepaymentAmount)
Sets the field 'partialRefundRepaymentAmount'.
-
setCategory
public ReportItem setCategory(ItemSalesBucket category)
Sets the field 'category'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setSegmentLabel
public ReportItem setSegmentLabel(Integer segmentLabel)
Sets the field 'segmentLabel'.
-
setStartTimestamp
public ReportItem setStartTimestamp(Long startTimestamp)
Sets the field 'startTimestamp'.
-
setEndTimestamp
public ReportItem setEndTimestamp(Long endTimestamp)
Sets the field 'endTimestamp'.
-
setChangeInNetSales
public ReportItem setChangeInNetSales(Double changeInNetSales)
Sets the field 'changeInNetSales'.
-
setChangeInNetNumberSold
public ReportItem setChangeInNetNumberSold(Double changeInNetNumberSold)
Sets the field 'changeInNetNumberSold'.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearName
public void clearName()
Clears the 'name' field, the 'has' method for this field will now return false
-
clearNumberSold
public void clearNumberSold()
Clears the 'numberSold' field, the 'has' method for this field will now return false
-
clearRevenueSold
public void clearRevenueSold()
Clears the 'revenueSold' field, the 'has' method for this field will now return false
-
clearNumNonRevenueSold
public void clearNumNonRevenueSold()
Clears the 'numNonRevenueSold' field, the 'has' method for this field will now return false
-
clearPriceSold
public void clearPriceSold()
Clears the 'priceSold' field, the 'has' method for this field will now return false
-
clearNumRefunds
public void clearNumRefunds()
Clears the 'numRefunds' field, the 'has' method for this field will now return false
-
clearRefundAmount
public void clearRefundAmount()
Clears the 'refundAmount' field, the 'has' method for this field will now return false
-
clearRefundAmountRegardlessOfRepayment
public void clearRefundAmountRegardlessOfRepayment()
Clears the 'refundAmountRegardlessOfRepayment' field, the 'has' method for this field will now return false
-
clearRefundRepaymentAmount
public void clearRefundRepaymentAmount()
Clears the 'refundRepaymentAmount' field, the 'has' method for this field will now return false
-
clearNumExchanges
public void clearNumExchanges()
Clears the 'numExchanges' field, the 'has' method for this field will now return false
-
clearExchangeAmount
public void clearExchangeAmount()
Clears the 'exchangeAmount' field, the 'has' method for this field will now return false
-
clearInACategory
public void clearInACategory()
Clears the 'inACategory' field, the 'has' method for this field will now return false
-
clearInventoryItem
public void clearInventoryItem()
Clears the 'inventoryItem' field, the 'has' method for this field will now return false
-
clearDiscountSales
public void clearDiscountSales()
Clears the 'discountSales' field, the 'has' method for this field will now return false
-
clearOrderLevelDiscounts
public void clearOrderLevelDiscounts()
Clears the 'orderLevelDiscounts' field, the 'has' method for this field will now return false
-
clearLabels
public void clearLabels()
Clears the 'labels' field, the 'has' method for this field will now return false
-
clearCategories
public void clearCategories()
Clears the 'categories' field, the 'has' method for this field will now return false
-
clearDeletedCategories
public void clearDeletedCategories()
Clears the 'deletedCategories' field, the 'has' method for this field will now return false
-
clearModifierSales
public void clearModifierSales()
Clears the 'modifierSales' field, the 'has' method for this field will now return false
-
clearGrossModifierSales
public void clearGrossModifierSales()
Clears the 'grossModifierSales' field, the 'has' method for this field will now return false
-
clearTotalDiscounts
public void clearTotalDiscounts()
Clears the 'totalDiscounts' field, the 'has' method for this field will now return false
-
clearTotalDiscountsFractionalCents
public void clearTotalDiscountsFractionalCents()
Clears the 'totalDiscountsFractionalCents' field, the 'has' method for this field will now return false
-
clearNetNumberSold
public void clearNetNumberSold()
Clears the 'netNumberSold' field, the 'has' method for this field will now return false
-
clearGrossItemSales
public void clearGrossItemSales()
Clears the 'grossItemSales' field, the 'has' method for this field will now return false
-
clearGrossSales
public void clearGrossSales()
Clears the 'grossSales' field, the 'has' method for this field will now return false
-
clearNetItemSales
public void clearNetItemSales()
Clears the 'netItemSales' field, the 'has' method for this field will now return false
-
clearNetModifierSales
public void clearNetModifierSales()
Clears the 'netModifierSales' field, the 'has' method for this field will now return false
-
clearNetSales
public void clearNetSales()
Clears the 'netSales' field, the 'has' method for this field will now return false
-
clearNetSalesFractionalCents
public void clearNetSalesFractionalCents()
Clears the 'netSalesFractionalCents' field, the 'has' method for this field will now return false
-
clearCostOfGoodsSold
public void clearCostOfGoodsSold()
Clears the 'costOfGoodsSold' field, the 'has' method for this field will now return false
-
clearGrossProfit
public void clearGrossProfit()
Clears the 'grossProfit' field, the 'has' method for this field will now return false
-
clearGrossProfitMargin
public void clearGrossProfitMargin()
Clears the 'grossProfitMargin' field, the 'has' method for this field will now return false
-
clearAverageNetSales
public void clearAverageNetSales()
Clears the 'averageNetSales' field, the 'has' method for this field will now return false
-
clearPercentTotalNetSales
public void clearPercentTotalNetSales()
Clears the 'percentTotalNetSales' field, the 'has' method for this field will now return false
-
clearPartialRefundAmount
public void clearPartialRefundAmount()
Clears the 'partialRefundAmount' field, the 'has' method for this field will now return false
-
clearPartialRefundRepaymentAmount
public void clearPartialRefundRepaymentAmount()
Clears the 'partialRefundRepaymentAmount' field, the 'has' method for this field will now return false
-
clearCategory
public void clearCategory()
Clears the 'category' field, the 'has' method for this field will now return false
-
clearSegmentLabel
public void clearSegmentLabel()
Clears the 'segmentLabel' field, the 'has' method for this field will now return false
-
clearStartTimestamp
public void clearStartTimestamp()
Clears the 'startTimestamp' field, the 'has' method for this field will now return false
-
clearEndTimestamp
public void clearEndTimestamp()
Clears the 'endTimestamp' field, the 'has' method for this field will now return false
-
clearChangeInNetSales
public void clearChangeInNetSales()
Clears the 'changeInNetSales' field, the 'has' method for this field will now return false
-
clearChangeInNetNumberSold
public void clearChangeInNetNumberSold()
Clears the 'changeInNetNumberSold' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public ReportItem copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(ReportItem src)
Copy all the changed fields from the given source to this instance.
-
-