DealMakerAPI 0.90.0 → 0.90.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb92d124d385e24970df9936695ecb92591692f2ac4e11e457e8eab82c96f68b
4
- data.tar.gz: 36e97971ff8ac0e724b2ad4dd08474f25be1c596e6cb1cbab227185ef6a676c7
3
+ metadata.gz: eef65ab76c842d742b22d68316eb7bdc4f4547fd72203625cc9f65cbeb8979f8
4
+ data.tar.gz: 77067db4f04aa8e132c969c35b1155d17d22dc1617107a7b323b7b1222c48783
5
5
  SHA512:
6
- metadata.gz: 38863eb19f8fbccab2637f7f691f740f909a96bc8ccfafba8adee26116fd1a688769ea0a0ec41b455d6a072c370d467ce4902b0d32d0d2d4ba50aeb2f7f025a1
7
- data.tar.gz: f8144b715e9018eeec7f3bf3c9e3d9231fb7257a0bb45d8105ae2172feb020d5b436deece94181001fecc9347138b395e9eb165e67b4706520aa1c22e9049fd1
6
+ metadata.gz: 6479f29c9548a1f6af6a1cafdca443d3448aee1f3f4b7606b5255d211684a06c8b66f4d6a5674ceb65337af3942fa3efbfc798762a0a4f28a131f5d574f4641f
7
+ data.tar.gz: 6c26dcc0eef7ec93d086fc1ca90f9c98bd21e7c76d29d78417b607f5efa112d9cf0be50e53593235a01baff820c1de8b5e68f12d6b39eae80fd6a6dfe6f258ce
data/README.md CHANGED
@@ -338,7 +338,7 @@ Given the high number of updates our platform performs on any investor, we’ve
338
338
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
339
339
 
340
340
  - API version: 1.75.0
341
- - Package version: 0.90.0
341
+ - Package version: 0.90.1
342
342
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
343
343
 
344
344
  ## Installation
@@ -354,16 +354,16 @@ gem build DealMakerAPI.gemspec
354
354
  Then either install the gem locally:
355
355
 
356
356
  ```shell
357
- gem install ./DealMakerAPI-0.90.0.gem
357
+ gem install ./DealMakerAPI-0.90.1.gem
358
358
  ```
359
359
 
360
- (for development, run `gem install --dev ./DealMakerAPI-0.90.0.gem` to install the development dependencies)
360
+ (for development, run `gem install --dev ./DealMakerAPI-0.90.1.gem` to install the development dependencies)
361
361
 
362
362
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
363
363
 
364
364
  Finally add this to the Gemfile:
365
365
 
366
- gem 'DealMakerAPI', '~> 0.90.0'
366
+ gem 'DealMakerAPI', '~> 0.90.1'
367
367
 
368
368
  ### Install from Git
369
369
 
@@ -421,6 +421,7 @@ Class | Method | HTTP request | Description
421
421
  *DealMakerAPI::CompanyApi* | [**get_company**](docs/CompanyApi.md#get_company) | **GET** /companies/{id} | Get a Company
422
422
  *DealMakerAPI::CompanyApi* | [**get_details_errors_grouped**](docs/CompanyApi.md#get_details_errors_grouped) | **GET** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details/grouped_errors | Return bulk upload details grouped by status
423
423
  *DealMakerAPI::CompanyApi* | [**get_dividends**](docs/CompanyApi.md#get_dividends) | **GET** /companies/{company_id}/portal/dividends | Return dividends
424
+ *DealMakerAPI::CompanyApi* | [**send_portal_invite**](docs/CompanyApi.md#send_portal_invite) | **POST** /companies/{id}/shareholders/{shareholder_id}/send_portal_invite | Send portal invite to shareholder
424
425
  *DealMakerAPI::CountryApi* | [**get_country_states**](docs/CountryApi.md#get_country_states) | **GET** /country/states | Returns a list of all valid countries and it states
425
426
  *DealMakerAPI::DealApi* | [**create_deal_setup**](docs/DealApi.md#create_deal_setup) | **POST** /deal_setups | Create deal setup
426
427
  *DealMakerAPI::DealApi* | [**get_deal**](docs/DealApi.md#get_deal) | **GET** /deals/{id} | Get deal by Deal ID
@@ -498,6 +499,7 @@ Class | Method | HTTP request | Description
498
499
  - [DealMakerAPI::PutDealsIdInvestors](docs/PutDealsIdInvestors.md)
499
500
  - [DealMakerAPI::PutDealsIdScriptTagEnvironmentRequest](docs/PutDealsIdScriptTagEnvironmentRequest.md)
500
501
  - [DealMakerAPI::PutWebhooksIdRequest](docs/PutWebhooksIdRequest.md)
502
+ - [DealMakerAPI::SendPortalInviteRequest](docs/SendPortalInviteRequest.md)
501
503
  - [DealMakerAPI::V1EntitiesAddress](docs/V1EntitiesAddress.md)
502
504
  - [DealMakerAPI::V1EntitiesAddresses](docs/V1EntitiesAddresses.md)
503
505
  - [DealMakerAPI::V1EntitiesAttachment](docs/V1EntitiesAttachment.md)
@@ -534,6 +536,7 @@ Class | Method | HTTP request | Description
534
536
  - [DealMakerAPI::V1EntitiesInvestorProfileFieldsPrimaryHolder](docs/V1EntitiesInvestorProfileFieldsPrimaryHolder.md)
535
537
  - [DealMakerAPI::V1EntitiesInvestorProfileFieldsSigningOfficer](docs/V1EntitiesInvestorProfileFieldsSigningOfficer.md)
536
538
  - [DealMakerAPI::V1EntitiesInvestorProfileFieldsTrust](docs/V1EntitiesInvestorProfileFieldsTrust.md)
539
+ - [DealMakerAPI::V1EntitiesInvestorProfileFieldsTrustee](docs/V1EntitiesInvestorProfileFieldsTrustee.md)
537
540
  - [DealMakerAPI::V1EntitiesInvestorProfileIndividual](docs/V1EntitiesInvestorProfileIndividual.md)
538
541
  - [DealMakerAPI::V1EntitiesInvestorProfileItem](docs/V1EntitiesInvestorProfileItem.md)
539
542
  - [DealMakerAPI::V1EntitiesInvestorProfileJoint](docs/V1EntitiesInvestorProfileJoint.md)
data/docs/CompanyApi.md CHANGED
@@ -15,6 +15,7 @@ All URIs are relative to *http://api.dealmaker.tech*
15
15
  | [**get_company**](CompanyApi.md#get_company) | **GET** /companies/{id} | Get a Company |
16
16
  | [**get_details_errors_grouped**](CompanyApi.md#get_details_errors_grouped) | **GET** /companies/{company_id}/documents/bulk_uploads/{bulk_upload_id}/details/grouped_errors | Return bulk upload details grouped by status |
17
17
  | [**get_dividends**](CompanyApi.md#get_dividends) | **GET** /companies/{company_id}/portal/dividends | Return dividends |
18
+ | [**send_portal_invite**](CompanyApi.md#send_portal_invite) | **POST** /companies/{id}/shareholders/{shareholder_id}/send_portal_invite | Send portal invite to shareholder |
18
19
 
19
20
 
20
21
  ## create_bulk_upload
@@ -780,3 +781,74 @@ No authorization required
780
781
  - **Content-Type**: Not defined
781
782
  - **Accept**: application/json
782
783
 
784
+
785
+ ## send_portal_invite
786
+
787
+ > send_portal_invite(id, shareholder_id, opts)
788
+
789
+ Send portal invite to shareholder
790
+
791
+ Send portal invite to shareholder.
792
+
793
+ ### Examples
794
+
795
+ ```ruby
796
+ require 'time'
797
+ require 'DealMakerAPI'
798
+ # setup authorization
799
+ DealMakerAPI.configure do |config|end
800
+
801
+ api_instance = DealMakerAPI::CompanyApi.new
802
+ id = 56 # Integer |
803
+ shareholder_id = 56 # Integer |
804
+ opts = {
805
+ send_portal_invite_request: DealMakerAPI::SendPortalInviteRequest.new # SendPortalInviteRequest |
806
+ }
807
+
808
+ begin
809
+ # Send portal invite to shareholder
810
+ api_instance.send_portal_invite(id, shareholder_id, opts)
811
+ rescue DealMakerAPI::ApiError => e
812
+ puts "Error when calling CompanyApi->send_portal_invite: #{e}"
813
+ end
814
+ ```
815
+
816
+ #### Using the send_portal_invite_with_http_info variant
817
+
818
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
819
+
820
+ > <Array(nil, Integer, Hash)> send_portal_invite_with_http_info(id, shareholder_id, opts)
821
+
822
+ ```ruby
823
+ begin
824
+ # Send portal invite to shareholder
825
+ data, status_code, headers = api_instance.send_portal_invite_with_http_info(id, shareholder_id, opts)
826
+ p status_code # => 2xx
827
+ p headers # => { ... }
828
+ p data # => nil
829
+ rescue DealMakerAPI::ApiError => e
830
+ puts "Error when calling CompanyApi->send_portal_invite_with_http_info: #{e}"
831
+ end
832
+ ```
833
+
834
+ ### Parameters
835
+
836
+ | Name | Type | Description | Notes |
837
+ | ---- | ---- | ----------- | ----- |
838
+ | **id** | **Integer** | | |
839
+ | **shareholder_id** | **Integer** | | |
840
+ | **send_portal_invite_request** | [**SendPortalInviteRequest**](SendPortalInviteRequest.md) | | [optional] |
841
+
842
+ ### Return type
843
+
844
+ nil (empty response body)
845
+
846
+ ### Authorization
847
+
848
+ No authorization required
849
+
850
+ ### HTTP request headers
851
+
852
+ - **Content-Type**: application/json
853
+ - **Accept**: Not defined
854
+
@@ -16,6 +16,7 @@
16
16
  | **postal_code** | **String** | The list of postal codes or zipcodes for the trustees (required for trustee 1). | [optional] |
17
17
  | **date_of_birth** | **String** | The list of dates of birth for the trustees (required for trustee 1). | [optional] |
18
18
  | **taxpayer_id** | **String** | The list of taxpayer identification numbers for the trustees (required for trustee 1). | [optional] |
19
+ | **phone_number** | **String** | The list of phone numbers for the trustees (required for trustee 1). | [optional] |
19
20
 
20
21
  ## Example
21
22
 
@@ -34,7 +35,8 @@ instance = DealMakerAPI::PatchInvestorProfilesTrustsTrusteesInner.new(
34
35
  region: null,
35
36
  postal_code: null,
36
37
  date_of_birth: null,
37
- taxpayer_id: null
38
+ taxpayer_id: null,
39
+ phone_number: null
38
40
  )
39
41
  ```
40
42
 
@@ -14,6 +14,7 @@
14
14
  | **postal_code** | **String** | The list of postal codes or zipcodes for the trustees (required for trustee 1). | [optional] |
15
15
  | **date_of_birth** | **String** | The list of dates of birth for the trustees (required for trustee 1). | [optional] |
16
16
  | **taxpayer_id** | **String** | The list of taxpayer identification numbers for the trustees (required for trustee 1). | [optional] |
17
+ | **phone_number** | **String** | The list of phone numbers for the trustees (required for trustee 1). | [optional] |
17
18
 
18
19
  ## Example
19
20
 
@@ -30,7 +31,8 @@ instance = DealMakerAPI::PostInvestorProfilesTrustsTrusteesInner.new(
30
31
  region: null,
31
32
  postal_code: null,
32
33
  date_of_birth: null,
33
- taxpayer_id: null
34
+ taxpayer_id: null,
35
+ phone_number: null
34
36
  )
35
37
  ```
36
38
 
@@ -0,0 +1,20 @@
1
+ # DealMakerAPI::SendPortalInviteRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **subject** | **String** | The custom subject of the invite email | [optional] |
8
+ | **email_content** | **String** | The custom email content of the invite email | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'DealMakerAPI'
14
+
15
+ instance = DealMakerAPI::SendPortalInviteRequest.new(
16
+ subject: null,
17
+ email_content: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,30 @@
1
+ # DealMakerAPI::V1EntitiesInvestorProfileFieldsTrustee
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **first_name** | **String** | Investor profile first name | [optional] |
8
+ | **last_name** | **String** | Investor profile last name | [optional] |
9
+ | **suffix** | **String** | Investor profile suffix | [optional] |
10
+ | **date_of_birth** | **String** | The date of birth | [optional] |
11
+ | **taxpayer_id** | **String** | The taxpayer identification number | [optional] |
12
+ | **address** | [**V1EntitiesInvestorProfileAddress**](V1EntitiesInvestorProfileAddress.md) | | [optional] |
13
+ | **phone_number** | **String** | Trustee phone number | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'DealMakerAPI'
19
+
20
+ instance = DealMakerAPI::V1EntitiesInvestorProfileFieldsTrustee.new(
21
+ first_name: null,
22
+ last_name: null,
23
+ suffix: null,
24
+ date_of_birth: null,
25
+ taxpayer_id: null,
26
+ address: null,
27
+ phone_number: null
28
+ )
29
+ ```
30
+
@@ -14,7 +14,7 @@
14
14
  | **owner_type** | **String** | Type of the investor profile owner | [optional] |
15
15
  | **owner** | [**V1EntitiesInvestorProfileOwner**](V1EntitiesInvestorProfileOwner.md) | | [optional] |
16
16
  | **trust_holder** | [**V1EntitiesInvestorProfileFieldsTrust**](V1EntitiesInvestorProfileFieldsTrust.md) | | [optional] |
17
- | **trustees** | [**V1EntitiesInvestorProfileFieldsAccountHolder**](V1EntitiesInvestorProfileFieldsAccountHolder.md) | | [optional] |
17
+ | **trustees** | [**V1EntitiesInvestorProfileFieldsTrustee**](V1EntitiesInvestorProfileFieldsTrustee.md) | | [optional] |
18
18
 
19
19
  ## Example
20
20
 
@@ -800,5 +800,79 @@ module DealMakerAPI
800
800
  end
801
801
  return data, status_code, headers
802
802
  end
803
+
804
+ # Send portal invite to shareholder
805
+ # Send portal invite to shareholder.
806
+ # @param id [Integer]
807
+ # @param shareholder_id [Integer]
808
+ # @param [Hash] opts the optional parameters
809
+ # @option opts [SendPortalInviteRequest] :send_portal_invite_request
810
+ # @return [nil]
811
+ def send_portal_invite(id, shareholder_id, opts = {})
812
+ send_portal_invite_with_http_info(id, shareholder_id, opts)
813
+ nil
814
+ end
815
+
816
+ # Send portal invite to shareholder
817
+ # Send portal invite to shareholder.
818
+ # @param id [Integer]
819
+ # @param shareholder_id [Integer]
820
+ # @param [Hash] opts the optional parameters
821
+ # @option opts [SendPortalInviteRequest] :send_portal_invite_request
822
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
823
+ def send_portal_invite_with_http_info(id, shareholder_id, opts = {})
824
+ if @api_client.config.debugging
825
+ @api_client.config.logger.debug 'Calling API: CompanyApi.send_portal_invite ...'
826
+ end
827
+ # verify the required parameter 'id' is set
828
+ if @api_client.config.client_side_validation && id.nil?
829
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompanyApi.send_portal_invite"
830
+ end
831
+ # verify the required parameter 'shareholder_id' is set
832
+ if @api_client.config.client_side_validation && shareholder_id.nil?
833
+ fail ArgumentError, "Missing the required parameter 'shareholder_id' when calling CompanyApi.send_portal_invite"
834
+ end
835
+ # resource path
836
+ local_var_path = '/companies/{id}/shareholders/{shareholder_id}/send_portal_invite'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'shareholder_id' + '}', CGI.escape(shareholder_id.to_s))
837
+
838
+ # query parameters
839
+ query_params = opts[:query_params] || {}
840
+
841
+ # header parameters
842
+ header_params = opts[:header_params] || {}
843
+ # HTTP header 'Content-Type'
844
+ content_type = @api_client.select_header_content_type(['application/json'])
845
+ if !content_type.nil?
846
+ header_params['Content-Type'] = content_type
847
+ end
848
+
849
+ # form parameters
850
+ form_params = opts[:form_params] || {}
851
+
852
+ # http body (model)
853
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'send_portal_invite_request'])
854
+
855
+ # return_type
856
+ return_type = opts[:debug_return_type]
857
+
858
+ # auth_names
859
+ auth_names = opts[:debug_auth_names] || []
860
+
861
+ new_options = opts.merge(
862
+ :operation => :"CompanyApi.send_portal_invite",
863
+ :header_params => header_params,
864
+ :query_params => query_params,
865
+ :form_params => form_params,
866
+ :body => post_body,
867
+ :auth_names => auth_names,
868
+ :return_type => return_type
869
+ )
870
+
871
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
872
+ if @api_client.config.debugging
873
+ @api_client.config.logger.debug "API called: CompanyApi#send_portal_invite\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
874
+ end
875
+ return data, status_code, headers
876
+ end
803
877
  end
804
878
  end
@@ -46,9 +46,10 @@ module DealMakerAPI
46
46
  # Call an API with given options.
47
47
  #
48
48
  # @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
49
- # the data deserialized from response body (could be nil), response status code and response headers.
49
+ # the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
50
50
  def call_api(http_method, path, opts = {})
51
51
  request = build_request(http_method, path, opts)
52
+ tempfile = download_file(request) if opts[:return_type] == 'File'
52
53
  response = request.run
53
54
 
54
55
  if @config.debugging
@@ -70,7 +71,9 @@ module DealMakerAPI
70
71
  end
71
72
  end
72
73
 
73
- if opts[:return_type]
74
+ if opts[:return_type] == 'File'
75
+ data = tempfile
76
+ elsif opts[:return_type]
74
77
  data = deserialize(response, opts[:return_type])
75
78
  else
76
79
  data = nil
@@ -125,9 +128,7 @@ module DealMakerAPI
125
128
  end
126
129
  end
127
130
 
128
- request = Typhoeus::Request.new(url, req_opts)
129
- download_file(request) if opts[:return_type] == 'File'
130
- request
131
+ Typhoeus::Request.new(url, req_opts)
131
132
  end
132
133
 
133
134
  # Builds the HTTP request body
@@ -165,6 +166,8 @@ module DealMakerAPI
165
166
  # process can use.
166
167
  #
167
168
  # @see Configuration#temp_folder_path
169
+ #
170
+ # @return [Tempfile] the tempfile generated
168
171
  def download_file(request)
169
172
  tempfile = nil
170
173
  encoding = nil
@@ -179,7 +182,6 @@ module DealMakerAPI
179
182
  prefix = prefix + '-' unless prefix.end_with?('-')
180
183
  encoding = response.body.encoding
181
184
  tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
182
- @tempfile = tempfile
183
185
  end
184
186
  request.on_body do |chunk|
185
187
  chunk.force_encoding(encoding)
@@ -194,6 +196,8 @@ module DealMakerAPI
194
196
  "explicitly with `tempfile.delete`"
195
197
  end
196
198
  end
199
+
200
+ tempfile
197
201
  end
198
202
 
199
203
  # Check if the given MIME is a JSON MIME.
@@ -214,11 +218,6 @@ module DealMakerAPI
214
218
  # @param [String] return_type some examples: "User", "Array<User>", "Hash<String, Integer>"
215
219
  def deserialize(response, return_type)
216
220
  body = response.body
217
-
218
- # handle file downloading - return the File instance processed in request callbacks
219
- # note that response body is empty when the file is written in chunks in request on_body callback
220
- return @tempfile if return_type == 'File'
221
-
222
221
  return nil if body.nil? || body.empty?
223
222
 
224
223
  # return response body directly for String return type
@@ -51,6 +51,9 @@ module DealMakerAPI
51
51
  # The list of taxpayer identification numbers for the trustees (required for trustee 1).
52
52
  attr_accessor :taxpayer_id
53
53
 
54
+ # The list of phone numbers for the trustees (required for trustee 1).
55
+ attr_accessor :phone_number
56
+
54
57
  # Attribute mapping from ruby-style variable name to JSON key.
55
58
  def self.attribute_map
56
59
  {
@@ -65,7 +68,8 @@ module DealMakerAPI
65
68
  :'region' => :'region',
66
69
  :'postal_code' => :'postal_code',
67
70
  :'date_of_birth' => :'date_of_birth',
68
- :'taxpayer_id' => :'taxpayer_id'
71
+ :'taxpayer_id' => :'taxpayer_id',
72
+ :'phone_number' => :'phone_number'
69
73
  }
70
74
  end
71
75
 
@@ -88,7 +92,8 @@ module DealMakerAPI
88
92
  :'region' => :'String',
89
93
  :'postal_code' => :'String',
90
94
  :'date_of_birth' => :'String',
91
- :'taxpayer_id' => :'String'
95
+ :'taxpayer_id' => :'String',
96
+ :'phone_number' => :'String'
92
97
  }
93
98
  end
94
99
 
@@ -162,6 +167,10 @@ module DealMakerAPI
162
167
  if attributes.key?(:'taxpayer_id')
163
168
  self.taxpayer_id = attributes[:'taxpayer_id']
164
169
  end
170
+
171
+ if attributes.key?(:'phone_number')
172
+ self.phone_number = attributes[:'phone_number']
173
+ end
165
174
  end
166
175
 
167
176
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -200,7 +209,8 @@ module DealMakerAPI
200
209
  region == o.region &&
201
210
  postal_code == o.postal_code &&
202
211
  date_of_birth == o.date_of_birth &&
203
- taxpayer_id == o.taxpayer_id
212
+ taxpayer_id == o.taxpayer_id &&
213
+ phone_number == o.phone_number
204
214
  end
205
215
 
206
216
  # @see the `==` method
@@ -212,7 +222,7 @@ module DealMakerAPI
212
222
  # Calculates hash code according to all attributes.
213
223
  # @return [Integer] Hash code
214
224
  def hash
215
- [index, _delete, first_name, last_name, suffix, street_address, unit2, city, region, postal_code, date_of_birth, taxpayer_id].hash
225
+ [index, _delete, first_name, last_name, suffix, street_address, unit2, city, region, postal_code, date_of_birth, taxpayer_id, phone_number].hash
216
226
  end
217
227
 
218
228
  # Builds the object from hash
@@ -45,6 +45,9 @@ module DealMakerAPI
45
45
  # The list of taxpayer identification numbers for the trustees (required for trustee 1).
46
46
  attr_accessor :taxpayer_id
47
47
 
48
+ # The list of phone numbers for the trustees (required for trustee 1).
49
+ attr_accessor :phone_number
50
+
48
51
  # Attribute mapping from ruby-style variable name to JSON key.
49
52
  def self.attribute_map
50
53
  {
@@ -57,7 +60,8 @@ module DealMakerAPI
57
60
  :'region' => :'region',
58
61
  :'postal_code' => :'postal_code',
59
62
  :'date_of_birth' => :'date_of_birth',
60
- :'taxpayer_id' => :'taxpayer_id'
63
+ :'taxpayer_id' => :'taxpayer_id',
64
+ :'phone_number' => :'phone_number'
61
65
  }
62
66
  end
63
67
 
@@ -78,7 +82,8 @@ module DealMakerAPI
78
82
  :'region' => :'String',
79
83
  :'postal_code' => :'String',
80
84
  :'date_of_birth' => :'String',
81
- :'taxpayer_id' => :'String'
85
+ :'taxpayer_id' => :'String',
86
+ :'phone_number' => :'String'
82
87
  }
83
88
  end
84
89
 
@@ -142,6 +147,10 @@ module DealMakerAPI
142
147
  if attributes.key?(:'taxpayer_id')
143
148
  self.taxpayer_id = attributes[:'taxpayer_id']
144
149
  end
150
+
151
+ if attributes.key?(:'phone_number')
152
+ self.phone_number = attributes[:'phone_number']
153
+ end
145
154
  end
146
155
 
147
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -173,7 +182,8 @@ module DealMakerAPI
173
182
  region == o.region &&
174
183
  postal_code == o.postal_code &&
175
184
  date_of_birth == o.date_of_birth &&
176
- taxpayer_id == o.taxpayer_id
185
+ taxpayer_id == o.taxpayer_id &&
186
+ phone_number == o.phone_number
177
187
  end
178
188
 
179
189
  # @see the `==` method
@@ -185,7 +195,7 @@ module DealMakerAPI
185
195
  # Calculates hash code according to all attributes.
186
196
  # @return [Integer] Hash code
187
197
  def hash
188
- [first_name, last_name, suffix, street_address, unit2, city, region, postal_code, date_of_birth, taxpayer_id].hash
198
+ [first_name, last_name, suffix, street_address, unit2, city, region, postal_code, date_of_birth, taxpayer_id, phone_number].hash
189
199
  end
190
200
 
191
201
  # Builds the object from hash