lib/tickethub/supplier/product.rb in tickethub-0.3.91 vs lib/tickethub/supplier/product.rb in tickethub-0.3.92
- old
+ new
@@ -26,10 +26,11 @@
require_relative 'tax'
require_relative 'channel'
require_relative 'scan'
require_relative 'import'
require_relative 'party'
+ require_relative 'weather'
collection :bookings, Supplier::Booking
collection :tickets, Supplier::Ticket
collection :purchases, Supplier::Purchase
collection :extras, Supplier::Extra
@@ -44,9 +45,10 @@
collection :taxes, Supplier::Tax
collection :scans, Supplier::Scan
collection :channels, Supplier::Channel
collection :imports, Supplier::Import
collection :parties, Supplier::Party
+ collection :weather, Supplier::Weather
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