Class: Increase::Resources::BeneficialOwners
- Inherits:
-
Object
- Object
- Increase::Resources::BeneficialOwners
- Defined in:
- lib/increase/resources/beneficial_owners.rb,
sig/increase/resources/beneficial_owners.rbs
Instance Method Summary collapse
-
#archive(entity_beneficial_owner_id, request_options: {}) ⇒ Increase::Models::EntityBeneficialOwner
Archive a Beneficial Owner.
-
#create(entity_id:, individual:, prongs:, company_title: nil, request_options: {}) ⇒ Increase::Models::EntityBeneficialOwner
Create a Beneficial Owner.
-
#initialize(client:) ⇒ BeneficialOwners
constructor
private
A new instance of BeneficialOwners.
-
#list(entity_id:, cursor: nil, idempotency_key: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::EntityBeneficialOwner>
List Beneficial Owners.
-
#retrieve(entity_beneficial_owner_id, request_options: {}) ⇒ Increase::Models::EntityBeneficialOwner
Retrieve a Beneficial Owner.
-
#update(entity_beneficial_owner_id, address: nil, confirmed_no_us_tax_id: nil, identification: nil, name: nil, prongs: nil, request_options: {}) ⇒ Increase::Models::EntityBeneficialOwner
Update a Beneficial Owner.
Constructor Details
#initialize(client:) ⇒ BeneficialOwners
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of BeneficialOwners.
164 165 166 |
# File 'lib/increase/resources/beneficial_owners.rb', line 164 def initialize(client:) @client = client end |
Instance Method Details
#archive(entity_beneficial_owner_id, request_options: {}) ⇒ Increase::Models::EntityBeneficialOwner
Archive a Beneficial Owner
152 153 154 155 156 157 158 159 |
# File 'lib/increase/resources/beneficial_owners.rb', line 152 def archive(entity_beneficial_owner_id, params = {}) @client.request( method: :post, path: ["entity_beneficial_owners/%1$s/archive", entity_beneficial_owner_id], model: Increase::EntityBeneficialOwner, options: params[:request_options] ) end |
#create(entity_id:, individual:, prongs:, company_title: nil, request_options: {}) ⇒ Increase::Models::EntityBeneficialOwner
Create a Beneficial Owner
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/increase/resources/beneficial_owners.rb', line 29 def create(params) parsed, = Increase::BeneficialOwnerCreateParams.dump_request(params) @client.request( method: :post, path: "entity_beneficial_owners", body: parsed, model: Increase::EntityBeneficialOwner, options: ) end |
#list(entity_id:, cursor: nil, idempotency_key: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::EntityBeneficialOwner>
List Beneficial Owners
128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/increase/resources/beneficial_owners.rb', line 128 def list(params) parsed, = Increase::BeneficialOwnerListParams.dump_request(params) query = Increase::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "entity_beneficial_owners", query: query, page: Increase::Internal::Page, model: Increase::EntityBeneficialOwner, options: ) end |
#retrieve(entity_beneficial_owner_id, request_options: {}) ⇒ Increase::Models::EntityBeneficialOwner
Retrieve a Beneficial Owner
51 52 53 54 55 56 57 58 |
# File 'lib/increase/resources/beneficial_owners.rb', line 51 def retrieve(entity_beneficial_owner_id, params = {}) @client.request( method: :get, path: ["entity_beneficial_owners/%1$s", entity_beneficial_owner_id], model: Increase::EntityBeneficialOwner, options: params[:request_options] ) end |
#update(entity_beneficial_owner_id, address: nil, confirmed_no_us_tax_id: nil, identification: nil, name: nil, prongs: nil, request_options: {}) ⇒ Increase::Models::EntityBeneficialOwner
Update a Beneficial Owner
92 93 94 95 96 97 98 99 100 101 |
# File 'lib/increase/resources/beneficial_owners.rb', line 92 def update(entity_beneficial_owner_id, params = {}) parsed, = Increase::BeneficialOwnerUpdateParams.dump_request(params) @client.request( method: :patch, path: ["entity_beneficial_owners/%1$s", entity_beneficial_owner_id], body: parsed, model: Increase::EntityBeneficialOwner, options: ) end |