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.
Files changed (232) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Owner API v1.json +2938 -0
  4. data/README.md +359 -203
  5. data/Rakefile +8 -0
  6. data/docs/Car.md +12 -0
  7. data/docs/CarId.md +6 -0
  8. data/docs/CarIdUnavailabilitiesJsonBody.md +9 -0
  9. data/docs/CarsApi.md +109 -0
  10. data/docs/CarsIndex.md +6 -0
  11. data/docs/Checkin.md +10 -0
  12. data/docs/CheckinsApi.md +113 -0
  13. data/docs/CheckinsIndex.md +6 -0
  14. data/docs/Checkout.md +11 -0
  15. data/docs/CheckoutsApi.md +113 -0
  16. data/docs/CheckoutsIndex.md +6 -0
  17. data/docs/EndsAt.md +6 -0
  18. data/docs/GetaroundCar.md +28 -0
  19. data/docs/GetaroundCarsIndexInner.md +18 -0
  20. data/docs/GetaroundCheckin.md +24 -0
  21. data/docs/GetaroundCheckinsIndexInner.md +18 -0
  22. data/docs/GetaroundCheckout.md +26 -0
  23. data/docs/GetaroundCreateMessagesRequest.md +18 -0
  24. data/docs/GetaroundCreateUnavailabilitiesRequest.md +22 -0
  25. data/docs/GetaroundDestroyUnavailabilityRequest.md +20 -0
  26. data/docs/GetaroundInvoice.md +34 -0
  27. data/docs/GetaroundInvoiceChargesInner.md +20 -0
  28. data/docs/GetaroundInvoicesIndexInner.md +18 -0
  29. data/docs/GetaroundMessage.md +26 -0
  30. data/docs/GetaroundMessagesSent.md +22 -0
  31. data/docs/GetaroundMessagesSentAllOfData.md +20 -0
  32. data/docs/GetaroundPayout.md +28 -0
  33. data/docs/GetaroundPayoutInvoicesInner.md +18 -0
  34. data/docs/GetaroundPayoutsIndexInner.md +18 -0
  35. data/docs/GetaroundReason.md +15 -0
  36. data/docs/GetaroundRental.md +32 -0
  37. data/docs/GetaroundRentalInvoicesIndexInner.md +18 -0
  38. data/docs/GetaroundRentalMessagesIndexInner.md +18 -0
  39. data/docs/GetaroundRentalsBooked.md +22 -0
  40. data/docs/GetaroundRentalsBookedAllOfData.md +18 -0
  41. data/docs/GetaroundRentalsCanceled.md +22 -0
  42. data/docs/GetaroundRentalsCarCheckedIn.md +22 -0
  43. data/docs/GetaroundRentalsCarCheckedOut.md +22 -0
  44. data/docs/GetaroundRentalsCarSwitched.md +22 -0
  45. data/docs/GetaroundRentalsIndexInner.md +18 -0
  46. data/docs/GetaroundRentalsTimesChanged.md +22 -0
  47. data/docs/GetaroundUnavailabilitiesCreated.md +22 -0
  48. data/docs/GetaroundUnavailabilitiesCreatedAllOfData.md +24 -0
  49. data/docs/GetaroundUnavailabilitiesDeleted.md +22 -0
  50. data/docs/GetaroundUnavailabilitiesDeletedAllOfData.md +22 -0
  51. data/docs/GetaroundUnavailability.md +24 -0
  52. data/docs/GetaroundUser.md +42 -0
  53. data/docs/GetaroundUsersUpdated.md +22 -0
  54. data/docs/GetaroundUsersUpdatedAllOfData.md +18 -0
  55. data/docs/GetaroundWebhook.md +22 -0
  56. data/docs/Invoice.md +15 -0
  57. data/docs/InvoicesApi.md +168 -0
  58. data/docs/InvoicesIndex.md +6 -0
  59. data/docs/Message.md +11 -0
  60. data/docs/MessagesApi.md +161 -0
  61. data/docs/MessagesSent.md +6 -0
  62. data/docs/Payout.md +12 -0
  63. data/docs/PayoutsApi.md +113 -0
  64. data/docs/PayoutsIndex.md +6 -0
  65. data/docs/Rental.md +14 -0
  66. data/docs/RentalIdMessagesJsonBody.md +7 -0
  67. data/docs/RentalInvoicesIndex.md +6 -0
  68. data/docs/RentalMessagesIndex.md +6 -0
  69. data/docs/RentalsApi.md +113 -0
  70. data/docs/RentalsBooked.md +6 -0
  71. data/docs/RentalsCanceled.md +6 -0
  72. data/docs/RentalsCarCheckedIn.md +6 -0
  73. data/docs/RentalsCarCheckedOut.md +6 -0
  74. data/docs/RentalsCarSwitched.md +6 -0
  75. data/docs/RentalsIndex.md +6 -0
  76. data/docs/RentalsTimesChanged.md +6 -0
  77. data/docs/StartsAt.md +6 -0
  78. data/docs/UnavailabilitiesApi.md +166 -0
  79. data/docs/UnavailabilitiesCreated.md +6 -0
  80. data/docs/UnavailabilitiesDeleted.md +6 -0
  81. data/docs/UnavailabilitiesIndex.md +6 -0
  82. data/docs/Unavailability.md +10 -0
  83. data/docs/User.md +19 -0
  84. data/docs/UsersApi.md +56 -0
  85. data/docs/UsersUpdated.md +6 -0
  86. data/docs/Webhook.md +9 -0
  87. data/get_around_owner-1.0.0.gem +0 -0
  88. data/get_around_owner-1.0.1.gem +0 -0
  89. data/get_around_owner-1.0.3.gem +0 -0
  90. data/get_around_owner.gemspec +39 -0
  91. data/getaround-api.gemspec +38 -0
  92. data/git_push.sh +55 -0
  93. data/lib/get_around_owner/api/cars_api.rb +25 -41
  94. data/lib/get_around_owner/api/checkins_api.rb +99 -35
  95. data/lib/get_around_owner/api/checkouts_api.rb +99 -35
  96. data/lib/get_around_owner/api/invoices_api.rb +43 -66
  97. data/lib/get_around_owner/api/messages_api.rb +149 -33
  98. data/lib/get_around_owner/api/payouts_api.rb +29 -45
  99. data/lib/get_around_owner/api/rentals_api.rb +67 -183
  100. data/lib/get_around_owner/api/unavailabilities_api.rb +124 -58
  101. data/lib/get_around_owner/api/users_api.rb +30 -36
  102. data/lib/get_around_owner/api_client.rb +71 -77
  103. data/lib/get_around_owner/api_error.rb +5 -6
  104. data/lib/get_around_owner/configuration.rb +13 -106
  105. data/lib/get_around_owner/models/{getaround_car.rb → car.rb} +36 -56
  106. data/lib/get_around_owner/models/{getaround_users_updated_all_of_data.rb → car_id.rb} +33 -50
  107. data/lib/get_around_owner/models/{getaround_destroy_unavailability_request.rb → car_id_unavailabilities_json_body.rb} +45 -47
  108. data/lib/get_around_owner/models/{getaround_rentals_booked_all_of_data.rb → cars_index.rb} +33 -50
  109. data/lib/get_around_owner/models/{getaround_checkin.rb → checkin.rb} +34 -65
  110. data/lib/get_around_owner/models/{getaround_payouts_index_inner.rb → checkins_index.rb} +32 -58
  111. data/lib/get_around_owner/models/{getaround_checkout.rb → checkout.rb} +35 -70
  112. data/lib/get_around_owner/models/checkouts_index.rb +197 -0
  113. data/lib/get_around_owner/models/ends_at.rb +198 -0
  114. data/lib/get_around_owner/models/{getaround_invoice.rb → invoice.rb} +45 -113
  115. data/lib/get_around_owner/models/invoices_index.rb +198 -0
  116. data/lib/get_around_owner/models/{getaround_message.rb → message.rb} +35 -53
  117. data/lib/get_around_owner/models/messages_sent.rb +197 -0
  118. data/lib/get_around_owner/models/{getaround_payout.rb → payout.rb} +37 -101
  119. data/lib/get_around_owner/models/payouts_index.rb +198 -0
  120. data/lib/get_around_owner/models/{getaround_rental.rb → rental.rb} +38 -100
  121. data/lib/get_around_owner/models/{getaround_create_messages_request.rb → rental_id_messages_json_body.rb} +31 -41
  122. data/lib/get_around_owner/models/rental_invoices_index.rb +198 -0
  123. data/lib/get_around_owner/models/rental_messages_index.rb +198 -0
  124. data/lib/get_around_owner/models/rentals_booked.rb +197 -0
  125. data/lib/get_around_owner/models/rentals_canceled.rb +197 -0
  126. data/lib/get_around_owner/models/rentals_car_checked_in.rb +197 -0
  127. data/lib/get_around_owner/models/rentals_car_checked_out.rb +197 -0
  128. data/lib/get_around_owner/models/rentals_car_switched.rb +197 -0
  129. data/lib/get_around_owner/models/rentals_index.rb +198 -0
  130. data/lib/get_around_owner/models/rentals_times_changed.rb +197 -0
  131. data/lib/get_around_owner/models/starts_at.rb +198 -0
  132. data/lib/get_around_owner/models/{getaround_cars_index_inner.rb → unavailabilities_created.rb} +32 -58
  133. data/lib/get_around_owner/models/unavailabilities_deleted.rb +197 -0
  134. data/lib/get_around_owner/models/unavailabilities_index.rb +198 -0
  135. data/lib/get_around_owner/models/{getaround_unavailabilities_created_all_of_data.rb → unavailability.rb} +51 -65
  136. data/lib/get_around_owner/models/{getaround_user.rb → user.rb} +43 -75
  137. data/lib/get_around_owner/models/users_updated.rb +197 -0
  138. data/lib/get_around_owner/models/{getaround_webhook.rb → webhook.rb} +38 -47
  139. data/lib/get_around_owner/version.rb +5 -6
  140. data/lib/get_around_owner.rb +38 -43
  141. data/openapi.yml +2298 -0
  142. data/spec/api/cars_api_spec.rb +13 -14
  143. data/spec/api/checkins_api_spec.rb +13 -14
  144. data/spec/api/checkouts_api_spec.rb +13 -14
  145. data/spec/api/invoices_api_spec.rb +19 -20
  146. data/spec/api/messages_api_spec.rb +14 -15
  147. data/spec/api/payouts_api_spec.rb +13 -14
  148. data/spec/api/rentals_api_spec.rb +13 -14
  149. data/spec/api/unavailabilities_api_spec.rb +14 -16
  150. data/spec/api/users_api_spec.rb +9 -10
  151. data/spec/api_client_spec.rb +225 -0
  152. data/spec/base_object_spec.rb +109 -0
  153. data/spec/{models/getaround_checkins_index_inner_spec.rb → configuration_spec.rb} +26 -21
  154. data/spec/models/{getaround_reason_spec.rb → car_id_spec.rb} +18 -14
  155. data/spec/models/{getaround_unavailabilities_deleted_all_of_data_spec.rb → car_id_unavailabilities_json_body_spec.rb} +24 -20
  156. data/spec/models/{getaround_car_spec.rb → car_spec.rb} +24 -20
  157. data/spec/models/{getaround_rentals_index_inner_spec.rb → cars_index_spec.rb} +16 -18
  158. data/spec/models/{getaround_checkin_spec.rb → checkin_spec.rb} +22 -18
  159. data/spec/models/checkins_index_spec.rb +34 -0
  160. data/spec/models/{getaround_checkout_spec.rb → checkout_spec.rb} +23 -19
  161. data/spec/models/checkouts_index_spec.rb +34 -0
  162. data/spec/models/ends_at_spec.rb +34 -0
  163. data/spec/models/{getaround_invoice_spec.rb → invoice_spec.rb} +27 -31
  164. data/spec/models/invoices_index_spec.rb +34 -0
  165. data/spec/models/{getaround_message_spec.rb → message_spec.rb} +23 -19
  166. data/spec/models/messages_sent_spec.rb +34 -0
  167. data/spec/models/{getaround_payout_spec.rb → payout_spec.rb} +24 -24
  168. data/spec/models/payouts_index_spec.rb +34 -0
  169. data/spec/models/{getaround_create_messages_request_spec.rb → rental_id_messages_json_body_spec.rb} +19 -15
  170. data/spec/models/rental_invoices_index_spec.rb +34 -0
  171. data/spec/models/rental_messages_index_spec.rb +34 -0
  172. data/spec/models/{getaround_rental_spec.rb → rental_spec.rb} +26 -22
  173. data/spec/models/rentals_booked_spec.rb +34 -0
  174. data/spec/models/rentals_canceled_spec.rb +34 -0
  175. data/spec/models/rentals_car_checked_in_spec.rb +34 -0
  176. data/spec/models/rentals_car_checked_out_spec.rb +34 -0
  177. data/spec/models/rentals_car_switched_spec.rb +34 -0
  178. data/spec/models/rentals_index_spec.rb +34 -0
  179. data/spec/models/rentals_times_changed_spec.rb +34 -0
  180. data/spec/models/starts_at_spec.rb +34 -0
  181. data/spec/models/{getaround_cars_index_inner_spec.rb → unavailabilities_created_spec.rb} +16 -18
  182. data/spec/models/{getaround_payouts_index_inner_spec.rb → unavailabilities_deleted_spec.rb} +16 -18
  183. data/spec/models/unavailabilities_index_spec.rb +34 -0
  184. data/spec/models/{getaround_unavailabilities_created_all_of_data_spec.rb → unavailability_spec.rb} +22 -18
  185. data/spec/models/{getaround_user_spec.rb → user_spec.rb} +31 -27
  186. data/spec/models/users_updated_spec.rb +34 -0
  187. data/spec/models/{getaround_webhook_spec.rb → webhook_spec.rb} +21 -17
  188. data/spec/spec_helper.rb +4 -5
  189. metadata +276 -119
  190. data/lib/get_around_owner/models/getaround_checkins_index_inner.rb +0 -222
  191. data/lib/get_around_owner/models/getaround_create_unavailabilities_request.rb +0 -283
  192. data/lib/get_around_owner/models/getaround_invoice_charges_inner.rb +0 -225
  193. data/lib/get_around_owner/models/getaround_invoices_index_inner.rb +0 -223
  194. data/lib/get_around_owner/models/getaround_messages_sent.rb +0 -257
  195. data/lib/get_around_owner/models/getaround_messages_sent_all_of_data.rb +0 -225
  196. data/lib/get_around_owner/models/getaround_payout_invoices_inner.rb +0 -223
  197. data/lib/get_around_owner/models/getaround_reason.rb +0 -45
  198. data/lib/get_around_owner/models/getaround_rental_invoices_index_inner.rb +0 -223
  199. data/lib/get_around_owner/models/getaround_rental_messages_index_inner.rb +0 -223
  200. data/lib/get_around_owner/models/getaround_rentals_booked.rb +0 -257
  201. data/lib/get_around_owner/models/getaround_rentals_canceled.rb +0 -257
  202. data/lib/get_around_owner/models/getaround_rentals_car_checked_in.rb +0 -257
  203. data/lib/get_around_owner/models/getaround_rentals_car_checked_out.rb +0 -257
  204. data/lib/get_around_owner/models/getaround_rentals_car_switched.rb +0 -257
  205. data/lib/get_around_owner/models/getaround_rentals_index_inner.rb +0 -223
  206. data/lib/get_around_owner/models/getaround_rentals_times_changed.rb +0 -257
  207. data/lib/get_around_owner/models/getaround_unavailabilities_created.rb +0 -257
  208. data/lib/get_around_owner/models/getaround_unavailabilities_deleted.rb +0 -257
  209. data/lib/get_around_owner/models/getaround_unavailabilities_deleted_all_of_data.rb +0 -235
  210. data/lib/get_around_owner/models/getaround_unavailability.rb +0 -302
  211. data/lib/get_around_owner/models/getaround_users_updated.rb +0 -257
  212. data/spec/models/getaround_create_unavailabilities_request_spec.rb +0 -52
  213. data/spec/models/getaround_destroy_unavailability_request_spec.rb +0 -42
  214. data/spec/models/getaround_invoice_charges_inner_spec.rb +0 -42
  215. data/spec/models/getaround_invoices_index_inner_spec.rb +0 -36
  216. data/spec/models/getaround_messages_sent_all_of_data_spec.rb +0 -42
  217. data/spec/models/getaround_messages_sent_spec.rb +0 -48
  218. data/spec/models/getaround_payout_invoices_inner_spec.rb +0 -36
  219. data/spec/models/getaround_rental_invoices_index_inner_spec.rb +0 -36
  220. data/spec/models/getaround_rental_messages_index_inner_spec.rb +0 -36
  221. data/spec/models/getaround_rentals_booked_all_of_data_spec.rb +0 -36
  222. data/spec/models/getaround_rentals_booked_spec.rb +0 -48
  223. data/spec/models/getaround_rentals_canceled_spec.rb +0 -48
  224. data/spec/models/getaround_rentals_car_checked_in_spec.rb +0 -48
  225. data/spec/models/getaround_rentals_car_checked_out_spec.rb +0 -48
  226. data/spec/models/getaround_rentals_car_switched_spec.rb +0 -48
  227. data/spec/models/getaround_rentals_times_changed_spec.rb +0 -48
  228. data/spec/models/getaround_unavailabilities_created_spec.rb +0 -48
  229. data/spec/models/getaround_unavailabilities_deleted_spec.rb +0 -48
  230. data/spec/models/getaround_unavailability_spec.rb +0 -58
  231. data/spec/models/getaround_users_updated_all_of_data_spec.rb +0 -36
  232. 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
+