Class: Increase::Resources::Entities
- Inherits:
-
Object
- Object
- Increase::Resources::Entities
- Defined in:
- lib/increase/resources/entities.rb
Instance Method Summary collapse
-
#archive(entity_id, request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityArchiveParams for more details.
-
#archive_beneficial_owner(entity_id, beneficial_owner_id: , request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityArchiveBeneficialOwnerParams for more details.
-
#confirm(entity_id, confirmed_at: nil, request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityConfirmParams for more details.
-
#create(structure: , corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, supplemental_documents: nil, third_party_verification: nil, trust: nil, request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityCreateParams for more details.
-
#create_beneficial_owner(entity_id, beneficial_owner: , request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityCreateBeneficialOwnerParams for more details.
-
#initialize(client:) ⇒ Entities
constructor
private
A new instance of Entities.
-
#list(created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::Entity>
Some parameter documentations has been truncated, see Models::EntityListParams for more details.
-
#retrieve(entity_id, request_options: {}) ⇒ Increase::Models::Entity
Retrieve an Entity.
-
#update_address(entity_id, address: , request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityUpdateAddressParams for more details.
-
#update_beneficial_owner_address(entity_id, address: , beneficial_owner_id: , request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityUpdateBeneficialOwnerAddressParams for more details.
-
#update_industry_code(entity_id, industry_code: , request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityUpdateIndustryCodeParams for more details.
Constructor Details
#initialize(client:) ⇒ Entities
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 Entities.
293 294 295 |
# File 'lib/increase/resources/entities.rb', line 293 def initialize(client:) @client = client end |
Instance Method Details
#archive(entity_id, request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityArchiveParams for more details.
Archive an Entity
115 116 117 118 119 120 121 122 |
# File 'lib/increase/resources/entities.rb', line 115 def archive(entity_id, params = {}) @client.request( method: :post, path: ["entities/%1$s/archive", entity_id], model: Increase::Entity, options: params[:request_options] ) end |
#archive_beneficial_owner(entity_id, beneficial_owner_id: , request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityArchiveBeneficialOwnerParams for more details.
Archive a beneficial owner for a corporate Entity
140 141 142 143 144 145 146 147 148 149 |
# File 'lib/increase/resources/entities.rb', line 140 def archive_beneficial_owner(entity_id, params) parsed, = Increase::EntityArchiveBeneficialOwnerParams.dump_request(params) @client.request( method: :post, path: ["entities/%1$s/archive_beneficial_owner", entity_id], body: parsed, model: Increase::Entity, options: ) end |
#confirm(entity_id, confirmed_at: nil, request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityConfirmParams for more details.
Depending on your program, you may be required to re-confirm an Entity’s details on a recurring basis. After making any required updates, call this endpoint to record that your user confirmed their details.
169 170 171 172 173 174 175 176 177 178 |
# File 'lib/increase/resources/entities.rb', line 169 def confirm(entity_id, params = {}) parsed, = Increase::EntityConfirmParams.dump_request(params) @client.request( method: :post, path: ["entities/%1$s/confirm", entity_id], body: parsed, model: Increase::Entity, options: ) end |
#create(structure: , corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, supplemental_documents: nil, third_party_verification: nil, trust: nil, request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityCreateParams for more details.
Create an Entity
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/increase/resources/entities.rb', line 36 def create(params) parsed, = Increase::EntityCreateParams.dump_request(params) @client.request( method: :post, path: "entities", body: parsed, model: Increase::Entity, options: ) end |
#create_beneficial_owner(entity_id, beneficial_owner: , request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityCreateBeneficialOwnerParams for more details.
Create a beneficial owner for a corporate Entity
196 197 198 199 200 201 202 203 204 205 |
# File 'lib/increase/resources/entities.rb', line 196 def create_beneficial_owner(entity_id, params) parsed, = Increase::EntityCreateBeneficialOwnerParams.dump_request(params) @client.request( method: :post, path: ["entities/%1$s/create_beneficial_owner", entity_id], body: parsed, model: Increase::Entity, options: ) end |
#list(created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::Entity>
Some parameter documentations has been truncated, see Models::EntityListParams for more details.
List Entities
89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/increase/resources/entities.rb', line 89 def list(params = {}) parsed, = Increase::EntityListParams.dump_request(params) @client.request( method: :get, path: "entities", query: parsed, page: Increase::Internal::Page, model: Increase::Entity, options: ) end |
#retrieve(entity_id, request_options: {}) ⇒ Increase::Models::Entity
Retrieve an Entity
58 59 60 61 62 63 64 65 |
# File 'lib/increase/resources/entities.rb', line 58 def retrieve(entity_id, params = {}) @client.request( method: :get, path: ["entities/%1$s", entity_id], model: Increase::Entity, options: params[:request_options] ) end |
#update_address(entity_id, address: , request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityUpdateAddressParams for more details.
Update a Natural Person or Corporation’s address
223 224 225 226 227 228 229 230 231 232 |
# File 'lib/increase/resources/entities.rb', line 223 def update_address(entity_id, params) parsed, = Increase::EntityUpdateAddressParams.dump_request(params) @client.request( method: :post, path: ["entities/%1$s/update_address", entity_id], body: parsed, model: Increase::Entity, options: ) end |
#update_beneficial_owner_address(entity_id, address: , beneficial_owner_id: , request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityUpdateBeneficialOwnerAddressParams for more details.
Update the address for a beneficial owner belonging to a corporate Entity
252 253 254 255 256 257 258 259 260 261 |
# File 'lib/increase/resources/entities.rb', line 252 def update_beneficial_owner_address(entity_id, params) parsed, = Increase::EntityUpdateBeneficialOwnerAddressParams.dump_request(params) @client.request( method: :post, path: ["entities/%1$s/update_beneficial_owner_address", entity_id], body: parsed, model: Increase::Entity, options: ) end |
#update_industry_code(entity_id, industry_code: , request_options: {}) ⇒ Increase::Models::Entity
Some parameter documentations has been truncated, see Models::EntityUpdateIndustryCodeParams for more details.
Update the industry code for a corporate Entity
279 280 281 282 283 284 285 286 287 288 |
# File 'lib/increase/resources/entities.rb', line 279 def update_industry_code(entity_id, params) parsed, = Increase::EntityUpdateIndustryCodeParams.dump_request(params) @client.request( method: :post, path: ["entities/%1$s/update_industry_code", entity_id], body: parsed, model: Increase::Entity, options: ) end |