get_around_owner 1.0.1 → 1.0.4

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 (232) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Owner API v1.json +2938 -0
  4. data/README.md +359 -203
  5. data/Rakefile +8 -0
  6. data/docs/Car.md +12 -0
  7. data/docs/CarId.md +6 -0
  8. data/docs/CarIdUnavailabilitiesJsonBody.md +9 -0
  9. data/docs/CarsApi.md +109 -0
  10. data/docs/CarsIndex.md +6 -0
  11. data/docs/Checkin.md +10 -0
  12. data/docs/CheckinsApi.md +113 -0
  13. data/docs/CheckinsIndex.md +6 -0
  14. data/docs/Checkout.md +11 -0
  15. data/docs/CheckoutsApi.md +113 -0
  16. data/docs/CheckoutsIndex.md +6 -0
  17. data/docs/EndsAt.md +6 -0
  18. data/docs/GetaroundCar.md +28 -0
  19. data/docs/GetaroundCarsIndexInner.md +18 -0
  20. data/docs/GetaroundCheckin.md +24 -0
  21. data/docs/GetaroundCheckinsIndexInner.md +18 -0
  22. data/docs/GetaroundCheckout.md +26 -0
  23. data/docs/GetaroundCreateMessagesRequest.md +18 -0
  24. data/docs/GetaroundCreateUnavailabilitiesRequest.md +22 -0
  25. data/docs/GetaroundDestroyUnavailabilityRequest.md +20 -0
  26. data/docs/GetaroundInvoice.md +34 -0
  27. data/docs/GetaroundInvoiceChargesInner.md +20 -0
  28. data/docs/GetaroundInvoicesIndexInner.md +18 -0
  29. data/docs/GetaroundMessage.md +26 -0
  30. data/docs/GetaroundMessagesSent.md +22 -0
  31. data/docs/GetaroundMessagesSentAllOfData.md +20 -0
  32. data/docs/GetaroundPayout.md +28 -0
  33. data/docs/GetaroundPayoutInvoicesInner.md +18 -0
  34. data/docs/GetaroundPayoutsIndexInner.md +18 -0
  35. data/docs/GetaroundReason.md +15 -0
  36. data/docs/GetaroundRental.md +32 -0
  37. data/docs/GetaroundRentalInvoicesIndexInner.md +18 -0
  38. data/docs/GetaroundRentalMessagesIndexInner.md +18 -0
  39. data/docs/GetaroundRentalsBooked.md +22 -0
  40. data/docs/GetaroundRentalsBookedAllOfData.md +18 -0
  41. data/docs/GetaroundRentalsCanceled.md +22 -0
  42. data/docs/GetaroundRentalsCarCheckedIn.md +22 -0
  43. data/docs/GetaroundRentalsCarCheckedOut.md +22 -0
  44. data/docs/GetaroundRentalsCarSwitched.md +22 -0
  45. data/docs/GetaroundRentalsIndexInner.md +18 -0
  46. data/docs/GetaroundRentalsTimesChanged.md +22 -0
  47. data/docs/GetaroundUnavailabilitiesCreated.md +22 -0
  48. data/docs/GetaroundUnavailabilitiesCreatedAllOfData.md +24 -0
  49. data/docs/GetaroundUnavailabilitiesDeleted.md +22 -0
  50. data/docs/GetaroundUnavailabilitiesDeletedAllOfData.md +22 -0
  51. data/docs/GetaroundUnavailability.md +24 -0
  52. data/docs/GetaroundUser.md +42 -0
  53. data/docs/GetaroundUsersUpdated.md +22 -0
  54. data/docs/GetaroundUsersUpdatedAllOfData.md +18 -0
  55. data/docs/GetaroundWebhook.md +22 -0
  56. data/docs/Invoice.md +15 -0
  57. data/docs/InvoicesApi.md +168 -0
  58. data/docs/InvoicesIndex.md +6 -0
  59. data/docs/Message.md +11 -0
  60. data/docs/MessagesApi.md +161 -0
  61. data/docs/MessagesSent.md +6 -0
  62. data/docs/Payout.md +12 -0
  63. data/docs/PayoutsApi.md +113 -0
  64. data/docs/PayoutsIndex.md +6 -0
  65. data/docs/Rental.md +14 -0
  66. data/docs/RentalIdMessagesJsonBody.md +7 -0
  67. data/docs/RentalInvoicesIndex.md +6 -0
  68. data/docs/RentalMessagesIndex.md +6 -0
  69. data/docs/RentalsApi.md +113 -0
  70. data/docs/RentalsBooked.md +6 -0
  71. data/docs/RentalsCanceled.md +6 -0
  72. data/docs/RentalsCarCheckedIn.md +6 -0
  73. data/docs/RentalsCarCheckedOut.md +6 -0
  74. data/docs/RentalsCarSwitched.md +6 -0
  75. data/docs/RentalsIndex.md +6 -0
  76. data/docs/RentalsTimesChanged.md +6 -0
  77. data/docs/StartsAt.md +6 -0
  78. data/docs/UnavailabilitiesApi.md +166 -0
  79. data/docs/UnavailabilitiesCreated.md +6 -0
  80. data/docs/UnavailabilitiesDeleted.md +6 -0
  81. data/docs/UnavailabilitiesIndex.md +6 -0
  82. data/docs/Unavailability.md +10 -0
  83. data/docs/User.md +19 -0
  84. data/docs/UsersApi.md +56 -0
  85. data/docs/UsersUpdated.md +6 -0
  86. data/docs/Webhook.md +9 -0
  87. data/get_around_owner-1.0.0.gem +0 -0
  88. data/get_around_owner-1.0.1.gem +0 -0
  89. data/get_around_owner-1.0.3.gem +0 -0
  90. data/get_around_owner.gemspec +39 -0
  91. data/getaround-api.gemspec +38 -0
  92. data/git_push.sh +55 -0
  93. data/lib/get_around_owner/api/cars_api.rb +25 -41
  94. data/lib/get_around_owner/api/checkins_api.rb +99 -35
  95. data/lib/get_around_owner/api/checkouts_api.rb +99 -35
  96. data/lib/get_around_owner/api/invoices_api.rb +43 -66
  97. data/lib/get_around_owner/api/messages_api.rb +149 -33
  98. data/lib/get_around_owner/api/payouts_api.rb +29 -45
  99. data/lib/get_around_owner/api/rentals_api.rb +67 -183
  100. data/lib/get_around_owner/api/unavailabilities_api.rb +124 -58
  101. data/lib/get_around_owner/api/users_api.rb +30 -36
  102. data/lib/get_around_owner/api_client.rb +71 -77
  103. data/lib/get_around_owner/api_error.rb +5 -6
  104. data/lib/get_around_owner/configuration.rb +13 -106
  105. data/lib/get_around_owner/models/{getaround_car.rb → car.rb} +36 -56
  106. data/lib/get_around_owner/models/{getaround_users_updated_all_of_data.rb → car_id.rb} +33 -50
  107. data/lib/get_around_owner/models/{getaround_destroy_unavailability_request.rb → car_id_unavailabilities_json_body.rb} +45 -47
  108. data/lib/get_around_owner/models/{getaround_rentals_booked_all_of_data.rb → cars_index.rb} +33 -50
  109. data/lib/get_around_owner/models/{getaround_checkin.rb → checkin.rb} +34 -65
  110. data/lib/get_around_owner/models/{getaround_payouts_index_inner.rb → checkins_index.rb} +32 -58
  111. data/lib/get_around_owner/models/{getaround_checkout.rb → checkout.rb} +35 -70
  112. data/lib/get_around_owner/models/checkouts_index.rb +197 -0
  113. data/lib/get_around_owner/models/ends_at.rb +198 -0
  114. data/lib/get_around_owner/models/{getaround_invoice.rb → invoice.rb} +45 -113
  115. data/lib/get_around_owner/models/invoices_index.rb +198 -0
  116. data/lib/get_around_owner/models/{getaround_message.rb → message.rb} +35 -53
  117. data/lib/get_around_owner/models/messages_sent.rb +197 -0
  118. data/lib/get_around_owner/models/{getaround_payout.rb → payout.rb} +37 -101
  119. data/lib/get_around_owner/models/payouts_index.rb +198 -0
  120. data/lib/get_around_owner/models/{getaround_rental.rb → rental.rb} +38 -100
  121. data/lib/get_around_owner/models/{getaround_create_messages_request.rb → rental_id_messages_json_body.rb} +31 -41
  122. data/lib/get_around_owner/models/rental_invoices_index.rb +198 -0
  123. data/lib/get_around_owner/models/rental_messages_index.rb +198 -0
  124. data/lib/get_around_owner/models/rentals_booked.rb +197 -0
  125. data/lib/get_around_owner/models/rentals_canceled.rb +197 -0
  126. data/lib/get_around_owner/models/rentals_car_checked_in.rb +197 -0
  127. data/lib/get_around_owner/models/rentals_car_checked_out.rb +197 -0
  128. data/lib/get_around_owner/models/rentals_car_switched.rb +197 -0
  129. data/lib/get_around_owner/models/rentals_index.rb +198 -0
  130. data/lib/get_around_owner/models/rentals_times_changed.rb +197 -0
  131. data/lib/get_around_owner/models/starts_at.rb +198 -0
  132. data/lib/get_around_owner/models/{getaround_cars_index_inner.rb → unavailabilities_created.rb} +32 -58
  133. data/lib/get_around_owner/models/unavailabilities_deleted.rb +197 -0
  134. data/lib/get_around_owner/models/unavailabilities_index.rb +198 -0
  135. data/lib/get_around_owner/models/{getaround_unavailabilities_created_all_of_data.rb → unavailability.rb} +51 -65
  136. data/lib/get_around_owner/models/{getaround_user.rb → user.rb} +43 -75
  137. data/lib/get_around_owner/models/users_updated.rb +197 -0
  138. data/lib/get_around_owner/models/{getaround_webhook.rb → webhook.rb} +38 -47
  139. data/lib/get_around_owner/version.rb +5 -6
  140. data/lib/get_around_owner.rb +38 -43
  141. data/openapi.yml +2298 -0
  142. data/spec/api/cars_api_spec.rb +13 -14
  143. data/spec/api/checkins_api_spec.rb +13 -14
  144. data/spec/api/checkouts_api_spec.rb +13 -14
  145. data/spec/api/invoices_api_spec.rb +19 -20
  146. data/spec/api/messages_api_spec.rb +14 -15
  147. data/spec/api/payouts_api_spec.rb +13 -14
  148. data/spec/api/rentals_api_spec.rb +13 -14
  149. data/spec/api/unavailabilities_api_spec.rb +14 -16
  150. data/spec/api/users_api_spec.rb +9 -10
  151. data/spec/api_client_spec.rb +225 -0
  152. data/spec/base_object_spec.rb +109 -0
  153. data/spec/{models/getaround_checkins_index_inner_spec.rb → configuration_spec.rb} +26 -21
  154. data/spec/models/{getaround_reason_spec.rb → car_id_spec.rb} +18 -14
  155. data/spec/models/{getaround_unavailabilities_deleted_all_of_data_spec.rb → car_id_unavailabilities_json_body_spec.rb} +24 -20
  156. data/spec/models/{getaround_car_spec.rb → car_spec.rb} +24 -20
  157. data/spec/models/{getaround_rentals_index_inner_spec.rb → cars_index_spec.rb} +16 -18
  158. data/spec/models/{getaround_checkin_spec.rb → checkin_spec.rb} +22 -18
  159. data/spec/models/checkins_index_spec.rb +34 -0
  160. data/spec/models/{getaround_checkout_spec.rb → checkout_spec.rb} +23 -19
  161. data/spec/models/checkouts_index_spec.rb +34 -0
  162. data/spec/models/ends_at_spec.rb +34 -0
  163. data/spec/models/{getaround_invoice_spec.rb → invoice_spec.rb} +27 -31
  164. data/spec/models/invoices_index_spec.rb +34 -0
  165. data/spec/models/{getaround_message_spec.rb → message_spec.rb} +23 -19
  166. data/spec/models/messages_sent_spec.rb +34 -0
  167. data/spec/models/{getaround_payout_spec.rb → payout_spec.rb} +24 -24
  168. data/spec/models/payouts_index_spec.rb +34 -0
  169. data/spec/models/{getaround_create_messages_request_spec.rb → rental_id_messages_json_body_spec.rb} +19 -15
  170. data/spec/models/rental_invoices_index_spec.rb +34 -0
  171. data/spec/models/rental_messages_index_spec.rb +34 -0
  172. data/spec/models/{getaround_rental_spec.rb → rental_spec.rb} +26 -22
  173. data/spec/models/rentals_booked_spec.rb +34 -0
  174. data/spec/models/rentals_canceled_spec.rb +34 -0
  175. data/spec/models/rentals_car_checked_in_spec.rb +34 -0
  176. data/spec/models/rentals_car_checked_out_spec.rb +34 -0
  177. data/spec/models/rentals_car_switched_spec.rb +34 -0
  178. data/spec/models/rentals_index_spec.rb +34 -0
  179. data/spec/models/rentals_times_changed_spec.rb +34 -0
  180. data/spec/models/starts_at_spec.rb +34 -0
  181. data/spec/models/{getaround_cars_index_inner_spec.rb → unavailabilities_created_spec.rb} +16 -18
  182. data/spec/models/{getaround_payouts_index_inner_spec.rb → unavailabilities_deleted_spec.rb} +16 -18
  183. data/spec/models/unavailabilities_index_spec.rb +34 -0
  184. data/spec/models/{getaround_unavailabilities_created_all_of_data_spec.rb → unavailability_spec.rb} +22 -18
  185. data/spec/models/{getaround_user_spec.rb → user_spec.rb} +31 -27
  186. data/spec/models/users_updated_spec.rb +34 -0
  187. data/spec/models/{getaround_webhook_spec.rb → webhook_spec.rb} +21 -17
  188. data/spec/spec_helper.rb +4 -5
  189. metadata +276 -119
  190. data/lib/get_around_owner/models/getaround_checkins_index_inner.rb +0 -222
  191. data/lib/get_around_owner/models/getaround_create_unavailabilities_request.rb +0 -283
  192. data/lib/get_around_owner/models/getaround_invoice_charges_inner.rb +0 -225
  193. data/lib/get_around_owner/models/getaround_invoices_index_inner.rb +0 -223
  194. data/lib/get_around_owner/models/getaround_messages_sent.rb +0 -257
  195. data/lib/get_around_owner/models/getaround_messages_sent_all_of_data.rb +0 -225
  196. data/lib/get_around_owner/models/getaround_payout_invoices_inner.rb +0 -223
  197. data/lib/get_around_owner/models/getaround_reason.rb +0 -45
  198. data/lib/get_around_owner/models/getaround_rental_invoices_index_inner.rb +0 -223
  199. data/lib/get_around_owner/models/getaround_rental_messages_index_inner.rb +0 -223
  200. data/lib/get_around_owner/models/getaround_rentals_booked.rb +0 -257
  201. data/lib/get_around_owner/models/getaround_rentals_canceled.rb +0 -257
  202. data/lib/get_around_owner/models/getaround_rentals_car_checked_in.rb +0 -257
  203. data/lib/get_around_owner/models/getaround_rentals_car_checked_out.rb +0 -257
  204. data/lib/get_around_owner/models/getaround_rentals_car_switched.rb +0 -257
  205. data/lib/get_around_owner/models/getaround_rentals_index_inner.rb +0 -223
  206. data/lib/get_around_owner/models/getaround_rentals_times_changed.rb +0 -257
  207. data/lib/get_around_owner/models/getaround_unavailabilities_created.rb +0 -257
  208. data/lib/get_around_owner/models/getaround_unavailabilities_deleted.rb +0 -257
  209. data/lib/get_around_owner/models/getaround_unavailabilities_deleted_all_of_data.rb +0 -235
  210. data/lib/get_around_owner/models/getaround_unavailability.rb +0 -302
  211. data/lib/get_around_owner/models/getaround_users_updated.rb +0 -257
  212. data/spec/models/getaround_create_unavailabilities_request_spec.rb +0 -52
  213. data/spec/models/getaround_destroy_unavailability_request_spec.rb +0 -42
  214. data/spec/models/getaround_invoice_charges_inner_spec.rb +0 -42
  215. data/spec/models/getaround_invoices_index_inner_spec.rb +0 -36
  216. data/spec/models/getaround_messages_sent_all_of_data_spec.rb +0 -42
  217. data/spec/models/getaround_messages_sent_spec.rb +0 -48
  218. data/spec/models/getaround_payout_invoices_inner_spec.rb +0 -36
  219. data/spec/models/getaround_rental_invoices_index_inner_spec.rb +0 -36
  220. data/spec/models/getaround_rental_messages_index_inner_spec.rb +0 -36
  221. data/spec/models/getaround_rentals_booked_all_of_data_spec.rb +0 -36
  222. data/spec/models/getaround_rentals_booked_spec.rb +0 -48
  223. data/spec/models/getaround_rentals_canceled_spec.rb +0 -48
  224. data/spec/models/getaround_rentals_car_checked_in_spec.rb +0 -48
  225. data/spec/models/getaround_rentals_car_checked_out_spec.rb +0 -48
  226. data/spec/models/getaround_rentals_car_switched_spec.rb +0 -48
  227. data/spec/models/getaround_rentals_times_changed_spec.rb +0 -48
  228. data/spec/models/getaround_unavailabilities_created_spec.rb +0 -48
  229. data/spec/models/getaround_unavailabilities_deleted_spec.rb +0 -48
  230. data/spec/models/getaround_unavailability_spec.rb +0 -58
  231. data/spec/models/getaround_users_updated_all_of_data_spec.rb +0 -36
  232. data/spec/models/getaround_users_updated_spec.rb +0 -48
@@ -0,0 +1,168 @@
1
+ # GetAroundOwner::InvoicesApi
2
+
3
+ All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | --------------------------------------------------------------------- | ------------------------------------------ | ------------------------------------ |
7
+ | [**get_invoice_by_id**](InvoicesApi.md#get_invoice_by_id) | **GET** /invoices/{id}.json | Find an invoice by ID |
8
+ | [**get_invoices**](InvoicesApi.md#get_invoices) | **GET** /invoices.json | Find invoices emitted between dates |
9
+ | [**get_invoices_for_rental**](InvoicesApi.md#get_invoices_for_rental) | **GET** /rentals/{rental_id}/invoices.json | Find invoices associated to a rental |
10
+
11
+ # **get_invoice_by_id**
12
+
13
+ > Invoice get_invoice_by_id(id)
14
+
15
+ Find an invoice by ID
16
+
17
+ Find an invoice by ID
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'get_around_owner'
24
+ # setup authorization
25
+ GetAroundOwner.configure do |config|
26
+ end
27
+
28
+ api_instance = GetAroundOwner::InvoicesApi.new
29
+ id = GetAroundOwner::null.new # | ID of invoice to return
30
+
31
+
32
+ begin
33
+ #Find an invoice by ID
34
+ result = api_instance.get_invoice_by_id(id)
35
+ p result
36
+ rescue GetAroundOwner::ApiError => e
37
+ puts "Exception when calling InvoicesApi->get_invoice_by_id: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ | Name | Type | Description | Notes |
44
+ | ------ | --------------- | ----------------------- | ----- |
45
+ | **id** | [\*\*\*\*](.md) | ID of invoice to return |
46
+
47
+ ### Return type
48
+
49
+ [**Invoice**](Invoice.md)
50
+
51
+ ### Authorization
52
+
53
+ [bearerAuth](../README.md#bearerAuth)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: Not defined
58
+ - **Accept**: application/json
59
+
60
+ # **get_invoices**
61
+
62
+ > InvoicesIndex get_invoices(opts)
63
+
64
+ Find invoices emitted between dates
65
+
66
+ Find invoices emitted between dates
67
+
68
+ ### Example
69
+
70
+ ```ruby
71
+ # load the gem
72
+ require 'get_around_owner'
73
+ # setup authorization
74
+ GetAroundOwner.configure do |config|
75
+ end
76
+
77
+ api_instance = GetAroundOwner::InvoicesApi.new
78
+ opts = {
79
+ start_date: GetAroundOwner::null.new, # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
80
+ end_date: GetAroundOwner::null.new, # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
81
+ page: GetAroundOwner::null.new, # | Page number
82
+ per_page: GetAroundOwner::null.new # | Page size
83
+ }
84
+
85
+ begin
86
+ #Find invoices emitted between dates
87
+ result = api_instance.get_invoices(opts)
88
+ p result
89
+ rescue GetAroundOwner::ApiError => e
90
+ puts "Exception when calling InvoicesApi->get_invoices: #{e}"
91
+ end
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ | Name | Type | Description | Notes |
97
+ | -------------- | --------------- | ----------------------------------------------------------------------------------------------- | -------------------------- |
98
+ | **start_date** | [\*\*\*\*](.md) | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | [optional] |
99
+ | **end_date** | [\*\*\*\*](.md) | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | [optional] |
100
+ | **page** | [\*\*\*\*](.md) | Page number | [optional] |
101
+ | **per_page** | [\*\*\*\*](.md) | Page size | [optional] [default to 30] |
102
+
103
+ ### Return type
104
+
105
+ [**InvoicesIndex**](InvoicesIndex.md)
106
+
107
+ ### Authorization
108
+
109
+ [bearerAuth](../README.md#bearerAuth)
110
+
111
+ ### HTTP request headers
112
+
113
+ - **Content-Type**: Not defined
114
+ - **Accept**: application/json
115
+
116
+ # **get_invoices_for_rental**
117
+
118
+ > RentalInvoicesIndex get_invoices_for_rental(rental_id, opts)
119
+
120
+ Find invoices associated to a rental
121
+
122
+ Find invoices associated to a rental
123
+
124
+ ### Example
125
+
126
+ ```ruby
127
+ # load the gem
128
+ require 'get_around_owner'
129
+ # setup authorization
130
+ GetAroundOwner.configure do |config|
131
+ end
132
+
133
+ api_instance = GetAroundOwner::InvoicesApi.new
134
+ rental_id = GetAroundOwner::null.new # | ID of rental
135
+ opts = {
136
+ page: GetAroundOwner::null.new, # | Page number
137
+ per_page: GetAroundOwner::null.new # | Page size
138
+ }
139
+
140
+ begin
141
+ #Find invoices associated to a rental
142
+ result = api_instance.get_invoices_for_rental(rental_id, opts)
143
+ p result
144
+ rescue GetAroundOwner::ApiError => e
145
+ puts "Exception when calling InvoicesApi->get_invoices_for_rental: #{e}"
146
+ end
147
+ ```
148
+
149
+ ### Parameters
150
+
151
+ | Name | Type | Description | Notes |
152
+ | ------------- | --------------- | ------------ | -------------------------- |
153
+ | **rental_id** | [\*\*\*\*](.md) | ID of rental |
154
+ | **page** | [\*\*\*\*](.md) | Page number | [optional] |
155
+ | **per_page** | [\*\*\*\*](.md) | Page size | [optional] [default to 30] |
156
+
157
+ ### Return type
158
+
159
+ [**RentalInvoicesIndex**](RentalInvoicesIndex.md)
160
+
161
+ ### Authorization
162
+
163
+ [bearerAuth](../README.md#bearerAuth)
164
+
165
+ ### HTTP request headers
166
+
167
+ - **Content-Type**: Not defined
168
+ - **Accept**: application/json
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::InvoicesIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
data/docs/Message.md ADDED
@@ -0,0 +1,11 @@
1
+ # GetAroundOwner::Message
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | [****](.md) | The message ID |
7
+ **rental_id** | [****](.md) | ID of the related rental |
8
+ **sending_user_id** | [****](.md) | ID of the sending user |
9
+ **sent_at** | [****](.md) | Date the message was sent |
10
+ **content** | [****](.md) | Content of message, Personal information detected in messages is hidden |
11
+
@@ -0,0 +1,161 @@
1
+ # GetAroundOwner::MessagesApi
2
+
3
+ All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | --------------------------------------------------------------------- | ----------------------------------------------- | ------------------------------------------- |
7
+ | [**create_messages**](MessagesApi.md#create_messages) | **POST** /rentals/{rental_id}/messages.json | Create Message associated to a rental |
8
+ | [**get_message_by_id**](MessagesApi.md#get_message_by_id) | **GET** /rentals/{rental_id}/messages/{id}.json | Find a message by ID associated to a rental |
9
+ | [**get_messages_for_rental**](MessagesApi.md#get_messages_for_rental) | **GET** /rentals/{rental_id}/messages.json | Find messages associated to a rental |
10
+
11
+ # **create_messages**
12
+
13
+ > Message create_messages(rental_id, opts)
14
+
15
+ Create Message associated to a rental
16
+
17
+ Create Message associated to a rental
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'get_around_owner'
24
+ # setup authorization
25
+ GetAroundOwner.configure do |config|
26
+ end
27
+
28
+ api_instance = GetAroundOwner::MessagesApi.new
29
+ rental_id = GetAroundOwner::null.new # | ID of rental
30
+ opts = {
31
+ body: GetAroundOwner::RentalIdMessagesJsonBody.new # RentalIdMessagesJsonBody | Message to create
32
+ }
33
+
34
+ begin
35
+ #Create Message associated to a rental
36
+ result = api_instance.create_messages(rental_id, opts)
37
+ p result
38
+ rescue GetAroundOwner::ApiError => e
39
+ puts "Exception when calling MessagesApi->create_messages: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ | Name | Type | Description | Notes |
46
+ | ------------- | ----------------------------------------------------------- | ----------------- | ---------- |
47
+ | **rental_id** | [\*\*\*\*](.md) | ID of rental |
48
+ | **body** | [**RentalIdMessagesJsonBody**](RentalIdMessagesJsonBody.md) | Message to create | [optional] |
49
+
50
+ ### Return type
51
+
52
+ [**Message**](Message.md)
53
+
54
+ ### Authorization
55
+
56
+ [bearerAuth](../README.md#bearerAuth)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json
61
+ - **Accept**: application/json
62
+
63
+ # **get_message_by_id**
64
+
65
+ > Message get_message_by_id(rental_id, id)
66
+
67
+ Find a message by ID associated to a rental
68
+
69
+ Find a message by ID associated to a rental
70
+
71
+ ### Example
72
+
73
+ ```ruby
74
+ # load the gem
75
+ require 'get_around_owner'
76
+ # setup authorization
77
+ GetAroundOwner.configure do |config|
78
+ end
79
+
80
+ api_instance = GetAroundOwner::MessagesApi.new
81
+ rental_id = GetAroundOwner::null.new # | ID of rental
82
+ id = GetAroundOwner::null.new # | ID of message to return
83
+
84
+
85
+ begin
86
+ #Find a message by ID associated to a rental
87
+ result = api_instance.get_message_by_id(rental_id, id)
88
+ p result
89
+ rescue GetAroundOwner::ApiError => e
90
+ puts "Exception when calling MessagesApi->get_message_by_id: #{e}"
91
+ end
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ | Name | Type | Description | Notes |
97
+ | ------------- | --------------- | ----------------------- | ----- |
98
+ | **rental_id** | [\*\*\*\*](.md) | ID of rental |
99
+ | **id** | [\*\*\*\*](.md) | ID of message to return |
100
+
101
+ ### Return type
102
+
103
+ [**Message**](Message.md)
104
+
105
+ ### Authorization
106
+
107
+ [bearerAuth](../README.md#bearerAuth)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
113
+
114
+ # **get_messages_for_rental**
115
+
116
+ > RentalMessagesIndex get_messages_for_rental(rental_id)
117
+
118
+ Find messages associated to a rental
119
+
120
+ Find messages associated to a rental
121
+
122
+ ### Example
123
+
124
+ ```ruby
125
+ # load the gem
126
+ require 'get_around_owner'
127
+ # setup authorization
128
+ GetAroundOwner.configure do |config|
129
+ end
130
+
131
+ api_instance = GetAroundOwner::MessagesApi.new
132
+ rental_id = GetAroundOwner::null.new # | ID of rental
133
+
134
+
135
+ begin
136
+ #Find messages associated to a rental
137
+ result = api_instance.get_messages_for_rental(rental_id)
138
+ p result
139
+ rescue GetAroundOwner::ApiError => e
140
+ puts "Exception when calling MessagesApi->get_messages_for_rental: #{e}"
141
+ end
142
+ ```
143
+
144
+ ### Parameters
145
+
146
+ | Name | Type | Description | Notes |
147
+ | ------------- | --------------- | ------------ | ----- |
148
+ | **rental_id** | [\*\*\*\*](.md) | ID of rental |
149
+
150
+ ### Return type
151
+
152
+ [**RentalMessagesIndex**](RentalMessagesIndex.md)
153
+
154
+ ### Authorization
155
+
156
+ [bearerAuth](../README.md#bearerAuth)
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: application/json
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::MessagesSent
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
data/docs/Payout.md ADDED
@@ -0,0 +1,12 @@
1
+ # GetAroundOwner::Payout
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | [****](.md) | The payout ID |
7
+ **amount** | [****](.md) | The amount of the payout, in cents (0.01€) |
8
+ **currency** | [****](.md) | The currency of the payout (ISO 4217 alphabetic code) |
9
+ **completed_at** | [****](.md) | The ISO8601 formatted payout completion date |
10
+ **entity_type** | [****](.md) | The type of entity the payout is related to |
11
+ **invoices** | [****](.md) | An array of invoices paid by this payout | [optional]
12
+
@@ -0,0 +1,113 @@
1
+ # GetAroundOwner::PayoutsApi
2
+
3
+ All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------------------------------------------------------ | -------------------------- | ------------------------------- |
7
+ | [**get_payout_by_id**](PayoutsApi.md#get_payout_by_id) | **GET** /payouts/{id}.json | Find a payout by ID |
8
+ | [**get_payouts**](PayoutsApi.md#get_payouts) | **GET** /payouts.json | Find payouts paid between dates |
9
+
10
+ # **get_payout_by_id**
11
+
12
+ > Payout get_payout_by_id(id)
13
+
14
+ Find a payout by ID
15
+
16
+ Find a payout by ID
17
+
18
+ ### Example
19
+
20
+ ```ruby
21
+ # load the gem
22
+ require 'get_around_owner'
23
+ # setup authorization
24
+ GetAroundOwner.configure do |config|
25
+ end
26
+
27
+ api_instance = GetAroundOwner::PayoutsApi.new
28
+ id = GetAroundOwner::null.new # | ID of payout to return
29
+
30
+
31
+ begin
32
+ #Find a payout by ID
33
+ result = api_instance.get_payout_by_id(id)
34
+ p result
35
+ rescue GetAroundOwner::ApiError => e
36
+ puts "Exception when calling PayoutsApi->get_payout_by_id: #{e}"
37
+ end
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ | Name | Type | Description | Notes |
43
+ | ------ | --------------- | ---------------------- | ----- |
44
+ | **id** | [\*\*\*\*](.md) | ID of payout to return |
45
+
46
+ ### Return type
47
+
48
+ [**Payout**](Payout.md)
49
+
50
+ ### Authorization
51
+
52
+ [bearerAuth](../README.md#bearerAuth)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: application/json
58
+
59
+ # **get_payouts**
60
+
61
+ > PayoutsIndex get_payouts(start_date, end_date, opts)
62
+
63
+ Find payouts paid between dates
64
+
65
+ Find payouts paid between dates
66
+
67
+ ### Example
68
+
69
+ ```ruby
70
+ # load the gem
71
+ require 'get_around_owner'
72
+ # setup authorization
73
+ GetAroundOwner.configure do |config|
74
+ end
75
+
76
+ api_instance = GetAroundOwner::PayoutsApi.new
77
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
78
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
79
+ opts = {
80
+ page: GetAroundOwner::null.new, # | Page number
81
+ per_page: GetAroundOwner::null.new # | Page size
82
+ }
83
+
84
+ begin
85
+ #Find payouts paid between dates
86
+ result = api_instance.get_payouts(start_date, end_date, opts)
87
+ p result
88
+ rescue GetAroundOwner::ApiError => e
89
+ puts "Exception when calling PayoutsApi->get_payouts: #{e}"
90
+ end
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+ | Name | Type | Description | Notes |
96
+ | -------------- | --------------- | ----------------------------------------------------------------------------------------------- | -------------------------- |
97
+ | **start_date** | [\*\*\*\*](.md) | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
98
+ | **end_date** | [\*\*\*\*](.md) | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
99
+ | **page** | [\*\*\*\*](.md) | Page number | [optional] |
100
+ | **per_page** | [\*\*\*\*](.md) | Page size | [optional] [default to 30] |
101
+
102
+ ### Return type
103
+
104
+ [**PayoutsIndex**](PayoutsIndex.md)
105
+
106
+ ### Authorization
107
+
108
+ [bearerAuth](../README.md#bearerAuth)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: Not defined
113
+ - **Accept**: application/json
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::PayoutsIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
data/docs/Rental.md ADDED
@@ -0,0 +1,14 @@
1
+ # GetAroundOwner::Rental
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | [****](.md) | Rental's id |
7
+ **car_id** | [****](.md) | Vehicle's id |
8
+ **user_id** | [****](.md) | User id of the rental's driver |
9
+ **starts_at** | [****](.md) | Rental's started time in ISO8601 format |
10
+ **ends_at** | [****](.md) | Rental's ended time in ISO8601 format |
11
+ **booked_at** | [****](.md) | Rental's booked time in ISO8601 format |
12
+ **price** | [****](.md) | Price set by the owner (in cents 0.01€) |
13
+ **insurance_fee** | [****](.md) | Insurance amount collected (in cents 0.01€) |
14
+
@@ -0,0 +1,7 @@
1
+ # GetAroundOwner::RentalIdMessagesJsonBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [****](.md) | Content of the message (2000 characters max) |
7
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalInvoicesIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalMessagesIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,113 @@
1
+ # GetAroundOwner::RentalsApi
2
+
3
+ All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------------------------------------------------------ | -------------------------- | --------------------------------- |
7
+ | [**get_rental_by_id**](RentalsApi.md#get_rental_by_id) | **GET** /rentals/{id}.json | Find a rental by ID |
8
+ | [**get_rentals**](RentalsApi.md#get_rentals) | **GET** /rentals.json | Find rentals booked between dates |
9
+
10
+ # **get_rental_by_id**
11
+
12
+ > Rental get_rental_by_id(id)
13
+
14
+ Find a rental by ID
15
+
16
+ Find a rental by ID
17
+
18
+ ### Example
19
+
20
+ ```ruby
21
+ # load the gem
22
+ require 'get_around_owner'
23
+ # setup authorization
24
+ GetAroundOwner.configure do |config|
25
+ end
26
+
27
+ api_instance = GetAroundOwner::RentalsApi.new
28
+ id = GetAroundOwner::null.new # | ID of rental to return
29
+
30
+
31
+ begin
32
+ #Find a rental by ID
33
+ result = api_instance.get_rental_by_id(id)
34
+ p result
35
+ rescue GetAroundOwner::ApiError => e
36
+ puts "Exception when calling RentalsApi->get_rental_by_id: #{e}"
37
+ end
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ | Name | Type | Description | Notes |
43
+ | ------ | --------------- | ---------------------- | ----- |
44
+ | **id** | [\*\*\*\*](.md) | ID of rental to return |
45
+
46
+ ### Return type
47
+
48
+ [**Rental**](Rental.md)
49
+
50
+ ### Authorization
51
+
52
+ [bearerAuth](../README.md#bearerAuth)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: application/json
58
+
59
+ # **get_rentals**
60
+
61
+ > RentalsIndex get_rentals(start_date, end_date, opts)
62
+
63
+ Find rentals booked between dates
64
+
65
+ Find rentals booked between dates
66
+
67
+ ### Example
68
+
69
+ ```ruby
70
+ # load the gem
71
+ require 'get_around_owner'
72
+ # setup authorization
73
+ GetAroundOwner.configure do |config|
74
+ end
75
+
76
+ api_instance = GetAroundOwner::RentalsApi.new
77
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
78
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
79
+ opts = {
80
+ page: GetAroundOwner::null.new, # | Page number
81
+ per_page: GetAroundOwner::null.new # | Page size
82
+ }
83
+
84
+ begin
85
+ #Find rentals booked between dates
86
+ result = api_instance.get_rentals(start_date, end_date, opts)
87
+ p result
88
+ rescue GetAroundOwner::ApiError => e
89
+ puts "Exception when calling RentalsApi->get_rentals: #{e}"
90
+ end
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+ | Name | Type | Description | Notes |
96
+ | -------------- | --------------- | ----------------------------------------------------------------------------------------------- | -------------------------- |
97
+ | **start_date** | [\*\*\*\*](.md) | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
98
+ | **end_date** | [\*\*\*\*](.md) | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
99
+ | **page** | [\*\*\*\*](.md) | Page number | [optional] |
100
+ | **per_page** | [\*\*\*\*](.md) | Page size | [optional] [default to 30] |
101
+
102
+ ### Return type
103
+
104
+ [**RentalsIndex**](RentalsIndex.md)
105
+
106
+ ### Authorization
107
+
108
+ [bearerAuth](../README.md#bearerAuth)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: Not defined
113
+ - **Accept**: application/json
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsBooked
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsCanceled
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsCarCheckedIn
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsCarCheckedOut
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsCarSwitched
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+