All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercetools.graphql.api.client.CartProjection Maven / Gradle / Ivy

There is a newer version: 17.15.1
Show newest version
package com.commercetools.graphql.api.client;

import com.netflix.graphql.dgs.client.codegen.BaseSubProjectionNode;
import java.lang.String;
import java.util.ArrayList;

public class CartProjection, ROOT extends BaseSubProjectionNode> extends BaseSubProjectionNode {
  public CartProjection(PARENT parent, ROOT root) {
    super(parent, root, java.util.Optional.of("Cart"));
  }

  public CartProjection __typename() {
    getFields().put("__typename", null);
    return this;
  }

  public CustomerProjection, ROOT> customer() {
     CustomerProjection, ROOT> projection = new CustomerProjection<>(this, getRoot());
     getFields().put("customer", projection);
     return projection;
  }

  public LineItemProjection, ROOT> lineItems() {
     LineItemProjection, ROOT> projection = new LineItemProjection<>(this, getRoot());
     getFields().put("lineItems", projection);
     return projection;
  }

  public LineItemProjection, ROOT> lineItems(String id) {
    LineItemProjection, ROOT> projection = new LineItemProjection<>(this, getRoot());    
    getFields().put("lineItems", projection);
    getInputArguments().computeIfAbsent("lineItems", k -> new ArrayList<>());                      
    InputArgument idArg = new InputArgument("id", id);
    getInputArguments().get("lineItems").add(idArg);
    return projection;
  }

  public CustomLineItemProjection, ROOT> customLineItems() {
     CustomLineItemProjection, ROOT> projection = new CustomLineItemProjection<>(this, getRoot());
     getFields().put("customLineItems", projection);
     return projection;
  }

  public MoneyProjection, ROOT> totalPrice() {
     MoneyProjection, ROOT> projection = new MoneyProjection<>(this, getRoot());
     getFields().put("totalPrice", projection);
     return projection;
  }

  public TaxedPriceProjection, ROOT> taxedPrice() {
     TaxedPriceProjection, ROOT> projection = new TaxedPriceProjection<>(this, getRoot());
     getFields().put("taxedPrice", projection);
     return projection;
  }

  public DiscountOnTotalPriceProjection, ROOT> discountOnTotalPrice() {
     DiscountOnTotalPriceProjection, ROOT> projection = new DiscountOnTotalPriceProjection<>(this, getRoot());
     getFields().put("discountOnTotalPrice", projection);
     return projection;
  }

  public AddressProjection, ROOT> shippingAddress() {
     AddressProjection, ROOT> projection = new AddressProjection<>(this, getRoot());
     getFields().put("shippingAddress", projection);
     return projection;
  }

  public AddressProjection, ROOT> billingAddress() {
     AddressProjection, ROOT> projection = new AddressProjection<>(this, getRoot());
     getFields().put("billingAddress", projection);
     return projection;
  }

  public InventoryModeProjection, ROOT> inventoryMode() {
     InventoryModeProjection, ROOT> projection = new InventoryModeProjection<>(this, getRoot());
     getFields().put("inventoryMode", projection);
     return projection;
  }

  public TaxModeProjection, ROOT> taxMode() {
     TaxModeProjection, ROOT> projection = new TaxModeProjection<>(this, getRoot());
     getFields().put("taxMode", projection);
     return projection;
  }

  public RoundingModeProjection, ROOT> taxRoundingMode() {
     RoundingModeProjection, ROOT> projection = new RoundingModeProjection<>(this, getRoot());
     getFields().put("taxRoundingMode", projection);
     return projection;
  }

  public TaxCalculationModeProjection, ROOT> taxCalculationMode() {
     TaxCalculationModeProjection, ROOT> projection = new TaxCalculationModeProjection<>(this, getRoot());
     getFields().put("taxCalculationMode", projection);
     return projection;
  }

  public CustomerGroupProjection, ROOT> customerGroup() {
     CustomerGroupProjection, ROOT> projection = new CustomerGroupProjection<>(this, getRoot());
     getFields().put("customerGroup", projection);
     return projection;
  }

  public ReferenceProjection, ROOT> customerGroupRef() {
     ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
     getFields().put("customerGroupRef", projection);
     return projection;
  }

  public ShippingInfoProjection, ROOT> shippingInfo() {
     ShippingInfoProjection, ROOT> projection = new ShippingInfoProjection<>(this, getRoot());
     getFields().put("shippingInfo", projection);
     return projection;
  }

  public DiscountCodeInfoProjection, ROOT> discountCodes() {
     DiscountCodeInfoProjection, ROOT> projection = new DiscountCodeInfoProjection<>(this, getRoot());
     getFields().put("discountCodes", projection);
     return projection;
  }

  public DirectDiscountProjection, ROOT> directDiscounts() {
     DirectDiscountProjection, ROOT> projection = new DirectDiscountProjection<>(this, getRoot());
     getFields().put("directDiscounts", projection);
     return projection;
  }

  public CartDiscountProjection, ROOT> refusedGifts() {
     CartDiscountProjection, ROOT> projection = new CartDiscountProjection<>(this, getRoot());
     getFields().put("refusedGifts", projection);
     return projection;
  }

  public ReferenceProjection, ROOT> refusedGiftsRefs() {
     ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
     getFields().put("refusedGiftsRefs", projection);
     return projection;
  }

  public PaymentInfoProjection, ROOT> paymentInfo() {
     PaymentInfoProjection, ROOT> projection = new PaymentInfoProjection<>(this, getRoot());
     getFields().put("paymentInfo", projection);
     return projection;
  }

  public ShippingRateInputProjection, ROOT> shippingRateInput() {
     ShippingRateInputProjection, ROOT> projection = new ShippingRateInputProjection<>(this, getRoot());
     getFields().put("shippingRateInput", projection);
     return projection;
  }

  public CartOriginProjection, ROOT> origin() {
     CartOriginProjection, ROOT> projection = new CartOriginProjection<>(this, getRoot());
     getFields().put("origin", projection);
     return projection;
  }

  public KeyReferenceProjection, ROOT> storeRef() {
     KeyReferenceProjection, ROOT> projection = new KeyReferenceProjection<>(this, getRoot());
     getFields().put("storeRef", projection);
     return projection;
  }

  public StoreProjection, ROOT> store() {
     StoreProjection, ROOT> projection = new StoreProjection<>(this, getRoot());
     getFields().put("store", projection);
     return projection;
  }

  public AddressProjection, ROOT> itemShippingAddresses() {
     AddressProjection, ROOT> projection = new AddressProjection<>(this, getRoot());
     getFields().put("itemShippingAddresses", projection);
     return projection;
  }

  public BusinessUnitProjection, ROOT> businessUnit() {
     BusinessUnitProjection, ROOT> projection = new BusinessUnitProjection<>(this, getRoot());
     getFields().put("businessUnit", projection);
     return projection;
  }

  public KeyReferenceProjection, ROOT> businessUnitRef() {
     KeyReferenceProjection, ROOT> projection = new KeyReferenceProjection<>(this, getRoot());
     getFields().put("businessUnitRef", projection);
     return projection;
  }

  public ShippingProjection, ROOT> shipping() {
     ShippingProjection, ROOT> projection = new ShippingProjection<>(this, getRoot());
     getFields().put("shipping", projection);
     return projection;
  }

  public TaxedPriceProjection, ROOT> taxedShippingPrice() {
     TaxedPriceProjection, ROOT> projection = new TaxedPriceProjection<>(this, getRoot());
     getFields().put("taxedShippingPrice", projection);
     return projection;
  }

  public ShippingModeProjection, ROOT> shippingMode() {
     ShippingModeProjection, ROOT> projection = new ShippingModeProjection<>(this, getRoot());
     getFields().put("shippingMode", projection);
     return projection;
  }

  public CustomFieldsTypeProjection, ROOT> shippingCustomFields() {
     CustomFieldsTypeProjection, ROOT> projection = new CustomFieldsTypeProjection<>(this, getRoot());
     getFields().put("shippingCustomFields", projection);
     return projection;
  }

  public CartStateProjection, ROOT> cartState() {
     CartStateProjection, ROOT> projection = new CartStateProjection<>(this, getRoot());
     getFields().put("cartState", projection);
     return projection;
  }

  public CustomFieldsTypeProjection, ROOT> custom() {
     CustomFieldsTypeProjection, ROOT> projection = new CustomFieldsTypeProjection<>(this, getRoot());
     getFields().put("custom", projection);
     return projection;
  }

  public InitiatorProjection, ROOT> createdBy() {
     InitiatorProjection, ROOT> projection = new InitiatorProjection<>(this, getRoot());
     getFields().put("createdBy", projection);
     return projection;
  }

  public InitiatorProjection, ROOT> lastModifiedBy() {
     InitiatorProjection, ROOT> projection = new InitiatorProjection<>(this, getRoot());
     getFields().put("lastModifiedBy", projection);
     return projection;
  }

  public CartProjection customerId() {
    getFields().put("customerId", null);
    return this;
  }

  public CartProjection customerEmail() {
    getFields().put("customerEmail", null);
    return this;
  }

  public CartProjection anonymousId() {
    getFields().put("anonymousId", null);
    return this;
  }

  public CartProjection country() {
    getFields().put("country", null);
    return this;
  }

  public CartProjection shippingKey() {
    getFields().put("shippingKey", null);
    return this;
  }

  public CartProjection locale() {
    getFields().put("locale", null);
    return this;
  }

  public CartProjection key() {
    getFields().put("key", null);
    return this;
  }

  public CartProjection deleteDaysAfterLastModification() {
    getFields().put("deleteDaysAfterLastModification", null);
    return this;
  }

  public CartProjection totalLineItemQuantity() {
    getFields().put("totalLineItemQuantity", null);
    return this;
  }

  public CartProjection id() {
    getFields().put("id", null);
    return this;
  }

  public CartProjection version() {
    getFields().put("version", null);
    return this;
  }

  public CartProjection createdAt() {
    getFields().put("createdAt", null);
    return this;
  }

  public CartProjection lastModifiedAt() {
    getFields().put("lastModifiedAt", null);
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy