Class GetCouponsQuery

    • 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: query GetCoupons { coupons(filter: { status: { eq: ACTIVE } } , paging: { first: 50 } ) { edges { node { __typename ...CouponFragment } } } } fragment CouponFragment on Coupon { id discountValue type additionalMetaData refId name description createdAt updatedAt billingId billingLinkUrl status syncStates { vendorIdentifier status } customers { id } }
        See Also:
        Constant Field Values
    • Constructor Detail

      • GetCouponsQuery

        public GetCouponsQuery()
    • 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
      • id

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

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

        public java.lang.String name()
        Specified by:
        name in interface com.apollographql.apollo3.api.Operation<GetCouponsQuery.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<GetCouponsQuery.Data>
        Specified by:
        serializeVariables in interface com.apollographql.apollo3.api.Operation<GetCouponsQuery.Data>
        Throws:
        java.io.IOException
      • rootField

        public com.apollographql.apollo3.api.CompiledField rootField()
        Specified by:
        rootField in interface com.apollographql.apollo3.api.Executable<GetCouponsQuery.Data>
        Specified by:
        rootField in interface com.apollographql.apollo3.api.Operation<GetCouponsQuery.Data>