@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
78 lines • 2.8 kB
TypeScript
/***********************************************************************************************************************
* This file is auto-generated. If you have an issue, please create a GitHub issue. *
***********************************************************************************************************************/
import { Base, FindAllResponse } from '../../base';
import { ResourcePath, ResourceNames } from '../../types';
import { Session } from '../../../lib/session/session';
import { ApiVersion } from '../../../lib/types';
interface FindArgs {
session: Session;
id: number | string;
fields?: unknown;
}
interface DeleteArgs {
session: Session;
id: number | string;
product_id?: number | string | null;
}
interface AllArgs {
[key: string]: unknown;
session: Session;
product_id?: number | string | null;
limit?: unknown;
presentment_currencies?: unknown;
since_id?: unknown;
fields?: unknown;
}
interface CountArgs {
[key: string]: unknown;
session: Session;
product_id?: number | string | null;
}
export declare class Variant extends Base {
static apiVersion: ApiVersion;
protected static hasOne: {
[key: string]: typeof Base;
};
protected static hasMany: {
[key: string]: typeof Base;
};
protected static paths: ResourcePath[];
protected static readOnlyAttributes: string[];
protected static resourceNames: ResourceNames[];
static find({ session, id, fields }: FindArgs): Promise<Variant | null>;
static delete({ session, id, product_id }: DeleteArgs): Promise<unknown>;
static all({ session, product_id, limit, presentment_currencies, since_id, fields, ...otherArgs }: AllArgs): Promise<FindAllResponse<Variant>>;
static count({ session, product_id, ...otherArgs }: CountArgs): Promise<unknown>;
barcode: string | null;
compare_at_price: string | null;
created_at: string | null;
fulfillment_service: string | null;
grams: number | null;
id: string | null;
image_id: string | null;
inventory_item_id: string | null;
inventory_management: string | null;
inventory_policy: string | null;
inventory_quantity: number | null;
old_inventory_quantity: number | null;
option: {
[key: string]: unknown;
} | null;
position: number | null;
presentment_prices: {
[key: string]: unknown;
}[] | null;
price: string | null;
product_id: string | null;
requires_shipping: boolean | null;
sku: string | null;
tax_code: string | null;
taxable: boolean | null;
title: string | null;
updated_at: string | null;
weight: number | null;
weight_unit: string | null;
}
export {};
//# sourceMappingURL=variant.d.ts.map