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

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

The newest version!
package io.sphere.sdk.orders;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.cartdiscounts.DiscountedLineItemPrice;
import io.sphere.sdk.carts.ShippingMethodState;
import io.sphere.sdk.carts.TaxedItemPrice;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.shippingmethods.ShippingRate;
import io.sphere.sdk.taxcategories.TaxCategory;
import io.sphere.sdk.taxcategories.TaxRate;
import java.lang.String;
import java.util.List;
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.OrderShippingInfo"
)
final class OrderShippingInfoImpl extends Base implements OrderShippingInfo {
  private List deliveries;

  @Nullable
  private DiscountedLineItemPrice discountedPrice;

  private MonetaryAmount price;

  @Nullable
  private Reference shippingMethod;

  private String shippingMethodName;

  private ShippingMethodState shippingMethodState;

  private ShippingRate shippingRate;

  private Reference taxCategory;

  private TaxRate taxRate;

  @Nullable
  private TaxedItemPrice taxedPrice;

  @JsonCreator
  OrderShippingInfoImpl(final List deliveries,
      @Nullable final DiscountedLineItemPrice discountedPrice, final MonetaryAmount price,
      @Nullable final Reference shippingMethod, final String shippingMethodName,
      final ShippingMethodState shippingMethodState, final ShippingRate shippingRate,
      final Reference taxCategory, final TaxRate taxRate,
      @Nullable final TaxedItemPrice taxedPrice) {
    this.deliveries = deliveries;
    this.discountedPrice = discountedPrice;
    this.price = price;
    this.shippingMethod = shippingMethod;
    this.shippingMethodName = shippingMethodName;
    this.shippingMethodState = shippingMethodState;
    this.shippingRate = shippingRate;
    this.taxCategory = taxCategory;
    this.taxRate = taxRate;
    this.taxedPrice = taxedPrice;
  }

  public List getDeliveries() {
    return deliveries;
  }

  @Nullable
  public DiscountedLineItemPrice getDiscountedPrice() {
    return discountedPrice;
  }

  public MonetaryAmount getPrice() {
    return price;
  }

  @Nullable
  public Reference getShippingMethod() {
    return shippingMethod;
  }

  public String getShippingMethodName() {
    return shippingMethodName;
  }

  public ShippingMethodState getShippingMethodState() {
    return shippingMethodState;
  }

  public ShippingRate getShippingRate() {
    return shippingRate;
  }

  public Reference getTaxCategory() {
    return taxCategory;
  }

  public TaxRate getTaxRate() {
    return taxRate;
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy