Class UsageRecord

    • Constructor Detail

      • UsageRecord

        public UsageRecord()
    • Method Detail

      • create

        public static UsageRecord create​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                         RequestOptions options)
                                  throws StripeException
        Create a new usage record associated with a subscription item.
        Parameters:
        params - The quantity, the timestamp and the conflict behaviour (action)
        options - Request options
        Returns:
        The created usage record
        Throws:
        StripeException
      • getObject

        public java.lang.String getObject()
      • getLivemode

        public java.lang.Boolean getLivemode()
      • getQuantity

        public java.lang.Long getQuantity()
      • getSubscriptionItem

        public java.lang.String getSubscriptionItem()
      • getTimestamp

        public java.lang.Long getTimestamp()
      • setId

        public void setId​(java.lang.String id)
      • setObject

        public void setObject​(java.lang.String object)
      • setLivemode

        public void setLivemode​(java.lang.Boolean livemode)
      • setQuantity

        public void setQuantity​(java.lang.Long quantity)
      • setSubscriptionItem

        public void setSubscriptionItem​(java.lang.String subscriptionItem)
      • setTimestamp

        public void setTimestamp​(java.lang.Long timestamp)
      • 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()
        Specified by:
        getId in interface HasId