Class Dispute

    • Constructor Detail

      • Dispute

        public Dispute()
    • Method Detail

      • getTransaction

        public java.lang.String getTransaction()
        Get ID of expandable transaction object.
      • setTransaction

        public void setTransaction​(java.lang.String id)
      • getTransactionObject

        public Transaction getTransactionObject()
        Get expanded transaction.
      • setTransactionObject

        public void setTransactionObject​(Transaction expandableObject)
      • list

        public static DisputeCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                      throws StripeException
        Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        Throws:
        StripeException
      • list

        public static DisputeCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                             RequestOptions options)
                                      throws StripeException
        Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        Throws:
        StripeException
      • create

        public static Dispute create​(java.util.Map<java.lang.String,​java.lang.Object> params)
                              throws StripeException
        Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to Dispute reasons and evidence for more details about evidence requirements.
        Throws:
        StripeException
      • create

        public static Dispute create​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                     RequestOptions options)
                              throws StripeException
        Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to Dispute reasons and evidence for more details about evidence requirements.
        Throws:
        StripeException
      • update

        public Dispute update​(java.util.Map<java.lang.String,​java.lang.Object> params)
                       throws StripeException
        Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string.
        Specified by:
        update in interface MetadataStore<Dispute>
        Throws:
        StripeException
      • update

        public Dispute update​(java.util.Map<java.lang.String,​java.lang.Object> params,
                              RequestOptions options)
                       throws StripeException
        Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string.
        Specified by:
        update in interface MetadataStore<Dispute>
        Throws:
        StripeException
      • update

        public Dispute update​(DisputeUpdateParams params)
                       throws StripeException
        Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string.
        Throws:
        StripeException
      • update

        public Dispute update​(DisputeUpdateParams params,
                              RequestOptions options)
                       throws StripeException
        Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string.
        Throws:
        StripeException
      • submit

        public Dispute submit​(java.util.Map<java.lang.String,​java.lang.Object> params)
                       throws StripeException
        Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute’s reason are present. For more details, see Dispute reasons and evidence.
        Throws:
        StripeException
      • getAmount

        public java.lang.Long getAmount()
        Disputed amount. Usually the amount of the transaction, but can differ (usually because of currency fluctuation).
      • getBalanceTransactions

        public java.util.List<BalanceTransaction> getBalanceTransactions()
        List of balance transactions associated with the dispute.
      • getCreated

        public java.lang.Long getCreated()
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • getCurrency

        public java.lang.String getCurrency()
        The currency the transaction was made in.
      • getLivemode

        public java.lang.Boolean getLivemode()
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • getObject

        public java.lang.String getObject()
        String representing the object's type. Objects of the same type share the same value.

        Equal to issuing.dispute.

      • getStatus

        public java.lang.String getStatus()
        Current status of the dispute.

        One of expired, lost, submitted, unsubmitted, or won.

      • setAmount

        public void setAmount​(java.lang.Long amount)
        Disputed amount. Usually the amount of the transaction, but can differ (usually because of currency fluctuation).
      • setBalanceTransactions

        public void setBalanceTransactions​(java.util.List<BalanceTransaction> balanceTransactions)
        List of balance transactions associated with the dispute.
      • setCreated

        public void setCreated​(java.lang.Long created)
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • setCurrency

        public void setCurrency​(java.lang.String currency)
        The currency the transaction was made in.
      • setId

        public void setId​(java.lang.String id)
        Unique identifier for the object.
      • setLivemode

        public void setLivemode​(java.lang.Boolean livemode)
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
      • setObject

        public void setObject​(java.lang.String object)
        String representing the object's type. Objects of the same type share the same value.

        Equal to issuing.dispute.

      • setStatus

        public void setStatus​(java.lang.String status)
        Current status of the dispute.

        One of expired, lost, submitted, unsubmitted, or won.

      • equals

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

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String getId()
        Unique identifier for the object.
        Specified by:
        getId in interface HasId
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
        Specified by:
        getMetadata in interface MetadataStore<Dispute>