get_around_owner 1.0.1 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/Owner API v1.json +2938 -0
- data/README.md +359 -203
- data/Rakefile +8 -0
- data/docs/Car.md +12 -0
- data/docs/CarId.md +6 -0
- data/docs/CarIdUnavailabilitiesJsonBody.md +9 -0
- data/docs/CarsApi.md +109 -0
- data/docs/CarsIndex.md +6 -0
- data/docs/Checkin.md +10 -0
- data/docs/CheckinsApi.md +113 -0
- data/docs/CheckinsIndex.md +6 -0
- data/docs/Checkout.md +11 -0
- data/docs/CheckoutsApi.md +113 -0
- data/docs/CheckoutsIndex.md +6 -0
- data/docs/EndsAt.md +6 -0
- data/docs/GetaroundCar.md +28 -0
- data/docs/GetaroundCarsIndexInner.md +18 -0
- data/docs/GetaroundCheckin.md +24 -0
- data/docs/GetaroundCheckinsIndexInner.md +18 -0
- data/docs/GetaroundCheckout.md +26 -0
- data/docs/GetaroundCreateMessagesRequest.md +18 -0
- data/docs/GetaroundCreateUnavailabilitiesRequest.md +22 -0
- data/docs/GetaroundDestroyUnavailabilityRequest.md +20 -0
- data/docs/GetaroundInvoice.md +34 -0
- data/docs/GetaroundInvoiceChargesInner.md +20 -0
- data/docs/GetaroundInvoicesIndexInner.md +18 -0
- data/docs/GetaroundMessage.md +26 -0
- data/docs/GetaroundMessagesSent.md +22 -0
- data/docs/GetaroundMessagesSentAllOfData.md +20 -0
- data/docs/GetaroundPayout.md +28 -0
- data/docs/GetaroundPayoutInvoicesInner.md +18 -0
- data/docs/GetaroundPayoutsIndexInner.md +18 -0
- data/docs/GetaroundReason.md +15 -0
- data/docs/GetaroundRental.md +32 -0
- data/docs/GetaroundRentalInvoicesIndexInner.md +18 -0
- data/docs/GetaroundRentalMessagesIndexInner.md +18 -0
- data/docs/GetaroundRentalsBooked.md +22 -0
- data/docs/GetaroundRentalsBookedAllOfData.md +18 -0
- data/docs/GetaroundRentalsCanceled.md +22 -0
- data/docs/GetaroundRentalsCarCheckedIn.md +22 -0
- data/docs/GetaroundRentalsCarCheckedOut.md +22 -0
- data/docs/GetaroundRentalsCarSwitched.md +22 -0
- data/docs/GetaroundRentalsIndexInner.md +18 -0
- data/docs/GetaroundRentalsTimesChanged.md +22 -0
- data/docs/GetaroundUnavailabilitiesCreated.md +22 -0
- data/docs/GetaroundUnavailabilitiesCreatedAllOfData.md +24 -0
- data/docs/GetaroundUnavailabilitiesDeleted.md +22 -0
- data/docs/GetaroundUnavailabilitiesDeletedAllOfData.md +22 -0
- data/docs/GetaroundUnavailability.md +24 -0
- data/docs/GetaroundUser.md +42 -0
- data/docs/GetaroundUsersUpdated.md +22 -0
- data/docs/GetaroundUsersUpdatedAllOfData.md +18 -0
- data/docs/GetaroundWebhook.md +22 -0
- data/docs/Invoice.md +15 -0
- data/docs/InvoicesApi.md +168 -0
- data/docs/InvoicesIndex.md +6 -0
- data/docs/Message.md +11 -0
- data/docs/MessagesApi.md +161 -0
- data/docs/MessagesSent.md +6 -0
- data/docs/Payout.md +12 -0
- data/docs/PayoutsApi.md +113 -0
- data/docs/PayoutsIndex.md +6 -0
- data/docs/Rental.md +14 -0
- data/docs/RentalIdMessagesJsonBody.md +7 -0
- data/docs/RentalInvoicesIndex.md +6 -0
- data/docs/RentalMessagesIndex.md +6 -0
- data/docs/RentalsApi.md +113 -0
- data/docs/RentalsBooked.md +6 -0
- data/docs/RentalsCanceled.md +6 -0
- data/docs/RentalsCarCheckedIn.md +6 -0
- data/docs/RentalsCarCheckedOut.md +6 -0
- data/docs/RentalsCarSwitched.md +6 -0
- data/docs/RentalsIndex.md +6 -0
- data/docs/RentalsTimesChanged.md +6 -0
- data/docs/StartsAt.md +6 -0
- data/docs/UnavailabilitiesApi.md +166 -0
- data/docs/UnavailabilitiesCreated.md +6 -0
- data/docs/UnavailabilitiesDeleted.md +6 -0
- data/docs/UnavailabilitiesIndex.md +6 -0
- data/docs/Unavailability.md +10 -0
- data/docs/User.md +19 -0
- data/docs/UsersApi.md +56 -0
- data/docs/UsersUpdated.md +6 -0
- data/docs/Webhook.md +9 -0
- data/get_around_owner-1.0.0.gem +0 -0
- data/get_around_owner-1.0.1.gem +0 -0
- data/get_around_owner-1.0.3.gem +0 -0
- data/get_around_owner.gemspec +39 -0
- data/getaround-api.gemspec +38 -0
- data/git_push.sh +55 -0
- data/lib/get_around_owner/api/cars_api.rb +25 -41
- data/lib/get_around_owner/api/checkins_api.rb +99 -35
- data/lib/get_around_owner/api/checkouts_api.rb +99 -35
- data/lib/get_around_owner/api/invoices_api.rb +43 -66
- data/lib/get_around_owner/api/messages_api.rb +149 -33
- data/lib/get_around_owner/api/payouts_api.rb +29 -45
- data/lib/get_around_owner/api/rentals_api.rb +67 -183
- data/lib/get_around_owner/api/unavailabilities_api.rb +124 -58
- data/lib/get_around_owner/api/users_api.rb +30 -36
- data/lib/get_around_owner/api_client.rb +71 -77
- data/lib/get_around_owner/api_error.rb +5 -6
- data/lib/get_around_owner/configuration.rb +13 -106
- data/lib/get_around_owner/models/{getaround_car.rb → car.rb} +36 -56
- data/lib/get_around_owner/models/{getaround_users_updated_all_of_data.rb → car_id.rb} +33 -50
- data/lib/get_around_owner/models/{getaround_destroy_unavailability_request.rb → car_id_unavailabilities_json_body.rb} +45 -47
- data/lib/get_around_owner/models/{getaround_rentals_booked_all_of_data.rb → cars_index.rb} +33 -50
- data/lib/get_around_owner/models/{getaround_checkin.rb → checkin.rb} +34 -65
- data/lib/get_around_owner/models/{getaround_payouts_index_inner.rb → checkins_index.rb} +32 -58
- data/lib/get_around_owner/models/{getaround_checkout.rb → checkout.rb} +35 -70
- data/lib/get_around_owner/models/checkouts_index.rb +197 -0
- data/lib/get_around_owner/models/ends_at.rb +198 -0
- data/lib/get_around_owner/models/{getaround_invoice.rb → invoice.rb} +45 -113
- data/lib/get_around_owner/models/invoices_index.rb +198 -0
- data/lib/get_around_owner/models/{getaround_message.rb → message.rb} +35 -53
- data/lib/get_around_owner/models/messages_sent.rb +197 -0
- data/lib/get_around_owner/models/{getaround_payout.rb → payout.rb} +37 -101
- data/lib/get_around_owner/models/payouts_index.rb +198 -0
- data/lib/get_around_owner/models/{getaround_rental.rb → rental.rb} +38 -100
- data/lib/get_around_owner/models/{getaround_create_messages_request.rb → rental_id_messages_json_body.rb} +31 -41
- data/lib/get_around_owner/models/rental_invoices_index.rb +198 -0
- data/lib/get_around_owner/models/rental_messages_index.rb +198 -0
- data/lib/get_around_owner/models/rentals_booked.rb +197 -0
- data/lib/get_around_owner/models/rentals_canceled.rb +197 -0
- data/lib/get_around_owner/models/rentals_car_checked_in.rb +197 -0
- data/lib/get_around_owner/models/rentals_car_checked_out.rb +197 -0
- data/lib/get_around_owner/models/rentals_car_switched.rb +197 -0
- data/lib/get_around_owner/models/rentals_index.rb +198 -0
- data/lib/get_around_owner/models/rentals_times_changed.rb +197 -0
- data/lib/get_around_owner/models/starts_at.rb +198 -0
- data/lib/get_around_owner/models/{getaround_cars_index_inner.rb → unavailabilities_created.rb} +32 -58
- data/lib/get_around_owner/models/unavailabilities_deleted.rb +197 -0
- data/lib/get_around_owner/models/unavailabilities_index.rb +198 -0
- data/lib/get_around_owner/models/{getaround_unavailabilities_created_all_of_data.rb → unavailability.rb} +51 -65
- data/lib/get_around_owner/models/{getaround_user.rb → user.rb} +43 -75
- data/lib/get_around_owner/models/users_updated.rb +197 -0
- data/lib/get_around_owner/models/{getaround_webhook.rb → webhook.rb} +38 -47
- data/lib/get_around_owner/version.rb +5 -6
- data/lib/get_around_owner.rb +38 -43
- data/openapi.yml +2298 -0
- data/spec/api/cars_api_spec.rb +13 -14
- data/spec/api/checkins_api_spec.rb +13 -14
- data/spec/api/checkouts_api_spec.rb +13 -14
- data/spec/api/invoices_api_spec.rb +19 -20
- data/spec/api/messages_api_spec.rb +14 -15
- data/spec/api/payouts_api_spec.rb +13 -14
- data/spec/api/rentals_api_spec.rb +13 -14
- data/spec/api/unavailabilities_api_spec.rb +14 -16
- data/spec/api/users_api_spec.rb +9 -10
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/{models/getaround_checkins_index_inner_spec.rb → configuration_spec.rb} +26 -21
- data/spec/models/{getaround_reason_spec.rb → car_id_spec.rb} +18 -14
- data/spec/models/{getaround_unavailabilities_deleted_all_of_data_spec.rb → car_id_unavailabilities_json_body_spec.rb} +24 -20
- data/spec/models/{getaround_car_spec.rb → car_spec.rb} +24 -20
- data/spec/models/{getaround_rentals_index_inner_spec.rb → cars_index_spec.rb} +16 -18
- data/spec/models/{getaround_checkin_spec.rb → checkin_spec.rb} +22 -18
- data/spec/models/checkins_index_spec.rb +34 -0
- data/spec/models/{getaround_checkout_spec.rb → checkout_spec.rb} +23 -19
- data/spec/models/checkouts_index_spec.rb +34 -0
- data/spec/models/ends_at_spec.rb +34 -0
- data/spec/models/{getaround_invoice_spec.rb → invoice_spec.rb} +27 -31
- data/spec/models/invoices_index_spec.rb +34 -0
- data/spec/models/{getaround_message_spec.rb → message_spec.rb} +23 -19
- data/spec/models/messages_sent_spec.rb +34 -0
- data/spec/models/{getaround_payout_spec.rb → payout_spec.rb} +24 -24
- data/spec/models/payouts_index_spec.rb +34 -0
- data/spec/models/{getaround_create_messages_request_spec.rb → rental_id_messages_json_body_spec.rb} +19 -15
- data/spec/models/rental_invoices_index_spec.rb +34 -0
- data/spec/models/rental_messages_index_spec.rb +34 -0
- data/spec/models/{getaround_rental_spec.rb → rental_spec.rb} +26 -22
- data/spec/models/rentals_booked_spec.rb +34 -0
- data/spec/models/rentals_canceled_spec.rb +34 -0
- data/spec/models/rentals_car_checked_in_spec.rb +34 -0
- data/spec/models/rentals_car_checked_out_spec.rb +34 -0
- data/spec/models/rentals_car_switched_spec.rb +34 -0
- data/spec/models/rentals_index_spec.rb +34 -0
- data/spec/models/rentals_times_changed_spec.rb +34 -0
- data/spec/models/starts_at_spec.rb +34 -0
- data/spec/models/{getaround_cars_index_inner_spec.rb → unavailabilities_created_spec.rb} +16 -18
- data/spec/models/{getaround_payouts_index_inner_spec.rb → unavailabilities_deleted_spec.rb} +16 -18
- data/spec/models/unavailabilities_index_spec.rb +34 -0
- data/spec/models/{getaround_unavailabilities_created_all_of_data_spec.rb → unavailability_spec.rb} +22 -18
- data/spec/models/{getaround_user_spec.rb → user_spec.rb} +31 -27
- data/spec/models/users_updated_spec.rb +34 -0
- data/spec/models/{getaround_webhook_spec.rb → webhook_spec.rb} +21 -17
- data/spec/spec_helper.rb +4 -5
- metadata +276 -119
- data/lib/get_around_owner/models/getaround_checkins_index_inner.rb +0 -222
- data/lib/get_around_owner/models/getaround_create_unavailabilities_request.rb +0 -283
- data/lib/get_around_owner/models/getaround_invoice_charges_inner.rb +0 -225
- data/lib/get_around_owner/models/getaround_invoices_index_inner.rb +0 -223
- data/lib/get_around_owner/models/getaround_messages_sent.rb +0 -257
- data/lib/get_around_owner/models/getaround_messages_sent_all_of_data.rb +0 -225
- data/lib/get_around_owner/models/getaround_payout_invoices_inner.rb +0 -223
- data/lib/get_around_owner/models/getaround_reason.rb +0 -45
- data/lib/get_around_owner/models/getaround_rental_invoices_index_inner.rb +0 -223
- data/lib/get_around_owner/models/getaround_rental_messages_index_inner.rb +0 -223
- data/lib/get_around_owner/models/getaround_rentals_booked.rb +0 -257
- data/lib/get_around_owner/models/getaround_rentals_canceled.rb +0 -257
- data/lib/get_around_owner/models/getaround_rentals_car_checked_in.rb +0 -257
- data/lib/get_around_owner/models/getaround_rentals_car_checked_out.rb +0 -257
- data/lib/get_around_owner/models/getaround_rentals_car_switched.rb +0 -257
- data/lib/get_around_owner/models/getaround_rentals_index_inner.rb +0 -223
- data/lib/get_around_owner/models/getaround_rentals_times_changed.rb +0 -257
- data/lib/get_around_owner/models/getaround_unavailabilities_created.rb +0 -257
- data/lib/get_around_owner/models/getaround_unavailabilities_deleted.rb +0 -257
- data/lib/get_around_owner/models/getaround_unavailabilities_deleted_all_of_data.rb +0 -235
- data/lib/get_around_owner/models/getaround_unavailability.rb +0 -302
- data/lib/get_around_owner/models/getaround_users_updated.rb +0 -257
- data/spec/models/getaround_create_unavailabilities_request_spec.rb +0 -52
- data/spec/models/getaround_destroy_unavailability_request_spec.rb +0 -42
- data/spec/models/getaround_invoice_charges_inner_spec.rb +0 -42
- data/spec/models/getaround_invoices_index_inner_spec.rb +0 -36
- data/spec/models/getaround_messages_sent_all_of_data_spec.rb +0 -42
- data/spec/models/getaround_messages_sent_spec.rb +0 -48
- data/spec/models/getaround_payout_invoices_inner_spec.rb +0 -36
- data/spec/models/getaround_rental_invoices_index_inner_spec.rb +0 -36
- data/spec/models/getaround_rental_messages_index_inner_spec.rb +0 -36
- data/spec/models/getaround_rentals_booked_all_of_data_spec.rb +0 -36
- data/spec/models/getaround_rentals_booked_spec.rb +0 -48
- data/spec/models/getaround_rentals_canceled_spec.rb +0 -48
- data/spec/models/getaround_rentals_car_checked_in_spec.rb +0 -48
- data/spec/models/getaround_rentals_car_checked_out_spec.rb +0 -48
- data/spec/models/getaround_rentals_car_switched_spec.rb +0 -48
- data/spec/models/getaround_rentals_times_changed_spec.rb +0 -48
- data/spec/models/getaround_unavailabilities_created_spec.rb +0 -48
- data/spec/models/getaround_unavailabilities_deleted_spec.rb +0 -48
- data/spec/models/getaround_unavailability_spec.rb +0 -58
- data/spec/models/getaround_users_updated_all_of_data_spec.rb +0 -36
- data/spec/models/getaround_users_updated_spec.rb +0 -48
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundInvoicesIndexInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The invoice ID | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundInvoicesIndexInner.new(
|
15
|
+
id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# GetAroundOwner::GetaroundMessage
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The message ID | |
|
8
|
+
| **rental_id** | **Integer** | ID of the related rental | |
|
9
|
+
| **sending_user_id** | **Integer** | ID of the sending user | |
|
10
|
+
| **sent_at** | **String** | Date the message was sent | |
|
11
|
+
| **content** | **String** | Content of message, Personal information detected in messages is hidden | |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'get_around_owner'
|
17
|
+
|
18
|
+
instance = GetAroundOwner::GetaroundMessage.new(
|
19
|
+
id: null,
|
20
|
+
rental_id: null,
|
21
|
+
sending_user_id: null,
|
22
|
+
sent_at: null,
|
23
|
+
content: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundMessagesSent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **Object** | | |
|
8
|
+
| **data** | [**GetaroundMessagesSentAllOfData**](GetaroundMessagesSentAllOfData.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::GetaroundMessagesSent.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# GetAroundOwner::GetaroundMessagesSentAllOfData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **message_id** | **Float** | The message identifier | [optional] |
|
8
|
+
| **rental_id** | **Float** | The rental identifier | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'get_around_owner'
|
14
|
+
|
15
|
+
instance = GetAroundOwner::GetaroundMessagesSentAllOfData.new(
|
16
|
+
message_id: null,
|
17
|
+
rental_id: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# GetAroundOwner::GetaroundPayout
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The payout ID | |
|
8
|
+
| **amount** | **Integer** | The amount of the payout, in cents (0.01€) | |
|
9
|
+
| **currency** | **String** | The currency of the payout (ISO 4217 alphabetic code) | |
|
10
|
+
| **completed_at** | **Time** | The ISO8601 formatted payout completion date | |
|
11
|
+
| **entity_type** | **String** | The type of entity the payout is related to | |
|
12
|
+
| **invoices** | [**Array<GetaroundPayoutInvoicesInner>**](GetaroundPayoutInvoicesInner.md) | An array of invoices paid by this payout | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'get_around_owner'
|
18
|
+
|
19
|
+
instance = GetAroundOwner::GetaroundPayout.new(
|
20
|
+
id: null,
|
21
|
+
amount: null,
|
22
|
+
currency: null,
|
23
|
+
completed_at: null,
|
24
|
+
entity_type: null,
|
25
|
+
invoices: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundPayoutInvoicesInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The invoice ID | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundPayoutInvoicesInner.new(
|
15
|
+
id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundPayoutsIndexInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The payout ID | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundPayoutsIndexInner.new(
|
15
|
+
id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# GetAroundOwner::GetaroundReason
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'get_around_owner'
|
12
|
+
|
13
|
+
instance = GetAroundOwner::GetaroundReason.new()
|
14
|
+
```
|
15
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRental
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | Rental's id | |
|
8
|
+
| **car_id** | **Integer** | Vehicle's id | |
|
9
|
+
| **user_id** | **Integer** | User id of the rental's driver | |
|
10
|
+
| **starts_at** | **Time** | Rental's started time in ISO8601 format | |
|
11
|
+
| **ends_at** | **Time** | Rental's ended time in ISO8601 format | |
|
12
|
+
| **booked_at** | **Time** | Rental's booked time in ISO8601 format | |
|
13
|
+
| **price** | **Integer** | Price set by the owner (in cents 0.01€) | |
|
14
|
+
| **insurance_fee** | **Integer** | Insurance amount collected (in cents 0.01€) | |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'get_around_owner'
|
20
|
+
|
21
|
+
instance = GetAroundOwner::GetaroundRental.new(
|
22
|
+
id: null,
|
23
|
+
car_id: null,
|
24
|
+
user_id: null,
|
25
|
+
starts_at: null,
|
26
|
+
ends_at: null,
|
27
|
+
booked_at: null,
|
28
|
+
price: null,
|
29
|
+
insurance_fee: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRentalInvoicesIndexInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The invoice ID | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundRentalInvoicesIndexInner.new(
|
15
|
+
id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRentalMessagesIndexInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The message ID | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundRentalMessagesIndexInner.new(
|
15
|
+
id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRentalsBooked
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **Object** | | |
|
8
|
+
| **data** | [**GetaroundRentalsBookedAllOfData**](GetaroundRentalsBookedAllOfData.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::GetaroundRentalsBooked.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRentalsBookedAllOfData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **rental_id** | **Float** | The rental identifier | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundRentalsBookedAllOfData.new(
|
15
|
+
rental_id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRentalsCanceled
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **Object** | | |
|
8
|
+
| **data** | [**GetaroundRentalsBookedAllOfData**](GetaroundRentalsBookedAllOfData.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::GetaroundRentalsCanceled.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRentalsCarCheckedIn
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **Object** | | |
|
8
|
+
| **data** | [**GetaroundRentalsBookedAllOfData**](GetaroundRentalsBookedAllOfData.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::GetaroundRentalsCarCheckedIn.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRentalsCarCheckedOut
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **Object** | | |
|
8
|
+
| **data** | [**GetaroundRentalsBookedAllOfData**](GetaroundRentalsBookedAllOfData.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::GetaroundRentalsCarCheckedOut.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRentalsCarSwitched
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **Object** | | |
|
8
|
+
| **data** | [**GetaroundRentalsBookedAllOfData**](GetaroundRentalsBookedAllOfData.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::GetaroundRentalsCarSwitched.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRentalsIndexInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | The rental ID | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'get_around_owner'
|
13
|
+
|
14
|
+
instance = GetAroundOwner::GetaroundRentalsIndexInner.new(
|
15
|
+
id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundRentalsTimesChanged
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **Object** | | |
|
8
|
+
| **data** | [**GetaroundRentalsBookedAllOfData**](GetaroundRentalsBookedAllOfData.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::GetaroundRentalsTimesChanged.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# GetAroundOwner::GetaroundUnavailabilitiesCreated
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **Object** | | |
|
8
|
+
| **data** | [**GetaroundUnavailabilitiesCreatedAllOfData**](GetaroundUnavailabilitiesCreatedAllOfData.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::GetaroundUnavailabilitiesCreated.new(
|
17
|
+
type: null,
|
18
|
+
data: null,
|
19
|
+
occurred_at: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# GetAroundOwner::GetaroundUnavailabilitiesCreatedAllOfData
|
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
|
+
| **reason** | [**GetaroundReason**](GetaroundReason.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'get_around_owner'
|
16
|
+
|
17
|
+
instance = GetAroundOwner::GetaroundUnavailabilitiesCreatedAllOfData.new(
|
18
|
+
car_id: null,
|
19
|
+
starts_at: null,
|
20
|
+
ends_at: null,
|
21
|
+
reason: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -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/Invoice.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# GetAroundOwner::Invoice
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | [****](.md) | The invoice ID |
|
7
|
+
**pdf_url** | [****](.md) | The temporary url (lifetime: 20min) to download the pdf of the tax invoice is generated each to time you call the endpoint. Also, the 'links' variable will not be present if there is no uploaded invoice yet. This could happen if the job to generate & upload the invoice is not done yet. |
|
8
|
+
**product_type** | [****](.md) | The type of product the invoice is related to |
|
9
|
+
**product_id** | [****](.md) | The id of the product the invoice is related to |
|
10
|
+
**emitted_at** | [****](.md) | The date at which the invoice was emitted |
|
11
|
+
**total_price** | [****](.md) | The invoice amount, which is what you will receive (or which will be debited from your account if it is negative) |
|
12
|
+
**currency** | [****](.md) | The currency of the invoice amount (ISO 4217 alphabetic code) |
|
13
|
+
**entity_type** | [****](.md) | The type of entity the invoice is related to |
|
14
|
+
**charges** | [****](.md) | Array of charges | [optional]
|
15
|
+
|