com.commercetools.graphql.api.client.CreateDiscountCodeProjectionRoot 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 CreateDiscountCodeProjectionRoot, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
public CreateDiscountCodeProjectionRoot() {
super(null, null, java.util.Optional.of("DiscountCode"));
}
public CreateDiscountCodeProjectionRoot __typename() {
getFields().put("__typename", null);
return this;
}
public StringProjection, CreateDiscountCodeProjectionRoot> name(
String locale, List acceptLanguage) {
StringProjection, CreateDiscountCodeProjectionRoot> 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, CreateDiscountCodeProjectionRoot> description(
String locale, List acceptLanguage) {
StringProjection, CreateDiscountCodeProjectionRoot> 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 CartDiscountProjection, CreateDiscountCodeProjectionRoot> cartDiscounts(
) {
CartDiscountProjection, CreateDiscountCodeProjectionRoot> projection = new CartDiscountProjection<>(this, this);
getFields().put("cartDiscounts", projection);
return projection;
}
public ReferenceProjection, CreateDiscountCodeProjectionRoot> referenceRefs(
) {
ReferenceProjection, CreateDiscountCodeProjectionRoot> projection = new ReferenceProjection<>(this, this);
getFields().put("referenceRefs", projection);
return projection;
}
public LocalizedStringProjection, CreateDiscountCodeProjectionRoot> nameAllLocales(
) {
LocalizedStringProjection, CreateDiscountCodeProjectionRoot> projection = new LocalizedStringProjection<>(this, this);
getFields().put("nameAllLocales", projection);
return projection;
}
public LocalizedStringProjection, CreateDiscountCodeProjectionRoot> descriptionAllLocales(
) {
LocalizedStringProjection, CreateDiscountCodeProjectionRoot> projection = new LocalizedStringProjection<>(this, this);
getFields().put("descriptionAllLocales", projection);
return projection;
}
public CustomFieldsTypeProjection, CreateDiscountCodeProjectionRoot> custom(
) {
CustomFieldsTypeProjection, CreateDiscountCodeProjectionRoot> projection = new CustomFieldsTypeProjection<>(this, this);
getFields().put("custom", projection);
return projection;
}
public ReferenceProjection, CreateDiscountCodeProjectionRoot> cartDiscountRefs(
) {
ReferenceProjection, CreateDiscountCodeProjectionRoot> projection = new ReferenceProjection<>(this, this);
getFields().put("cartDiscountRefs", projection);
return projection;
}
public InitiatorProjection, CreateDiscountCodeProjectionRoot> createdBy(
) {
InitiatorProjection, CreateDiscountCodeProjectionRoot> projection = new InitiatorProjection<>(this, this);
getFields().put("createdBy", projection);
return projection;
}
public InitiatorProjection, CreateDiscountCodeProjectionRoot> lastModifiedBy(
) {
InitiatorProjection, CreateDiscountCodeProjectionRoot> projection = new InitiatorProjection<>(this, this);
getFields().put("lastModifiedBy", projection);
return projection;
}
public CreateDiscountCodeProjectionRoot code() {
getFields().put("code", null);
return this;
}
public CreateDiscountCodeProjectionRoot key() {
getFields().put("key", null);
return this;
}
public CreateDiscountCodeProjectionRoot isActive() {
getFields().put("isActive", null);
return this;
}
public CreateDiscountCodeProjectionRoot maxApplications() {
getFields().put("maxApplications", null);
return this;
}
public CreateDiscountCodeProjectionRoot maxApplicationsPerCustomer() {
getFields().put("maxApplicationsPerCustomer", null);
return this;
}
public CreateDiscountCodeProjectionRoot cartPredicate() {
getFields().put("cartPredicate", null);
return this;
}
public CreateDiscountCodeProjectionRoot applicationVersion() {
getFields().put("applicationVersion", null);
return this;
}
public CreateDiscountCodeProjectionRoot validFrom() {
getFields().put("validFrom", null);
return this;
}
public CreateDiscountCodeProjectionRoot validUntil() {
getFields().put("validUntil", null);
return this;
}
public CreateDiscountCodeProjectionRoot groups() {
getFields().put("groups", null);
return this;
}
public CreateDiscountCodeProjectionRoot name() {
getFields().put("name", null);
return this;
}
public CreateDiscountCodeProjectionRoot description() {
getFields().put("description", null);
return this;
}
public CreateDiscountCodeProjectionRoot applicationCount() {
getFields().put("applicationCount", null);
return this;
}
public CreateDiscountCodeProjectionRoot id() {
getFields().put("id", null);
return this;
}
public CreateDiscountCodeProjectionRoot version() {
getFields().put("version", null);
return this;
}
public CreateDiscountCodeProjectionRoot createdAt() {
getFields().put("createdAt", null);
return this;
}
public CreateDiscountCodeProjectionRoot lastModifiedAt() {
getFields().put("lastModifiedAt", null);
return this;
}
}