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

io.stigg.api.operations.TransferSubscriptionMutation 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.Mutation;
import com.apollographql.apollo3.api.ObjectAdapter;
import com.apollographql.apollo3.api.json.JsonWriter;
import io.stigg.api.operations.adapter.TransferSubscriptionMutation_ResponseAdapter;
import io.stigg.api.operations.adapter.TransferSubscriptionMutation_VariablesAdapter;
import io.stigg.api.operations.fragment.SlimSubscriptionFragment;
import io.stigg.api.operations.selections.TransferSubscriptionMutationSelections;
import io.stigg.api.operations.type.TransferSubscriptionInput;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;

public class TransferSubscriptionMutation implements Mutation {
  public static final String OPERATION_ID = "9d6afaf5ff3c149f5c546ab74424bbc19396b46b81835e7e5d9f8ebe85b81420";

  /**
   * The minimized GraphQL document being sent to the server to save a few bytes.
   * The un-minimized version is:
   *
   * mutation TransferSubscription($input: TransferSubscriptionInput!) {
   *   transferSubscription(input: $input) {
   *     __typename
   *     ...SlimSubscriptionFragment
   *   }
   * }
   *
   * 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 SlimSubscriptionFragment on CustomerSubscription {
   *   id
   *   subscriptionId
   *   refId
   *   status
   *   additionalMetaData
   *   billingId
   *   billingLinkUrl
   *   effectiveEndDate
   *   currentBillingPeriodEnd
   *   pricingType
   *   latestInvoice {
   *     __typename
   *     ...SubscriptionInvoiceFragment
   *   }
   *   paymentCollection
   *   billingSyncError
   *   resource {
   *     __typename
   *     ...CustomerResourceFragment
   *   }
   *   experimentInfo {
   *     name
   *     id
   *     groupType
   *     groupName
   *   }
   *   prices {
   *     usageLimit
   *     price {
   *       __typename
   *       ...PriceFragment
   *     }
   *   }
   *   totalPrice {
   *     __typename
   *     ...TotalPriceFragment
   *   }
   *   plan {
   *     id
   *     refId
   *   }
   *   addons {
   *     quantity
   *     addon {
   *       id
   *       refId
   *     }
   *   }
   *   customer {
   *     id
   *     refId
   *   }
   * }
   */
  public static final String OPERATION_DOCUMENT = "mutation TransferSubscription($input: TransferSubscriptionInput!) { transferSubscription(input: $input) { __typename ...SlimSubscriptionFragment } }  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 SlimSubscriptionFragment on CustomerSubscription { id subscriptionId refId status additionalMetaData billingId billingLinkUrl effectiveEndDate currentBillingPeriodEnd pricingType latestInvoice { __typename ...SubscriptionInvoiceFragment } paymentCollection billingSyncError resource { __typename ...CustomerResourceFragment } experimentInfo { name id groupType groupName } prices { usageLimit price { __typename ...PriceFragment } } totalPrice { __typename ...TotalPriceFragment } plan { id refId } addons { quantity addon { id refId } } customer { id refId } }";

  public static final String OPERATION_NAME = "TransferSubscription";

  public final TransferSubscriptionInput input;

  private transient volatile int $hashCode;

  private transient volatile boolean $hashCodeMemoized;

  private transient volatile String $toString;

  public TransferSubscriptionMutation(TransferSubscriptionInput input) {
    this.input = input;
  }

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

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

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

  public static final class Builder {
    private TransferSubscriptionInput input;

    Builder() {
    }

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

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

  public static class Data implements Mutation.Data {
    public TransferSubscription transferSubscription;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public Data(TransferSubscription transferSubscription) {
      this.transferSubscription = transferSubscription;
    }

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

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

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

  public static class TransferSubscription {
    public String __typename;

    /**
     * Synthetic field for 'SlimSubscriptionFragment'
     */
    public SlimSubscriptionFragment slimSubscriptionFragment;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    private transient volatile String $toString;

    public TransferSubscription(String __typename,
        SlimSubscriptionFragment slimSubscriptionFragment) {
      this.__typename = __typename;
      this.slimSubscriptionFragment = slimSubscriptionFragment;
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy