Class RecordPriceDataUsageRequest
java.lang.Object
com.broadleafcommerce.pricing.client.domain.usage.RecordPriceDataUsageRequest
- All Implemented Interfaces:
Serializable
Request DTO to record price data usages.
Useful for PriceData that are limited by quantity.
- Since:
- Pricing Client 2.0.3
- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMiscellaneous attributes that can be added to this request in order to provide more information.The ID of the customer this audit is for.The transaction type this audit is for, e.g.The list ofPriceDataUsagesto recordThe ix of the transaction that the price data was used in, e.g.The type of the transaction that the price data was used in, e.g.The usage date.inthashCode()voidsetAdditionalAttributes(Map<String, Object> additionalAttributes) Miscellaneous attributes that can be added to this request in order to provide more information.voidsetCustomerReferenceId(String customerReferenceId) The ID of the customer this audit is for.voidsetCustomerReferenceType(String customerReferenceType) The transaction type this audit is for, e.g.voidsetPriceDataUsages(List<PriceDataUsage> priceDataUsages) The list ofPriceDataUsagesto recordvoidsetTransactionReferenceId(String transactionReferenceId) The ix of the transaction that the price data was used in, e.g.voidsetTransactionReferenceType(String transactionReferenceType) The type of the transaction that the price data was used in, e.g.voidsetUsageDate(Instant usageDate) The usage date.toString()
-
Constructor Details
-
RecordPriceDataUsageRequest
public RecordPriceDataUsageRequest()
-
-
Method Details
-
getTransactionReferenceType
The type of the transaction that the price data was used in, e.g.DefaultPriceDataTransactionReferenceTypes.BLC_CART. -
getTransactionReferenceId
The ix of the transaction that the price data was used in, e.g. cart id. -
getCustomerReferenceType
The transaction type this audit is for, e.g.DefaultPriceDataCustomerReferenceTypes.- See Also:
-
getCustomerReferenceId
The ID of the customer this audit is for. -
getPriceDataUsages
The list ofPriceDataUsagesto record -
getUsageDate
The usage date. -
getAdditionalAttributes
Miscellaneous attributes that can be added to this request in order to provide more information. -
setTransactionReferenceType
The type of the transaction that the price data was used in, e.g.DefaultPriceDataTransactionReferenceTypes.BLC_CART. -
setTransactionReferenceId
The ix of the transaction that the price data was used in, e.g. cart id. -
setCustomerReferenceType
The transaction type this audit is for, e.g.DefaultPriceDataCustomerReferenceTypes.- See Also:
-
setCustomerReferenceId
The ID of the customer this audit is for. -
setPriceDataUsages
The list ofPriceDataUsagesto record -
setUsageDate
The usage date. -
setAdditionalAttributes
Miscellaneous attributes that can be added to this request in order to provide more information. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-