All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.orders.ReturnItemDraft Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.orders;

import io.sphere.sdk.models.Base;

import javax.annotation.Nullable;

public class ReturnItemDraft extends Base {
    private final Long quantity;
    private final String lineItemId;
    private final ReturnShipmentState shipmentState;
    @Nullable
    private final String comment;

    private ReturnItemDraft(final Long quantity, final String lineItemId, final ReturnShipmentState shipmentState, @Nullable final String comment) {
        this.quantity = quantity;
        this.lineItemId = lineItemId;
        this.shipmentState = shipmentState;
        this.comment = comment;
    }

    public static ReturnItemDraft of(final long quantity, final String lineItemId, final ReturnShipmentState shipmentState, @Nullable final String comment) {
        return new ReturnItemDraft(quantity, lineItemId, shipmentState, comment);
    }

    public static ReturnItemDraft of(final long quantity, final String lineItemId, final ReturnShipmentState shipmentState) {
        return of(quantity, lineItemId, shipmentState, null);
    }

    public Long getQuantity() {
        return quantity;
    }

    public String getLineItemId() {
        return lineItemId;
    }

    public ReturnShipmentState getShipmentState() {
        return shipmentState;
    }

    @Nullable
    public String getComment() {
        return comment;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy