get_around_owner 1.0.0 → 1.0.1
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/lib/get_around_owner/version.rb +2 -2
- metadata +2 -53
- data/Gemfile +0 -9
- data/Rakefile +0 -10
- data/docs/CarsApi.md +0 -151
- data/docs/CheckinsApi.md +0 -71
- data/docs/CheckoutsApi.md +0 -71
- data/docs/GetaroundCar.md +0 -28
- data/docs/GetaroundCarsIndexInner.md +0 -18
- data/docs/GetaroundCheckin.md +0 -24
- data/docs/GetaroundCheckinsIndexInner.md +0 -18
- data/docs/GetaroundCheckout.md +0 -26
- data/docs/GetaroundCreateMessagesRequest.md +0 -18
- data/docs/GetaroundCreateUnavailabilitiesRequest.md +0 -22
- data/docs/GetaroundDestroyUnavailabilityRequest.md +0 -20
- data/docs/GetaroundInvoice.md +0 -34
- data/docs/GetaroundInvoiceChargesInner.md +0 -20
- data/docs/GetaroundInvoicesIndexInner.md +0 -18
- data/docs/GetaroundMessage.md +0 -26
- data/docs/GetaroundMessagesSent.md +0 -22
- data/docs/GetaroundMessagesSentAllOfData.md +0 -20
- data/docs/GetaroundPayout.md +0 -28
- data/docs/GetaroundPayoutInvoicesInner.md +0 -18
- data/docs/GetaroundPayoutsIndexInner.md +0 -18
- data/docs/GetaroundReason.md +0 -15
- data/docs/GetaroundRental.md +0 -32
- data/docs/GetaroundRentalInvoicesIndexInner.md +0 -18
- data/docs/GetaroundRentalMessagesIndexInner.md +0 -18
- data/docs/GetaroundRentalsBooked.md +0 -22
- data/docs/GetaroundRentalsBookedAllOfData.md +0 -18
- data/docs/GetaroundRentalsCanceled.md +0 -22
- data/docs/GetaroundRentalsCarCheckedIn.md +0 -22
- data/docs/GetaroundRentalsCarCheckedOut.md +0 -22
- data/docs/GetaroundRentalsCarSwitched.md +0 -22
- data/docs/GetaroundRentalsIndexInner.md +0 -18
- data/docs/GetaroundRentalsTimesChanged.md +0 -22
- data/docs/GetaroundUnavailabilitiesCreated.md +0 -22
- data/docs/GetaroundUnavailabilitiesCreatedAllOfData.md +0 -24
- data/docs/GetaroundUnavailabilitiesDeleted.md +0 -22
- data/docs/GetaroundUnavailabilitiesDeletedAllOfData.md +0 -22
- data/docs/GetaroundUnavailability.md +0 -24
- data/docs/GetaroundUser.md +0 -42
- data/docs/GetaroundUsersUpdated.md +0 -22
- data/docs/GetaroundUsersUpdatedAllOfData.md +0 -18
- data/docs/GetaroundWebhook.md +0 -22
- data/docs/InvoicesApi.md +0 -231
- data/docs/MessagesApi.md +0 -71
- data/docs/PayoutsApi.md +0 -155
- data/docs/RentalsApi.md +0 -263
- data/docs/UnavailabilitiesApi.md +0 -135
- data/docs/UsersApi.md +0 -71
- data/get_around_owner.gemspec +0 -26
- data/git_push.sh +0 -57
data/docs/InvoicesApi.md
DELETED
@@ -1,231 +0,0 @@
|
|
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
|
-
|
12
|
-
## get_invoice_by_id
|
13
|
-
|
14
|
-
> <GetaroundInvoice> get_invoice_by_id(id)
|
15
|
-
|
16
|
-
Find an invoice by ID
|
17
|
-
|
18
|
-
Find an invoice by ID
|
19
|
-
|
20
|
-
### Examples
|
21
|
-
|
22
|
-
```ruby
|
23
|
-
require 'time'
|
24
|
-
require 'get_around_owner'
|
25
|
-
# setup authorization
|
26
|
-
GetAroundOwner.configure do |config|
|
27
|
-
# Configure Bearer authorization: bearerAuth
|
28
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
29
|
-
end
|
30
|
-
|
31
|
-
api_instance = GetAroundOwner::InvoicesApi.new
|
32
|
-
id = '1' # String | ID of invoice to return
|
33
|
-
|
34
|
-
begin
|
35
|
-
# Find an invoice by ID
|
36
|
-
result = api_instance.get_invoice_by_id(id)
|
37
|
-
p result
|
38
|
-
rescue GetAroundOwner::ApiError => e
|
39
|
-
puts "Error when calling InvoicesApi->get_invoice_by_id: #{e}"
|
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}"
|
58
|
-
end
|
59
|
-
```
|
60
|
-
|
61
|
-
### Parameters
|
62
|
-
|
63
|
-
| Name | Type | Description | Notes |
|
64
|
-
| ---- | ---- | ----------- | ----- |
|
65
|
-
| **id** | **String** | ID of invoice to return | |
|
66
|
-
|
67
|
-
### Return type
|
68
|
-
|
69
|
-
[**GetaroundInvoice**](GetaroundInvoice.md)
|
70
|
-
|
71
|
-
### Authorization
|
72
|
-
|
73
|
-
[bearerAuth](../README.md#bearerAuth)
|
74
|
-
|
75
|
-
### HTTP request headers
|
76
|
-
|
77
|
-
- **Content-Type**: Not defined
|
78
|
-
- **Accept**: application/json
|
79
|
-
|
80
|
-
|
81
|
-
## get_invoices
|
82
|
-
|
83
|
-
> <Array<GetaroundInvoicesIndexInner>> get_invoices(opts)
|
84
|
-
|
85
|
-
Find invoices emitted between dates
|
86
|
-
|
87
|
-
Find invoices emitted between dates
|
88
|
-
|
89
|
-
### Examples
|
90
|
-
|
91
|
-
```ruby
|
92
|
-
require 'time'
|
93
|
-
require 'get_around_owner'
|
94
|
-
# setup authorization
|
95
|
-
GetAroundOwner.configure do |config|
|
96
|
-
# Configure Bearer authorization: bearerAuth
|
97
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
98
|
-
end
|
99
|
-
|
100
|
-
api_instance = GetAroundOwner::InvoicesApi.new
|
101
|
-
opts = {
|
102
|
-
start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
103
|
-
end_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
104
|
-
page: 'page_example', # String | Page number
|
105
|
-
per_page: 'per_page_example' # String | Page size
|
106
|
-
}
|
107
|
-
|
108
|
-
begin
|
109
|
-
# Find invoices emitted between dates
|
110
|
-
result = api_instance.get_invoices(opts)
|
111
|
-
p result
|
112
|
-
rescue GetAroundOwner::ApiError => e
|
113
|
-
puts "Error when calling InvoicesApi->get_invoices: #{e}"
|
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}"
|
132
|
-
end
|
133
|
-
```
|
134
|
-
|
135
|
-
### Parameters
|
136
|
-
|
137
|
-
| Name | Type | Description | Notes |
|
138
|
-
| ---- | ---- | ----------- | ----- |
|
139
|
-
| **start_date** | **Time** | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | [optional] |
|
140
|
-
| **end_date** | **Time** | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | [optional] |
|
141
|
-
| **page** | **String** | Page number | [optional] |
|
142
|
-
| **per_page** | **String** | Page size | [optional][default to '30'] |
|
143
|
-
|
144
|
-
### Return type
|
145
|
-
|
146
|
-
[**Array<GetaroundInvoicesIndexInner>**](GetaroundInvoicesIndexInner.md)
|
147
|
-
|
148
|
-
### Authorization
|
149
|
-
|
150
|
-
[bearerAuth](../README.md#bearerAuth)
|
151
|
-
|
152
|
-
### HTTP request headers
|
153
|
-
|
154
|
-
- **Content-Type**: Not defined
|
155
|
-
- **Accept**: application/json
|
156
|
-
|
157
|
-
|
158
|
-
## get_invoices_for_rental
|
159
|
-
|
160
|
-
> <Array<GetaroundRentalInvoicesIndexInner>> get_invoices_for_rental(rental_id, opts)
|
161
|
-
|
162
|
-
Find invoices associated to a rental
|
163
|
-
|
164
|
-
Find invoices associated to a rental
|
165
|
-
|
166
|
-
### Examples
|
167
|
-
|
168
|
-
```ruby
|
169
|
-
require 'time'
|
170
|
-
require 'get_around_owner'
|
171
|
-
# setup authorization
|
172
|
-
GetAroundOwner.configure do |config|
|
173
|
-
# Configure Bearer authorization: bearerAuth
|
174
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
175
|
-
end
|
176
|
-
|
177
|
-
api_instance = GetAroundOwner::InvoicesApi.new
|
178
|
-
rental_id = '1' # String | ID of rental
|
179
|
-
opts = {
|
180
|
-
page: 'page_example', # String | Page number
|
181
|
-
per_page: 'per_page_example' # String | Page size
|
182
|
-
}
|
183
|
-
|
184
|
-
begin
|
185
|
-
# Find invoices associated to a rental
|
186
|
-
result = api_instance.get_invoices_for_rental(rental_id, opts)
|
187
|
-
p result
|
188
|
-
rescue GetAroundOwner::ApiError => e
|
189
|
-
puts "Error when calling InvoicesApi->get_invoices_for_rental: #{e}"
|
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}"
|
208
|
-
end
|
209
|
-
```
|
210
|
-
|
211
|
-
### Parameters
|
212
|
-
|
213
|
-
| Name | Type | Description | Notes |
|
214
|
-
| ---- | ---- | ----------- | ----- |
|
215
|
-
| **rental_id** | **String** | ID of rental | |
|
216
|
-
| **page** | **String** | Page number | [optional] |
|
217
|
-
| **per_page** | **String** | Page size | [optional][default to '30'] |
|
218
|
-
|
219
|
-
### Return type
|
220
|
-
|
221
|
-
[**Array<GetaroundRentalInvoicesIndexInner>**](GetaroundRentalInvoicesIndexInner.md)
|
222
|
-
|
223
|
-
### Authorization
|
224
|
-
|
225
|
-
[bearerAuth](../README.md#bearerAuth)
|
226
|
-
|
227
|
-
### HTTP request headers
|
228
|
-
|
229
|
-
- **Content-Type**: Not defined
|
230
|
-
- **Accept**: application/json
|
231
|
-
|
data/docs/MessagesApi.md
DELETED
@@ -1,71 +0,0 @@
|
|
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
|
-
| [**sent_message_post**](MessagesApi.md#sent_message_post) | **POST** /sentMessage | New message sent |
|
8
|
-
|
9
|
-
|
10
|
-
## sent_message_post
|
11
|
-
|
12
|
-
> sent_message_post(opts)
|
13
|
-
|
14
|
-
New message sent
|
15
|
-
|
16
|
-
### Examples
|
17
|
-
|
18
|
-
```ruby
|
19
|
-
require 'time'
|
20
|
-
require 'get_around_owner'
|
21
|
-
|
22
|
-
api_instance = GetAroundOwner::MessagesApi.new
|
23
|
-
opts = {
|
24
|
-
getaround_messages_sent: # GetaroundMessagesSent | This event is triggered when a new message has been sent for one of your rentals
|
25
|
-
}
|
26
|
-
|
27
|
-
begin
|
28
|
-
# New message sent
|
29
|
-
api_instance.sent_message_post(opts)
|
30
|
-
rescue GetAroundOwner::ApiError => e
|
31
|
-
puts "Error when calling MessagesApi->sent_message_post: #{e}"
|
32
|
-
end
|
33
|
-
```
|
34
|
-
|
35
|
-
#### Using the sent_message_post_with_http_info variant
|
36
|
-
|
37
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
38
|
-
|
39
|
-
> <Array(nil, Integer, Hash)> sent_message_post_with_http_info(opts)
|
40
|
-
|
41
|
-
```ruby
|
42
|
-
begin
|
43
|
-
# New message sent
|
44
|
-
data, status_code, headers = api_instance.sent_message_post_with_http_info(opts)
|
45
|
-
p status_code # => 2xx
|
46
|
-
p headers # => { ... }
|
47
|
-
p data # => nil
|
48
|
-
rescue GetAroundOwner::ApiError => e
|
49
|
-
puts "Error when calling MessagesApi->sent_message_post_with_http_info: #{e}"
|
50
|
-
end
|
51
|
-
```
|
52
|
-
|
53
|
-
### Parameters
|
54
|
-
|
55
|
-
| Name | Type | Description | Notes |
|
56
|
-
| ---- | ---- | ----------- | ----- |
|
57
|
-
| **getaround_messages_sent** | [**GetaroundMessagesSent**](GetaroundMessagesSent.md) | This event is triggered when a new message has been sent for one of your rentals | [optional] |
|
58
|
-
|
59
|
-
### Return type
|
60
|
-
|
61
|
-
nil (empty response body)
|
62
|
-
|
63
|
-
### Authorization
|
64
|
-
|
65
|
-
No authorization required
|
66
|
-
|
67
|
-
### HTTP request headers
|
68
|
-
|
69
|
-
- **Content-Type**: application/json
|
70
|
-
- **Accept**: Not defined
|
71
|
-
|
data/docs/PayoutsApi.md
DELETED
@@ -1,155 +0,0 @@
|
|
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
|
-
|
11
|
-
## get_payout_by_id
|
12
|
-
|
13
|
-
> <GetaroundPayout> get_payout_by_id(id)
|
14
|
-
|
15
|
-
Find a payout by ID
|
16
|
-
|
17
|
-
Find a payout by ID
|
18
|
-
|
19
|
-
### Examples
|
20
|
-
|
21
|
-
```ruby
|
22
|
-
require 'time'
|
23
|
-
require 'get_around_owner'
|
24
|
-
# setup authorization
|
25
|
-
GetAroundOwner.configure do |config|
|
26
|
-
# Configure Bearer authorization: bearerAuth
|
27
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
28
|
-
end
|
29
|
-
|
30
|
-
api_instance = GetAroundOwner::PayoutsApi.new
|
31
|
-
id = '1' # String | ID of payout to return
|
32
|
-
|
33
|
-
begin
|
34
|
-
# Find a payout by ID
|
35
|
-
result = api_instance.get_payout_by_id(id)
|
36
|
-
p result
|
37
|
-
rescue GetAroundOwner::ApiError => e
|
38
|
-
puts "Error when calling PayoutsApi->get_payout_by_id: #{e}"
|
39
|
-
end
|
40
|
-
```
|
41
|
-
|
42
|
-
#### Using the get_payout_by_id_with_http_info variant
|
43
|
-
|
44
|
-
This returns an Array which contains the response data, status code and headers.
|
45
|
-
|
46
|
-
> <Array(<GetaroundPayout>, Integer, Hash)> get_payout_by_id_with_http_info(id)
|
47
|
-
|
48
|
-
```ruby
|
49
|
-
begin
|
50
|
-
# Find a payout by ID
|
51
|
-
data, status_code, headers = api_instance.get_payout_by_id_with_http_info(id)
|
52
|
-
p status_code # => 2xx
|
53
|
-
p headers # => { ... }
|
54
|
-
p data # => <GetaroundPayout>
|
55
|
-
rescue GetAroundOwner::ApiError => e
|
56
|
-
puts "Error when calling PayoutsApi->get_payout_by_id_with_http_info: #{e}"
|
57
|
-
end
|
58
|
-
```
|
59
|
-
|
60
|
-
### Parameters
|
61
|
-
|
62
|
-
| Name | Type | Description | Notes |
|
63
|
-
| ---- | ---- | ----------- | ----- |
|
64
|
-
| **id** | **String** | ID of payout to return | |
|
65
|
-
|
66
|
-
### Return type
|
67
|
-
|
68
|
-
[**GetaroundPayout**](GetaroundPayout.md)
|
69
|
-
|
70
|
-
### Authorization
|
71
|
-
|
72
|
-
[bearerAuth](../README.md#bearerAuth)
|
73
|
-
|
74
|
-
### HTTP request headers
|
75
|
-
|
76
|
-
- **Content-Type**: Not defined
|
77
|
-
- **Accept**: application/json
|
78
|
-
|
79
|
-
|
80
|
-
## get_payouts
|
81
|
-
|
82
|
-
> <Array<GetaroundPayoutsIndexInner>> get_payouts(start_date, end_date, opts)
|
83
|
-
|
84
|
-
Find payouts paid between dates
|
85
|
-
|
86
|
-
Find payouts paid between dates
|
87
|
-
|
88
|
-
### Examples
|
89
|
-
|
90
|
-
```ruby
|
91
|
-
require 'time'
|
92
|
-
require 'get_around_owner'
|
93
|
-
# setup authorization
|
94
|
-
GetAroundOwner.configure do |config|
|
95
|
-
# Configure Bearer authorization: bearerAuth
|
96
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
97
|
-
end
|
98
|
-
|
99
|
-
api_instance = GetAroundOwner::PayoutsApi.new
|
100
|
-
start_date = Time.parse('2013-10-20T19:20:30+01:00') # Time | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
101
|
-
end_date = Time.parse('2013-10-20T19:20:30+01:00') # Time | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
|
102
|
-
opts = {
|
103
|
-
page: 'page_example', # String | Page number
|
104
|
-
per_page: 'per_page_example' # String | Page size
|
105
|
-
}
|
106
|
-
|
107
|
-
begin
|
108
|
-
# Find payouts paid between dates
|
109
|
-
result = api_instance.get_payouts(start_date, end_date, opts)
|
110
|
-
p result
|
111
|
-
rescue GetAroundOwner::ApiError => e
|
112
|
-
puts "Error when calling PayoutsApi->get_payouts: #{e}"
|
113
|
-
end
|
114
|
-
```
|
115
|
-
|
116
|
-
#### Using the get_payouts_with_http_info variant
|
117
|
-
|
118
|
-
This returns an Array which contains the response data, status code and headers.
|
119
|
-
|
120
|
-
> <Array(<Array<GetaroundPayoutsIndexInner>>, Integer, Hash)> get_payouts_with_http_info(start_date, end_date, opts)
|
121
|
-
|
122
|
-
```ruby
|
123
|
-
begin
|
124
|
-
# Find payouts paid between dates
|
125
|
-
data, status_code, headers = api_instance.get_payouts_with_http_info(start_date, end_date, opts)
|
126
|
-
p status_code # => 2xx
|
127
|
-
p headers # => { ... }
|
128
|
-
p data # => <Array<GetaroundPayoutsIndexInner>>
|
129
|
-
rescue GetAroundOwner::ApiError => e
|
130
|
-
puts "Error when calling PayoutsApi->get_payouts_with_http_info: #{e}"
|
131
|
-
end
|
132
|
-
```
|
133
|
-
|
134
|
-
### Parameters
|
135
|
-
|
136
|
-
| Name | Type | Description | Notes |
|
137
|
-
| ---- | ---- | ----------- | ----- |
|
138
|
-
| **start_date** | **Time** | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | |
|
139
|
-
| **end_date** | **Time** | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | |
|
140
|
-
| **page** | **String** | Page number | [optional] |
|
141
|
-
| **per_page** | **String** | Page size | [optional][default to '30'] |
|
142
|
-
|
143
|
-
### Return type
|
144
|
-
|
145
|
-
[**Array<GetaroundPayoutsIndexInner>**](GetaroundPayoutsIndexInner.md)
|
146
|
-
|
147
|
-
### Authorization
|
148
|
-
|
149
|
-
[bearerAuth](../README.md#bearerAuth)
|
150
|
-
|
151
|
-
### HTTP request headers
|
152
|
-
|
153
|
-
- **Content-Type**: Not defined
|
154
|
-
- **Accept**: application/json
|
155
|
-
|
data/docs/RentalsApi.md
DELETED
@@ -1,263 +0,0 @@
|
|
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
|
-
| [**booked_rental_post**](RentalsApi.md#booked_rental_post) | **POST** /bookedRental | New rental booked for one of your cars |
|
8
|
-
| [**canceled_rental_post**](RentalsApi.md#canceled_rental_post) | **POST** /canceledRental | Canceled rental for one of your cars |
|
9
|
-
| [**car_switched_rental_post**](RentalsApi.md#car_switched_rental_post) | **POST** /carSwitchedRental | There was a switch car on one of your rental |
|
10
|
-
| [**times_changed_rental_post**](RentalsApi.md#times_changed_rental_post) | **POST** /timesChangedRental | Rental time change for one of your car |
|
11
|
-
|
12
|
-
|
13
|
-
## booked_rental_post
|
14
|
-
|
15
|
-
> booked_rental_post(opts)
|
16
|
-
|
17
|
-
New rental booked for one of your cars
|
18
|
-
|
19
|
-
### Examples
|
20
|
-
|
21
|
-
```ruby
|
22
|
-
require 'time'
|
23
|
-
require 'get_around_owner'
|
24
|
-
|
25
|
-
api_instance = GetAroundOwner::RentalsApi.new
|
26
|
-
opts = {
|
27
|
-
getaround_rentals_booked: # GetaroundRentalsBooked | This event is triggered when a new rental booking has been created for one of your cars
|
28
|
-
}
|
29
|
-
|
30
|
-
begin
|
31
|
-
# New rental booked for one of your cars
|
32
|
-
api_instance.booked_rental_post(opts)
|
33
|
-
rescue GetAroundOwner::ApiError => e
|
34
|
-
puts "Error when calling RentalsApi->booked_rental_post: #{e}"
|
35
|
-
end
|
36
|
-
```
|
37
|
-
|
38
|
-
#### Using the booked_rental_post_with_http_info variant
|
39
|
-
|
40
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
41
|
-
|
42
|
-
> <Array(nil, Integer, Hash)> booked_rental_post_with_http_info(opts)
|
43
|
-
|
44
|
-
```ruby
|
45
|
-
begin
|
46
|
-
# New rental booked for one of your cars
|
47
|
-
data, status_code, headers = api_instance.booked_rental_post_with_http_info(opts)
|
48
|
-
p status_code # => 2xx
|
49
|
-
p headers # => { ... }
|
50
|
-
p data # => nil
|
51
|
-
rescue GetAroundOwner::ApiError => e
|
52
|
-
puts "Error when calling RentalsApi->booked_rental_post_with_http_info: #{e}"
|
53
|
-
end
|
54
|
-
```
|
55
|
-
|
56
|
-
### Parameters
|
57
|
-
|
58
|
-
| Name | Type | Description | Notes |
|
59
|
-
| ---- | ---- | ----------- | ----- |
|
60
|
-
| **getaround_rentals_booked** | [**GetaroundRentalsBooked**](GetaroundRentalsBooked.md) | This event is triggered when a new rental booking has been created for one of your cars | [optional] |
|
61
|
-
|
62
|
-
### Return type
|
63
|
-
|
64
|
-
nil (empty response body)
|
65
|
-
|
66
|
-
### Authorization
|
67
|
-
|
68
|
-
No authorization required
|
69
|
-
|
70
|
-
### HTTP request headers
|
71
|
-
|
72
|
-
- **Content-Type**: application/json
|
73
|
-
- **Accept**: Not defined
|
74
|
-
|
75
|
-
|
76
|
-
## canceled_rental_post
|
77
|
-
|
78
|
-
> canceled_rental_post(opts)
|
79
|
-
|
80
|
-
Canceled rental for one of your cars
|
81
|
-
|
82
|
-
### Examples
|
83
|
-
|
84
|
-
```ruby
|
85
|
-
require 'time'
|
86
|
-
require 'get_around_owner'
|
87
|
-
|
88
|
-
api_instance = GetAroundOwner::RentalsApi.new
|
89
|
-
opts = {
|
90
|
-
getaround_rentals_canceled: # GetaroundRentalsCanceled | This event is triggered when a rental has been canceled for one of your cars
|
91
|
-
}
|
92
|
-
|
93
|
-
begin
|
94
|
-
# Canceled rental for one of your cars
|
95
|
-
api_instance.canceled_rental_post(opts)
|
96
|
-
rescue GetAroundOwner::ApiError => e
|
97
|
-
puts "Error when calling RentalsApi->canceled_rental_post: #{e}"
|
98
|
-
end
|
99
|
-
```
|
100
|
-
|
101
|
-
#### Using the canceled_rental_post_with_http_info variant
|
102
|
-
|
103
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
104
|
-
|
105
|
-
> <Array(nil, Integer, Hash)> canceled_rental_post_with_http_info(opts)
|
106
|
-
|
107
|
-
```ruby
|
108
|
-
begin
|
109
|
-
# Canceled rental for one of your cars
|
110
|
-
data, status_code, headers = api_instance.canceled_rental_post_with_http_info(opts)
|
111
|
-
p status_code # => 2xx
|
112
|
-
p headers # => { ... }
|
113
|
-
p data # => nil
|
114
|
-
rescue GetAroundOwner::ApiError => e
|
115
|
-
puts "Error when calling RentalsApi->canceled_rental_post_with_http_info: #{e}"
|
116
|
-
end
|
117
|
-
```
|
118
|
-
|
119
|
-
### Parameters
|
120
|
-
|
121
|
-
| Name | Type | Description | Notes |
|
122
|
-
| ---- | ---- | ----------- | ----- |
|
123
|
-
| **getaround_rentals_canceled** | [**GetaroundRentalsCanceled**](GetaroundRentalsCanceled.md) | This event is triggered when a rental has been canceled for one of your cars | [optional] |
|
124
|
-
|
125
|
-
### Return type
|
126
|
-
|
127
|
-
nil (empty response body)
|
128
|
-
|
129
|
-
### Authorization
|
130
|
-
|
131
|
-
No authorization required
|
132
|
-
|
133
|
-
### HTTP request headers
|
134
|
-
|
135
|
-
- **Content-Type**: application/json
|
136
|
-
- **Accept**: Not defined
|
137
|
-
|
138
|
-
|
139
|
-
## car_switched_rental_post
|
140
|
-
|
141
|
-
> car_switched_rental_post(opts)
|
142
|
-
|
143
|
-
There was a switch car on one of your rental
|
144
|
-
|
145
|
-
### Examples
|
146
|
-
|
147
|
-
```ruby
|
148
|
-
require 'time'
|
149
|
-
require 'get_around_owner'
|
150
|
-
|
151
|
-
api_instance = GetAroundOwner::RentalsApi.new
|
152
|
-
opts = {
|
153
|
-
getaround_rentals_car_switched: # GetaroundRentalsCarSwitched | This event is triggered when an owner or customer service team member switches the car used to perform a given rental
|
154
|
-
}
|
155
|
-
|
156
|
-
begin
|
157
|
-
# There was a switch car on one of your rental
|
158
|
-
api_instance.car_switched_rental_post(opts)
|
159
|
-
rescue GetAroundOwner::ApiError => e
|
160
|
-
puts "Error when calling RentalsApi->car_switched_rental_post: #{e}"
|
161
|
-
end
|
162
|
-
```
|
163
|
-
|
164
|
-
#### Using the car_switched_rental_post_with_http_info variant
|
165
|
-
|
166
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
167
|
-
|
168
|
-
> <Array(nil, Integer, Hash)> car_switched_rental_post_with_http_info(opts)
|
169
|
-
|
170
|
-
```ruby
|
171
|
-
begin
|
172
|
-
# There was a switch car on one of your rental
|
173
|
-
data, status_code, headers = api_instance.car_switched_rental_post_with_http_info(opts)
|
174
|
-
p status_code # => 2xx
|
175
|
-
p headers # => { ... }
|
176
|
-
p data # => nil
|
177
|
-
rescue GetAroundOwner::ApiError => e
|
178
|
-
puts "Error when calling RentalsApi->car_switched_rental_post_with_http_info: #{e}"
|
179
|
-
end
|
180
|
-
```
|
181
|
-
|
182
|
-
### Parameters
|
183
|
-
|
184
|
-
| Name | Type | Description | Notes |
|
185
|
-
| ---- | ---- | ----------- | ----- |
|
186
|
-
| **getaround_rentals_car_switched** | [**GetaroundRentalsCarSwitched**](GetaroundRentalsCarSwitched.md) | This event is triggered when an owner or customer service team member switches the car used to perform a given rental | [optional] |
|
187
|
-
|
188
|
-
### Return type
|
189
|
-
|
190
|
-
nil (empty response body)
|
191
|
-
|
192
|
-
### Authorization
|
193
|
-
|
194
|
-
No authorization required
|
195
|
-
|
196
|
-
### HTTP request headers
|
197
|
-
|
198
|
-
- **Content-Type**: application/json
|
199
|
-
- **Accept**: Not defined
|
200
|
-
|
201
|
-
|
202
|
-
## times_changed_rental_post
|
203
|
-
|
204
|
-
> times_changed_rental_post(opts)
|
205
|
-
|
206
|
-
Rental time change for one of your car
|
207
|
-
|
208
|
-
### Examples
|
209
|
-
|
210
|
-
```ruby
|
211
|
-
require 'time'
|
212
|
-
require 'get_around_owner'
|
213
|
-
|
214
|
-
api_instance = GetAroundOwner::RentalsApi.new
|
215
|
-
opts = {
|
216
|
-
getaround_rentals_times_changed: # GetaroundRentalsTimesChanged | This event is triggered when the start or end time of a rental has been changed for one of your cars
|
217
|
-
}
|
218
|
-
|
219
|
-
begin
|
220
|
-
# Rental time change for one of your car
|
221
|
-
api_instance.times_changed_rental_post(opts)
|
222
|
-
rescue GetAroundOwner::ApiError => e
|
223
|
-
puts "Error when calling RentalsApi->times_changed_rental_post: #{e}"
|
224
|
-
end
|
225
|
-
```
|
226
|
-
|
227
|
-
#### Using the times_changed_rental_post_with_http_info variant
|
228
|
-
|
229
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
230
|
-
|
231
|
-
> <Array(nil, Integer, Hash)> times_changed_rental_post_with_http_info(opts)
|
232
|
-
|
233
|
-
```ruby
|
234
|
-
begin
|
235
|
-
# Rental time change for one of your car
|
236
|
-
data, status_code, headers = api_instance.times_changed_rental_post_with_http_info(opts)
|
237
|
-
p status_code # => 2xx
|
238
|
-
p headers # => { ... }
|
239
|
-
p data # => nil
|
240
|
-
rescue GetAroundOwner::ApiError => e
|
241
|
-
puts "Error when calling RentalsApi->times_changed_rental_post_with_http_info: #{e}"
|
242
|
-
end
|
243
|
-
```
|
244
|
-
|
245
|
-
### Parameters
|
246
|
-
|
247
|
-
| Name | Type | Description | Notes |
|
248
|
-
| ---- | ---- | ----------- | ----- |
|
249
|
-
| **getaround_rentals_times_changed** | [**GetaroundRentalsTimesChanged**](GetaroundRentalsTimesChanged.md) | This event is triggered when the start or end time of a rental has been changed for one of your cars | [optional] |
|
250
|
-
|
251
|
-
### Return type
|
252
|
-
|
253
|
-
nil (empty response body)
|
254
|
-
|
255
|
-
### Authorization
|
256
|
-
|
257
|
-
No authorization required
|
258
|
-
|
259
|
-
### HTTP request headers
|
260
|
-
|
261
|
-
- **Content-Type**: application/json
|
262
|
-
- **Accept**: Not defined
|
263
|
-
|