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

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

package io.sphere.sdk.orders;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.neovisionaries.i18n.CountryCode;
import io.sphere.sdk.carts.Cart;
import io.sphere.sdk.carts.CustomLineItem;
import io.sphere.sdk.carts.InventoryMode;
import io.sphere.sdk.carts.LineItem;
import io.sphere.sdk.carts.PaymentInfo;
import io.sphere.sdk.carts.RoundingMode;
import io.sphere.sdk.carts.ShippingRateInput;
import io.sphere.sdk.carts.TaxCalculationMode;
import io.sphere.sdk.carts.TaxMode;
import io.sphere.sdk.carts.TaxedPrice;
import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.discountcodes.DiscountCodeInfo;
import io.sphere.sdk.models.Address;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.states.State;
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.Locale;
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.orders.Order"
)
final class OrderImpl extends Base implements Order {
  @Nullable
  private String anonymousId;

  @Nullable
  private Address billingAddress;

  @Nullable
  private Reference cart;

  private ZonedDateTime completedAt;

  @Nullable
  private CountryCode country;

  private ZonedDateTime createdAt;

  @Nullable
  private CustomFields custom;

  private List customLineItems;

  @Nullable
  private String customerEmail;

  @Nullable
  private Reference customerGroup;

  @Nullable
  private String customerId;

  private List discountCodes;

  private String id;

  private InventoryMode inventoryMode;

  private Long lastMessageSequenceNumber;

  private ZonedDateTime lastModifiedAt;

  private List lineItems;

  @Nullable
  private Locale locale;

  @Nullable
  private String orderNumber;

  private OrderState orderState;

  @Nullable
  private PaymentInfo paymentInfo;

  @Nullable
  private PaymentState paymentState;

  private List returnInfo;

  @Nullable
  private ShipmentState shipmentState;

  @Nullable
  private Address shippingAddress;

  @Nullable
  private OrderShippingInfo shippingInfo;

  @Nullable
  private ShippingRateInput shippingRateInput;

  @Nullable
  private Reference state;

  private Set syncInfo;

  private TaxCalculationMode taxCalculationMode;

  private TaxMode taxMode;

  private RoundingMode taxRoundingMode;

  @Nullable
  private TaxedPrice taxedPrice;

  private MonetaryAmount totalPrice;

  private Long version;

  @JsonCreator
  OrderImpl(@Nullable final String anonymousId, @Nullable final Address billingAddress,
      @Nullable final Reference cart, final ZonedDateTime completedAt,
      @Nullable final CountryCode country, final ZonedDateTime createdAt,
      @Nullable final CustomFields custom, final List customLineItems,
      @Nullable final String customerEmail, @Nullable final Reference customerGroup,
      @Nullable final String customerId, final List discountCodes,
      final String id, final InventoryMode inventoryMode, final Long lastMessageSequenceNumber,
      final ZonedDateTime lastModifiedAt, final List lineItems,
      @Nullable final Locale locale, @Nullable final String orderNumber,
      final OrderState orderState, @Nullable final PaymentInfo paymentInfo,
      @Nullable final PaymentState paymentState, final List returnInfo,
      @Nullable final ShipmentState shipmentState, @Nullable final Address shippingAddress,
      @Nullable final OrderShippingInfo shippingInfo,
      @Nullable final ShippingRateInput shippingRateInput, @Nullable final Reference state,
      final Set syncInfo, final TaxCalculationMode taxCalculationMode,
      final TaxMode taxMode, final RoundingMode taxRoundingMode,
      @Nullable final TaxedPrice taxedPrice, final MonetaryAmount totalPrice, final Long version) {
    this.anonymousId = anonymousId;
    this.billingAddress = billingAddress;
    this.cart = cart;
    this.completedAt = completedAt;
    this.country = country;
    this.createdAt = createdAt;
    this.custom = custom;
    this.customLineItems = customLineItems;
    this.customerEmail = customerEmail;
    this.customerGroup = customerGroup;
    this.customerId = customerId;
    this.discountCodes = discountCodes;
    this.id = id;
    this.inventoryMode = inventoryMode;
    this.lastMessageSequenceNumber = lastMessageSequenceNumber;
    this.lastModifiedAt = lastModifiedAt;
    this.lineItems = lineItems;
    this.locale = locale;
    this.orderNumber = orderNumber;
    this.orderState = orderState;
    this.paymentInfo = paymentInfo;
    this.paymentState = paymentState;
    this.returnInfo = returnInfo;
    this.shipmentState = shipmentState;
    this.shippingAddress = shippingAddress;
    this.shippingInfo = shippingInfo;
    this.shippingRateInput = shippingRateInput;
    this.state = state;
    this.syncInfo = syncInfo;
    this.taxCalculationMode = taxCalculationMode;
    this.taxMode = taxMode;
    this.taxRoundingMode = taxRoundingMode;
    this.taxedPrice = taxedPrice;
    this.totalPrice = totalPrice;
    this.version = version;
  }

  @Nullable
  public String getAnonymousId() {
    return anonymousId;
  }

  @Nullable
  public Address getBillingAddress() {
    return billingAddress;
  }

  @Nullable
  public Reference getCart() {
    return cart;
  }

  public ZonedDateTime getCompletedAt() {
    return completedAt;
  }

  @Nullable
  public CountryCode getCountry() {
    return country;
  }

  public ZonedDateTime getCreatedAt() {
    return createdAt;
  }

  @Nullable
  public CustomFields getCustom() {
    return custom;
  }

  public List getCustomLineItems() {
    return customLineItems;
  }

  @Nullable
  public String getCustomerEmail() {
    return customerEmail;
  }

  @Nullable
  public Reference getCustomerGroup() {
    return customerGroup;
  }

  @Nullable
  public String getCustomerId() {
    return customerId;
  }

  public List getDiscountCodes() {
    return discountCodes;
  }

  public String getId() {
    return id;
  }

  public InventoryMode getInventoryMode() {
    return inventoryMode;
  }

  public Long getLastMessageSequenceNumber() {
    return lastMessageSequenceNumber;
  }

  public ZonedDateTime getLastModifiedAt() {
    return lastModifiedAt;
  }

  public List getLineItems() {
    return lineItems;
  }

  @Nullable
  public Locale getLocale() {
    return locale;
  }

  @Nullable
  public String getOrderNumber() {
    return orderNumber;
  }

  public OrderState getOrderState() {
    return orderState;
  }

  @Nullable
  public PaymentInfo getPaymentInfo() {
    return paymentInfo;
  }

  @Nullable
  public PaymentState getPaymentState() {
    return paymentState;
  }

  public List getReturnInfo() {
    return returnInfo;
  }

  @Nullable
  public ShipmentState getShipmentState() {
    return shipmentState;
  }

  @Nullable
  public Address getShippingAddress() {
    return shippingAddress;
  }

  @Nullable
  public OrderShippingInfo getShippingInfo() {
    return shippingInfo;
  }

  @Nullable
  public ShippingRateInput getShippingRateInput() {
    return shippingRateInput;
  }

  @Nullable
  public Reference getState() {
    return state;
  }

  public Set getSyncInfo() {
    return syncInfo;
  }

  public TaxCalculationMode getTaxCalculationMode() {
    return taxCalculationMode;
  }

  public TaxMode getTaxMode() {
    return taxMode;
  }

  public RoundingMode getTaxRoundingMode() {
    return taxRoundingMode;
  }

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

  public MonetaryAmount getTotalPrice() {
    return totalPrice;
  }

  public Long getVersion() {
    return version;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy