/// <summary> /// will allow you to write queries on MoneyV2. /// </summary> public PricingValueQuery onMoneyV2(MoneyV2Delegate buildQuery) { Query.Append("...on MoneyV2{"); buildQuery(new MoneyV2Query(Query)); Query.Append("}"); return(this); }
/// <summary> /// The price of the variant with associated currency. /// </summary> public ProductVariantPricePairQuery price(MoneyV2Delegate buildQuery) { Query.Append("price "); Query.Append("{"); buildQuery(new MoneyV2Query(Query)); Query.Append("}"); return this; }
/// <summary> /// The total cost of taxes. /// </summary> public OrderQuery totalTaxV2(MoneyV2Delegate buildQuery) { Query.Append("totalTaxV2 "); Query.Append("{"); buildQuery(new MoneyV2Query(Query)); Query.Append("}"); return(this); }
/// <summary> /// The sum of all the prices of all the items in the checkout, taxes and discounts included. /// </summary> public CheckoutQuery totalPriceV2(MoneyV2Delegate buildQuery) { Query.Append("totalPriceV2 "); Query.Append("{"); buildQuery(new MoneyV2Query(Query)); Query.Append("}"); return(this); }
/// <summary> /// The amount left to be paid. This is equal to the cost of the line items, taxes and shipping minus discounts and gift cards. /// </summary> public CheckoutQuery paymentDueV2(MoneyV2Delegate buildQuery) { Query.Append("paymentDueV2 "); Query.Append("{"); buildQuery(new MoneyV2Query(Query)); Query.Append("}"); return(this); }
/// <summary> /// The sum of all the prices of all the items in the checkout. Taxes, shipping and discounts excluded. /// </summary> public CheckoutQuery lineItemsSubtotalPrice(MoneyV2Delegate buildQuery) { Query.Append("lineItemsSubtotalPrice "); Query.Append("{"); buildQuery(new MoneyV2Query(Query)); Query.Append("}"); return(this); }
/// <summary> /// The amount left on the Gift Card. /// </summary> public AppliedGiftCardQuery balanceV2(MoneyV2Delegate buildQuery) { Query.Append("balanceV2 "); Query.Append("{"); buildQuery(new MoneyV2Query(Query)); Query.Append("}"); return(this); }
/// <summary> /// The amount that was used taken from the Gift Card by applying it. /// </summary> public AppliedGiftCardQuery amountUsedV2(MoneyV2Delegate buildQuery) { Query.Append("amountUsedV2 "); Query.Append("{"); buildQuery(new MoneyV2Query(Query)); Query.Append("}"); return(this); }
/// <summary> /// Price of this shipping rate. /// </summary> public ShippingRateQuery priceV2(MoneyV2Delegate buildQuery) { Query.Append("priceV2 "); Query.Append("{"); buildQuery(new MoneyV2Query(Query)); Query.Append("}"); return(this); }
private CheckoutQuery Checkout(CheckoutQuery checkout) { MoneyV2Delegate moneyV2Query = (queryBuilder) => { queryBuilder.amount().currencyCode(); }; return(checkout .id() .webUrl() .currencyCode() .requiresShipping() .subtotalPriceV2(moneyV2Query) .totalTaxV2(moneyV2Query) .totalPriceV2(moneyV2Query) .ready()); }