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

io.stigg.api.operations.GetCheckoutStateQuery 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;

import com.apollographql.apollo3.api.Adapter;
import com.apollographql.apollo3.api.CompiledField;
import com.apollographql.apollo3.api.CustomScalarAdapters;
import com.apollographql.apollo3.api.ObjectAdapter;
import com.apollographql.apollo3.api.Query;
import com.apollographql.apollo3.api.json.JsonWriter;
import io.stigg.api.operations.adapter.GetCheckoutStateQuery_ResponseAdapter;
import io.stigg.api.operations.adapter.GetCheckoutStateQuery_VariablesAdapter;
import io.stigg.api.operations.fragment.CheckoutStateFragment;
import io.stigg.api.operations.selections.GetCheckoutStateQuerySelections;
import io.stigg.api.operations.type.CheckoutStateInput;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;

public class GetCheckoutStateQuery implements Query {
  public static final String OPERATION_ID = "ca4883e86e78af303c2fc8c2682a0bf65bc8b8611073a058e378c9da47550668";

  /**
   * The minimized GraphQL document being sent to the server to save a few bytes.
   * The un-minimized version is:
   *
   * query GetCheckoutState($input: CheckoutStateInput!) {
   *   checkoutState(input: $input) {
   *     __typename
   *     ...CheckoutStateFragment
   *   }
   * }
   *
   * fragment FontVariantFragment on FontVariant {
   *   fontSize
   *   fontWeight
   * }
   *
   * fragment TypographyConfigurationFragment on TypographyConfiguration {
   *   fontFamily
   *   h1 {
   *     __typename
   *     ...FontVariantFragment
   *   }
   *   h2 {
   *     __typename
   *     ...FontVariantFragment
   *   }
   *   h3 {
   *     __typename
   *     ...FontVariantFragment
   *   }
   *   body {
   *     __typename
   *     ...FontVariantFragment
   *   }
   * }
   *
   * fragment CheckoutConfigurationFragment on CheckoutConfiguration {
   *   palette {
   *     primary
   *     textColor
   *     backgroundColor
   *     borderColor
   *     summaryBackgroundColor
   *     __typename
   *   }
   *   typography {
   *     __typename
   *     ...TypographyConfigurationFragment
   *   }
   *   customCss
   *   content {
   *     collectPhoneNumber
   *   }
   *   __typename
   * }
   *
   * fragment SlimCustomerFragment on Customer {
   *   id
   *   name
   *   email
   *   createdAt
   *   updatedAt
   *   refId
   *   customerId
   *   billingId
   *   additionalMetaData
   *   awsMarketplaceCustomerId
   * }
   *
   * fragment CouponFragment on Coupon {
   *   id
   *   discountValue
   *   type
   *   additionalMetaData
   *   refId
   *   name
   *   description
   *   createdAt
   *   updatedAt
   *   billingId
   *   billingLinkUrl
   *   status
   *   syncStates {
   *     vendorIdentifier
   *     status
   *   }
   * }
   *
   * fragment PromotionalEntitlementFragment on PromotionalEntitlement {
   *   status
   *   usageLimit
   *   featureId
   *   hasUnlimitedUsage
   *   hasSoftLimit
   *   resetPeriod
   *   endDate
   *   isVisible
   *   feature {
   *     featureType
   *     meterType
   *     featureUnits
   *     featureUnitsPlural
   *     displayName
   *     description
   *     refId
   *     additionalMetaData
   *   }
   * }
   *
   * fragment CustomerFragment on Customer {
   *   __typename
   *   ...SlimCustomerFragment
   *   hasPaymentMethod
   *   hasActiveSubscription
   *   defaultPaymentExpirationMonth
   *   defaultPaymentExpirationYear
   *   defaultPaymentMethodLast4Digits
   *   trialedPlans {
   *     productId
   *     productRefId
   *     planRefId
   *     planId
   *   }
   *   experimentInfo {
   *     groupType
   *     groupName
   *     id
   *     name
   *   }
   *   coupon {
   *     __typename
   *     ...CouponFragment
   *   }
   *   eligibleForTrial {
   *     productId
   *     productRefId
   *     eligible
   *   }
   *   promotionalEntitlements {
   *     __typename
   *     ...PromotionalEntitlementFragment
   *   }
   * }
   *
   * fragment SubscriptionInvoiceFragment on SubscriptionInvoice {
   *   billingId
   *   status
   *   createdAt
   *   updatedAt
   *   errorMessage
   *   requiresAction
   *   paymentSecret
   *   paymentUrl
   *   pdfUrl
   *   billingReason
   *   currency
   *   subTotal
   *   subTotalExcludingTax
   *   total
   *   totalExcludingTax
   *   tax
   *   amountDue
   * }
   *
   * fragment CustomerResourceFragment on CustomerResource {
   *   resourceId
   * }
   *
   * fragment PriceTierFragment on PriceTier {
   *   upTo
   *   unitPrice {
   *     amount
   *     currency
   *   }
   *   flatPrice {
   *     amount
   *     currency
   *   }
   * }
   *
   * fragment PriceFragment on Price {
   *   billingModel
   *   billingPeriod
   *   billingCadence
   *   billingId
   *   minUnitQuantity
   *   maxUnitQuantity
   *   billingCountryCode
   *   price {
   *     amount
   *     currency
   *   }
   *   tiersMode
   *   tiers {
   *     __typename
   *     ...PriceTierFragment
   *   }
   *   feature {
   *     refId
   *     featureUnits
   *     featureUnitsPlural
   *     displayName
   *     description
   *   }
   *   blockSize
   * }
   *
   * fragment TotalPriceFragment on CustomerSubscriptionTotalPrice {
   *   subTotal {
   *     amount
   *     currency
   *   }
   *   total {
   *     amount
   *     currency
   *   }
   * }
   *
   * fragment ProductFragment on Product {
   *   refId
   *   displayName
   *   description
   *   additionalMetaData
   *   productSettings {
   *     downgradePlan {
   *       refId
   *       displayName
   *     }
   *   }
   * }
   *
   * fragment PackageEntitlementFragment on PackageEntitlement {
   *   usageLimit
   *   hasUnlimitedUsage
   *   hasSoftLimit
   *   featureId
   *   resetPeriod
   *   hiddenFromWidgets
   *   isCustom
   *   displayNameOverride
   *   feature {
   *     featureType
   *     meterType
   *     featureUnits
   *     featureUnitsPlural
   *     displayName
   *     description
   *     refId
   *     additionalMetaData
   *   }
   * }
   *
   * fragment OveragePriceFragment on Price {
   *   billingModel
   *   billingPeriod
   *   billingId
   *   billingCountryCode
   *   price {
   *     amount
   *     currency
   *   }
   *   tiersMode
   *   tiers {
   *     __typename
   *     ...PriceTierFragment
   *   }
   *   feature {
   *     refId
   *     featureUnits
   *     featureUnitsPlural
   *     displayName
   *     description
   *   }
   * }
   *
   * fragment AddonDependencyFragment on Addon {
   *   id
   *   refId
   *   displayName
   *   description
   * }
   *
   * fragment AddonFragment on Addon {
   *   id
   *   refId
   *   billingId
   *   displayName
   *   description
   *   additionalMetaData
   *   entitlements {
   *     __typename
   *     ...PackageEntitlementFragment
   *   }
   *   prices {
   *     __typename
   *     ...PriceFragment
   *   }
   *   overagePrices {
   *     __typename
   *     ...OveragePriceFragment
   *   }
   *   pricingType
   *   maxQuantity
   *   dependencies {
   *     __typename
   *     ...AddonDependencyFragment
   *   }
   * }
   *
   * fragment PlanCompatiblePackageGroupsFragment on PlanCompatiblePackageGroups {
   *   packageGroupId
   *   displayName
   *   addons {
   *     __typename
   *     ...AddonFragment
   *   }
   *   options {
   *     minItems
   *     freeItems
   *   }
   * }
   *
   * fragment PlanFragment on Plan {
   *   id
   *   refId
   *   displayName
   *   description
   *   billingId
   *   versionNumber
   *   additionalMetaData
   *   hiddenFromWidgets
   *   product {
   *     __typename
   *     ...ProductFragment
   *   }
   *   basePlan {
   *     refId
   *     displayName
   *   }
   *   entitlements {
   *     __typename
   *     ...PackageEntitlementFragment
   *   }
   *   inheritedEntitlements {
   *     __typename
   *     ...PackageEntitlementFragment
   *   }
   *   compatibleAddons {
   *     __typename
   *     ...AddonFragment
   *   }
   *   compatiblePackageGroups {
   *     __typename
   *     ...PlanCompatiblePackageGroupsFragment
   *   }
   *   prices {
   *     __typename
   *     ...PriceFragment
   *   }
   *   overagePrices {
   *     __typename
   *     ...OveragePriceFragment
   *   }
   *   pricingType
   *   defaultTrialConfig {
   *     duration
   *     units
   *     budget {
   *       limit
   *     }
   *   }
   * }
   *
   * fragment ScheduleVariablesFragment on ScheduleVariables {
   *   __typename
   *   ... on PlanChangeVariables {
   *     planRefId
   *     changeType
   *     billingPeriod
   *     billableFeatures {
   *       featureId
   *       quantity
   *     }
   *     addons {
   *       addonRefId
   *       quantity
   *     }
   *   }
   *   ... on DowngradeChangeVariables {
   *     downgradePlanRefId
   *     billingPeriod
   *     billableFeatures {
   *       featureId
   *       quantity
   *     }
   *     addons {
   *       addonRefId
   *       quantity
   *     }
   *   }
   *   ... on BillingPeriodChangeVariables {
   *     billingPeriod
   *   }
   *   ... on UnitAmountChangeVariables {
   *     newUnitAmount
   *     featureId
   *   }
   *   ... on AddonChangeVariables {
   *     addonRefId
   *     newQuantity
   *   }
   * }
   *
   * fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {
   *   subscriptionScheduleType
   *   scheduleStatus
   *   scheduledExecutionTime
   *   targetPackage {
   *     id
   *     refId
   *     displayName
   *   }
   *   scheduleVariables {
   *     __typename
   *     ...ScheduleVariablesFragment
   *   }
   * }
   *
   * fragment SubscriptionFutureUpdateData on SubscriptionFutureUpdate {
   *   subscriptionScheduleType
   *   scheduleStatus
   *   scheduledExecutionTime
   *   targetPackage {
   *     id
   *     refId
   *     displayName
   *   }
   *   scheduleVariables {
   *     __typename
   *     ...ScheduleVariablesFragment
   *   }
   * }
   *
   * fragment SubscriptionFragment on CustomerSubscription {
   *   id
   *   subscriptionId
   *   payingCustomer {
   *     __typename
   *     ...SlimCustomerFragment
   *   }
   *   startDate
   *   endDate
   *   trialEndDate
   *   cancellationDate
   *   effectiveEndDate
   *   status
   *   refId
   *   currentBillingPeriodEnd
   *   additionalMetaData
   *   billingId
   *   billingLinkUrl
   *   latestInvoice {
   *     __typename
   *     ...SubscriptionInvoiceFragment
   *   }
   *   paymentCollection
   *   paymentCollectionMethod
   *   billingSyncError
   *   resource {
   *     __typename
   *     ...CustomerResourceFragment
   *   }
   *   experimentInfo {
   *     name
   *     groupType
   *     groupName
   *     id
   *   }
   *   prices {
   *     usageLimit
   *     price {
   *       __typename
   *       ...PriceFragment
   *     }
   *   }
   *   totalPrice {
   *     __typename
   *     ...TotalPriceFragment
   *   }
   *   pricingType
   *   plan {
   *     __typename
   *     ...PlanFragment
   *   }
   *   addons {
   *     id
   *     quantity
   *     addon {
   *       __typename
   *       ...AddonFragment
   *     }
   *   }
   *   scheduledUpdates {
   *     __typename
   *     ...SubscriptionScheduledUpdateData
   *   }
   *   futureUpdates {
   *     __typename
   *     ...SubscriptionFutureUpdateData
   *   }
   * }
   *
   * fragment CheckoutStateFragment on CheckoutState {
   *   configuration {
   *     __typename
   *     ...CheckoutConfigurationFragment
   *   }
   *   setupSecret
   *   customer {
   *     __typename
   *     ...CustomerFragment
   *   }
   *   activeSubscription {
   *     __typename
   *     ...SubscriptionFragment
   *   }
   *   resource {
   *     __typename
   *     ...CustomerResourceFragment
   *   }
   *   plan {
   *     __typename
   *     ...PlanFragment
   *   }
   *   billingIntegration {
   *     billingIdentifier
   *     credentials {
   *       accountId
   *       publicKey
   *     }
   *   }
   * }
   */
  public static final String OPERATION_DOCUMENT = "query GetCheckoutState($input: CheckoutStateInput!) { checkoutState(input: $input) { __typename ...CheckoutStateFragment } }  fragment FontVariantFragment on FontVariant { fontSize fontWeight }  fragment TypographyConfigurationFragment on TypographyConfiguration { fontFamily h1 { __typename ...FontVariantFragment } h2 { __typename ...FontVariantFragment } h3 { __typename ...FontVariantFragment } body { __typename ...FontVariantFragment } }  fragment CheckoutConfigurationFragment on CheckoutConfiguration { palette { primary textColor backgroundColor borderColor summaryBackgroundColor __typename } typography { __typename ...TypographyConfigurationFragment } customCss content { collectPhoneNumber } __typename }  fragment SlimCustomerFragment on Customer { id name email createdAt updatedAt refId customerId billingId additionalMetaData awsMarketplaceCustomerId }  fragment CouponFragment on Coupon { id discountValue type additionalMetaData refId name description createdAt updatedAt billingId billingLinkUrl status syncStates { vendorIdentifier status } }  fragment PromotionalEntitlementFragment on PromotionalEntitlement { status usageLimit featureId hasUnlimitedUsage hasSoftLimit resetPeriod endDate isVisible feature { featureType meterType featureUnits featureUnitsPlural displayName description refId additionalMetaData } }  fragment CustomerFragment on Customer { __typename ...SlimCustomerFragment hasPaymentMethod hasActiveSubscription defaultPaymentExpirationMonth defaultPaymentExpirationYear defaultPaymentMethodLast4Digits trialedPlans { productId productRefId planRefId planId } experimentInfo { groupType groupName id name } coupon { __typename ...CouponFragment } eligibleForTrial { productId productRefId eligible } promotionalEntitlements { __typename ...PromotionalEntitlementFragment } }  fragment SubscriptionInvoiceFragment on SubscriptionInvoice { billingId status createdAt updatedAt errorMessage requiresAction paymentSecret paymentUrl pdfUrl billingReason currency subTotal subTotalExcludingTax total totalExcludingTax tax amountDue }  fragment CustomerResourceFragment on CustomerResource { resourceId }  fragment PriceTierFragment on PriceTier { upTo unitPrice { amount currency } flatPrice { amount currency } }  fragment PriceFragment on Price { billingModel billingPeriod billingCadence billingId minUnitQuantity maxUnitQuantity billingCountryCode price { amount currency } tiersMode tiers { __typename ...PriceTierFragment } feature { refId featureUnits featureUnitsPlural displayName description } blockSize }  fragment TotalPriceFragment on CustomerSubscriptionTotalPrice { subTotal { amount currency } total { amount currency } }  fragment ProductFragment on Product { refId displayName description additionalMetaData productSettings { downgradePlan { refId displayName } } }  fragment PackageEntitlementFragment on PackageEntitlement { usageLimit hasUnlimitedUsage hasSoftLimit featureId resetPeriod hiddenFromWidgets isCustom displayNameOverride feature { featureType meterType featureUnits featureUnitsPlural displayName description refId additionalMetaData } }  fragment OveragePriceFragment on Price { billingModel billingPeriod billingId billingCountryCode price { amount currency } tiersMode tiers { __typename ...PriceTierFragment } feature { refId featureUnits featureUnitsPlural displayName description } }  fragment AddonDependencyFragment on Addon { id refId displayName description }  fragment AddonFragment on Addon { id refId billingId displayName description additionalMetaData entitlements { __typename ...PackageEntitlementFragment } prices { __typename ...PriceFragment } overagePrices { __typename ...OveragePriceFragment } pricingType maxQuantity dependencies { __typename ...AddonDependencyFragment } }  fragment PlanCompatiblePackageGroupsFragment on PlanCompatiblePackageGroups { packageGroupId displayName addons { __typename ...AddonFragment } options { minItems freeItems } }  fragment PlanFragment on Plan { id refId displayName description billingId versionNumber additionalMetaData hiddenFromWidgets product { __typename ...ProductFragment } basePlan { refId displayName } entitlements { __typename ...PackageEntitlementFragment } inheritedEntitlements { __typename ...PackageEntitlementFragment } compatibleAddons { __typename ...AddonFragment } compatiblePackageGroups { __typename ...PlanCompatiblePackageGroupsFragment } prices { __typename ...PriceFragment } overagePrices { __typename ...OveragePriceFragment } pricingType defaultTrialConfig { duration units budget { limit } } }  fragment ScheduleVariablesFragment on ScheduleVariables { __typename ... on PlanChangeVariables { planRefId changeType billingPeriod billableFeatures { featureId quantity } addons { addonRefId quantity } } ... on DowngradeChangeVariables { downgradePlanRefId billingPeriod billableFeatures { featureId quantity } addons { addonRefId quantity } } ... on BillingPeriodChangeVariables { billingPeriod } ... on UnitAmountChangeVariables { newUnitAmount featureId } ... on AddonChangeVariables { addonRefId newQuantity } }  fragment SubscriptionScheduledUpdateData on SubscriptionScheduledUpdate { subscriptionScheduleType scheduleStatus scheduledExecutionTime targetPackage { id refId displayName } scheduleVariables { __typename ...ScheduleVariablesFragment } }  fragment SubscriptionFutureUpdateData on SubscriptionFutureUpdate { subscriptionScheduleType scheduleStatus scheduledExecutionTime targetPackage { id refId displayName } scheduleVariables { __typename ...ScheduleVariablesFragment } }  fragment SubscriptionFragment on CustomerSubscription { id subscriptionId payingCustomer { __typename ...SlimCustomerFragment } startDate endDate trialEndDate cancellationDate effectiveEndDate status refId currentBillingPeriodEnd additionalMetaData billingId billingLinkUrl latestInvoice { __typename ...SubscriptionInvoiceFragment } paymentCollection paymentCollectionMethod billingSyncError resource { __typename ...CustomerResourceFragment } experimentInfo { name groupType groupName id } prices { usageLimit price { __typename ...PriceFragment } } totalPrice { __typename ...TotalPriceFragment } pricingType plan { __typename ...PlanFragment } addons { id quantity addon { __typename ...AddonFragment } } scheduledUpdates { __typename ...SubscriptionScheduledUpdateData } futureUpdates { __typename ...SubscriptionFutureUpdateData } }  fragment CheckoutStateFragment on CheckoutState { configuration { __typename ...CheckoutConfigurationFragment } setupSecret customer { __typename ...CustomerFragment } activeSubscription { __typename ...SubscriptionFragment } resource { __typename ...CustomerResourceFragment } plan { __typename ...PlanFragment } billingIntegration { billingIdentifier credentials { accountId publicKey } } }";

  public static final String OPERATION_NAME = "GetCheckoutState";

  public final CheckoutStateInput input;

  private transient volatile int $hashCode;

  private transient volatile boolean $hashCodeMemoized;

  private transient volatile String $toString;

  public GetCheckoutStateQuery(CheckoutStateInput input) {
    this.input = input;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GetCheckoutStateQuery) {
      GetCheckoutStateQuery that = (GetCheckoutStateQuery) 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 = "GetCheckoutStateQuery{"
        + "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 {
    GetCheckoutStateQuery_VariablesAdapter.INSTANCE.toJson(writer, customScalarAdapters, this);
  }

  @Override
  public Adapter adapter() {
    return new ObjectAdapter(GetCheckoutStateQuery_ResponseAdapter.Data.INSTANCE, false);
  }

  @Override
  public CompiledField rootField() {
    return new CompiledField.Builder(
      "data",
      io.stigg.api.operations.type.Query.type
    )
    .selections(GetCheckoutStateQuerySelections.__root)
    .build();
  }

  public static final class Builder {
    private CheckoutStateInput input;

    Builder() {
    }

    public Builder input(CheckoutStateInput input) {
      this.input = input;
      return this;
    }

    public GetCheckoutStateQuery build() {
      return new GetCheckoutStateQuery(input);
    }
  }

  public static class Data implements Query.Data {
    public CheckoutState checkoutState;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public Data(CheckoutState checkoutState) {
      this.checkoutState = checkoutState;
    }

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

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

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

  public static class CheckoutState {
    public String __typename;

    /**
     * Synthetic field for 'CheckoutStateFragment'
     */
    public CheckoutStateFragment checkoutStateFragment;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public CheckoutState(String __typename, CheckoutStateFragment checkoutStateFragment) {
      this.__typename = __typename;
      this.checkoutStateFragment = checkoutStateFragment;
    }

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

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

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "CheckoutState{"
          + "__typename=" + __typename + ", "
          + "checkoutStateFragment=" + checkoutStateFragment
          + "}";
      }
      return $toString;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy