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/docs/InvoicesApi.md
CHANGED
@@ -2,71 +2,49 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *https://api-eu.getaround.com/owner/v1*
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
> <GetaroundInvoice> get_invoice_by_id(id)
|
11
|
+
# **get_invoice_by_id**
|
12
|
+
> Invoice get_invoice_by_id(id)
|
15
13
|
|
16
14
|
Find an invoice by ID
|
17
15
|
|
18
16
|
Find an invoice by ID
|
19
17
|
|
20
|
-
###
|
21
|
-
|
18
|
+
### Example
|
22
19
|
```ruby
|
23
|
-
|
24
|
-
require '
|
20
|
+
# load the gem
|
21
|
+
require 'getaround-api'
|
25
22
|
# setup authorization
|
26
23
|
GetAroundOwner.configure do |config|
|
27
|
-
# Configure Bearer authorization: bearerAuth
|
28
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
29
24
|
end
|
30
25
|
|
31
26
|
api_instance = GetAroundOwner::InvoicesApi.new
|
32
|
-
id =
|
27
|
+
id = GetAroundOwner::null.new # | ID of invoice to return
|
28
|
+
|
33
29
|
|
34
30
|
begin
|
35
|
-
#
|
31
|
+
#Find an invoice by ID
|
36
32
|
result = api_instance.get_invoice_by_id(id)
|
37
33
|
p result
|
38
34
|
rescue GetAroundOwner::ApiError => e
|
39
|
-
puts "
|
40
|
-
end
|
41
|
-
```
|
42
|
-
|
43
|
-
#### Using the get_invoice_by_id_with_http_info variant
|
44
|
-
|
45
|
-
This returns an Array which contains the response data, status code and headers.
|
46
|
-
|
47
|
-
> <Array(<GetaroundInvoice>, Integer, Hash)> get_invoice_by_id_with_http_info(id)
|
48
|
-
|
49
|
-
```ruby
|
50
|
-
begin
|
51
|
-
# Find an invoice by ID
|
52
|
-
data, status_code, headers = api_instance.get_invoice_by_id_with_http_info(id)
|
53
|
-
p status_code # => 2xx
|
54
|
-
p headers # => { ... }
|
55
|
-
p data # => <GetaroundInvoice>
|
56
|
-
rescue GetAroundOwner::ApiError => e
|
57
|
-
puts "Error when calling InvoicesApi->get_invoice_by_id_with_http_info: #{e}"
|
35
|
+
puts "Exception when calling InvoicesApi->get_invoice_by_id: #{e}"
|
58
36
|
end
|
59
37
|
```
|
60
38
|
|
61
39
|
### Parameters
|
62
40
|
|
63
|
-
|
64
|
-
|
65
|
-
|
41
|
+
Name | Type | Description | Notes
|
42
|
+
------------- | ------------- | ------------- | -------------
|
43
|
+
**id** | [****](.md)| ID of invoice to return |
|
66
44
|
|
67
45
|
### Return type
|
68
46
|
|
69
|
-
[**
|
47
|
+
[**Invoice**](Invoice.md)
|
70
48
|
|
71
49
|
### Authorization
|
72
50
|
|
@@ -74,76 +52,55 @@ end
|
|
74
52
|
|
75
53
|
### HTTP request headers
|
76
54
|
|
77
|
-
- **Content-Type**: Not defined
|
78
|
-
- **Accept**: application/json
|
55
|
+
- **Content-Type**: Not defined
|
56
|
+
- **Accept**: application/json
|
79
57
|
|
80
58
|
|
81
|
-
## get_invoices
|
82
59
|
|
83
|
-
|
60
|
+
# **get_invoices**
|
61
|
+
> InvoicesIndex get_invoices(opts)
|
84
62
|
|
85
63
|
Find invoices emitted between dates
|
86
64
|
|
87
65
|
Find invoices emitted between dates
|
88
66
|
|
89
|
-
###
|
90
|
-
|
67
|
+
### Example
|
91
68
|
```ruby
|
92
|
-
|
93
|
-
require '
|
69
|
+
# load the gem
|
70
|
+
require 'getaround-api'
|
94
71
|
# setup authorization
|
95
72
|
GetAroundOwner.configure do |config|
|
96
|
-
# Configure Bearer authorization: bearerAuth
|
97
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
98
73
|
end
|
99
74
|
|
100
75
|
api_instance = GetAroundOwner::InvoicesApi.new
|
101
|
-
opts = {
|
102
|
-
start_date:
|
103
|
-
end_date:
|
104
|
-
page:
|
105
|
-
per_page:
|
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
|
106
81
|
}
|
107
82
|
|
108
83
|
begin
|
109
|
-
#
|
84
|
+
#Find invoices emitted between dates
|
110
85
|
result = api_instance.get_invoices(opts)
|
111
86
|
p result
|
112
87
|
rescue GetAroundOwner::ApiError => e
|
113
|
-
puts "
|
114
|
-
end
|
115
|
-
```
|
116
|
-
|
117
|
-
#### Using the get_invoices_with_http_info variant
|
118
|
-
|
119
|
-
This returns an Array which contains the response data, status code and headers.
|
120
|
-
|
121
|
-
> <Array(<Array<GetaroundInvoicesIndexInner>>, Integer, Hash)> get_invoices_with_http_info(opts)
|
122
|
-
|
123
|
-
```ruby
|
124
|
-
begin
|
125
|
-
# Find invoices emitted between dates
|
126
|
-
data, status_code, headers = api_instance.get_invoices_with_http_info(opts)
|
127
|
-
p status_code # => 2xx
|
128
|
-
p headers # => { ... }
|
129
|
-
p data # => <Array<GetaroundInvoicesIndexInner>>
|
130
|
-
rescue GetAroundOwner::ApiError => e
|
131
|
-
puts "Error when calling InvoicesApi->get_invoices_with_http_info: #{e}"
|
88
|
+
puts "Exception when calling InvoicesApi->get_invoices: #{e}"
|
132
89
|
end
|
133
90
|
```
|
134
91
|
|
135
92
|
### Parameters
|
136
93
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
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]
|
143
100
|
|
144
101
|
### Return type
|
145
102
|
|
146
|
-
[**
|
103
|
+
[**InvoicesIndex**](InvoicesIndex.md)
|
147
104
|
|
148
105
|
### Authorization
|
149
106
|
|
@@ -151,74 +108,53 @@ end
|
|
151
108
|
|
152
109
|
### HTTP request headers
|
153
110
|
|
154
|
-
- **Content-Type**: Not defined
|
155
|
-
- **Accept**: application/json
|
111
|
+
- **Content-Type**: Not defined
|
112
|
+
- **Accept**: application/json
|
156
113
|
|
157
114
|
|
158
|
-
## get_invoices_for_rental
|
159
115
|
|
160
|
-
|
116
|
+
# **get_invoices_for_rental**
|
117
|
+
> RentalInvoicesIndex get_invoices_for_rental(rental_id, opts)
|
161
118
|
|
162
119
|
Find invoices associated to a rental
|
163
120
|
|
164
121
|
Find invoices associated to a rental
|
165
122
|
|
166
|
-
###
|
167
|
-
|
123
|
+
### Example
|
168
124
|
```ruby
|
169
|
-
|
170
|
-
require '
|
125
|
+
# load the gem
|
126
|
+
require 'getaround-api'
|
171
127
|
# setup authorization
|
172
128
|
GetAroundOwner.configure do |config|
|
173
|
-
# Configure Bearer authorization: bearerAuth
|
174
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
175
129
|
end
|
176
130
|
|
177
131
|
api_instance = GetAroundOwner::InvoicesApi.new
|
178
|
-
rental_id =
|
179
|
-
opts = {
|
180
|
-
page:
|
181
|
-
per_page:
|
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
|
182
136
|
}
|
183
137
|
|
184
138
|
begin
|
185
|
-
#
|
139
|
+
#Find invoices associated to a rental
|
186
140
|
result = api_instance.get_invoices_for_rental(rental_id, opts)
|
187
141
|
p result
|
188
142
|
rescue GetAroundOwner::ApiError => e
|
189
|
-
puts "
|
190
|
-
end
|
191
|
-
```
|
192
|
-
|
193
|
-
#### Using the get_invoices_for_rental_with_http_info variant
|
194
|
-
|
195
|
-
This returns an Array which contains the response data, status code and headers.
|
196
|
-
|
197
|
-
> <Array(<Array<GetaroundRentalInvoicesIndexInner>>, Integer, Hash)> get_invoices_for_rental_with_http_info(rental_id, opts)
|
198
|
-
|
199
|
-
```ruby
|
200
|
-
begin
|
201
|
-
# Find invoices associated to a rental
|
202
|
-
data, status_code, headers = api_instance.get_invoices_for_rental_with_http_info(rental_id, opts)
|
203
|
-
p status_code # => 2xx
|
204
|
-
p headers # => { ... }
|
205
|
-
p data # => <Array<GetaroundRentalInvoicesIndexInner>>
|
206
|
-
rescue GetAroundOwner::ApiError => e
|
207
|
-
puts "Error when calling InvoicesApi->get_invoices_for_rental_with_http_info: #{e}"
|
143
|
+
puts "Exception when calling InvoicesApi->get_invoices_for_rental: #{e}"
|
208
144
|
end
|
209
145
|
```
|
210
146
|
|
211
147
|
### Parameters
|
212
148
|
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
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]
|
218
154
|
|
219
155
|
### Return type
|
220
156
|
|
221
|
-
[**
|
157
|
+
[**RentalInvoicesIndex**](RentalInvoicesIndex.md)
|
222
158
|
|
223
159
|
### Authorization
|
224
160
|
|
@@ -226,6 +162,8 @@ end
|
|
226
162
|
|
227
163
|
### HTTP request headers
|
228
164
|
|
229
|
-
- **Content-Type**: Not defined
|
230
|
-
- **Accept**: application/json
|
165
|
+
- **Content-Type**: Not defined
|
166
|
+
- **Accept**: application/json
|
167
|
+
|
168
|
+
|
231
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
CHANGED
@@ -2,70 +2,161 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *https://api-eu.getaround.com/owner/v1*
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
8
10
|
|
11
|
+
# **create_messages**
|
12
|
+
> Message create_messages(rental_id, opts)
|
9
13
|
|
10
|
-
|
14
|
+
Create Message associated to a rental
|
11
15
|
|
12
|
-
|
16
|
+
Create Message associated to a rental
|
13
17
|
|
14
|
-
|
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)
|
15
65
|
|
16
|
-
|
66
|
+
Find a message by ID associated to a rental
|
17
67
|
|
68
|
+
Find a message by ID associated to a rental
|
69
|
+
|
70
|
+
### Example
|
18
71
|
```ruby
|
19
|
-
|
20
|
-
require '
|
72
|
+
# load the gem
|
73
|
+
require 'getaround-api'
|
74
|
+
# setup authorization
|
75
|
+
GetAroundOwner.configure do |config|
|
76
|
+
end
|
21
77
|
|
22
78
|
api_instance = GetAroundOwner::MessagesApi.new
|
23
|
-
|
24
|
-
|
25
|
-
|
79
|
+
rental_id = GetAroundOwner::null.new # | ID of rental
|
80
|
+
id = GetAroundOwner::null.new # | ID of message to return
|
81
|
+
|
26
82
|
|
27
83
|
begin
|
28
|
-
#
|
29
|
-
api_instance.
|
84
|
+
#Find a message by ID associated to a rental
|
85
|
+
result = api_instance.get_message_by_id(rental_id, id)
|
86
|
+
p result
|
30
87
|
rescue GetAroundOwner::ApiError => e
|
31
|
-
puts "
|
88
|
+
puts "Exception when calling MessagesApi->get_message_by_id: #{e}"
|
32
89
|
end
|
33
90
|
```
|
34
91
|
|
35
|
-
|
92
|
+
### Parameters
|
93
|
+
|
94
|
+
Name | Type | Description | Notes
|
95
|
+
------------- | ------------- | ------------- | -------------
|
96
|
+
**rental_id** | [****](.md)| ID of rental |
|
97
|
+
**id** | [****](.md)| ID of message to return |
|
36
98
|
|
37
|
-
|
99
|
+
### Return type
|
100
|
+
|
101
|
+
[**Message**](Message.md)
|
102
|
+
|
103
|
+
### Authorization
|
104
|
+
|
105
|
+
[bearerAuth](../README.md#bearerAuth)
|
106
|
+
|
107
|
+
### HTTP request headers
|
38
108
|
|
39
|
-
|
109
|
+
- **Content-Type**: Not defined
|
110
|
+
- **Accept**: application/json
|
40
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
|
41
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
|
+
|
42
133
|
begin
|
43
|
-
#
|
44
|
-
|
45
|
-
p
|
46
|
-
p headers # => { ... }
|
47
|
-
p data # => nil
|
134
|
+
#Find messages associated to a rental
|
135
|
+
result = api_instance.get_messages_for_rental(rental_id)
|
136
|
+
p result
|
48
137
|
rescue GetAroundOwner::ApiError => e
|
49
|
-
puts "
|
138
|
+
puts "Exception when calling MessagesApi->get_messages_for_rental: #{e}"
|
50
139
|
end
|
51
140
|
```
|
52
141
|
|
53
142
|
### Parameters
|
54
143
|
|
55
|
-
|
56
|
-
|
57
|
-
|
144
|
+
Name | Type | Description | Notes
|
145
|
+
------------- | ------------- | ------------- | -------------
|
146
|
+
**rental_id** | [****](.md)| ID of rental |
|
58
147
|
|
59
148
|
### Return type
|
60
149
|
|
61
|
-
|
150
|
+
[**RentalMessagesIndex**](RentalMessagesIndex.md)
|
62
151
|
|
63
152
|
### Authorization
|
64
153
|
|
65
|
-
|
154
|
+
[bearerAuth](../README.md#bearerAuth)
|
66
155
|
|
67
156
|
### HTTP request headers
|
68
157
|
|
69
|
-
- **Content-Type**:
|
70
|
-
- **Accept**:
|
158
|
+
- **Content-Type**: Not defined
|
159
|
+
- **Accept**: application/json
|
160
|
+
|
161
|
+
|
71
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
|
+
|