Class StagedOrderAddDeliveryActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderAddDeliveryAction>
Example to create an instance using the builder pattern
StagedOrderAddDeliveryAction stagedOrderAddDeliveryAction = StagedOrderAddDeliveryAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) Items to be included in the Delivery.addParcels
(Function<ParcelDraftBuilder, ParcelDraft> builder) Parcels of the Delivery.address
(BaseAddress address) Address theparcels
should be delivered to.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Address theparcels
should be delivered to.build()
builds StagedOrderAddDeliveryAction with checking for non-null required valuesbuilds StagedOrderAddDeliveryAction without checking for non-null required valuescustom
(CustomFieldsDraft custom) Custom Fields for the Delivery.Custom Fields for the Delivery.deliveryKey
(String deliveryKey) key
of an existing Delivery.Address theparcels
should be delivered to.Custom Fields for the Delivery.key
of an existing Delivery.getItems()
Items to be included in the Delivery.Parcels of the Delivery.key
of the ShippingMethod, required forMultiple
ShippingMode.items
(DeliveryItem... items) Items to be included in the Delivery.items
(List<DeliveryItem> items) Items to be included in the Delivery.of()
factory method for an instance of StagedOrderAddDeliveryActionBuilderof
(StagedOrderAddDeliveryAction template) create builder for StagedOrderAddDeliveryAction instanceparcels
(ParcelDraft... parcels) Parcels of the Delivery.parcels
(List<ParcelDraft> parcels) Parcels of the Delivery.plusItems
(DeliveryItem... items) Items to be included in the Delivery.Items to be included in the Delivery.plusParcels
(ParcelDraft... parcels) Parcels of the Delivery.Parcels of the Delivery.setItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) Items to be included in the Delivery.setParcels
(Function<ParcelDraftBuilder, ParcelDraft> builder) Parcels of the Delivery.shippingKey
(String shippingKey) key
of the ShippingMethod, required forMultiple
ShippingMode.withAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Address theparcels
should be delivered to.Custom Fields for the Delivery.Items to be included in the Delivery.Parcels of the Delivery.
-
Constructor Details
-
StagedOrderAddDeliveryActionBuilder
public StagedOrderAddDeliveryActionBuilder()
-
-
Method Details
-
deliveryKey
key
of an existing Delivery.- Parameters:
deliveryKey
- value to be set- Returns:
- Builder
-
shippingKey
key
of the ShippingMethod, required forMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
items
Items to be included in the Delivery.
- Parameters:
items
- value to be set- Returns:
- Builder
-
items
Items to be included in the Delivery.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
Items to be included in the Delivery.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
public StagedOrderAddDeliveryActionBuilder plusItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Items to be included in the Delivery.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
withItems
public StagedOrderAddDeliveryActionBuilder withItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Items to be included in the Delivery.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
addItems
public StagedOrderAddDeliveryActionBuilder addItems(Function<DeliveryItemBuilder, DeliveryItem> builder) Items to be included in the Delivery.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
setItems
public StagedOrderAddDeliveryActionBuilder setItems(Function<DeliveryItemBuilder, DeliveryItem> builder) Items to be included in the Delivery.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
address
public StagedOrderAddDeliveryActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Address the
parcels
should be delivered to.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public StagedOrderAddDeliveryActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Address the
parcels
should be delivered to.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Address the
parcels
should be delivered to.- Parameters:
address
- value to be set- Returns:
- Builder
-
parcels
Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Parameters:
parcels
- value to be set- Returns:
- Builder
-
parcels
Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Parameters:
parcels
- value to be set- Returns:
- Builder
-
plusParcels
Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Parameters:
parcels
- value to be set- Returns:
- Builder
-
plusParcels
public StagedOrderAddDeliveryActionBuilder plusParcels(Function<ParcelDraftBuilder, ParcelDraftBuilder> builder) Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
withParcels
public StagedOrderAddDeliveryActionBuilder withParcels(Function<ParcelDraftBuilder, ParcelDraftBuilder> builder) Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
addParcels
public StagedOrderAddDeliveryActionBuilder addParcels(Function<ParcelDraftBuilder, ParcelDraft> builder) Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
setParcels
public StagedOrderAddDeliveryActionBuilder setParcels(Function<ParcelDraftBuilder, ParcelDraft> builder) Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
custom
public StagedOrderAddDeliveryActionBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) Custom Fields for the Delivery.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public StagedOrderAddDeliveryActionBuilder withCustom(Function<CustomFieldsDraftBuilder, CustomFieldsDraft> builder) Custom Fields for the Delivery.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields for the Delivery.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
getDeliveryKey
key
of an existing Delivery.- Returns:
- deliveryKey
-
getShippingKey
key
of the ShippingMethod, required forMultiple
ShippingMode.- Returns:
- shippingKey
-
getItems
Items to be included in the Delivery.
- Returns:
- items
-
getAddress
Address the
parcels
should be delivered to.- Returns:
- address
-
getParcels
Parcels of the Delivery.
If provided, this update action also produces the Parcel Added To Delivery Message.
- Returns:
- parcels
-
getCustom
Custom Fields for the Delivery.
- Returns:
- custom
-
build
builds StagedOrderAddDeliveryAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderAddDeliveryAction>
- Returns:
- StagedOrderAddDeliveryAction
-
buildUnchecked
builds StagedOrderAddDeliveryAction without checking for non-null required values- Returns:
- StagedOrderAddDeliveryAction
-
of
factory method for an instance of StagedOrderAddDeliveryActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderAddDeliveryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-