lib/recurly/resources/invoice.rb in recurly-3.18.1 vs lib/recurly/resources/invoice.rb in recurly-3.19.0
- old
+ new
@@ -17,11 +17,11 @@
# @!attribute balance
# @return [Float] The outstanding balance remaining on this invoice.
define_attribute :balance, Float
# @!attribute billing_info_id
- # @return [String] The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info.
+ # @return [String] The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.
define_attribute :billing_info_id, String
# @!attribute closed_at
# @return [DateTime] Date invoice was marked paid or failed.
define_attribute :closed_at, DateTime
@@ -52,10 +52,14 @@
# @!attribute due_at
# @return [DateTime] Date invoice is due. This is the date the net terms are reached.
define_attribute :due_at, DateTime
+ # @!attribute dunning_campaign_id
+ # @return [String] Unique ID to identify the dunning campaign used when dunning the invoice. For sites without multiple dunning campaigns enabled, this will always be the default dunning campaign.
+ define_attribute :dunning_campaign_id, String
+
# @!attribute id
# @return [String] Invoice ID
define_attribute :id, String
# @!attribute line_items
@@ -105,10 +109,10 @@
# @!attribute subscription_ids
# @return [Array[String]] If the invoice is charging or refunding for one or more subscriptions, these are their IDs.
define_attribute :subscription_ids, Array, { :item_type => String }
# @!attribute subtotal
- # @return [Float] The summation of charges, discounts, and credits, before tax.
+ # @return [Float] The summation of charges and credits, before discounts and taxes.
define_attribute :subtotal, Float
# @!attribute tax
# @return [Float] The total tax on this invoice.
define_attribute :tax, Float