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/README.md CHANGED
@@ -1,226 +1,391 @@
1
- # get_around_owner
1
+ # getaround-api
2
2
 
3
3
  GetAroundOwner - the Ruby gem for the Getaround Owner API
4
4
 
5
- # Quick Start
5
+ # Quick Start The Owner API uses the JSON format, and must be accessed over a [secure connection](https://en.wikipedia.org/wiki/HTTPS). Let’s assume that the access token provided by your account manager is “TOKEN”. Here’s how to get the list of ids of all your invoices from the first week of August with a shell script: ```bash query=\"end_date=2018-08-08T00%3A00%3A00%2B00%3A00&start_date=2018-08-01T00%3A00%3A00%2B00%3A00\" curl -i \"https://api-eu.getaround.com/owner/v1/invoices?${query}\" \\ -H \"Authorization: Bearer TOKEN\" \\ -H \"Accept:application/json\" \\ -H \"Content-Type:application/json\" ``` And here’s how to get the invoice with the id 12345: ```bash curl -i \"https://api-eu.getaround.com/owner/v1/invoices/12345\" \\ -H \"Authorization: Bearer TOKEN\" \\ -H \"Accept: application/json\" \\ -H \"Content-Type: application/json\"\" ``` See the [endpoints section](#tag/Invoices) of this guide for details about the response format. Dates in request params should follow the ISO 8601 standard. # Authentication All requests must be authenticated with a [bearer token header](https://tools.ietf.org/html/rfc6750#section-2.1). You token will be sent to you by your account manager. Unauthenticated requests will return a 401 status. # Pagination The page number and the number of items per page can be set with the “page” and “per_page” params. For example, this request will return the second page of invoices, and 50 invoices per page: `https://api-eu.getaround.com/owner/v1/invoices?page=2&per_page=50` Both of these params are optional. The default page size is 30 items. The Getaround Owner API follows the [RFC 8288 convention](https://datatracker.ietf.org/doc/html/rfc8288) of using the `Link` header to provide the `next` page URL. Please don't build the pagination URLs yourself. The `next` page will be missing when you are requesting the last available page. Here's an example response header from requesting the second page of invoices `https://api-eu.getaround.com/owner/v1/invoices?page=2&per_page=50` ``` Link: <https://api-eu.getaround.com/owner/v1/invoices?page=3&per_page=50>; rel=\"next\" ``` # Throttling policy and Date range limitation We have throttling policy that prevents you to perform more than 100 requests per min from the same IP. Also, there is a limitation on the size of the range of dates given in params in some requests. All requests that need start_date and end_date, do not accept a range bigger than 30 days. # Webhooks Getaround can send webhook events that notify your application when certain events happen on your account. This is especially useful to follow the lifecycle of rentals, tracking for example bookings or cancellations. ### Setup To set up an endpoint, you need to define a route on your server for receiving events, and then <a href=\"mailto:owner-api@getaround.com\">ask Getaround</a> to add this URL to your account. To acknowledge receipt of a event, your endpoint must: - Return a `2xx` HTTP status code. - Be a secure `https` endpoint with a valid SSL certificate. ### Testing Once Getaround has set up the endpoint, and it is properly configured as described above, a test `ping` event can be sent by clicking the button below: <form action=\"/docs/api/owner/fire_ping_webhook\" method=\"post\"><input type=\"submit\" value=\"Send Ping Event\"></form> You should receive the following JSON payload: ```json { \"data\": { \"ping\": \"pong\" }, \"type\": \"ping\", \"occurred_at\": \"2019-04-18T08:30:05Z\" } ``` ### Retries Webhook deliveries will be attempted for up to three days with an exponential back off. After that point the delivery will be abandoned. ### Verifying Signatures Getaround will also provide you with a secret token, which is used to create a hash signature with each payload. This hash signature is passed along with each request in the headers as `X-Drivy-Signature`. Suppose you have a basic server listening to webhooks that looks like this: ```ruby require 'sinatra' require 'json' post '/payload' do push = JSON.parse(params[:payload]) \"I got some JSON: #{push.inspect}\" end ``` The goal is to compute a hash using your secret token, and ensure that the hash from Getaround matches. Getaround uses an HMAC hexdigest to compute the hash, so you could change your server to look a little like this: ```ruby post '/payload' do request.body.rewind payload_body = request.body.read verify_signature(payload_body) push = JSON.parse(params[:payload]) \"I got some JSON: #{push.inspect}\" end def verify_signature(payload_body) signature = 'sha1=' + OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha1'), ENV['SECRET_TOKEN'], payload_body) return halt 500, \"Signatures didn't match!\" unless Rack::Utils.secure_compare(signature, request.env['HTTP_X_DRIVY_SIGNATURE']) end ``` Obviously, your language and server implementations may differ from this code. There are a couple of important things to point out, however: No matter which implementation you use, the hash signature starts with `sha1=`, using the key of your secret token and your payload body. Using a plain `==` operator is not advised. A method like secure_compare performs a \"constant time\" string comparison, which renders it safe from certain timing attacks against regular equality operators. ### Best Practices - **Acknowledge events immediately**. If your webhook script performs complex logic, or makes network calls, it’s possible that the script would time out before Getaround sees its complete execution. Ideally, your webhook handler code (acknowledging receipt of an event by returning a `2xx` status code) is separate of any other logic you do for that event. - **Handle duplicate events**. Webhook endpoints might occasionally receive the same event more than once. We advise you to guard against duplicated event receipts by making your event processing idempotent. One way of doing this is logging the events you’ve processed, and then not processing already-logged events. - **Do not expect events in order**. Getaround does not guarantee delivery of events in the order in which they are generated. Your endpoint should therefore handle this accordingly. We do provide an `occurred_at` timestamp for each event, though, to help reconcile ordering.
6
6
 
7
- The Owner API uses the JSON format, and must be accessed over a [secure connection](https://en.wikipedia.org/wiki/HTTPS).
7
+ This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
- Let’s assume that the access token provided by your account manager is “TOKEN”.
10
-
11
- Here’s how to get the list of ids of all your invoices from the first week of August with a shell script:
9
+ - API version: 1.0.0
10
+ - Package version: 1.0.2
11
+ - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
12
12
 
13
- ```bash
14
- query=\"end_date=2018-08-08T00%3A00%3A00%2B00%3A00&start_date=2018-08-01T00%3A00%3A00%2B00%3A00\"
13
+ ## Installation
15
14
 
16
- curl -i \"https://api-eu.getaround.com/owner/v1/invoices?${query}\" \\
17
- -H \"Authorization: Bearer TOKEN\" \\
18
- -H \"Accept:application/json\" \\
19
- -H \"Content-Type:application/json\"
20
- ```
15
+ ### Build a gem
21
16
 
22
- And here’s how to get the invoice with the id 12345:
17
+ To build the Ruby code into a gem:
23
18
 
24
- ```bash
25
- curl -i \"https://api-eu.getaround.com/owner/v1/invoices/12345\" \\
26
- -H \"Authorization: Bearer TOKEN\" \\
27
- -H \"Accept: application/json\" \\
28
- -H \"Content-Type: application/json\"\"
19
+ ```shell
20
+ gem build getaround-api.gemspec
29
21
  ```
30
22
 
31
- See the [endpoints section](#tag/Invoices) of this guide for details about the response format.
32
-
33
- Dates in request params should follow the ISO 8601 standard.
34
-
35
-
36
- # Authentication
23
+ Then either install the gem locally:
37
24
 
38
- All requests must be authenticated with a [bearer token header](https://tools.ietf.org/html/rfc6750#section-2.1). You token will be sent to you by your account manager.
25
+ ```shell
26
+ gem install ./getaround-api-1.0.2.gem
27
+ ```
28
+ (for development, run `gem install --dev ./getaround-api-1.0.2.gem` to install the development dependencies)
39
29
 
40
- Unauthenticated requests will return a 401 status.
30
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
41
31
 
32
+ Finally add this to the Gemfile:
42
33
 
43
- # Pagination
34
+ gem 'getaround-api', '~> 1.0.2'
44
35
 
45
- The page number and the number of items per page can be set with the “page” and “per_page” params.
36
+ ### Install from Git
46
37
 
47
- For example, this request will return the second page of invoices, and 50 invoices per page:
38
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
48
39
 
49
- `https://api-eu.getaround.com/owner/v1/invoices?page=2&per_page=50`
40
+ gem 'getaround-api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
50
41
 
51
- Both of these params are optional. The default page size is 30 items.
42
+ ### Include the Ruby code directly
52
43
 
53
- The Getaround Owner API follows the [RFC 8288 convention](https://datatracker.ietf.org/doc/html/rfc8288) of using the `Link` header to provide the `next` page URL. Please don't build the pagination URLs yourself.
54
- The `next` page will be missing when you are requesting the last available page.
44
+ Include the Ruby code directly using `-I` as follows:
55
45
 
56
- Here's an example response header from requesting the second page of invoices `https://api-eu.getaround.com/owner/v1/invoices?page=2&per_page=50`
57
- ```
58
- Link: <https://api-eu.getaround.com/owner/v1/invoices?page=3&per_page=50>; rel=\"next\"
46
+ ```shell
47
+ ruby -Ilib script.rb
59
48
  ```
60
49
 
50
+ ## Getting Started
61
51
 
62
- # Throttling policy and Date range limitation
63
-
64
- We have throttling policy that prevents you to perform more than 100 requests per min from the same IP.
52
+ Please follow the [installation](#installation) procedure and then run the following code:
53
+ ```ruby
54
+ # Load the gem
55
+ require 'getaround-api'
56
+ # Setup authorization
57
+ GetAroundOwner.configure do |config|
58
+ end
65
59
 
66
- Also, there is a limitation on the size of the range of dates given in params in some requests.
60
+ api_instance = GetAroundOwner::CarsApi.new
61
+ id = GetAroundOwner::null.new # | ID of car to return
67
62
 
68
- All requests that need start_date and end_date, do not accept a range bigger than 30 days.
69
63
 
64
+ begin
65
+ #Find a car by ID
66
+ result = api_instance.get_car_by_id(id)
67
+ p result
68
+ rescue GetAroundOwner::ApiError => e
69
+ puts "Exception when calling CarsApi->get_car_by_id: #{e}"
70
+ end
71
+ # Setup authorization
72
+ GetAroundOwner.configure do |config|
73
+ end
70
74
 
71
- # Webhooks
75
+ api_instance = GetAroundOwner::CarsApi.new
76
+ opts = {
77
+ page: GetAroundOwner::null.new, # | Page number
78
+ per_page: GetAroundOwner::null.new # | Page size
79
+ }
72
80
 
73
- Getaround can send webhook events that notify your application when certain events happen on your account. This is especially useful to follow the lifecycle of rentals, tracking for example bookings or cancellations.
81
+ begin
82
+ #Find all cars
83
+ result = api_instance.get_cars(opts)
84
+ p result
85
+ rescue GetAroundOwner::ApiError => e
86
+ puts "Exception when calling CarsApi->get_cars: #{e}"
87
+ end
88
+ # Setup authorization
89
+ GetAroundOwner.configure do |config|
90
+ end
74
91
 
75
- ### Setup
92
+ api_instance = GetAroundOwner::CheckinsApi.new
93
+ rental_id = GetAroundOwner::null.new # | ID of the rental related to the checkin to return
76
94
 
77
- To set up an endpoint, you need to define a route on your server for receiving events, and then <a href=\"mailto:owner-api@getaround.com\">ask Getaround</a> to add this URL to your account.
78
95
 
79
- To acknowledge receipt of a event, your endpoint must:
96
+ begin
97
+ #Find a checkin by rental ID
98
+ result = api_instance.get_checkin_by_rental_id(rental_id)
99
+ p result
100
+ rescue GetAroundOwner::ApiError => e
101
+ puts "Exception when calling CheckinsApi->get_checkin_by_rental_id: #{e}"
102
+ end
103
+ # Setup authorization
104
+ GetAroundOwner.configure do |config|
105
+ end
80
106
 
81
- - Return a `2xx` HTTP status code.
82
- - Be a secure `https` endpoint with a valid SSL certificate.
107
+ api_instance = GetAroundOwner::CheckinsApi.new
108
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
109
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
110
+ opts = {
111
+ page: GetAroundOwner::null.new, # | Page number
112
+ per_page: GetAroundOwner::null.new # | Page size
113
+ }
83
114
 
84
- ### Testing
115
+ begin
116
+ #List of checkins that occurred between two dates
117
+ result = api_instance.get_checkins(start_date, end_date, opts)
118
+ p result
119
+ rescue GetAroundOwner::ApiError => e
120
+ puts "Exception when calling CheckinsApi->get_checkins: #{e}"
121
+ end
122
+ # Setup authorization
123
+ GetAroundOwner.configure do |config|
124
+ end
85
125
 
86
- Once Getaround has set up the endpoint, and it is properly configured as described above, a test `ping` event can be sent by clicking the button below:
126
+ api_instance = GetAroundOwner::CheckoutsApi.new
127
+ rental_id = GetAroundOwner::null.new # | ID of the rental related to the checkout to return
87
128
 
88
- <form action=\"/docs/api/owner/fire_ping_webhook\" method=\"post\"><input type=\"submit\" value=\"Send Ping Event\"></form>
89
129
 
90
- You should receive the following JSON payload:
130
+ begin
131
+ #Find a checkout by rental ID
132
+ result = api_instance.get_checkout_by_rental_id(rental_id)
133
+ p result
134
+ rescue GetAroundOwner::ApiError => e
135
+ puts "Exception when calling CheckoutsApi->get_checkout_by_rental_id: #{e}"
136
+ end
137
+ # Setup authorization
138
+ GetAroundOwner.configure do |config|
139
+ end
91
140
 
92
- ```json
93
- {
94
- \"data\": {
95
- \"ping\": \"pong\"
96
- },
97
- \"type\": \"ping\",
98
- \"occurred_at\": \"2019-04-18T08:30:05Z\"
141
+ api_instance = GetAroundOwner::CheckoutsApi.new
142
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
143
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
144
+ opts = {
145
+ page: GetAroundOwner::null.new, # | Page number
146
+ per_page: GetAroundOwner::null.new # | Page size
99
147
  }
100
- ```
101
148
 
102
- ### Retries
103
-
104
- Webhook deliveries will be attempted for up to three days with an exponential back off. After that point the delivery will be abandoned.
105
-
106
- ### Verifying Signatures
107
-
108
- Getaround will also provide you with a secret token, which is used to create a hash signature with each payload.
149
+ begin
150
+ #List of checkouts that occurred between two dates
151
+ result = api_instance.get_checkouts(start_date, end_date, opts)
152
+ p result
153
+ rescue GetAroundOwner::ApiError => e
154
+ puts "Exception when calling CheckoutsApi->get_checkouts: #{e}"
155
+ end
156
+ # Setup authorization
157
+ GetAroundOwner.configure do |config|
158
+ end
109
159
 
110
- This hash signature is passed along with each request in the headers as `X-Drivy-Signature`. Suppose you have a basic server listening to webhooks that looks like this:
160
+ api_instance = GetAroundOwner::InvoicesApi.new
161
+ id = GetAroundOwner::null.new # | ID of invoice to return
111
162
 
112
- ```ruby
113
- require 'sinatra'
114
- require 'json'
115
163
 
116
- post '/payload' do
117
- push = JSON.parse(params[:payload])
118
- \"I got some JSON: \#{push.inspect}\"
164
+ begin
165
+ #Find an invoice by ID
166
+ result = api_instance.get_invoice_by_id(id)
167
+ p result
168
+ rescue GetAroundOwner::ApiError => e
169
+ puts "Exception when calling InvoicesApi->get_invoice_by_id: #{e}"
170
+ end
171
+ # Setup authorization
172
+ GetAroundOwner.configure do |config|
119
173
  end
120
- ```
121
174
 
122
- The goal is to compute a hash using your secret token, and ensure that the hash from Getaround matches. Getaround uses an HMAC hexdigest to compute the hash, so you could change your server to look a little like this:
175
+ api_instance = GetAroundOwner::InvoicesApi.new
176
+ opts = {
177
+ start_date: GetAroundOwner::null.new, # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
178
+ end_date: GetAroundOwner::null.new, # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
179
+ page: GetAroundOwner::null.new, # | Page number
180
+ per_page: GetAroundOwner::null.new # | Page size
181
+ }
123
182
 
124
- ```ruby
125
- post '/payload' do
126
- request.body.rewind
127
- payload_body = request.body.read
128
- verify_signature(payload_body)
129
- push = JSON.parse(params[:payload])
130
- \"I got some JSON: \#{push.inspect}\"
183
+ begin
184
+ #Find invoices emitted between dates
185
+ result = api_instance.get_invoices(opts)
186
+ p result
187
+ rescue GetAroundOwner::ApiError => e
188
+ puts "Exception when calling InvoicesApi->get_invoices: #{e}"
131
189
  end
132
-
133
- def verify_signature(payload_body)
134
- signature = 'sha1=' + OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha1'), ENV['SECRET_TOKEN'], payload_body)
135
- return halt 500, \"Signatures didn't match!\" unless Rack::Utils.secure_compare(signature, request.env['HTTP_X_DRIVY_SIGNATURE'])
190
+ # Setup authorization
191
+ GetAroundOwner.configure do |config|
136
192
  end
137
- ```
138
-
139
- Obviously, your language and server implementations may differ from this code. There are a couple of important things to point out, however:
140
193
 
141
- No matter which implementation you use, the hash signature starts with `sha1=`, using the key of your secret token and your payload body.
194
+ api_instance = GetAroundOwner::InvoicesApi.new
195
+ rental_id = GetAroundOwner::null.new # | ID of rental
196
+ opts = {
197
+ page: GetAroundOwner::null.new, # | Page number
198
+ per_page: GetAroundOwner::null.new # | Page size
199
+ }
142
200
 
143
- Using a plain `==` operator is not advised. A method like secure_compare performs a \"constant time\" string comparison, which renders it safe from certain timing attacks against regular equality operators.
201
+ begin
202
+ #Find invoices associated to a rental
203
+ result = api_instance.get_invoices_for_rental(rental_id, opts)
204
+ p result
205
+ rescue GetAroundOwner::ApiError => e
206
+ puts "Exception when calling InvoicesApi->get_invoices_for_rental: #{e}"
207
+ end
208
+ # Setup authorization
209
+ GetAroundOwner.configure do |config|
210
+ end
144
211
 
145
- ### Best Practices
212
+ api_instance = GetAroundOwner::MessagesApi.new
213
+ rental_id = GetAroundOwner::null.new # | ID of rental
214
+ opts = {
215
+ body: GetAroundOwner::RentalIdMessagesJsonBody.new # RentalIdMessagesJsonBody | Message to create
216
+ }
146
217
 
147
- - **Acknowledge events immediately**. If your webhook script performs complex logic, or makes network calls, it’s possible that the script would time out before Getaround sees its complete execution. Ideally, your webhook handler code (acknowledging receipt of an event by returning a `2xx` status code) is separate of any other logic you do for that event.
148
- - **Handle duplicate events**. Webhook endpoints might occasionally receive the same event more than once. We advise you to guard against duplicated event receipts by making your event processing idempotent. One way of doing this is logging the events you’ve processed, and then not processing already-logged events.
149
- - **Do not expect events in order**. Getaround does not guarantee delivery of events in the order in which they are generated. Your endpoint should therefore handle this accordingly. We do provide an `occurred_at` timestamp for each event, though, to help reconcile ordering.
218
+ begin
219
+ #Create Message associated to a rental
220
+ result = api_instance.create_messages(rental_id, opts)
221
+ p result
222
+ rescue GetAroundOwner::ApiError => e
223
+ puts "Exception when calling MessagesApi->create_messages: #{e}"
224
+ end
225
+ # Setup authorization
226
+ GetAroundOwner.configure do |config|
227
+ end
150
228
 
229
+ api_instance = GetAroundOwner::MessagesApi.new
230
+ rental_id = GetAroundOwner::null.new # | ID of rental
231
+ id = GetAroundOwner::null.new # | ID of message to return
151
232
 
152
- This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
153
233
 
154
- - API version: 1.0.0
155
- - Package version: 1.0.0
156
- - Generator version: 7.6.0
157
- - Build package: org.openapitools.codegen.languages.RubyClientCodegen
234
+ begin
235
+ #Find a message by ID associated to a rental
236
+ result = api_instance.get_message_by_id(rental_id, id)
237
+ p result
238
+ rescue GetAroundOwner::ApiError => e
239
+ puts "Exception when calling MessagesApi->get_message_by_id: #{e}"
240
+ end
241
+ # Setup authorization
242
+ GetAroundOwner.configure do |config|
243
+ end
158
244
 
159
- ## Installation
245
+ api_instance = GetAroundOwner::MessagesApi.new
246
+ rental_id = GetAroundOwner::null.new # | ID of rental
160
247
 
161
- ### Build a gem
162
248
 
163
- To build the Ruby code into a gem:
249
+ begin
250
+ #Find messages associated to a rental
251
+ result = api_instance.get_messages_for_rental(rental_id)
252
+ p result
253
+ rescue GetAroundOwner::ApiError => e
254
+ puts "Exception when calling MessagesApi->get_messages_for_rental: #{e}"
255
+ end
256
+ # Setup authorization
257
+ GetAroundOwner.configure do |config|
258
+ end
164
259
 
165
- ```shell
166
- gem build get_around_owner.gemspec
167
- ```
260
+ api_instance = GetAroundOwner::PayoutsApi.new
261
+ id = GetAroundOwner::null.new # | ID of payout to return
168
262
 
169
- Then either install the gem locally:
170
263
 
171
- ```shell
172
- gem install ./get_around_owner-1.0.0.gem
173
- ```
264
+ begin
265
+ #Find a payout by ID
266
+ result = api_instance.get_payout_by_id(id)
267
+ p result
268
+ rescue GetAroundOwner::ApiError => e
269
+ puts "Exception when calling PayoutsApi->get_payout_by_id: #{e}"
270
+ end
271
+ # Setup authorization
272
+ GetAroundOwner.configure do |config|
273
+ end
174
274
 
175
- (for development, run `gem install --dev ./get_around_owner-1.0.0.gem` to install the development dependencies)
275
+ api_instance = GetAroundOwner::PayoutsApi.new
276
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
277
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
278
+ opts = {
279
+ page: GetAroundOwner::null.new, # | Page number
280
+ per_page: GetAroundOwner::null.new # | Page size
281
+ }
176
282
 
177
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
283
+ begin
284
+ #Find payouts paid between dates
285
+ result = api_instance.get_payouts(start_date, end_date, opts)
286
+ p result
287
+ rescue GetAroundOwner::ApiError => e
288
+ puts "Exception when calling PayoutsApi->get_payouts: #{e}"
289
+ end
290
+ # Setup authorization
291
+ GetAroundOwner.configure do |config|
292
+ end
178
293
 
179
- Finally add this to the Gemfile:
294
+ api_instance = GetAroundOwner::RentalsApi.new
295
+ id = GetAroundOwner::null.new # | ID of rental to return
180
296
 
181
- gem 'get_around_owner', '~> 1.0.0'
182
297
 
183
- ### Install from Git
298
+ begin
299
+ #Find a rental by ID
300
+ result = api_instance.get_rental_by_id(id)
301
+ p result
302
+ rescue GetAroundOwner::ApiError => e
303
+ puts "Exception when calling RentalsApi->get_rental_by_id: #{e}"
304
+ end
305
+ # Setup authorization
306
+ GetAroundOwner.configure do |config|
307
+ end
184
308
 
185
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
309
+ api_instance = GetAroundOwner::RentalsApi.new
310
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
311
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
312
+ opts = {
313
+ page: GetAroundOwner::null.new, # | Page number
314
+ per_page: GetAroundOwner::null.new # | Page size
315
+ }
186
316
 
187
- gem 'get_around_owner', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
317
+ begin
318
+ #Find rentals booked between dates
319
+ result = api_instance.get_rentals(start_date, end_date, opts)
320
+ p result
321
+ rescue GetAroundOwner::ApiError => e
322
+ puts "Exception when calling RentalsApi->get_rentals: #{e}"
323
+ end
324
+ # Setup authorization
325
+ GetAroundOwner.configure do |config|
326
+ end
188
327
 
189
- ### Include the Ruby code directly
328
+ api_instance = GetAroundOwner::UnavailabilitiesApi.new
329
+ car_id = GetAroundOwner::null.new # | ID of car
330
+ opts = {
331
+ body: GetAroundOwner::CarIdUnavailabilitiesJsonBody.new # CarIdUnavailabilitiesJsonBody | Unavailability to create
332
+ }
190
333
 
191
- Include the Ruby code directly using `-I` as follows:
334
+ begin
335
+ #Create Unavailability related to a car between dates
336
+ api_instance.create_unavailabilities(car_id, opts)
337
+ rescue GetAroundOwner::ApiError => e
338
+ puts "Exception when calling UnavailabilitiesApi->create_unavailabilities: #{e}"
339
+ end
340
+ # Setup authorization
341
+ GetAroundOwner.configure do |config|
342
+ end
192
343
 
193
- ```shell
194
- ruby -Ilib script.rb
195
- ```
344
+ api_instance = GetAroundOwner::UnavailabilitiesApi.new
345
+ car_id = GetAroundOwner::null.new # | ID of car
196
346
 
197
- ## Getting Started
198
347
 
199
- Please follow the [installation](#installation) procedure and then run the following code:
348
+ begin
349
+ #Destroy Unavailability related to a car between dates
350
+ api_instance.destroy_unavailability(car_id)
351
+ rescue GetAroundOwner::ApiError => e
352
+ puts "Exception when calling UnavailabilitiesApi->destroy_unavailability: #{e}"
353
+ end
354
+ # Setup authorization
355
+ GetAroundOwner.configure do |config|
356
+ end
200
357
 
201
- ```ruby
202
- # Load the gem
203
- require 'get_around_owner'
358
+ api_instance = GetAroundOwner::UnavailabilitiesApi.new
359
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
360
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
361
+ car_id = GetAroundOwner::null.new # | ID of the car
362
+ opts = {
363
+ page: GetAroundOwner::null.new, # | Page number
364
+ per_page: GetAroundOwner::null.new # | Page size
365
+ }
204
366
 
367
+ begin
368
+ #Find Unavailabilities related to a car between dates
369
+ result = api_instance.get_unavailabilities_for_car(start_date, end_date, car_id, opts)
370
+ p result
371
+ rescue GetAroundOwner::ApiError => e
372
+ puts "Exception when calling UnavailabilitiesApi->get_unavailabilities_for_car: #{e}"
373
+ end
205
374
  # Setup authorization
206
375
  GetAroundOwner.configure do |config|
207
- # Configure Bearer authorization: bearerAuth
208
- config.access_token = 'YOUR_BEARER_TOKEN'
209
- # Configure a proc to get access tokens in lieu of the static access_token configuration
210
- config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
211
376
  end
212
377
 
213
- api_instance = GetAroundOwner::CarsApi.new
214
- id = '1' # String | ID of car to return
378
+ api_instance = GetAroundOwner::UsersApi.new
379
+ id = GetAroundOwner::null.new # | ID of user to return
380
+
215
381
 
216
382
  begin
217
- #Find a car by ID
218
- result = api_instance.get_car_by_id(id)
383
+ #Find a user by ID (Users are customers who rent one of your cars)
384
+ result = api_instance.get_user_by_id(id)
219
385
  p result
220
386
  rescue GetAroundOwner::ApiError => e
221
- puts "Exception when calling CarsApi->get_car_by_id: #{e}"
387
+ puts "Exception when calling UsersApi->get_user_by_id: #{e}"
222
388
  end
223
-
224
389
  ```
225
390
 
226
391
  ## Documentation for API Endpoints
@@ -250,54 +415,46 @@ Class | Method | HTTP request | Description
250
415
  *GetAroundOwner::UnavailabilitiesApi* | [**get_unavailabilities_for_car**](docs/UnavailabilitiesApi.md#get_unavailabilities_for_car) | **GET** /cars/{car_id}/unavailabilities.json | Find Unavailabilities related to a car between dates
251
416
  *GetAroundOwner::UsersApi* | [**get_user_by_id**](docs/UsersApi.md#get_user_by_id) | **GET** /users/{id}.json | Find a user by ID (Users are customers who rent one of your cars)
252
417
 
253
-
254
418
  ## Documentation for Models
255
419
 
256
- - [GetAroundOwner::GetaroundCar](docs/GetaroundCar.md)
257
- - [GetAroundOwner::GetaroundCarsIndexInner](docs/GetaroundCarsIndexInner.md)
258
- - [GetAroundOwner::GetaroundCheckin](docs/GetaroundCheckin.md)
259
- - [GetAroundOwner::GetaroundCheckinsIndexInner](docs/GetaroundCheckinsIndexInner.md)
260
- - [GetAroundOwner::GetaroundCheckout](docs/GetaroundCheckout.md)
261
- - [GetAroundOwner::GetaroundCreateMessagesRequest](docs/GetaroundCreateMessagesRequest.md)
262
- - [GetAroundOwner::GetaroundCreateUnavailabilitiesRequest](docs/GetaroundCreateUnavailabilitiesRequest.md)
263
- - [GetAroundOwner::GetaroundDestroyUnavailabilityRequest](docs/GetaroundDestroyUnavailabilityRequest.md)
264
- - [GetAroundOwner::GetaroundInvoice](docs/GetaroundInvoice.md)
265
- - [GetAroundOwner::GetaroundInvoiceChargesInner](docs/GetaroundInvoiceChargesInner.md)
266
- - [GetAroundOwner::GetaroundInvoicesIndexInner](docs/GetaroundInvoicesIndexInner.md)
267
- - [GetAroundOwner::GetaroundMessage](docs/GetaroundMessage.md)
268
- - [GetAroundOwner::GetaroundMessagesSent](docs/GetaroundMessagesSent.md)
269
- - [GetAroundOwner::GetaroundMessagesSentAllOfData](docs/GetaroundMessagesSentAllOfData.md)
270
- - [GetAroundOwner::GetaroundPayout](docs/GetaroundPayout.md)
271
- - [GetAroundOwner::GetaroundPayoutInvoicesInner](docs/GetaroundPayoutInvoicesInner.md)
272
- - [GetAroundOwner::GetaroundPayoutsIndexInner](docs/GetaroundPayoutsIndexInner.md)
273
- - [GetAroundOwner::GetaroundReason](docs/GetaroundReason.md)
274
- - [GetAroundOwner::GetaroundRental](docs/GetaroundRental.md)
275
- - [GetAroundOwner::GetaroundRentalInvoicesIndexInner](docs/GetaroundRentalInvoicesIndexInner.md)
276
- - [GetAroundOwner::GetaroundRentalMessagesIndexInner](docs/GetaroundRentalMessagesIndexInner.md)
277
- - [GetAroundOwner::GetaroundRentalsBooked](docs/GetaroundRentalsBooked.md)
278
- - [GetAroundOwner::GetaroundRentalsBookedAllOfData](docs/GetaroundRentalsBookedAllOfData.md)
279
- - [GetAroundOwner::GetaroundRentalsCanceled](docs/GetaroundRentalsCanceled.md)
280
- - [GetAroundOwner::GetaroundRentalsCarCheckedIn](docs/GetaroundRentalsCarCheckedIn.md)
281
- - [GetAroundOwner::GetaroundRentalsCarCheckedOut](docs/GetaroundRentalsCarCheckedOut.md)
282
- - [GetAroundOwner::GetaroundRentalsCarSwitched](docs/GetaroundRentalsCarSwitched.md)
283
- - [GetAroundOwner::GetaroundRentalsIndexInner](docs/GetaroundRentalsIndexInner.md)
284
- - [GetAroundOwner::GetaroundRentalsTimesChanged](docs/GetaroundRentalsTimesChanged.md)
285
- - [GetAroundOwner::GetaroundUnavailabilitiesCreated](docs/GetaroundUnavailabilitiesCreated.md)
286
- - [GetAroundOwner::GetaroundUnavailabilitiesCreatedAllOfData](docs/GetaroundUnavailabilitiesCreatedAllOfData.md)
287
- - [GetAroundOwner::GetaroundUnavailabilitiesDeleted](docs/GetaroundUnavailabilitiesDeleted.md)
288
- - [GetAroundOwner::GetaroundUnavailabilitiesDeletedAllOfData](docs/GetaroundUnavailabilitiesDeletedAllOfData.md)
289
- - [GetAroundOwner::GetaroundUnavailability](docs/GetaroundUnavailability.md)
290
- - [GetAroundOwner::GetaroundUser](docs/GetaroundUser.md)
291
- - [GetAroundOwner::GetaroundUsersUpdated](docs/GetaroundUsersUpdated.md)
292
- - [GetAroundOwner::GetaroundUsersUpdatedAllOfData](docs/GetaroundUsersUpdatedAllOfData.md)
293
- - [GetAroundOwner::GetaroundWebhook](docs/GetaroundWebhook.md)
294
-
420
+ - [GetAroundOwner::Car](docs/Car.md)
421
+ - [GetAroundOwner::CarId](docs/CarId.md)
422
+ - [GetAroundOwner::CarIdUnavailabilitiesJsonBody](docs/CarIdUnavailabilitiesJsonBody.md)
423
+ - [GetAroundOwner::CarsIndex](docs/CarsIndex.md)
424
+ - [GetAroundOwner::Checkin](docs/Checkin.md)
425
+ - [GetAroundOwner::CheckinsIndex](docs/CheckinsIndex.md)
426
+ - [GetAroundOwner::Checkout](docs/Checkout.md)
427
+ - [GetAroundOwner::CheckoutsIndex](docs/CheckoutsIndex.md)
428
+ - [GetAroundOwner::EndsAt](docs/EndsAt.md)
429
+ - [GetAroundOwner::Invoice](docs/Invoice.md)
430
+ - [GetAroundOwner::InvoicesIndex](docs/InvoicesIndex.md)
431
+ - [GetAroundOwner::Message](docs/Message.md)
432
+ - [GetAroundOwner::MessagesSent](docs/MessagesSent.md)
433
+ - [GetAroundOwner::Payout](docs/Payout.md)
434
+ - [GetAroundOwner::PayoutsIndex](docs/PayoutsIndex.md)
435
+ - [GetAroundOwner::Rental](docs/Rental.md)
436
+ - [GetAroundOwner::RentalIdMessagesJsonBody](docs/RentalIdMessagesJsonBody.md)
437
+ - [GetAroundOwner::RentalInvoicesIndex](docs/RentalInvoicesIndex.md)
438
+ - [GetAroundOwner::RentalMessagesIndex](docs/RentalMessagesIndex.md)
439
+ - [GetAroundOwner::RentalsBooked](docs/RentalsBooked.md)
440
+ - [GetAroundOwner::RentalsCanceled](docs/RentalsCanceled.md)
441
+ - [GetAroundOwner::RentalsCarCheckedIn](docs/RentalsCarCheckedIn.md)
442
+ - [GetAroundOwner::RentalsCarCheckedOut](docs/RentalsCarCheckedOut.md)
443
+ - [GetAroundOwner::RentalsCarSwitched](docs/RentalsCarSwitched.md)
444
+ - [GetAroundOwner::RentalsIndex](docs/RentalsIndex.md)
445
+ - [GetAroundOwner::RentalsTimesChanged](docs/RentalsTimesChanged.md)
446
+ - [GetAroundOwner::StartsAt](docs/StartsAt.md)
447
+ - [GetAroundOwner::UnavailabilitiesCreated](docs/UnavailabilitiesCreated.md)
448
+ - [GetAroundOwner::UnavailabilitiesDeleted](docs/UnavailabilitiesDeleted.md)
449
+ - [GetAroundOwner::UnavailabilitiesIndex](docs/UnavailabilitiesIndex.md)
450
+ - [GetAroundOwner::Unavailability](docs/Unavailability.md)
451
+ - [GetAroundOwner::User](docs/User.md)
452
+ - [GetAroundOwner::UsersUpdated](docs/UsersUpdated.md)
453
+ - [GetAroundOwner::Webhook](docs/Webhook.md)
295
454
 
296
455
  ## Documentation for Authorization
297
456
 
298
457
 
299
- Authentication schemes defined for the API:
300
458
  ### bearerAuth
301
459
 
302
- - **Type**: Bearer authentication
303
460
 
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
6
+ rescue LoadError
7
+ # no rspec available
8
+ end
data/docs/Car.md ADDED
@@ -0,0 +1,12 @@
1
+ # GetAroundOwner::Car
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | [****](.md) | The car ID |
7
+ **state** | [****](.md) | 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) |
8
+ **plate_number** | [****](.md) | Vehicle&#x27;s plate number |
9
+ **brand** | [****](.md) | Vehicle&#x27;s brand (ex: Volkswagen) |
10
+ **model** | [****](.md) | Vehicle&#x27;s model (ex: Polo) |
11
+ **display_address** | [****](.md) | Location where the vehicle is parked |
12
+