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

io.sphere.sdk.carts.LineItemImplBase Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.carts;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.cartdiscounts.DiscountedLineItemPriceForQuantity;
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.products.ProductVariant;
import io.sphere.sdk.producttypes.ProductType;
import io.sphere.sdk.taxcategories.TaxRate;
import io.sphere.sdk.types.CustomFields;
import java.lang.Long;
import java.lang.String;
import java.time.ZonedDateTime;
import java.util.List;
import java.util.Set;
import javax.annotation.Generated;
import javax.annotation.Nullable;
import javax.money.MonetaryAmount;

@Generated(
    value = "io.sphere.sdk.annotations.processors.generators.ResourceValueImplGenerator",
    comments = "Generated from: io.sphere.sdk.carts.LineItem"
)
abstract class LineItemImplBase extends Base implements LineItem {
  @Nullable
  private ZonedDateTime addedAt;

  private CustomFields custom;

  private List discountedPricePerQuantity;

  @Nullable
  private Reference distributionChannel;

  private String id;

  @Nullable
  private ZonedDateTime lastModifiedAt;

  private LineItemMode lineItemMode;

  private LocalizedString name;

  private Price price;

  private LineItemPriceMode priceMode;

  private String productId;

  @Nullable
  private String productKey;

  @Nullable
  private LocalizedString productSlug;

  @Nullable
  private Reference productType;

  private Long quantity;

  @Nullable
  private ItemShippingDetails shippingDetails;

  private Set state;

  @Nullable
  private Reference supplyChannel;

  @Nullable
  private TaxRate taxRate;

  @Nullable
  private TaxedItemPrice taxedPrice;

  private MonetaryAmount totalPrice;

  private ProductVariant variant;

  @JsonCreator
  LineItemImplBase(@Nullable final ZonedDateTime addedAt, final CustomFields custom,
      final List discountedPricePerQuantity,
      @Nullable final Reference distributionChannel, final String id,
      @Nullable final ZonedDateTime lastModifiedAt, final LineItemMode lineItemMode,
      final LocalizedString name, final Price price, final LineItemPriceMode priceMode,
      final String productId, @Nullable final String productKey,
      @Nullable final LocalizedString productSlug,
      @Nullable final Reference productType, final Long quantity,
      @Nullable final ItemShippingDetails shippingDetails, final Set state,
      @Nullable final Reference supplyChannel, @Nullable final TaxRate taxRate,
      @Nullable final TaxedItemPrice taxedPrice, final MonetaryAmount totalPrice,
      final ProductVariant variant) {
    this.addedAt = addedAt;
    this.custom = custom;
    this.discountedPricePerQuantity = discountedPricePerQuantity;
    this.distributionChannel = distributionChannel;
    this.id = id;
    this.lastModifiedAt = lastModifiedAt;
    this.lineItemMode = lineItemMode;
    this.name = name;
    this.price = price;
    this.priceMode = priceMode;
    this.productId = productId;
    this.productKey = productKey;
    this.productSlug = productSlug;
    this.productType = productType;
    this.quantity = quantity;
    this.shippingDetails = shippingDetails;
    this.state = state;
    this.supplyChannel = supplyChannel;
    this.taxRate = taxRate;
    this.taxedPrice = taxedPrice;
    this.totalPrice = totalPrice;
    this.variant = variant;
  }

  @Nullable
  public ZonedDateTime getAddedAt() {
    return addedAt;
  }

  public CustomFields getCustom() {
    return custom;
  }

  public List getDiscountedPricePerQuantity() {
    return discountedPricePerQuantity;
  }

  @Nullable
  public Reference getDistributionChannel() {
    return distributionChannel;
  }

  public String getId() {
    return id;
  }

  @Nullable
  public ZonedDateTime getLastModifiedAt() {
    return lastModifiedAt;
  }

  public LineItemMode getLineItemMode() {
    return lineItemMode;
  }

  public LocalizedString getName() {
    return name;
  }

  public Price getPrice() {
    return price;
  }

  public LineItemPriceMode getPriceMode() {
    return priceMode;
  }

  public String getProductId() {
    return productId;
  }

  @Nullable
  public String getProductKey() {
    return productKey;
  }

  @Nullable
  public LocalizedString getProductSlug() {
    return productSlug;
  }

  @Nullable
  public Reference getProductType() {
    return productType;
  }

  public Long getQuantity() {
    return quantity;
  }

  @Nullable
  public ItemShippingDetails getShippingDetails() {
    return shippingDetails;
  }

  public Set getState() {
    return state;
  }

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

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

  @Nullable
  public TaxedItemPrice getTaxedPrice() {
    return taxedPrice;
  }

  public MonetaryAmount getTotalPrice() {
    return totalPrice;
  }

  public ProductVariant getVariant() {
    return variant;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy