Class PreviewSubscriptionMutation

    • 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 PreviewSubscription($input: PreviewSubscriptionInput!) { previewSubscription(input: $input) { __typename ...SubscriptionPreviewV2Fragment } } fragment ImmediateSubscriptionPreviewInvoiceFragment on ImmediateSubscriptionPreviewInvoice { total { amount currency } subTotal { amount currency } totalExcludingTax { amount currency } tax { amount currency } discount { amount currency } taxDetails { displayName percentage inclusive } discountDetails { type value durationType durationInMonths } credits { initial { amount currency } used { amount currency } remaining { amount currency } } proration { prorationDate hasProrations credit { amount currency } debit { amount currency } netAmount { amount currency } } } fragment SubscriptionPreviewInvoiceFragment on SubscriptionPreviewInvoice { total { amount currency } subTotal { amount currency } totalExcludingTax { amount currency } tax { amount currency } discount { amount currency } taxDetails { displayName percentage inclusive } discountDetails { type value durationType durationInMonths } } fragment SubscriptionPreviewV2Fragment on SubscriptionPreviewV2 { immediateInvoice { __typename ...ImmediateSubscriptionPreviewInvoiceFragment } recurringInvoice { __typename ...SubscriptionPreviewInvoiceFragment } billingPeriodRange { start end } isPlanDowngrade hasScheduledUpdates }
        See Also:
        Constant Field Values
    • 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
      • 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<PreviewSubscriptionMutation.Data>
        Specified by:
        serializeVariables in interface com.apollographql.apollo3.api.Operation<PreviewSubscriptionMutation.Data>
        Throws:
        java.io.IOException