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

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

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

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.cartdiscounts.DiscountedLineItemPrice;
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 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.CartShippingInfo"
)
final class CartShippingInfoImpl extends Base implements CartShippingInfo {
  @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
  CartShippingInfoImpl(@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.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;
  }

  @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