get_around_owner 1.0.1 → 1.0.3

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 (237) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Owner API v1.json +2938 -0
  4. data/README.md +338 -181
  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 +110 -0
  10. data/docs/CarsIndex.md +6 -0
  11. data/docs/Checkin.md +10 -0
  12. data/docs/CheckinsApi.md +114 -0
  13. data/docs/CheckinsIndex.md +6 -0
  14. data/docs/Checkout.md +11 -0
  15. data/docs/CheckoutsApi.md +114 -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 +169 -0
  58. data/docs/InvoicesIndex.md +6 -0
  59. data/docs/Message.md +11 -0
  60. data/docs/MessagesApi.md +162 -0
  61. data/docs/MessagesSent.md +6 -0
  62. data/docs/Payout.md +12 -0
  63. data/docs/PayoutsApi.md +114 -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 +114 -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 +167 -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 +57 -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.gemspec +39 -0
  90. data/getaround-api.gemspec +38 -0
  91. data/git_push.sh +55 -0
  92. data/lib/{get_around_owner → getaround-api}/api/cars_api.rb +25 -41
  93. data/lib/getaround-api/api/checkins_api.rb +146 -0
  94. data/lib/getaround-api/api/checkouts_api.rb +146 -0
  95. data/lib/{get_around_owner → getaround-api}/api/invoices_api.rb +43 -66
  96. data/lib/getaround-api/api/messages_api.rb +198 -0
  97. data/lib/{get_around_owner → getaround-api}/api/payouts_api.rb +29 -45
  98. data/lib/getaround-api/api/rentals_api.rb +146 -0
  99. data/lib/getaround-api/api/unavailabilities_api.rb +208 -0
  100. data/lib/{get_around_owner/api/messages_api.rb → getaround-api/api/users_api.rb} +31 -37
  101. data/lib/{get_around_owner → getaround-api}/api_client.rb +71 -77
  102. data/lib/{get_around_owner → getaround-api}/api_error.rb +5 -6
  103. data/lib/{get_around_owner → getaround-api}/configuration.rb +13 -106
  104. data/lib/{get_around_owner/models/getaround_car.rb → getaround-api/models/car.rb} +36 -56
  105. data/lib/{get_around_owner/models/getaround_users_updated_all_of_data.rb → getaround-api/models/car_id.rb} +33 -50
  106. data/lib/{get_around_owner/models/getaround_destroy_unavailability_request.rb → getaround-api/models/car_id_unavailabilities_json_body.rb} +45 -47
  107. data/lib/{get_around_owner/models/getaround_rentals_booked_all_of_data.rb → getaround-api/models/cars_index.rb} +33 -50
  108. data/lib/{get_around_owner/models/getaround_checkin.rb → getaround-api/models/checkin.rb} +34 -65
  109. data/lib/{get_around_owner/models/getaround_rentals_index_inner.rb → getaround-api/models/checkins_index.rb} +32 -58
  110. data/lib/{get_around_owner/models/getaround_checkout.rb → getaround-api/models/checkout.rb} +35 -70
  111. data/lib/getaround-api/models/checkouts_index.rb +197 -0
  112. data/lib/getaround-api/models/ends_at.rb +198 -0
  113. data/lib/{get_around_owner/models/getaround_invoice.rb → getaround-api/models/invoice.rb} +45 -113
  114. data/lib/getaround-api/models/invoices_index.rb +198 -0
  115. data/lib/{get_around_owner/models/getaround_message.rb → getaround-api/models/message.rb} +35 -53
  116. data/lib/getaround-api/models/messages_sent.rb +197 -0
  117. data/lib/{get_around_owner/models/getaround_payout.rb → getaround-api/models/payout.rb} +37 -101
  118. data/lib/getaround-api/models/payouts_index.rb +198 -0
  119. data/lib/{get_around_owner/models/getaround_rental.rb → getaround-api/models/rental.rb} +38 -100
  120. data/lib/{get_around_owner/models/getaround_create_messages_request.rb → getaround-api/models/rental_id_messages_json_body.rb} +31 -41
  121. data/lib/getaround-api/models/rental_invoices_index.rb +198 -0
  122. data/lib/getaround-api/models/rental_messages_index.rb +198 -0
  123. data/lib/getaround-api/models/rentals_booked.rb +197 -0
  124. data/lib/getaround-api/models/rentals_canceled.rb +197 -0
  125. data/lib/getaround-api/models/rentals_car_checked_in.rb +197 -0
  126. data/lib/getaround-api/models/rentals_car_checked_out.rb +197 -0
  127. data/lib/getaround-api/models/rentals_car_switched.rb +197 -0
  128. data/lib/getaround-api/models/rentals_index.rb +198 -0
  129. data/lib/getaround-api/models/rentals_times_changed.rb +197 -0
  130. data/lib/getaround-api/models/starts_at.rb +198 -0
  131. data/lib/{get_around_owner/models/getaround_cars_index_inner.rb → getaround-api/models/unavailabilities_created.rb} +32 -58
  132. data/lib/getaround-api/models/unavailabilities_deleted.rb +197 -0
  133. data/lib/getaround-api/models/unavailabilities_index.rb +198 -0
  134. data/lib/{get_around_owner/models/getaround_unavailabilities_created_all_of_data.rb → getaround-api/models/unavailability.rb} +51 -65
  135. data/lib/{get_around_owner/models/getaround_user.rb → getaround-api/models/user.rb} +43 -75
  136. data/lib/getaround-api/models/users_updated.rb +197 -0
  137. data/lib/{get_around_owner/models/getaround_webhook.rb → getaround-api/models/webhook.rb} +38 -47
  138. data/lib/{get_around_owner → getaround-api}/version.rb +5 -6
  139. data/lib/getaround-api.rb +81 -0
  140. data/openapi.yml +2298 -0
  141. data/spec/api/cars_api_spec.rb +13 -14
  142. data/spec/api/checkins_api_spec.rb +13 -14
  143. data/spec/api/checkouts_api_spec.rb +13 -14
  144. data/spec/api/invoices_api_spec.rb +19 -20
  145. data/spec/api/messages_api_spec.rb +14 -15
  146. data/spec/api/payouts_api_spec.rb +13 -14
  147. data/spec/api/rentals_api_spec.rb +13 -14
  148. data/spec/api/unavailabilities_api_spec.rb +14 -16
  149. data/spec/api/users_api_spec.rb +9 -10
  150. data/spec/api_client_spec.rb +225 -0
  151. data/spec/base_object_spec.rb +109 -0
  152. data/spec/{models/getaround_checkins_index_inner_spec.rb → configuration_spec.rb} +26 -21
  153. data/spec/models/{getaround_reason_spec.rb → car_id_spec.rb} +18 -14
  154. data/spec/models/{getaround_unavailabilities_deleted_all_of_data_spec.rb → car_id_unavailabilities_json_body_spec.rb} +24 -20
  155. data/spec/models/{getaround_car_spec.rb → car_spec.rb} +24 -20
  156. data/spec/models/cars_index_spec.rb +34 -0
  157. data/spec/models/{getaround_checkin_spec.rb → checkin_spec.rb} +22 -18
  158. data/spec/models/checkins_index_spec.rb +34 -0
  159. data/spec/models/{getaround_checkout_spec.rb → checkout_spec.rb} +23 -19
  160. data/spec/models/checkouts_index_spec.rb +34 -0
  161. data/spec/models/ends_at_spec.rb +34 -0
  162. data/spec/models/{getaround_invoice_spec.rb → invoice_spec.rb} +27 -31
  163. data/spec/models/invoices_index_spec.rb +34 -0
  164. data/spec/models/{getaround_message_spec.rb → message_spec.rb} +23 -19
  165. data/spec/models/messages_sent_spec.rb +34 -0
  166. data/spec/models/{getaround_payout_spec.rb → payout_spec.rb} +24 -24
  167. data/spec/models/payouts_index_spec.rb +34 -0
  168. data/spec/models/{getaround_create_messages_request_spec.rb → rental_id_messages_json_body_spec.rb} +19 -15
  169. data/spec/models/{getaround_rentals_index_inner_spec.rb → rental_invoices_index_spec.rb} +16 -18
  170. data/spec/models/rental_messages_index_spec.rb +34 -0
  171. data/spec/models/{getaround_rental_spec.rb → rental_spec.rb} +26 -22
  172. data/spec/models/rentals_booked_spec.rb +34 -0
  173. data/spec/models/rentals_canceled_spec.rb +34 -0
  174. data/spec/models/rentals_car_checked_in_spec.rb +34 -0
  175. data/spec/models/rentals_car_checked_out_spec.rb +34 -0
  176. data/spec/models/rentals_car_switched_spec.rb +34 -0
  177. data/spec/models/rentals_index_spec.rb +34 -0
  178. data/spec/models/rentals_times_changed_spec.rb +34 -0
  179. data/spec/models/starts_at_spec.rb +34 -0
  180. data/spec/models/{getaround_cars_index_inner_spec.rb → unavailabilities_created_spec.rb} +16 -18
  181. data/spec/models/{getaround_payouts_index_inner_spec.rb → unavailabilities_deleted_spec.rb} +16 -18
  182. data/spec/models/unavailabilities_index_spec.rb +34 -0
  183. data/spec/models/{getaround_unavailabilities_created_all_of_data_spec.rb → unavailability_spec.rb} +22 -18
  184. data/spec/models/{getaround_user_spec.rb → user_spec.rb} +31 -27
  185. data/spec/models/users_updated_spec.rb +34 -0
  186. data/spec/models/{getaround_webhook_spec.rb → webhook_spec.rb} +21 -17
  187. data/spec/spec_helper.rb +5 -6
  188. metadata +289 -133
  189. data/lib/get_around_owner/api/checkins_api.rb +0 -82
  190. data/lib/get_around_owner/api/checkouts_api.rb +0 -82
  191. data/lib/get_around_owner/api/rentals_api.rb +0 -262
  192. data/lib/get_around_owner/api/unavailabilities_api.rb +0 -142
  193. data/lib/get_around_owner/api/users_api.rb +0 -82
  194. data/lib/get_around_owner/models/getaround_checkins_index_inner.rb +0 -222
  195. data/lib/get_around_owner/models/getaround_create_unavailabilities_request.rb +0 -283
  196. data/lib/get_around_owner/models/getaround_invoice_charges_inner.rb +0 -225
  197. data/lib/get_around_owner/models/getaround_invoices_index_inner.rb +0 -223
  198. data/lib/get_around_owner/models/getaround_messages_sent.rb +0 -257
  199. data/lib/get_around_owner/models/getaround_messages_sent_all_of_data.rb +0 -225
  200. data/lib/get_around_owner/models/getaround_payout_invoices_inner.rb +0 -223
  201. data/lib/get_around_owner/models/getaround_payouts_index_inner.rb +0 -223
  202. data/lib/get_around_owner/models/getaround_reason.rb +0 -45
  203. data/lib/get_around_owner/models/getaround_rental_invoices_index_inner.rb +0 -223
  204. data/lib/get_around_owner/models/getaround_rental_messages_index_inner.rb +0 -223
  205. data/lib/get_around_owner/models/getaround_rentals_booked.rb +0 -257
  206. data/lib/get_around_owner/models/getaround_rentals_canceled.rb +0 -257
  207. data/lib/get_around_owner/models/getaround_rentals_car_checked_in.rb +0 -257
  208. data/lib/get_around_owner/models/getaround_rentals_car_checked_out.rb +0 -257
  209. data/lib/get_around_owner/models/getaround_rentals_car_switched.rb +0 -257
  210. data/lib/get_around_owner/models/getaround_rentals_times_changed.rb +0 -257
  211. data/lib/get_around_owner/models/getaround_unavailabilities_created.rb +0 -257
  212. data/lib/get_around_owner/models/getaround_unavailabilities_deleted.rb +0 -257
  213. data/lib/get_around_owner/models/getaround_unavailabilities_deleted_all_of_data.rb +0 -235
  214. data/lib/get_around_owner/models/getaround_unavailability.rb +0 -302
  215. data/lib/get_around_owner/models/getaround_users_updated.rb +0 -257
  216. data/lib/get_around_owner.rb +0 -86
  217. data/spec/models/getaround_create_unavailabilities_request_spec.rb +0 -52
  218. data/spec/models/getaround_destroy_unavailability_request_spec.rb +0 -42
  219. data/spec/models/getaround_invoice_charges_inner_spec.rb +0 -42
  220. data/spec/models/getaround_invoices_index_inner_spec.rb +0 -36
  221. data/spec/models/getaround_messages_sent_all_of_data_spec.rb +0 -42
  222. data/spec/models/getaround_messages_sent_spec.rb +0 -48
  223. data/spec/models/getaround_payout_invoices_inner_spec.rb +0 -36
  224. data/spec/models/getaround_rental_invoices_index_inner_spec.rb +0 -36
  225. data/spec/models/getaround_rental_messages_index_inner_spec.rb +0 -36
  226. data/spec/models/getaround_rentals_booked_all_of_data_spec.rb +0 -36
  227. data/spec/models/getaround_rentals_booked_spec.rb +0 -48
  228. data/spec/models/getaround_rentals_canceled_spec.rb +0 -48
  229. data/spec/models/getaround_rentals_car_checked_in_spec.rb +0 -48
  230. data/spec/models/getaround_rentals_car_checked_out_spec.rb +0 -48
  231. data/spec/models/getaround_rentals_car_switched_spec.rb +0 -48
  232. data/spec/models/getaround_rentals_times_changed_spec.rb +0 -48
  233. data/spec/models/getaround_unavailabilities_created_spec.rb +0 -48
  234. data/spec/models/getaround_unavailabilities_deleted_spec.rb +0 -48
  235. data/spec/models/getaround_unavailability_spec.rb +0 -58
  236. data/spec/models/getaround_users_updated_all_of_data_spec.rb +0 -36
  237. data/spec/models/getaround_users_updated_spec.rb +0 -48
data/docs/CarId.md ADDED
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::CarId
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,9 @@
1
+ # GetAroundOwner::CarIdUnavailabilitiesJsonBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **starts_at** | [****](.md) | Start date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. |
7
+ **ends_at** | [****](.md) | End date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. |
8
+ **reason** | [****](.md) | Reason of the unavailability | [optional]
9
+
data/docs/CarsApi.md ADDED
@@ -0,0 +1,110 @@
1
+ # GetAroundOwner::CarsApi
2
+
3
+ All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_car_by_id**](CarsApi.md#get_car_by_id) | **GET** /cars/{id}.json | Find a car by ID
8
+ [**get_cars**](CarsApi.md#get_cars) | **GET** /cars.json | Find all cars
9
+
10
+ # **get_car_by_id**
11
+ > Car get_car_by_id(id)
12
+
13
+ Find a car by ID
14
+
15
+ Find a car by ID
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'getaround-api'
21
+ # setup authorization
22
+ GetAroundOwner.configure do |config|
23
+ end
24
+
25
+ api_instance = GetAroundOwner::CarsApi.new
26
+ id = GetAroundOwner::null.new # | ID of car to return
27
+
28
+
29
+ begin
30
+ #Find a car by ID
31
+ result = api_instance.get_car_by_id(id)
32
+ p result
33
+ rescue GetAroundOwner::ApiError => e
34
+ puts "Exception when calling CarsApi->get_car_by_id: #{e}"
35
+ end
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ Name | Type | Description | Notes
41
+ ------------- | ------------- | ------------- | -------------
42
+ **id** | [****](.md)| ID of car to return |
43
+
44
+ ### Return type
45
+
46
+ [**Car**](Car.md)
47
+
48
+ ### Authorization
49
+
50
+ [bearerAuth](../README.md#bearerAuth)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: application/json
56
+
57
+
58
+
59
+ # **get_cars**
60
+ > CarsIndex get_cars(opts)
61
+
62
+ Find all cars
63
+
64
+ Find all cars
65
+
66
+ ### Example
67
+ ```ruby
68
+ # load the gem
69
+ require 'getaround-api'
70
+ # setup authorization
71
+ GetAroundOwner.configure do |config|
72
+ end
73
+
74
+ api_instance = GetAroundOwner::CarsApi.new
75
+ opts = {
76
+ page: GetAroundOwner::null.new, # | Page number
77
+ per_page: GetAroundOwner::null.new # | Page size
78
+ }
79
+
80
+ begin
81
+ #Find all cars
82
+ result = api_instance.get_cars(opts)
83
+ p result
84
+ rescue GetAroundOwner::ApiError => e
85
+ puts "Exception when calling CarsApi->get_cars: #{e}"
86
+ end
87
+ ```
88
+
89
+ ### Parameters
90
+
91
+ Name | Type | Description | Notes
92
+ ------------- | ------------- | ------------- | -------------
93
+ **page** | [****](.md)| Page number | [optional]
94
+ **per_page** | [****](.md)| Page size | [optional] [default to 30]
95
+
96
+ ### Return type
97
+
98
+ [**CarsIndex**](CarsIndex.md)
99
+
100
+ ### Authorization
101
+
102
+ [bearerAuth](../README.md#bearerAuth)
103
+
104
+ ### HTTP request headers
105
+
106
+ - **Content-Type**: Not defined
107
+ - **Accept**: application/json
108
+
109
+
110
+
data/docs/CarsIndex.md ADDED
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::CarsIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
data/docs/Checkin.md ADDED
@@ -0,0 +1,10 @@
1
+ # GetAroundOwner::Checkin
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **rental_id** | [****](.md) | Rental's ID linked to this checkin |
7
+ **mileage** | [****](.md) | The vehicle’s mileage at checkin (in local units, eg: FR: km, GB: miles, ...) | [optional]
8
+ **fuel_level** | [****](.md) | The vehicle’s fuel level at checkin (in percentage) | [optional]
9
+ **occurred_at** | [****](.md) | Checkin's time in ISO8601 format |
10
+
@@ -0,0 +1,114 @@
1
+ # GetAroundOwner::CheckinsApi
2
+
3
+ All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_checkin_by_rental_id**](CheckinsApi.md#get_checkin_by_rental_id) | **GET** /rentals/{rental_id}/checkin.json | Find a checkin by rental ID
8
+ [**get_checkins**](CheckinsApi.md#get_checkins) | **GET** /checkins.json | List of checkins that occurred between two dates
9
+
10
+ # **get_checkin_by_rental_id**
11
+ > Checkin get_checkin_by_rental_id(rental_id)
12
+
13
+ Find a checkin by rental ID
14
+
15
+ Find a checkin by rental ID
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'getaround-api'
21
+ # setup authorization
22
+ GetAroundOwner.configure do |config|
23
+ end
24
+
25
+ api_instance = GetAroundOwner::CheckinsApi.new
26
+ rental_id = GetAroundOwner::null.new # | ID of the rental related to the checkin to return
27
+
28
+
29
+ begin
30
+ #Find a checkin by rental ID
31
+ result = api_instance.get_checkin_by_rental_id(rental_id)
32
+ p result
33
+ rescue GetAroundOwner::ApiError => e
34
+ puts "Exception when calling CheckinsApi->get_checkin_by_rental_id: #{e}"
35
+ end
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ Name | Type | Description | Notes
41
+ ------------- | ------------- | ------------- | -------------
42
+ **rental_id** | [****](.md)| ID of the rental related to the checkin to return |
43
+
44
+ ### Return type
45
+
46
+ [**Checkin**](Checkin.md)
47
+
48
+ ### Authorization
49
+
50
+ [bearerAuth](../README.md#bearerAuth)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: application/json
56
+
57
+
58
+
59
+ # **get_checkins**
60
+ > CheckinsIndex get_checkins(start_date, end_date, opts)
61
+
62
+ List of checkins that occurred between two dates
63
+
64
+ List of checkins that occurred between two dates
65
+
66
+ ### Example
67
+ ```ruby
68
+ # load the gem
69
+ require 'getaround-api'
70
+ # setup authorization
71
+ GetAroundOwner.configure do |config|
72
+ end
73
+
74
+ api_instance = GetAroundOwner::CheckinsApi.new
75
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
76
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
77
+ opts = {
78
+ page: GetAroundOwner::null.new, # | Page number
79
+ per_page: GetAroundOwner::null.new # | Page size
80
+ }
81
+
82
+ begin
83
+ #List of checkins that occurred between two dates
84
+ result = api_instance.get_checkins(start_date, end_date, opts)
85
+ p result
86
+ rescue GetAroundOwner::ApiError => e
87
+ puts "Exception when calling CheckinsApi->get_checkins: #{e}"
88
+ end
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **start_date** | [****](.md)| Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
96
+ **end_date** | [****](.md)| End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
97
+ **page** | [****](.md)| Page number | [optional]
98
+ **per_page** | [****](.md)| Page size | [optional] [default to 30]
99
+
100
+ ### Return type
101
+
102
+ [**CheckinsIndex**](CheckinsIndex.md)
103
+
104
+ ### Authorization
105
+
106
+ [bearerAuth](../README.md#bearerAuth)
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: application/json
112
+
113
+
114
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::CheckinsIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
data/docs/Checkout.md ADDED
@@ -0,0 +1,11 @@
1
+ # GetAroundOwner::Checkout
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **rental_id** | [****](.md) | Rental's ID linked to this checkout |
7
+ **mileage** | [****](.md) | The vehicle’s mileage at checkout (in local units, eg: FR: km, GB: miles, ...) | [optional]
8
+ **fuel_level** | [****](.md) | The vehicle’s fuel level at checkout (in percentage) | [optional]
9
+ **distance_driven** | [****](.md) | The number of kilometers driven during this rental |
10
+ **occurred_at** | [****](.md) | Checkout's time in ISO8601 format |
11
+
@@ -0,0 +1,114 @@
1
+ # GetAroundOwner::CheckoutsApi
2
+
3
+ All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_checkout_by_rental_id**](CheckoutsApi.md#get_checkout_by_rental_id) | **GET** /rentals/{rental_id}/checkout.json | Find a checkout by rental ID
8
+ [**get_checkouts**](CheckoutsApi.md#get_checkouts) | **GET** /checkouts.json | List of checkouts that occurred between two dates
9
+
10
+ # **get_checkout_by_rental_id**
11
+ > Checkout get_checkout_by_rental_id(rental_id)
12
+
13
+ Find a checkout by rental ID
14
+
15
+ Find a checkout by rental ID
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'getaround-api'
21
+ # setup authorization
22
+ GetAroundOwner.configure do |config|
23
+ end
24
+
25
+ api_instance = GetAroundOwner::CheckoutsApi.new
26
+ rental_id = GetAroundOwner::null.new # | ID of the rental related to the checkout to return
27
+
28
+
29
+ begin
30
+ #Find a checkout by rental ID
31
+ result = api_instance.get_checkout_by_rental_id(rental_id)
32
+ p result
33
+ rescue GetAroundOwner::ApiError => e
34
+ puts "Exception when calling CheckoutsApi->get_checkout_by_rental_id: #{e}"
35
+ end
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ Name | Type | Description | Notes
41
+ ------------- | ------------- | ------------- | -------------
42
+ **rental_id** | [****](.md)| ID of the rental related to the checkout to return |
43
+
44
+ ### Return type
45
+
46
+ [**Checkout**](Checkout.md)
47
+
48
+ ### Authorization
49
+
50
+ [bearerAuth](../README.md#bearerAuth)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: application/json
56
+
57
+
58
+
59
+ # **get_checkouts**
60
+ > CheckoutsIndex get_checkouts(start_date, end_date, opts)
61
+
62
+ List of checkouts that occurred between two dates
63
+
64
+ List of checkouts that occurred between two dates
65
+
66
+ ### Example
67
+ ```ruby
68
+ # load the gem
69
+ require 'getaround-api'
70
+ # setup authorization
71
+ GetAroundOwner.configure do |config|
72
+ end
73
+
74
+ api_instance = GetAroundOwner::CheckoutsApi.new
75
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
76
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
77
+ opts = {
78
+ page: GetAroundOwner::null.new, # | Page number
79
+ per_page: GetAroundOwner::null.new # | Page size
80
+ }
81
+
82
+ begin
83
+ #List of checkouts that occurred between two dates
84
+ result = api_instance.get_checkouts(start_date, end_date, opts)
85
+ p result
86
+ rescue GetAroundOwner::ApiError => e
87
+ puts "Exception when calling CheckoutsApi->get_checkouts: #{e}"
88
+ end
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **start_date** | [****](.md)| Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
96
+ **end_date** | [****](.md)| End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
97
+ **page** | [****](.md)| Page number | [optional]
98
+ **per_page** | [****](.md)| Page size | [optional] [default to 30]
99
+
100
+ ### Return type
101
+
102
+ [**CheckoutsIndex**](CheckoutsIndex.md)
103
+
104
+ ### Authorization
105
+
106
+ [bearerAuth](../README.md#bearerAuth)
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: application/json
112
+
113
+
114
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::CheckoutsIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
data/docs/EndsAt.md ADDED
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::EndsAt
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,28 @@
1
+ # GetAroundOwner::GetaroundCar
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | The car ID | |
8
+ | **state** | **String** | State of the vehicle can be a) active (only state where the vehicle can be booked by a user) b) inactive (temporary state when a vehicle is unavailable for rental) c) pending_approval (temporary state when a vehicle is under review for quality or other checks) and d) deleted (when a vehicle is permanently unavailable for rental) | |
9
+ | **plate_number** | **String** | Vehicle's plate number | |
10
+ | **brand** | **String** | Vehicle's brand (ex: Volkswagen) | |
11
+ | **model** | **String** | Vehicle's model (ex: Polo) | |
12
+ | **display_address** | **String** | Location where the vehicle is parked | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'get_around_owner'
18
+
19
+ instance = GetAroundOwner::GetaroundCar.new(
20
+ id: null,
21
+ state: null,
22
+ plate_number: null,
23
+ brand: null,
24
+ model: null,
25
+ display_address: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,18 @@
1
+ # GetAroundOwner::GetaroundCarsIndexInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | The car ID | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'get_around_owner'
13
+
14
+ instance = GetAroundOwner::GetaroundCarsIndexInner.new(
15
+ id: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # GetAroundOwner::GetaroundCheckin
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **rental_id** | **Integer** | Rental's ID linked to this checkin | |
8
+ | **mileage** | **Integer** | The vehicle’s mileage at checkin (in local units, eg: FR: km, GB: miles, ...) | [optional] |
9
+ | **fuel_level** | **Integer** | The vehicle’s fuel level at checkin (in percentage) | [optional] |
10
+ | **occurred_at** | **Time** | Checkin's time in ISO8601 format | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'get_around_owner'
16
+
17
+ instance = GetAroundOwner::GetaroundCheckin.new(
18
+ rental_id: null,
19
+ mileage: null,
20
+ fuel_level: null,
21
+ occurred_at: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # GetAroundOwner::GetaroundCheckinsIndexInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **rental_id** | **Integer** | The rental ID | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'get_around_owner'
13
+
14
+ instance = GetAroundOwner::GetaroundCheckinsIndexInner.new(
15
+ rental_id: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,26 @@
1
+ # GetAroundOwner::GetaroundCheckout
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **rental_id** | **Integer** | Rental's ID linked to this checkout | |
8
+ | **mileage** | **Integer** | The vehicle’s mileage at checkout (in local units, eg: FR: km, GB: miles, ...) | [optional] |
9
+ | **fuel_level** | **Integer** | The vehicle’s fuel level at checkout (in percentage) | [optional] |
10
+ | **distance_driven** | **Integer** | The number of kilometers driven during this rental | |
11
+ | **occurred_at** | **Time** | Checkout's time in ISO8601 format | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'get_around_owner'
17
+
18
+ instance = GetAroundOwner::GetaroundCheckout.new(
19
+ rental_id: null,
20
+ mileage: null,
21
+ fuel_level: null,
22
+ distance_driven: null,
23
+ occurred_at: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,18 @@
1
+ # GetAroundOwner::GetaroundCreateMessagesRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **content** | **String** | Content of the message (2000 characters max) | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'get_around_owner'
13
+
14
+ instance = GetAroundOwner::GetaroundCreateMessagesRequest.new(
15
+ content: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # GetAroundOwner::GetaroundCreateUnavailabilitiesRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **starts_at** | **Time** | Start date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. | |
8
+ | **ends_at** | **Time** | End date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. | |
9
+ | **reason** | **String** | Reason of the unavailability | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'get_around_owner'
15
+
16
+ instance = GetAroundOwner::GetaroundCreateUnavailabilitiesRequest.new(
17
+ starts_at: null,
18
+ ends_at: null,
19
+ reason: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # GetAroundOwner::GetaroundDestroyUnavailabilityRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **starts_at** | **Time** | Start date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. | |
8
+ | **ends_at** | **Time** | End date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'get_around_owner'
14
+
15
+ instance = GetAroundOwner::GetaroundDestroyUnavailabilityRequest.new(
16
+ starts_at: null,
17
+ ends_at: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,34 @@
1
+ # GetAroundOwner::GetaroundInvoice
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | The invoice ID | |
8
+ | **pdf_url** | **String** | The temporary url (lifetime: 20min) to download the pdf of the tax invoice is generated each to time you call the endpoint. Also, the 'links' variable will not be present if there is no uploaded invoice yet. This could happen if the job to generate & upload the invoice is not done yet. | |
9
+ | **product_type** | **String** | The type of product the invoice is related to | |
10
+ | **product_id** | **Integer** | The id of the product the invoice is related to | |
11
+ | **emitted_at** | **Time** | The date at which the invoice was emitted | |
12
+ | **total_price** | **Integer** | The invoice amount, which is what you will receive (or which will be debited from your account if it is negative) | |
13
+ | **currency** | **String** | The currency of the invoice amount (ISO 4217 alphabetic code) | |
14
+ | **entity_type** | **String** | The type of entity the invoice is related to | |
15
+ | **charges** | [**Array<GetaroundInvoiceChargesInner>**](GetaroundInvoiceChargesInner.md) | Array of charges | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'get_around_owner'
21
+
22
+ instance = GetAroundOwner::GetaroundInvoice.new(
23
+ id: null,
24
+ pdf_url: null,
25
+ product_type: null,
26
+ product_id: null,
27
+ emitted_at: null,
28
+ total_price: null,
29
+ currency: null,
30
+ entity_type: null,
31
+ charges: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,20 @@
1
+ # GetAroundOwner::GetaroundInvoiceChargesInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**GetaroundAnyOf**](GetaroundAnyOf.md) | | [optional] |
8
+ | **amount** | **Integer** | The charge's amount | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'get_around_owner'
14
+
15
+ instance = GetAroundOwner::GetaroundInvoiceChargesInner.new(
16
+ type: null,
17
+ amount: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # GetAroundOwner::GetaroundInvoicesIndexInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | The invoice ID | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'get_around_owner'
13
+
14
+ instance = GetAroundOwner::GetaroundInvoicesIndexInner.new(
15
+ id: null
16
+ )
17
+ ```
18
+