Class OrderAddDeliveryActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<OrderAddDeliveryAction>
Example to create an instance using the builder pattern
OrderAddDeliveryAction orderAddDeliveryAction = OrderAddDeliveryAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) add the value to the items using the builder functionaddParcels
(Function<ParcelDraftBuilder, ParcelDraft> builder) add the value to the parcels using the builder functionaddress
(BaseAddress address) Polymorphic base type that represents a postal address and contact details.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Polymorphic base type that represents a postal address and contact details.build()
builds OrderAddDeliveryAction with checking for non-null required valuesbuilds OrderAddDeliveryAction without checking for non-null required valuescustom
(CustomFieldsDraft custom) Custom Fields for the Transaction.Custom Fields for the Transaction.deliveryKey
(String deliveryKey) User-defined unique identifier of a Delivery.Polymorphic base type that represents a postal address and contact details.Custom Fields for the Transaction.User-defined unique identifier of a Delivery.getItems()
value of items}value of parcels}User-defined unique identifier of the Shipping Method in a Cart withMulti
ShippingMode.items
(DeliveryItem... items) set values to the itemsitems
(List<DeliveryItem> items) set value to the itemsof()
factory method for an instance of OrderAddDeliveryActionBuilderof
(OrderAddDeliveryAction template) create builder for OrderAddDeliveryAction instanceparcels
(ParcelDraft... parcels) set values to the parcelsparcels
(List<ParcelDraft> parcels) set value to the parcelsplusItems
(DeliveryItem... items) add values to the itemsadd the value to the items using the builder functionplusParcels
(ParcelDraft... parcels) add values to the parcelsadd the value to the parcels using the builder functionsetItems
(Function<DeliveryItemBuilder, DeliveryItem> builder) set the value to the items using the builder functionsetParcels
(Function<ParcelDraftBuilder, ParcelDraft> builder) set the value to the parcels using the builder functionshippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMulti
ShippingMode.withAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Polymorphic base type that represents a postal address and contact details.Custom Fields for the Transaction.set the value to the items using the builder functionset the value to the parcels using the builder function
-
Constructor Details
-
OrderAddDeliveryActionBuilder
public OrderAddDeliveryActionBuilder()
-
-
Method Details
-
deliveryKey
User-defined unique identifier of a Delivery.
- Parameters:
deliveryKey
- value to be set- Returns:
- Builder
-
items
set values to the items- Parameters:
items
- value to be set- Returns:
- Builder
-
items
set value to the items- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
add values to the items- Parameters:
items
- value to be set- Returns:
- Builder
-
plusItems
public OrderAddDeliveryActionBuilder plusItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) add the value to the items using the builder function- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
withItems
public OrderAddDeliveryActionBuilder withItems(Function<DeliveryItemBuilder, DeliveryItemBuilder> builder) set the value to the items using the builder function- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
addItems
add the value to the items using the builder function- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
setItems
set the value to the items using the builder function- Parameters:
builder
- function to build the items value- Returns:
- Builder
-
shippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multi
ShippingMode.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
address
public OrderAddDeliveryActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
address
- value to be set- Returns:
- Builder
-
parcels
set values to the parcels- Parameters:
parcels
- value to be set- Returns:
- Builder
-
parcels
set value to the parcels- Parameters:
parcels
- value to be set- Returns:
- Builder
-
plusParcels
add values to the parcels- Parameters:
parcels
- value to be set- Returns:
- Builder
-
plusParcels
public OrderAddDeliveryActionBuilder plusParcels(Function<ParcelDraftBuilder, ParcelDraftBuilder> builder) add the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
withParcels
public OrderAddDeliveryActionBuilder withParcels(Function<ParcelDraftBuilder, ParcelDraftBuilder> builder) set the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
addParcels
add the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
setParcels
set the value to the parcels using the builder function- Parameters:
builder
- function to build the parcels value- Returns:
- Builder
-
custom
public OrderAddDeliveryActionBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) Custom Fields for the Transaction.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public OrderAddDeliveryActionBuilder withCustom(Function<CustomFieldsDraftBuilder, CustomFieldsDraft> builder) Custom Fields for the Transaction.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields for the Transaction.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
getDeliveryKey
User-defined unique identifier of a Delivery.
- Returns:
- deliveryKey
-
getItems
value of items}- Returns:
- items
-
getShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multi
ShippingMode.- Returns:
- shippingKey
-
getAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Returns:
- address
-
getParcels
value of parcels}- Returns:
- parcels
-
getCustom
Custom Fields for the Transaction.
- Returns:
- custom
-
build
builds OrderAddDeliveryAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-