propertyware 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +6 -3
- data/.tool-versions +2 -0
- data/DOCS.md +7 -5
- data/Gemfile.lock +4 -2
- data/bin/config.yml +1 -1
- data/bin/fix_json.rb +0 -1
- data/bin/propertyware.json +218 -178
- data/docs/Adjustment.md +40 -0
- data/docs/BankDeposit.md +1 -1
- data/docs/ChargeTx.md +1 -5
- data/docs/ContactCategory.md +20 -0
- data/docs/ContactsApi.md +79 -0
- data/docs/DocumentsApi.md +4 -4
- data/docs/Inspection.md +8 -0
- data/docs/LeasesApi.md +19 -19
- data/docs/OwnerContribution.md +5 -5
- data/docs/OwnerDraw.md +1 -1
- data/docs/Portfolio.md +2 -0
- data/docs/Refund.md +5 -5
- data/docs/SaveAdjustment.md +2 -2
- data/docs/SaveBankDeposit.md +1 -1
- data/docs/SaveContact.md +2 -0
- data/docs/SaveDiscount.md +1 -1
- data/docs/SaveOwnerContribution.md +5 -5
- data/docs/SaveOwnerDraw.md +5 -5
- data/docs/SavePayment.md +6 -6
- data/docs/SavePortfolio.md +6 -0
- data/docs/SaveRefund.md +6 -6
- data/lib/propertyware/api/contacts_api.rb +57 -0
- data/lib/propertyware/api/documents_api.rb +4 -4
- data/lib/propertyware/api/leases_api.rb +14 -14
- data/lib/propertyware/models/account.rb +1 -1
- data/lib/propertyware/models/{transaction.rb → adjustment.rb} +24 -118
- data/lib/propertyware/models/auto_journal_entry.rb +2 -2
- data/lib/propertyware/models/bank_deposit.rb +1 -1
- data/lib/propertyware/models/charge.rb +2 -2
- data/lib/propertyware/models/charge_tx.rb +4 -24
- data/lib/propertyware/models/contact_category.rb +229 -0
- data/lib/propertyware/models/inspection.rb +41 -1
- data/lib/propertyware/models/owner_contribution.rb +0 -25
- data/lib/propertyware/models/owner_draw.rb +0 -5
- data/lib/propertyware/models/portfolio.rb +11 -1
- data/lib/propertyware/models/refund.rb +2 -27
- data/lib/propertyware/models/save_adjustment.rb +2 -2
- data/lib/propertyware/models/save_bank_deposit.rb +1 -1
- data/lib/propertyware/models/save_contact.rb +11 -1
- data/lib/propertyware/models/save_discount.rb +1 -1
- data/lib/propertyware/models/save_owner_contribution.rb +5 -5
- data/lib/propertyware/models/save_owner_draw.rb +5 -5
- data/lib/propertyware/models/save_payment.rb +6 -6
- data/lib/propertyware/models/save_portfolio.rb +31 -1
- data/lib/propertyware/models/save_refund.rb +7 -17
- data/lib/propertyware/version.rb +1 -1
- data/lib/propertyware.rb +2 -1
- data/spec/api/contacts_api_spec.rb +11 -0
- data/spec/api/documents_api_spec.rb +2 -2
- data/spec/api/leases_api_spec.rb +5 -5
- data/spec/models/{transaction_spec.rb → adjustment_spec.rb} +6 -52
- data/spec/models/auto_journal_entry_spec.rb +1 -1
- data/spec/models/charge_spec.rb +1 -1
- data/spec/models/charge_tx_spec.rb +0 -12
- data/spec/models/contact_category_spec.rb +40 -0
- data/spec/models/inspection_spec.rb +24 -0
- data/spec/models/portfolio_spec.rb +6 -0
- data/spec/models/save_contact_spec.rb +6 -0
- data/spec/models/save_portfolio_spec.rb +18 -0
- metadata +11 -6
- data/docs/Transaction.md +0 -54
@@ -27,6 +27,9 @@ module Propertyware
|
|
27
27
|
# Date of Birth.
|
28
28
|
attr_accessor :birth_date
|
29
29
|
|
30
|
+
# Indicate contact category. Send empty \"\" value if contact is Uncategorized
|
31
|
+
attr_accessor :category
|
32
|
+
|
30
33
|
# Description.
|
31
34
|
attr_accessor :comments
|
32
35
|
|
@@ -110,6 +113,7 @@ module Propertyware
|
|
110
113
|
:'allow_e_signature' => :'allowESignature',
|
111
114
|
:'alt_email' => :'altEmail',
|
112
115
|
:'birth_date' => :'birthDate',
|
116
|
+
:'category' => :'category',
|
113
117
|
:'comments' => :'comments',
|
114
118
|
:'company' => :'company',
|
115
119
|
:'email' => :'email',
|
@@ -143,6 +147,7 @@ module Propertyware
|
|
143
147
|
:'allow_e_signature' => :'Boolean',
|
144
148
|
:'alt_email' => :'String',
|
145
149
|
:'birth_date' => :'Date',
|
150
|
+
:'category' => :'String',
|
146
151
|
:'comments' => :'String',
|
147
152
|
:'company' => :'String',
|
148
153
|
:'email' => :'String',
|
@@ -201,6 +206,10 @@ module Propertyware
|
|
201
206
|
self.birth_date = attributes[:'birth_date']
|
202
207
|
end
|
203
208
|
|
209
|
+
if attributes.key?(:'category')
|
210
|
+
self.category = attributes[:'category']
|
211
|
+
end
|
212
|
+
|
204
213
|
if attributes.key?(:'comments')
|
205
214
|
self.comments = attributes[:'comments']
|
206
215
|
end
|
@@ -566,6 +575,7 @@ module Propertyware
|
|
566
575
|
allow_e_signature == o.allow_e_signature &&
|
567
576
|
alt_email == o.alt_email &&
|
568
577
|
birth_date == o.birth_date &&
|
578
|
+
category == o.category &&
|
569
579
|
comments == o.comments &&
|
570
580
|
company == o.company &&
|
571
581
|
email == o.email &&
|
@@ -595,7 +605,7 @@ module Propertyware
|
|
595
605
|
# Calculates hash code according to all attributes.
|
596
606
|
# @return [Integer] Hash code
|
597
607
|
def hash
|
598
|
-
[address, allow_e_signature, alt_email, birth_date, comments, company, email, fax, first_name, gender, home_phone, job_title, last_name, middle_name, mobile_phone, name_on_check, named_on_lease, other_phone, salutation, search_tag, suffix, work_phone].hash
|
608
|
+
[address, allow_e_signature, alt_email, birth_date, category, comments, company, email, fax, first_name, gender, home_phone, job_title, last_name, middle_name, mobile_phone, name_on_check, named_on_lease, other_phone, salutation, search_tag, suffix, work_phone].hash
|
599
609
|
end
|
600
610
|
|
601
611
|
# Builds the object from hash
|
@@ -22,25 +22,25 @@ module Propertyware
|
|
22
22
|
# Comments.
|
23
23
|
attr_accessor :comments
|
24
24
|
|
25
|
-
#
|
25
|
+
# Id of the contact associated with this owner contribution.
|
26
26
|
attr_accessor :contact_id
|
27
27
|
|
28
28
|
# Post Date.
|
29
29
|
attr_accessor :date
|
30
30
|
|
31
|
-
#
|
31
|
+
# Id of the bank account where the payment will be deposited.
|
32
32
|
attr_accessor :destination_account_id
|
33
33
|
|
34
|
-
#
|
34
|
+
# Id of the general ledger account associated with this owner contribution.
|
35
35
|
attr_accessor :gl_account_id
|
36
36
|
|
37
37
|
# Payment Type.
|
38
38
|
attr_accessor :payment_type
|
39
39
|
|
40
|
-
#
|
40
|
+
# Id of the portfolio to apply the payment to.
|
41
41
|
attr_accessor :portfolio_id
|
42
42
|
|
43
|
-
#
|
43
|
+
# Reference No.
|
44
44
|
attr_accessor :ref_no
|
45
45
|
|
46
46
|
class EnumAttributeValidator
|
@@ -22,22 +22,22 @@ module Propertyware
|
|
22
22
|
# Comments.
|
23
23
|
attr_accessor :comments
|
24
24
|
|
25
|
-
#
|
25
|
+
# Id of the contact associated with this owner draw.
|
26
26
|
attr_accessor :contact_id
|
27
27
|
|
28
28
|
# Post Date.
|
29
29
|
attr_accessor :date
|
30
30
|
|
31
|
-
#
|
31
|
+
# Id of the bank account where the payment will be made from.
|
32
32
|
attr_accessor :destination_account_id
|
33
33
|
|
34
|
-
#
|
34
|
+
# Id of the general ledger account associated with this owner draw.
|
35
35
|
attr_accessor :gl_account_id
|
36
36
|
|
37
|
-
#
|
37
|
+
# Id of the portfolio associated with this owner draw.
|
38
38
|
attr_accessor :portfolio_id
|
39
39
|
|
40
|
-
# Check no required when payment method is Hand written check .
|
40
|
+
# Check no required when payment method is Hand written check (i.e toBePrinted = false).
|
41
41
|
attr_accessor :ref_no
|
42
42
|
|
43
43
|
# Indicates if Check is to be printed.
|
@@ -22,25 +22,25 @@ module Propertyware
|
|
22
22
|
# Comments.
|
23
23
|
attr_accessor :comments
|
24
24
|
|
25
|
-
#
|
25
|
+
# Id of the contact associated with lease payment
|
26
26
|
attr_accessor :contact_id
|
27
27
|
|
28
28
|
# Post Date.
|
29
29
|
attr_accessor :date
|
30
30
|
|
31
|
-
# Payment
|
31
|
+
# Payment deposit date.
|
32
32
|
attr_accessor :deposit_date
|
33
33
|
|
34
|
-
# Bank
|
34
|
+
# Bank GL account ID to deposit.
|
35
35
|
attr_accessor :destination_account_id
|
36
36
|
|
37
|
-
#
|
37
|
+
# Id of the lease associated with this payment.
|
38
38
|
attr_accessor :lease_id
|
39
39
|
|
40
|
-
# Payment
|
40
|
+
# Payment type.
|
41
41
|
attr_accessor :payment_type
|
42
42
|
|
43
|
-
# Payment
|
43
|
+
# Payment reference number
|
44
44
|
attr_accessor :ref_no
|
45
45
|
|
46
46
|
class EnumAttributeValidator
|
@@ -25,6 +25,12 @@ module Propertyware
|
|
25
25
|
# Date when the accounting period for the portfolio will close.
|
26
26
|
attr_accessor :closing_date
|
27
27
|
|
28
|
+
# Portfolio Default Bank Account ID
|
29
|
+
attr_accessor :default_bank_account_id
|
30
|
+
|
31
|
+
# Portfolio Default Security Deposit Bank Account ID
|
32
|
+
attr_accessor :default_secdep_account_id
|
33
|
+
|
28
34
|
# Indicates that the owner should not be paid owner draws.
|
29
35
|
attr_accessor :do_not_pay_owner_draw
|
30
36
|
|
@@ -40,6 +46,9 @@ module Propertyware
|
|
40
46
|
# Portfolio owner Ids
|
41
47
|
attr_accessor :owner_ids
|
42
48
|
|
49
|
+
# Portfolio Owner Statement Report ID
|
50
|
+
attr_accessor :owner_statement_report_id
|
51
|
+
|
43
52
|
# Portfolio owners.
|
44
53
|
attr_accessor :owners
|
45
54
|
|
@@ -77,11 +86,14 @@ module Propertyware
|
|
77
86
|
:'abbreviation' => :'abbreviation',
|
78
87
|
:'cash_accrual' => :'cashAccrual',
|
79
88
|
:'closing_date' => :'closingDate',
|
89
|
+
:'default_bank_account_id' => :'defaultBankAccountID',
|
90
|
+
:'default_secdep_account_id' => :'defaultSecdepAccountID',
|
80
91
|
:'do_not_pay_owner_draw' => :'doNotPayOwnerDraw',
|
81
92
|
:'maintenance_spending_limit' => :'maintenanceSpendingLimit',
|
82
93
|
:'maintenance_spending_limit_time' => :'maintenanceSpendingLimitTime',
|
83
94
|
:'name' => :'name',
|
84
95
|
:'owner_ids' => :'ownerIds',
|
96
|
+
:'owner_statement_report_id' => :'ownerStatementReportID',
|
85
97
|
:'owners' => :'owners',
|
86
98
|
:'sticky_note' => :'stickyNote',
|
87
99
|
:'target_operating_reserve' => :'targetOperatingReserve'
|
@@ -99,11 +111,14 @@ module Propertyware
|
|
99
111
|
:'abbreviation' => :'String',
|
100
112
|
:'cash_accrual' => :'String',
|
101
113
|
:'closing_date' => :'Date',
|
114
|
+
:'default_bank_account_id' => :'Integer',
|
115
|
+
:'default_secdep_account_id' => :'Integer',
|
102
116
|
:'do_not_pay_owner_draw' => :'Boolean',
|
103
117
|
:'maintenance_spending_limit' => :'Float',
|
104
118
|
:'maintenance_spending_limit_time' => :'String',
|
105
119
|
:'name' => :'String',
|
106
120
|
:'owner_ids' => :'Array<Integer>',
|
121
|
+
:'owner_statement_report_id' => :'Integer',
|
107
122
|
:'owners' => :'Array<SaveOwner>',
|
108
123
|
:'sticky_note' => :'String',
|
109
124
|
:'target_operating_reserve' => :'Float'
|
@@ -143,6 +158,14 @@ module Propertyware
|
|
143
158
|
self.closing_date = attributes[:'closing_date']
|
144
159
|
end
|
145
160
|
|
161
|
+
if attributes.key?(:'default_bank_account_id')
|
162
|
+
self.default_bank_account_id = attributes[:'default_bank_account_id']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'default_secdep_account_id')
|
166
|
+
self.default_secdep_account_id = attributes[:'default_secdep_account_id']
|
167
|
+
end
|
168
|
+
|
146
169
|
if attributes.key?(:'do_not_pay_owner_draw')
|
147
170
|
self.do_not_pay_owner_draw = attributes[:'do_not_pay_owner_draw']
|
148
171
|
end
|
@@ -165,6 +188,10 @@ module Propertyware
|
|
165
188
|
end
|
166
189
|
end
|
167
190
|
|
191
|
+
if attributes.key?(:'owner_statement_report_id')
|
192
|
+
self.owner_statement_report_id = attributes[:'owner_statement_report_id']
|
193
|
+
end
|
194
|
+
|
168
195
|
if attributes.key?(:'owners')
|
169
196
|
if (value = attributes[:'owners']).is_a?(Array)
|
170
197
|
self.owners = value
|
@@ -235,11 +262,14 @@ module Propertyware
|
|
235
262
|
abbreviation == o.abbreviation &&
|
236
263
|
cash_accrual == o.cash_accrual &&
|
237
264
|
closing_date == o.closing_date &&
|
265
|
+
default_bank_account_id == o.default_bank_account_id &&
|
266
|
+
default_secdep_account_id == o.default_secdep_account_id &&
|
238
267
|
do_not_pay_owner_draw == o.do_not_pay_owner_draw &&
|
239
268
|
maintenance_spending_limit == o.maintenance_spending_limit &&
|
240
269
|
maintenance_spending_limit_time == o.maintenance_spending_limit_time &&
|
241
270
|
name == o.name &&
|
242
271
|
owner_ids == o.owner_ids &&
|
272
|
+
owner_statement_report_id == o.owner_statement_report_id &&
|
243
273
|
owners == o.owners &&
|
244
274
|
sticky_note == o.sticky_note &&
|
245
275
|
target_operating_reserve == o.target_operating_reserve
|
@@ -254,7 +284,7 @@ module Propertyware
|
|
254
284
|
# Calculates hash code according to all attributes.
|
255
285
|
# @return [Integer] Hash code
|
256
286
|
def hash
|
257
|
-
[abbreviation, cash_accrual, closing_date, do_not_pay_owner_draw, maintenance_spending_limit, maintenance_spending_limit_time, name, owner_ids, owners, sticky_note, target_operating_reserve].hash
|
287
|
+
[abbreviation, cash_accrual, closing_date, default_bank_account_id, default_secdep_account_id, do_not_pay_owner_draw, maintenance_spending_limit, maintenance_spending_limit_time, name, owner_ids, owner_statement_report_id, owners, sticky_note, target_operating_reserve].hash
|
258
288
|
end
|
259
289
|
|
260
290
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Propertyware
|
17
|
-
#
|
17
|
+
# Refund for Request
|
18
18
|
class SaveRefund
|
19
19
|
# Amount.
|
20
20
|
attr_accessor :amount
|
@@ -25,22 +25,22 @@ module Propertyware
|
|
25
25
|
# Post Date.
|
26
26
|
attr_accessor :date
|
27
27
|
|
28
|
-
#
|
28
|
+
# Id of the bank account to send the refund from.
|
29
29
|
attr_accessor :destination_account_id
|
30
30
|
|
31
|
-
#
|
31
|
+
# Id of the general ledger account associated with the refund.
|
32
32
|
attr_accessor :gl_account_id
|
33
33
|
|
34
|
-
#
|
34
|
+
# Id of the lease associated with the refund.
|
35
35
|
attr_accessor :lease_id
|
36
36
|
|
37
|
-
#
|
37
|
+
# Reference number.
|
38
38
|
attr_accessor :ref_no
|
39
39
|
|
40
|
-
#
|
40
|
+
# Indicates if the check is to be printed.
|
41
41
|
attr_accessor :to_be_printed
|
42
42
|
|
43
|
-
#
|
43
|
+
# Indicates if refund is for primary contact only
|
44
44
|
attr_accessor :to_primary_tenant
|
45
45
|
|
46
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -160,14 +160,6 @@ module Propertyware
|
|
160
160
|
invalid_properties.push('invalid value for "lease_id", lease_id cannot be nil.')
|
161
161
|
end
|
162
162
|
|
163
|
-
if @to_be_printed.nil?
|
164
|
-
invalid_properties.push('invalid value for "to_be_printed", to_be_printed cannot be nil.')
|
165
|
-
end
|
166
|
-
|
167
|
-
if @to_primary_tenant.nil?
|
168
|
-
invalid_properties.push('invalid value for "to_primary_tenant", to_primary_tenant cannot be nil.')
|
169
|
-
end
|
170
|
-
|
171
163
|
invalid_properties
|
172
164
|
end
|
173
165
|
|
@@ -179,8 +171,6 @@ module Propertyware
|
|
179
171
|
return false if @destination_account_id.nil?
|
180
172
|
return false if @gl_account_id.nil?
|
181
173
|
return false if @lease_id.nil?
|
182
|
-
return false if @to_be_printed.nil?
|
183
|
-
return false if @to_primary_tenant.nil?
|
184
174
|
true
|
185
175
|
end
|
186
176
|
|
data/lib/propertyware/version.rb
CHANGED
data/lib/propertyware.rb
CHANGED
@@ -19,6 +19,7 @@ require 'propertyware/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'propertyware/models/account'
|
21
21
|
require 'propertyware/models/address'
|
22
|
+
require 'propertyware/models/adjustment'
|
22
23
|
require 'propertyware/models/amenity'
|
23
24
|
require 'propertyware/models/auto_journal_entry'
|
24
25
|
require 'propertyware/models/auto_payment'
|
@@ -39,6 +40,7 @@ require 'propertyware/models/check'
|
|
39
40
|
require 'propertyware/models/check_split'
|
40
41
|
require 'propertyware/models/comment'
|
41
42
|
require 'propertyware/models/contact'
|
43
|
+
require 'propertyware/models/contact_category'
|
42
44
|
require 'propertyware/models/conversation'
|
43
45
|
require 'propertyware/models/credit_card_account'
|
44
46
|
require 'propertyware/models/credit_memo'
|
@@ -123,7 +125,6 @@ require 'propertyware/models/save_work_order_task'
|
|
123
125
|
require 'propertyware/models/split_paid'
|
124
126
|
require 'propertyware/models/split_pay'
|
125
127
|
require 'propertyware/models/task'
|
126
|
-
require 'propertyware/models/transaction'
|
127
128
|
require 'propertyware/models/unit'
|
128
129
|
require 'propertyware/models/update_document'
|
129
130
|
require 'propertyware/models/update_lease_journal_entry'
|
@@ -94,6 +94,17 @@ describe 'ContactsApi' do
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
+
# unit tests for get_contact_categories
|
98
|
+
# Retrieve all contact categories
|
99
|
+
# Retrieves a list of contact categories.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Read</code>
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @return [Array<ContactCategory>]
|
102
|
+
describe 'get_contact_categories test' do
|
103
|
+
it 'should work' do
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
97
108
|
# unit tests for get_contact_conversation
|
98
109
|
# Retrieve a contact conversation
|
99
110
|
# Retrieves a specific contact conversation.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">CONTACTS</span> - <code>Read</code>
|
@@ -66,7 +66,7 @@ describe 'DocumentsApi' do
|
|
66
66
|
# @option opts [Time] :last_modified_date_time_start Filters results to any item modified on or after the date time specified.
|
67
67
|
# @option opts [Time] :last_modified_date_time_end Filters results to any item modified on or prior to the date time specified.
|
68
68
|
# @option opts [String] :orderby Indicates the field(s) and direction to sort the results in the response.
|
69
|
-
# @option opts [Integer] :entity_id Filters results to documents associated with a specific entity id. entity ID is not required for
|
69
|
+
# @option opts [Integer] :entity_id Filters results to documents associated with a specific entity id. entity ID is not required for DESKTOP and OTHER. Remaining entities need entity ID.
|
70
70
|
# @return [Array<Document>]
|
71
71
|
describe 'retrieve_all_documents test' do
|
72
72
|
it 'should work' do
|
@@ -103,7 +103,7 @@ describe 'DocumentsApi' do
|
|
103
103
|
# Upload a document (BETA)
|
104
104
|
# <p class=\"betaError\"><b>Note: </b>Write access is only available to customers who have opted in to our beta program. Please reach out to support if you'd like to be included.</p> Upload a document<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">DOCUMENTS</span> - <code>Write</code>
|
105
105
|
# @param entity_id Unique identifier of an entity document is attached to.
|
106
|
-
# @param entity_type Entity type Document is attached to (Bill, Building, Desktop,
|
106
|
+
# @param entity_type Entity type Document is attached to (Asset, Bill, Bank Deposit, Building, Desktop, Lease, Owner, Portfolio, Prospect, Prospect Contact, Tenant, Unit, Vendor, Check, Credit, Service Agreement, Journal Entry, Work Order)
|
107
107
|
# @param body
|
108
108
|
# @param [Hash] opts the optional parameters
|
109
109
|
# @option opts [Boolean] :publish_to_tenant_portal Indicates if the document is published to the tenant portal.
|
data/spec/api/leases_api_spec.rb
CHANGED
@@ -75,7 +75,7 @@ describe 'LeasesApi' do
|
|
75
75
|
# <p class=\"betaError\"><b>Note: </b>Write access is only available to customers who have opted in to our beta program. Please reach out to support if you'd like to be included.</p> Creates a lease adjustment.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">LEASES</span> - <code>Write</code>
|
76
76
|
# @param save_adjustment saveAdjustment
|
77
77
|
# @param [Hash] opts the optional parameters
|
78
|
-
# @return [
|
78
|
+
# @return [Adjustment]
|
79
79
|
describe 'create_lease_adjustment test' do
|
80
80
|
it 'should work' do
|
81
81
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -206,7 +206,7 @@ describe 'LeasesApi' do
|
|
206
206
|
|
207
207
|
# unit tests for get_lease_adjustments
|
208
208
|
# Retrieve all the adjustments
|
209
|
-
# Retrieves a list of adjustments.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">
|
209
|
+
# Retrieves a list of adjustments.<br/><br/><b>Required permission:</b><br/><span class=\"permissionBlock\">LEASES</span> - <code>Read</code> <br/><br/><b>Sortable by:</b> <code>leaseid</code>, <code>postdate</code>, <code>id</code>
|
210
210
|
# @param [Hash] opts the optional parameters
|
211
211
|
# @option opts [Integer] :offset `offset` indicates the position of the first record to return. The offset is zero-based and the default is 0.
|
212
212
|
# @option opts [Integer] :limit `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 500 and the default is 100.
|
@@ -218,7 +218,7 @@ describe 'LeasesApi' do
|
|
218
218
|
# @option opts [Integer] :portfolio_id Filters results associated with a specific portfolio.
|
219
219
|
# @option opts [Integer] :lease_id Filters results with Lease ID.
|
220
220
|
# @option opts [String] :status Filters results to with Lease Status.
|
221
|
-
# @return [Array<
|
221
|
+
# @return [Array<Adjustment>]
|
222
222
|
describe 'get_lease_adjustments test' do
|
223
223
|
it 'should work' do
|
224
224
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -371,7 +371,7 @@ describe 'LeasesApi' do
|
|
371
371
|
# @option opts [Integer] :lease_id Filters results to any LeaseID.
|
372
372
|
# @option opts [Date] :post_date_start Filters results to any discount with a start date on or after the date specified.
|
373
373
|
# @option opts [Date] :post_date_end Filters results to any discount with a start date on or prior to the date specified.
|
374
|
-
# @return [Array<
|
374
|
+
# @return [Array<Discount>]
|
375
375
|
describe 'get_lease_discounts test' do
|
376
376
|
it 'should work' do
|
377
377
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -536,7 +536,7 @@ describe 'LeasesApi' do
|
|
536
536
|
# @param adjustment_id Adjustment ID
|
537
537
|
# @param save_adjustment saveAdjustment
|
538
538
|
# @param [Hash] opts the optional parameters
|
539
|
-
# @return [
|
539
|
+
# @return [Adjustment]
|
540
540
|
describe 'update_lease_adjustment test' do
|
541
541
|
it 'should work' do
|
542
542
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for Propertyware::
|
17
|
+
# Unit tests for Propertyware::Adjustment
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe Propertyware::
|
21
|
-
let(:instance) { Propertyware::
|
20
|
+
describe Propertyware::Adjustment do
|
21
|
+
let(:instance) { Propertyware::Adjustment.new }
|
22
22
|
|
23
|
-
describe 'test an instance of
|
24
|
-
it 'should create an instance of
|
25
|
-
expect(instance).to be_instance_of(Propertyware::
|
23
|
+
describe 'test an instance of Adjustment' do
|
24
|
+
it 'should create an instance of Adjustment' do
|
25
|
+
expect(instance).to be_instance_of(Propertyware::Adjustment)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
describe 'test attribute "amount"' do
|
@@ -37,12 +37,6 @@ describe Propertyware::Transaction do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
describe 'test attribute "contact_id"' do
|
41
|
-
it 'should work' do
|
42
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
40
|
describe 'test attribute "created_by"' do
|
47
41
|
it 'should work' do
|
48
42
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -61,18 +55,6 @@ describe Propertyware::Transaction do
|
|
61
55
|
end
|
62
56
|
end
|
63
57
|
|
64
|
-
describe 'test attribute "deposit_date"' do
|
65
|
-
it 'should work' do
|
66
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
describe 'test attribute "destination_account_id"' do
|
71
|
-
it 'should work' do
|
72
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
58
|
describe 'test attribute "gl_account_id"' do
|
77
59
|
it 'should work' do
|
78
60
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -103,28 +85,6 @@ describe Propertyware::Transaction do
|
|
103
85
|
end
|
104
86
|
end
|
105
87
|
|
106
|
-
describe 'test attribute "payee_payer"' do
|
107
|
-
it 'should work' do
|
108
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
describe 'test attribute "payment_method"' do
|
113
|
-
it 'should work' do
|
114
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
describe 'test attribute "payment_type"' do
|
119
|
-
it 'should work' do
|
120
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
121
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["CHECK", "CHECK21", "CASHIERS_CHECK", "CREDIT_CARD", "CASH", "MONEY_ORDER", "OTHER", "CLICKPAY", "SECTION8", "EPAY", "ECHECK", "NACHA", "RENTMONEY", "PUBLIC_ASSISTANCE"])
|
122
|
-
# validator.allowable_values.each do |value|
|
123
|
-
# expect { instance.payment_type = value }.not_to raise_error
|
124
|
-
# end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
88
|
describe 'test attribute "portfolio_id"' do
|
129
89
|
it 'should work' do
|
130
90
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -137,10 +97,4 @@ describe Propertyware::Transaction do
|
|
137
97
|
end
|
138
98
|
end
|
139
99
|
|
140
|
-
describe 'test attribute "to_be_printed"' do
|
141
|
-
it 'should work' do
|
142
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
143
|
-
end
|
144
|
-
end
|
145
|
-
|
146
100
|
end
|
@@ -64,7 +64,7 @@ describe Propertyware::AutoJournalEntry do
|
|
64
64
|
describe 'test attribute "frequency"' do
|
65
65
|
it 'should work' do
|
66
66
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["WEEKLY", "MONTHLY", "
|
67
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["WEEKLY", "MONTHLY", "YEARLY", "MANUALLY"])
|
68
68
|
# validator.allowable_values.each do |value|
|
69
69
|
# expect { instance.frequency = value }.not_to raise_error
|
70
70
|
# end
|
data/spec/models/charge_spec.rb
CHANGED
@@ -58,7 +58,7 @@ describe Propertyware::Charge do
|
|
58
58
|
describe 'test attribute "frequency"' do
|
59
59
|
it 'should work' do
|
60
60
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["WEEKLY", "MONTHLY", "QUARTERLY", "
|
61
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["WEEKLY", "MONTHLY", "QUARTERLY", "SEMIANUUAL", "ANUUAL", "ANUUAL_ACCRUAL"])
|
62
62
|
# validator.allowable_values.each do |value|
|
63
63
|
# expect { instance.frequency = value }.not_to raise_error
|
64
64
|
# end
|
@@ -43,12 +43,6 @@ describe Propertyware::ChargeTx do
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
describe 'test attribute "charge_status"' do
|
47
|
-
it 'should work' do
|
48
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
46
|
describe 'test attribute "comments"' do
|
53
47
|
it 'should work' do
|
54
48
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -127,10 +121,4 @@ describe Propertyware::ChargeTx do
|
|
127
121
|
end
|
128
122
|
end
|
129
123
|
|
130
|
-
describe 'test attribute "status"' do
|
131
|
-
it 'should work' do
|
132
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
124
|
end
|