lib/recurly/resources/line_item.rb in recurly-3.0.0 vs lib/recurly/resources/line_item.rb in recurly-3.1.0

- old
+ new

@@ -64,10 +64,18 @@ # @!attribute invoice_number # @return [String] Once the line item has been invoiced this will be the invoice's number. If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence. define_attribute :invoice_number, String + # @!attribute item_code + # @return [String] Unique code to identify an item, when the Catalog feature is enabled. + define_attribute :item_code, String + + # @!attribute item_id + # @return [String] Available when the Catalog feature is enabled. + define_attribute :item_id, String + # @!attribute legacy_category # @return [String] Category to describe the role of a line item on a legacy invoice: - "charges" refers to charges being billed for on this invoice. - "credits" refers to refund or proration credits. This portion of the invoice can be considered a credit memo. - "applied_credits" refers to previous credits applied to this invoice. See their original_line_item_id to determine where the credit first originated. - "carryforwards" can be ignored. They exist to consume any remaining credit balance. A new credit with the same amount will be created and placed back on the account. define_attribute :legacy_category, String # @!attribute object @@ -93,11 +101,11 @@ # @!attribute previous_line_item_id # @return [String] Will only have a value if the line item is a credit created from a previous credit, or if the credit was created from a charge refund. define_attribute :previous_line_item_id, String # @!attribute product_code - # @return [String] For plan related line items this will be the plan's code, for add-on related line items it will be the add-on's code. + # @return [String] For plan-related line items this will be the plan's code, for add-on related line items it will be the add-on's code. For item-related line itmes it will be the item's `external_sku`. define_attribute :product_code, String # @!attribute proration_rate # @return [Float] When a line item has been prorated, this is the rate of the proration. Proration rates were made available for line items created after March 30, 2017. For line items created prior to that date, the proration rate will be `null`, even if the line item was prorated. define_attribute :proration_rate, Float @@ -111,9 +119,13 @@ 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 revenue_schedule_type + # @return [String] Revenue schedule type + define_attribute :revenue_schedule_type, String # @!attribute shipping_address # @return [ShippingAddress] define_attribute :shipping_address, :ShippingAddress