Sha256: 77d2cbdc2a495e6971124c973e0be90b36851336a3da0ec94aa25352f41cc624
Contents?: true
Size: 1019 Bytes
Versions: 2
Compression:
Stored size: 1019 Bytes
Contents
require_relative '../resource' module Tickethub class Reseller::Order < Resource path '/reseller/orders' require_relative 'customer' require_relative 'booking' require_relative 'payment' require_relative 'customer' require_relative 'user' require_relative 'answer' require_relative '../address' collection :bookings, Reseller::Booking collection :payments, Reseller::Payment collection :answers, Reseller::Answer association :customer, Reseller::Customer association :user, Reseller::User association :address, Tickethub::Address attribute :total, type: :money attribute :balance, type: :money attribute :commission, type: :money attribute :currency, type: :currency attribute :expires_at, type: :datetime attribute :confirmed_at, type: :datetime attribute :created_at, type: :datetime attribute :updated_at, type: :datetime def confirm(params = {}) self.load @endpoint[:confirm].post(params) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tickethub-0.3.37 | lib/tickethub/reseller/order.rb |
tickethub-0.3.36 | lib/tickethub/reseller/order.rb |