Class: Io::Flow::V0::Clients::BankAccountForms

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ BankAccountForms

Returns a new instance of BankAccountForms.



5818
5819
5820
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5818

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

Instance Method Details

#put(organization, bank_account_form) ⇒ Object



5822
5823
5824
5825
5826
5827
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5822

def put(organization, )
  HttpClient::Preconditions.assert_class('organization', organization, String)
  (x = ; x.is_a?(::Io::Flow::V0::Models::BankAccountForm) ? x : ::Io::Flow::V0::Models::BankAccountForm.new(x))
  r = @client.request("/#{CGI.escape(organization)}/shopify/merchant/config/bank/account").with_json(.to_json).put
  ::Io::Flow::V0::Models::OrganizationBankAccount.new(r)
end