lib/recurly/resources/line_item.rb in recurly-3.21.0 vs lib/recurly/resources/line_item.rb in recurly-3.22.0
- old
+ new
@@ -128,16 +128,24 @@
# @!attribute quantity
# @return [Integer] This number will be multiplied by the unit amount to compute the subtotal before any discounts or taxes.
define_attribute :quantity, Integer
+ # @!attribute quantity_decimal
+ # @return [String] A floating-point alternative to Quantity. If this value is present, it will be used in place of Quantity for calculations, and Quantity will be the rounded integer value of this number. This field supports up to 9 decimal places. The Decimal Quantity feature must be enabled to utilize this field.
+ define_attribute :quantity_decimal, String
+
# @!attribute refund
# @return [Boolean] Refund?
define_attribute :refund, :Boolean
# @!attribute refunded_quantity
# @return [Integer] For refund charges, the quantity being refunded. For non-refund charges, the total quantity refunded (possibly over multiple refunds).
define_attribute :refunded_quantity, Integer
+
+ # @!attribute refunded_quantity_decimal
+ # @return [String] A floating-point alternative to Refunded Quantity. For refund charges, the quantity being refunded. For non-refund charges, the total quantity refunded (possibly over multiple refunds). The Decimal Quantity feature must be enabled to utilize this field.
+ define_attribute :refunded_quantity_decimal, String
# @!attribute revenue_schedule_type
# @return [String] Revenue schedule type
define_attribute :revenue_schedule_type, String