Module: BookingSync::API::Client::BookingsPayments
- Included in:
- BookingSync::API::Client
- Defined in:
- lib/bookingsync/api/client/bookings_payments.rb
Instance Method Summary collapse
-
#bookings_payment(bookings_payment, options = {}) ⇒ BookingSync::API::Resource
Get a single bookings payment.
-
#bookings_payments(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List bookings payments.
Instance Method Details
#bookings_payment(bookings_payment, options = {}) ⇒ BookingSync::API::Resource
Get a single bookings payment
28 29 30 |
# File 'lib/bookingsync/api/client/bookings_payments.rb', line 28 def bookings_payment(bookings_payment, = {}) get("bookings_payments/#{bookings_payment}", ).pop end |
#bookings_payments(options = {}, &block) ⇒ Array<BookingSync::API::Resource>
List bookings payments
Returns bookings payments for the account user is authenticated with.
17 18 19 |
# File 'lib/bookingsync/api/client/bookings_payments.rb', line 17 def bookings_payments( = {}, &block) paginate :bookings_payments, , &block end |