Class OrderAddDeliveryActionBuilder
- All Implemented Interfaces:
Builder<OrderAddDeliveryAction>
Example to create an instance using the builder pattern
OrderAddDeliveryAction orderAddDeliveryAction = OrderAddDeliveryAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) Line Items or Custom Line 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 OrderAddDeliveryAction with checking for non-null required valuesbuilds OrderAddDeliveryAction 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()
Line Items or Custom Line Items to be included in the Delivery.Parcels of the Delivery.key
of the ShippingMethod, required forMultiple
ShippingMode.items
(DeliveryItem... items) Line Items or Custom Line Items to be included in the Delivery.items
(List<DeliveryItem> items) Line Items or Custom Line Items to be included in the Delivery.of()
factory method for an instance of OrderAddDeliveryActionBuilderof
(OrderAddDeliveryAction template) create builder for OrderAddDeliveryAction instanceparcels
(ParcelDraft... parcels) Parcels of the Delivery.parcels
(List<ParcelDraft> parcels) Parcels of the Delivery.plusItems
(DeliveryItem... items) Line Items or Custom Line Items to be included in the Delivery.Line Items or Custom Line Items to be included in the Delivery.plusParcels
(ParcelDraft... parcels) Parcels of the Delivery.Parcels of the Delivery.setItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) Line Items or Custom Line 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.Line Items or Custom Line Items to be included in the Delivery.Parcels of the Delivery.
-
Constructor Details
-
OrderAddDeliveryActionBuilder
public OrderAddDeliveryActionBuilder()
-
-
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
Line Items or Custom Line Items to be included in the Delivery.
- Parameters:
items
- value to be set- Returns:
- Builder
-
items
Line Items or Custom Line Items to be included in the Delivery.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
Line Items or Custom Line Items to be included in the Delivery.
- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
public OrderAddDeliveryActionBuilder plusItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Line Items or Custom Line Items to be included in the Delivery.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
withItems
public OrderAddDeliveryActionBuilder withItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) Line Items or Custom Line Items to be included in the Delivery.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
addItems
Line Items or Custom Line Items to be included in the Delivery.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
setItems
Line Items or Custom Line Items to be included in the Delivery.
- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
address
public OrderAddDeliveryActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Address the
parcels
should be delivered to.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
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 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 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 produces the Parcel Added To Delivery Message.
- Parameters:
parcels
- value to be set- Returns:
- Builder
-
plusParcels
public OrderAddDeliveryActionBuilder plusParcels(Function<ParcelDraftBuilder, ParcelDraftBuilder> builder) Parcels of the Delivery.
If provided, this update action produces the Parcel Added To Delivery Message.
- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
withParcels
public OrderAddDeliveryActionBuilder withParcels(Function<ParcelDraftBuilder, ParcelDraftBuilder> builder) Parcels of the Delivery.
If provided, this update action produces the Parcel Added To Delivery Message.
- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
addParcels
Parcels of the Delivery.
If provided, this update action produces the Parcel Added To Delivery Message.
- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
setParcels
Parcels of the Delivery.
If provided, this update action produces the Parcel Added To Delivery Message.
- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
custom
public OrderAddDeliveryActionBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) Custom Fields for the Delivery.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public OrderAddDeliveryActionBuilder 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
Line Items or Custom Line 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 produces the Parcel Added To Delivery Message.
- Returns:
- parcels
-
getCustom
Custom Fields for the Delivery.
- Returns:
- custom
-
build
builds OrderAddDeliveryAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderAddDeliveryAction>
- Returns:
- OrderAddDeliveryAction
-
buildUnchecked
builds OrderAddDeliveryAction without checking for non-null required values- Returns:
- OrderAddDeliveryAction
-
of
factory method for an instance of OrderAddDeliveryActionBuilder- Returns:
- builder
-
of
create builder for OrderAddDeliveryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-