/// <summary>
        /// The fetched shipping rates. `null` until the `ready` field is `true`.
        /// </summary>
        public AvailableShippingRatesQuery shippingRates(ShippingRateDelegate buildQuery)
        {
            Query.Append("shippingRates ");

            Query.Append("{");
            buildQuery(new ShippingRateQuery(Query));
            Query.Append("}");

            return(this);
        }
Пример #2
0
        /// <summary>
        /// Once a shipping rate is selected by the customer it is transitioned to a `shipping_line` object.
        /// </summary>
        public CheckoutQuery shippingLine(ShippingRateDelegate buildQuery)
        {
            Query.Append("shippingLine ");

            Query.Append("{");
            buildQuery(new ShippingRateQuery(Query));
            Query.Append("}");

            return(this);
        }