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

com.commercetools.graphql.api.client.DirectDiscountProjection 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;

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy