Sha256: a24ada9bccffd031ae8bd91d35fa6f2d446d22162a9b0d8f69fa6670a91ca33a

Contents?: true

Size: 742 Bytes

Versions: 5

Compression:

Stored size: 742 Bytes

Contents

require_relative '../resource'

module Tickethub
  class Reseller::Payment < Resource
    path '/reseller/payments'

    require_relative 'refund'

    require_relative 'payment/credit'
    require_relative 'payment/stripe'

    require_relative 'order'
    require_relative 'user'

    association :order, Reseller::Order
    association :user, Reseller::User

    collection :refunds, Reseller::Refund

    attribute :amount, type: :money
    attribute :refunded, type: :money
    attribute :balance, type: :money
    attribute :currency, type: :currency
    attribute :refunded_at, type: :datetime
    attribute :confirmed_at, type: :datetime

    attribute :created_at, type: :datetime
    attribute :updated_at, type: :datetime
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tickethub-0.3.40 lib/tickethub/reseller/payment.rb
tickethub-0.3.39 lib/tickethub/reseller/payment.rb
tickethub-0.3.38 lib/tickethub/reseller/payment.rb
tickethub-0.3.37 lib/tickethub/reseller/payment.rb
tickethub-0.3.36 lib/tickethub/reseller/payment.rb