Package com.chrt.api.types
Class ShippingTaskAddedWebhookPayload.Builder
- java.lang.Object
-
- com.chrt.api.types.ShippingTaskAddedWebhookPayload.Builder
-
- All Implemented Interfaces:
ShippingTaskAddedWebhookPayload._FinalStage,ShippingTaskAddedWebhookPayload.EventTimestampStage,ShippingTaskAddedWebhookPayload.OrderIdStage,ShippingTaskAddedWebhookPayload.TaskGroupIdStage,ShippingTaskAddedWebhookPayload.TaskIdStage
- Enclosing class:
- ShippingTaskAddedWebhookPayload
public static final class ShippingTaskAddedWebhookPayload.Builder extends java.lang.Object implements ShippingTaskAddedWebhookPayload.EventTimestampStage, ShippingTaskAddedWebhookPayload.OrderIdStage, ShippingTaskAddedWebhookPayload.TaskGroupIdStage, ShippingTaskAddedWebhookPayload.TaskIdStage, ShippingTaskAddedWebhookPayload._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public ShippingTaskAddedWebhookPayload.Builder from(ShippingTaskAddedWebhookPayload other)
- Specified by:
fromin interfaceShippingTaskAddedWebhookPayload.EventTimestampStage
-
eventTimestamp
public ShippingTaskAddedWebhookPayload.OrderIdStage eventTimestamp(@NotNull java.time.OffsetDateTime eventTimestamp)
UTC timestamp when the event occurred
UTC timestamp when the event occurred
- Specified by:
eventTimestampin interfaceShippingTaskAddedWebhookPayload.EventTimestampStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
orderId
public ShippingTaskAddedWebhookPayload.TaskGroupIdStage orderId(@NotNull java.lang.String orderId)
The order containing the task group
The order containing the task group
- Specified by:
orderIdin interfaceShippingTaskAddedWebhookPayload.OrderIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
taskGroupId
public ShippingTaskAddedWebhookPayload.TaskIdStage taskGroupId(@NotNull java.lang.String taskGroupId)
The task group the task was added to
The task group the task was added to
- Specified by:
taskGroupIdin interfaceShippingTaskAddedWebhookPayload.TaskGroupIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
taskId
public ShippingTaskAddedWebhookPayload._FinalStage taskId(@NotNull java.lang.String taskId)
The task that was added
The task that was added
- Specified by:
taskIdin interfaceShippingTaskAddedWebhookPayload.TaskIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
location
public ShippingTaskAddedWebhookPayload._FinalStage location(Nullable<LocationFeature> location)
The location where the task is to be performed
- Specified by:
locationin interfaceShippingTaskAddedWebhookPayload._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
location
public ShippingTaskAddedWebhookPayload._FinalStage location(LocationFeature location)
The location where the task is to be performed
- Specified by:
locationin interfaceShippingTaskAddedWebhookPayload._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
location
public ShippingTaskAddedWebhookPayload._FinalStage location(java.util.Optional<LocationFeature> location)
The location where the task is to be performed
- Specified by:
locationin interfaceShippingTaskAddedWebhookPayload._FinalStage
-
action
public ShippingTaskAddedWebhookPayload._FinalStage action(Nullable<Action> action)
The task action type (e.g., PICKUP, DELIVER)
- Specified by:
actionin interfaceShippingTaskAddedWebhookPayload._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
public ShippingTaskAddedWebhookPayload._FinalStage action(Action action)
The task action type (e.g., PICKUP, DELIVER)
- Specified by:
actionin interfaceShippingTaskAddedWebhookPayload._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
public ShippingTaskAddedWebhookPayload._FinalStage action(java.util.Optional<Action> action)
The task action type (e.g., PICKUP, DELIVER)
- Specified by:
actionin interfaceShippingTaskAddedWebhookPayload._FinalStage
-
eventType
public ShippingTaskAddedWebhookPayload._FinalStage eventType(java.lang.String eventType)
- Specified by:
eventTypein interfaceShippingTaskAddedWebhookPayload._FinalStage
-
eventType
public ShippingTaskAddedWebhookPayload._FinalStage eventType(java.util.Optional<java.lang.String> eventType)
- Specified by:
eventTypein interfaceShippingTaskAddedWebhookPayload._FinalStage
-
build
public ShippingTaskAddedWebhookPayload build()
- Specified by:
buildin interfaceShippingTaskAddedWebhookPayload._FinalStage
-
-