get_around_owner 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Owner API v1.json +2938 -0
  4. data/README.md +338 -181
  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 +110 -0
  10. data/docs/CarsIndex.md +6 -0
  11. data/docs/Checkin.md +10 -0
  12. data/docs/CheckinsApi.md +114 -0
  13. data/docs/CheckinsIndex.md +6 -0
  14. data/docs/Checkout.md +11 -0
  15. data/docs/CheckoutsApi.md +114 -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 +169 -0
  58. data/docs/InvoicesIndex.md +6 -0
  59. data/docs/Message.md +11 -0
  60. data/docs/MessagesApi.md +162 -0
  61. data/docs/MessagesSent.md +6 -0
  62. data/docs/Payout.md +12 -0
  63. data/docs/PayoutsApi.md +114 -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 +114 -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 +167 -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 +57 -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.gemspec +39 -0
  90. data/getaround-api.gemspec +38 -0
  91. data/git_push.sh +55 -0
  92. data/lib/{get_around_owner → getaround-api}/api/cars_api.rb +25 -41
  93. data/lib/getaround-api/api/checkins_api.rb +146 -0
  94. data/lib/getaround-api/api/checkouts_api.rb +146 -0
  95. data/lib/{get_around_owner → getaround-api}/api/invoices_api.rb +43 -66
  96. data/lib/getaround-api/api/messages_api.rb +198 -0
  97. data/lib/{get_around_owner → getaround-api}/api/payouts_api.rb +29 -45
  98. data/lib/getaround-api/api/rentals_api.rb +146 -0
  99. data/lib/getaround-api/api/unavailabilities_api.rb +208 -0
  100. data/lib/{get_around_owner/api/messages_api.rb → getaround-api/api/users_api.rb} +31 -37
  101. data/lib/{get_around_owner → getaround-api}/api_client.rb +71 -77
  102. data/lib/{get_around_owner → getaround-api}/api_error.rb +5 -6
  103. data/lib/{get_around_owner → getaround-api}/configuration.rb +13 -106
  104. data/lib/{get_around_owner/models/getaround_car.rb → getaround-api/models/car.rb} +36 -56
  105. data/lib/{get_around_owner/models/getaround_users_updated_all_of_data.rb → getaround-api/models/car_id.rb} +33 -50
  106. data/lib/{get_around_owner/models/getaround_destroy_unavailability_request.rb → getaround-api/models/car_id_unavailabilities_json_body.rb} +45 -47
  107. data/lib/{get_around_owner/models/getaround_rentals_booked_all_of_data.rb → getaround-api/models/cars_index.rb} +33 -50
  108. data/lib/{get_around_owner/models/getaround_checkin.rb → getaround-api/models/checkin.rb} +34 -65
  109. data/lib/{get_around_owner/models/getaround_rentals_index_inner.rb → getaround-api/models/checkins_index.rb} +32 -58
  110. data/lib/{get_around_owner/models/getaround_checkout.rb → getaround-api/models/checkout.rb} +35 -70
  111. data/lib/getaround-api/models/checkouts_index.rb +197 -0
  112. data/lib/getaround-api/models/ends_at.rb +198 -0
  113. data/lib/{get_around_owner/models/getaround_invoice.rb → getaround-api/models/invoice.rb} +45 -113
  114. data/lib/getaround-api/models/invoices_index.rb +198 -0
  115. data/lib/{get_around_owner/models/getaround_message.rb → getaround-api/models/message.rb} +35 -53
  116. data/lib/getaround-api/models/messages_sent.rb +197 -0
  117. data/lib/{get_around_owner/models/getaround_payout.rb → getaround-api/models/payout.rb} +37 -101
  118. data/lib/getaround-api/models/payouts_index.rb +198 -0
  119. data/lib/{get_around_owner/models/getaround_rental.rb → getaround-api/models/rental.rb} +38 -100
  120. data/lib/{get_around_owner/models/getaround_create_messages_request.rb → getaround-api/models/rental_id_messages_json_body.rb} +31 -41
  121. data/lib/getaround-api/models/rental_invoices_index.rb +198 -0
  122. data/lib/getaround-api/models/rental_messages_index.rb +198 -0
  123. data/lib/getaround-api/models/rentals_booked.rb +197 -0
  124. data/lib/getaround-api/models/rentals_canceled.rb +197 -0
  125. data/lib/getaround-api/models/rentals_car_checked_in.rb +197 -0
  126. data/lib/getaround-api/models/rentals_car_checked_out.rb +197 -0
  127. data/lib/getaround-api/models/rentals_car_switched.rb +197 -0
  128. data/lib/getaround-api/models/rentals_index.rb +198 -0
  129. data/lib/getaround-api/models/rentals_times_changed.rb +197 -0
  130. data/lib/getaround-api/models/starts_at.rb +198 -0
  131. data/lib/{get_around_owner/models/getaround_cars_index_inner.rb → getaround-api/models/unavailabilities_created.rb} +32 -58
  132. data/lib/getaround-api/models/unavailabilities_deleted.rb +197 -0
  133. data/lib/getaround-api/models/unavailabilities_index.rb +198 -0
  134. data/lib/{get_around_owner/models/getaround_unavailabilities_created_all_of_data.rb → getaround-api/models/unavailability.rb} +51 -65
  135. data/lib/{get_around_owner/models/getaround_user.rb → getaround-api/models/user.rb} +43 -75
  136. data/lib/getaround-api/models/users_updated.rb +197 -0
  137. data/lib/{get_around_owner/models/getaround_webhook.rb → getaround-api/models/webhook.rb} +38 -47
  138. data/lib/{get_around_owner → getaround-api}/version.rb +5 -6
  139. data/lib/getaround-api.rb +81 -0
  140. data/openapi.yml +2298 -0
  141. data/spec/api/cars_api_spec.rb +13 -14
  142. data/spec/api/checkins_api_spec.rb +13 -14
  143. data/spec/api/checkouts_api_spec.rb +13 -14
  144. data/spec/api/invoices_api_spec.rb +19 -20
  145. data/spec/api/messages_api_spec.rb +14 -15
  146. data/spec/api/payouts_api_spec.rb +13 -14
  147. data/spec/api/rentals_api_spec.rb +13 -14
  148. data/spec/api/unavailabilities_api_spec.rb +14 -16
  149. data/spec/api/users_api_spec.rb +9 -10
  150. data/spec/api_client_spec.rb +225 -0
  151. data/spec/base_object_spec.rb +109 -0
  152. data/spec/{models/getaround_checkins_index_inner_spec.rb → configuration_spec.rb} +26 -21
  153. data/spec/models/{getaround_reason_spec.rb → car_id_spec.rb} +18 -14
  154. data/spec/models/{getaround_unavailabilities_deleted_all_of_data_spec.rb → car_id_unavailabilities_json_body_spec.rb} +24 -20
  155. data/spec/models/{getaround_car_spec.rb → car_spec.rb} +24 -20
  156. data/spec/models/cars_index_spec.rb +34 -0
  157. data/spec/models/{getaround_checkin_spec.rb → checkin_spec.rb} +22 -18
  158. data/spec/models/checkins_index_spec.rb +34 -0
  159. data/spec/models/{getaround_checkout_spec.rb → checkout_spec.rb} +23 -19
  160. data/spec/models/checkouts_index_spec.rb +34 -0
  161. data/spec/models/ends_at_spec.rb +34 -0
  162. data/spec/models/{getaround_invoice_spec.rb → invoice_spec.rb} +27 -31
  163. data/spec/models/invoices_index_spec.rb +34 -0
  164. data/spec/models/{getaround_message_spec.rb → message_spec.rb} +23 -19
  165. data/spec/models/messages_sent_spec.rb +34 -0
  166. data/spec/models/{getaround_payout_spec.rb → payout_spec.rb} +24 -24
  167. data/spec/models/payouts_index_spec.rb +34 -0
  168. data/spec/models/{getaround_create_messages_request_spec.rb → rental_id_messages_json_body_spec.rb} +19 -15
  169. data/spec/models/{getaround_rentals_index_inner_spec.rb → rental_invoices_index_spec.rb} +16 -18
  170. data/spec/models/rental_messages_index_spec.rb +34 -0
  171. data/spec/models/{getaround_rental_spec.rb → rental_spec.rb} +26 -22
  172. data/spec/models/rentals_booked_spec.rb +34 -0
  173. data/spec/models/rentals_canceled_spec.rb +34 -0
  174. data/spec/models/rentals_car_checked_in_spec.rb +34 -0
  175. data/spec/models/rentals_car_checked_out_spec.rb +34 -0
  176. data/spec/models/rentals_car_switched_spec.rb +34 -0
  177. data/spec/models/rentals_index_spec.rb +34 -0
  178. data/spec/models/rentals_times_changed_spec.rb +34 -0
  179. data/spec/models/starts_at_spec.rb +34 -0
  180. data/spec/models/{getaround_cars_index_inner_spec.rb → unavailabilities_created_spec.rb} +16 -18
  181. data/spec/models/{getaround_payouts_index_inner_spec.rb → unavailabilities_deleted_spec.rb} +16 -18
  182. data/spec/models/unavailabilities_index_spec.rb +34 -0
  183. data/spec/models/{getaround_unavailabilities_created_all_of_data_spec.rb → unavailability_spec.rb} +22 -18
  184. data/spec/models/{getaround_user_spec.rb → user_spec.rb} +31 -27
  185. data/spec/models/users_updated_spec.rb +34 -0
  186. data/spec/models/{getaround_webhook_spec.rb → webhook_spec.rb} +21 -17
  187. data/spec/spec_helper.rb +5 -6
  188. metadata +289 -133
  189. data/lib/get_around_owner/api/checkins_api.rb +0 -82
  190. data/lib/get_around_owner/api/checkouts_api.rb +0 -82
  191. data/lib/get_around_owner/api/rentals_api.rb +0 -262
  192. data/lib/get_around_owner/api/unavailabilities_api.rb +0 -142
  193. data/lib/get_around_owner/api/users_api.rb +0 -82
  194. data/lib/get_around_owner/models/getaround_checkins_index_inner.rb +0 -222
  195. data/lib/get_around_owner/models/getaround_create_unavailabilities_request.rb +0 -283
  196. data/lib/get_around_owner/models/getaround_invoice_charges_inner.rb +0 -225
  197. data/lib/get_around_owner/models/getaround_invoices_index_inner.rb +0 -223
  198. data/lib/get_around_owner/models/getaround_messages_sent.rb +0 -257
  199. data/lib/get_around_owner/models/getaround_messages_sent_all_of_data.rb +0 -225
  200. data/lib/get_around_owner/models/getaround_payout_invoices_inner.rb +0 -223
  201. data/lib/get_around_owner/models/getaround_payouts_index_inner.rb +0 -223
  202. data/lib/get_around_owner/models/getaround_reason.rb +0 -45
  203. data/lib/get_around_owner/models/getaround_rental_invoices_index_inner.rb +0 -223
  204. data/lib/get_around_owner/models/getaround_rental_messages_index_inner.rb +0 -223
  205. data/lib/get_around_owner/models/getaround_rentals_booked.rb +0 -257
  206. data/lib/get_around_owner/models/getaround_rentals_canceled.rb +0 -257
  207. data/lib/get_around_owner/models/getaround_rentals_car_checked_in.rb +0 -257
  208. data/lib/get_around_owner/models/getaround_rentals_car_checked_out.rb +0 -257
  209. data/lib/get_around_owner/models/getaround_rentals_car_switched.rb +0 -257
  210. data/lib/get_around_owner/models/getaround_rentals_times_changed.rb +0 -257
  211. data/lib/get_around_owner/models/getaround_unavailabilities_created.rb +0 -257
  212. data/lib/get_around_owner/models/getaround_unavailabilities_deleted.rb +0 -257
  213. data/lib/get_around_owner/models/getaround_unavailabilities_deleted_all_of_data.rb +0 -235
  214. data/lib/get_around_owner/models/getaround_unavailability.rb +0 -302
  215. data/lib/get_around_owner/models/getaround_users_updated.rb +0 -257
  216. data/lib/get_around_owner.rb +0 -86
  217. data/spec/models/getaround_create_unavailabilities_request_spec.rb +0 -52
  218. data/spec/models/getaround_destroy_unavailability_request_spec.rb +0 -42
  219. data/spec/models/getaround_invoice_charges_inner_spec.rb +0 -42
  220. data/spec/models/getaround_invoices_index_inner_spec.rb +0 -36
  221. data/spec/models/getaround_messages_sent_all_of_data_spec.rb +0 -42
  222. data/spec/models/getaround_messages_sent_spec.rb +0 -48
  223. data/spec/models/getaround_payout_invoices_inner_spec.rb +0 -36
  224. data/spec/models/getaround_rental_invoices_index_inner_spec.rb +0 -36
  225. data/spec/models/getaround_rental_messages_index_inner_spec.rb +0 -36
  226. data/spec/models/getaround_rentals_booked_all_of_data_spec.rb +0 -36
  227. data/spec/models/getaround_rentals_booked_spec.rb +0 -48
  228. data/spec/models/getaround_rentals_canceled_spec.rb +0 -48
  229. data/spec/models/getaround_rentals_car_checked_in_spec.rb +0 -48
  230. data/spec/models/getaround_rentals_car_checked_out_spec.rb +0 -48
  231. data/spec/models/getaround_rentals_car_switched_spec.rb +0 -48
  232. data/spec/models/getaround_rentals_times_changed_spec.rb +0 -48
  233. data/spec/models/getaround_unavailabilities_created_spec.rb +0 -48
  234. data/spec/models/getaround_unavailabilities_deleted_spec.rb +0 -48
  235. data/spec/models/getaround_unavailability_spec.rb +0 -58
  236. data/spec/models/getaround_users_updated_all_of_data_spec.rb +0 -36
  237. data/spec/models/getaround_users_updated_spec.rb +0 -48
@@ -0,0 +1,169 @@
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
+ # **get_invoice_by_id**
12
+ > Invoice get_invoice_by_id(id)
13
+
14
+ Find an invoice by ID
15
+
16
+ Find an invoice by ID
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'getaround-api'
22
+ # setup authorization
23
+ GetAroundOwner.configure do |config|
24
+ end
25
+
26
+ api_instance = GetAroundOwner::InvoicesApi.new
27
+ id = GetAroundOwner::null.new # | ID of invoice to return
28
+
29
+
30
+ begin
31
+ #Find an invoice by ID
32
+ result = api_instance.get_invoice_by_id(id)
33
+ p result
34
+ rescue GetAroundOwner::ApiError => e
35
+ puts "Exception when calling InvoicesApi->get_invoice_by_id: #{e}"
36
+ end
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ Name | Type | Description | Notes
42
+ ------------- | ------------- | ------------- | -------------
43
+ **id** | [****](.md)| ID of invoice to return |
44
+
45
+ ### Return type
46
+
47
+ [**Invoice**](Invoice.md)
48
+
49
+ ### Authorization
50
+
51
+ [bearerAuth](../README.md#bearerAuth)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: application/json
57
+
58
+
59
+
60
+ # **get_invoices**
61
+ > InvoicesIndex get_invoices(opts)
62
+
63
+ Find invoices emitted between dates
64
+
65
+ Find invoices emitted between dates
66
+
67
+ ### Example
68
+ ```ruby
69
+ # load the gem
70
+ require 'getaround-api'
71
+ # setup authorization
72
+ GetAroundOwner.configure do |config|
73
+ end
74
+
75
+ api_instance = GetAroundOwner::InvoicesApi.new
76
+ opts = {
77
+ start_date: GetAroundOwner::null.new, # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
78
+ end_date: GetAroundOwner::null.new, # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
79
+ page: GetAroundOwner::null.new, # | Page number
80
+ per_page: GetAroundOwner::null.new # | Page size
81
+ }
82
+
83
+ begin
84
+ #Find invoices emitted between dates
85
+ result = api_instance.get_invoices(opts)
86
+ p result
87
+ rescue GetAroundOwner::ApiError => e
88
+ puts "Exception when calling InvoicesApi->get_invoices: #{e}"
89
+ end
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ Name | Type | Description | Notes
95
+ ------------- | ------------- | ------------- | -------------
96
+ **start_date** | [****](.md)| Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | [optional]
97
+ **end_date** | [****](.md)| End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | [optional]
98
+ **page** | [****](.md)| Page number | [optional]
99
+ **per_page** | [****](.md)| Page size | [optional] [default to 30]
100
+
101
+ ### Return type
102
+
103
+ [**InvoicesIndex**](InvoicesIndex.md)
104
+
105
+ ### Authorization
106
+
107
+ [bearerAuth](../README.md#bearerAuth)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
113
+
114
+
115
+
116
+ # **get_invoices_for_rental**
117
+ > RentalInvoicesIndex get_invoices_for_rental(rental_id, opts)
118
+
119
+ Find invoices associated to a rental
120
+
121
+ Find invoices associated to a rental
122
+
123
+ ### Example
124
+ ```ruby
125
+ # load the gem
126
+ require 'getaround-api'
127
+ # setup authorization
128
+ GetAroundOwner.configure do |config|
129
+ end
130
+
131
+ api_instance = GetAroundOwner::InvoicesApi.new
132
+ rental_id = GetAroundOwner::null.new # | ID of rental
133
+ opts = {
134
+ page: GetAroundOwner::null.new, # | Page number
135
+ per_page: GetAroundOwner::null.new # | Page size
136
+ }
137
+
138
+ begin
139
+ #Find invoices associated to a rental
140
+ result = api_instance.get_invoices_for_rental(rental_id, opts)
141
+ p result
142
+ rescue GetAroundOwner::ApiError => e
143
+ puts "Exception when calling InvoicesApi->get_invoices_for_rental: #{e}"
144
+ end
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ Name | Type | Description | Notes
150
+ ------------- | ------------- | ------------- | -------------
151
+ **rental_id** | [****](.md)| ID of rental |
152
+ **page** | [****](.md)| Page number | [optional]
153
+ **per_page** | [****](.md)| Page size | [optional] [default to 30]
154
+
155
+ ### Return type
156
+
157
+ [**RentalInvoicesIndex**](RentalInvoicesIndex.md)
158
+
159
+ ### Authorization
160
+
161
+ [bearerAuth](../README.md#bearerAuth)
162
+
163
+ ### HTTP request headers
164
+
165
+ - **Content-Type**: Not defined
166
+ - **Accept**: application/json
167
+
168
+
169
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::InvoicesIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
data/docs/Message.md ADDED
@@ -0,0 +1,11 @@
1
+ # GetAroundOwner::Message
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | [****](.md) | The message ID |
7
+ **rental_id** | [****](.md) | ID of the related rental |
8
+ **sending_user_id** | [****](.md) | ID of the sending user |
9
+ **sent_at** | [****](.md) | Date the message was sent |
10
+ **content** | [****](.md) | Content of message, Personal information detected in messages is hidden |
11
+
@@ -0,0 +1,162 @@
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
+ [**create_messages**](MessagesApi.md#create_messages) | **POST** /rentals/{rental_id}/messages.json | Create Message associated to a rental
8
+ [**get_message_by_id**](MessagesApi.md#get_message_by_id) | **GET** /rentals/{rental_id}/messages/{id}.json | Find a message by ID associated to a rental
9
+ [**get_messages_for_rental**](MessagesApi.md#get_messages_for_rental) | **GET** /rentals/{rental_id}/messages.json | Find messages associated to a rental
10
+
11
+ # **create_messages**
12
+ > Message create_messages(rental_id, opts)
13
+
14
+ Create Message associated to a rental
15
+
16
+ Create Message associated to a rental
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'getaround-api'
22
+ # setup authorization
23
+ GetAroundOwner.configure do |config|
24
+ end
25
+
26
+ api_instance = GetAroundOwner::MessagesApi.new
27
+ rental_id = GetAroundOwner::null.new # | ID of rental
28
+ opts = {
29
+ body: GetAroundOwner::RentalIdMessagesJsonBody.new # RentalIdMessagesJsonBody | Message to create
30
+ }
31
+
32
+ begin
33
+ #Create Message associated to a rental
34
+ result = api_instance.create_messages(rental_id, opts)
35
+ p result
36
+ rescue GetAroundOwner::ApiError => e
37
+ puts "Exception when calling MessagesApi->create_messages: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **rental_id** | [****](.md)| ID of rental |
46
+ **body** | [**RentalIdMessagesJsonBody**](RentalIdMessagesJsonBody.md)| Message to create | [optional]
47
+
48
+ ### Return type
49
+
50
+ [**Message**](Message.md)
51
+
52
+ ### Authorization
53
+
54
+ [bearerAuth](../README.md#bearerAuth)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: application/json
59
+ - **Accept**: application/json
60
+
61
+
62
+
63
+ # **get_message_by_id**
64
+ > Message get_message_by_id(rental_id, id)
65
+
66
+ Find a message by ID associated to a rental
67
+
68
+ Find a message by ID associated to a rental
69
+
70
+ ### Example
71
+ ```ruby
72
+ # load the gem
73
+ require 'getaround-api'
74
+ # setup authorization
75
+ GetAroundOwner.configure do |config|
76
+ end
77
+
78
+ api_instance = GetAroundOwner::MessagesApi.new
79
+ rental_id = GetAroundOwner::null.new # | ID of rental
80
+ id = GetAroundOwner::null.new # | ID of message to return
81
+
82
+
83
+ begin
84
+ #Find a message by ID associated to a rental
85
+ result = api_instance.get_message_by_id(rental_id, id)
86
+ p result
87
+ rescue GetAroundOwner::ApiError => e
88
+ puts "Exception when calling MessagesApi->get_message_by_id: #{e}"
89
+ end
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ Name | Type | Description | Notes
95
+ ------------- | ------------- | ------------- | -------------
96
+ **rental_id** | [****](.md)| ID of rental |
97
+ **id** | [****](.md)| ID of message to return |
98
+
99
+ ### Return type
100
+
101
+ [**Message**](Message.md)
102
+
103
+ ### Authorization
104
+
105
+ [bearerAuth](../README.md#bearerAuth)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: Not defined
110
+ - **Accept**: application/json
111
+
112
+
113
+
114
+ # **get_messages_for_rental**
115
+ > RentalMessagesIndex get_messages_for_rental(rental_id)
116
+
117
+ Find messages associated to a rental
118
+
119
+ Find messages associated to a rental
120
+
121
+ ### Example
122
+ ```ruby
123
+ # load the gem
124
+ require 'getaround-api'
125
+ # setup authorization
126
+ GetAroundOwner.configure do |config|
127
+ end
128
+
129
+ api_instance = GetAroundOwner::MessagesApi.new
130
+ rental_id = GetAroundOwner::null.new # | ID of rental
131
+
132
+
133
+ begin
134
+ #Find messages associated to a rental
135
+ result = api_instance.get_messages_for_rental(rental_id)
136
+ p result
137
+ rescue GetAroundOwner::ApiError => e
138
+ puts "Exception when calling MessagesApi->get_messages_for_rental: #{e}"
139
+ end
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ Name | Type | Description | Notes
145
+ ------------- | ------------- | ------------- | -------------
146
+ **rental_id** | [****](.md)| ID of rental |
147
+
148
+ ### Return type
149
+
150
+ [**RentalMessagesIndex**](RentalMessagesIndex.md)
151
+
152
+ ### Authorization
153
+
154
+ [bearerAuth](../README.md#bearerAuth)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: application/json
160
+
161
+
162
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::MessagesSent
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
data/docs/Payout.md ADDED
@@ -0,0 +1,12 @@
1
+ # GetAroundOwner::Payout
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | [****](.md) | The payout ID |
7
+ **amount** | [****](.md) | The amount of the payout, in cents (0.01€) |
8
+ **currency** | [****](.md) | The currency of the payout (ISO 4217 alphabetic code) |
9
+ **completed_at** | [****](.md) | The ISO8601 formatted payout completion date |
10
+ **entity_type** | [****](.md) | The type of entity the payout is related to |
11
+ **invoices** | [****](.md) | An array of invoices paid by this payout | [optional]
12
+
@@ -0,0 +1,114 @@
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
+ # **get_payout_by_id**
11
+ > Payout get_payout_by_id(id)
12
+
13
+ Find a payout by ID
14
+
15
+ Find a payout by ID
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'getaround-api'
21
+ # setup authorization
22
+ GetAroundOwner.configure do |config|
23
+ end
24
+
25
+ api_instance = GetAroundOwner::PayoutsApi.new
26
+ id = GetAroundOwner::null.new # | ID of payout to return
27
+
28
+
29
+ begin
30
+ #Find a payout by ID
31
+ result = api_instance.get_payout_by_id(id)
32
+ p result
33
+ rescue GetAroundOwner::ApiError => e
34
+ puts "Exception when calling PayoutsApi->get_payout_by_id: #{e}"
35
+ end
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ Name | Type | Description | Notes
41
+ ------------- | ------------- | ------------- | -------------
42
+ **id** | [****](.md)| ID of payout to return |
43
+
44
+ ### Return type
45
+
46
+ [**Payout**](Payout.md)
47
+
48
+ ### Authorization
49
+
50
+ [bearerAuth](../README.md#bearerAuth)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: application/json
56
+
57
+
58
+
59
+ # **get_payouts**
60
+ > PayoutsIndex get_payouts(start_date, end_date, opts)
61
+
62
+ Find payouts paid between dates
63
+
64
+ Find payouts paid between dates
65
+
66
+ ### Example
67
+ ```ruby
68
+ # load the gem
69
+ require 'getaround-api'
70
+ # setup authorization
71
+ GetAroundOwner.configure do |config|
72
+ end
73
+
74
+ api_instance = GetAroundOwner::PayoutsApi.new
75
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
76
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
77
+ opts = {
78
+ page: GetAroundOwner::null.new, # | Page number
79
+ per_page: GetAroundOwner::null.new # | Page size
80
+ }
81
+
82
+ begin
83
+ #Find payouts paid between dates
84
+ result = api_instance.get_payouts(start_date, end_date, opts)
85
+ p result
86
+ rescue GetAroundOwner::ApiError => e
87
+ puts "Exception when calling PayoutsApi->get_payouts: #{e}"
88
+ end
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **start_date** | [****](.md)| Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
96
+ **end_date** | [****](.md)| End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
97
+ **page** | [****](.md)| Page number | [optional]
98
+ **per_page** | [****](.md)| Page size | [optional] [default to 30]
99
+
100
+ ### Return type
101
+
102
+ [**PayoutsIndex**](PayoutsIndex.md)
103
+
104
+ ### Authorization
105
+
106
+ [bearerAuth](../README.md#bearerAuth)
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: application/json
112
+
113
+
114
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::PayoutsIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
data/docs/Rental.md ADDED
@@ -0,0 +1,14 @@
1
+ # GetAroundOwner::Rental
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | [****](.md) | Rental's id |
7
+ **car_id** | [****](.md) | Vehicle's id |
8
+ **user_id** | [****](.md) | User id of the rental's driver |
9
+ **starts_at** | [****](.md) | Rental's started time in ISO8601 format |
10
+ **ends_at** | [****](.md) | Rental's ended time in ISO8601 format |
11
+ **booked_at** | [****](.md) | Rental's booked time in ISO8601 format |
12
+ **price** | [****](.md) | Price set by the owner (in cents 0.01€) |
13
+ **insurance_fee** | [****](.md) | Insurance amount collected (in cents 0.01€) |
14
+
@@ -0,0 +1,7 @@
1
+ # GetAroundOwner::RentalIdMessagesJsonBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **content** | [****](.md) | Content of the message (2000 characters max) |
7
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalInvoicesIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalMessagesIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,114 @@
1
+ # GetAroundOwner::RentalsApi
2
+
3
+ All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_rental_by_id**](RentalsApi.md#get_rental_by_id) | **GET** /rentals/{id}.json | Find a rental by ID
8
+ [**get_rentals**](RentalsApi.md#get_rentals) | **GET** /rentals.json | Find rentals booked between dates
9
+
10
+ # **get_rental_by_id**
11
+ > Rental get_rental_by_id(id)
12
+
13
+ Find a rental by ID
14
+
15
+ Find a rental by ID
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'getaround-api'
21
+ # setup authorization
22
+ GetAroundOwner.configure do |config|
23
+ end
24
+
25
+ api_instance = GetAroundOwner::RentalsApi.new
26
+ id = GetAroundOwner::null.new # | ID of rental to return
27
+
28
+
29
+ begin
30
+ #Find a rental by ID
31
+ result = api_instance.get_rental_by_id(id)
32
+ p result
33
+ rescue GetAroundOwner::ApiError => e
34
+ puts "Exception when calling RentalsApi->get_rental_by_id: #{e}"
35
+ end
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ Name | Type | Description | Notes
41
+ ------------- | ------------- | ------------- | -------------
42
+ **id** | [****](.md)| ID of rental to return |
43
+
44
+ ### Return type
45
+
46
+ [**Rental**](Rental.md)
47
+
48
+ ### Authorization
49
+
50
+ [bearerAuth](../README.md#bearerAuth)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: application/json
56
+
57
+
58
+
59
+ # **get_rentals**
60
+ > RentalsIndex get_rentals(start_date, end_date, opts)
61
+
62
+ Find rentals booked between dates
63
+
64
+ Find rentals booked between dates
65
+
66
+ ### Example
67
+ ```ruby
68
+ # load the gem
69
+ require 'getaround-api'
70
+ # setup authorization
71
+ GetAroundOwner.configure do |config|
72
+ end
73
+
74
+ api_instance = GetAroundOwner::RentalsApi.new
75
+ start_date = GetAroundOwner::null.new # | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
76
+ end_date = GetAroundOwner::null.new # | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
77
+ opts = {
78
+ page: GetAroundOwner::null.new, # | Page number
79
+ per_page: GetAroundOwner::null.new # | Page size
80
+ }
81
+
82
+ begin
83
+ #Find rentals booked between dates
84
+ result = api_instance.get_rentals(start_date, end_date, opts)
85
+ p result
86
+ rescue GetAroundOwner::ApiError => e
87
+ puts "Exception when calling RentalsApi->get_rentals: #{e}"
88
+ end
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **start_date** | [****](.md)| Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
96
+ **end_date** | [****](.md)| End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) |
97
+ **page** | [****](.md)| Page number | [optional]
98
+ **per_page** | [****](.md)| Page size | [optional] [default to 30]
99
+
100
+ ### Return type
101
+
102
+ [**RentalsIndex**](RentalsIndex.md)
103
+
104
+ ### Authorization
105
+
106
+ [bearerAuth](../README.md#bearerAuth)
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: application/json
112
+
113
+
114
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsBooked
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsCanceled
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsCarCheckedIn
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsCarCheckedOut
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsCarSwitched
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # GetAroundOwner::RentalsIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+