@bebapps/rapyd-sdk
Version:
An un-official [Rapyd](https://rapyd.net) SDK for Node.js.
43 lines (42 loc) • 1.17 kB
text/typescript
export interface CreateSKURequest {
/**
* 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;
/**
* ID of the 'sku' object. Alphanumeric characters and underscores (_).
*/
id?: string;
/**
* URL of image associated with the product.
*/
image?: string;
/**
* 'inventory' object {quantity, type, value}
*/
inventory: object;
/**
* A JSON object defined by the client.
*/
metadata?: object;
/**
* Physical attributes of the SKU item. Object containing the following fields: `height`, `length`, `weight`, `width`
*/
package_dimensions?: string;
/**
* 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;
};