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.20.3 lib/recurly/credit_payment.rb
recurly-2.20.2 lib/recurly/credit_payment.rb
recurly-2.20.1 lib/recurly/credit_payment.rb
recurly-2.20.0 lib/recurly/credit_payment.rb
recurly-2.19.13 lib/recurly/credit_payment.rb
recurly-2.19.12 lib/recurly/credit_payment.rb
recurly-2.19.11 lib/recurly/credit_payment.rb
recurly-2.19.10 lib/recurly/credit_payment.rb
recurly-2.19.9 lib/recurly/credit_payment.rb
recurly-2.19.8 lib/recurly/credit_payment.rb
recurly-2.19.7 lib/recurly/credit_payment.rb
recurly-2.19.6 lib/recurly/credit_payment.rb
recurly-2.19.5 lib/recurly/credit_payment.rb
recurly-2.19.4 lib/recurly/credit_payment.rb
recurly-2.19.3 lib/recurly/credit_payment.rb
recurly-2.19.2 lib/recurly/credit_payment.rb
recurly-2.19.1 lib/recurly/credit_payment.rb
recurly-2.19.0 lib/recurly/credit_payment.rb
recurly-2.18.34 lib/recurly/credit_payment.rb
recurly-2.18.33 lib/recurly/credit_payment.rb