Class: GenesisRuby::Api::Requests::NonFinancial::Payee::DissociatePayeeWithOwners
- Inherits:
-
Base::NonFinancial::Payee::Base
- Object
- GenesisRuby::Api::Request
- Base::NonFinancial::Payee::Base
- GenesisRuby::Api::Requests::NonFinancial::Payee::DissociatePayeeWithOwners
- Defined in:
- lib/genesis_ruby/api/requests/non_financial/payee/dissociate_payee_with_owners.rb
Overview
Dissociate Owners from a specific Payee.
Constant Summary
Constants inherited from GenesisRuby::Api::Request
GenesisRuby::Api::Request::AUTH_TYPE_BASIC, GenesisRuby::Api::Request::AUTH_TYPE_TOKEN, GenesisRuby::Api::Request::METHOD_DELETE, GenesisRuby::Api::Request::METHOD_GET, GenesisRuby::Api::Request::METHOD_PATCH, GenesisRuby::Api::Request::METHOD_POST, GenesisRuby::Api::Request::METHOD_PUT, GenesisRuby::Api::Request::PORT_HTTPS, GenesisRuby::Api::Request::PROTOCOL_HTTPS
Instance Attribute Summary collapse
-
#payee_unique_id ⇒ Object
Returns the value of attribute payee_unique_id.
Attributes inherited from GenesisRuby::Api::Request
Instance Method Summary collapse
-
#add_unique_id(value) ⇒ Object
Add a unique_id to the collection of owners to dissociate.
-
#initialize(configuration, _builder_interface = nil) ⇒ DissociatePayeeWithOwners
constructor
Dissociate Payee With Owners initialization.
-
#unique_ids=(value) ⇒ Object
Assign unique_ids collection with validation.
Methods inherited from GenesisRuby::Api::Request
Constructor Details
#initialize(configuration, _builder_interface = nil) ⇒ DissociatePayeeWithOwners
Dissociate Payee With Owners initialization
14 15 16 17 18 19 20 |
# File 'lib/genesis_ruby/api/requests/non_financial/payee/dissociate_payee_with_owners.rb', line 14 def initialize(configuration, _builder_interface = nil) super configuration self.request_path = 'payee/:payee_unique_id/owners' init_delete_configuration end |
Instance Attribute Details
#payee_unique_id ⇒ Object
Returns the value of attribute payee_unique_id.
11 12 13 |
# File 'lib/genesis_ruby/api/requests/non_financial/payee/dissociate_payee_with_owners.rb', line 11 def payee_unique_id @payee_unique_id end |
Instance Method Details
#add_unique_id(value) ⇒ Object
Add a unique_id to the collection of owners to dissociate
23 24 25 26 27 28 |
# File 'lib/genesis_ruby/api/requests/non_financial/payee/dissociate_payee_with_owners.rb', line 23 def add_unique_id(value) raise GenesisRuby::InvalidArgumentError, 'Unique ID must be a String' unless value.is_a?(String) raise GenesisRuby::InvalidArgumentError, 'Unique ID is required' if value.empty? unique_ids << value end |
#unique_ids=(value) ⇒ Object
Assign unique_ids collection with validation
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/genesis_ruby/api/requests/non_financial/payee/dissociate_payee_with_owners.rb', line 31 def unique_ids=(value) if value.nil? @unique_ids = nil elsif !value.is_a?(Array) raise GenesisRuby::InvalidArgumentError, 'Unique IDs must be an Array' else validate_unique_ids_collection(value) @unique_ids = value end end |