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

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

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

import io.sphere.sdk.carts.ItemState;
import io.sphere.sdk.channels.Channel;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.products.Price;
import io.sphere.sdk.taxcategories.TaxRate;

import javax.annotation.Nullable;
import java.util.Set;

final class LineItemImportDraftImpl extends Base implements LineItemImportDraft {
    @Nullable
    private final String productId;
    private final LocalizedString name;
    private final ProductVariantImportDraft variant;
    private final Price price;
    private final Long quantity;
    @Nullable
    private final Set state;
    @Nullable
    private final Reference supplyChannel;
    @Nullable
    private final TaxRate taxRate;

    public LineItemImportDraftImpl(final LocalizedString name, final String productId, final ProductVariantImportDraft variant, final Price price, final Long quantity, final Set state, final Reference supplyChannel, final TaxRate taxRate) {
        this.name = name;
        this.productId = productId;
        this.variant = variant;
        this.price = price;
        this.quantity = quantity;
        this.state = state;
        this.supplyChannel = supplyChannel;
        this.taxRate = taxRate;
    }

    @Override
    public LocalizedString getName() {
        return name;
    }

    @Override
    public Price getPrice() {
        return price;
    }

    @Nullable
    @Override
    public String getProductId() {
        return productId;
    }

    @Override
    public Long getQuantity() {
        return quantity;
    }

    @Override
    @Nullable
    public Set getState() {
        return state;
    }

    @Override
    @Nullable
    public Reference getSupplyChannel() {
        return supplyChannel;
    }

    @Override
    @Nullable
    public TaxRate getTaxRate() {
        return taxRate;
    }

    @Override
    public ProductVariantImportDraft getVariant() {
        return variant;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy