Stripe::UsageRecord
Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object
Usage records allow you to report customer usage and metrics to Stripe for metered billing of subscription prices. Related guide: Metered billing This is our legacy usage-based billing API. See the updated usage-based billing docs.
Constants
Constructors
Instance methods
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
Custom attribute writer method checking allowed values (enum). @param [Object] livemode Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] quantity Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] subscription_item Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] timestamp Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid