lib/recurly/requests/usage_create.rb in recurly-4.21.1 vs lib/recurly/requests/usage_create.rb in recurly-4.22.0
- old
+ new
@@ -5,10 +5,10 @@
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").
+ # @return [Float] The amount of usage. Can be positive, negative, or 0. If the Decimal Quantity feature is enabled, this value will be rounded to nine decimal places. Otherwise, all digits after the decimal will be stripped. If the usage-based add-on is billed with a percentage, your usage should be a monetary amount formatted 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