usimple-saleor-sdk
Version:
This package contains all queries and mutations that are used in our sample storefront. It can be used for semi-custom or fully-custom (with ability to extend existing queries) storefront solutions.
231 lines (230 loc) • 5.66 kB
TypeScript
export interface CheckoutLine_totalPrice_gross {
__typename: "Money";
/**
* Amount of money.
*/
amount: number;
/**
* Currency code.
*/
currency: string;
}
export interface CheckoutLine_totalPrice_net {
__typename: "Money";
/**
* Amount of money.
*/
amount: number;
/**
* Currency code.
*/
currency: string;
}
export interface CheckoutLine_totalPrice {
__typename: "TaxedMoney";
/**
* Amount of money including taxes.
*/
gross: CheckoutLine_totalPrice_gross;
/**
* Amount of money without taxes.
*/
net: CheckoutLine_totalPrice_net;
}
export interface CheckoutLine_variant_pricing_priceUndiscounted_gross {
__typename: "Money";
/**
* Amount of money.
*/
amount: number;
/**
* Currency code.
*/
currency: string;
}
export interface CheckoutLine_variant_pricing_priceUndiscounted_net {
__typename: "Money";
/**
* Amount of money.
*/
amount: number;
/**
* Currency code.
*/
currency: string;
}
export interface CheckoutLine_variant_pricing_priceUndiscounted {
__typename: "TaxedMoney";
/**
* Amount of money including taxes.
*/
gross: CheckoutLine_variant_pricing_priceUndiscounted_gross;
/**
* Amount of money without taxes.
*/
net: CheckoutLine_variant_pricing_priceUndiscounted_net;
}
export interface CheckoutLine_variant_pricing_price_gross {
__typename: "Money";
/**
* Amount of money.
*/
amount: number;
/**
* Currency code.
*/
currency: string;
}
export interface CheckoutLine_variant_pricing_price_net {
__typename: "Money";
/**
* Amount of money.
*/
amount: number;
/**
* Currency code.
*/
currency: string;
}
export interface CheckoutLine_variant_pricing_price {
__typename: "TaxedMoney";
/**
* Amount of money including taxes.
*/
gross: CheckoutLine_variant_pricing_price_gross;
/**
* Amount of money without taxes.
*/
net: CheckoutLine_variant_pricing_price_net;
}
export interface CheckoutLine_variant_pricing {
__typename: "VariantPricingInfo";
/**
* Whether it is in sale or not.
*/
onSale: boolean | null;
/**
* The price without any discount.
*/
priceUndiscounted: CheckoutLine_variant_pricing_priceUndiscounted | null;
/**
* The price, with any discount subtracted.
*/
price: CheckoutLine_variant_pricing_price | null;
}
export interface CheckoutLine_variant_attributes_attribute {
__typename: "Attribute";
/**
* The ID of the object.
*/
id: string;
/**
* Name of an attribute displayed in the interface.
*/
name: string | null;
}
export interface CheckoutLine_variant_attributes_values {
__typename: "AttributeValue";
/**
* The ID of the object.
*/
id: string;
/**
* Name of a value displayed in the interface.
*/
name: string | null;
/**
* Name of a value displayed in the interface.
*/
value: string | null;
}
export interface CheckoutLine_variant_attributes {
__typename: "SelectedAttribute";
/**
* Name of an attribute displayed in the interface.
*/
attribute: CheckoutLine_variant_attributes_attribute;
/**
* Values of an attribute.
*/
values: (CheckoutLine_variant_attributes_values | null)[];
}
export interface CheckoutLine_variant_product_thumbnail {
__typename: "Image";
/**
* The URL of the image.
*/
url: string;
/**
* Alt text for an image.
*/
alt: string | null;
}
export interface CheckoutLine_variant_product_thumbnail2x {
__typename: "Image";
/**
* The URL of the image.
*/
url: string;
}
export interface CheckoutLine_variant_product_productType {
__typename: "ProductType";
/**
* The ID of the object.
*/
id: string;
isShippingRequired: boolean;
}
export interface CheckoutLine_variant_product {
__typename: "Product";
/**
* The ID of the object.
*/
id: string;
name: string;
slug: string;
/**
* The main thumbnail for a product.
*/
thumbnail: CheckoutLine_variant_product_thumbnail | null;
/**
* The main thumbnail for a product.
*/
thumbnail2x: CheckoutLine_variant_product_thumbnail2x | null;
productType: CheckoutLine_variant_product_productType;
}
export interface CheckoutLine_variant {
__typename: "ProductVariant";
/**
* The ID of the object.
*/
id: string;
name: string;
sku: string;
/**
* Quantity of a product available for sale in one checkout.
*/
quantityAvailable: number;
/**
* Lists the storefront variant's pricing, the current price and discounts, only meant for displaying.
*/
pricing: CheckoutLine_variant_pricing | null;
/**
* List of attributes assigned to this variant.
*/
attributes: CheckoutLine_variant_attributes[];
product: CheckoutLine_variant_product;
}
export interface CheckoutLine {
__typename: "CheckoutLine";
/**
* The ID of the object.
*/
id: string;
quantity: number;
/**
* The sum of the checkout line price, taxes and discounts.
*/
totalPrice: CheckoutLine_totalPrice | null;
variant: CheckoutLine_variant;
}