com.commercetools.graphql.api.client.InventoryEntryFragmentProjection 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.Override;
import java.lang.String;
public class InventoryEntryFragmentProjection, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
{
getFields().put("__typename", null);
}
public InventoryEntryFragmentProjection(PARENT parent, ROOT root) {
super(parent, root, java.util.Optional.of("InventoryEntry"));
}
public InventoryEntryFragmentProjection __typename() {
getFields().put("__typename", null);
return this;
}
public ChannelProjection, ROOT> supplyChannel() {
ChannelProjection, ROOT> projection = new ChannelProjection<>(this, getRoot());
getFields().put("supplyChannel", projection);
return projection;
}
public ReferenceProjection, ROOT> supplyChannelRef(
) {
ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
getFields().put("supplyChannelRef", projection);
return projection;
}
public CustomFieldsTypeProjection, ROOT> custom() {
CustomFieldsTypeProjection, ROOT> projection = new CustomFieldsTypeProjection<>(this, getRoot());
getFields().put("custom", 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 InventoryEntryFragmentProjection sku() {
getFields().put("sku", null);
return this;
}
public InventoryEntryFragmentProjection quantityOnStock() {
getFields().put("quantityOnStock", null);
return this;
}
public InventoryEntryFragmentProjection availableQuantity() {
getFields().put("availableQuantity", null);
return this;
}
public InventoryEntryFragmentProjection key() {
getFields().put("key", null);
return this;
}
public InventoryEntryFragmentProjection restockableInDays() {
getFields().put("restockableInDays", null);
return this;
}
public InventoryEntryFragmentProjection expectedDelivery() {
getFields().put("expectedDelivery", null);
return this;
}
public InventoryEntryFragmentProjection id() {
getFields().put("id", null);
return this;
}
public InventoryEntryFragmentProjection version() {
getFields().put("version", null);
return this;
}
public InventoryEntryFragmentProjection createdAt() {
getFields().put("createdAt", null);
return this;
}
public InventoryEntryFragmentProjection lastModifiedAt() {
getFields().put("lastModifiedAt", null);
return this;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("... on InventoryEntry {");
getFields().forEach((k, v) -> {
builder.append(" ").append(k);
if(v != null) {
builder.append(" ").append(v.toString());
}
});
builder.append("}");
return builder.toString();
}
}