# This file is automatically created by Recurly's OpenAPI generation process # and thus any edits you make by hand will be lost. If you wish to make a # change to this file, please create a Github issue explaining the changes you # need and we will usher them to the appropriate places. module Recurly module Requests class UsageCreate < Request # @!attribute amount # @return [Float] The amount of usage. Can be positive, negative, or 0. No decimals allowed, we will strip them. If the usage-based add-on is billed with a percentage, your usage will be a monetary amount you will want to format in cents. (e.g., $5.00 is "500"). define_attribute :amount, Float # @!attribute merchant_tag # @return [String] Custom field for recording the id in your own system associated with the usage, so you can provide auditable usage displays to your customers using a GET on this endpoint. define_attribute :merchant_tag, String # @!attribute recording_timestamp # @return [DateTime] When the usage was recorded in your system. define_attribute :recording_timestamp, DateTime # @!attribute usage_timestamp # @return [DateTime] When the usage actually happened. This will define the line item dates this usage is billed under and is important for revenue recognition. define_attribute :usage_timestamp, DateTime end end end