Sha256: 8ae99d4c85b87d7e1d78ad07546a2c549804a08ab9ed7ceb86cf06299a9486b9
Contents?: true
Size: 668 Bytes
Versions: 2
Compression:
Stored size: 668 Bytes
Contents
module CurrencyCloud class Account include CurrencyCloud::Resource resource :accounts actions :create, :retrieve, :update, :current actions_post :find def self.get_payment_charges_settings(account_id, params={}) settings = client.get("#{account_id}/payment_charges_settings", params) settings["payment_charges_settings"].map { |s| AccountPaymentChargesSetting.new(s) } end def self.update_payment_charges_settings(account_id, charge_settings_id, params) settings = client.post("#{account_id}/payment_charges_settings/#{charge_settings_id}", params) AccountPaymentChargesSetting.new(settings) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
currency_cloud-1.5.0 | lib/currency_cloud/account.rb |
currency_cloud-1.4.0 | lib/currency_cloud/account.rb |