UNPKG

@bebapps/rapyd-sdk

Version:

An un-official [Rapyd](https://rapyd.net) SDK for Node.js.

43 lines (42 loc) 1.23 kB
export interface UpdateSKURequest { /** * ID of the 'sku' object. String starting with the **sku_**. */ sku: string; /** * Indicates whether the product is currently available for purchase. */ active?: boolean; /** * Array of alphanumeric key-value pairs defined by the merchant. Each key must match a string in the 'attributes' list of the corresponding 'product' object. */ attributes?: (string)[]; /** * Three-letter ISO 4217 code for the currency used in the `price` parameter. Uppercase. */ currency?: string; /** * URL of image associated with the product. */ image?: string; /** * Inventory object {quantity, type, value}. If this object appears in the request, `quantity` and `type` are required. */ inventory?: object; /** * A JSON object defined by the client. */ metadata?: object; /** * Physical attributes of the SKU item. Contains the following fields: `height`, `length`, `weight`, `width` */ package_dimensions?: object; /** * The amount of the price. Decimal. */ price?: number; /** * ID of the product that this SKU relates to. The `type` field of the product must be set to **goods**. */ product?: string; };