io.stigg.api.operations.fragment.CheckoutConfigurationFragment 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.fragment;
import com.apollographql.apollo3.api.Fragment;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
public class CheckoutConfigurationFragment implements Fragment.Data {
public Palette palette;
public Typography typography;
public String customCss;
public Content content;
public String __typename;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public CheckoutConfigurationFragment(Palette palette, Typography typography, String customCss,
Content content, String __typename) {
this.palette = palette;
this.typography = typography;
this.customCss = customCss;
this.content = content;
this.__typename = __typename;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CheckoutConfigurationFragment) {
CheckoutConfigurationFragment that = (CheckoutConfigurationFragment) o;
return ((this.palette == null) ? (that.palette == null) : this.palette.equals(that.palette))
&&((this.typography == null) ? (that.typography == null) : this.typography.equals(that.typography))
&&((this.customCss == null) ? (that.customCss == null) : this.customCss.equals(that.customCss))
&&((this.content == null) ? (that.content == null) : this.content.equals(that.content))
&&((this.__typename == null) ? (that.__typename == null) : this.__typename.equals(that.__typename));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (palette == null) ? 0 : palette.hashCode();
__h *= 1000003;
__h ^= (typography == null) ? 0 : typography.hashCode();
__h *= 1000003;
__h ^= (customCss == null) ? 0 : customCss.hashCode();
__h *= 1000003;
__h ^= (content == null) ? 0 : content.hashCode();
__h *= 1000003;
__h ^= (__typename == null) ? 0 : __typename.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "CheckoutConfigurationFragment{"
+ "palette=" + palette + ", "
+ "typography=" + typography + ", "
+ "customCss=" + customCss + ", "
+ "content=" + content + ", "
+ "__typename=" + __typename
+ "}";
}
return $toString;
}
public static class Palette {
public String primary;
public String textColor;
public String backgroundColor;
public String borderColor;
public String summaryBackgroundColor;
public String __typename;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Palette(String primary, String textColor, String backgroundColor, String borderColor,
String summaryBackgroundColor, String __typename) {
this.primary = primary;
this.textColor = textColor;
this.backgroundColor = backgroundColor;
this.borderColor = borderColor;
this.summaryBackgroundColor = summaryBackgroundColor;
this.__typename = __typename;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Palette) {
Palette that = (Palette) o;
return ((this.primary == null) ? (that.primary == null) : this.primary.equals(that.primary))
&&((this.textColor == null) ? (that.textColor == null) : this.textColor.equals(that.textColor))
&&((this.backgroundColor == null) ? (that.backgroundColor == null) : this.backgroundColor.equals(that.backgroundColor))
&&((this.borderColor == null) ? (that.borderColor == null) : this.borderColor.equals(that.borderColor))
&&((this.summaryBackgroundColor == null) ? (that.summaryBackgroundColor == null) : this.summaryBackgroundColor.equals(that.summaryBackgroundColor))
&&((this.__typename == null) ? (that.__typename == null) : this.__typename.equals(that.__typename));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (primary == null) ? 0 : primary.hashCode();
__h *= 1000003;
__h ^= (textColor == null) ? 0 : textColor.hashCode();
__h *= 1000003;
__h ^= (backgroundColor == null) ? 0 : backgroundColor.hashCode();
__h *= 1000003;
__h ^= (borderColor == null) ? 0 : borderColor.hashCode();
__h *= 1000003;
__h ^= (summaryBackgroundColor == null) ? 0 : summaryBackgroundColor.hashCode();
__h *= 1000003;
__h ^= (__typename == null) ? 0 : __typename.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Palette{"
+ "primary=" + primary + ", "
+ "textColor=" + textColor + ", "
+ "backgroundColor=" + backgroundColor + ", "
+ "borderColor=" + borderColor + ", "
+ "summaryBackgroundColor=" + summaryBackgroundColor + ", "
+ "__typename=" + __typename
+ "}";
}
return $toString;
}
}
public static class Typography {
public String __typename;
/**
* Synthetic field for 'TypographyConfigurationFragment'
*/
public TypographyConfigurationFragment typographyConfigurationFragment;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Typography(String __typename,
TypographyConfigurationFragment typographyConfigurationFragment) {
this.__typename = __typename;
this.typographyConfigurationFragment = typographyConfigurationFragment;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Typography) {
Typography that = (Typography) o;
return ((this.__typename == null) ? (that.__typename == null) : this.__typename.equals(that.__typename))
&&((this.typographyConfigurationFragment == null) ? (that.typographyConfigurationFragment == null) : this.typographyConfigurationFragment.equals(that.typographyConfigurationFragment));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (__typename == null) ? 0 : __typename.hashCode();
__h *= 1000003;
__h ^= (typographyConfigurationFragment == null) ? 0 : typographyConfigurationFragment.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Typography{"
+ "__typename=" + __typename + ", "
+ "typographyConfigurationFragment=" + typographyConfigurationFragment
+ "}";
}
return $toString;
}
}
public static class Content {
public Boolean collectPhoneNumber;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Content(Boolean collectPhoneNumber) {
this.collectPhoneNumber = collectPhoneNumber;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Content) {
Content that = (Content) o;
return ((this.collectPhoneNumber == null) ? (that.collectPhoneNumber == null) : this.collectPhoneNumber.equals(that.collectPhoneNumber));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (collectPhoneNumber == null) ? 0 : collectPhoneNumber.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Content{"
+ "collectPhoneNumber=" + collectPhoneNumber
+ "}";
}
return $toString;
}
}
}