Module: BookingSync::API::Client::PreferencesPayments

Included in:
BookingSync::API::Client
Defined in:
lib/bookingsync/api/client/preferences_payments.rb

Instance Method Summary collapse

Instance Method Details

#preferences_payments(options = {}, &block) ⇒ Array<BookingSync::API::Resource>

List preferences payments

Returns preferences payments for the account user is authenticated with.

Examples:

Get the list of preferences payments for the current account

preferences_payments = @api.preferences_payments
preferences_payments.first.gateway # => "blue_pay"

Get the list of preferences payments only with gateway and supported_cardtypes for smaller response

@api.preferences_payments(fields: [:gateway, :supported_cardtypes])

Options Hash (options):

  • fields: (Array)

    List of fields to be fetched.

See Also:



17
18
19
# File 'lib/bookingsync/api/client/preferences_payments.rb', line 17

def preferences_payments(options = {}, &block)
  paginate :preferences_payments, options, &block
end