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 boolean
boolean
Miscellaneous 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 ofPriceDataUsages
to 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.int
hashCode()
void
setAdditionalAttributes
(Map<String, Object> additionalAttributes) Miscellaneous attributes that can be added to this request in order to provide more information.void
setCustomerReferenceId
(String customerReferenceId) The ID of the customer this audit is for.void
setCustomerReferenceType
(String customerReferenceType) The transaction type this audit is for, e.g.void
setPriceDataUsages
(List<PriceDataUsage> priceDataUsages) The list ofPriceDataUsages
to recordvoid
setTransactionReferenceId
(String transactionReferenceId) The ix of the transaction that the price data was used in, e.g.void
setTransactionReferenceType
(String transactionReferenceType) The type of the transaction that the price data was used in, e.g.void
setUsageDate
(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 ofPriceDataUsages
to 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 ofPriceDataUsages
to 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
-