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

io.stigg.api.operations.fragment.ScheduleVariablesFragment Maven / Gradle / Ivy

There is a newer version: 2.129.0
Show newest version
//
// 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 io.stigg.api.operations.type.BillingPeriod;
import io.stigg.api.operations.type.PlanChangeType;
import java.lang.Double;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.util.List;

public class ScheduleVariablesFragment implements Fragment.Data {
  public String __typename;

  /**
   * Synthetic field for inline fragment on PlanChangeVariables
   */
  public OnPlanChangeVariables onPlanChangeVariables;

  /**
   * Synthetic field for inline fragment on DowngradeChangeVariables
   */
  public OnDowngradeChangeVariables onDowngradeChangeVariables;

  /**
   * Synthetic field for inline fragment on BillingPeriodChangeVariables
   */
  public OnBillingPeriodChangeVariables onBillingPeriodChangeVariables;

  /**
   * Synthetic field for inline fragment on UnitAmountChangeVariables
   */
  public OnUnitAmountChangeVariables onUnitAmountChangeVariables;

  /**
   * Synthetic field for inline fragment on AddonChangeVariables
   */
  public OnAddonChangeVariables onAddonChangeVariables;

  private transient volatile int $hashCode;

  private transient volatile boolean $hashCodeMemoized;

  private transient volatile String $toString;

  public ScheduleVariablesFragment(String __typename, OnPlanChangeVariables onPlanChangeVariables,
      OnDowngradeChangeVariables onDowngradeChangeVariables,
      OnBillingPeriodChangeVariables onBillingPeriodChangeVariables,
      OnUnitAmountChangeVariables onUnitAmountChangeVariables,
      OnAddonChangeVariables onAddonChangeVariables) {
    this.__typename = __typename;
    this.onPlanChangeVariables = onPlanChangeVariables;
    this.onDowngradeChangeVariables = onDowngradeChangeVariables;
    this.onBillingPeriodChangeVariables = onBillingPeriodChangeVariables;
    this.onUnitAmountChangeVariables = onUnitAmountChangeVariables;
    this.onAddonChangeVariables = onAddonChangeVariables;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ScheduleVariablesFragment) {
      ScheduleVariablesFragment that = (ScheduleVariablesFragment) o;
      return ((this.__typename == null) ? (that.__typename == null) : this.__typename.equals(that.__typename))
       &&((this.onPlanChangeVariables == null) ? (that.onPlanChangeVariables == null) : this.onPlanChangeVariables.equals(that.onPlanChangeVariables))
       &&((this.onDowngradeChangeVariables == null) ? (that.onDowngradeChangeVariables == null) : this.onDowngradeChangeVariables.equals(that.onDowngradeChangeVariables))
       &&((this.onBillingPeriodChangeVariables == null) ? (that.onBillingPeriodChangeVariables == null) : this.onBillingPeriodChangeVariables.equals(that.onBillingPeriodChangeVariables))
       &&((this.onUnitAmountChangeVariables == null) ? (that.onUnitAmountChangeVariables == null) : this.onUnitAmountChangeVariables.equals(that.onUnitAmountChangeVariables))
       &&((this.onAddonChangeVariables == null) ? (that.onAddonChangeVariables == null) : this.onAddonChangeVariables.equals(that.onAddonChangeVariables));
    }
    return false;
  }

  @Override
  public int hashCode() {
    if (!$hashCodeMemoized) {
      int __h = 1;
      __h *= 1000003;
      __h ^= (__typename == null) ? 0 : __typename.hashCode();
      __h *= 1000003;
      __h ^= (onPlanChangeVariables == null) ? 0 : onPlanChangeVariables.hashCode();
      __h *= 1000003;
      __h ^= (onDowngradeChangeVariables == null) ? 0 : onDowngradeChangeVariables.hashCode();
      __h *= 1000003;
      __h ^= (onBillingPeriodChangeVariables == null) ? 0 : onBillingPeriodChangeVariables.hashCode();
      __h *= 1000003;
      __h ^= (onUnitAmountChangeVariables == null) ? 0 : onUnitAmountChangeVariables.hashCode();
      __h *= 1000003;
      __h ^= (onAddonChangeVariables == null) ? 0 : onAddonChangeVariables.hashCode();
      $hashCode = __h;
      $hashCodeMemoized = true;
    }
    return $hashCode;
  }

  @Override
  public String toString() {
    if ($toString == null) {
      $toString = "ScheduleVariablesFragment{"
        + "__typename=" + __typename + ", "
        + "onPlanChangeVariables=" + onPlanChangeVariables + ", "
        + "onDowngradeChangeVariables=" + onDowngradeChangeVariables + ", "
        + "onBillingPeriodChangeVariables=" + onBillingPeriodChangeVariables + ", "
        + "onUnitAmountChangeVariables=" + onUnitAmountChangeVariables + ", "
        + "onAddonChangeVariables=" + onAddonChangeVariables
        + "}";
    }
    return $toString;
  }

  public static class OnPlanChangeVariables {
    public String planRefId;

    public PlanChangeType changeType;

    public BillingPeriod billingPeriod;

    public List billableFeatures;

    public List addons;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public OnPlanChangeVariables(String planRefId, PlanChangeType changeType,
        BillingPeriod billingPeriod, List billableFeatures, List addons) {
      this.planRefId = planRefId;
      this.changeType = changeType;
      this.billingPeriod = billingPeriod;
      this.billableFeatures = billableFeatures;
      this.addons = addons;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof OnPlanChangeVariables) {
        OnPlanChangeVariables that = (OnPlanChangeVariables) o;
        return ((this.planRefId == null) ? (that.planRefId == null) : this.planRefId.equals(that.planRefId))
         &&((this.changeType == null) ? (that.changeType == null) : this.changeType.equals(that.changeType))
         &&((this.billingPeriod == null) ? (that.billingPeriod == null) : this.billingPeriod.equals(that.billingPeriod))
         &&((this.billableFeatures == null) ? (that.billableFeatures == null) : this.billableFeatures.equals(that.billableFeatures))
         &&((this.addons == null) ? (that.addons == null) : this.addons.equals(that.addons));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (planRefId == null) ? 0 : planRefId.hashCode();
        __h *= 1000003;
        __h ^= (changeType == null) ? 0 : changeType.hashCode();
        __h *= 1000003;
        __h ^= (billingPeriod == null) ? 0 : billingPeriod.hashCode();
        __h *= 1000003;
        __h ^= (billableFeatures == null) ? 0 : billableFeatures.hashCode();
        __h *= 1000003;
        __h ^= (addons == null) ? 0 : addons.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "OnPlanChangeVariables{"
          + "planRefId=" + planRefId + ", "
          + "changeType=" + changeType + ", "
          + "billingPeriod=" + billingPeriod + ", "
          + "billableFeatures=" + billableFeatures + ", "
          + "addons=" + addons
          + "}";
      }
      return $toString;
    }
  }

  public static class OnDowngradeChangeVariables {
    public String downgradePlanRefId;

    public BillingPeriod billingPeriod;

    public List billableFeatures;

    public List addons;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public OnDowngradeChangeVariables(String downgradePlanRefId, BillingPeriod billingPeriod,
        List billableFeatures, List addons) {
      this.downgradePlanRefId = downgradePlanRefId;
      this.billingPeriod = billingPeriod;
      this.billableFeatures = billableFeatures;
      this.addons = addons;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof OnDowngradeChangeVariables) {
        OnDowngradeChangeVariables that = (OnDowngradeChangeVariables) o;
        return ((this.downgradePlanRefId == null) ? (that.downgradePlanRefId == null) : this.downgradePlanRefId.equals(that.downgradePlanRefId))
         &&((this.billingPeriod == null) ? (that.billingPeriod == null) : this.billingPeriod.equals(that.billingPeriod))
         &&((this.billableFeatures == null) ? (that.billableFeatures == null) : this.billableFeatures.equals(that.billableFeatures))
         &&((this.addons == null) ? (that.addons == null) : this.addons.equals(that.addons));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (downgradePlanRefId == null) ? 0 : downgradePlanRefId.hashCode();
        __h *= 1000003;
        __h ^= (billingPeriod == null) ? 0 : billingPeriod.hashCode();
        __h *= 1000003;
        __h ^= (billableFeatures == null) ? 0 : billableFeatures.hashCode();
        __h *= 1000003;
        __h ^= (addons == null) ? 0 : addons.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "OnDowngradeChangeVariables{"
          + "downgradePlanRefId=" + downgradePlanRefId + ", "
          + "billingPeriod=" + billingPeriod + ", "
          + "billableFeatures=" + billableFeatures + ", "
          + "addons=" + addons
          + "}";
      }
      return $toString;
    }
  }

  public static class OnBillingPeriodChangeVariables {
    public BillingPeriod billingPeriod;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public OnBillingPeriodChangeVariables(BillingPeriod billingPeriod) {
      this.billingPeriod = billingPeriod;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof OnBillingPeriodChangeVariables) {
        OnBillingPeriodChangeVariables that = (OnBillingPeriodChangeVariables) o;
        return ((this.billingPeriod == null) ? (that.billingPeriod == null) : this.billingPeriod.equals(that.billingPeriod));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (billingPeriod == null) ? 0 : billingPeriod.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "OnBillingPeriodChangeVariables{"
          + "billingPeriod=" + billingPeriod
          + "}";
      }
      return $toString;
    }
  }

  public static class OnUnitAmountChangeVariables {
    public Double newUnitAmount;

    public String featureId;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public OnUnitAmountChangeVariables(Double newUnitAmount, String featureId) {
      this.newUnitAmount = newUnitAmount;
      this.featureId = featureId;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof OnUnitAmountChangeVariables) {
        OnUnitAmountChangeVariables that = (OnUnitAmountChangeVariables) o;
        return ((this.newUnitAmount == null) ? (that.newUnitAmount == null) : this.newUnitAmount.equals(that.newUnitAmount))
         &&((this.featureId == null) ? (that.featureId == null) : this.featureId.equals(that.featureId));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (newUnitAmount == null) ? 0 : newUnitAmount.hashCode();
        __h *= 1000003;
        __h ^= (featureId == null) ? 0 : featureId.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "OnUnitAmountChangeVariables{"
          + "newUnitAmount=" + newUnitAmount + ", "
          + "featureId=" + featureId
          + "}";
      }
      return $toString;
    }
  }

  public static class OnAddonChangeVariables {
    public String addonRefId;

    public Double newQuantity;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public OnAddonChangeVariables(String addonRefId, Double newQuantity) {
      this.addonRefId = addonRefId;
      this.newQuantity = newQuantity;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof OnAddonChangeVariables) {
        OnAddonChangeVariables that = (OnAddonChangeVariables) o;
        return ((this.addonRefId == null) ? (that.addonRefId == null) : this.addonRefId.equals(that.addonRefId))
         &&((this.newQuantity == null) ? (that.newQuantity == null) : this.newQuantity.equals(that.newQuantity));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (addonRefId == null) ? 0 : addonRefId.hashCode();
        __h *= 1000003;
        __h ^= (newQuantity == null) ? 0 : newQuantity.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "OnAddonChangeVariables{"
          + "addonRefId=" + addonRefId + ", "
          + "newQuantity=" + newQuantity
          + "}";
      }
      return $toString;
    }
  }

  public static class BillableFeature {
    public String featureId;

    public Double quantity;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public BillableFeature(String featureId, Double quantity) {
      this.featureId = featureId;
      this.quantity = quantity;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof BillableFeature) {
        BillableFeature that = (BillableFeature) o;
        return ((this.featureId == null) ? (that.featureId == null) : this.featureId.equals(that.featureId))
         &&((this.quantity == null) ? (that.quantity == null) : this.quantity.equals(that.quantity));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (featureId == null) ? 0 : featureId.hashCode();
        __h *= 1000003;
        __h ^= (quantity == null) ? 0 : quantity.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "BillableFeature{"
          + "featureId=" + featureId + ", "
          + "quantity=" + quantity
          + "}";
      }
      return $toString;
    }
  }

  public static class Addon {
    public String addonRefId;

    public Double quantity;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public Addon(String addonRefId, Double quantity) {
      this.addonRefId = addonRefId;
      this.quantity = quantity;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof Addon) {
        Addon that = (Addon) o;
        return ((this.addonRefId == null) ? (that.addonRefId == null) : this.addonRefId.equals(that.addonRefId))
         &&((this.quantity == null) ? (that.quantity == null) : this.quantity.equals(that.quantity));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (addonRefId == null) ? 0 : addonRefId.hashCode();
        __h *= 1000003;
        __h ^= (quantity == null) ? 0 : quantity.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "Addon{"
          + "addonRefId=" + addonRefId + ", "
          + "quantity=" + quantity
          + "}";
      }
      return $toString;
    }
  }

  public static class BillableFeature1 {
    public String featureId;

    public Double quantity;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public BillableFeature1(String featureId, Double quantity) {
      this.featureId = featureId;
      this.quantity = quantity;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof BillableFeature1) {
        BillableFeature1 that = (BillableFeature1) o;
        return ((this.featureId == null) ? (that.featureId == null) : this.featureId.equals(that.featureId))
         &&((this.quantity == null) ? (that.quantity == null) : this.quantity.equals(that.quantity));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (featureId == null) ? 0 : featureId.hashCode();
        __h *= 1000003;
        __h ^= (quantity == null) ? 0 : quantity.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "BillableFeature1{"
          + "featureId=" + featureId + ", "
          + "quantity=" + quantity
          + "}";
      }
      return $toString;
    }
  }

  public static class Addon1 {
    public String addonRefId;

    public Double quantity;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public Addon1(String addonRefId, Double quantity) {
      this.addonRefId = addonRefId;
      this.quantity = quantity;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof Addon1) {
        Addon1 that = (Addon1) o;
        return ((this.addonRefId == null) ? (that.addonRefId == null) : this.addonRefId.equals(that.addonRefId))
         &&((this.quantity == null) ? (that.quantity == null) : this.quantity.equals(that.quantity));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int __h = 1;
        __h *= 1000003;
        __h ^= (addonRefId == null) ? 0 : addonRefId.hashCode();
        __h *= 1000003;
        __h ^= (quantity == null) ? 0 : quantity.hashCode();
        $hashCode = __h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "Addon1{"
          + "addonRefId=" + addonRefId + ", "
          + "quantity=" + quantity
          + "}";
      }
      return $toString;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy