lib/tickethub/supplier/booking.rb in tickethub-0.3.82 vs lib/tickethub/supplier/booking.rb in tickethub-0.3.84
- old
+ new
@@ -15,10 +15,11 @@
require_relative 'tier'
require_relative 'scan'
require_relative 'ticket'
require_relative 'discount'
require_relative 'broadcast'
+ require_relative 'group'
collection_method :broadcast do |params|
Supplier::Broadcast.call self.endpoint, begin
post(:broadcast, params)
rescue Tickethub::ResourceInvalid => err
@@ -38,9 +39,10 @@
association :order, Supplier::Order
association :rate, Supplier::Rate
association :coupon, Supplier::Coupon
association :product, Supplier::Product
association :variant, Supplier::Variant
+ association :group, Supplier::Group
attribute :amount, type: :money
attribute :discount, type: :money
attribute :tax, type: :money
attribute :total, type: :money
\ No newline at end of file