Class: Io::Flow::V0::Clients::BankAccountForms
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::BankAccountForms
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ BankAccountForms
constructor
A new instance of BankAccountForms.
- #put(organization, bank_account_form) ⇒ Object
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, bank_account_form) HttpClient::Preconditions.assert_class('organization', organization, String) (x = bank_account_form; 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(bank_account_form.to_json).put ::Io::Flow::V0::Models::OrganizationBankAccount.new(r) end |