Class: SynapsePayRest::SubcardUsNode
- Defined in:
- lib/synapse_pay_rest/models/node/subcard_us_node.rb
Instance Attribute Summary
Attributes inherited from BaseNode
#access_token, #account_class, #account_id, #account_number, #account_type, #address, #address_city, #address_country_code, #address_postal_code, #address_street, #address_subdivision, #allow_foreign_transactions, #atm_withdrawal_limit, #balance, #bank_id, #bank_long_name, #bank_name, #bank_pw, #card_hash, #card_style_id, #card_type, #correspondent_address, #correspondent_bank_name, #correspondent_routing_number, #correspondent_swift, #currency, #document_id, #email_match, #gateway_restricted, #id, #ifsc, #interchange_type, #is_active, #is_international, #max_pin_attempts, #monthly_withdrawals_remaining, #name_match, #name_on_account, #network, #nickname, #other, #payee_address, #payee_name, #permission, #phonenumber_match, #portfolio_BTC, #portfolio_ETH, #pos_withdrawal_limit, #routing_number, #security_alerts, #supp_id, #swift, #type, #user
Instance Method Summary collapse
Methods inherited from BaseNode
#==, all, create, #create_subnet, #create_transaction, #deactivate, #find_subnet, #find_transaction, from_response, #get_statement, #initialize, multiple_from_response, #subnets, #transactions
Constructor Details
This class inherits a constructor from SynapsePayRest::BaseNode
Instance Method Details
#update_allowed(allowed:) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/synapse_pay_rest/models/node/subcard_us_node.rb', line 27 def update_allowed(allowed:) if allowed.empty? raise ArgumentError, 'must provide some key-value pairs to update' end payload = { 'allowed': allowed } response = user.client.nodes.patch(user_id: user.id, node_id: id, payload: payload) self.class.from_response(user, response) end |
#update_preferences(**options) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/synapse_pay_rest/models/node/subcard_us_node.rb', line 18 def update_preferences(**) if .empty? raise ArgumentError, 'must provide some key-value pairs to update' end payload = payload_for_preferences() response = user.client.nodes.patch(user_id: user.id, node_id: id, payload: payload) self.class.from_response(user, response) end |