lib/recurly/invoice.rb in recurly-2.4.0 vs lib/recurly/invoice.rb in recurly-2.4.1
- old
+ new
@@ -21,14 +21,19 @@
belongs_to :original_invoice, class_name: 'Invoice'
# @return [Redemption]
has_one :redemption
+ def invoice_number_with_prefix
+ "#{invoice_number_prefix}#{invoice_number}"
+ end
+
define_attribute_methods %w(
uuid
state
invoice_number
+ invoice_number_prefix
po_number
vat_number
subtotal_in_cents
tax_in_cents
tax_type
@@ -43,10 +48,10 @@
transactions
terms_and_conditions
customer_notes
address
)
- alias to_param invoice_number
+ alias to_param invoice_number_with_prefix
def self.to_xml(attrs)
invoice = new attrs
invoice.to_xml
end