approveapi_swagger 1.0.2 → 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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/approveapi_swagger.gemspec +1 -1
- data/docs/CreatePromptRequest.md +3 -1
- data/lib/approveapi_swagger/api/approve_api.rb +1 -1
- data/lib/approveapi_swagger/api_client.rb +1 -1
- data/lib/approveapi_swagger/api_error.rb +1 -1
- data/lib/approveapi_swagger/configuration.rb +1 -1
- data/lib/approveapi_swagger/models/answer_metadata.rb +1 -1
- data/lib/approveapi_swagger/models/create_prompt_request.rb +23 -3
- data/lib/approveapi_swagger/models/error.rb +1 -1
- data/lib/approveapi_swagger/models/prompt.rb +1 -1
- data/lib/approveapi_swagger/models/prompt_answer.rb +1 -1
- data/lib/approveapi_swagger/models/prompt_metadata.rb +1 -1
- data/lib/approveapi_swagger/models/prompt_status.rb +1 -1
- data/lib/approveapi_swagger/version.rb +2 -2
- data/lib/approveapi_swagger.rb +1 -1
- data/pkg/approveapi_swagger-1.0.2.gem +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 792e4140c8dacea319ea545d38c8eb9335aa951803ba163f75617d3bc6947c4e
|
|
4
|
+
data.tar.gz: 1cc012510bc5b9e4c84ddc30605f7da3cc2328bea3c13ea0cce557f5d82b1dd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e390768f15a21ef08947a353ccfe90a41188e8c8870c605726c7c5903b21cab270797a0918904b15c1ae1a07a0fa2cffba83852dfb82581b9164ebc8cf51ead
|
|
7
|
+
data.tar.gz: 4209c09c42efab18bd5df2d22a1ce222a7c5e212f8d4339ebb5cc44d74138a1b2428de0dbde4def71575ab8109598d6c5f71418f065e4a2afbcb0d8320d1225c
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -6,8 +6,8 @@ The simple API to request a user's approval on anything via email + sms.
|
|
|
6
6
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
|
-
- API version: 1.0.
|
|
10
|
-
- Package version: 1.0.
|
|
9
|
+
- API version: 1.0.1
|
|
10
|
+
- Package version: 1.0.3
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
@@ -23,15 +23,15 @@ gem build approveapi_swagger.gemspec
|
|
|
23
23
|
Then either install the gem locally:
|
|
24
24
|
|
|
25
25
|
```shell
|
|
26
|
-
gem install ./approveapi_swagger-1.0.
|
|
26
|
+
gem install ./approveapi_swagger-1.0.3.gem
|
|
27
27
|
```
|
|
28
|
-
(for development, run `gem install --dev ./approveapi_swagger-1.0.
|
|
28
|
+
(for development, run `gem install --dev ./approveapi_swagger-1.0.3.gem` to install the development dependencies)
|
|
29
29
|
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
31
31
|
|
|
32
32
|
Finally add this to the Gemfile:
|
|
33
33
|
|
|
34
|
-
gem 'approveapi_swagger', '~> 1.0.
|
|
34
|
+
gem 'approveapi_swagger', '~> 1.0.3'
|
|
35
35
|
|
|
36
36
|
### Install from Git
|
|
37
37
|
|
data/approveapi_swagger.gemspec
CHANGED
data/docs/CreatePromptRequest.md
CHANGED
|
@@ -5,11 +5,13 @@ Name | Type | Description | Notes
|
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
6
|
**body** | **String** | The body of the approval request to show the user. |
|
|
7
7
|
**title** | **String** | The title of an approval request. Defaults to an empty string. | [optional]
|
|
8
|
-
**reject_text** | **String** | The reject action text.
|
|
8
|
+
**reject_text** | **String** | The reject action text. If not specified the reject button will NOT be rendered, and the user will only see an approve action button. | [optional]
|
|
9
9
|
**expires_in** | **Float** | The number of seconds until this request can no longer be answered. | [optional]
|
|
10
10
|
**long_poll** | **BOOLEAN** | If true, the request waits (long-polls) until the user responds to the prompt or more than 10 minutes pass. Defaults to false. | [optional]
|
|
11
11
|
**user** | **String** | The user to send the approval request to. Can be either an email address or a phone number. |
|
|
12
12
|
**approve_text** | **String** | The approve action text. Defaults to 'Approve'. | [optional]
|
|
13
|
+
**approve_redirect_url** | **String** | An HTTPS URL to redirect the user to if the prompt is approved. This URL is kept secret until the user is redirected to it. | [optional]
|
|
14
|
+
**reject_redirect_url** | **String** | An HTTPS URL to redirect the user to if the prompt is rejected. This URL is kept secret until the user is redirected to it. | [optional]
|
|
13
15
|
**metadata** | [**PromptMetadata**](PromptMetadata.md) | | [optional]
|
|
14
16
|
|
|
15
17
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The simple API to request a user's approval on anything via email + sms.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.1
|
|
7
7
|
Contact: dev@approveapi.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.0.0-SNAPSHOT
|
|
@@ -20,7 +20,7 @@ module ApproveAPISwagger
|
|
|
20
20
|
# The title of an approval request. Defaults to an empty string.
|
|
21
21
|
attr_accessor :title
|
|
22
22
|
|
|
23
|
-
# The reject action text.
|
|
23
|
+
# The reject action text. If not specified the reject button will NOT be rendered, and the user will only see an approve action button.
|
|
24
24
|
attr_accessor :reject_text
|
|
25
25
|
|
|
26
26
|
# The number of seconds until this request can no longer be answered.
|
|
@@ -35,6 +35,12 @@ module ApproveAPISwagger
|
|
|
35
35
|
# The approve action text. Defaults to 'Approve'.
|
|
36
36
|
attr_accessor :approve_text
|
|
37
37
|
|
|
38
|
+
# An HTTPS URL to redirect the user to if the prompt is approved. This URL is kept secret until the user is redirected to it.
|
|
39
|
+
attr_accessor :approve_redirect_url
|
|
40
|
+
|
|
41
|
+
# An HTTPS URL to redirect the user to if the prompt is rejected. This URL is kept secret until the user is redirected to it.
|
|
42
|
+
attr_accessor :reject_redirect_url
|
|
43
|
+
|
|
38
44
|
attr_accessor :metadata
|
|
39
45
|
|
|
40
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -47,6 +53,8 @@ module ApproveAPISwagger
|
|
|
47
53
|
:'long_poll' => :'long_poll',
|
|
48
54
|
:'user' => :'user',
|
|
49
55
|
:'approve_text' => :'approve_text',
|
|
56
|
+
:'approve_redirect_url' => :'approve_redirect_url',
|
|
57
|
+
:'reject_redirect_url' => :'reject_redirect_url',
|
|
50
58
|
:'metadata' => :'metadata'
|
|
51
59
|
}
|
|
52
60
|
end
|
|
@@ -61,6 +69,8 @@ module ApproveAPISwagger
|
|
|
61
69
|
:'long_poll' => :'BOOLEAN',
|
|
62
70
|
:'user' => :'String',
|
|
63
71
|
:'approve_text' => :'String',
|
|
72
|
+
:'approve_redirect_url' => :'String',
|
|
73
|
+
:'reject_redirect_url' => :'String',
|
|
64
74
|
:'metadata' => :'PromptMetadata'
|
|
65
75
|
}
|
|
66
76
|
end
|
|
@@ -101,6 +111,14 @@ module ApproveAPISwagger
|
|
|
101
111
|
self.approve_text = attributes[:'approve_text']
|
|
102
112
|
end
|
|
103
113
|
|
|
114
|
+
if attributes.has_key?(:'approve_redirect_url')
|
|
115
|
+
self.approve_redirect_url = attributes[:'approve_redirect_url']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.has_key?(:'reject_redirect_url')
|
|
119
|
+
self.reject_redirect_url = attributes[:'reject_redirect_url']
|
|
120
|
+
end
|
|
121
|
+
|
|
104
122
|
if attributes.has_key?(:'metadata')
|
|
105
123
|
self.metadata = attributes[:'metadata']
|
|
106
124
|
end
|
|
@@ -141,6 +159,8 @@ module ApproveAPISwagger
|
|
|
141
159
|
long_poll == o.long_poll &&
|
|
142
160
|
user == o.user &&
|
|
143
161
|
approve_text == o.approve_text &&
|
|
162
|
+
approve_redirect_url == o.approve_redirect_url &&
|
|
163
|
+
reject_redirect_url == o.reject_redirect_url &&
|
|
144
164
|
metadata == o.metadata
|
|
145
165
|
end
|
|
146
166
|
|
|
@@ -153,7 +173,7 @@ module ApproveAPISwagger
|
|
|
153
173
|
# Calculates hash code according to all attributes.
|
|
154
174
|
# @return [Fixnum] Hash code
|
|
155
175
|
def hash
|
|
156
|
-
[body, title, reject_text, expires_in, long_poll, user, approve_text, metadata].hash
|
|
176
|
+
[body, title, reject_text, expires_in, long_poll, user, approve_text, approve_redirect_url, reject_redirect_url, metadata].hash
|
|
157
177
|
end
|
|
158
178
|
|
|
159
179
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The simple API to request a user's approval on anything via email + sms.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.0.
|
|
6
|
+
OpenAPI spec version: 1.0.1
|
|
7
7
|
Contact: dev@approveapi.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.0.0-SNAPSHOT
|
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-SNAPSHOT
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module ApproveAPISwagger
|
|
14
|
-
VERSION = '1.0.
|
|
14
|
+
VERSION = '1.0.3'
|
|
15
15
|
end
|
data/lib/approveapi_swagger.rb
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: approveapi_swagger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ApproveAPI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-02-
|
|
11
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|