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