Class Review

    • Constructor Detail

      • Review

        public Review()
    • Method Detail

      • getCharge

        public java.lang.String getCharge()
        Get ID of expandable charge object.
      • setCharge

        public void setCharge​(java.lang.String id)
      • getChargeObject

        public Charge getChargeObject()
        Get expanded charge.
      • setChargeObject

        public void setChargeObject​(Charge expandableObject)
      • getPaymentIntent

        public java.lang.String getPaymentIntent()
        Get ID of expandable paymentIntent object.
      • setPaymentIntent

        public void setPaymentIntent​(java.lang.String id)
      • getPaymentIntentObject

        public PaymentIntent getPaymentIntentObject()
        Get expanded paymentIntent.
      • setPaymentIntentObject

        public void setPaymentIntentObject​(PaymentIntent expandableObject)
      • list

        public static ReviewCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                     throws StripeException
        Returns a list of Review objects that have open set to true . The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        Throws:
        StripeException
      • list

        public static ReviewCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                            RequestOptions options)
                                     throws StripeException
        Returns a list of Review objects that have open set to true . The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        Throws:
        StripeException
      • approve

        public Review approve​(java.util.Map<java.lang.String,​java.lang.Object> params)
                       throws StripeException
        Approves a Review object, closing it and removing it from the list of reviews.
        Throws:
        StripeException
      • getBillingZip

        public java.lang.String getBillingZip()
        The ZIP or postal code of the card used, if applicable.
      • getClosedReason

        public java.lang.String getClosedReason()
        The reason the review was closed, or null if it has not yet been closed. One of approved, refunded, refunded_as_fraud, or disputed.
      • getCreated

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

        public java.lang.String getIpAddress()
        The IP address where the payment originated.
      • getIpAddressLocation

        public Review.Location getIpAddressLocation()
        Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
      • 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 review.

      • getOpen

        public java.lang.Boolean getOpen()
        If true, the review needs action.
      • getOpenedReason

        public java.lang.String getOpenedReason()
        The reason the review was opened. One of rule or manual.
      • getReason

        public java.lang.String getReason()
        The reason the review is currently open or closed. One of rule, manual, approved, refunded, refunded_as_fraud, or disputed.
      • getSession

        public Review.Session getSession()
        Information related to the browsing session of the user who initiated the payment.
      • setBillingZip

        public void setBillingZip​(java.lang.String billingZip)
        The ZIP or postal code of the card used, if applicable.
      • setClosedReason

        public void setClosedReason​(java.lang.String closedReason)
        The reason the review was closed, or null if it has not yet been closed. One of approved, refunded, refunded_as_fraud, or disputed.
      • setCreated

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

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

        public void setIpAddress​(java.lang.String ipAddress)
        The IP address where the payment originated.
      • setIpAddressLocation

        public void setIpAddressLocation​(Review.Location ipAddressLocation)
        Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
      • 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.
      • 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 review.

      • setOpen

        public void setOpen​(java.lang.Boolean open)
        If true, the review needs action.
      • setOpenedReason

        public void setOpenedReason​(java.lang.String openedReason)
        The reason the review was opened. One of rule or manual.
      • setReason

        public void setReason​(java.lang.String reason)
        The reason the review is currently open or closed. One of rule, manual, approved, refunded, refunded_as_fraud, or disputed.
      • setSession

        public void setSession​(Review.Session session)
        Information related to the browsing session of the user who initiated the payment.
      • 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