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.17.4 lib/recurly/credit_payment.rb
recurly-2.17.3 lib/recurly/credit_payment.rb
recurly-2.17.2 lib/recurly/credit_payment.rb