@ribajs/shopify
Version:
Shopify extension for Riba.js
32 lines (28 loc) • 945 B
text/typescript
/**
* Estimated shipping rate
* @see https://help.shopify.com/en/themes/development/getting-started/using-ajax-api#get-shipping-rates
*/
export interface ShopifyShippingRate {
name: string;
price: string;
delivery_date: string | null; // Date?
source: "shopify" | string;
}
/**
* Estimated shipping rates
* @see https://help.shopify.com/en/themes/development/getting-started/using-ajax-api#get-shipping-rates
*/
export type ShopifyShippingRates = ShopifyShippingRate[];
/**
* Normalized shipping rate, e.g. to get the price in small amounts (cents, pounds, ..) and as a number
*/
export interface ShopifyShippingRateNormalized {
name: string;
price: number;
delivery_date: string | null; // Date?
source: "shopify" | string;
}
/**
* Normalized shipping rates, e.g. to get the price in small amounts (cents, pounds, ..) and as a number
*/
export type ShopifyShippingRatesNormalized = ShopifyShippingRateNormalized[];