Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.stigg.api.operations.fragment.CustomerPortalSubscriptionFragment 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 io.stigg.api.operations.type.BillingModel;
import io.stigg.api.operations.type.BillingPeriod;
import io.stigg.api.operations.type.Currency;
import io.stigg.api.operations.type.PricingType;
import io.stigg.api.operations.type.SubscriptionStatus;
import java.lang.Deprecated;
import java.lang.Double;
import java.lang.Integer;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.time.Instant;
import java.util.List;
public class CustomerPortalSubscriptionFragment implements Fragment.Data {
public String subscriptionId;
public String planId;
public String planName;
public PricingType pricingType;
public List prices;
/**
* use prices field instead
*/
@Deprecated
public Pricing pricing;
public SubscriptionStatus status;
public Integer trialRemainingDays;
public BillingPeriodRange billingPeriodRange;
public TotalPrice totalPrice;
public List addons;
public List scheduledUpdates;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public CustomerPortalSubscriptionFragment(String subscriptionId, String planId, String planName,
PricingType pricingType, List prices, Pricing pricing, SubscriptionStatus status,
Integer trialRemainingDays, BillingPeriodRange billingPeriodRange, TotalPrice totalPrice,
List addons, List scheduledUpdates) {
this.subscriptionId = subscriptionId;
this.planId = planId;
this.planName = planName;
this.pricingType = pricingType;
this.prices = prices;
this.pricing = pricing;
this.status = status;
this.trialRemainingDays = trialRemainingDays;
this.billingPeriodRange = billingPeriodRange;
this.totalPrice = totalPrice;
this.addons = addons;
this.scheduledUpdates = scheduledUpdates;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CustomerPortalSubscriptionFragment) {
CustomerPortalSubscriptionFragment that = (CustomerPortalSubscriptionFragment) o;
return ((this.subscriptionId == null) ? (that.subscriptionId == null) : this.subscriptionId.equals(that.subscriptionId))
&&((this.planId == null) ? (that.planId == null) : this.planId.equals(that.planId))
&&((this.planName == null) ? (that.planName == null) : this.planName.equals(that.planName))
&&((this.pricingType == null) ? (that.pricingType == null) : this.pricingType.equals(that.pricingType))
&&((this.prices == null) ? (that.prices == null) : this.prices.equals(that.prices))
&&((this.pricing == null) ? (that.pricing == null) : this.pricing.equals(that.pricing))
&&((this.status == null) ? (that.status == null) : this.status.equals(that.status))
&&((this.trialRemainingDays == null) ? (that.trialRemainingDays == null) : this.trialRemainingDays.equals(that.trialRemainingDays))
&&((this.billingPeriodRange == null) ? (that.billingPeriodRange == null) : this.billingPeriodRange.equals(that.billingPeriodRange))
&&((this.totalPrice == null) ? (that.totalPrice == null) : this.totalPrice.equals(that.totalPrice))
&&((this.addons == null) ? (that.addons == null) : this.addons.equals(that.addons))
&&((this.scheduledUpdates == null) ? (that.scheduledUpdates == null) : this.scheduledUpdates.equals(that.scheduledUpdates));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (subscriptionId == null) ? 0 : subscriptionId.hashCode();
__h *= 1000003;
__h ^= (planId == null) ? 0 : planId.hashCode();
__h *= 1000003;
__h ^= (planName == null) ? 0 : planName.hashCode();
__h *= 1000003;
__h ^= (pricingType == null) ? 0 : pricingType.hashCode();
__h *= 1000003;
__h ^= (prices == null) ? 0 : prices.hashCode();
__h *= 1000003;
__h ^= (pricing == null) ? 0 : pricing.hashCode();
__h *= 1000003;
__h ^= (status == null) ? 0 : status.hashCode();
__h *= 1000003;
__h ^= (trialRemainingDays == null) ? 0 : trialRemainingDays.hashCode();
__h *= 1000003;
__h ^= (billingPeriodRange == null) ? 0 : billingPeriodRange.hashCode();
__h *= 1000003;
__h ^= (totalPrice == null) ? 0 : totalPrice.hashCode();
__h *= 1000003;
__h ^= (addons == null) ? 0 : addons.hashCode();
__h *= 1000003;
__h ^= (scheduledUpdates == null) ? 0 : scheduledUpdates.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "CustomerPortalSubscriptionFragment{"
+ "subscriptionId=" + subscriptionId + ", "
+ "planId=" + planId + ", "
+ "planName=" + planName + ", "
+ "pricingType=" + pricingType + ", "
+ "prices=" + prices + ", "
+ "pricing=" + pricing + ", "
+ "status=" + status + ", "
+ "trialRemainingDays=" + trialRemainingDays + ", "
+ "billingPeriodRange=" + billingPeriodRange + ", "
+ "totalPrice=" + totalPrice + ", "
+ "addons=" + addons + ", "
+ "scheduledUpdates=" + scheduledUpdates
+ "}";
}
return $toString;
}
public static class Price {
public String __typename;
/**
* Synthetic field for 'CustomerPortalSubscriptionPriceFragment'
*/
public CustomerPortalSubscriptionPriceFragment customerPortalSubscriptionPriceFragment;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Price(String __typename,
CustomerPortalSubscriptionPriceFragment customerPortalSubscriptionPriceFragment) {
this.__typename = __typename;
this.customerPortalSubscriptionPriceFragment = customerPortalSubscriptionPriceFragment;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Price) {
Price that = (Price) o;
return ((this.__typename == null) ? (that.__typename == null) : this.__typename.equals(that.__typename))
&&((this.customerPortalSubscriptionPriceFragment == null) ? (that.customerPortalSubscriptionPriceFragment == null) : this.customerPortalSubscriptionPriceFragment.equals(that.customerPortalSubscriptionPriceFragment));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (__typename == null) ? 0 : __typename.hashCode();
__h *= 1000003;
__h ^= (customerPortalSubscriptionPriceFragment == null) ? 0 : customerPortalSubscriptionPriceFragment.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Price{"
+ "__typename=" + __typename + ", "
+ "customerPortalSubscriptionPriceFragment=" + customerPortalSubscriptionPriceFragment
+ "}";
}
return $toString;
}
}
public static class Pricing {
public Integer unitQuantity;
public BillingPeriod billingPeriod;
public BillingModel billingModel;
public PricingType pricingType;
public Double usageBasedEstimatedBill;
public Price1 price;
public Feature feature;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Pricing(Integer unitQuantity, BillingPeriod billingPeriod, BillingModel billingModel,
PricingType pricingType, Double usageBasedEstimatedBill, Price1 price, Feature feature) {
this.unitQuantity = unitQuantity;
this.billingPeriod = billingPeriod;
this.billingModel = billingModel;
this.pricingType = pricingType;
this.usageBasedEstimatedBill = usageBasedEstimatedBill;
this.price = price;
this.feature = feature;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Pricing) {
Pricing that = (Pricing) o;
return ((this.unitQuantity == null) ? (that.unitQuantity == null) : this.unitQuantity.equals(that.unitQuantity))
&&((this.billingPeriod == null) ? (that.billingPeriod == null) : this.billingPeriod.equals(that.billingPeriod))
&&((this.billingModel == null) ? (that.billingModel == null) : this.billingModel.equals(that.billingModel))
&&((this.pricingType == null) ? (that.pricingType == null) : this.pricingType.equals(that.pricingType))
&&((this.usageBasedEstimatedBill == null) ? (that.usageBasedEstimatedBill == null) : this.usageBasedEstimatedBill.equals(that.usageBasedEstimatedBill))
&&((this.price == null) ? (that.price == null) : this.price.equals(that.price))
&&((this.feature == null) ? (that.feature == null) : this.feature.equals(that.feature));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (unitQuantity == null) ? 0 : unitQuantity.hashCode();
__h *= 1000003;
__h ^= (billingPeriod == null) ? 0 : billingPeriod.hashCode();
__h *= 1000003;
__h ^= (billingModel == null) ? 0 : billingModel.hashCode();
__h *= 1000003;
__h ^= (pricingType == null) ? 0 : pricingType.hashCode();
__h *= 1000003;
__h ^= (usageBasedEstimatedBill == null) ? 0 : usageBasedEstimatedBill.hashCode();
__h *= 1000003;
__h ^= (price == null) ? 0 : price.hashCode();
__h *= 1000003;
__h ^= (feature == null) ? 0 : feature.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Pricing{"
+ "unitQuantity=" + unitQuantity + ", "
+ "billingPeriod=" + billingPeriod + ", "
+ "billingModel=" + billingModel + ", "
+ "pricingType=" + pricingType + ", "
+ "usageBasedEstimatedBill=" + usageBasedEstimatedBill + ", "
+ "price=" + price + ", "
+ "feature=" + feature
+ "}";
}
return $toString;
}
}
public static class BillingPeriodRange {
public Instant start;
public Instant end;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public BillingPeriodRange(Instant start, Instant end) {
this.start = start;
this.end = end;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BillingPeriodRange) {
BillingPeriodRange that = (BillingPeriodRange) o;
return ((this.start == null) ? (that.start == null) : this.start.equals(that.start))
&&((this.end == null) ? (that.end == null) : this.end.equals(that.end));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (start == null) ? 0 : start.hashCode();
__h *= 1000003;
__h ^= (end == null) ? 0 : end.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "BillingPeriodRange{"
+ "start=" + start + ", "
+ "end=" + end
+ "}";
}
return $toString;
}
}
public static class TotalPrice {
public SubTotal subTotal;
public Total total;
public AddonsTotal addonsTotal;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public TotalPrice(SubTotal subTotal, Total total, AddonsTotal addonsTotal) {
this.subTotal = subTotal;
this.total = total;
this.addonsTotal = addonsTotal;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof TotalPrice) {
TotalPrice that = (TotalPrice) o;
return ((this.subTotal == null) ? (that.subTotal == null) : this.subTotal.equals(that.subTotal))
&&((this.total == null) ? (that.total == null) : this.total.equals(that.total))
&&((this.addonsTotal == null) ? (that.addonsTotal == null) : this.addonsTotal.equals(that.addonsTotal));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (subTotal == null) ? 0 : subTotal.hashCode();
__h *= 1000003;
__h ^= (total == null) ? 0 : total.hashCode();
__h *= 1000003;
__h ^= (addonsTotal == null) ? 0 : addonsTotal.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "TotalPrice{"
+ "subTotal=" + subTotal + ", "
+ "total=" + total + ", "
+ "addonsTotal=" + addonsTotal
+ "}";
}
return $toString;
}
}
public static class Addon {
public String __typename;
/**
* Synthetic field for 'CustomerPortalSubscriptionAddonFragment'
*/
public CustomerPortalSubscriptionAddonFragment customerPortalSubscriptionAddonFragment;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Addon(String __typename,
CustomerPortalSubscriptionAddonFragment customerPortalSubscriptionAddonFragment) {
this.__typename = __typename;
this.customerPortalSubscriptionAddonFragment = customerPortalSubscriptionAddonFragment;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Addon) {
Addon that = (Addon) o;
return ((this.__typename == null) ? (that.__typename == null) : this.__typename.equals(that.__typename))
&&((this.customerPortalSubscriptionAddonFragment == null) ? (that.customerPortalSubscriptionAddonFragment == null) : this.customerPortalSubscriptionAddonFragment.equals(that.customerPortalSubscriptionAddonFragment));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (__typename == null) ? 0 : __typename.hashCode();
__h *= 1000003;
__h ^= (customerPortalSubscriptionAddonFragment == null) ? 0 : customerPortalSubscriptionAddonFragment.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Addon{"
+ "__typename=" + __typename + ", "
+ "customerPortalSubscriptionAddonFragment=" + customerPortalSubscriptionAddonFragment
+ "}";
}
return $toString;
}
}
public static class ScheduledUpdate {
public String __typename;
/**
* Synthetic field for 'CustomerPortalSubscriptionScheduledUpdateDataFragment'
*/
public CustomerPortalSubscriptionScheduledUpdateDataFragment customerPortalSubscriptionScheduledUpdateDataFragment;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public ScheduledUpdate(String __typename,
CustomerPortalSubscriptionScheduledUpdateDataFragment customerPortalSubscriptionScheduledUpdateDataFragment) {
this.__typename = __typename;
this.customerPortalSubscriptionScheduledUpdateDataFragment = customerPortalSubscriptionScheduledUpdateDataFragment;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ScheduledUpdate) {
ScheduledUpdate that = (ScheduledUpdate) o;
return ((this.__typename == null) ? (that.__typename == null) : this.__typename.equals(that.__typename))
&&((this.customerPortalSubscriptionScheduledUpdateDataFragment == null) ? (that.customerPortalSubscriptionScheduledUpdateDataFragment == null) : this.customerPortalSubscriptionScheduledUpdateDataFragment.equals(that.customerPortalSubscriptionScheduledUpdateDataFragment));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (__typename == null) ? 0 : __typename.hashCode();
__h *= 1000003;
__h ^= (customerPortalSubscriptionScheduledUpdateDataFragment == null) ? 0 : customerPortalSubscriptionScheduledUpdateDataFragment.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "ScheduledUpdate{"
+ "__typename=" + __typename + ", "
+ "customerPortalSubscriptionScheduledUpdateDataFragment=" + customerPortalSubscriptionScheduledUpdateDataFragment
+ "}";
}
return $toString;
}
}
public static class Price1 {
public Double amount;
public Currency currency;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Price1(Double amount, Currency currency) {
this.amount = amount;
this.currency = currency;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Price1) {
Price1 that = (Price1) o;
return ((this.amount == null) ? (that.amount == null) : this.amount.equals(that.amount))
&&((this.currency == null) ? (that.currency == null) : this.currency.equals(that.currency));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (amount == null) ? 0 : amount.hashCode();
__h *= 1000003;
__h ^= (currency == null) ? 0 : currency.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Price1{"
+ "amount=" + amount + ", "
+ "currency=" + currency
+ "}";
}
return $toString;
}
}
public static class Feature {
public String featureUnits;
public String featureUnitsPlural;
public String displayName;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Feature(String featureUnits, String featureUnitsPlural, String displayName) {
this.featureUnits = featureUnits;
this.featureUnitsPlural = featureUnitsPlural;
this.displayName = displayName;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Feature) {
Feature that = (Feature) o;
return ((this.featureUnits == null) ? (that.featureUnits == null) : this.featureUnits.equals(that.featureUnits))
&&((this.featureUnitsPlural == null) ? (that.featureUnitsPlural == null) : this.featureUnitsPlural.equals(that.featureUnitsPlural))
&&((this.displayName == null) ? (that.displayName == null) : this.displayName.equals(that.displayName));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (featureUnits == null) ? 0 : featureUnits.hashCode();
__h *= 1000003;
__h ^= (featureUnitsPlural == null) ? 0 : featureUnitsPlural.hashCode();
__h *= 1000003;
__h ^= (displayName == null) ? 0 : displayName.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Feature{"
+ "featureUnits=" + featureUnits + ", "
+ "featureUnitsPlural=" + featureUnitsPlural + ", "
+ "displayName=" + displayName
+ "}";
}
return $toString;
}
}
public static class SubTotal {
public Double amount;
public Currency currency;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public SubTotal(Double amount, Currency currency) {
this.amount = amount;
this.currency = currency;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SubTotal) {
SubTotal that = (SubTotal) o;
return ((this.amount == null) ? (that.amount == null) : this.amount.equals(that.amount))
&&((this.currency == null) ? (that.currency == null) : this.currency.equals(that.currency));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (amount == null) ? 0 : amount.hashCode();
__h *= 1000003;
__h ^= (currency == null) ? 0 : currency.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "SubTotal{"
+ "amount=" + amount + ", "
+ "currency=" + currency
+ "}";
}
return $toString;
}
}
public static class Total {
public Double amount;
public Currency currency;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public Total(Double amount, Currency currency) {
this.amount = amount;
this.currency = currency;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Total) {
Total that = (Total) o;
return ((this.amount == null) ? (that.amount == null) : this.amount.equals(that.amount))
&&((this.currency == null) ? (that.currency == null) : this.currency.equals(that.currency));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (amount == null) ? 0 : amount.hashCode();
__h *= 1000003;
__h ^= (currency == null) ? 0 : currency.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Total{"
+ "amount=" + amount + ", "
+ "currency=" + currency
+ "}";
}
return $toString;
}
}
public static class AddonsTotal {
public Double amount;
public Currency currency;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
private transient volatile String $toString;
public AddonsTotal(Double amount, Currency currency) {
this.amount = amount;
this.currency = currency;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof AddonsTotal) {
AddonsTotal that = (AddonsTotal) o;
return ((this.amount == null) ? (that.amount == null) : this.amount.equals(that.amount))
&&((this.currency == null) ? (that.currency == null) : this.currency.equals(that.currency));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int __h = 1;
__h *= 1000003;
__h ^= (amount == null) ? 0 : amount.hashCode();
__h *= 1000003;
__h ^= (currency == null) ? 0 : currency.hashCode();
$hashCode = __h;
$hashCodeMemoized = true;
}
return $hashCode;
}
@Override
public String toString() {
if ($toString == null) {
$toString = "AddonsTotal{"
+ "amount=" + amount + ", "
+ "currency=" + currency
+ "}";
}
return $toString;
}
}
}