Class CreateSubscriptionMutation

    • Field Detail

      • OPERATION_DOCUMENT

        public static final java.lang.String OPERATION_DOCUMENT
        The minimized GraphQL document being sent to the server to save a few bytes. The un-minimized version is: mutation CreateSubscription($input: SubscriptionInput!) { createSubscription(subscription: $input) { __typename ...SlimSubscriptionFragment } } fragment SubscriptionInvoiceFragment on SubscriptionInvoice { billingId status createdAt updatedAt requiresAction paymentUrl paymentSecret errorMessage } fragment CustomerResourceFragment on CustomerResource { resourceId } fragment PriceTierFragment on PriceTier { upTo unitPrice { amount currency } flatPrice { amount currency } } fragment PriceFragment on Price { billingModel billingPeriod billingId minUnitQuantity maxUnitQuantity billingCountryCode price { amount currency } tiersMode tiers { __typename ...PriceTierFragment } feature { refId featureUnits featureUnitsPlural displayName description } } fragment TotalPriceFragment on CustomerSubscriptionTotalPrice { subTotal { amount currency } total { amount currency } } fragment SlimSubscriptionFragment on CustomerSubscription { id refId status additionalMetaData billingId billingLinkUrl effectiveEndDate currentBillingPeriodEnd pricingType latestInvoice { __typename ...SubscriptionInvoiceFragment } paymentCollection billingSyncError resource { __typename ...CustomerResourceFragment } experimentInfo { name id groupName groupType } prices { usageLimit price { __typename ...PriceFragment } } totalPrice { __typename ...TotalPriceFragment } plan { id refId } addons { quantity addon { id refId } } customer { id refId } }
        See Also:
        Constant Field Values
    • Constructor Detail

      • CreateSubscriptionMutation

        public CreateSubscriptionMutation​(SubscriptionInput input)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • document

        public java.lang.String document()
        Specified by:
        document in interface com.apollographql.apollo3.api.Operation<CreateSubscriptionMutation.Data>
      • serializeVariables

        public void serializeVariables​(com.apollographql.apollo3.api.json.JsonWriter writer,
                                       com.apollographql.apollo3.api.CustomScalarAdapters customScalarAdapters)
                                throws java.io.IOException
        Specified by:
        serializeVariables in interface com.apollographql.apollo3.api.Executable<CreateSubscriptionMutation.Data>
        Specified by:
        serializeVariables in interface com.apollographql.apollo3.api.Operation<CreateSubscriptionMutation.Data>
        Throws:
        java.io.IOException