public class CreditMemoItem extends AbstractResponse<CreditMemoItem> implements CreditMemoItemInterface
optimisticData, responseData| Constructor and Description |
|---|
CreditMemoItem() |
CreditMemoItem(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
List<Discount> |
getDiscounts()
Contains information about the final discount amount for the base product, including discounts on
options
|
String |
getGraphQlTypeName() |
ID |
getId()
The unique ID for a `CreditMemoItemInterface` object
|
OrderItemInterface |
getOrderItem()
The order item the credit memo is applied to
|
String |
getProductName()
The name of the base product
|
Money |
getProductSalePrice()
The sale price for the base product, including selected options
|
String |
getProductSku()
SKU of the base product
|
Double |
getQuantityRefunded()
The number of refunded items
|
CreditMemoItem |
setDiscounts(List<Discount> arg) |
CreditMemoItem |
setId(ID arg) |
CreditMemoItem |
setOrderItem(OrderItemInterface arg) |
CreditMemoItem |
setProductName(String arg) |
CreditMemoItem |
setProductSalePrice(Money arg) |
CreditMemoItem |
setProductSku(String arg) |
CreditMemoItem |
setQuantityRefunded(Double arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliasclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsStringpublic CreditMemoItem()
public CreditMemoItem(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
getGraphQlTypeName in interface CreditMemoItemInterfacepublic List<Discount> getDiscounts()
getDiscounts in interface CreditMemoItemInterfacepublic CreditMemoItem setDiscounts(List<Discount> arg)
public ID getId()
getId in interface CreditMemoItemInterfacepublic CreditMemoItem setId(ID arg)
public OrderItemInterface getOrderItem()
getOrderItem in interface CreditMemoItemInterfacepublic CreditMemoItem setOrderItem(OrderItemInterface arg)
public String getProductName()
getProductName in interface CreditMemoItemInterfacepublic CreditMemoItem setProductName(String arg)
public Money getProductSalePrice()
getProductSalePrice in interface CreditMemoItemInterfacepublic CreditMemoItem setProductSalePrice(Money arg)
public String getProductSku()
getProductSku in interface CreditMemoItemInterfacepublic CreditMemoItem setProductSku(String arg)
public Double getQuantityRefunded()
getQuantityRefunded in interface CreditMemoItemInterfacepublic CreditMemoItem setQuantityRefunded(Double arg)
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<CreditMemoItem>Copyright © 2022 Adobe. All rights reserved.