lib/recurly/gift_card.rb in recurly-2.15.3 vs lib/recurly/gift_card.rb in recurly-2.15.4
- old
+ new
@@ -10,9 +10,15 @@
belongs_to :recipient_account, class_name: :Account, readonly: false
# @return [Delivery, nil] Delivery information of the recipient.
has_one :delivery, class_name: :Delivery, readonly: false
+ # @return [Invoice, nil] The credit invoice for the gift card redemption.
+ has_one :redemption_invoice, class_name: :Invoice, readonly: true
+
+ # @return [Invoice, nil] The charge invoice for the gift card redemption.
+ has_one :purchase_invoice, class_name: :Invoice, readonly: true
+
define_attribute_methods %w(
balance_in_cents
currency
created_at
delivered_at