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

com.commercetools.graphql.api.client.CartDiscountProjectionRoot 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;
import java.util.List;

public class CartDiscountProjectionRoot, ROOT extends BaseSubProjectionNode> extends BaseSubProjectionNode {
  public CartDiscountProjectionRoot() {
    super(null, null, java.util.Optional.of("CartDiscount"));
  }

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

  public StackingModeProjection, CartDiscountProjectionRoot> stackingMode(
      ) {
    StackingModeProjection, CartDiscountProjectionRoot> projection = new StackingModeProjection<>(this, this);    
    getFields().put("stackingMode", projection);
    return projection;
  }

  public StringProjection, CartDiscountProjectionRoot> name(
      String locale, List acceptLanguage) {
    StringProjection, CartDiscountProjectionRoot> projection = new StringProjection<>(this, this);    
    getFields().put("name", projection);
    getInputArguments().computeIfAbsent("name", k -> new ArrayList<>());                      
    InputArgument localeArg = new InputArgument("locale", locale);
    getInputArguments().get("name").add(localeArg);
    InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
    getInputArguments().get("name").add(acceptLanguageArg);
    return projection;
  }

  public StringProjection, CartDiscountProjectionRoot> description(
      String locale, List acceptLanguage) {
    StringProjection, CartDiscountProjectionRoot> projection = new StringProjection<>(this, this);    
    getFields().put("description", projection);
    getInputArguments().computeIfAbsent("description", k -> new ArrayList<>());                      
    InputArgument localeArg = new InputArgument("locale", locale);
    getInputArguments().get("description").add(localeArg);
    InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
    getInputArguments().get("description").add(acceptLanguageArg);
    return projection;
  }

  public LocalizedStringProjection, CartDiscountProjectionRoot> nameAllLocales(
      ) {
    LocalizedStringProjection, CartDiscountProjectionRoot> projection = new LocalizedStringProjection<>(this, this);    
    getFields().put("nameAllLocales", projection);
    return projection;
  }

  public LocalizedStringProjection, CartDiscountProjectionRoot> descriptionAllLocales(
      ) {
    LocalizedStringProjection, CartDiscountProjectionRoot> projection = new LocalizedStringProjection<>(this, this);    
    getFields().put("descriptionAllLocales", projection);
    return projection;
  }

  public ReferenceProjection, CartDiscountProjectionRoot> referenceRefs(
      ) {
    ReferenceProjection, CartDiscountProjectionRoot> projection = new ReferenceProjection<>(this, this);    
    getFields().put("referenceRefs", projection);
    return projection;
  }

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

  public KeyReferenceProjection, CartDiscountProjectionRoot> storesRef(
      ) {
    KeyReferenceProjection, CartDiscountProjectionRoot> projection = new KeyReferenceProjection<>(this, this);    
    getFields().put("storesRef", projection);
    return projection;
  }

  public StoreProjection, CartDiscountProjectionRoot> stores(
      ) {
    StoreProjection, CartDiscountProjectionRoot> projection = new StoreProjection<>(this, this);    
    getFields().put("stores", projection);
    return projection;
  }

  public CartDiscountValueProjection, CartDiscountProjectionRoot> value(
      ) {
    CartDiscountValueProjection, CartDiscountProjectionRoot> projection = new CartDiscountValueProjection<>(this, this);    
    getFields().put("value", projection);
    return projection;
  }

  public CartDiscountTargetProjection, CartDiscountProjectionRoot> target(
      ) {
    CartDiscountTargetProjection, CartDiscountProjectionRoot> projection = new CartDiscountTargetProjection<>(this, this);    
    getFields().put("target", projection);
    return projection;
  }

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

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

  public CartDiscountProjectionRoot cartPredicate() {
    getFields().put("cartPredicate", null);
    return this;
  }

  public CartDiscountProjectionRoot validFrom() {
    getFields().put("validFrom", null);
    return this;
  }

  public CartDiscountProjectionRoot validUntil() {
    getFields().put("validUntil", null);
    return this;
  }

  public CartDiscountProjectionRoot isActive() {
    getFields().put("isActive", null);
    return this;
  }

  public CartDiscountProjectionRoot requiresDiscountCode() {
    getFields().put("requiresDiscountCode", null);
    return this;
  }

  public CartDiscountProjectionRoot sortOrder() {
    getFields().put("sortOrder", null);
    return this;
  }

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

  public CartDiscountProjectionRoot name() {
    getFields().put("name", null);
    return this;
  }

  public CartDiscountProjectionRoot description() {
    getFields().put("description", null);
    return this;
  }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy