Sha256: fa9d7b1efaf12b7b62701fe712617af9ec5c7a1493b78fd483fd4cea1e1d66ca

Contents?: true

Size: 337 Bytes

Versions: 7

Compression:

Stored size: 337 Bytes

Contents

module Payments
  def get_on_account_balance(current_user, payment_method_id, options={})
    options.merge!(basic_auth: @auth, headers: @headers)
    response = self.class.get(base_api_endpoint("TXN/Payments/OnAccount?constituentId=#{current_user}&paymentMethodId=#{payment_method_id}"), options)
    JSON.parse(response.body)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tessitura_rest-1.1.6 lib/tessitura_rest/txn/payments.rb
tessitura_rest-1.1.5 lib/tessitura_rest/txn/payments.rb
tessitura_rest-1.1.4 lib/tessitura_rest/txn/payments.rb
tessitura_rest-1.1.3 lib/tessitura_rest/txn/payments.rb
tessitura_rest-1.1.2 lib/tessitura_rest/txn/payments.rb
tessitura_rest-1.1.1 lib/tessitura_rest/txn/payments.rb
tessitura_rest-1.1.0 lib/tessitura_rest/txn/payments.rb