Class OrderReturn

    • Constructor Detail

      • OrderReturn

        public OrderReturn()
    • Method Detail

      • getOrder

        public java.lang.String getOrder()
        Get ID of expandable order object.
      • setOrder

        public void setOrder​(java.lang.String id)
      • getOrderObject

        public Order getOrderObject()
        Get expanded order.
      • setOrderObject

        public void setOrderObject​(Order expandableObject)
      • getRefund

        public java.lang.String getRefund()
        Get ID of expandable refund object.
      • setRefund

        public void setRefund​(java.lang.String id)
      • getRefundObject

        public Refund getRefundObject()
        Get expanded refund.
      • setRefundObject

        public void setRefundObject​(Refund expandableObject)
      • list

        public static OrderReturnCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                          throws StripeException
        Returns a list of your order returns. The returns are returned sorted by creation date, with the most recently created return appearing first.
        Throws:
        StripeException
      • list

        public static OrderReturnCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                                 RequestOptions options)
                                          throws StripeException
        Returns a list of your order returns. The returns are returned sorted by creation date, with the most recently created return appearing first.
        Throws:
        StripeException
      • retrieve

        public static OrderReturn retrieve​(java.lang.String id)
                                    throws StripeException
        Retrieves the details of an existing order return. Supply the unique order ID from either an order return creation request or the order return list, and Stripe will return the corresponding order information.
        Throws:
        StripeException
      • retrieve

        public static OrderReturn retrieve​(java.lang.String id,
                                           RequestOptions options)
                                    throws StripeException
        Retrieves the details of an existing order return. Supply the unique order ID from either an order return creation request or the order return list, and Stripe will return the corresponding order information.
        Throws:
        StripeException
      • retrieve

        public static OrderReturn retrieve​(java.lang.String id,
                                           java.util.Map<java.lang.String,​java.lang.Object> params,
                                           RequestOptions options)
                                    throws StripeException
        Retrieves the details of an existing order return. Supply the unique order ID from either an order return creation request or the order return list, and Stripe will return the corresponding order information.
        Throws:
        StripeException
      • getAmount

        public java.lang.Long getAmount()
        A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the returned line item.
      • getCreated

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

        public java.util.List<OrderItem> getItems()
        The items included in this order return.
      • 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 order_return.

      • setAmount

        public void setAmount​(java.lang.Long amount)
        A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the returned line item.
      • 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.
      • setItems

        public void setItems​(java.util.List<OrderItem> items)
        The items included in this order return.
      • 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 order_return.

      • 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