/** * Creates a new object initialized with the given values. * * @param customLineItemId initial value for the property * @param shippingDetails initial value for the property * @return new object initialized with the given values */ public static SetCustomLineItemShippingDetails of(final String customLineItemId, final ItemShippingDetailsDraft shippingDetails) { return new SetCustomLineItemShippingDetails(customLineItemId, shippingDetails); } }
public static TransitionLineItemState of(final String lineItemId, final long quantity, final Reference<State> fromState, final Reference<State> toState, final Optional<Instant> actualTransitionDate) { return new TransitionLineItemState(lineItemId, quantity, fromState, toState, actualTransitionDate); }
public static AddParcelToDelivery of(final String deliveryId, final ParcelDraft parcelDraft) { return new AddParcelToDelivery(deliveryId, parcelDraft.getMeasurements(), parcelDraft.getTrackingData()); }
public static TransitionCustomLineItemState of(final String customLineItemId, final long quantity, final Referenceable<State> fromState, final Referenceable<State> toState, final ZonedDateTime actualTransitionDate) { return new TransitionCustomLineItemState(customLineItemId, quantity, fromState, toState, actualTransitionDate); }
/** * Creates a copied update action initialized with the given parameter, the rest of the parameters are copied from the original object. * * @return new object initialized with the copied values from the original object */ public SetParcelItems withItems(final List<DeliveryItem> items) { return new SetParcelItems(getParcelId(), items); } }
/** * Creates a copied update action initialized with the given parameter, the rest of the parameters are copied from the original object. * * @return new object initialized with the copied values from the original object */ public SetParcelTrackingData withTrackingData(final TrackingData trackingData) { return new SetParcelTrackingData(getParcelId(), trackingData); } }
/** * Creates a copied update action initialized with the given parameter, the rest of the parameters are copied from the original object. * * @return new object initialized with the copied values from the original object */ public SetParcelMeasurements withMeasurements(final ParcelMeasurements measurements) { return new SetParcelMeasurements(getParcelId(), measurements); } }
/** * Creates a new object initialized with the given values. * * @param deliveryId initial value for the property * @return new object initialized with the given values */ public static RemoveDelivery of(final String deliveryId) { return new RemoveDelivery(deliveryId); } }
/** * Creates a new object initialized with the given values. * * @param addressKey initial value for the property * @return new object initialized with the given values */ public static RemoveItemShippingAddress of(final String addressKey) { return new RemoveItemShippingAddress(addressKey); } }
/** * Creates a new object initialized with the given values. * * @return new object initialized with the given values */ public static SetCustomerId ofUnset() { return new SetCustomerId(null); } }
/** * Creates a new object initialized with the given values. * * @param address initial value for the property * @return new object initialized with the given values */ public static UpdateItemShippingAddress of(final Address address) { return new UpdateItemShippingAddress(address); } }
/** * Creates a new object initialized with the given values. * * @param address initial value for the property * @return new object initialized with the given values */ public static AddItemShippingAddress of(final Address address) { return new AddItemShippingAddress(address); } }
/** * Creates a new object initialized with the given values. * * @param parcelId initial value for the property * @return new object initialized with the given values */ public static RemoveParcelFromDelivery of(final String parcelId) { return new RemoveParcelFromDelivery(parcelId); } }
/** * Creates a new object initialized with the given values. * * @param lineItemId initial value for the property * @param shippingDetails initial value for the property * @return new object initialized with the given values */ public static SetLineItemShippingDetails of(final String lineItemId, final ItemShippingDetailsDraft shippingDetails) { return new SetLineItemShippingDetails(lineItemId, shippingDetails); } }
/** * Creates a new object initialized with the given values. * * @param deliveryId initial value for the property * @param items initial value for the property * @return new object initialized with the given values */ public static SetDeliveryItems of(final String deliveryId, final List<DeliveryItem> items) { return new SetDeliveryItems(deliveryId, items); } }
public static TransitionLineItemState of(final String lineItemId, final long quantity, final Referenceable<State> fromState, final Referenceable<State> toState, final ZonedDateTime actualTransitionDate) { return new TransitionLineItemState(lineItemId, quantity, fromState, toState, actualTransitionDate); }
public static TransitionCustomLineItemState of(final String customLineItemId, final long quantity, final Referenceable<State> fromState, final Referenceable<State> toState, final ZonedDateTime actualTransitionDate) { return new TransitionCustomLineItemState(customLineItemId, quantity, fromState, toState, actualTransitionDate); }
public static TransitionLineItemState of(final String lineItemId, final long quantity, final Referenceable<State> fromState, final Referenceable<State> toState, final ZonedDateTime actualTransitionDate) { return new TransitionLineItemState(lineItemId, quantity, fromState, toState, actualTransitionDate); }
public static TransitionCustomLineItemState of(final String customLineItemId, final long quantity, final Referenceable<State> fromState, final Referenceable<State> toState, final ZonedDateTime actualTransitionDate) { return new TransitionCustomLineItemState(customLineItemId, quantity, fromState, toState, actualTransitionDate); }
public static TransitionLineItemState of(final String lineItemId, final long quantity, final Referenceable<State> fromState, final Referenceable<State> toState, final ZonedDateTime actualTransitionDate) { return new TransitionLineItemState(lineItemId, quantity, fromState, toState, actualTransitionDate); }