io.sphere.sdk.orders.commands.updateactions.TransitionLineItemLikeState Maven / Gradle / Ivy
package io.sphere.sdk.orders.commands.updateactions;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.orders.Order;
import io.sphere.sdk.states.State;
import javax.annotation.Nullable;
import java.time.ZonedDateTime;
abstract class TransitionLineItemLikeState extends UpdateActionImpl {
protected final Long quantity;
protected final Reference fromState;
protected final Reference toState;
@Nullable
protected final ZonedDateTime actualTransitionDate;
protected TransitionLineItemLikeState(final String action, final Long quantity, @Nullable final ZonedDateTime actualTransitionDate, final Reference toState, final Reference fromState) {
super(action);
this.quantity = quantity;
this.actualTransitionDate = actualTransitionDate;
this.toState = toState;
this.fromState = fromState;
}
public Long getQuantity() {
return quantity;
}
public Reference getFromState() {
return fromState;
}
public Reference getToState() {
return toState;
}
@Nullable
public ZonedDateTime getActualTransitionDate() {
return actualTransitionDate;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy