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