Class InventoryTransaction
- java.lang.Object
-
- com.broadleafcommerce.inventory.domain.InventoryTransaction
-
public class InventoryTransaction extends Object
-
-
Constructor Summary
Constructors Constructor Description InventoryTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getBatchId()
This is just an arbitrary Id assigned to 1 or more records that are part of a logical transaction.Instant
getDateCreated()
The date that the transaction was created.Instant
getDateProcessed()
Date that this transaction was processed.String
getId()
Integer
getQuantity()
Quantity associated with this transaction representing the delta or change.String
getReferenceNumber()
Arbitrary external reference number.String
getSkuInventoryId()
This is the contextId of the associatedSkuInventory
record.String
getTransactionType()
Indictes the type of transaction that this represents.int
hashCode()
void
setBatchId(String batchId)
This is just an arbitrary Id assigned to 1 or more records that are part of a logical transaction.void
setDateCreated(Instant dateCreated)
The date that the transaction was created.void
setDateProcessed(Instant dateProcessed)
Date that this transaction was processed.void
setId(String id)
void
setQuantity(Integer quantity)
Quantity associated with this transaction representing the delta or change.void
setReferenceNumber(String referenceNumber)
Arbitrary external reference number.void
setSkuInventoryId(String skuInventoryId)
This is the contextId of the associatedSkuInventory
record.void
setTransactionType(String transactionType)
Indictes the type of transaction that this represents.String
toString()
-
-
-
Method Detail
-
getId
public String getId()
-
getSkuInventoryId
public String getSkuInventoryId()
This is the contextId of the associatedSkuInventory
record.
-
getTransactionType
public String getTransactionType()
Indictes the type of transaction that this represents.
-
getQuantity
public Integer getQuantity()
Quantity associated with this transaction representing the delta or change.
-
getDateProcessed
public Instant getDateProcessed()
Date that this transaction was processed. For example, a Soft Reservation might be "processed" by the application of a hard reservation. This will be null if not yet processed.
-
getDateCreated
public Instant getDateCreated()
The date that the transaction was created.
-
getReferenceNumber
public String getReferenceNumber()
Arbitrary external reference number. Typically this will be a PO number or a sales order number, but could also be another 1st or 3rd party system's reference number (e.g. a reference number for a write-off).
-
getBatchId
public String getBatchId()
This is just an arbitrary Id assigned to 1 or more records that are part of a logical transaction. Typically a UUID or ULID. Should be the same across records that are batched in the same logical transaction.
-
setId
public void setId(String id)
-
setSkuInventoryId
public void setSkuInventoryId(String skuInventoryId)
This is the contextId of the associatedSkuInventory
record.
-
setTransactionType
public void setTransactionType(String transactionType)
Indictes the type of transaction that this represents.
-
setQuantity
public void setQuantity(Integer quantity)
Quantity associated with this transaction representing the delta or change.
-
setDateProcessed
public void setDateProcessed(Instant dateProcessed)
Date that this transaction was processed. For example, a Soft Reservation might be "processed" by the application of a hard reservation. This will be null if not yet processed.
-
setDateCreated
public void setDateCreated(Instant dateCreated)
The date that the transaction was created.
-
setReferenceNumber
public void setReferenceNumber(String referenceNumber)
Arbitrary external reference number. Typically this will be a PO number or a sales order number, but could also be another 1st or 3rd party system's reference number (e.g. a reference number for a write-off).
-
setBatchId
public void setBatchId(String batchId)
This is just an arbitrary Id assigned to 1 or more records that are part of a logical transaction. Typically a UUID or ULID. Should be the same across records that are batched in the same logical transaction.
-
canEqual
protected boolean canEqual(Object other)
-
-