io.sphere.sdk.orders.CustomLineItemImportDraftImpl Maven / Gradle / Ivy
package io.sphere.sdk.orders;
import io.sphere.sdk.carts.ItemState;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.taxcategories.TaxCategory;
import io.sphere.sdk.taxcategories.TaxRate;
import javax.annotation.Nullable;
import javax.money.MonetaryAmount;
import java.util.Set;
final class CustomLineItemImportDraftImpl implements CustomLineItemImportDraft {
private final String id;
private final LocalizedString name;
private final MonetaryAmount money;
private final String slug;
private final Long quantity;
@Nullable
private final Set state;
private final Reference taxCategory;
@Nullable
private final TaxRate taxRate;
public CustomLineItemImportDraftImpl(final String id, final LocalizedString name, final MonetaryAmount money, final String slug, final Long quantity, final Set state, final Reference taxCategory, final TaxRate taxRate) {
this.id = id;
this.name = name;
this.money = money;
this.slug = slug;
this.quantity = quantity;
this.state = state;
this.taxCategory = taxCategory;
this.taxRate = taxRate;
}
public String getId() {
return id;
}
@Override
public MonetaryAmount getMoney() {
return money;
}
@Override
public LocalizedString getName() {
return name;
}
@Override
public Long getQuantity() {
return quantity;
}
@Override
public String getSlug() {
return slug;
}
@Override
@Nullable
public Set getState() {
return state;
}
@Override
public Reference getTaxCategory() {
return taxCategory;
}
@Override
@Nullable
public TaxRate getTaxRate() {
return taxRate;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy