lib/tickethub/supplier/product.rb in tickethub-0.2.7 vs lib/tickethub/supplier/product.rb in tickethub-0.2.8
- old
+ new
@@ -20,10 +20,11 @@
require_relative 'coupon'
require_relative 'reseller'
require_relative 'question'
require_relative 'answer'
require_relative 'tax'
+ require_relative 'scan'
collection :bookings, Supplier::Booking
collection :vouchers, Supplier::Voucher
collection :tickets, Supplier::Ticket
collection :tiers, Supplier::Tier
@@ -32,9 +33,10 @@
collection :coupons, Supplier::Coupon
collection :rates, Supplier::Rate
collection :questions, Supplier::Question
collection :answers, Supplier::Answer
collection :taxes, Supplier::Tax
+ collection :scans, Supplier::Scan
collection :options, Supplier::Option do
def dates(from, to, booking = {})
@endpoint[:dates].get(from: from, to: to, booking: booking).decoded
end
\ No newline at end of file