Sha256: 9d870257a076fc8f4805744b73cc5fa01e226411b9c821f9388d9f52b84d35bf

Contents?: true

Size: 795 Bytes

Versions: 63

Compression:

Stored size: 795 Bytes

Contents

module Recurly
  class CreditPayment < Resource
    # @return [Account, nil]
    belongs_to :account, class_name: :Account, readonly: true

    # @return [Invoice, nil]
    has_one :original_invoice, class_name: :Invoice, readonly: true

    # @return [Invoice, nil]
    has_one :applied_to_invoice, class_name: :Invoice, readonly: true

    define_attribute_methods %w(
      action
      amount_in_cents
      applied_to_invoice_number
      currency
      created_at
      original_credit_payment
      original_credit_payment_uuid
      original_invoice_number
      refund_transaction
      refund_transaction_uuid
      updated_at
      uuid
      voided_at
    )
    alias to_param uuid

    # @return ["charge", "credit", nil] The type of credit payment.
    attr_reader :type
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
recurly-2.18.32 lib/recurly/credit_payment.rb
recurly-2.18.31 lib/recurly/credit_payment.rb
recurly-2.18.30 lib/recurly/credit_payment.rb
recurly-2.18.29 lib/recurly/credit_payment.rb
recurly-2.18.28 lib/recurly/credit_payment.rb
recurly-2.18.27 lib/recurly/credit_payment.rb
recurly-2.18.26 lib/recurly/credit_payment.rb
recurly-2.18.25 lib/recurly/credit_payment.rb
recurly-2.18.24 lib/recurly/credit_payment.rb
recurly-2.18.23 lib/recurly/credit_payment.rb
recurly-2.18.22 lib/recurly/credit_payment.rb
recurly-2.18.21 lib/recurly/credit_payment.rb
recurly-2.18.20 lib/recurly/credit_payment.rb
recurly-2.18.19 lib/recurly/credit_payment.rb
recurly-2.18.18 lib/recurly/credit_payment.rb
recurly-2.18.17 lib/recurly/credit_payment.rb
recurly-2.18.16 lib/recurly/credit_payment.rb
recurly-2.18.15 lib/recurly/credit_payment.rb
recurly-2.18.14 lib/recurly/credit_payment.rb
recurly-2.18.13 lib/recurly/credit_payment.rb