get_around_owner 1.0.0 → 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 (198) hide show
  1. checksums.yaml +4 -4
  2. data/Owner API v1.json +2938 -0
  3. data/README.md +338 -181
  4. data/Rakefile +0 -2
  5. data/docs/Car.md +12 -0
  6. data/docs/CarId.md +6 -0
  7. data/docs/CarIdUnavailabilitiesJsonBody.md +9 -0
  8. data/docs/CarsApi.md +38 -79
  9. data/docs/CarsIndex.md +6 -0
  10. data/docs/Checkin.md +10 -0
  11. data/docs/CheckinsApi.md +76 -33
  12. data/docs/CheckinsIndex.md +6 -0
  13. data/docs/Checkout.md +11 -0
  14. data/docs/CheckoutsApi.md +76 -33
  15. data/docs/CheckoutsIndex.md +6 -0
  16. data/docs/EndsAt.md +6 -0
  17. data/docs/Invoice.md +15 -0
  18. data/docs/InvoicesApi.md +62 -124
  19. data/docs/InvoicesIndex.md +6 -0
  20. data/docs/Message.md +11 -0
  21. data/docs/MessagesApi.md +122 -31
  22. data/docs/MessagesSent.md +6 -0
  23. data/docs/Payout.md +12 -0
  24. data/docs/PayoutsApi.md +42 -83
  25. data/docs/PayoutsIndex.md +6 -0
  26. data/docs/Rental.md +14 -0
  27. data/docs/RentalIdMessagesJsonBody.md +7 -0
  28. data/docs/RentalInvoicesIndex.md +6 -0
  29. data/docs/RentalMessagesIndex.md +6 -0
  30. data/docs/RentalsApi.md +54 -203
  31. data/docs/RentalsBooked.md +6 -0
  32. data/docs/RentalsCanceled.md +6 -0
  33. data/docs/RentalsCarCheckedIn.md +6 -0
  34. data/docs/RentalsCarCheckedOut.md +6 -0
  35. data/docs/RentalsCarSwitched.md +6 -0
  36. data/docs/RentalsIndex.md +6 -0
  37. data/docs/RentalsTimesChanged.md +6 -0
  38. data/docs/StartsAt.md +6 -0
  39. data/docs/UnavailabilitiesApi.md +100 -68
  40. data/docs/UnavailabilitiesCreated.md +6 -0
  41. data/docs/UnavailabilitiesDeleted.md +6 -0
  42. data/docs/UnavailabilitiesIndex.md +6 -0
  43. data/docs/Unavailability.md +10 -0
  44. data/docs/User.md +19 -0
  45. data/docs/UsersApi.md +27 -41
  46. data/docs/UsersUpdated.md +6 -0
  47. data/docs/Webhook.md +9 -0
  48. data/get_around_owner-1.0.0.gem +0 -0
  49. data/get_around_owner-1.0.1.gem +0 -0
  50. data/get_around_owner.gemspec +16 -3
  51. data/getaround-api.gemspec +38 -0
  52. data/git_push.sh +9 -11
  53. data/lib/{get_around_owner → getaround-api}/api/cars_api.rb +25 -41
  54. data/lib/getaround-api/api/checkins_api.rb +146 -0
  55. data/lib/getaround-api/api/checkouts_api.rb +146 -0
  56. data/lib/{get_around_owner → getaround-api}/api/invoices_api.rb +43 -66
  57. data/lib/getaround-api/api/messages_api.rb +198 -0
  58. data/lib/{get_around_owner → getaround-api}/api/payouts_api.rb +29 -45
  59. data/lib/getaround-api/api/rentals_api.rb +146 -0
  60. data/lib/getaround-api/api/unavailabilities_api.rb +208 -0
  61. data/lib/{get_around_owner/api/messages_api.rb → getaround-api/api/users_api.rb} +31 -37
  62. data/lib/{get_around_owner → getaround-api}/api_client.rb +71 -77
  63. data/lib/{get_around_owner → getaround-api}/api_error.rb +5 -6
  64. data/lib/{get_around_owner → getaround-api}/configuration.rb +13 -106
  65. data/lib/{get_around_owner/models/getaround_car.rb → getaround-api/models/car.rb} +36 -56
  66. data/lib/{get_around_owner/models/getaround_users_updated_all_of_data.rb → getaround-api/models/car_id.rb} +33 -50
  67. data/lib/{get_around_owner/models/getaround_destroy_unavailability_request.rb → getaround-api/models/car_id_unavailabilities_json_body.rb} +45 -47
  68. data/lib/{get_around_owner/models/getaround_rentals_booked_all_of_data.rb → getaround-api/models/cars_index.rb} +33 -50
  69. data/lib/{get_around_owner/models/getaround_checkin.rb → getaround-api/models/checkin.rb} +34 -65
  70. data/lib/{get_around_owner/models/getaround_rentals_index_inner.rb → getaround-api/models/checkins_index.rb} +32 -58
  71. data/lib/{get_around_owner/models/getaround_checkout.rb → getaround-api/models/checkout.rb} +35 -70
  72. data/lib/getaround-api/models/checkouts_index.rb +197 -0
  73. data/lib/getaround-api/models/ends_at.rb +198 -0
  74. data/lib/{get_around_owner/models/getaround_invoice.rb → getaround-api/models/invoice.rb} +45 -113
  75. data/lib/getaround-api/models/invoices_index.rb +198 -0
  76. data/lib/{get_around_owner/models/getaround_message.rb → getaround-api/models/message.rb} +35 -53
  77. data/lib/getaround-api/models/messages_sent.rb +197 -0
  78. data/lib/{get_around_owner/models/getaround_payout.rb → getaround-api/models/payout.rb} +37 -101
  79. data/lib/getaround-api/models/payouts_index.rb +198 -0
  80. data/lib/{get_around_owner/models/getaround_rental.rb → getaround-api/models/rental.rb} +38 -100
  81. data/lib/{get_around_owner/models/getaround_create_messages_request.rb → getaround-api/models/rental_id_messages_json_body.rb} +31 -41
  82. data/lib/getaround-api/models/rental_invoices_index.rb +198 -0
  83. data/lib/getaround-api/models/rental_messages_index.rb +198 -0
  84. data/lib/getaround-api/models/rentals_booked.rb +197 -0
  85. data/lib/getaround-api/models/rentals_canceled.rb +197 -0
  86. data/lib/getaround-api/models/rentals_car_checked_in.rb +197 -0
  87. data/lib/getaround-api/models/rentals_car_checked_out.rb +197 -0
  88. data/lib/getaround-api/models/rentals_car_switched.rb +197 -0
  89. data/lib/getaround-api/models/rentals_index.rb +198 -0
  90. data/lib/getaround-api/models/rentals_times_changed.rb +197 -0
  91. data/lib/getaround-api/models/starts_at.rb +198 -0
  92. data/lib/{get_around_owner/models/getaround_cars_index_inner.rb → getaround-api/models/unavailabilities_created.rb} +32 -58
  93. data/lib/getaround-api/models/unavailabilities_deleted.rb +197 -0
  94. data/lib/getaround-api/models/unavailabilities_index.rb +198 -0
  95. data/lib/{get_around_owner/models/getaround_unavailabilities_created_all_of_data.rb → getaround-api/models/unavailability.rb} +51 -65
  96. data/lib/{get_around_owner/models/getaround_user.rb → getaround-api/models/user.rb} +43 -75
  97. data/lib/getaround-api/models/users_updated.rb +197 -0
  98. data/lib/{get_around_owner/models/getaround_webhook.rb → getaround-api/models/webhook.rb} +38 -47
  99. data/lib/{get_around_owner → getaround-api}/version.rb +5 -6
  100. data/lib/getaround-api.rb +81 -0
  101. data/openapi.yml +2298 -0
  102. data/spec/api/cars_api_spec.rb +13 -14
  103. data/spec/api/checkins_api_spec.rb +13 -14
  104. data/spec/api/checkouts_api_spec.rb +13 -14
  105. data/spec/api/invoices_api_spec.rb +19 -20
  106. data/spec/api/messages_api_spec.rb +14 -15
  107. data/spec/api/payouts_api_spec.rb +13 -14
  108. data/spec/api/rentals_api_spec.rb +13 -14
  109. data/spec/api/unavailabilities_api_spec.rb +14 -16
  110. data/spec/api/users_api_spec.rb +9 -10
  111. data/spec/api_client_spec.rb +225 -0
  112. data/spec/base_object_spec.rb +109 -0
  113. data/spec/{models/getaround_checkins_index_inner_spec.rb → configuration_spec.rb} +26 -21
  114. data/spec/models/{getaround_reason_spec.rb → car_id_spec.rb} +18 -14
  115. data/spec/models/{getaround_unavailabilities_deleted_all_of_data_spec.rb → car_id_unavailabilities_json_body_spec.rb} +24 -20
  116. data/spec/models/{getaround_car_spec.rb → car_spec.rb} +24 -20
  117. data/spec/models/cars_index_spec.rb +34 -0
  118. data/spec/models/{getaround_checkin_spec.rb → checkin_spec.rb} +22 -18
  119. data/spec/models/checkins_index_spec.rb +34 -0
  120. data/spec/models/{getaround_checkout_spec.rb → checkout_spec.rb} +23 -19
  121. data/spec/models/checkouts_index_spec.rb +34 -0
  122. data/spec/models/ends_at_spec.rb +34 -0
  123. data/spec/models/{getaround_invoice_spec.rb → invoice_spec.rb} +27 -31
  124. data/spec/models/invoices_index_spec.rb +34 -0
  125. data/spec/models/{getaround_message_spec.rb → message_spec.rb} +23 -19
  126. data/spec/models/messages_sent_spec.rb +34 -0
  127. data/spec/models/{getaround_payout_spec.rb → payout_spec.rb} +24 -24
  128. data/spec/models/payouts_index_spec.rb +34 -0
  129. data/spec/models/{getaround_create_messages_request_spec.rb → rental_id_messages_json_body_spec.rb} +19 -15
  130. data/spec/models/{getaround_rentals_index_inner_spec.rb → rental_invoices_index_spec.rb} +16 -18
  131. data/spec/models/rental_messages_index_spec.rb +34 -0
  132. data/spec/models/{getaround_rental_spec.rb → rental_spec.rb} +26 -22
  133. data/spec/models/rentals_booked_spec.rb +34 -0
  134. data/spec/models/rentals_canceled_spec.rb +34 -0
  135. data/spec/models/rentals_car_checked_in_spec.rb +34 -0
  136. data/spec/models/rentals_car_checked_out_spec.rb +34 -0
  137. data/spec/models/rentals_car_switched_spec.rb +34 -0
  138. data/spec/models/rentals_index_spec.rb +34 -0
  139. data/spec/models/rentals_times_changed_spec.rb +34 -0
  140. data/spec/models/starts_at_spec.rb +34 -0
  141. data/spec/models/{getaround_cars_index_inner_spec.rb → unavailabilities_created_spec.rb} +16 -18
  142. data/spec/models/{getaround_payouts_index_inner_spec.rb → unavailabilities_deleted_spec.rb} +16 -18
  143. data/spec/models/unavailabilities_index_spec.rb +34 -0
  144. data/spec/models/{getaround_unavailabilities_created_all_of_data_spec.rb → unavailability_spec.rb} +22 -18
  145. data/spec/models/{getaround_user_spec.rb → user_spec.rb} +31 -27
  146. data/spec/models/users_updated_spec.rb +34 -0
  147. data/spec/models/{getaround_webhook_spec.rb → webhook_spec.rb} +21 -17
  148. data/spec/spec_helper.rb +5 -6
  149. metadata +237 -132
  150. data/lib/get_around_owner/api/checkins_api.rb +0 -82
  151. data/lib/get_around_owner/api/checkouts_api.rb +0 -82
  152. data/lib/get_around_owner/api/rentals_api.rb +0 -262
  153. data/lib/get_around_owner/api/unavailabilities_api.rb +0 -142
  154. data/lib/get_around_owner/api/users_api.rb +0 -82
  155. data/lib/get_around_owner/models/getaround_checkins_index_inner.rb +0 -222
  156. data/lib/get_around_owner/models/getaround_create_unavailabilities_request.rb +0 -283
  157. data/lib/get_around_owner/models/getaround_invoice_charges_inner.rb +0 -225
  158. data/lib/get_around_owner/models/getaround_invoices_index_inner.rb +0 -223
  159. data/lib/get_around_owner/models/getaround_messages_sent.rb +0 -257
  160. data/lib/get_around_owner/models/getaround_messages_sent_all_of_data.rb +0 -225
  161. data/lib/get_around_owner/models/getaround_payout_invoices_inner.rb +0 -223
  162. data/lib/get_around_owner/models/getaround_payouts_index_inner.rb +0 -223
  163. data/lib/get_around_owner/models/getaround_reason.rb +0 -45
  164. data/lib/get_around_owner/models/getaround_rental_invoices_index_inner.rb +0 -223
  165. data/lib/get_around_owner/models/getaround_rental_messages_index_inner.rb +0 -223
  166. data/lib/get_around_owner/models/getaround_rentals_booked.rb +0 -257
  167. data/lib/get_around_owner/models/getaround_rentals_canceled.rb +0 -257
  168. data/lib/get_around_owner/models/getaround_rentals_car_checked_in.rb +0 -257
  169. data/lib/get_around_owner/models/getaround_rentals_car_checked_out.rb +0 -257
  170. data/lib/get_around_owner/models/getaround_rentals_car_switched.rb +0 -257
  171. data/lib/get_around_owner/models/getaround_rentals_times_changed.rb +0 -257
  172. data/lib/get_around_owner/models/getaround_unavailabilities_created.rb +0 -257
  173. data/lib/get_around_owner/models/getaround_unavailabilities_deleted.rb +0 -257
  174. data/lib/get_around_owner/models/getaround_unavailabilities_deleted_all_of_data.rb +0 -235
  175. data/lib/get_around_owner/models/getaround_unavailability.rb +0 -302
  176. data/lib/get_around_owner/models/getaround_users_updated.rb +0 -257
  177. data/lib/get_around_owner.rb +0 -86
  178. data/spec/models/getaround_create_unavailabilities_request_spec.rb +0 -52
  179. data/spec/models/getaround_destroy_unavailability_request_spec.rb +0 -42
  180. data/spec/models/getaround_invoice_charges_inner_spec.rb +0 -42
  181. data/spec/models/getaround_invoices_index_inner_spec.rb +0 -36
  182. data/spec/models/getaround_messages_sent_all_of_data_spec.rb +0 -42
  183. data/spec/models/getaround_messages_sent_spec.rb +0 -48
  184. data/spec/models/getaround_payout_invoices_inner_spec.rb +0 -36
  185. data/spec/models/getaround_rental_invoices_index_inner_spec.rb +0 -36
  186. data/spec/models/getaround_rental_messages_index_inner_spec.rb +0 -36
  187. data/spec/models/getaround_rentals_booked_all_of_data_spec.rb +0 -36
  188. data/spec/models/getaround_rentals_booked_spec.rb +0 -48
  189. data/spec/models/getaround_rentals_canceled_spec.rb +0 -48
  190. data/spec/models/getaround_rentals_car_checked_in_spec.rb +0 -48
  191. data/spec/models/getaround_rentals_car_checked_out_spec.rb +0 -48
  192. data/spec/models/getaround_rentals_car_switched_spec.rb +0 -48
  193. data/spec/models/getaround_rentals_times_changed_spec.rb +0 -48
  194. data/spec/models/getaround_unavailabilities_created_spec.rb +0 -48
  195. data/spec/models/getaround_unavailabilities_deleted_spec.rb +0 -48
  196. data/spec/models/getaround_unavailability_spec.rb +0 -58
  197. data/spec/models/getaround_users_updated_all_of_data_spec.rb +0 -36
  198. data/spec/models/getaround_users_updated_spec.rb +0 -48
data/docs/InvoicesApi.md CHANGED
@@ -2,71 +2,49 @@
2
2
 
3
3
  All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
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 |
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
10
 
11
-
12
- ## get_invoice_by_id
13
-
14
- > <GetaroundInvoice> get_invoice_by_id(id)
11
+ # **get_invoice_by_id**
12
+ > Invoice get_invoice_by_id(id)
15
13
 
16
14
  Find an invoice by ID
17
15
 
18
16
  Find an invoice by ID
19
17
 
20
- ### Examples
21
-
18
+ ### Example
22
19
  ```ruby
23
- require 'time'
24
- require 'get_around_owner'
20
+ # load the gem
21
+ require 'getaround-api'
25
22
  # setup authorization
26
23
  GetAroundOwner.configure do |config|
27
- # Configure Bearer authorization: bearerAuth
28
- config.access_token = 'YOUR_BEARER_TOKEN'
29
24
  end
30
25
 
31
26
  api_instance = GetAroundOwner::InvoicesApi.new
32
- id = '1' # String | ID of invoice to return
27
+ id = GetAroundOwner::null.new # | ID of invoice to return
28
+
33
29
 
34
30
  begin
35
- # Find an invoice by ID
31
+ #Find an invoice by ID
36
32
  result = api_instance.get_invoice_by_id(id)
37
33
  p result
38
34
  rescue GetAroundOwner::ApiError => e
39
- puts "Error when calling InvoicesApi->get_invoice_by_id: #{e}"
40
- end
41
- ```
42
-
43
- #### Using the get_invoice_by_id_with_http_info variant
44
-
45
- This returns an Array which contains the response data, status code and headers.
46
-
47
- > <Array(<GetaroundInvoice>, Integer, Hash)> get_invoice_by_id_with_http_info(id)
48
-
49
- ```ruby
50
- begin
51
- # Find an invoice by ID
52
- data, status_code, headers = api_instance.get_invoice_by_id_with_http_info(id)
53
- p status_code # => 2xx
54
- p headers # => { ... }
55
- p data # => <GetaroundInvoice>
56
- rescue GetAroundOwner::ApiError => e
57
- puts "Error when calling InvoicesApi->get_invoice_by_id_with_http_info: #{e}"
35
+ puts "Exception when calling InvoicesApi->get_invoice_by_id: #{e}"
58
36
  end
59
37
  ```
60
38
 
61
39
  ### Parameters
62
40
 
63
- | Name | Type | Description | Notes |
64
- | ---- | ---- | ----------- | ----- |
65
- | **id** | **String** | ID of invoice to return | |
41
+ Name | Type | Description | Notes
42
+ ------------- | ------------- | ------------- | -------------
43
+ **id** | [****](.md)| ID of invoice to return |
66
44
 
67
45
  ### Return type
68
46
 
69
- [**GetaroundInvoice**](GetaroundInvoice.md)
47
+ [**Invoice**](Invoice.md)
70
48
 
71
49
  ### Authorization
72
50
 
@@ -74,76 +52,55 @@ end
74
52
 
75
53
  ### HTTP request headers
76
54
 
77
- - **Content-Type**: Not defined
78
- - **Accept**: application/json
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: application/json
79
57
 
80
58
 
81
- ## get_invoices
82
59
 
83
- > <Array<GetaroundInvoicesIndexInner>> get_invoices(opts)
60
+ # **get_invoices**
61
+ > InvoicesIndex get_invoices(opts)
84
62
 
85
63
  Find invoices emitted between dates
86
64
 
87
65
  Find invoices emitted between dates
88
66
 
89
- ### Examples
90
-
67
+ ### Example
91
68
  ```ruby
92
- require 'time'
93
- require 'get_around_owner'
69
+ # load the gem
70
+ require 'getaround-api'
94
71
  # setup authorization
95
72
  GetAroundOwner.configure do |config|
96
- # Configure Bearer authorization: bearerAuth
97
- config.access_token = 'YOUR_BEARER_TOKEN'
98
73
  end
99
74
 
100
75
  api_instance = GetAroundOwner::InvoicesApi.new
101
- opts = {
102
- start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
103
- end_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html)
104
- page: 'page_example', # String | Page number
105
- per_page: 'per_page_example' # String | Page size
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
106
81
  }
107
82
 
108
83
  begin
109
- # Find invoices emitted between dates
84
+ #Find invoices emitted between dates
110
85
  result = api_instance.get_invoices(opts)
111
86
  p result
112
87
  rescue GetAroundOwner::ApiError => e
113
- puts "Error when calling InvoicesApi->get_invoices: #{e}"
114
- end
115
- ```
116
-
117
- #### Using the get_invoices_with_http_info variant
118
-
119
- This returns an Array which contains the response data, status code and headers.
120
-
121
- > <Array(<Array<GetaroundInvoicesIndexInner>>, Integer, Hash)> get_invoices_with_http_info(opts)
122
-
123
- ```ruby
124
- begin
125
- # Find invoices emitted between dates
126
- data, status_code, headers = api_instance.get_invoices_with_http_info(opts)
127
- p status_code # => 2xx
128
- p headers # => { ... }
129
- p data # => <Array<GetaroundInvoicesIndexInner>>
130
- rescue GetAroundOwner::ApiError => e
131
- puts "Error when calling InvoicesApi->get_invoices_with_http_info: #{e}"
88
+ puts "Exception when calling InvoicesApi->get_invoices: #{e}"
132
89
  end
133
90
  ```
134
91
 
135
92
  ### Parameters
136
93
 
137
- | Name | Type | Description | Notes |
138
- | ---- | ---- | ----------- | ----- |
139
- | **start_date** | **Time** | Start date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | [optional] |
140
- | **end_date** | **Time** | End date and time in [ISO8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) | [optional] |
141
- | **page** | **String** | Page number | [optional] |
142
- | **per_page** | **String** | Page size | [optional][default to &#39;30&#39;] |
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]
143
100
 
144
101
  ### Return type
145
102
 
146
- [**Array&lt;GetaroundInvoicesIndexInner&gt;**](GetaroundInvoicesIndexInner.md)
103
+ [**InvoicesIndex**](InvoicesIndex.md)
147
104
 
148
105
  ### Authorization
149
106
 
@@ -151,74 +108,53 @@ end
151
108
 
152
109
  ### HTTP request headers
153
110
 
154
- - **Content-Type**: Not defined
155
- - **Accept**: application/json
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
156
113
 
157
114
 
158
- ## get_invoices_for_rental
159
115
 
160
- > <Array<GetaroundRentalInvoicesIndexInner>> get_invoices_for_rental(rental_id, opts)
116
+ # **get_invoices_for_rental**
117
+ > RentalInvoicesIndex get_invoices_for_rental(rental_id, opts)
161
118
 
162
119
  Find invoices associated to a rental
163
120
 
164
121
  Find invoices associated to a rental
165
122
 
166
- ### Examples
167
-
123
+ ### Example
168
124
  ```ruby
169
- require 'time'
170
- require 'get_around_owner'
125
+ # load the gem
126
+ require 'getaround-api'
171
127
  # setup authorization
172
128
  GetAroundOwner.configure do |config|
173
- # Configure Bearer authorization: bearerAuth
174
- config.access_token = 'YOUR_BEARER_TOKEN'
175
129
  end
176
130
 
177
131
  api_instance = GetAroundOwner::InvoicesApi.new
178
- rental_id = '1' # String | ID of rental
179
- opts = {
180
- page: 'page_example', # String | Page number
181
- per_page: 'per_page_example' # String | Page size
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
182
136
  }
183
137
 
184
138
  begin
185
- # Find invoices associated to a rental
139
+ #Find invoices associated to a rental
186
140
  result = api_instance.get_invoices_for_rental(rental_id, opts)
187
141
  p result
188
142
  rescue GetAroundOwner::ApiError => e
189
- puts "Error when calling InvoicesApi->get_invoices_for_rental: #{e}"
190
- end
191
- ```
192
-
193
- #### Using the get_invoices_for_rental_with_http_info variant
194
-
195
- This returns an Array which contains the response data, status code and headers.
196
-
197
- > <Array(<Array<GetaroundRentalInvoicesIndexInner>>, Integer, Hash)> get_invoices_for_rental_with_http_info(rental_id, opts)
198
-
199
- ```ruby
200
- begin
201
- # Find invoices associated to a rental
202
- data, status_code, headers = api_instance.get_invoices_for_rental_with_http_info(rental_id, opts)
203
- p status_code # => 2xx
204
- p headers # => { ... }
205
- p data # => <Array<GetaroundRentalInvoicesIndexInner>>
206
- rescue GetAroundOwner::ApiError => e
207
- puts "Error when calling InvoicesApi->get_invoices_for_rental_with_http_info: #{e}"
143
+ puts "Exception when calling InvoicesApi->get_invoices_for_rental: #{e}"
208
144
  end
209
145
  ```
210
146
 
211
147
  ### Parameters
212
148
 
213
- | Name | Type | Description | Notes |
214
- | ---- | ---- | ----------- | ----- |
215
- | **rental_id** | **String** | ID of rental | |
216
- | **page** | **String** | Page number | [optional] |
217
- | **per_page** | **String** | Page size | [optional][default to &#39;30&#39;] |
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]
218
154
 
219
155
  ### Return type
220
156
 
221
- [**Array&lt;GetaroundRentalInvoicesIndexInner&gt;**](GetaroundRentalInvoicesIndexInner.md)
157
+ [**RentalInvoicesIndex**](RentalInvoicesIndex.md)
222
158
 
223
159
  ### Authorization
224
160
 
@@ -226,6 +162,8 @@ end
226
162
 
227
163
  ### HTTP request headers
228
164
 
229
- - **Content-Type**: Not defined
230
- - **Accept**: application/json
165
+ - **Content-Type**: Not defined
166
+ - **Accept**: application/json
167
+
168
+
231
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
+
data/docs/MessagesApi.md CHANGED
@@ -2,70 +2,161 @@
2
2
 
3
3
  All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
4
 
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**sent_message_post**](MessagesApi.md#sent_message_post) | **POST** /sentMessage | New message sent |
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
8
10
 
11
+ # **create_messages**
12
+ > Message create_messages(rental_id, opts)
9
13
 
10
- ## sent_message_post
14
+ Create Message associated to a rental
11
15
 
12
- > sent_message_post(opts)
16
+ Create Message associated to a rental
13
17
 
14
- New message sent
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)
15
65
 
16
- ### Examples
66
+ Find a message by ID associated to a rental
17
67
 
68
+ Find a message by ID associated to a rental
69
+
70
+ ### Example
18
71
  ```ruby
19
- require 'time'
20
- require 'get_around_owner'
72
+ # load the gem
73
+ require 'getaround-api'
74
+ # setup authorization
75
+ GetAroundOwner.configure do |config|
76
+ end
21
77
 
22
78
  api_instance = GetAroundOwner::MessagesApi.new
23
- opts = {
24
- getaround_messages_sent: # GetaroundMessagesSent | This event is triggered when a new message has been sent for one of your rentals
25
- }
79
+ rental_id = GetAroundOwner::null.new # | ID of rental
80
+ id = GetAroundOwner::null.new # | ID of message to return
81
+
26
82
 
27
83
  begin
28
- # New message sent
29
- api_instance.sent_message_post(opts)
84
+ #Find a message by ID associated to a rental
85
+ result = api_instance.get_message_by_id(rental_id, id)
86
+ p result
30
87
  rescue GetAroundOwner::ApiError => e
31
- puts "Error when calling MessagesApi->sent_message_post: #{e}"
88
+ puts "Exception when calling MessagesApi->get_message_by_id: #{e}"
32
89
  end
33
90
  ```
34
91
 
35
- #### Using the sent_message_post_with_http_info variant
92
+ ### Parameters
93
+
94
+ Name | Type | Description | Notes
95
+ ------------- | ------------- | ------------- | -------------
96
+ **rental_id** | [****](.md)| ID of rental |
97
+ **id** | [****](.md)| ID of message to return |
36
98
 
37
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
99
+ ### Return type
100
+
101
+ [**Message**](Message.md)
102
+
103
+ ### Authorization
104
+
105
+ [bearerAuth](../README.md#bearerAuth)
106
+
107
+ ### HTTP request headers
38
108
 
39
- > <Array(nil, Integer, Hash)> sent_message_post_with_http_info(opts)
109
+ - **Content-Type**: Not defined
110
+ - **Accept**: application/json
40
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
41
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
+
42
133
  begin
43
- # New message sent
44
- data, status_code, headers = api_instance.sent_message_post_with_http_info(opts)
45
- p status_code # => 2xx
46
- p headers # => { ... }
47
- p data # => nil
134
+ #Find messages associated to a rental
135
+ result = api_instance.get_messages_for_rental(rental_id)
136
+ p result
48
137
  rescue GetAroundOwner::ApiError => e
49
- puts "Error when calling MessagesApi->sent_message_post_with_http_info: #{e}"
138
+ puts "Exception when calling MessagesApi->get_messages_for_rental: #{e}"
50
139
  end
51
140
  ```
52
141
 
53
142
  ### Parameters
54
143
 
55
- | Name | Type | Description | Notes |
56
- | ---- | ---- | ----------- | ----- |
57
- | **getaround_messages_sent** | [**GetaroundMessagesSent**](GetaroundMessagesSent.md) | This event is triggered when a new message has been sent for one of your rentals | [optional] |
144
+ Name | Type | Description | Notes
145
+ ------------- | ------------- | ------------- | -------------
146
+ **rental_id** | [****](.md)| ID of rental |
58
147
 
59
148
  ### Return type
60
149
 
61
- nil (empty response body)
150
+ [**RentalMessagesIndex**](RentalMessagesIndex.md)
62
151
 
63
152
  ### Authorization
64
153
 
65
- No authorization required
154
+ [bearerAuth](../README.md#bearerAuth)
66
155
 
67
156
  ### HTTP request headers
68
157
 
69
- - **Content-Type**: application/json
70
- - **Accept**: Not defined
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: application/json
160
+
161
+
71
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
+