get_around_owner 1.0.0 → 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.
- checksums.yaml +4 -4
- data/Owner API v1.json +2938 -0
- data/README.md +338 -181
- data/Rakefile +0 -2
- data/docs/Car.md +12 -0
- data/docs/CarId.md +6 -0
- data/docs/CarIdUnavailabilitiesJsonBody.md +9 -0
- data/docs/CarsApi.md +38 -79
- data/docs/CarsIndex.md +6 -0
- data/docs/Checkin.md +10 -0
- data/docs/CheckinsApi.md +76 -33
- data/docs/CheckinsIndex.md +6 -0
- data/docs/Checkout.md +11 -0
- data/docs/CheckoutsApi.md +76 -33
- data/docs/CheckoutsIndex.md +6 -0
- data/docs/EndsAt.md +6 -0
- data/docs/Invoice.md +15 -0
- data/docs/InvoicesApi.md +62 -124
- data/docs/InvoicesIndex.md +6 -0
- data/docs/Message.md +11 -0
- data/docs/MessagesApi.md +122 -31
- data/docs/MessagesSent.md +6 -0
- data/docs/Payout.md +12 -0
- data/docs/PayoutsApi.md +42 -83
- data/docs/PayoutsIndex.md +6 -0
- data/docs/Rental.md +14 -0
- data/docs/RentalIdMessagesJsonBody.md +7 -0
- data/docs/RentalInvoicesIndex.md +6 -0
- data/docs/RentalMessagesIndex.md +6 -0
- data/docs/RentalsApi.md +54 -203
- data/docs/RentalsBooked.md +6 -0
- data/docs/RentalsCanceled.md +6 -0
- data/docs/RentalsCarCheckedIn.md +6 -0
- data/docs/RentalsCarCheckedOut.md +6 -0
- data/docs/RentalsCarSwitched.md +6 -0
- data/docs/RentalsIndex.md +6 -0
- data/docs/RentalsTimesChanged.md +6 -0
- data/docs/StartsAt.md +6 -0
- data/docs/UnavailabilitiesApi.md +100 -68
- data/docs/UnavailabilitiesCreated.md +6 -0
- data/docs/UnavailabilitiesDeleted.md +6 -0
- data/docs/UnavailabilitiesIndex.md +6 -0
- data/docs/Unavailability.md +10 -0
- data/docs/User.md +19 -0
- data/docs/UsersApi.md +27 -41
- data/docs/UsersUpdated.md +6 -0
- data/docs/Webhook.md +9 -0
- data/get_around_owner-1.0.0.gem +0 -0
- data/get_around_owner-1.0.1.gem +0 -0
- data/get_around_owner.gemspec +16 -3
- data/getaround-api.gemspec +38 -0
- data/git_push.sh +9 -11
- data/lib/{get_around_owner → getaround-api}/api/cars_api.rb +25 -41
- data/lib/getaround-api/api/checkins_api.rb +146 -0
- data/lib/getaround-api/api/checkouts_api.rb +146 -0
- data/lib/{get_around_owner → getaround-api}/api/invoices_api.rb +43 -66
- data/lib/getaround-api/api/messages_api.rb +198 -0
- data/lib/{get_around_owner → getaround-api}/api/payouts_api.rb +29 -45
- data/lib/getaround-api/api/rentals_api.rb +146 -0
- data/lib/getaround-api/api/unavailabilities_api.rb +208 -0
- data/lib/{get_around_owner/api/messages_api.rb → getaround-api/api/users_api.rb} +31 -37
- data/lib/{get_around_owner → getaround-api}/api_client.rb +71 -77
- data/lib/{get_around_owner → getaround-api}/api_error.rb +5 -6
- data/lib/{get_around_owner → getaround-api}/configuration.rb +13 -106
- data/lib/{get_around_owner/models/getaround_car.rb → getaround-api/models/car.rb} +36 -56
- data/lib/{get_around_owner/models/getaround_users_updated_all_of_data.rb → getaround-api/models/car_id.rb} +33 -50
- data/lib/{get_around_owner/models/getaround_destroy_unavailability_request.rb → getaround-api/models/car_id_unavailabilities_json_body.rb} +45 -47
- data/lib/{get_around_owner/models/getaround_rentals_booked_all_of_data.rb → getaround-api/models/cars_index.rb} +33 -50
- data/lib/{get_around_owner/models/getaround_checkin.rb → getaround-api/models/checkin.rb} +34 -65
- data/lib/{get_around_owner/models/getaround_rentals_index_inner.rb → getaround-api/models/checkins_index.rb} +32 -58
- data/lib/{get_around_owner/models/getaround_checkout.rb → getaround-api/models/checkout.rb} +35 -70
- data/lib/getaround-api/models/checkouts_index.rb +197 -0
- data/lib/getaround-api/models/ends_at.rb +198 -0
- data/lib/{get_around_owner/models/getaround_invoice.rb → getaround-api/models/invoice.rb} +45 -113
- data/lib/getaround-api/models/invoices_index.rb +198 -0
- data/lib/{get_around_owner/models/getaround_message.rb → getaround-api/models/message.rb} +35 -53
- data/lib/getaround-api/models/messages_sent.rb +197 -0
- data/lib/{get_around_owner/models/getaround_payout.rb → getaround-api/models/payout.rb} +37 -101
- data/lib/getaround-api/models/payouts_index.rb +198 -0
- data/lib/{get_around_owner/models/getaround_rental.rb → getaround-api/models/rental.rb} +38 -100
- data/lib/{get_around_owner/models/getaround_create_messages_request.rb → getaround-api/models/rental_id_messages_json_body.rb} +31 -41
- data/lib/getaround-api/models/rental_invoices_index.rb +198 -0
- data/lib/getaround-api/models/rental_messages_index.rb +198 -0
- data/lib/getaround-api/models/rentals_booked.rb +197 -0
- data/lib/getaround-api/models/rentals_canceled.rb +197 -0
- data/lib/getaround-api/models/rentals_car_checked_in.rb +197 -0
- data/lib/getaround-api/models/rentals_car_checked_out.rb +197 -0
- data/lib/getaround-api/models/rentals_car_switched.rb +197 -0
- data/lib/getaround-api/models/rentals_index.rb +198 -0
- data/lib/getaround-api/models/rentals_times_changed.rb +197 -0
- data/lib/getaround-api/models/starts_at.rb +198 -0
- data/lib/{get_around_owner/models/getaround_cars_index_inner.rb → getaround-api/models/unavailabilities_created.rb} +32 -58
- data/lib/getaround-api/models/unavailabilities_deleted.rb +197 -0
- data/lib/getaround-api/models/unavailabilities_index.rb +198 -0
- data/lib/{get_around_owner/models/getaround_unavailabilities_created_all_of_data.rb → getaround-api/models/unavailability.rb} +51 -65
- data/lib/{get_around_owner/models/getaround_user.rb → getaround-api/models/user.rb} +43 -75
- data/lib/getaround-api/models/users_updated.rb +197 -0
- data/lib/{get_around_owner/models/getaround_webhook.rb → getaround-api/models/webhook.rb} +38 -47
- data/lib/{get_around_owner → getaround-api}/version.rb +5 -6
- data/lib/getaround-api.rb +81 -0
- data/openapi.yml +2298 -0
- data/spec/api/cars_api_spec.rb +13 -14
- data/spec/api/checkins_api_spec.rb +13 -14
- data/spec/api/checkouts_api_spec.rb +13 -14
- data/spec/api/invoices_api_spec.rb +19 -20
- data/spec/api/messages_api_spec.rb +14 -15
- data/spec/api/payouts_api_spec.rb +13 -14
- data/spec/api/rentals_api_spec.rb +13 -14
- data/spec/api/unavailabilities_api_spec.rb +14 -16
- data/spec/api/users_api_spec.rb +9 -10
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/{models/getaround_checkins_index_inner_spec.rb → configuration_spec.rb} +26 -21
- data/spec/models/{getaround_reason_spec.rb → car_id_spec.rb} +18 -14
- data/spec/models/{getaround_unavailabilities_deleted_all_of_data_spec.rb → car_id_unavailabilities_json_body_spec.rb} +24 -20
- data/spec/models/{getaround_car_spec.rb → car_spec.rb} +24 -20
- data/spec/models/cars_index_spec.rb +34 -0
- data/spec/models/{getaround_checkin_spec.rb → checkin_spec.rb} +22 -18
- data/spec/models/checkins_index_spec.rb +34 -0
- data/spec/models/{getaround_checkout_spec.rb → checkout_spec.rb} +23 -19
- data/spec/models/checkouts_index_spec.rb +34 -0
- data/spec/models/ends_at_spec.rb +34 -0
- data/spec/models/{getaround_invoice_spec.rb → invoice_spec.rb} +27 -31
- data/spec/models/invoices_index_spec.rb +34 -0
- data/spec/models/{getaround_message_spec.rb → message_spec.rb} +23 -19
- data/spec/models/messages_sent_spec.rb +34 -0
- data/spec/models/{getaround_payout_spec.rb → payout_spec.rb} +24 -24
- data/spec/models/payouts_index_spec.rb +34 -0
- data/spec/models/{getaround_create_messages_request_spec.rb → rental_id_messages_json_body_spec.rb} +19 -15
- data/spec/models/{getaround_rentals_index_inner_spec.rb → rental_invoices_index_spec.rb} +16 -18
- data/spec/models/rental_messages_index_spec.rb +34 -0
- data/spec/models/{getaround_rental_spec.rb → rental_spec.rb} +26 -22
- data/spec/models/rentals_booked_spec.rb +34 -0
- data/spec/models/rentals_canceled_spec.rb +34 -0
- data/spec/models/rentals_car_checked_in_spec.rb +34 -0
- data/spec/models/rentals_car_checked_out_spec.rb +34 -0
- data/spec/models/rentals_car_switched_spec.rb +34 -0
- data/spec/models/rentals_index_spec.rb +34 -0
- data/spec/models/rentals_times_changed_spec.rb +34 -0
- data/spec/models/starts_at_spec.rb +34 -0
- data/spec/models/{getaround_cars_index_inner_spec.rb → unavailabilities_created_spec.rb} +16 -18
- data/spec/models/{getaround_payouts_index_inner_spec.rb → unavailabilities_deleted_spec.rb} +16 -18
- data/spec/models/unavailabilities_index_spec.rb +34 -0
- data/spec/models/{getaround_unavailabilities_created_all_of_data_spec.rb → unavailability_spec.rb} +22 -18
- data/spec/models/{getaround_user_spec.rb → user_spec.rb} +31 -27
- data/spec/models/users_updated_spec.rb +34 -0
- data/spec/models/{getaround_webhook_spec.rb → webhook_spec.rb} +21 -17
- data/spec/spec_helper.rb +5 -6
- metadata +237 -132
- data/lib/get_around_owner/api/checkins_api.rb +0 -82
- data/lib/get_around_owner/api/checkouts_api.rb +0 -82
- data/lib/get_around_owner/api/rentals_api.rb +0 -262
- data/lib/get_around_owner/api/unavailabilities_api.rb +0 -142
- data/lib/get_around_owner/api/users_api.rb +0 -82
- data/lib/get_around_owner/models/getaround_checkins_index_inner.rb +0 -222
- data/lib/get_around_owner/models/getaround_create_unavailabilities_request.rb +0 -283
- data/lib/get_around_owner/models/getaround_invoice_charges_inner.rb +0 -225
- data/lib/get_around_owner/models/getaround_invoices_index_inner.rb +0 -223
- data/lib/get_around_owner/models/getaround_messages_sent.rb +0 -257
- data/lib/get_around_owner/models/getaround_messages_sent_all_of_data.rb +0 -225
- data/lib/get_around_owner/models/getaround_payout_invoices_inner.rb +0 -223
- data/lib/get_around_owner/models/getaround_payouts_index_inner.rb +0 -223
- data/lib/get_around_owner/models/getaround_reason.rb +0 -45
- data/lib/get_around_owner/models/getaround_rental_invoices_index_inner.rb +0 -223
- data/lib/get_around_owner/models/getaround_rental_messages_index_inner.rb +0 -223
- data/lib/get_around_owner/models/getaround_rentals_booked.rb +0 -257
- data/lib/get_around_owner/models/getaround_rentals_canceled.rb +0 -257
- data/lib/get_around_owner/models/getaround_rentals_car_checked_in.rb +0 -257
- data/lib/get_around_owner/models/getaround_rentals_car_checked_out.rb +0 -257
- data/lib/get_around_owner/models/getaround_rentals_car_switched.rb +0 -257
- data/lib/get_around_owner/models/getaround_rentals_times_changed.rb +0 -257
- data/lib/get_around_owner/models/getaround_unavailabilities_created.rb +0 -257
- data/lib/get_around_owner/models/getaround_unavailabilities_deleted.rb +0 -257
- data/lib/get_around_owner/models/getaround_unavailabilities_deleted_all_of_data.rb +0 -235
- data/lib/get_around_owner/models/getaround_unavailability.rb +0 -302
- data/lib/get_around_owner/models/getaround_users_updated.rb +0 -257
- data/lib/get_around_owner.rb +0 -86
- data/spec/models/getaround_create_unavailabilities_request_spec.rb +0 -52
- data/spec/models/getaround_destroy_unavailability_request_spec.rb +0 -42
- data/spec/models/getaround_invoice_charges_inner_spec.rb +0 -42
- data/spec/models/getaround_invoices_index_inner_spec.rb +0 -36
- data/spec/models/getaround_messages_sent_all_of_data_spec.rb +0 -42
- data/spec/models/getaround_messages_sent_spec.rb +0 -48
- data/spec/models/getaround_payout_invoices_inner_spec.rb +0 -36
- data/spec/models/getaround_rental_invoices_index_inner_spec.rb +0 -36
- data/spec/models/getaround_rental_messages_index_inner_spec.rb +0 -36
- data/spec/models/getaround_rentals_booked_all_of_data_spec.rb +0 -36
- data/spec/models/getaround_rentals_booked_spec.rb +0 -48
- data/spec/models/getaround_rentals_canceled_spec.rb +0 -48
- data/spec/models/getaround_rentals_car_checked_in_spec.rb +0 -48
- data/spec/models/getaround_rentals_car_checked_out_spec.rb +0 -48
- data/spec/models/getaround_rentals_car_switched_spec.rb +0 -48
- data/spec/models/getaround_rentals_times_changed_spec.rb +0 -48
- data/spec/models/getaround_unavailabilities_created_spec.rb +0 -48
- data/spec/models/getaround_unavailabilities_deleted_spec.rb +0 -48
- data/spec/models/getaround_unavailability_spec.rb +0 -58
- data/spec/models/getaround_users_updated_all_of_data_spec.rb +0 -36
- data/spec/models/getaround_users_updated_spec.rb +0 -48
data/README.md
CHANGED
@@ -1,226 +1,391 @@
|
|
1
|
-
#
|
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
|
-
|
7
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
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
|
-
|
17
|
-
-H \"Authorization: Bearer TOKEN\" \\
|
18
|
-
-H \"Accept:application/json\" \\
|
19
|
-
-H \"Content-Type:application/json\"
|
20
|
-
```
|
15
|
+
### Build a gem
|
21
16
|
|
22
|
-
|
17
|
+
To build the Ruby code into a gem:
|
23
18
|
|
24
|
-
```
|
25
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
34
|
+
gem 'getaround-api', '~> 1.0.2'
|
44
35
|
|
45
|
-
|
36
|
+
### Install from Git
|
46
37
|
|
47
|
-
|
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
|
-
|
40
|
+
gem 'getaround-api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
50
41
|
|
51
|
-
|
42
|
+
### Include the Ruby code directly
|
52
43
|
|
53
|
-
|
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
|
-
|
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
|
-
#
|
63
|
-
|
64
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
82
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
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
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
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
|
-
|
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
|
-
|
117
|
-
|
118
|
-
|
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
|
-
|
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
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
148
|
-
|
149
|
-
|
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
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
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
|
-
|
245
|
+
api_instance = GetAroundOwner::MessagesApi.new
|
246
|
+
rental_id = GetAroundOwner::null.new # | ID of rental
|
160
247
|
|
161
|
-
### Build a gem
|
162
248
|
|
163
|
-
|
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
|
-
|
166
|
-
|
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
|
-
|
172
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
194
|
-
|
195
|
-
```
|
344
|
+
api_instance = GetAroundOwner::UnavailabilitiesApi.new
|
345
|
+
car_id = GetAroundOwner::null.new # | ID of car
|
196
346
|
|
197
|
-
## Getting Started
|
198
347
|
|
199
|
-
|
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
|
-
|
202
|
-
#
|
203
|
-
|
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::
|
214
|
-
id =
|
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
|
218
|
-
result = api_instance.
|
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
|
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::
|
257
|
-
- [GetAroundOwner::
|
258
|
-
- [GetAroundOwner::
|
259
|
-
- [GetAroundOwner::
|
260
|
-
- [GetAroundOwner::
|
261
|
-
- [GetAroundOwner::
|
262
|
-
- [GetAroundOwner::
|
263
|
-
- [GetAroundOwner::
|
264
|
-
- [GetAroundOwner::
|
265
|
-
- [GetAroundOwner::
|
266
|
-
- [GetAroundOwner::
|
267
|
-
- [GetAroundOwner::
|
268
|
-
- [GetAroundOwner::
|
269
|
-
- [GetAroundOwner::
|
270
|
-
- [GetAroundOwner::
|
271
|
-
- [GetAroundOwner::
|
272
|
-
- [GetAroundOwner::
|
273
|
-
- [GetAroundOwner::
|
274
|
-
- [GetAroundOwner::
|
275
|
-
- [GetAroundOwner::
|
276
|
-
- [GetAroundOwner::
|
277
|
-
- [GetAroundOwner::
|
278
|
-
- [GetAroundOwner::
|
279
|
-
- [GetAroundOwner::
|
280
|
-
- [GetAroundOwner::
|
281
|
-
- [GetAroundOwner::
|
282
|
-
- [GetAroundOwner::
|
283
|
-
- [GetAroundOwner::
|
284
|
-
- [GetAroundOwner::
|
285
|
-
- [GetAroundOwner::
|
286
|
-
- [GetAroundOwner::
|
287
|
-
- [GetAroundOwner::
|
288
|
-
- [GetAroundOwner::
|
289
|
-
- [GetAroundOwner::
|
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
CHANGED
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's plate number |
|
9
|
+
**brand** | [****](.md) | Vehicle's brand (ex: Volkswagen) |
|
10
|
+
**model** | [****](.md) | Vehicle's model (ex: Polo) |
|
11
|
+
**display_address** | [****](.md) | Location where the vehicle is parked |
|
12
|
+
|