rentvine 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +4 -0
  3. data/.rubocop.yml +704 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/CHANGELOG.md +5 -0
  7. data/CODE_OF_CONDUCT.md +84 -0
  8. data/Gemfile +11 -0
  9. data/Gemfile.lock +75 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +152 -0
  12. data/Rakefile +8 -0
  13. data/bin/console +15 -0
  14. data/bin/setup +8 -0
  15. data/examples/accounts.rb +17 -0
  16. data/examples/applications.rb +19 -0
  17. data/examples/associations.rb +17 -0
  18. data/examples/bills.rb +54 -0
  19. data/examples/diagnostics.rb +67 -0
  20. data/examples/files.rb +37 -0
  21. data/examples/inspections.rb +37 -0
  22. data/examples/leases.rb +23 -0
  23. data/examples/ledgers.rb +28 -0
  24. data/examples/object_types.rb +15 -0
  25. data/examples/owners.rb +17 -0
  26. data/examples/portfolios.rb +17 -0
  27. data/examples/properties.rb +75 -0
  28. data/examples/tenants.rb +17 -0
  29. data/examples/transaction_entries.rb +17 -0
  30. data/examples/transactions.rb +17 -0
  31. data/examples/units.rb +29 -0
  32. data/examples/vendor_trades.rb +36 -0
  33. data/examples/vendors.rb +17 -0
  34. data/examples/work_order_statuses.rb +36 -0
  35. data/examples/work_orders.rb +42 -0
  36. data/lib/rentvine/client/accounts.rb +13 -0
  37. data/lib/rentvine/client/applications.rb +18 -0
  38. data/lib/rentvine/client/associations.rb +13 -0
  39. data/lib/rentvine/client/bills.rb +32 -0
  40. data/lib/rentvine/client/diagnostics.rb +81 -0
  41. data/lib/rentvine/client/files.rb +37 -0
  42. data/lib/rentvine/client/inspections.rb +27 -0
  43. data/lib/rentvine/client/leases.rb +20 -0
  44. data/lib/rentvine/client/ledgers.rb +25 -0
  45. data/lib/rentvine/client/owners.rb +13 -0
  46. data/lib/rentvine/client/portfolios.rb +19 -0
  47. data/lib/rentvine/client/properties.rb +49 -0
  48. data/lib/rentvine/client/tenants.rb +13 -0
  49. data/lib/rentvine/client/transaction_entries.rb +25 -0
  50. data/lib/rentvine/client/transactions.rb +21 -0
  51. data/lib/rentvine/client/units.rb +20 -0
  52. data/lib/rentvine/client/vendor_trades.rb +27 -0
  53. data/lib/rentvine/client/vendors.rb +13 -0
  54. data/lib/rentvine/client/work_order_statuses.rb +30 -0
  55. data/lib/rentvine/client/work_orders.rb +27 -0
  56. data/lib/rentvine/client.rb +149 -0
  57. data/lib/rentvine/model/account.rb +7 -0
  58. data/lib/rentvine/model/application.rb +7 -0
  59. data/lib/rentvine/model/association.rb +7 -0
  60. data/lib/rentvine/model/bill.rb +7 -0
  61. data/lib/rentvine/model/diagnostic.rb +7 -0
  62. data/lib/rentvine/model/file.rb +7 -0
  63. data/lib/rentvine/model/inspection.rb +7 -0
  64. data/lib/rentvine/model/lease.rb +7 -0
  65. data/lib/rentvine/model/ledger.rb +7 -0
  66. data/lib/rentvine/model/owner.rb +7 -0
  67. data/lib/rentvine/model/portfolio.rb +7 -0
  68. data/lib/rentvine/model/property.rb +16 -0
  69. data/lib/rentvine/model/rentvine_model.rb +26 -0
  70. data/lib/rentvine/model/tenant.rb +7 -0
  71. data/lib/rentvine/model/transaction.rb +7 -0
  72. data/lib/rentvine/model/transaction_entry.rb +7 -0
  73. data/lib/rentvine/model/unit.rb +7 -0
  74. data/lib/rentvine/model/vendor.rb +7 -0
  75. data/lib/rentvine/model/vendor_trade.rb +7 -0
  76. data/lib/rentvine/model/work_order.rb +7 -0
  77. data/lib/rentvine/model/work_order_status.rb +7 -0
  78. data/lib/rentvine/rentvine_error.rb +61 -0
  79. data/lib/rentvine/rentvine_object_types.rb +57 -0
  80. data/lib/rentvine/version.rb +5 -0
  81. data/lib/rentvine.rb +14 -0
  82. data/rentvine.gemspec +34 -0
  83. metadata +185 -0
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rentvine
4
+ OBJECT_TYPES = [
5
+ [id: 1, name: 'Account'],
6
+ [id: 2, name: 'User'],
7
+ [id: 3, name: 'Contact'],
8
+ [id: 4, name: 'Lease'],
9
+ [id: 5, name: 'Bill'],
10
+ [id: 6, name: 'Property'],
11
+ [id: 7, name: 'Unit'],
12
+ [id: 8, name: 'Deposit'],
13
+ [id: 9, name: 'Accounting Transaction'],
14
+ [id: 10, name: 'Accounting Transaction Entry'],
15
+ [id: 11, name: 'Portfolio'],
16
+ [id: 12, name: 'Payout'],
17
+ [id: 13, name: 'Bank Adjustment'],
18
+ [id: 14, name: 'Company'],
19
+ [id: 15, name: 'Statement'],
20
+ [id: 16, name: 'Work Order'],
21
+ [id: 17, name: 'Inspection'],
22
+ [id: 18, name: 'Inspection Area'],
23
+ [id: 19, name: 'Inspection Item'],
24
+ [id: 20, name: 'Application'],
25
+ [id: 21, name: 'Applicant'],
26
+ [id: 22, name: 'Bank Transfer'],
27
+ [id: 23, name: 'Listing'],
28
+ [id: 24, name: 'Appliance'],
29
+ [id: 25, name: 'Text Message'],
30
+ [id: 26, name: 'Email Message'],
31
+ [id: 27, name: 'Work Order Estimate'],
32
+ [id: 28, name: 'Settlement'],
33
+ [id: 29, name: 'Lease Tenant'],
34
+ [id: 30, name: 'Email Template'],
35
+ [id: 31, name: 'Note'],
36
+ [id: 32, name: 'File Attachment'],
37
+ [id: 33, name: 'Vendor Bill'],
38
+ [id: 34, name: 'Document Transaction'],
39
+ [id: 35, name: 'Document Envelope'],
40
+ [id: 36, name: 'Application Template'],
41
+ [id: 37, name: 'Recurring Bill'],
42
+ [id: 38, name: 'Chat Message'],
43
+ [id: 39, name: 'Reconciliation'],
44
+ [id: 40, name: 'Path'],
45
+ [id: 41, name: 'Payout Return'],
46
+ [id: 42, name: 'Management Fee Setting'],
47
+ [id: 43, name: 'Additional Management Fee Setting'],
48
+ [id: 44, name: 'Accounting Setting'],
49
+ [id: 45, name: 'Posting Setting'],
50
+ [id: 46, name: 'Late Fee Setting'],
51
+ [id: 47, name: 'Statement Setting'],
52
+ [id: 48, name: 'Payout Batch'],
53
+ [id: 49, name: 'Letter'],
54
+ [id: 50, name: 'Reminder'],
55
+ [id: 51, name: 'Review']
56
+ ].freeze
57
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rentvine
4
+ VERSION = '0.1.0'
5
+ end
data/lib/rentvine.rb ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rubygems'
4
+ require 'json'
5
+ require 'typhoeus'
6
+ require 'awrence'
7
+ require 'plissken'
8
+ require 'base64'
9
+ require 'ostruct'
10
+
11
+ require_relative 'rentvine/version'
12
+ require_relative 'rentvine/client'
13
+ require_relative 'rentvine/rentvine_object_types'
14
+ require_relative 'rentvine/rentvine_error'
data/rentvine.gemspec ADDED
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.unshift(::File.join(::File.dirname(__FILE__), 'lib'))
4
+
5
+ require_relative 'lib/rentvine/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'rentvine'
9
+ spec.version = Rentvine::VERSION
10
+ spec.authors = ['Wes Hays']
11
+ spec.email = ['weshays@gmail.com']
12
+
13
+ spec.summary = 'API wrapper for the Rentvine.com API'
14
+ spec.description = 'Rentvine is a web-based Property Management application that provides a RESTful API for developers to interact with. This gem is a wrapper for that API.'
15
+ spec.homepage = 'https://github.com/Launch-Engine/rentvine'
16
+ spec.license = 'MIT'
17
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
18
+
19
+ spec.metadata['source_code_uri'] = 'https://github.com/Launch-Engine/rentvine'
20
+ spec.metadata['bug_tracker_uri'] = 'https://github.com/Launch-Engine/rentvine/issues'
21
+ spec.metadata['changelog_uri'] = 'https://github.com/Launch-Engine/rentvine/blob/main/CHANGELOG.md'
22
+ spec.metadata['documentation_uri'] = 'https://docs.rentvine.com/'
23
+
24
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
26
+ end
27
+ spec.require_paths = ['lib']
28
+
29
+ spec.add_dependency 'typhoeus', '~> 1.4'
30
+ spec.add_dependency 'json', '~> 2.7'
31
+ spec.add_dependency 'plissken', '~> 3.0'
32
+ spec.add_dependency 'awrence', '~> 3.0'
33
+
34
+ end
metadata ADDED
@@ -0,0 +1,185 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rentvine
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Wes Hays
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-09-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: typhoeus
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.7'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.7'
41
+ - !ruby/object:Gem::Dependency
42
+ name: plissken
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: awrence
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ description: Rentvine is a web-based Property Management application that provides
70
+ a RESTful API for developers to interact with. This gem is a wrapper for that API.
71
+ email:
72
+ - weshays@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".rspec"
78
+ - ".rubocop.yml"
79
+ - ".ruby-gemset"
80
+ - ".ruby-version"
81
+ - CHANGELOG.md
82
+ - CODE_OF_CONDUCT.md
83
+ - Gemfile
84
+ - Gemfile.lock
85
+ - LICENSE.txt
86
+ - README.md
87
+ - Rakefile
88
+ - bin/console
89
+ - bin/setup
90
+ - examples/accounts.rb
91
+ - examples/applications.rb
92
+ - examples/associations.rb
93
+ - examples/bills.rb
94
+ - examples/diagnostics.rb
95
+ - examples/files.rb
96
+ - examples/inspections.rb
97
+ - examples/leases.rb
98
+ - examples/ledgers.rb
99
+ - examples/object_types.rb
100
+ - examples/owners.rb
101
+ - examples/portfolios.rb
102
+ - examples/properties.rb
103
+ - examples/tenants.rb
104
+ - examples/transaction_entries.rb
105
+ - examples/transactions.rb
106
+ - examples/units.rb
107
+ - examples/vendor_trades.rb
108
+ - examples/vendors.rb
109
+ - examples/work_order_statuses.rb
110
+ - examples/work_orders.rb
111
+ - lib/rentvine.rb
112
+ - lib/rentvine/client.rb
113
+ - lib/rentvine/client/accounts.rb
114
+ - lib/rentvine/client/applications.rb
115
+ - lib/rentvine/client/associations.rb
116
+ - lib/rentvine/client/bills.rb
117
+ - lib/rentvine/client/diagnostics.rb
118
+ - lib/rentvine/client/files.rb
119
+ - lib/rentvine/client/inspections.rb
120
+ - lib/rentvine/client/leases.rb
121
+ - lib/rentvine/client/ledgers.rb
122
+ - lib/rentvine/client/owners.rb
123
+ - lib/rentvine/client/portfolios.rb
124
+ - lib/rentvine/client/properties.rb
125
+ - lib/rentvine/client/tenants.rb
126
+ - lib/rentvine/client/transaction_entries.rb
127
+ - lib/rentvine/client/transactions.rb
128
+ - lib/rentvine/client/units.rb
129
+ - lib/rentvine/client/vendor_trades.rb
130
+ - lib/rentvine/client/vendors.rb
131
+ - lib/rentvine/client/work_order_statuses.rb
132
+ - lib/rentvine/client/work_orders.rb
133
+ - lib/rentvine/model/account.rb
134
+ - lib/rentvine/model/application.rb
135
+ - lib/rentvine/model/association.rb
136
+ - lib/rentvine/model/bill.rb
137
+ - lib/rentvine/model/diagnostic.rb
138
+ - lib/rentvine/model/file.rb
139
+ - lib/rentvine/model/inspection.rb
140
+ - lib/rentvine/model/lease.rb
141
+ - lib/rentvine/model/ledger.rb
142
+ - lib/rentvine/model/owner.rb
143
+ - lib/rentvine/model/portfolio.rb
144
+ - lib/rentvine/model/property.rb
145
+ - lib/rentvine/model/rentvine_model.rb
146
+ - lib/rentvine/model/tenant.rb
147
+ - lib/rentvine/model/transaction.rb
148
+ - lib/rentvine/model/transaction_entry.rb
149
+ - lib/rentvine/model/unit.rb
150
+ - lib/rentvine/model/vendor.rb
151
+ - lib/rentvine/model/vendor_trade.rb
152
+ - lib/rentvine/model/work_order.rb
153
+ - lib/rentvine/model/work_order_status.rb
154
+ - lib/rentvine/rentvine_error.rb
155
+ - lib/rentvine/rentvine_object_types.rb
156
+ - lib/rentvine/version.rb
157
+ - rentvine.gemspec
158
+ homepage: https://github.com/Launch-Engine/rentvine
159
+ licenses:
160
+ - MIT
161
+ metadata:
162
+ source_code_uri: https://github.com/Launch-Engine/rentvine
163
+ bug_tracker_uri: https://github.com/Launch-Engine/rentvine/issues
164
+ changelog_uri: https://github.com/Launch-Engine/rentvine/blob/main/CHANGELOG.md
165
+ documentation_uri: https://docs.rentvine.com/
166
+ post_install_message:
167
+ rdoc_options: []
168
+ require_paths:
169
+ - lib
170
+ required_ruby_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: 2.4.0
175
+ required_rubygems_version: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ requirements: []
181
+ rubygems_version: 3.5.10
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: API wrapper for the Rentvine.com API
185
+ test_files: []