private CheckoutQuery Checkout(CheckoutQuery checkout) { return(checkout .id() .webUrl() .currencyCode() .requiresShipping() .subtotalPrice() .totalTax() .totalPrice() .ready()); }
private CheckoutQuery Checkout(CheckoutQuery checkout) { MoneyV2Delegate moneyV2Query = (queryBuilder) => { queryBuilder.amount().currencyCode(); }; return(checkout .id() .webUrl() .currencyCode() .requiresShipping() .subtotalPriceV2(moneyV2Query) .totalTaxV2(moneyV2Query) .totalPriceV2(moneyV2Query) .ready()); }
private CheckoutQuery CheckoutLineItems(CheckoutQuery checkout, int first = 250, string after = null) { return(checkout.lineItems( buildQuery: lineItems => lineItems .edges(edge => edge .node(node => node .id() .variant(variant => variant .id() ) ) .cursor() ) .pageInfo(pageInfo => pageInfo .hasNextPage() ), first: first, after: after )); }