get_around_owner 1.0.0 → 1.0.1

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/get_around_owner/version.rb +2 -2
  3. metadata +2 -53
  4. data/Gemfile +0 -9
  5. data/Rakefile +0 -10
  6. data/docs/CarsApi.md +0 -151
  7. data/docs/CheckinsApi.md +0 -71
  8. data/docs/CheckoutsApi.md +0 -71
  9. data/docs/GetaroundCar.md +0 -28
  10. data/docs/GetaroundCarsIndexInner.md +0 -18
  11. data/docs/GetaroundCheckin.md +0 -24
  12. data/docs/GetaroundCheckinsIndexInner.md +0 -18
  13. data/docs/GetaroundCheckout.md +0 -26
  14. data/docs/GetaroundCreateMessagesRequest.md +0 -18
  15. data/docs/GetaroundCreateUnavailabilitiesRequest.md +0 -22
  16. data/docs/GetaroundDestroyUnavailabilityRequest.md +0 -20
  17. data/docs/GetaroundInvoice.md +0 -34
  18. data/docs/GetaroundInvoiceChargesInner.md +0 -20
  19. data/docs/GetaroundInvoicesIndexInner.md +0 -18
  20. data/docs/GetaroundMessage.md +0 -26
  21. data/docs/GetaroundMessagesSent.md +0 -22
  22. data/docs/GetaroundMessagesSentAllOfData.md +0 -20
  23. data/docs/GetaroundPayout.md +0 -28
  24. data/docs/GetaroundPayoutInvoicesInner.md +0 -18
  25. data/docs/GetaroundPayoutsIndexInner.md +0 -18
  26. data/docs/GetaroundReason.md +0 -15
  27. data/docs/GetaroundRental.md +0 -32
  28. data/docs/GetaroundRentalInvoicesIndexInner.md +0 -18
  29. data/docs/GetaroundRentalMessagesIndexInner.md +0 -18
  30. data/docs/GetaroundRentalsBooked.md +0 -22
  31. data/docs/GetaroundRentalsBookedAllOfData.md +0 -18
  32. data/docs/GetaroundRentalsCanceled.md +0 -22
  33. data/docs/GetaroundRentalsCarCheckedIn.md +0 -22
  34. data/docs/GetaroundRentalsCarCheckedOut.md +0 -22
  35. data/docs/GetaroundRentalsCarSwitched.md +0 -22
  36. data/docs/GetaroundRentalsIndexInner.md +0 -18
  37. data/docs/GetaroundRentalsTimesChanged.md +0 -22
  38. data/docs/GetaroundUnavailabilitiesCreated.md +0 -22
  39. data/docs/GetaroundUnavailabilitiesCreatedAllOfData.md +0 -24
  40. data/docs/GetaroundUnavailabilitiesDeleted.md +0 -22
  41. data/docs/GetaroundUnavailabilitiesDeletedAllOfData.md +0 -22
  42. data/docs/GetaroundUnavailability.md +0 -24
  43. data/docs/GetaroundUser.md +0 -42
  44. data/docs/GetaroundUsersUpdated.md +0 -22
  45. data/docs/GetaroundUsersUpdatedAllOfData.md +0 -18
  46. data/docs/GetaroundWebhook.md +0 -22
  47. data/docs/InvoicesApi.md +0 -231
  48. data/docs/MessagesApi.md +0 -71
  49. data/docs/PayoutsApi.md +0 -155
  50. data/docs/RentalsApi.md +0 -263
  51. data/docs/UnavailabilitiesApi.md +0 -135
  52. data/docs/UsersApi.md +0 -71
  53. data/get_around_owner.gemspec +0 -26
  54. data/git_push.sh +0 -57
@@ -1,135 +0,0 @@
1
- # GetAroundOwner::UnavailabilitiesApi
2
-
3
- All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**created_unavailability_post**](UnavailabilitiesApi.md#created_unavailability_post) | **POST** /createdUnavailability | Unavailability created on one of your cars |
8
- | [**deleted_unavailability_post**](UnavailabilitiesApi.md#deleted_unavailability_post) | **POST** /deletedUnavailability | Unavailabilities deleted on one of your cars |
9
-
10
-
11
- ## created_unavailability_post
12
-
13
- > created_unavailability_post(opts)
14
-
15
- Unavailability created on one of your cars
16
-
17
- ### Examples
18
-
19
- ```ruby
20
- require 'time'
21
- require 'get_around_owner'
22
-
23
- api_instance = GetAroundOwner::UnavailabilitiesApi.new
24
- opts = {
25
- getaround_unavailabilities_created: # GetaroundUnavailabilitiesCreated | This event is triggered whenever an unavailability is created (through the API or directly in the app/website). It shows the unavailability that has just been created, with the same timestamps as those entered by the user. It does not show the changes of other potential overlapping unavailabilities. For example: if an unavailability was already set between June 10 and June 20, and if the user creates a new one between June 18 and June 22, this webhook will only send information about the newly created June 18 - June 22 unavailability. It will not show that, under the hood, the unavailability from June 10 to June 20 has be deleted, and that a new unavailability from June 10 to June 22 has been created.
26
- }
27
-
28
- begin
29
- # Unavailability created on one of your cars
30
- api_instance.created_unavailability_post(opts)
31
- rescue GetAroundOwner::ApiError => e
32
- puts "Error when calling UnavailabilitiesApi->created_unavailability_post: #{e}"
33
- end
34
- ```
35
-
36
- #### Using the created_unavailability_post_with_http_info variant
37
-
38
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
39
-
40
- > <Array(nil, Integer, Hash)> created_unavailability_post_with_http_info(opts)
41
-
42
- ```ruby
43
- begin
44
- # Unavailability created on one of your cars
45
- data, status_code, headers = api_instance.created_unavailability_post_with_http_info(opts)
46
- p status_code # => 2xx
47
- p headers # => { ... }
48
- p data # => nil
49
- rescue GetAroundOwner::ApiError => e
50
- puts "Error when calling UnavailabilitiesApi->created_unavailability_post_with_http_info: #{e}"
51
- end
52
- ```
53
-
54
- ### Parameters
55
-
56
- | Name | Type | Description | Notes |
57
- | ---- | ---- | ----------- | ----- |
58
- | **getaround_unavailabilities_created** | [**GetaroundUnavailabilitiesCreated**](GetaroundUnavailabilitiesCreated.md) | This event is triggered whenever an unavailability is created (through the API or directly in the app/website). It shows the unavailability that has just been created, with the same timestamps as those entered by the user. It does not show the changes of other potential overlapping unavailabilities. For example: if an unavailability was already set between June 10 and June 20, and if the user creates a new one between June 18 and June 22, this webhook will only send information about the newly created June 18 - June 22 unavailability. It will not show that, under the hood, the unavailability from June 10 to June 20 has be deleted, and that a new unavailability from June 10 to June 22 has been created. | [optional] |
59
-
60
- ### Return type
61
-
62
- nil (empty response body)
63
-
64
- ### Authorization
65
-
66
- No authorization required
67
-
68
- ### HTTP request headers
69
-
70
- - **Content-Type**: application/json
71
- - **Accept**: Not defined
72
-
73
-
74
- ## deleted_unavailability_post
75
-
76
- > deleted_unavailability_post(opts)
77
-
78
- Unavailabilities deleted on one of your cars
79
-
80
- ### Examples
81
-
82
- ```ruby
83
- require 'time'
84
- require 'get_around_owner'
85
-
86
- api_instance = GetAroundOwner::UnavailabilitiesApi.new
87
- opts = {
88
- getaround_unavailabilities_deleted: # GetaroundUnavailabilitiesDeleted | This event is triggered whenever an unavailability is deleted (through the API or directly in the app/website). It shows the unavailability that has just been deleted, with the same timestamps as those entered by the user. It does not show the changes of other potential overlapping unavailabilities. For example: if an unavailability was already set between June 10 and June 20, and if the user deletes an unavailability between June 18 and June 22 (to set their car as available between this dates), this webhook will only send information about the newly deleted June 18 - June 22 unavailability. It will not show that, under the hood, the unavailability from June 10 to June 20 has be deleted, and that a new unavailability from June 10 to June 18 has been created.
89
- }
90
-
91
- begin
92
- # Unavailabilities deleted on one of your cars
93
- api_instance.deleted_unavailability_post(opts)
94
- rescue GetAroundOwner::ApiError => e
95
- puts "Error when calling UnavailabilitiesApi->deleted_unavailability_post: #{e}"
96
- end
97
- ```
98
-
99
- #### Using the deleted_unavailability_post_with_http_info variant
100
-
101
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
102
-
103
- > <Array(nil, Integer, Hash)> deleted_unavailability_post_with_http_info(opts)
104
-
105
- ```ruby
106
- begin
107
- # Unavailabilities deleted on one of your cars
108
- data, status_code, headers = api_instance.deleted_unavailability_post_with_http_info(opts)
109
- p status_code # => 2xx
110
- p headers # => { ... }
111
- p data # => nil
112
- rescue GetAroundOwner::ApiError => e
113
- puts "Error when calling UnavailabilitiesApi->deleted_unavailability_post_with_http_info: #{e}"
114
- end
115
- ```
116
-
117
- ### Parameters
118
-
119
- | Name | Type | Description | Notes |
120
- | ---- | ---- | ----------- | ----- |
121
- | **getaround_unavailabilities_deleted** | [**GetaroundUnavailabilitiesDeleted**](GetaroundUnavailabilitiesDeleted.md) | This event is triggered whenever an unavailability is deleted (through the API or directly in the app/website). It shows the unavailability that has just been deleted, with the same timestamps as those entered by the user. It does not show the changes of other potential overlapping unavailabilities. For example: if an unavailability was already set between June 10 and June 20, and if the user deletes an unavailability between June 18 and June 22 (to set their car as available between this dates), this webhook will only send information about the newly deleted June 18 - June 22 unavailability. It will not show that, under the hood, the unavailability from June 10 to June 20 has be deleted, and that a new unavailability from June 10 to June 18 has been created. | [optional] |
122
-
123
- ### Return type
124
-
125
- nil (empty response body)
126
-
127
- ### Authorization
128
-
129
- No authorization required
130
-
131
- ### HTTP request headers
132
-
133
- - **Content-Type**: application/json
134
- - **Accept**: Not defined
135
-
data/docs/UsersApi.md DELETED
@@ -1,71 +0,0 @@
1
- # GetAroundOwner::UsersApi
2
-
3
- All URIs are relative to *https://api-eu.getaround.com/owner/v1*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**updated_user_post**](UsersApi.md#updated_user_post) | **POST** /updatedUser | User updated his profile information |
8
-
9
-
10
- ## updated_user_post
11
-
12
- > updated_user_post(opts)
13
-
14
- User updated his profile information
15
-
16
- ### Examples
17
-
18
- ```ruby
19
- require 'time'
20
- require 'get_around_owner'
21
-
22
- api_instance = GetAroundOwner::UsersApi.new
23
- opts = {
24
- getaround_users_updated: # GetaroundUsersUpdated | This event is triggered when a user updates his profile information (You will only receive this event on users with a booked rental or a started rental).
25
- }
26
-
27
- begin
28
- # User updated his profile information
29
- api_instance.updated_user_post(opts)
30
- rescue GetAroundOwner::ApiError => e
31
- puts "Error when calling UsersApi->updated_user_post: #{e}"
32
- end
33
- ```
34
-
35
- #### Using the updated_user_post_with_http_info variant
36
-
37
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
38
-
39
- > <Array(nil, Integer, Hash)> updated_user_post_with_http_info(opts)
40
-
41
- ```ruby
42
- begin
43
- # User updated his profile information
44
- data, status_code, headers = api_instance.updated_user_post_with_http_info(opts)
45
- p status_code # => 2xx
46
- p headers # => { ... }
47
- p data # => nil
48
- rescue GetAroundOwner::ApiError => e
49
- puts "Error when calling UsersApi->updated_user_post_with_http_info: #{e}"
50
- end
51
- ```
52
-
53
- ### Parameters
54
-
55
- | Name | Type | Description | Notes |
56
- | ---- | ---- | ----------- | ----- |
57
- | **getaround_users_updated** | [**GetaroundUsersUpdated**](GetaroundUsersUpdated.md) | This event is triggered when a user updates his profile information (You will only receive this event on users with a booked rental or a started rental). | [optional] |
58
-
59
- ### Return type
60
-
61
- nil (empty response body)
62
-
63
- ### Authorization
64
-
65
- No authorization required
66
-
67
- ### HTTP request headers
68
-
69
- - **Content-Type**: application/json
70
- - **Accept**: Not defined
71
-
@@ -1,26 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- $:.push File.expand_path("../lib", __FILE__)
4
- require "get_around_owner/version"
5
-
6
- Gem::Specification.new do |s|
7
- s.name = "get_around_owner"
8
- s.version = GetAroundOwner::VERSION
9
- s.platform = Gem::Platform::RUBY
10
- s.authors = ["OpenAPI-Generator", "yann120"]
11
- s.homepage = "https://openapi-generator.tech"
12
- s.summary = "Getaround Owner API Ruby Gem"
13
- s.description = "Getaround Owner API Wrapper"
14
- s.license = "Unlicense"
15
- s.required_ruby_version = ">= 2.7"
16
- s.metadata = {}
17
-
18
- s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
19
-
20
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
21
-
22
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
23
- s.test_files = `find spec/*`.split("\n")
24
- s.executables = []
25
- s.require_paths = ["lib"]
26
- end
data/git_push.sh DELETED
@@ -1,57 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="GIT_USER_ID"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="GIT_REPO_ID"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=$(git remote)
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'