public final class InventoryEntryDraftDsl extends Base
Modifier and Type | Method and Description |
---|---|
CustomFieldsDraft |
getCustom() |
ZonedDateTime |
getExpectedDelivery() |
Long |
getQuantityOnStock()
Overall amount of stock.
|
Integer |
getRestockableInDays() |
String |
getSku() |
ResourceIdentifier<Channel> |
getSupplyChannel() |
InventoryEntryDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static InventoryEntryDraftDsl |
of(InventoryEntryDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static InventoryEntryDraftDsl |
of(String sku,
Long quantityOnStock)
Creates a new object initialized with the given values.
|
static InventoryEntryDraftDsl |
of(String sku,
Long quantityOnStock,
ZonedDateTime expectedDelivery)
Creates a new object initialized with the given values.
|
static InventoryEntryDraftDsl |
of(String sku,
Long quantityOnStock,
ZonedDateTime expectedDelivery,
Integer restockableInDays,
ResourceIdentifier<Channel> supplyChannel)
Creates a new object initialized with the given values.
|
T |
withCustom(CustomFieldsDraft custom) |
T |
withExpectedDelivery(ZonedDateTime expectedDelivery) |
T |
withQuantityOnStock(Long quantityOnStock) |
T |
withRestockableInDays(Integer restockableInDays) |
T |
withSku(String sku) |
InventoryEntryDraftDsl |
withSupplyChannel(Referenceable<Channel> supplyChannel) |
T |
withSupplyChannel(ResourceIdentifier<Channel> supplyChannel) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
of, of
public InventoryEntryDraftDsl withSupplyChannel(@Nullable Referenceable<Channel> supplyChannel)
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface InventoryEntryDraft
getCustom
in interface CustomDraft
@Nullable public ZonedDateTime getExpectedDelivery()
getExpectedDelivery
in interface InventoryEntryDraft
public Long getQuantityOnStock()
InventoryEntryDraft
getQuantityOnStock
in interface InventoryEntryDraft
InventoryEntryDraft.getQuantityOnStock()
@Nullable public Integer getRestockableInDays()
getRestockableInDays
in interface InventoryEntryDraft
public String getSku()
getSku
in interface InventoryEntryDraft
@Nullable public ResourceIdentifier<Channel> getSupplyChannel()
getSupplyChannel
in interface InventoryEntryDraft
public InventoryEntryDraftBuilder newBuilder()
public T withCustom(@Nullable CustomFieldsDraft custom)
public T withExpectedDelivery(@Nullable ZonedDateTime expectedDelivery)
public T withQuantityOnStock(Long quantityOnStock)
public T withSku(String sku)
public T withSupplyChannel(@Nullable ResourceIdentifier<Channel> supplyChannel)
public static InventoryEntryDraftDsl of(String sku, Long quantityOnStock)
sku
- initial value for the InventoryEntryDraft.getSku()
propertyquantityOnStock
- initial value for the InventoryEntryDraft.getQuantityOnStock()
propertypublic static InventoryEntryDraftDsl of(String sku, Long quantityOnStock, @Nullable ZonedDateTime expectedDelivery)
sku
- initial value for the InventoryEntryDraft.getSku()
propertyquantityOnStock
- initial value for the InventoryEntryDraft.getQuantityOnStock()
propertyexpectedDelivery
- initial value for the InventoryEntryDraft.getExpectedDelivery()
propertypublic static InventoryEntryDraftDsl of(String sku, Long quantityOnStock, @Nullable ZonedDateTime expectedDelivery, @Nullable Integer restockableInDays, @Nullable ResourceIdentifier<Channel> supplyChannel)
sku
- initial value for the InventoryEntryDraft.getSku()
propertyquantityOnStock
- initial value for the InventoryEntryDraft.getQuantityOnStock()
propertyexpectedDelivery
- initial value for the InventoryEntryDraft.getExpectedDelivery()
propertyrestockableInDays
- initial value for the InventoryEntryDraft.getRestockableInDays()
propertysupplyChannel
- initial value for the InventoryEntryDraft.getSupplyChannel()
propertypublic static InventoryEntryDraftDsl of(InventoryEntryDraft template)
template
- the template