public class SkuCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
SkuCreateParams.Builder |
static class |
SkuCreateParams.Inventory |
static class |
SkuCreateParams.PackageDimensions |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static SkuCreateParams.Builder |
builder() |
java.lang.Boolean |
getActive()
Whether the SKU is available for purchase.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
A dictionary of attributes and values for the attributes defined by the product.
|
java.lang.String |
getCurrency()
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.lang.String |
getId()
The identifier for the SKU.
|
java.lang.String |
getImage()
The URL of an image for this SKU, meant to be displayable to the customer.
|
SkuCreateParams.Inventory |
getInventory()
Description of the SKU's inventory.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
A set of key-value pairs that you can attach to a SKU object.
|
SkuCreateParams.PackageDimensions |
getPackageDimensions()
The dimensions of this SKU for shipping purposes.
|
java.lang.Long |
getPrice()
The cost of the item as a nonnegative integer in the smallest currency unit (that is, 100 cents
to charge $1.00, or 100 to charge ¥100, Japanese Yen being a zero-decimal currency).
|
java.lang.String |
getProduct()
The ID of the product this SKU is associated with.
|
toMap
public static SkuCreateParams.Builder builder()
public java.lang.Boolean getActive()
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public java.lang.String getCurrency()
public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName
value. Instead, each
key/value pair is serialized as if the key is a root-level field (serialized) name in this
param object. Effectively, this map is flattened to its parent instance.public java.lang.String getId()
public java.lang.String getImage()
public SkuCreateParams.Inventory getInventory()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public SkuCreateParams.PackageDimensions getPackageDimensions()
public java.lang.Long getPrice()
public java.lang.String getProduct()