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