Home > @infiniteobjects/shopify-service > ShopifyService
Shopify Service
Signature:
export declare class ShopifyService
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)() | Constructs a new instance of the ShopifyService class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| client | Shopify | ||
| log | LoggerInstance | ||
| storefrontAccessToken | string | ||
| storeId | string |
| Method | Modifiers | Description |
|---|---|---|
| createOrder(lineItems, customer, inventoryBehaviour, sendReceipt) | Creates an order on Shopify | |
| getClosedOrdersFromDate(createdAtMin, createdAtMax) | Get all Closed Orders created after the specified date | |
| getOpenOrders() | Gets all Open Orders | |
| getOrderById(id) | Gets an order by its ID | |
| getProductById(id, includeMetafields) | Gets a product by its ID | |
| getResourceMetafields(id, resource) | Gets the metafields of a resource | |
| getShopMetafields() | Gets the processing times for the shop | |
| getTimezone() | Get the timezone name of the Shopify Store | |
| getVariantById(id, includeMetafields) | Gets a variant by its ID | |
| getVariantsByProductId(id) | Gets the variants of a product by its ID |