get_around_owner 1.0.0
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +303 -0
- data/Rakefile +10 -0
- data/docs/CarsApi.md +151 -0
- data/docs/CheckinsApi.md +71 -0
- data/docs/CheckoutsApi.md +71 -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/InvoicesApi.md +231 -0
- data/docs/MessagesApi.md +71 -0
- data/docs/PayoutsApi.md +155 -0
- data/docs/RentalsApi.md +263 -0
- data/docs/UnavailabilitiesApi.md +135 -0
- data/docs/UsersApi.md +71 -0
- data/get_around_owner.gemspec +26 -0
- data/git_push.sh +57 -0
- data/lib/get_around_owner/api/cars_api.rb +148 -0
- data/lib/get_around_owner/api/checkins_api.rb +82 -0
- data/lib/get_around_owner/api/checkouts_api.rb +82 -0
- data/lib/get_around_owner/api/invoices_api.rb +223 -0
- data/lib/get_around_owner/api/messages_api.rb +82 -0
- data/lib/get_around_owner/api/payouts_api.rb +162 -0
- data/lib/get_around_owner/api/rentals_api.rb +262 -0
- data/lib/get_around_owner/api/unavailabilities_api.rb +142 -0
- data/lib/get_around_owner/api/users_api.rb +82 -0
- data/lib/get_around_owner/api_client.rb +394 -0
- data/lib/get_around_owner/api_error.rb +58 -0
- data/lib/get_around_owner/configuration.rb +298 -0
- data/lib/get_around_owner/models/getaround_car.rb +308 -0
- data/lib/get_around_owner/models/getaround_cars_index_inner.rb +223 -0
- data/lib/get_around_owner/models/getaround_checkin.rb +279 -0
- data/lib/get_around_owner/models/getaround_checkins_index_inner.rb +222 -0
- data/lib/get_around_owner/models/getaround_checkout.rb +298 -0
- data/lib/get_around_owner/models/getaround_create_messages_request.rb +222 -0
- data/lib/get_around_owner/models/getaround_create_unavailabilities_request.rb +283 -0
- data/lib/get_around_owner/models/getaround_destroy_unavailability_request.rb +239 -0
- data/lib/get_around_owner/models/getaround_invoice.rb +396 -0
- data/lib/get_around_owner/models/getaround_invoice_charges_inner.rb +225 -0
- data/lib/get_around_owner/models/getaround_invoices_index_inner.rb +223 -0
- data/lib/get_around_owner/models/getaround_message.rb +291 -0
- data/lib/get_around_owner/models/getaround_messages_sent.rb +257 -0
- data/lib/get_around_owner/models/getaround_messages_sent_all_of_data.rb +225 -0
- data/lib/get_around_owner/models/getaround_payout.rb +347 -0
- data/lib/get_around_owner/models/getaround_payout_invoices_inner.rb +223 -0
- data/lib/get_around_owner/models/getaround_payouts_index_inner.rb +223 -0
- data/lib/get_around_owner/models/getaround_reason.rb +45 -0
- data/lib/get_around_owner/models/getaround_rental.rb +380 -0
- data/lib/get_around_owner/models/getaround_rental_invoices_index_inner.rb +223 -0
- data/lib/get_around_owner/models/getaround_rental_messages_index_inner.rb +223 -0
- data/lib/get_around_owner/models/getaround_rentals_booked.rb +257 -0
- data/lib/get_around_owner/models/getaround_rentals_booked_all_of_data.rb +215 -0
- data/lib/get_around_owner/models/getaround_rentals_canceled.rb +257 -0
- data/lib/get_around_owner/models/getaround_rentals_car_checked_in.rb +257 -0
- data/lib/get_around_owner/models/getaround_rentals_car_checked_out.rb +257 -0
- data/lib/get_around_owner/models/getaround_rentals_car_switched.rb +257 -0
- data/lib/get_around_owner/models/getaround_rentals_index_inner.rb +223 -0
- data/lib/get_around_owner/models/getaround_rentals_times_changed.rb +257 -0
- data/lib/get_around_owner/models/getaround_unavailabilities_created.rb +257 -0
- data/lib/get_around_owner/models/getaround_unavailabilities_created_all_of_data.rb +267 -0
- data/lib/get_around_owner/models/getaround_unavailabilities_deleted.rb +257 -0
- data/lib/get_around_owner/models/getaround_unavailabilities_deleted_all_of_data.rb +235 -0
- data/lib/get_around_owner/models/getaround_unavailability.rb +302 -0
- data/lib/get_around_owner/models/getaround_user.rb +420 -0
- data/lib/get_around_owner/models/getaround_users_updated.rb +257 -0
- data/lib/get_around_owner/models/getaround_users_updated_all_of_data.rb +215 -0
- data/lib/get_around_owner/models/getaround_webhook.rb +252 -0
- data/lib/get_around_owner/version.rb +15 -0
- data/lib/get_around_owner.rb +86 -0
- data/spec/api/cars_api_spec.rb +60 -0
- data/spec/api/checkins_api_spec.rb +62 -0
- data/spec/api/checkouts_api_spec.rb +62 -0
- data/spec/api/invoices_api_spec.rb +76 -0
- data/spec/api/messages_api_spec.rb +73 -0
- data/spec/api/payouts_api_spec.rb +62 -0
- data/spec/api/rentals_api_spec.rb +62 -0
- data/spec/api/unavailabilities_api_spec.rb +77 -0
- data/spec/api/users_api_spec.rb +47 -0
- data/spec/models/getaround_car_spec.rb +66 -0
- data/spec/models/getaround_cars_index_inner_spec.rb +36 -0
- data/spec/models/getaround_checkin_spec.rb +54 -0
- data/spec/models/getaround_checkins_index_inner_spec.rb +36 -0
- data/spec/models/getaround_checkout_spec.rb +60 -0
- data/spec/models/getaround_create_messages_request_spec.rb +36 -0
- data/spec/models/getaround_create_unavailabilities_request_spec.rb +52 -0
- data/spec/models/getaround_destroy_unavailability_request_spec.rb +42 -0
- data/spec/models/getaround_invoice_charges_inner_spec.rb +42 -0
- data/spec/models/getaround_invoice_spec.rb +92 -0
- data/spec/models/getaround_invoices_index_inner_spec.rb +36 -0
- data/spec/models/getaround_message_spec.rb +60 -0
- data/spec/models/getaround_messages_sent_all_of_data_spec.rb +42 -0
- data/spec/models/getaround_messages_sent_spec.rb +48 -0
- data/spec/models/getaround_payout_invoices_inner_spec.rb +36 -0
- data/spec/models/getaround_payout_spec.rb +70 -0
- data/spec/models/getaround_payouts_index_inner_spec.rb +36 -0
- data/spec/models/getaround_reason_spec.rb +30 -0
- data/spec/models/getaround_rental_invoices_index_inner_spec.rb +36 -0
- data/spec/models/getaround_rental_messages_index_inner_spec.rb +36 -0
- data/spec/models/getaround_rental_spec.rb +78 -0
- data/spec/models/getaround_rentals_booked_all_of_data_spec.rb +36 -0
- data/spec/models/getaround_rentals_booked_spec.rb +48 -0
- data/spec/models/getaround_rentals_canceled_spec.rb +48 -0
- data/spec/models/getaround_rentals_car_checked_in_spec.rb +48 -0
- data/spec/models/getaround_rentals_car_checked_out_spec.rb +48 -0
- data/spec/models/getaround_rentals_car_switched_spec.rb +48 -0
- data/spec/models/getaround_rentals_index_inner_spec.rb +36 -0
- data/spec/models/getaround_rentals_times_changed_spec.rb +48 -0
- data/spec/models/getaround_unavailabilities_created_all_of_data_spec.rb +54 -0
- data/spec/models/getaround_unavailabilities_created_spec.rb +48 -0
- data/spec/models/getaround_unavailabilities_deleted_all_of_data_spec.rb +48 -0
- data/spec/models/getaround_unavailabilities_deleted_spec.rb +48 -0
- data/spec/models/getaround_unavailability_spec.rb +58 -0
- data/spec/models/getaround_user_spec.rb +108 -0
- data/spec/models/getaround_users_updated_all_of_data_spec.rb +36 -0
- data/spec/models/getaround_users_updated_spec.rb +48 -0
- data/spec/models/getaround_webhook_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- metadata +283 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundUnavailabilitiesDeleted
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **Object** | | |
|
8
|
+
| **data** | [**GetaroundUnavailabilitiesDeletedAllOfData**](GetaroundUnavailabilitiesDeletedAllOfData.md) | | |
|
9
|
+
| **occurred_at** | **Time** | The webhook event occurred at timestamp | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'get_around_owner'
|
15
|
+
|
16
|
+
instance = GetAroundOwner::GetaroundUnavailabilitiesDeleted.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundUnavailabilitiesDeletedAllOfData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **car_id** | **Integer** | ID of the related car | [optional] |
|
8
|
+
| **starts_at** | **Time** | The ISO8601 formatted beginning of the unavailability's period | [optional] |
|
9
|
+
| **ends_at** | **Time** | The ISO8601 formatted ending of the unavailability's period | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'get_around_owner'
|
15
|
+
|
16
|
+
instance = GetAroundOwner::GetaroundUnavailabilitiesDeletedAllOfData.new(
|
17
|
+
car_id: null,
|
18
|
+
starts_at: null,
|
19
|
+
ends_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# GetAroundOwner::GetaroundUnavailability
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **car_id** | **Integer** | ID of the related car | |
|
8
|
+
| **starts_at** | **Time** | The ISO8601 formatted beginning of the unavailability's period | |
|
9
|
+
| **ends_at** | **Time** | The ISO8601 formatted ending of the unavailability's period | |
|
10
|
+
| **reason** | **String** | The reason of the unavailability of the car. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'get_around_owner'
|
16
|
+
|
17
|
+
instance = GetAroundOwner::GetaroundUnavailability.new(
|
18
|
+
car_id: null,
|
19
|
+
starts_at: null,
|
20
|
+
ends_at: null,
|
21
|
+
reason: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# GetAroundOwner::GetaroundUser
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The user ID | |
|
8
|
+
| **first_name** | **String** | First name(s) | |
|
9
|
+
| **last_name** | **String** | Last name(s) | |
|
10
|
+
| **phone_number** | **String** | The phone number in international format | |
|
11
|
+
| **address_line1** | **String** | Residential address of the user | |
|
12
|
+
| **address_line2** | **String** | Additional address details | [optional] |
|
13
|
+
| **postal_code** | **String** | The postal code | |
|
14
|
+
| **city** | **String** | The city | |
|
15
|
+
| **country** | **String** | Address's country format ISO_3166-1_alpha-2 (ex: FR, ES, ...) | |
|
16
|
+
| **birth_date** | **Date** | The birth date | |
|
17
|
+
| **license_country** | **String** | Driving licence country of issue format ISO_3166-1_alpha-2 (ex: FR, ES, ...) | |
|
18
|
+
| **license_first_issue_date** | **Date** | Driving licence first issue date | |
|
19
|
+
| **license_number** | **String** | The license number | |
|
20
|
+
|
21
|
+
## Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'get_around_owner'
|
25
|
+
|
26
|
+
instance = GetAroundOwner::GetaroundUser.new(
|
27
|
+
id: null,
|
28
|
+
first_name: null,
|
29
|
+
last_name: null,
|
30
|
+
phone_number: null,
|
31
|
+
address_line1: null,
|
32
|
+
address_line2: null,
|
33
|
+
postal_code: null,
|
34
|
+
city: null,
|
35
|
+
country: null,
|
36
|
+
birth_date: null,
|
37
|
+
license_country: null,
|
38
|
+
license_first_issue_date: null,
|
39
|
+
license_number: null
|
40
|
+
)
|
41
|
+
```
|
42
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundUsersUpdated
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **Object** | | |
|
8
|
+
| **data** | [**GetaroundUsersUpdatedAllOfData**](GetaroundUsersUpdatedAllOfData.md) | | |
|
9
|
+
| **occurred_at** | **Time** | The webhook event occurred at timestamp | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'get_around_owner'
|
15
|
+
|
16
|
+
instance = GetAroundOwner::GetaroundUsersUpdated.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundUsersUpdatedAllOfData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **user_id** | **Float** | The user identifier | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundUsersUpdatedAllOfData.new(
|
15
|
+
user_id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundWebhook
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | The webhook event type | |
|
8
|
+
| **data** | **Object** | | |
|
9
|
+
| **occurred_at** | **Time** | The webhook event occurred at timestamp | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'get_around_owner'
|
15
|
+
|
16
|
+
instance = GetAroundOwner::GetaroundWebhook.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/InvoicesApi.md
ADDED
@@ -0,0 +1,231 @@
|
|
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
ADDED
@@ -0,0 +1,71 @@
|
|
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
ADDED
@@ -0,0 +1,155 @@
|
|
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
|
+
|