Class: Buildium::LeasesApi
- Inherits:
-
Object
- Object
- Buildium::LeasesApi
- Defined in:
- lib/buildium-ruby/api/leases_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_lease(lease_post_message, opts = {}) ⇒ LeaseMessage
Create a lease Creates a signed lease.
-
#create_lease_note(lease_id, note_post_message, opts = {}) ⇒ NoteMessage
Create a note Creates a lease note.
-
#create_lease_note_with_http_info(lease_id, note_post_message, opts = {}) ⇒ Array<(NoteMessage, Integer, Hash)>
Create a note Creates a lease note.
-
#create_lease_renewal(lease_id, lease_renewal_post_message, opts = {}) ⇒ LeaseRenewalMessage
Create a lease renewal Creates a lease renewal.
-
#create_lease_renewal_with_http_info(lease_id, lease_renewal_post_message, opts = {}) ⇒ Array<(LeaseRenewalMessage, Integer, Hash)>
Create a lease renewal Creates a lease renewal.
-
#create_lease_with_http_info(lease_post_message, opts = {}) ⇒ Array<(LeaseMessage, Integer, Hash)>
Create a lease Creates a signed lease.
-
#create_move_out_data(lease_id, lease_move_out_data_post_message, opts = {}) ⇒ LeaseMoveOutDataMessage
Create a move out Creates move out data for a single tenant on a given lease.
-
#create_move_out_data_with_http_info(lease_id, lease_move_out_data_post_message, opts = {}) ⇒ Array<(LeaseMoveOutDataMessage, Integer, Hash)>
Create a move out Creates move out data for a single tenant on a given lease.
-
#get_all_lease_renewals(lease_id, opts = {}) ⇒ Array<LeaseRenewalMessage>
Retrieve all renewals Retrieves all renewals for a specific a lease.
-
#get_all_lease_renewals_for_all_properties(esignaturestatuses, opts = {}) ⇒ Array<LeaseRenewalMessage>
Retrieve all upcoming renewals Retrieves all upcoming lease renewals across all rental properties.
-
#get_all_lease_renewals_for_all_properties_with_http_info(esignaturestatuses, opts = {}) ⇒ Array<(Array<LeaseRenewalMessage>, Integer, Hash)>
Retrieve all upcoming renewals Retrieves all upcoming lease renewals across all rental properties.
-
#get_all_lease_renewals_with_http_info(lease_id, opts = {}) ⇒ Array<(Array<LeaseRenewalMessage>, Integer, Hash)>
Retrieve all renewals Retrieves all renewals for a specific a lease.
-
#get_lease_by_id(lease_id, opts = {}) ⇒ LeaseMessage
Retrieve a lease Retrieves a specific lease.
-
#get_lease_by_id_with_http_info(lease_id, opts = {}) ⇒ Array<(LeaseMessage, Integer, Hash)>
Retrieve a lease Retrieves a specific lease.
-
#get_lease_epay_settings_by_id(lease_id, opts = {}) ⇒ EPaySettingsMessage
Retrieve ePay settings Retrieves ePay settings for a lease.
-
#get_lease_epay_settings_by_id_with_http_info(lease_id, opts = {}) ⇒ Array<(EPaySettingsMessage, Integer, Hash)>
Retrieve ePay settings Retrieves ePay settings for a lease.
-
#get_lease_move_out_data_by_tenant_id(lease_id, tenant_id, opts = {}) ⇒ LeaseMoveOutDataMessage
Retrieve a move out Retrieves move out data for a single tenant on a given lease.
-
#get_lease_move_out_data_by_tenant_id_with_http_info(lease_id, tenant_id, opts = {}) ⇒ Array<(LeaseMoveOutDataMessage, Integer, Hash)>
Retrieve a move out Retrieves move out data for a single tenant on a given lease.
-
#get_lease_move_out_information_by_id(lease_id, opts = {}) ⇒ Array<LeaseMoveOutDataMessage>
Retrieve all move outs Retrieves a list of move out dates for a given lease.
-
#get_lease_move_out_information_by_id_with_http_info(lease_id, opts = {}) ⇒ Array<(Array<LeaseMoveOutDataMessage>, Integer, Hash)>
Retrieve all move outs Retrieves a list of move out dates for a given lease.
-
#get_lease_note_by_note_id(lease_id, note_id, opts = {}) ⇒ NoteMessage
Retrieve a note Retrieves a lease note.
-
#get_lease_note_by_note_id_with_http_info(lease_id, note_id, opts = {}) ⇒ Array<(NoteMessage, Integer, Hash)>
Retrieve a note Retrieves a lease note.
-
#get_lease_notes(lease_id, opts = {}) ⇒ Array<NoteMessage>
Retrieve all notes Retrieves all lease notes.
-
#get_lease_notes_with_http_info(lease_id, opts = {}) ⇒ Array<(Array<NoteMessage>, Integer, Hash)>
Retrieve all notes Retrieves all lease notes.
-
#get_lease_renewal_by_id(lease_id, renewal_id, opts = {}) ⇒ LeaseRenewalMessage
Retrieve a renewal Retrieves a specific renewal for a given lease.
-
#get_lease_renewal_by_id_with_http_info(lease_id, renewal_id, opts = {}) ⇒ Array<(LeaseRenewalMessage, Integer, Hash)>
Retrieve a renewal Retrieves a specific renewal for a given lease.
-
#get_leases(opts = {}) ⇒ Array<LeaseMessage>
Retrieve all leases Retrieves a list of leases.
-
#get_leases_with_http_info(opts = {}) ⇒ Array<(Array<LeaseMessage>, Integer, Hash)>
Retrieve all leases Retrieves a list of leases.
-
#get_rent(lease_id, opts = {}) ⇒ Array<LeaseRentMessage>
Retrieve all rent schedules The rent schedule provides details (dollar amount, day of the month, etc) of the recurring charges that are applied to the lease ledger each rent cycle.
-
#get_rent_by_id(lease_id, rent_id, opts = {}) ⇒ LeaseRentMessage
Retrieve a rent schedule Retrieves a specific rent schedule for a lease.
-
#get_rent_by_id_with_http_info(lease_id, rent_id, opts = {}) ⇒ Array<(LeaseRentMessage, Integer, Hash)>
Retrieve a rent schedule Retrieves a specific rent schedule for a lease.
-
#get_rent_with_http_info(lease_id, opts = {}) ⇒ Array<(Array<LeaseRentMessage>, Integer, Hash)>
Retrieve all rent schedules The rent schedule provides details (dollar amount, day of the month, etc) of the recurring charges that are applied to the lease ledger each rent cycle.
-
#get_renters_insurance_policies(lease_id, opts = {}) ⇒ Array<RentersInsurancePolicyMessage>
Retrieve all insurance policies Retrieves all renters insurance policies for a lease.
-
#get_renters_insurance_policies_with_http_info(lease_id, opts = {}) ⇒ Array<(Array<RentersInsurancePolicyMessage>, Integer, Hash)>
Retrieve all insurance policies Retrieves all renters insurance policies for a lease.
-
#get_renters_insurance_policy_by_id(lease_id, policy_id, opts = {}) ⇒ RentersInsurancePolicyMessage
Retrieve an insurance policy Retrieves a renters insurance policy.
-
#get_renters_insurance_policy_by_id_with_http_info(lease_id, policy_id, opts = {}) ⇒ Array<(RentersInsurancePolicyMessage, Integer, Hash)>
Retrieve an insurance policy Retrieves a renters insurance policy.
-
#initialize(api_client = ApiClient.default) ⇒ LeasesApi
constructor
A new instance of LeasesApi.
-
#undo_tenant_moveout(lease_id, tenant_id, opts = {}) ⇒ nil
Delete a move out Deletes move out data for a tenant on a given lease.
-
#undo_tenant_moveout_with_http_info(lease_id, tenant_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete a move out Deletes move out data for a tenant on a given lease.
-
#update_lease(lease_id, lease_put_message, opts = {}) ⇒ LeaseMessage
Update a lease Update a signed lease.
-
#update_lease_epay_settings(lease_id, e_pay_settings_put_message, opts = {}) ⇒ EPaySettingsMessage
Update ePay settings Updates ePay settings for a lease <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View` `Edit`.
-
#update_lease_epay_settings_with_http_info(lease_id, e_pay_settings_put_message, opts = {}) ⇒ Array<(EPaySettingsMessage, Integer, Hash)>
Update ePay settings Updates ePay settings for a lease <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View` `Edit`.
-
#update_lease_note(lease_id, note_id, note_put_message, opts = {}) ⇒ NoteMessage
Update a note Updates a lease note.
-
#update_lease_note_with_http_info(lease_id, note_id, note_put_message, opts = {}) ⇒ Array<(NoteMessage, Integer, Hash)>
Update a note Updates a lease note.
-
#update_lease_with_http_info(lease_id, lease_put_message, opts = {}) ⇒ Array<(LeaseMessage, Integer, Hash)>
Update a lease Update a signed lease.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_lease(lease_post_message, opts = {}) ⇒ LeaseMessage
Create a lease Creates a signed lease. <br /><br /><span class="permissionBlock">Rentals > Leases</span> - ‘View` `Edit` <br /><span class="permissionBlock">Rentals > Tenants</span> - `View` `Edit` <br /><span class="permissionBlock">Rentals > Lease transactions</span> - `View` `Edit` <br /><h4>Optional Permissions:</h4><br /><span class="permissionBlock">Rentals > Applicants</span> - `View` In order to add tenants to the lease using the ApplicantIds property, you must have this permission.
27 28 29 30 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 27 def create_lease(, opts = {}) data, _status_code, _headers = create_lease_with_http_info(, opts) data end |
#create_lease_note(lease_id, note_post_message, opts = {}) ⇒ NoteMessage
Create a note Creates a lease note. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View` `Edit`
96 97 98 99 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 96 def create_lease_note(lease_id, , opts = {}) data, _status_code, _headers = create_lease_note_with_http_info(lease_id, , opts) data end |
#create_lease_note_with_http_info(lease_id, note_post_message, opts = {}) ⇒ Array<(NoteMessage, Integer, Hash)>
Create a note Creates a lease note. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View` `Edit`
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 107 def create_lease_note_with_http_info(lease_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_note ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_note" end # verify the required parameter 'note_post_message' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'note_post_message' when calling LeasesApi.create_lease_note" end # resource path local_var_path = '/v1/leases/{leaseId}/notes'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body() # return_type return_type = opts[:debug_return_type] || 'NoteMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.create_lease_note", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#create_lease_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_lease_renewal(lease_id, lease_renewal_post_message, opts = {}) ⇒ LeaseRenewalMessage
Create a lease renewal Creates a lease renewal. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View` `Edit`
170 171 172 173 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 170 def create_lease_renewal(lease_id, , opts = {}) data, _status_code, _headers = create_lease_renewal_with_http_info(lease_id, , opts) data end |
#create_lease_renewal_with_http_info(lease_id, lease_renewal_post_message, opts = {}) ⇒ Array<(LeaseRenewalMessage, Integer, Hash)>
Create a lease renewal Creates a lease renewal. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View` `Edit`
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 181 def create_lease_renewal_with_http_info(lease_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.create_lease_renewal ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_lease_renewal" end # verify the required parameter 'lease_renewal_post_message' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'lease_renewal_post_message' when calling LeasesApi.create_lease_renewal" end # resource path local_var_path = '/v1/leases/{leaseId}/renewals'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body() # return_type return_type = opts[:debug_return_type] || 'LeaseRenewalMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.create_lease_renewal", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#create_lease_renewal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_lease_with_http_info(lease_post_message, opts = {}) ⇒ Array<(LeaseMessage, Integer, Hash)>
Create a lease Creates a signed lease. <br /><br /><span class="permissionBlock">Rentals &gt; Leases</span> - `View` `Edit` <br /><span class="permissionBlock">Rentals &gt; Tenants</span> - `View` `Edit` <br /><span class="permissionBlock">Rentals &gt; Lease transactions</span> - `View` `Edit` <br /><h4>Optional Permissions:</h4><br /><span class="permissionBlock">Rentals &gt; Applicants</span> - `View` In order to add tenants to the lease using the ApplicantIds property, you must have this permission.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 37 def create_lease_with_http_info(, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.create_lease ...' end # verify the required parameter 'lease_post_message' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'lease_post_message' when calling LeasesApi.create_lease" end # resource path local_var_path = '/v1/leases' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body() # return_type return_type = opts[:debug_return_type] || 'LeaseMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.create_lease", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#create_lease\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_move_out_data(lease_id, lease_move_out_data_post_message, opts = {}) ⇒ LeaseMoveOutDataMessage
Create a move out Creates move out data for a single tenant on a given lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View` `Edit` <br /><span class="permissionBlock">Rentals > Tenants</span> - `View` `Edit`
244 245 246 247 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 244 def create_move_out_data(lease_id, , opts = {}) data, _status_code, _headers = create_move_out_data_with_http_info(lease_id, , opts) data end |
#create_move_out_data_with_http_info(lease_id, lease_move_out_data_post_message, opts = {}) ⇒ Array<(LeaseMoveOutDataMessage, Integer, Hash)>
Create a move out Creates move out data for a single tenant on a given lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View` `Edit` <br /><span class="permissionBlock">Rentals &gt; Tenants</span> - `View` `Edit`
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 255 def create_move_out_data_with_http_info(lease_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.create_move_out_data ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.create_move_out_data" end # verify the required parameter 'lease_move_out_data_post_message' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'lease_move_out_data_post_message' when calling LeasesApi.create_move_out_data" end # resource path local_var_path = '/v1/leases/{leaseId}/moveouts'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body() # return_type return_type = opts[:debug_return_type] || 'LeaseMoveOutDataMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.create_move_out_data", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#create_move_out_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_all_lease_renewals(lease_id, opts = {}) ⇒ Array<LeaseRenewalMessage>
Retrieve all renewals Retrieves all renewals for a specific a lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View`
320 321 322 323 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 320 def get_all_lease_renewals(lease_id, opts = {}) data, _status_code, _headers = get_all_lease_renewals_with_http_info(lease_id, opts) data end |
#get_all_lease_renewals_for_all_properties(esignaturestatuses, opts = {}) ⇒ Array<LeaseRenewalMessage>
Retrieve all upcoming renewals Retrieves all upcoming lease renewals across all rental properties. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View`
394 395 396 397 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 394 def get_all_lease_renewals_for_all_properties(esignaturestatuses, opts = {}) data, _status_code, _headers = get_all_lease_renewals_for_all_properties_with_http_info(esignaturestatuses, opts) data end |
#get_all_lease_renewals_for_all_properties_with_http_info(esignaturestatuses, opts = {}) ⇒ Array<(Array<LeaseRenewalMessage>, Integer, Hash)>
Retrieve all upcoming renewals Retrieves all upcoming lease renewals across all rental properties. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View`
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 409 def get_all_lease_renewals_for_all_properties_with_http_info(esignaturestatuses, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_all_lease_renewals_for_all_properties ...' end # verify the required parameter 'esignaturestatuses' is set if @api_client.config.client_side_validation && esignaturestatuses.nil? fail ArgumentError, "Missing the required parameter 'esignaturestatuses' when calling LeasesApi.get_all_lease_renewals_for_all_properties" end # resource path local_var_path = '/v1/leases/renewals' # query parameters query_params = opts[:query_params] || {} query_params[:'esignaturestatuses'] = @api_client.build_collection_param(esignaturestatuses, :multi) query_params[:'propertyids'] = @api_client.build_collection_param(opts[:'propertyids'], :multi) if !opts[:'propertyids'].nil? query_params[:'rentalownerids'] = @api_client.build_collection_param(opts[:'rentalownerids'], :multi) if !opts[:'rentalownerids'].nil? query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<LeaseRenewalMessage>' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_all_lease_renewals_for_all_properties", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_all_lease_renewals_for_all_properties\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_all_lease_renewals_with_http_info(lease_id, opts = {}) ⇒ Array<(Array<LeaseRenewalMessage>, Integer, Hash)>
Retrieve all renewals Retrieves all renewals for a specific a lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View`
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 333 def get_all_lease_renewals_with_http_info(lease_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_all_lease_renewals ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_all_lease_renewals" end # resource path local_var_path = '/v1/leases/{leaseId}/renewals'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<LeaseRenewalMessage>' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_all_lease_renewals", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_all_lease_renewals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_lease_by_id(lease_id, opts = {}) ⇒ LeaseMessage
Retrieve a lease Retrieves a specific lease. <br /><br /><span class="permissionBlock">Rentals > Leases</span> - ‘View`
468 469 470 471 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 468 def get_lease_by_id(lease_id, opts = {}) data, _status_code, _headers = get_lease_by_id_with_http_info(lease_id, opts) data end |
#get_lease_by_id_with_http_info(lease_id, opts = {}) ⇒ Array<(LeaseMessage, Integer, Hash)>
Retrieve a lease Retrieves a specific lease. <br /><br /><span class="permissionBlock">Rentals &gt; Leases</span> - `View`
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 478 def get_lease_by_id_with_http_info(lease_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_by_id ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_by_id" end # resource path local_var_path = '/v1/leases/{leaseId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'LeaseMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_lease_by_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_lease_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_lease_epay_settings_by_id(lease_id, opts = {}) ⇒ EPaySettingsMessage
Retrieve ePay settings Retrieves ePay settings for a lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View`
531 532 533 534 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 531 def get_lease_epay_settings_by_id(lease_id, opts = {}) data, _status_code, _headers = get_lease_epay_settings_by_id_with_http_info(lease_id, opts) data end |
#get_lease_epay_settings_by_id_with_http_info(lease_id, opts = {}) ⇒ Array<(EPaySettingsMessage, Integer, Hash)>
Retrieve ePay settings Retrieves ePay settings for a lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View`
541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 541 def get_lease_epay_settings_by_id_with_http_info(lease_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_epay_settings_by_id ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_epay_settings_by_id" end # resource path local_var_path = '/v1/leases/{leaseId}/epaysettings'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'EPaySettingsMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_lease_epay_settings_by_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_lease_epay_settings_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_lease_move_out_data_by_tenant_id(lease_id, tenant_id, opts = {}) ⇒ LeaseMoveOutDataMessage
Retrieve a move out Retrieves move out data for a single tenant on a given lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View` <br /><span class="permissionBlock">Rentals > Tenants</span> - `View`
595 596 597 598 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 595 def get_lease_move_out_data_by_tenant_id(lease_id, tenant_id, opts = {}) data, _status_code, _headers = get_lease_move_out_data_by_tenant_id_with_http_info(lease_id, tenant_id, opts) data end |
#get_lease_move_out_data_by_tenant_id_with_http_info(lease_id, tenant_id, opts = {}) ⇒ Array<(LeaseMoveOutDataMessage, Integer, Hash)>
Retrieve a move out Retrieves move out data for a single tenant on a given lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View` <br /><span class="permissionBlock">Rentals &gt; Tenants</span> - `View`
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 606 def get_lease_move_out_data_by_tenant_id_with_http_info(lease_id, tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_move_out_data_by_tenant_id ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_move_out_data_by_tenant_id" end # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling LeasesApi.get_lease_move_out_data_by_tenant_id" end # resource path local_var_path = '/v1/leases/{leaseId}/moveouts/{tenantId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'LeaseMoveOutDataMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_lease_move_out_data_by_tenant_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_lease_move_out_data_by_tenant_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_lease_move_out_information_by_id(lease_id, opts = {}) ⇒ Array<LeaseMoveOutDataMessage>
Retrieve all move outs Retrieves a list of move out dates for a given lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View` <br /><span class="permissionBlock">Rentals > Tenants</span> - `View`
666 667 668 669 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 666 def get_lease_move_out_information_by_id(lease_id, opts = {}) data, _status_code, _headers = get_lease_move_out_information_by_id_with_http_info(lease_id, opts) data end |
#get_lease_move_out_information_by_id_with_http_info(lease_id, opts = {}) ⇒ Array<(Array<LeaseMoveOutDataMessage>, Integer, Hash)>
Retrieve all move outs Retrieves a list of move out dates for a given lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View` <br /><span class="permissionBlock">Rentals &gt; Tenants</span> - `View`
679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 679 def get_lease_move_out_information_by_id_with_http_info(lease_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_move_out_information_by_id ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_move_out_information_by_id" end # resource path local_var_path = '/v1/leases/{leaseId}/moveouts'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<LeaseMoveOutDataMessage>' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_lease_move_out_information_by_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_lease_move_out_information_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_lease_note_by_note_id(lease_id, note_id, opts = {}) ⇒ NoteMessage
Retrieve a note Retrieves a lease note. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View`
736 737 738 739 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 736 def get_lease_note_by_note_id(lease_id, note_id, opts = {}) data, _status_code, _headers = get_lease_note_by_note_id_with_http_info(lease_id, note_id, opts) data end |
#get_lease_note_by_note_id_with_http_info(lease_id, note_id, opts = {}) ⇒ Array<(NoteMessage, Integer, Hash)>
Retrieve a note Retrieves a lease note. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View`
747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 747 def get_lease_note_by_note_id_with_http_info(lease_id, note_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_note_by_note_id ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_note_by_note_id" end # verify the required parameter 'note_id' is set if @api_client.config.client_side_validation && note_id.nil? fail ArgumentError, "Missing the required parameter 'note_id' when calling LeasesApi.get_lease_note_by_note_id" end # resource path local_var_path = '/v1/leases/{leaseId}/notes/{noteId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'noteId' + '}', CGI.escape(note_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'NoteMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_lease_note_by_note_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_lease_note_by_note_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_lease_notes(lease_id, opts = {}) ⇒ Array<NoteMessage>
Retrieve all notes Retrieves all lease notes. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View`
810 811 812 813 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 810 def get_lease_notes(lease_id, opts = {}) data, _status_code, _headers = get_lease_notes_with_http_info(lease_id, opts) data end |
#get_lease_notes_with_http_info(lease_id, opts = {}) ⇒ Array<(Array<NoteMessage>, Integer, Hash)>
Retrieve all notes Retrieves all lease notes. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View`
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 826 def get_lease_notes_with_http_info(lease_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_notes ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_notes" end # resource path local_var_path = '/v1/leases/{leaseId}/notes'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'updateddatetimefrom'] = opts[:'updateddatetimefrom'] if !opts[:'updateddatetimefrom'].nil? query_params[:'updateddatetimeto'] = opts[:'updateddatetimeto'] if !opts[:'updateddatetimeto'].nil? query_params[:'lastupdatedbyuserid'] = opts[:'lastupdatedbyuserid'] if !opts[:'lastupdatedbyuserid'].nil? query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<NoteMessage>' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_lease_notes", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_lease_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_lease_renewal_by_id(lease_id, renewal_id, opts = {}) ⇒ LeaseRenewalMessage
Retrieve a renewal Retrieves a specific renewal for a given lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View`
886 887 888 889 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 886 def get_lease_renewal_by_id(lease_id, renewal_id, opts = {}) data, _status_code, _headers = get_lease_renewal_by_id_with_http_info(lease_id, renewal_id, opts) data end |
#get_lease_renewal_by_id_with_http_info(lease_id, renewal_id, opts = {}) ⇒ Array<(LeaseRenewalMessage, Integer, Hash)>
Retrieve a renewal Retrieves a specific renewal for a given lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View`
897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 897 def get_lease_renewal_by_id_with_http_info(lease_id, renewal_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_lease_renewal_by_id ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_lease_renewal_by_id" end # verify the required parameter 'renewal_id' is set if @api_client.config.client_side_validation && renewal_id.nil? fail ArgumentError, "Missing the required parameter 'renewal_id' when calling LeasesApi.get_lease_renewal_by_id" end # resource path local_var_path = '/v1/leases/{leaseId}/renewals/{renewalId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'renewalId' + '}', CGI.escape(renewal_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'LeaseRenewalMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_lease_renewal_by_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_lease_renewal_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_leases(opts = {}) ⇒ Array<LeaseMessage>
Retrieve all leases Retrieves a list of leases. <br /><br /><span class="permissionBlock">Rentals > Leases</span> - ‘View`
968 969 970 971 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 968 def get_leases(opts = {}) data, _status_code, _headers = get_leases_with_http_info(opts) data end |
#get_leases_with_http_info(opts = {}) ⇒ Array<(Array<LeaseMessage>, Integer, Hash)>
Retrieve all leases Retrieves a list of leases. <br /><br /><span class="permissionBlock">Rentals &gt; Leases</span> - `View`
992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 992 def get_leases_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_leases ...' end allowable_values = ["None", "Fixed", "FixedWithRollover", "AtWill"] if @api_client.config.client_side_validation && opts[:'leasetypes'] && !opts[:'leasetypes'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"leasetypes\", must include one of #{allowable_values}" end allowable_values = ["Active", "Past", "Future"] if @api_client.config.client_side_validation && opts[:'leasestatuses'] && !opts[:'leasestatuses'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"leasestatuses\", must include one of #{allowable_values}" end # resource path local_var_path = '/v1/leases' # query parameters query_params = opts[:query_params] || {} query_params[:'propertyids'] = @api_client.build_collection_param(opts[:'propertyids'], :multi) if !opts[:'propertyids'].nil? query_params[:'rentalownerids'] = @api_client.build_collection_param(opts[:'rentalownerids'], :multi) if !opts[:'rentalownerids'].nil? query_params[:'unitnumber'] = opts[:'unitnumber'] if !opts[:'unitnumber'].nil? query_params[:'tenantname'] = opts[:'tenantname'] if !opts[:'tenantname'].nil? query_params[:'leasedatefrom'] = opts[:'leasedatefrom'] if !opts[:'leasedatefrom'].nil? query_params[:'leasedateto'] = opts[:'leasedateto'] if !opts[:'leasedateto'].nil? query_params[:'leasetypes'] = @api_client.build_collection_param(opts[:'leasetypes'], :multi) if !opts[:'leasetypes'].nil? query_params[:'leasestatuses'] = @api_client.build_collection_param(opts[:'leasestatuses'], :multi) if !opts[:'leasestatuses'].nil? query_params[:'createddatetimefrom'] = opts[:'createddatetimefrom'] if !opts[:'createddatetimefrom'].nil? query_params[:'createddatetimeto'] = opts[:'createddatetimeto'] if !opts[:'createddatetimeto'].nil? query_params[:'lastupdatedfrom'] = opts[:'lastupdatedfrom'] if !opts[:'lastupdatedfrom'].nil? query_params[:'lastupdatedto'] = opts[:'lastupdatedto'] if !opts[:'lastupdatedto'].nil? query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<LeaseMessage>' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_leases", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_leases\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_rent(lease_id, opts = {}) ⇒ Array<LeaseRentMessage>
Retrieve all rent schedules The rent schedule provides details (dollar amount, day of the month, etc) of the recurring charges that are applied to the lease ledger each rent cycle. A lease may have more than one rent schedule associated with it if the rent terms change within the duration of the lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Lease transactions</span> - ‘View`
1067 1068 1069 1070 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1067 def get_rent(lease_id, opts = {}) data, _status_code, _headers = get_rent_with_http_info(lease_id, opts) data end |
#get_rent_by_id(lease_id, rent_id, opts = {}) ⇒ LeaseRentMessage
Retrieve a rent schedule Retrieves a specific rent schedule for a lease. The rent schedule provides details (dollar amount, day of the month, etc) of the recurring charges that are applied to the lease ledger each rent cycle. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Lease transactions</span> - ‘View`
1137 1138 1139 1140 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1137 def get_rent_by_id(lease_id, rent_id, opts = {}) data, _status_code, _headers = get_rent_by_id_with_http_info(lease_id, rent_id, opts) data end |
#get_rent_by_id_with_http_info(lease_id, rent_id, opts = {}) ⇒ Array<(LeaseRentMessage, Integer, Hash)>
Retrieve a rent schedule Retrieves a specific rent schedule for a lease. The rent schedule provides details (dollar amount, day of the month, etc) of the recurring charges that are applied to the lease ledger each rent cycle. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Lease transactions</span> - `View`
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1148 def get_rent_by_id_with_http_info(lease_id, rent_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_rent_by_id ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_rent_by_id" end # verify the required parameter 'rent_id' is set if @api_client.config.client_side_validation && rent_id.nil? fail ArgumentError, "Missing the required parameter 'rent_id' when calling LeasesApi.get_rent_by_id" end # resource path local_var_path = '/v1/leases/{leaseId}/rent/{rentId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'rentId' + '}', CGI.escape(rent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'LeaseRentMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_rent_by_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_rent_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_rent_with_http_info(lease_id, opts = {}) ⇒ Array<(Array<LeaseRentMessage>, Integer, Hash)>
Retrieve all rent schedules The rent schedule provides details (dollar amount, day of the month, etc) of the recurring charges that are applied to the lease ledger each rent cycle. A lease may have more than one rent schedule associated with it if the rent terms change within the duration of the lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Lease transactions</span> - `View`
1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1080 def get_rent_with_http_info(lease_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_rent ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_rent" end # resource path local_var_path = '/v1/leases/{leaseId}/rent'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<LeaseRentMessage>' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_rent", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_rent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_renters_insurance_policies(lease_id, opts = {}) ⇒ Array<RentersInsurancePolicyMessage>
Retrieve all insurance policies Retrieves all renters insurance policies for a lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View`
1208 1209 1210 1211 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1208 def get_renters_insurance_policies(lease_id, opts = {}) data, _status_code, _headers = get_renters_insurance_policies_with_http_info(lease_id, opts) data end |
#get_renters_insurance_policies_with_http_info(lease_id, opts = {}) ⇒ Array<(Array<RentersInsurancePolicyMessage>, Integer, Hash)>
Retrieve all insurance policies Retrieves all renters insurance policies for a lease. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View`
1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1221 def get_renters_insurance_policies_with_http_info(lease_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_renters_insurance_policies ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_renters_insurance_policies" end # resource path local_var_path = '/v1/leases/{leaseId}/rentersinsurance'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<RentersInsurancePolicyMessage>' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_renters_insurance_policies", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_renters_insurance_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_renters_insurance_policy_by_id(lease_id, policy_id, opts = {}) ⇒ RentersInsurancePolicyMessage
Retrieve an insurance policy Retrieves a renters insurance policy. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View`
1278 1279 1280 1281 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1278 def get_renters_insurance_policy_by_id(lease_id, policy_id, opts = {}) data, _status_code, _headers = get_renters_insurance_policy_by_id_with_http_info(lease_id, policy_id, opts) data end |
#get_renters_insurance_policy_by_id_with_http_info(lease_id, policy_id, opts = {}) ⇒ Array<(RentersInsurancePolicyMessage, Integer, Hash)>
Retrieve an insurance policy Retrieves a renters insurance policy. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View`
1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1289 def get_renters_insurance_policy_by_id_with_http_info(lease_id, policy_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.get_renters_insurance_policy_by_id ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.get_renters_insurance_policy_by_id" end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? fail ArgumentError, "Missing the required parameter 'policy_id' when calling LeasesApi.get_renters_insurance_policy_by_id" end # resource path local_var_path = '/v1/leases/{leaseId}/rentersinsurance/{policyId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'policyId' + '}', CGI.escape(policy_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'RentersInsurancePolicyMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.get_renters_insurance_policy_by_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#get_renters_insurance_policy_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#undo_tenant_moveout(lease_id, tenant_id, opts = {}) ⇒ nil
Delete a move out Deletes move out data for a tenant on a given lease. <br /><br /><h4>Required Permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View` `Edit` <br /><span class="permissionBlock">Rentals > Tenants</span> - `View`
1347 1348 1349 1350 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1347 def undo_tenant_moveout(lease_id, tenant_id, opts = {}) undo_tenant_moveout_with_http_info(lease_id, tenant_id, opts) nil end |
#undo_tenant_moveout_with_http_info(lease_id, tenant_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete a move out Deletes move out data for a tenant on a given lease. <br /><br /><h4>Required Permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View` `Edit` <br /><span class="permissionBlock">Rentals &gt; Tenants</span> - `View`
1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1358 def undo_tenant_moveout_with_http_info(lease_id, tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.undo_tenant_moveout ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.undo_tenant_moveout" end # verify the required parameter 'tenant_id' is set if @api_client.config.client_side_validation && tenant_id.nil? fail ArgumentError, "Missing the required parameter 'tenant_id' when calling LeasesApi.undo_tenant_moveout" end # resource path local_var_path = '/v1/leases/{leaseId}/moveouts/{tenantId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.undo_tenant_moveout", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#undo_tenant_moveout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_lease(lease_id, lease_put_message, opts = {}) ⇒ LeaseMessage
Update a lease Update a signed lease. <br /><br /><strong>NOTE:</strong> Any field not included in the update request will be set to either an empty string or ‘null` in the database depending on the field definition. <br />The recommended workflow to ensure no data is inadvertently overwritten is to execute a `GET` request for the resource you’re about to update and then use this response to fill any of the fields that are not being updated. <br /><br /><span class="permissionBlock">Rentals > Leases</span> - ‘View` `Edit`
1416 1417 1418 1419 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1416 def update_lease(lease_id, , opts = {}) data, _status_code, _headers = update_lease_with_http_info(lease_id, , opts) data end |
#update_lease_epay_settings(lease_id, e_pay_settings_put_message, opts = {}) ⇒ EPaySettingsMessage
Update ePay settings Updates ePay settings for a lease <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View` `Edit`
1490 1491 1492 1493 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1490 def update_lease_epay_settings(lease_id, , opts = {}) data, _status_code, _headers = update_lease_epay_settings_with_http_info(lease_id, , opts) data end |
#update_lease_epay_settings_with_http_info(lease_id, e_pay_settings_put_message, opts = {}) ⇒ Array<(EPaySettingsMessage, Integer, Hash)>
Update ePay settings Updates ePay settings for a lease <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View` `Edit`
1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1501 def update_lease_epay_settings_with_http_info(lease_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.update_lease_epay_settings ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.update_lease_epay_settings" end # verify the required parameter 'e_pay_settings_put_message' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'e_pay_settings_put_message' when calling LeasesApi.update_lease_epay_settings" end # resource path local_var_path = '/v1/leases/{leaseId}/epaysettings'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body() # return_type return_type = opts[:debug_return_type] || 'EPaySettingsMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.update_lease_epay_settings", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#update_lease_epay_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_lease_note(lease_id, note_id, note_put_message, opts = {}) ⇒ NoteMessage
Update a note Updates a lease note. <br /><br /><strong>NOTE:</strong> Any field not included in the update request will be set to either an empty string or ‘null` in the database depending on the field definition. <br />The recommended workflow to ensure no data is inadvertently overwritten is to execute a `GET` request for the resource you’re about to update and then use this response to fill any of the fields that are not being updated. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals > Leases</span> - ‘View` `Edit`
1565 1566 1567 1568 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1565 def update_lease_note(lease_id, note_id, , opts = {}) data, _status_code, _headers = update_lease_note_with_http_info(lease_id, note_id, , opts) data end |
#update_lease_note_with_http_info(lease_id, note_id, note_put_message, opts = {}) ⇒ Array<(NoteMessage, Integer, Hash)>
Update a note Updates a lease note. <br /><br /><strong>NOTE:</strong> Any field not included in the update request will be set to either an empty string or `null` in the database depending on the field definition. <br />The recommended workflow to ensure no data is inadvertently overwritten is to execute a `GET` request for the resource you're about to update and then use this response to fill any of the fields that are not being updated. <br /><br /><h4>Required permission(s):</h4><span class="permissionBlock">Rentals &gt; Leases</span> - `View` `Edit`
1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1577 def update_lease_note_with_http_info(lease_id, note_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.update_lease_note ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.update_lease_note" end # verify the required parameter 'note_id' is set if @api_client.config.client_side_validation && note_id.nil? fail ArgumentError, "Missing the required parameter 'note_id' when calling LeasesApi.update_lease_note" end # verify the required parameter 'note_put_message' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'note_put_message' when calling LeasesApi.update_lease_note" end # resource path local_var_path = '/v1/leases/{leaseId}/notes/{noteId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)).sub('{' + 'noteId' + '}', CGI.escape(note_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body() # return_type return_type = opts[:debug_return_type] || 'NoteMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.update_lease_note", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#update_lease_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_lease_with_http_info(lease_id, lease_put_message, opts = {}) ⇒ Array<(LeaseMessage, Integer, Hash)>
Update a lease Update a signed lease. <br /><br /><strong>NOTE:</strong> Any field not included in the update request will be set to either an empty string or `null` in the database depending on the field definition. <br />The recommended workflow to ensure no data is inadvertently overwritten is to execute a `GET` request for the resource you're about to update and then use this response to fill any of the fields that are not being updated. <br /><br /><span class="permissionBlock">Rentals &gt; Leases</span> - `View` `Edit`
1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 |
# File 'lib/buildium-ruby/api/leases_api.rb', line 1427 def update_lease_with_http_info(lease_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LeasesApi.update_lease ...' end # verify the required parameter 'lease_id' is set if @api_client.config.client_side_validation && lease_id.nil? fail ArgumentError, "Missing the required parameter 'lease_id' when calling LeasesApi.update_lease" end # verify the required parameter 'lease_put_message' is set if @api_client.config.client_side_validation && .nil? fail ArgumentError, "Missing the required parameter 'lease_put_message' when calling LeasesApi.update_lease" end # resource path local_var_path = '/v1/leases/{leaseId}'.sub('{' + 'leaseId' + '}', CGI.escape(lease_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body() # return_type return_type = opts[:debug_return_type] || 'LeaseMessage' # auth_names auth_names = opts[:debug_auth_names] || ['clientId', 'clientSecret'] = opts.merge( :operation => :"LeasesApi.update_lease", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: LeasesApi#update_lease\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |