Class: Io::Flow::V0::Clients::SurchargeSettings

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ SurchargeSettings

Returns a new instance of SurchargeSettings.



4966
4967
4968
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4966

def initialize(client)
  @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
end

Instance Method Details

#get_displays(organization) ⇒ Object



4970
4971
4972
4973
4974
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4970

def get_displays(organization)
  HttpClient::Preconditions.assert_class('organization', organization, String)
  r = @client.request("/#{CGI.escape(organization)}/surcharge/settings/displays").get
  r.map { |x| ::Io::Flow::V0::Models::SurchargeSettingDisplay.new(x) }
end