com.commercetools.graphql.api.client.DirectDiscountProjection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commercetools-graphql-api Show documentation
Show all versions of commercetools-graphql-api Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
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;
}
}