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