Class OrderItem


  • public class OrderItem
    extends java.lang.Object
    A single order item.
    • Constructor Detail

      • OrderItem

        public OrderItem()
    • Method Detail

      • ASIN

        public OrderItem ASIN​(java.lang.String ASIN)
      • getASIN

        public java.lang.String getASIN()
        The item's Amazon Standard Identification Number (ASIN).
        Returns:
        ASIN
      • setASIN

        public void setASIN​(java.lang.String ASIN)
      • sellerSKU

        public OrderItem sellerSKU​(java.lang.String sellerSKU)
      • getSellerSKU

        public java.lang.String getSellerSKU()
        The item's seller stock keeping unit (SKU).
        Returns:
        sellerSKU
      • setSellerSKU

        public void setSellerSKU​(java.lang.String sellerSKU)
      • orderItemId

        public OrderItem orderItemId​(java.lang.String orderItemId)
      • getOrderItemId

        public java.lang.String getOrderItemId()
        An Amazon-defined order item identifier.
        Returns:
        orderItemId
      • setOrderItemId

        public void setOrderItemId​(java.lang.String orderItemId)
      • getAssociatedItems

        public java.util.List<AssociatedItem> getAssociatedItems()
        A list of associated items that a customer has purchased with a product. For example, a tire installation service purchased with tires.
        Returns:
        associatedItems
      • setAssociatedItems

        public void setAssociatedItems​(java.util.List<AssociatedItem> associatedItems)
      • title

        public OrderItem title​(java.lang.String title)
      • getTitle

        public java.lang.String getTitle()
        The item's name.
        Returns:
        title
      • setTitle

        public void setTitle​(java.lang.String title)
      • quantityOrdered

        public OrderItem quantityOrdered​(java.lang.Integer quantityOrdered)
      • getQuantityOrdered

        public java.lang.Integer getQuantityOrdered()
        The number of items in the order.
        Returns:
        quantityOrdered
      • setQuantityOrdered

        public void setQuantityOrdered​(java.lang.Integer quantityOrdered)
      • quantityShipped

        public OrderItem quantityShipped​(java.lang.Integer quantityShipped)
      • getQuantityShipped

        public java.lang.Integer getQuantityShipped()
        The number of items shipped.
        Returns:
        quantityShipped
      • setQuantityShipped

        public void setQuantityShipped​(java.lang.Integer quantityShipped)
      • getProductInfo

        public ProductInfoDetail getProductInfo()
        Get productInfo
        Returns:
        productInfo
      • getPointsGranted

        public PointsGrantedDetail getPointsGranted()
        Get pointsGranted
        Returns:
        pointsGranted
      • getItemPrice

        public Money getItemPrice()
        Get itemPrice
        Returns:
        itemPrice
      • setItemPrice

        public void setItemPrice​(Money itemPrice)
      • shippingPrice

        public OrderItem shippingPrice​(Money shippingPrice)
      • getShippingPrice

        public Money getShippingPrice()
        Get shippingPrice
        Returns:
        shippingPrice
      • setShippingPrice

        public void setShippingPrice​(Money shippingPrice)
      • getItemTax

        public Money getItemTax()
        Get itemTax
        Returns:
        itemTax
      • setItemTax

        public void setItemTax​(Money itemTax)
      • getShippingTax

        public Money getShippingTax()
        Get shippingTax
        Returns:
        shippingTax
      • setShippingTax

        public void setShippingTax​(Money shippingTax)
      • shippingDiscount

        public OrderItem shippingDiscount​(Money shippingDiscount)
      • getShippingDiscount

        public Money getShippingDiscount()
        Get shippingDiscount
        Returns:
        shippingDiscount
      • setShippingDiscount

        public void setShippingDiscount​(Money shippingDiscount)
      • shippingDiscountTax

        public OrderItem shippingDiscountTax​(Money shippingDiscountTax)
      • getShippingDiscountTax

        public Money getShippingDiscountTax()
        Get shippingDiscountTax
        Returns:
        shippingDiscountTax
      • setShippingDiscountTax

        public void setShippingDiscountTax​(Money shippingDiscountTax)
      • promotionDiscount

        public OrderItem promotionDiscount​(Money promotionDiscount)
      • getPromotionDiscount

        public Money getPromotionDiscount()
        Get promotionDiscount
        Returns:
        promotionDiscount
      • setPromotionDiscount

        public void setPromotionDiscount​(Money promotionDiscount)
      • promotionDiscountTax

        public OrderItem promotionDiscountTax​(Money promotionDiscountTax)
      • getPromotionDiscountTax

        public Money getPromotionDiscountTax()
        Get promotionDiscountTax
        Returns:
        promotionDiscountTax
      • setPromotionDiscountTax

        public void setPromotionDiscountTax​(Money promotionDiscountTax)
      • getPromotionIds

        public PromotionIdList getPromotionIds()
        Get promotionIds
        Returns:
        promotionIds
      • setPromotionIds

        public void setPromotionIds​(PromotionIdList promotionIds)
      • getCoDFee

        public Money getCoDFee()
        Get coDFee
        Returns:
        coDFee
      • setCoDFee

        public void setCoDFee​(Money coDFee)
      • coDFeeDiscount

        public OrderItem coDFeeDiscount​(Money coDFeeDiscount)
      • getCoDFeeDiscount

        public Money getCoDFeeDiscount()
        Get coDFeeDiscount
        Returns:
        coDFeeDiscount
      • setCoDFeeDiscount

        public void setCoDFeeDiscount​(Money coDFeeDiscount)
      • isGift

        public OrderItem isGift​(java.lang.String isGift)
      • getIsGift

        public java.lang.String getIsGift()
        Indicates whether the item is a gift. **Possible values**: `true` and `false`.
        Returns:
        isGift
      • setIsGift

        public void setIsGift​(java.lang.String isGift)
      • conditionNote

        public OrderItem conditionNote​(java.lang.String conditionNote)
      • getConditionNote

        public java.lang.String getConditionNote()
        The condition of the item, as described by the seller.
        Returns:
        conditionNote
      • setConditionNote

        public void setConditionNote​(java.lang.String conditionNote)
      • conditionId

        public OrderItem conditionId​(java.lang.String conditionId)
      • getConditionId

        public java.lang.String getConditionId()
        The condition of the item. **Possible values**: `New`, `Used`, `Collectible`, `Refurbished`, `Preorder`, and `Club`.
        Returns:
        conditionId
      • setConditionId

        public void setConditionId​(java.lang.String conditionId)
      • conditionSubtypeId

        public OrderItem conditionSubtypeId​(java.lang.String conditionSubtypeId)
      • getConditionSubtypeId

        public java.lang.String getConditionSubtypeId()
        The subcondition of the item. **Possible values**: `New`, `Mint`, `Very Good`, `Good`, `Acceptable`, `Poor`, `Club`, `OEM`, `Warranty`, `Refurbished Warranty`, `Refurbished`, `Open Box`, `Any`, and `Other`.
        Returns:
        conditionSubtypeId
      • setConditionSubtypeId

        public void setConditionSubtypeId​(java.lang.String conditionSubtypeId)
      • scheduledDeliveryStartDate

        public OrderItem scheduledDeliveryStartDate​(java.lang.String scheduledDeliveryStartDate)
      • getScheduledDeliveryStartDate

        public java.lang.String getScheduledDeliveryStartDate()
        The start date of the scheduled delivery window in the time zone for the order destination. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format.
        Returns:
        scheduledDeliveryStartDate
      • setScheduledDeliveryStartDate

        public void setScheduledDeliveryStartDate​(java.lang.String scheduledDeliveryStartDate)
      • scheduledDeliveryEndDate

        public OrderItem scheduledDeliveryEndDate​(java.lang.String scheduledDeliveryEndDate)
      • getScheduledDeliveryEndDate

        public java.lang.String getScheduledDeliveryEndDate()
        The end date of the scheduled delivery window in the time zone for the order destination. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format.
        Returns:
        scheduledDeliveryEndDate
      • setScheduledDeliveryEndDate

        public void setScheduledDeliveryEndDate​(java.lang.String scheduledDeliveryEndDate)
      • priceDesignation

        public OrderItem priceDesignation​(java.lang.String priceDesignation)
      • getPriceDesignation

        public java.lang.String getPriceDesignation()
        Indicates that the selling price is a special price that is only available for Amazon Business orders. For more information about the Amazon Business Seller Program, refer to the [Amazon Business website](https://www.amazon.com/b2b/info/amazon-business). **Possible values**: `BusinessPrice`
        Returns:
        priceDesignation
      • setPriceDesignation

        public void setPriceDesignation​(java.lang.String priceDesignation)
      • getTaxCollection

        public TaxCollection getTaxCollection()
        Get taxCollection
        Returns:
        taxCollection
      • setTaxCollection

        public void setTaxCollection​(TaxCollection taxCollection)
      • serialNumberRequired

        public OrderItem serialNumberRequired​(java.lang.Boolean serialNumberRequired)
      • isSerialNumberRequired

        public java.lang.Boolean isSerialNumberRequired()
        When true, the product type for this item has a serial number. Only returned for Amazon Easy Ship orders.
        Returns:
        serialNumberRequired
      • setSerialNumberRequired

        public void setSerialNumberRequired​(java.lang.Boolean serialNumberRequired)
      • isTransparency

        public OrderItem isTransparency​(java.lang.Boolean isTransparency)
      • isIsTransparency

        public java.lang.Boolean isIsTransparency()
        When true, the ASIN is enrolled in Transparency. The Transparency serial number that you must submit is determined by: **1D or 2D Barcode:** This has a **T** logo. Submit either the 29-character alpha-numeric identifier beginning with **AZ** or **ZA**, or the 38-character Serialized Global Trade Item Number (SGTIN). **2D Barcode SN:** Submit the 7- to 20-character serial number barcode, which likely has the prefix **SN**. The serial number is applied to the same side of the packaging as the GTIN (UPC/EAN/ISBN) barcode. **QR code SN:** Submit the URL that the QR code generates.
        Returns:
        isTransparency
      • setIsTransparency

        public void setIsTransparency​(java.lang.Boolean isTransparency)
      • iossNumber

        public OrderItem iossNumber​(java.lang.String iossNumber)
      • getIossNumber

        public java.lang.String getIossNumber()
        The IOSS number of the marketplace. Sellers shipping to the EU from outside the EU must provide this IOSS number to their carrier when Amazon has collected the VAT on the sale.
        Returns:
        iossNumber
      • setIossNumber

        public void setIossNumber​(java.lang.String iossNumber)
      • storeChainStoreId

        public OrderItem storeChainStoreId​(java.lang.String storeChainStoreId)
      • getStoreChainStoreId

        public java.lang.String getStoreChainStoreId()
        The store chain store identifier. Linked to a specific store in a store chain.
        Returns:
        storeChainStoreId
      • setStoreChainStoreId

        public void setStoreChainStoreId​(java.lang.String storeChainStoreId)
      • getDeemedResellerCategory

        public OrderItem.DeemedResellerCategoryEnum getDeemedResellerCategory()
        The category of deemed reseller. This applies to selling partners that are not based in the EU and is used to help them meet the VAT Deemed Reseller tax laws in the EU and UK.
        Returns:
        deemedResellerCategory
      • getBuyerInfo

        public ItemBuyerInfo getBuyerInfo()
        Get buyerInfo
        Returns:
        buyerInfo
      • setBuyerInfo

        public void setBuyerInfo​(ItemBuyerInfo buyerInfo)
      • getBuyerRequestedCancel

        public BuyerRequestedCancel getBuyerRequestedCancel()
        Get buyerRequestedCancel
        Returns:
        buyerRequestedCancel
      • setBuyerRequestedCancel

        public void setBuyerRequestedCancel​(BuyerRequestedCancel buyerRequestedCancel)
      • serialNumbers

        public OrderItem serialNumbers​(java.util.List<java.lang.String> serialNumbers)
      • addSerialNumbersItem

        public OrderItem addSerialNumbersItem​(java.lang.String serialNumbersItem)
      • getSerialNumbers

        public java.util.List<java.lang.String> getSerialNumbers()
        A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only.
        Returns:
        serialNumbers
      • setSerialNumbers

        public void setSerialNumbers​(java.util.List<java.lang.String> serialNumbers)
      • getSubstitutionPreferences

        public SubstitutionPreferences getSubstitutionPreferences()
        Get substitutionPreferences
        Returns:
        substitutionPreferences
      • setSubstitutionPreferences

        public void setSubstitutionPreferences​(SubstitutionPreferences substitutionPreferences)
      • getMeasurement

        public Measurement getMeasurement()
        Get measurement
        Returns:
        measurement
      • setMeasurement

        public void setMeasurement​(Measurement measurement)
      • getShippingConstraints

        public ShippingConstraints getShippingConstraints()
        Get shippingConstraints
        Returns:
        shippingConstraints
      • setShippingConstraints

        public void setShippingConstraints​(ShippingConstraints shippingConstraints)
      • getAmazonPrograms

        public AmazonPrograms getAmazonPrograms()
        Get amazonPrograms
        Returns:
        amazonPrograms
      • setAmazonPrograms

        public void setAmazonPrograms​(AmazonPrograms amazonPrograms)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object