com.commercetools.graphql.api.client.ProductDiscountProjection 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;
import java.lang.String;
import java.util.ArrayList;
import java.util.List;
public class ProductDiscountProjection, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
public ProductDiscountProjection(PARENT parent, ROOT root) {
super(parent, root, java.util.Optional.of("ProductDiscount"));
}
public ProductDiscountProjection __typename() {
getFields().put("__typename", null);
return this;
}
public ReferenceProjection, ROOT> referenceRefs() {
ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
getFields().put("referenceRefs", projection);
return projection;
}
public LocalizedStringProjection, ROOT> nameAllLocales() {
LocalizedStringProjection, ROOT> projection = new LocalizedStringProjection<>(this, getRoot());
getFields().put("nameAllLocales", projection);
return projection;
}
public LocalizedStringProjection, ROOT> descriptionAllLocales(
) {
LocalizedStringProjection, ROOT> projection = new LocalizedStringProjection<>(this, getRoot());
getFields().put("descriptionAllLocales", projection);
return projection;
}
public ProductDiscountValueProjection, ROOT> value() {
ProductDiscountValueProjection, ROOT> projection = new ProductDiscountValueProjection<>(this, getRoot());
getFields().put("value", 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 ProductDiscountProjection predicate() {
getFields().put("predicate", null);
return this;
}
public ProductDiscountProjection validFrom() {
getFields().put("validFrom", null);
return this;
}
public ProductDiscountProjection validUntil() {
getFields().put("validUntil", null);
return this;
}
public ProductDiscountProjection isActive() {
getFields().put("isActive", null);
return this;
}
public ProductDiscountProjection isValid() {
getFields().put("isValid", null);
return this;
}
public ProductDiscountProjection sortOrder() {
getFields().put("sortOrder", null);
return this;
}
public ProductDiscountProjection key() {
getFields().put("key", null);
return this;
}
public ProductDiscountProjection name() {
getFields().put("name", null);
return this;
}
public ProductDiscountProjection name(String locale, List acceptLanguage) {
getFields().put("name", null);
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 this;
}
public ProductDiscountProjection description() {
getFields().put("description", null);
return this;
}
public ProductDiscountProjection description(String locale, List acceptLanguage) {
getFields().put("description", null);
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 this;
}
public ProductDiscountProjection id() {
getFields().put("id", null);
return this;
}
public ProductDiscountProjection version() {
getFields().put("version", null);
return this;
}
public ProductDiscountProjection createdAt() {
getFields().put("createdAt", null);
return this;
}
public ProductDiscountProjection lastModifiedAt() {
getFields().put("lastModifiedAt", null);
return this;
}
}