io.stigg.api.operations.ImportCustomerMutation Maven / Gradle / Ivy
//
// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL version '3.8.2'.
//
package io.stigg.api.operations;
import com.apollographql.apollo3.api.Adapter;
import com.apollographql.apollo3.api.CompiledField;
import com.apollographql.apollo3.api.CustomScalarAdapters;
import com.apollographql.apollo3.api.Mutation;
import com.apollographql.apollo3.api.ObjectAdapter;
import com.apollographql.apollo3.api.json.JsonWriter;
import io.stigg.api.operations.adapter.ImportCustomerMutation_ResponseAdapter;
import io.stigg.api.operations.adapter.ImportCustomerMutation_VariablesAdapter;
import io.stigg.api.operations.fragment.SlimCustomerFragment;
import io.stigg.api.operations.selections.ImportCustomerMutationSelections;
import io.stigg.api.operations.type.ImportCustomerInput;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
public class ImportCustomerMutation implements Mutation {
public static final String OPERATION_ID = "8b8dc9d13ec58a74d120189abc8a0ebad47894fabb5b4c5f905546c7aa061f60";
/**
* The minimized GraphQL document being sent to the server to save a few bytes.
* The un-minimized version is:
*
* mutation ImportCustomer($input: ImportCustomerInput!) {
* importCustomer: importOneCustomer(input: $input) {
* __typename
* ...SlimCustomerFragment
* }
* }
*
* fragment SlimCustomerFragment on Customer {
* id
* name
* email
* createdAt
* updatedAt
* refId
* customerId
* billingId
* additionalMetaData
* awsMarketplaceCustomerId
* }
*/
public static final String OPERATION_DOCUMENT = "mutation ImportCustomer($input: ImportCustomerInput!) { importCustomer: importOneCustomer(input: $input) { __typename ...SlimCustomerFragment } } fragment SlimCustomerFragment on Customer { id name email createdAt updatedAt refId customerId billingId additionalMetaData awsMarketplaceCustomerId }";
public static final String OPERATION_NAME = "ImportCustomer";
public final ImportCustomerInput input;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public ImportCustomerMutation(ImportCustomerInput input) {
this.input = input;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ImportCustomerMutation) {
ImportCustomerMutation that = (ImportCustomerMutation) o;
return ((this.input == null) ? (that.input == null) : this.input.equals(that.input));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (input == null) ? 0 : input.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "ImportCustomerMutation{"
+ "input=" + input
+ "}";
}
return $toString;
}
public static Builder builder() {
return new Builder();
}
@Override
public String id() {
return OPERATION_ID;
}
@Override
public String document() {
return OPERATION_DOCUMENT;
}
@Override
public String name() {
return OPERATION_NAME;
}
@Override
public void serializeVariables(JsonWriter writer, CustomScalarAdapters customScalarAdapters)
throws IOException {
ImportCustomerMutation_VariablesAdapter.INSTANCE.toJson(writer, customScalarAdapters, this);
}
@Override
public Adapter adapter() {
return new ObjectAdapter(ImportCustomerMutation_ResponseAdapter.Data.INSTANCE, false);
}
@Override
public CompiledField rootField() {
return new CompiledField.Builder(
"data",
io.stigg.api.operations.type.Mutation.type
)
.selections(ImportCustomerMutationSelections.__root)
.build();
}
public static final class Builder {
private ImportCustomerInput input;
Builder() {
}
public Builder input(ImportCustomerInput input) {
this.input = input;
return this;
}
public ImportCustomerMutation build() {
return new ImportCustomerMutation(input);
}
}
public static class Data implements Mutation.Data {
public ImportCustomer importCustomer;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Data(ImportCustomer importCustomer) {
this.importCustomer = importCustomer;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Data) {
Data that = (Data) o;
return ((this.importCustomer == null) ? (that.importCustomer == null) : this.importCustomer.equals(that.importCustomer));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (importCustomer == null) ? 0 : importCustomer.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Data{"
+ "importCustomer=" + importCustomer
+ "}";
}
return $toString;
}
}
public static class ImportCustomer {
public String __typename;
/**
* Synthetic field for 'SlimCustomerFragment'
*/
public SlimCustomerFragment slimCustomerFragment;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public ImportCustomer(String __typename, SlimCustomerFragment slimCustomerFragment) {
this.__typename = __typename;
this.slimCustomerFragment = slimCustomerFragment;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ImportCustomer) {
ImportCustomer that = (ImportCustomer) o;
return ((this.__typename == null) ? (that.__typename == null) : this.__typename.equals(that.__typename))
&&((this.slimCustomerFragment == null) ? (that.slimCustomerFragment == null) : this.slimCustomerFragment.equals(that.slimCustomerFragment));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (__typename == null) ? 0 : __typename.hashCode();
__h *= 1000003;
__h ^= (slimCustomerFragment == null) ? 0 : slimCustomerFragment.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "ImportCustomer{"
+ "__typename=" + __typename + ", "
+ "slimCustomerFragment=" + slimCustomerFragment
+ "}";
}
return $toString;
}
}
}