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

com.commercetools.graphql.api.client.ParcelItemsUpdatedFragmentProjection 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;
import java.lang.Override;
import java.lang.String;

public class ParcelItemsUpdatedFragmentProjection, ROOT extends BaseSubProjectionNode> extends BaseSubProjectionNode {
  {
    getFields().put("__typename", null);
  }

  public ParcelItemsUpdatedFragmentProjection(PARENT parent, ROOT root) {
    super(parent, root, java.util.Optional.of("ParcelItemsUpdated"));
  }

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

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

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

  public ParcelItemsUpdatedFragmentProjection deliveryId() {
    getFields().put("deliveryId", null);
    return this;
  }

  public ParcelItemsUpdatedFragmentProjection parcelId() {
    getFields().put("parcelId", null);
    return this;
  }

  public ParcelItemsUpdatedFragmentProjection shippingKey() {
    getFields().put("shippingKey", null);
    return this;
  }

  public ParcelItemsUpdatedFragmentProjection type() {
    getFields().put("type", null);
    return this;
  }

  @Override
  public String toString() {
    StringBuilder builder = new StringBuilder();
    builder.append("... on ParcelItemsUpdated {");
    getFields().forEach((k, v) -> {
        builder.append(" ").append(k);
        if(v != null) {
            builder.append(" ").append(v.toString());
        }
    });
    builder.append("}");
     
    return builder.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy