get_around_owner 1.0.1 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/Owner API v1.json +2938 -0
- data/README.md +359 -203
- data/Rakefile +8 -0
- data/docs/Car.md +12 -0
- data/docs/CarId.md +6 -0
- data/docs/CarIdUnavailabilitiesJsonBody.md +9 -0
- data/docs/CarsApi.md +109 -0
- data/docs/CarsIndex.md +6 -0
- data/docs/Checkin.md +10 -0
- data/docs/CheckinsApi.md +113 -0
- data/docs/CheckinsIndex.md +6 -0
- data/docs/Checkout.md +11 -0
- data/docs/CheckoutsApi.md +113 -0
- data/docs/CheckoutsIndex.md +6 -0
- data/docs/EndsAt.md +6 -0
- data/docs/GetaroundCar.md +28 -0
- data/docs/GetaroundCarsIndexInner.md +18 -0
- data/docs/GetaroundCheckin.md +24 -0
- data/docs/GetaroundCheckinsIndexInner.md +18 -0
- data/docs/GetaroundCheckout.md +26 -0
- data/docs/GetaroundCreateMessagesRequest.md +18 -0
- data/docs/GetaroundCreateUnavailabilitiesRequest.md +22 -0
- data/docs/GetaroundDestroyUnavailabilityRequest.md +20 -0
- data/docs/GetaroundInvoice.md +34 -0
- data/docs/GetaroundInvoiceChargesInner.md +20 -0
- data/docs/GetaroundInvoicesIndexInner.md +18 -0
- data/docs/GetaroundMessage.md +26 -0
- data/docs/GetaroundMessagesSent.md +22 -0
- data/docs/GetaroundMessagesSentAllOfData.md +20 -0
- data/docs/GetaroundPayout.md +28 -0
- data/docs/GetaroundPayoutInvoicesInner.md +18 -0
- data/docs/GetaroundPayoutsIndexInner.md +18 -0
- data/docs/GetaroundReason.md +15 -0
- data/docs/GetaroundRental.md +32 -0
- data/docs/GetaroundRentalInvoicesIndexInner.md +18 -0
- data/docs/GetaroundRentalMessagesIndexInner.md +18 -0
- data/docs/GetaroundRentalsBooked.md +22 -0
- data/docs/GetaroundRentalsBookedAllOfData.md +18 -0
- data/docs/GetaroundRentalsCanceled.md +22 -0
- data/docs/GetaroundRentalsCarCheckedIn.md +22 -0
- data/docs/GetaroundRentalsCarCheckedOut.md +22 -0
- data/docs/GetaroundRentalsCarSwitched.md +22 -0
- data/docs/GetaroundRentalsIndexInner.md +18 -0
- data/docs/GetaroundRentalsTimesChanged.md +22 -0
- data/docs/GetaroundUnavailabilitiesCreated.md +22 -0
- data/docs/GetaroundUnavailabilitiesCreatedAllOfData.md +24 -0
- data/docs/GetaroundUnavailabilitiesDeleted.md +22 -0
- data/docs/GetaroundUnavailabilitiesDeletedAllOfData.md +22 -0
- data/docs/GetaroundUnavailability.md +24 -0
- data/docs/GetaroundUser.md +42 -0
- data/docs/GetaroundUsersUpdated.md +22 -0
- data/docs/GetaroundUsersUpdatedAllOfData.md +18 -0
- data/docs/GetaroundWebhook.md +22 -0
- data/docs/Invoice.md +15 -0
- data/docs/InvoicesApi.md +168 -0
- data/docs/InvoicesIndex.md +6 -0
- data/docs/Message.md +11 -0
- data/docs/MessagesApi.md +161 -0
- data/docs/MessagesSent.md +6 -0
- data/docs/Payout.md +12 -0
- data/docs/PayoutsApi.md +113 -0
- 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 +113 -0
- 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 +166 -0
- 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 +56 -0
- 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-1.0.3.gem +0 -0
- data/get_around_owner.gemspec +39 -0
- data/getaround-api.gemspec +38 -0
- data/git_push.sh +55 -0
- data/lib/get_around_owner/api/cars_api.rb +25 -41
- data/lib/get_around_owner/api/checkins_api.rb +99 -35
- data/lib/get_around_owner/api/checkouts_api.rb +99 -35
- data/lib/get_around_owner/api/invoices_api.rb +43 -66
- data/lib/get_around_owner/api/messages_api.rb +149 -33
- data/lib/get_around_owner/api/payouts_api.rb +29 -45
- data/lib/get_around_owner/api/rentals_api.rb +67 -183
- data/lib/get_around_owner/api/unavailabilities_api.rb +124 -58
- data/lib/get_around_owner/api/users_api.rb +30 -36
- data/lib/get_around_owner/api_client.rb +71 -77
- data/lib/get_around_owner/api_error.rb +5 -6
- data/lib/get_around_owner/configuration.rb +13 -106
- data/lib/get_around_owner/models/{getaround_car.rb → car.rb} +36 -56
- data/lib/get_around_owner/models/{getaround_users_updated_all_of_data.rb → car_id.rb} +33 -50
- data/lib/get_around_owner/models/{getaround_destroy_unavailability_request.rb → car_id_unavailabilities_json_body.rb} +45 -47
- data/lib/get_around_owner/models/{getaround_rentals_booked_all_of_data.rb → cars_index.rb} +33 -50
- data/lib/get_around_owner/models/{getaround_checkin.rb → checkin.rb} +34 -65
- data/lib/get_around_owner/models/{getaround_payouts_index_inner.rb → checkins_index.rb} +32 -58
- data/lib/get_around_owner/models/{getaround_checkout.rb → checkout.rb} +35 -70
- data/lib/get_around_owner/models/checkouts_index.rb +197 -0
- data/lib/get_around_owner/models/ends_at.rb +198 -0
- data/lib/get_around_owner/models/{getaround_invoice.rb → invoice.rb} +45 -113
- data/lib/get_around_owner/models/invoices_index.rb +198 -0
- data/lib/get_around_owner/models/{getaround_message.rb → message.rb} +35 -53
- data/lib/get_around_owner/models/messages_sent.rb +197 -0
- data/lib/get_around_owner/models/{getaround_payout.rb → payout.rb} +37 -101
- data/lib/get_around_owner/models/payouts_index.rb +198 -0
- data/lib/get_around_owner/models/{getaround_rental.rb → rental.rb} +38 -100
- data/lib/get_around_owner/models/{getaround_create_messages_request.rb → rental_id_messages_json_body.rb} +31 -41
- data/lib/get_around_owner/models/rental_invoices_index.rb +198 -0
- data/lib/get_around_owner/models/rental_messages_index.rb +198 -0
- data/lib/get_around_owner/models/rentals_booked.rb +197 -0
- data/lib/get_around_owner/models/rentals_canceled.rb +197 -0
- data/lib/get_around_owner/models/rentals_car_checked_in.rb +197 -0
- data/lib/get_around_owner/models/rentals_car_checked_out.rb +197 -0
- data/lib/get_around_owner/models/rentals_car_switched.rb +197 -0
- data/lib/get_around_owner/models/rentals_index.rb +198 -0
- data/lib/get_around_owner/models/rentals_times_changed.rb +197 -0
- data/lib/get_around_owner/models/starts_at.rb +198 -0
- data/lib/get_around_owner/models/{getaround_cars_index_inner.rb → unavailabilities_created.rb} +32 -58
- data/lib/get_around_owner/models/unavailabilities_deleted.rb +197 -0
- data/lib/get_around_owner/models/unavailabilities_index.rb +198 -0
- data/lib/get_around_owner/models/{getaround_unavailabilities_created_all_of_data.rb → unavailability.rb} +51 -65
- data/lib/get_around_owner/models/{getaround_user.rb → user.rb} +43 -75
- data/lib/get_around_owner/models/users_updated.rb +197 -0
- data/lib/get_around_owner/models/{getaround_webhook.rb → webhook.rb} +38 -47
- data/lib/get_around_owner/version.rb +5 -6
- data/lib/get_around_owner.rb +38 -43
- 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/{getaround_rentals_index_inner_spec.rb → cars_index_spec.rb} +16 -18
- 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/rental_invoices_index_spec.rb +34 -0
- 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 +4 -5
- metadata +276 -119
- 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_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_index_inner.rb +0 -223
- 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/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/Rakefile
ADDED
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
|
+
|
data/docs/CarId.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# GetAroundOwner::CarIdUnavailabilitiesJsonBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**starts_at** | [****](.md) | Start date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. |
|
7
|
+
**ends_at** | [****](.md) | End date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. |
|
8
|
+
**reason** | [****](.md) | Reason of the unavailability | [optional]
|
9
|
+
|
data/docs/CarsApi.md
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
# GetAroundOwner::CarsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-eu.getaround.com/owner/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| --------------------------------------------- | ----------------------- | ---------------- |
|
7
|
+
| [**get_car_by_id**](CarsApi.md#get_car_by_id) | **GET** /cars/{id}.json | Find a car by ID |
|
8
|
+
| [**get_cars**](CarsApi.md#get_cars) | **GET** /cars.json | Find all cars |
|
9
|
+
|
10
|
+
# **get_car_by_id**
|
11
|
+
|
12
|
+
> Car get_car_by_id(id)
|
13
|
+
|
14
|
+
Find a car by ID
|
15
|
+
|
16
|
+
Find a car by ID
|
17
|
+
|
18
|
+
### Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'get_around_owner'
|
23
|
+
# setup authorization
|
24
|
+
GetAroundOwner.configure do |config|
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = GetAroundOwner::CarsApi.new
|
28
|
+
id = GetAroundOwner::null.new # | ID of car to return
|
29
|
+
|
30
|
+
|
31
|
+
begin
|
32
|
+
#Find a car by ID
|
33
|
+
result = api_instance.get_car_by_id(id)
|
34
|
+
p result
|
35
|
+
rescue GetAroundOwner::ApiError => e
|
36
|
+
puts "Exception when calling CarsApi->get_car_by_id: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
| Name | Type | Description | Notes |
|
43
|
+
| ------ | --------------- | ------------------- | ----- |
|
44
|
+
| **id** | [\*\*\*\*](.md) | ID of car to return |
|
45
|
+
|
46
|
+
### Return type
|
47
|
+
|
48
|
+
[**Car**](Car.md)
|
49
|
+
|
50
|
+
### Authorization
|
51
|
+
|
52
|
+
[bearerAuth](../README.md#bearerAuth)
|
53
|
+
|
54
|
+
### HTTP request headers
|
55
|
+
|
56
|
+
- **Content-Type**: Not defined
|
57
|
+
- **Accept**: application/json
|
58
|
+
|
59
|
+
# **get_cars**
|
60
|
+
|
61
|
+
> CarsIndex get_cars(opts)
|
62
|
+
|
63
|
+
Find all cars
|
64
|
+
|
65
|
+
Find all cars
|
66
|
+
|
67
|
+
### Example
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
# load the gem
|
71
|
+
require 'get_around_owner'
|
72
|
+
# setup authorization
|
73
|
+
GetAroundOwner.configure do |config|
|
74
|
+
end
|
75
|
+
|
76
|
+
api_instance = GetAroundOwner::CarsApi.new
|
77
|
+
opts = {
|
78
|
+
page: GetAroundOwner::null.new, # | Page number
|
79
|
+
per_page: GetAroundOwner::null.new # | Page size
|
80
|
+
}
|
81
|
+
|
82
|
+
begin
|
83
|
+
#Find all cars
|
84
|
+
result = api_instance.get_cars(opts)
|
85
|
+
p result
|
86
|
+
rescue GetAroundOwner::ApiError => e
|
87
|
+
puts "Exception when calling CarsApi->get_cars: #{e}"
|
88
|
+
end
|
89
|
+
```
|
90
|
+
|
91
|
+
### Parameters
|
92
|
+
|
93
|
+
| Name | Type | Description | Notes |
|
94
|
+
| ------------ | --------------- | ----------- | -------------------------- |
|
95
|
+
| **page** | [\*\*\*\*](.md) | Page number | [optional] |
|
96
|
+
| **per_page** | [\*\*\*\*](.md) | Page size | [optional] [default to 30] |
|
97
|
+
|
98
|
+
### Return type
|
99
|
+
|
100
|
+
[**CarsIndex**](CarsIndex.md)
|
101
|
+
|
102
|
+
### Authorization
|
103
|
+
|
104
|
+
[bearerAuth](../README.md#bearerAuth)
|
105
|
+
|
106
|
+
### HTTP request headers
|
107
|
+
|
108
|
+
- **Content-Type**: Not defined
|
109
|
+
- **Accept**: application/json
|
data/docs/CarsIndex.md
ADDED
data/docs/Checkin.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# GetAroundOwner::Checkin
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**rental_id** | [****](.md) | Rental's ID linked to this checkin |
|
7
|
+
**mileage** | [****](.md) | The vehicle’s mileage at checkin (in local units, eg: FR: km, GB: miles, ...) | [optional]
|
8
|
+
**fuel_level** | [****](.md) | The vehicle’s fuel level at checkin (in percentage) | [optional]
|
9
|
+
**occurred_at** | [****](.md) | Checkin's time in ISO8601 format |
|
10
|
+
|
data/docs/CheckinsApi.md
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
# GetAroundOwner::CheckinsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-eu.getaround.com/owner/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ----------------------------------------------------------------------- | ----------------------------------------- | ------------------------------------------------ |
|
7
|
+
| [**get_checkin_by_rental_id**](CheckinsApi.md#get_checkin_by_rental_id) | **GET** /rentals/{rental_id}/checkin.json | Find a checkin by rental ID |
|
8
|
+
| [**get_checkins**](CheckinsApi.md#get_checkins) | **GET** /checkins.json | List of checkins that occurred between two dates |
|
9
|
+
|
10
|
+
# **get_checkin_by_rental_id**
|
11
|
+
|
12
|
+
> Checkin get_checkin_by_rental_id(rental_id)
|
13
|
+
|
14
|
+
Find a checkin by rental ID
|
15
|
+
|
16
|
+
Find a checkin by rental ID
|
17
|
+
|
18
|
+
### Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'get_around_owner'
|
23
|
+
# setup authorization
|
24
|
+
GetAroundOwner.configure do |config|
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = GetAroundOwner::CheckinsApi.new
|
28
|
+
rental_id = GetAroundOwner::null.new # | ID of the rental related to the checkin to return
|
29
|
+
|
30
|
+
|
31
|
+
begin
|
32
|
+
#Find a checkin by rental ID
|
33
|
+
result = api_instance.get_checkin_by_rental_id(rental_id)
|
34
|
+
p result
|
35
|
+
rescue GetAroundOwner::ApiError => e
|
36
|
+
puts "Exception when calling CheckinsApi->get_checkin_by_rental_id: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
| Name | Type | Description | Notes |
|
43
|
+
| ------------- | --------------- | ------------------------------------------------- | ----- |
|
44
|
+
| **rental_id** | [\*\*\*\*](.md) | ID of the rental related to the checkin to return |
|
45
|
+
|
46
|
+
### Return type
|
47
|
+
|
48
|
+
[**Checkin**](Checkin.md)
|
49
|
+
|
50
|
+
### Authorization
|
51
|
+
|
52
|
+
[bearerAuth](../README.md#bearerAuth)
|
53
|
+
|
54
|
+
### HTTP request headers
|
55
|
+
|
56
|
+
- **Content-Type**: Not defined
|
57
|
+
- **Accept**: application/json
|
58
|
+
|
59
|
+
# **get_checkins**
|
60
|
+
|
61
|
+
> CheckinsIndex get_checkins(start_date, end_date, opts)
|
62
|
+
|
63
|
+
List of checkins that occurred between two dates
|
64
|
+
|
65
|
+
List of checkins that occurred between two dates
|
66
|
+
|
67
|
+
### Example
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
# load the gem
|
71
|
+
require 'get_around_owner'
|
72
|
+
# setup authorization
|
73
|
+
GetAroundOwner.configure do |config|
|
74
|
+
end
|
75
|
+
|
76
|
+
api_instance = GetAroundOwner::CheckinsApi.new
|
77
|
+
start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
78
|
+
end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
79
|
+
opts = {
|
80
|
+
page: GetAroundOwner::null.new, # | Page number
|
81
|
+
per_page: GetAroundOwner::null.new # | Page size
|
82
|
+
}
|
83
|
+
|
84
|
+
begin
|
85
|
+
#List of checkins that occurred between two dates
|
86
|
+
result = api_instance.get_checkins(start_date, end_date, opts)
|
87
|
+
p result
|
88
|
+
rescue GetAroundOwner::ApiError => e
|
89
|
+
puts "Exception when calling CheckinsApi->get_checkins: #{e}"
|
90
|
+
end
|
91
|
+
```
|
92
|
+
|
93
|
+
### Parameters
|
94
|
+
|
95
|
+
| Name | Type | Description | Notes |
|
96
|
+
| -------------- | --------------- | ----------------------------------------------------------------------------------------------- | -------------------------- |
|
97
|
+
| **start_date** | [\*\*\*\*](.md) | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
|
98
|
+
| **end_date** | [\*\*\*\*](.md) | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
|
99
|
+
| **page** | [\*\*\*\*](.md) | Page number | [optional] |
|
100
|
+
| **per_page** | [\*\*\*\*](.md) | Page size | [optional] [default to 30] |
|
101
|
+
|
102
|
+
### Return type
|
103
|
+
|
104
|
+
[**CheckinsIndex**](CheckinsIndex.md)
|
105
|
+
|
106
|
+
### Authorization
|
107
|
+
|
108
|
+
[bearerAuth](../README.md#bearerAuth)
|
109
|
+
|
110
|
+
### HTTP request headers
|
111
|
+
|
112
|
+
- **Content-Type**: Not defined
|
113
|
+
- **Accept**: application/json
|
data/docs/Checkout.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# GetAroundOwner::Checkout
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**rental_id** | [****](.md) | Rental's ID linked to this checkout |
|
7
|
+
**mileage** | [****](.md) | The vehicle’s mileage at checkout (in local units, eg: FR: km, GB: miles, ...) | [optional]
|
8
|
+
**fuel_level** | [****](.md) | The vehicle’s fuel level at checkout (in percentage) | [optional]
|
9
|
+
**distance_driven** | [****](.md) | The number of kilometers driven during this rental |
|
10
|
+
**occurred_at** | [****](.md) | Checkout's time in ISO8601 format |
|
11
|
+
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# GetAroundOwner::CheckoutsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-eu.getaround.com/owner/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| -------------------------------------------------------------------------- | ------------------------------------------ | ------------------------------------------------- |
|
7
|
+
| [**get_checkout_by_rental_id**](CheckoutsApi.md#get_checkout_by_rental_id) | **GET** /rentals/{rental_id}/checkout.json | Find a checkout by rental ID |
|
8
|
+
| [**get_checkouts**](CheckoutsApi.md#get_checkouts) | **GET** /checkouts.json | List of checkouts that occurred between two dates |
|
9
|
+
|
10
|
+
# **get_checkout_by_rental_id**
|
11
|
+
|
12
|
+
> Checkout get_checkout_by_rental_id(rental_id)
|
13
|
+
|
14
|
+
Find a checkout by rental ID
|
15
|
+
|
16
|
+
Find a checkout by rental ID
|
17
|
+
|
18
|
+
### Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'get_around_owner'
|
23
|
+
# setup authorization
|
24
|
+
GetAroundOwner.configure do |config|
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = GetAroundOwner::CheckoutsApi.new
|
28
|
+
rental_id = GetAroundOwner::null.new # | ID of the rental related to the checkout to return
|
29
|
+
|
30
|
+
|
31
|
+
begin
|
32
|
+
#Find a checkout by rental ID
|
33
|
+
result = api_instance.get_checkout_by_rental_id(rental_id)
|
34
|
+
p result
|
35
|
+
rescue GetAroundOwner::ApiError => e
|
36
|
+
puts "Exception when calling CheckoutsApi->get_checkout_by_rental_id: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
| Name | Type | Description | Notes |
|
43
|
+
| ------------- | --------------- | -------------------------------------------------- | ----- |
|
44
|
+
| **rental_id** | [\*\*\*\*](.md) | ID of the rental related to the checkout to return |
|
45
|
+
|
46
|
+
### Return type
|
47
|
+
|
48
|
+
[**Checkout**](Checkout.md)
|
49
|
+
|
50
|
+
### Authorization
|
51
|
+
|
52
|
+
[bearerAuth](../README.md#bearerAuth)
|
53
|
+
|
54
|
+
### HTTP request headers
|
55
|
+
|
56
|
+
- **Content-Type**: Not defined
|
57
|
+
- **Accept**: application/json
|
58
|
+
|
59
|
+
# **get_checkouts**
|
60
|
+
|
61
|
+
> CheckoutsIndex get_checkouts(start_date, end_date, opts)
|
62
|
+
|
63
|
+
List of checkouts that occurred between two dates
|
64
|
+
|
65
|
+
List of checkouts that occurred between two dates
|
66
|
+
|
67
|
+
### Example
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
# load the gem
|
71
|
+
require 'get_around_owner'
|
72
|
+
# setup authorization
|
73
|
+
GetAroundOwner.configure do |config|
|
74
|
+
end
|
75
|
+
|
76
|
+
api_instance = GetAroundOwner::CheckoutsApi.new
|
77
|
+
start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
78
|
+
end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
79
|
+
opts = {
|
80
|
+
page: GetAroundOwner::null.new, # | Page number
|
81
|
+
per_page: GetAroundOwner::null.new # | Page size
|
82
|
+
}
|
83
|
+
|
84
|
+
begin
|
85
|
+
#List of checkouts that occurred between two dates
|
86
|
+
result = api_instance.get_checkouts(start_date, end_date, opts)
|
87
|
+
p result
|
88
|
+
rescue GetAroundOwner::ApiError => e
|
89
|
+
puts "Exception when calling CheckoutsApi->get_checkouts: #{e}"
|
90
|
+
end
|
91
|
+
```
|
92
|
+
|
93
|
+
### Parameters
|
94
|
+
|
95
|
+
| Name | Type | Description | Notes |
|
96
|
+
| -------------- | --------------- | ----------------------------------------------------------------------------------------------- | -------------------------- |
|
97
|
+
| **start_date** | [\*\*\*\*](.md) | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
|
98
|
+
| **end_date** | [\*\*\*\*](.md) | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
|
99
|
+
| **page** | [\*\*\*\*](.md) | Page number | [optional] |
|
100
|
+
| **per_page** | [\*\*\*\*](.md) | Page size | [optional] [default to 30] |
|
101
|
+
|
102
|
+
### Return type
|
103
|
+
|
104
|
+
[**CheckoutsIndex**](CheckoutsIndex.md)
|
105
|
+
|
106
|
+
### Authorization
|
107
|
+
|
108
|
+
[bearerAuth](../README.md#bearerAuth)
|
109
|
+
|
110
|
+
### HTTP request headers
|
111
|
+
|
112
|
+
- **Content-Type**: Not defined
|
113
|
+
- **Accept**: application/json
|
data/docs/EndsAt.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# GetAroundOwner::GetaroundCar
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The car ID | |
|
8
|
+
| **state** | **String** | State of the vehicle can be a) active (only state where the vehicle can be booked by a user) b) inactive (temporary state when a vehicle is unavailable for rental) c) pending_approval (temporary state when a vehicle is under review for quality or other checks) and d) deleted (when a vehicle is permanently unavailable for rental) | |
|
9
|
+
| **plate_number** | **String** | Vehicle's plate number | |
|
10
|
+
| **brand** | **String** | Vehicle's brand (ex: Volkswagen) | |
|
11
|
+
| **model** | **String** | Vehicle's model (ex: Polo) | |
|
12
|
+
| **display_address** | **String** | Location where the vehicle is parked | |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'get_around_owner'
|
18
|
+
|
19
|
+
instance = GetAroundOwner::GetaroundCar.new(
|
20
|
+
id: null,
|
21
|
+
state: null,
|
22
|
+
plate_number: null,
|
23
|
+
brand: null,
|
24
|
+
model: null,
|
25
|
+
display_address: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundCarsIndexInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The car ID | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundCarsIndexInner.new(
|
15
|
+
id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# GetAroundOwner::GetaroundCheckin
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **rental_id** | **Integer** | Rental's ID linked to this checkin | |
|
8
|
+
| **mileage** | **Integer** | The vehicle’s mileage at checkin (in local units, eg: FR: km, GB: miles, ...) | [optional] |
|
9
|
+
| **fuel_level** | **Integer** | The vehicle’s fuel level at checkin (in percentage) | [optional] |
|
10
|
+
| **occurred_at** | **Time** | Checkin's time in ISO8601 format | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'get_around_owner'
|
16
|
+
|
17
|
+
instance = GetAroundOwner::GetaroundCheckin.new(
|
18
|
+
rental_id: null,
|
19
|
+
mileage: null,
|
20
|
+
fuel_level: null,
|
21
|
+
occurred_at: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundCheckinsIndexInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **rental_id** | **Integer** | The rental ID | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundCheckinsIndexInner.new(
|
15
|
+
rental_id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# GetAroundOwner::GetaroundCheckout
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **rental_id** | **Integer** | Rental's ID linked to this checkout | |
|
8
|
+
| **mileage** | **Integer** | The vehicle’s mileage at checkout (in local units, eg: FR: km, GB: miles, ...) | [optional] |
|
9
|
+
| **fuel_level** | **Integer** | The vehicle’s fuel level at checkout (in percentage) | [optional] |
|
10
|
+
| **distance_driven** | **Integer** | The number of kilometers driven during this rental | |
|
11
|
+
| **occurred_at** | **Time** | Checkout's time in ISO8601 format | |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'get_around_owner'
|
17
|
+
|
18
|
+
instance = GetAroundOwner::GetaroundCheckout.new(
|
19
|
+
rental_id: null,
|
20
|
+
mileage: null,
|
21
|
+
fuel_level: null,
|
22
|
+
distance_driven: null,
|
23
|
+
occurred_at: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundCreateMessagesRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **content** | **String** | Content of the message (2000 characters max) | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundCreateMessagesRequest.new(
|
15
|
+
content: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundCreateUnavailabilitiesRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **starts_at** | **Time** | Start date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. | |
|
8
|
+
| **ends_at** | **Time** | End date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. | |
|
9
|
+
| **reason** | **String** | Reason of the unavailability | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'get_around_owner'
|
15
|
+
|
16
|
+
instance = GetAroundOwner::GetaroundCreateUnavailabilitiesRequest.new(
|
17
|
+
starts_at: null,
|
18
|
+
ends_at: null,
|
19
|
+
reason: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# GetAroundOwner::GetaroundDestroyUnavailabilityRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **starts_at** | **Time** | Start date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. | |
|
8
|
+
| **ends_at** | **Time** | End date and time of the unavailability in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) with a 30 min granularity. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'get_around_owner'
|
14
|
+
|
15
|
+
instance = GetAroundOwner::GetaroundDestroyUnavailabilityRequest.new(
|
16
|
+
starts_at: null,
|
17
|
+
ends_at: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# GetAroundOwner::GetaroundInvoice
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The invoice ID | |
|
8
|
+
| **pdf_url** | **String** | The temporary url (lifetime: 20min) to download the pdf of the tax invoice is generated each to time you call the endpoint. Also, the 'links' variable will not be present if there is no uploaded invoice yet. This could happen if the job to generate & upload the invoice is not done yet. | |
|
9
|
+
| **product_type** | **String** | The type of product the invoice is related to | |
|
10
|
+
| **product_id** | **Integer** | The id of the product the invoice is related to | |
|
11
|
+
| **emitted_at** | **Time** | The date at which the invoice was emitted | |
|
12
|
+
| **total_price** | **Integer** | The invoice amount, which is what you will receive (or which will be debited from your account if it is negative) | |
|
13
|
+
| **currency** | **String** | The currency of the invoice amount (ISO 4217 alphabetic code) | |
|
14
|
+
| **entity_type** | **String** | The type of entity the invoice is related to | |
|
15
|
+
| **charges** | [**Array<GetaroundInvoiceChargesInner>**](GetaroundInvoiceChargesInner.md) | Array of charges | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'get_around_owner'
|
21
|
+
|
22
|
+
instance = GetAroundOwner::GetaroundInvoice.new(
|
23
|
+
id: null,
|
24
|
+
pdf_url: null,
|
25
|
+
product_type: null,
|
26
|
+
product_id: null,
|
27
|
+
emitted_at: null,
|
28
|
+
total_price: null,
|
29
|
+
currency: null,
|
30
|
+
entity_type: null,
|
31
|
+
charges: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# GetAroundOwner::GetaroundInvoiceChargesInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | [**GetaroundAnyOf**](GetaroundAnyOf.md) | | [optional] |
|
8
|
+
| **amount** | **Integer** | The charge's amount | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'get_around_owner'
|
14
|
+
|
15
|
+
instance = GetAroundOwner::GetaroundInvoiceChargesInner.new(
|
16
|
+
type: null,
|
17
|
+
amount: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|