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.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/Owner API v1.json +2938 -0
- data/README.md +338 -181
- 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 +110 -0
- data/docs/CarsIndex.md +6 -0
- data/docs/Checkin.md +10 -0
- data/docs/CheckinsApi.md +114 -0
- data/docs/CheckinsIndex.md +6 -0
- data/docs/Checkout.md +11 -0
- data/docs/CheckoutsApi.md +114 -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 +169 -0
- data/docs/InvoicesIndex.md +6 -0
- data/docs/Message.md +11 -0
- data/docs/MessagesApi.md +162 -0
- data/docs/MessagesSent.md +6 -0
- data/docs/Payout.md +12 -0
- data/docs/PayoutsApi.md +114 -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 +114 -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 +167 -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 +57 -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.gemspec +39 -0
- data/getaround-api.gemspec +38 -0
- data/git_push.sh +55 -0
- 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 +289 -133
- 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/docs/InvoicesApi.md
ADDED
@@ -0,0 +1,169 @@
|
|
1
|
+
# GetAroundOwner::InvoicesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-eu.getaround.com/owner/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_invoice_by_id**](InvoicesApi.md#get_invoice_by_id) | **GET** /invoices/{id}.json | Find an invoice by ID
|
8
|
+
[**get_invoices**](InvoicesApi.md#get_invoices) | **GET** /invoices.json | Find invoices emitted between dates
|
9
|
+
[**get_invoices_for_rental**](InvoicesApi.md#get_invoices_for_rental) | **GET** /rentals/{rental_id}/invoices.json | Find invoices associated to a rental
|
10
|
+
|
11
|
+
# **get_invoice_by_id**
|
12
|
+
> Invoice get_invoice_by_id(id)
|
13
|
+
|
14
|
+
Find an invoice by ID
|
15
|
+
|
16
|
+
Find an invoice by ID
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'getaround-api'
|
22
|
+
# setup authorization
|
23
|
+
GetAroundOwner.configure do |config|
|
24
|
+
end
|
25
|
+
|
26
|
+
api_instance = GetAroundOwner::InvoicesApi.new
|
27
|
+
id = GetAroundOwner::null.new # | ID of invoice to return
|
28
|
+
|
29
|
+
|
30
|
+
begin
|
31
|
+
#Find an invoice by ID
|
32
|
+
result = api_instance.get_invoice_by_id(id)
|
33
|
+
p result
|
34
|
+
rescue GetAroundOwner::ApiError => e
|
35
|
+
puts "Exception when calling InvoicesApi->get_invoice_by_id: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
### Parameters
|
40
|
+
|
41
|
+
Name | Type | Description | Notes
|
42
|
+
------------- | ------------- | ------------- | -------------
|
43
|
+
**id** | [****](.md)| ID of invoice to return |
|
44
|
+
|
45
|
+
### Return type
|
46
|
+
|
47
|
+
[**Invoice**](Invoice.md)
|
48
|
+
|
49
|
+
### Authorization
|
50
|
+
|
51
|
+
[bearerAuth](../README.md#bearerAuth)
|
52
|
+
|
53
|
+
### HTTP request headers
|
54
|
+
|
55
|
+
- **Content-Type**: Not defined
|
56
|
+
- **Accept**: application/json
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
# **get_invoices**
|
61
|
+
> InvoicesIndex get_invoices(opts)
|
62
|
+
|
63
|
+
Find invoices emitted between dates
|
64
|
+
|
65
|
+
Find invoices emitted between dates
|
66
|
+
|
67
|
+
### Example
|
68
|
+
```ruby
|
69
|
+
# load the gem
|
70
|
+
require 'getaround-api'
|
71
|
+
# setup authorization
|
72
|
+
GetAroundOwner.configure do |config|
|
73
|
+
end
|
74
|
+
|
75
|
+
api_instance = GetAroundOwner::InvoicesApi.new
|
76
|
+
opts = {
|
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
|
+
page: GetAroundOwner::null.new, # | Page number
|
80
|
+
per_page: GetAroundOwner::null.new # | Page size
|
81
|
+
}
|
82
|
+
|
83
|
+
begin
|
84
|
+
#Find invoices emitted between dates
|
85
|
+
result = api_instance.get_invoices(opts)
|
86
|
+
p result
|
87
|
+
rescue GetAroundOwner::ApiError => e
|
88
|
+
puts "Exception when calling InvoicesApi->get_invoices: #{e}"
|
89
|
+
end
|
90
|
+
```
|
91
|
+
|
92
|
+
### Parameters
|
93
|
+
|
94
|
+
Name | Type | Description | Notes
|
95
|
+
------------- | ------------- | ------------- | -------------
|
96
|
+
**start_date** | [****](.md)| Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | [optional]
|
97
|
+
**end_date** | [****](.md)| End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | [optional]
|
98
|
+
**page** | [****](.md)| Page number | [optional]
|
99
|
+
**per_page** | [****](.md)| Page size | [optional] [default to 30]
|
100
|
+
|
101
|
+
### Return type
|
102
|
+
|
103
|
+
[**InvoicesIndex**](InvoicesIndex.md)
|
104
|
+
|
105
|
+
### Authorization
|
106
|
+
|
107
|
+
[bearerAuth](../README.md#bearerAuth)
|
108
|
+
|
109
|
+
### HTTP request headers
|
110
|
+
|
111
|
+
- **Content-Type**: Not defined
|
112
|
+
- **Accept**: application/json
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
# **get_invoices_for_rental**
|
117
|
+
> RentalInvoicesIndex get_invoices_for_rental(rental_id, opts)
|
118
|
+
|
119
|
+
Find invoices associated to a rental
|
120
|
+
|
121
|
+
Find invoices associated to a rental
|
122
|
+
|
123
|
+
### Example
|
124
|
+
```ruby
|
125
|
+
# load the gem
|
126
|
+
require 'getaround-api'
|
127
|
+
# setup authorization
|
128
|
+
GetAroundOwner.configure do |config|
|
129
|
+
end
|
130
|
+
|
131
|
+
api_instance = GetAroundOwner::InvoicesApi.new
|
132
|
+
rental_id = GetAroundOwner::null.new # | ID of rental
|
133
|
+
opts = {
|
134
|
+
page: GetAroundOwner::null.new, # | Page number
|
135
|
+
per_page: GetAroundOwner::null.new # | Page size
|
136
|
+
}
|
137
|
+
|
138
|
+
begin
|
139
|
+
#Find invoices associated to a rental
|
140
|
+
result = api_instance.get_invoices_for_rental(rental_id, opts)
|
141
|
+
p result
|
142
|
+
rescue GetAroundOwner::ApiError => e
|
143
|
+
puts "Exception when calling InvoicesApi->get_invoices_for_rental: #{e}"
|
144
|
+
end
|
145
|
+
```
|
146
|
+
|
147
|
+
### Parameters
|
148
|
+
|
149
|
+
Name | Type | Description | Notes
|
150
|
+
------------- | ------------- | ------------- | -------------
|
151
|
+
**rental_id** | [****](.md)| ID of rental |
|
152
|
+
**page** | [****](.md)| Page number | [optional]
|
153
|
+
**per_page** | [****](.md)| Page size | [optional] [default to 30]
|
154
|
+
|
155
|
+
### Return type
|
156
|
+
|
157
|
+
[**RentalInvoicesIndex**](RentalInvoicesIndex.md)
|
158
|
+
|
159
|
+
### Authorization
|
160
|
+
|
161
|
+
[bearerAuth](../README.md#bearerAuth)
|
162
|
+
|
163
|
+
### HTTP request headers
|
164
|
+
|
165
|
+
- **Content-Type**: Not defined
|
166
|
+
- **Accept**: application/json
|
167
|
+
|
168
|
+
|
169
|
+
|
data/docs/Message.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# GetAroundOwner::Message
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | [****](.md) | The message ID |
|
7
|
+
**rental_id** | [****](.md) | ID of the related rental |
|
8
|
+
**sending_user_id** | [****](.md) | ID of the sending user |
|
9
|
+
**sent_at** | [****](.md) | Date the message was sent |
|
10
|
+
**content** | [****](.md) | Content of message, Personal information detected in messages is hidden |
|
11
|
+
|
data/docs/MessagesApi.md
ADDED
@@ -0,0 +1,162 @@
|
|
1
|
+
# GetAroundOwner::MessagesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-eu.getaround.com/owner/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_messages**](MessagesApi.md#create_messages) | **POST** /rentals/{rental_id}/messages.json | Create Message associated to a rental
|
8
|
+
[**get_message_by_id**](MessagesApi.md#get_message_by_id) | **GET** /rentals/{rental_id}/messages/{id}.json | Find a message by ID associated to a rental
|
9
|
+
[**get_messages_for_rental**](MessagesApi.md#get_messages_for_rental) | **GET** /rentals/{rental_id}/messages.json | Find messages associated to a rental
|
10
|
+
|
11
|
+
# **create_messages**
|
12
|
+
> Message create_messages(rental_id, opts)
|
13
|
+
|
14
|
+
Create Message associated to a rental
|
15
|
+
|
16
|
+
Create Message associated to a rental
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'getaround-api'
|
22
|
+
# setup authorization
|
23
|
+
GetAroundOwner.configure do |config|
|
24
|
+
end
|
25
|
+
|
26
|
+
api_instance = GetAroundOwner::MessagesApi.new
|
27
|
+
rental_id = GetAroundOwner::null.new # | ID of rental
|
28
|
+
opts = {
|
29
|
+
body: GetAroundOwner::RentalIdMessagesJsonBody.new # RentalIdMessagesJsonBody | Message to create
|
30
|
+
}
|
31
|
+
|
32
|
+
begin
|
33
|
+
#Create Message associated to a rental
|
34
|
+
result = api_instance.create_messages(rental_id, opts)
|
35
|
+
p result
|
36
|
+
rescue GetAroundOwner::ApiError => e
|
37
|
+
puts "Exception when calling MessagesApi->create_messages: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
### Parameters
|
42
|
+
|
43
|
+
Name | Type | Description | Notes
|
44
|
+
------------- | ------------- | ------------- | -------------
|
45
|
+
**rental_id** | [****](.md)| ID of rental |
|
46
|
+
**body** | [**RentalIdMessagesJsonBody**](RentalIdMessagesJsonBody.md)| Message to create | [optional]
|
47
|
+
|
48
|
+
### Return type
|
49
|
+
|
50
|
+
[**Message**](Message.md)
|
51
|
+
|
52
|
+
### Authorization
|
53
|
+
|
54
|
+
[bearerAuth](../README.md#bearerAuth)
|
55
|
+
|
56
|
+
### HTTP request headers
|
57
|
+
|
58
|
+
- **Content-Type**: application/json
|
59
|
+
- **Accept**: application/json
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
# **get_message_by_id**
|
64
|
+
> Message get_message_by_id(rental_id, id)
|
65
|
+
|
66
|
+
Find a message by ID associated to a rental
|
67
|
+
|
68
|
+
Find a message by ID associated to a rental
|
69
|
+
|
70
|
+
### Example
|
71
|
+
```ruby
|
72
|
+
# load the gem
|
73
|
+
require 'getaround-api'
|
74
|
+
# setup authorization
|
75
|
+
GetAroundOwner.configure do |config|
|
76
|
+
end
|
77
|
+
|
78
|
+
api_instance = GetAroundOwner::MessagesApi.new
|
79
|
+
rental_id = GetAroundOwner::null.new # | ID of rental
|
80
|
+
id = GetAroundOwner::null.new # | ID of message to return
|
81
|
+
|
82
|
+
|
83
|
+
begin
|
84
|
+
#Find a message by ID associated to a rental
|
85
|
+
result = api_instance.get_message_by_id(rental_id, id)
|
86
|
+
p result
|
87
|
+
rescue GetAroundOwner::ApiError => e
|
88
|
+
puts "Exception when calling MessagesApi->get_message_by_id: #{e}"
|
89
|
+
end
|
90
|
+
```
|
91
|
+
|
92
|
+
### Parameters
|
93
|
+
|
94
|
+
Name | Type | Description | Notes
|
95
|
+
------------- | ------------- | ------------- | -------------
|
96
|
+
**rental_id** | [****](.md)| ID of rental |
|
97
|
+
**id** | [****](.md)| ID of message to return |
|
98
|
+
|
99
|
+
### Return type
|
100
|
+
|
101
|
+
[**Message**](Message.md)
|
102
|
+
|
103
|
+
### Authorization
|
104
|
+
|
105
|
+
[bearerAuth](../README.md#bearerAuth)
|
106
|
+
|
107
|
+
### HTTP request headers
|
108
|
+
|
109
|
+
- **Content-Type**: Not defined
|
110
|
+
- **Accept**: application/json
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
# **get_messages_for_rental**
|
115
|
+
> RentalMessagesIndex get_messages_for_rental(rental_id)
|
116
|
+
|
117
|
+
Find messages associated to a rental
|
118
|
+
|
119
|
+
Find messages associated to a rental
|
120
|
+
|
121
|
+
### Example
|
122
|
+
```ruby
|
123
|
+
# load the gem
|
124
|
+
require 'getaround-api'
|
125
|
+
# setup authorization
|
126
|
+
GetAroundOwner.configure do |config|
|
127
|
+
end
|
128
|
+
|
129
|
+
api_instance = GetAroundOwner::MessagesApi.new
|
130
|
+
rental_id = GetAroundOwner::null.new # | ID of rental
|
131
|
+
|
132
|
+
|
133
|
+
begin
|
134
|
+
#Find messages associated to a rental
|
135
|
+
result = api_instance.get_messages_for_rental(rental_id)
|
136
|
+
p result
|
137
|
+
rescue GetAroundOwner::ApiError => e
|
138
|
+
puts "Exception when calling MessagesApi->get_messages_for_rental: #{e}"
|
139
|
+
end
|
140
|
+
```
|
141
|
+
|
142
|
+
### Parameters
|
143
|
+
|
144
|
+
Name | Type | Description | Notes
|
145
|
+
------------- | ------------- | ------------- | -------------
|
146
|
+
**rental_id** | [****](.md)| ID of rental |
|
147
|
+
|
148
|
+
### Return type
|
149
|
+
|
150
|
+
[**RentalMessagesIndex**](RentalMessagesIndex.md)
|
151
|
+
|
152
|
+
### Authorization
|
153
|
+
|
154
|
+
[bearerAuth](../README.md#bearerAuth)
|
155
|
+
|
156
|
+
### HTTP request headers
|
157
|
+
|
158
|
+
- **Content-Type**: Not defined
|
159
|
+
- **Accept**: application/json
|
160
|
+
|
161
|
+
|
162
|
+
|
data/docs/Payout.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# GetAroundOwner::Payout
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | [****](.md) | The payout ID |
|
7
|
+
**amount** | [****](.md) | The amount of the payout, in cents (0.01€) |
|
8
|
+
**currency** | [****](.md) | The currency of the payout (ISO 4217 alphabetic code) |
|
9
|
+
**completed_at** | [****](.md) | The ISO8601 formatted payout completion date |
|
10
|
+
**entity_type** | [****](.md) | The type of entity the payout is related to |
|
11
|
+
**invoices** | [****](.md) | An array of invoices paid by this payout | [optional]
|
12
|
+
|
data/docs/PayoutsApi.md
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
# GetAroundOwner::PayoutsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-eu.getaround.com/owner/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_payout_by_id**](PayoutsApi.md#get_payout_by_id) | **GET** /payouts/{id}.json | Find a payout by ID
|
8
|
+
[**get_payouts**](PayoutsApi.md#get_payouts) | **GET** /payouts.json | Find payouts paid between dates
|
9
|
+
|
10
|
+
# **get_payout_by_id**
|
11
|
+
> Payout get_payout_by_id(id)
|
12
|
+
|
13
|
+
Find a payout by ID
|
14
|
+
|
15
|
+
Find a payout by ID
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'getaround-api'
|
21
|
+
# setup authorization
|
22
|
+
GetAroundOwner.configure do |config|
|
23
|
+
end
|
24
|
+
|
25
|
+
api_instance = GetAroundOwner::PayoutsApi.new
|
26
|
+
id = GetAroundOwner::null.new # | ID of payout to return
|
27
|
+
|
28
|
+
|
29
|
+
begin
|
30
|
+
#Find a payout by ID
|
31
|
+
result = api_instance.get_payout_by_id(id)
|
32
|
+
p result
|
33
|
+
rescue GetAroundOwner::ApiError => e
|
34
|
+
puts "Exception when calling PayoutsApi->get_payout_by_id: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
### Parameters
|
39
|
+
|
40
|
+
Name | Type | Description | Notes
|
41
|
+
------------- | ------------- | ------------- | -------------
|
42
|
+
**id** | [****](.md)| ID of payout to return |
|
43
|
+
|
44
|
+
### Return type
|
45
|
+
|
46
|
+
[**Payout**](Payout.md)
|
47
|
+
|
48
|
+
### Authorization
|
49
|
+
|
50
|
+
[bearerAuth](../README.md#bearerAuth)
|
51
|
+
|
52
|
+
### HTTP request headers
|
53
|
+
|
54
|
+
- **Content-Type**: Not defined
|
55
|
+
- **Accept**: application/json
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
# **get_payouts**
|
60
|
+
> PayoutsIndex get_payouts(start_date, end_date, opts)
|
61
|
+
|
62
|
+
Find payouts paid between dates
|
63
|
+
|
64
|
+
Find payouts paid between dates
|
65
|
+
|
66
|
+
### Example
|
67
|
+
```ruby
|
68
|
+
# load the gem
|
69
|
+
require 'getaround-api'
|
70
|
+
# setup authorization
|
71
|
+
GetAroundOwner.configure do |config|
|
72
|
+
end
|
73
|
+
|
74
|
+
api_instance = GetAroundOwner::PayoutsApi.new
|
75
|
+
start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
76
|
+
end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
77
|
+
opts = {
|
78
|
+
page: GetAroundOwner::null.new, # | Page number
|
79
|
+
per_page: GetAroundOwner::null.new # | Page size
|
80
|
+
}
|
81
|
+
|
82
|
+
begin
|
83
|
+
#Find payouts paid between dates
|
84
|
+
result = api_instance.get_payouts(start_date, end_date, opts)
|
85
|
+
p result
|
86
|
+
rescue GetAroundOwner::ApiError => e
|
87
|
+
puts "Exception when calling PayoutsApi->get_payouts: #{e}"
|
88
|
+
end
|
89
|
+
```
|
90
|
+
|
91
|
+
### Parameters
|
92
|
+
|
93
|
+
Name | Type | Description | Notes
|
94
|
+
------------- | ------------- | ------------- | -------------
|
95
|
+
**start_date** | [****](.md)| Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
|
96
|
+
**end_date** | [****](.md)| End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
|
97
|
+
**page** | [****](.md)| Page number | [optional]
|
98
|
+
**per_page** | [****](.md)| Page size | [optional] [default to 30]
|
99
|
+
|
100
|
+
### Return type
|
101
|
+
|
102
|
+
[**PayoutsIndex**](PayoutsIndex.md)
|
103
|
+
|
104
|
+
### Authorization
|
105
|
+
|
106
|
+
[bearerAuth](../README.md#bearerAuth)
|
107
|
+
|
108
|
+
### HTTP request headers
|
109
|
+
|
110
|
+
- **Content-Type**: Not defined
|
111
|
+
- **Accept**: application/json
|
112
|
+
|
113
|
+
|
114
|
+
|
data/docs/Rental.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# GetAroundOwner::Rental
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | [****](.md) | Rental's id |
|
7
|
+
**car_id** | [****](.md) | Vehicle's id |
|
8
|
+
**user_id** | [****](.md) | User id of the rental's driver |
|
9
|
+
**starts_at** | [****](.md) | Rental's started time in ISO8601 format |
|
10
|
+
**ends_at** | [****](.md) | Rental's ended time in ISO8601 format |
|
11
|
+
**booked_at** | [****](.md) | Rental's booked time in ISO8601 format |
|
12
|
+
**price** | [****](.md) | Price set by the owner (in cents 0.01€) |
|
13
|
+
**insurance_fee** | [****](.md) | Insurance amount collected (in cents 0.01€) |
|
14
|
+
|
data/docs/RentalsApi.md
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
# GetAroundOwner::RentalsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api-eu.getaround.com/owner/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_rental_by_id**](RentalsApi.md#get_rental_by_id) | **GET** /rentals/{id}.json | Find a rental by ID
|
8
|
+
[**get_rentals**](RentalsApi.md#get_rentals) | **GET** /rentals.json | Find rentals booked between dates
|
9
|
+
|
10
|
+
# **get_rental_by_id**
|
11
|
+
> Rental get_rental_by_id(id)
|
12
|
+
|
13
|
+
Find a rental by ID
|
14
|
+
|
15
|
+
Find a rental by ID
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'getaround-api'
|
21
|
+
# setup authorization
|
22
|
+
GetAroundOwner.configure do |config|
|
23
|
+
end
|
24
|
+
|
25
|
+
api_instance = GetAroundOwner::RentalsApi.new
|
26
|
+
id = GetAroundOwner::null.new # | ID of rental to return
|
27
|
+
|
28
|
+
|
29
|
+
begin
|
30
|
+
#Find a rental by ID
|
31
|
+
result = api_instance.get_rental_by_id(id)
|
32
|
+
p result
|
33
|
+
rescue GetAroundOwner::ApiError => e
|
34
|
+
puts "Exception when calling RentalsApi->get_rental_by_id: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
### Parameters
|
39
|
+
|
40
|
+
Name | Type | Description | Notes
|
41
|
+
------------- | ------------- | ------------- | -------------
|
42
|
+
**id** | [****](.md)| ID of rental to return |
|
43
|
+
|
44
|
+
### Return type
|
45
|
+
|
46
|
+
[**Rental**](Rental.md)
|
47
|
+
|
48
|
+
### Authorization
|
49
|
+
|
50
|
+
[bearerAuth](../README.md#bearerAuth)
|
51
|
+
|
52
|
+
### HTTP request headers
|
53
|
+
|
54
|
+
- **Content-Type**: Not defined
|
55
|
+
- **Accept**: application/json
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
# **get_rentals**
|
60
|
+
> RentalsIndex get_rentals(start_date, end_date, opts)
|
61
|
+
|
62
|
+
Find rentals booked between dates
|
63
|
+
|
64
|
+
Find rentals booked between dates
|
65
|
+
|
66
|
+
### Example
|
67
|
+
```ruby
|
68
|
+
# load the gem
|
69
|
+
require 'getaround-api'
|
70
|
+
# setup authorization
|
71
|
+
GetAroundOwner.configure do |config|
|
72
|
+
end
|
73
|
+
|
74
|
+
api_instance = GetAroundOwner::RentalsApi.new
|
75
|
+
start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
76
|
+
end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
77
|
+
opts = {
|
78
|
+
page: GetAroundOwner::null.new, # | Page number
|
79
|
+
per_page: GetAroundOwner::null.new # | Page size
|
80
|
+
}
|
81
|
+
|
82
|
+
begin
|
83
|
+
#Find rentals booked between dates
|
84
|
+
result = api_instance.get_rentals(start_date, end_date, opts)
|
85
|
+
p result
|
86
|
+
rescue GetAroundOwner::ApiError => e
|
87
|
+
puts "Exception when calling RentalsApi->get_rentals: #{e}"
|
88
|
+
end
|
89
|
+
```
|
90
|
+
|
91
|
+
### Parameters
|
92
|
+
|
93
|
+
Name | Type | Description | Notes
|
94
|
+
------------- | ------------- | ------------- | -------------
|
95
|
+
**start_date** | [****](.md)| Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
|
96
|
+
**end_date** | [****](.md)| End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
|
97
|
+
**page** | [****](.md)| Page number | [optional]
|
98
|
+
**per_page** | [****](.md)| Page size | [optional] [default to 30]
|
99
|
+
|
100
|
+
### Return type
|
101
|
+
|
102
|
+
[**RentalsIndex**](RentalsIndex.md)
|
103
|
+
|
104
|
+
### Authorization
|
105
|
+
|
106
|
+
[bearerAuth](../README.md#bearerAuth)
|
107
|
+
|
108
|
+
### HTTP request headers
|
109
|
+
|
110
|
+
- **Content-Type**: Not defined
|
111
|
+
- **Accept**: application/json
|
112
|
+
|
113
|
+
|
114
|
+
|