Sha256: 879b903ef23535e5d0e36a9deb881495dc97baa7534e80e099ffaecd799aef51

Contents?: true

Size: 652 Bytes

Versions: 11

Compression:

Stored size: 652 Bytes

Contents

module CurrencyCloud
  class Account
    include CurrencyCloud::Resource

    resource :accounts
    actions :create, :retrieve, :find, :update, :current

    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

11 entries across 11 versions & 1 rubygems

Version Path
currency_cloud-1.3.1 lib/currency_cloud/account.rb
currency_cloud-1.3.0 lib/currency_cloud/account.rb
currency_cloud-1.2.1 lib/currency_cloud/account.rb
currency_cloud-1.1.4 lib/currency_cloud/account.rb
currency_cloud-1.0.3 lib/currency_cloud/account.rb
currency_cloud-0.17.7 lib/currency_cloud/account.rb
currency_cloud-0.16.2 lib/currency_cloud/account.rb
currency_cloud-0.15.8 lib/currency_cloud/account.rb
currency_cloud-0.14.2 lib/currency_cloud/account.rb
currency_cloud-0.12.5 lib/currency_cloud/account.rb
currency_cloud-0.12.4 lib/currency_cloud/account.rb