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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b59c5dbbbb4bc6dfdd3a9805c96198bf6ffa1a5bcee2522aa36462ae0b843d72
4
- data.tar.gz: b4710832175fb2997ed5ceb845ddd4b0888786fe7c674270492240341c066152
3
+ metadata.gz: 792e4140c8dacea319ea545d38c8eb9335aa951803ba163f75617d3bc6947c4e
4
+ data.tar.gz: 1cc012510bc5b9e4c84ddc30605f7da3cc2328bea3c13ea0cce557f5d82b1dd0
5
5
  SHA512:
6
- metadata.gz: 9de10fe9f0b86bcc35b447549aa1b6542b7c0d429e582c4d1ca7bf16656ecb3fc79720663c767c2017a01ea18830115e7d38a0ff0b85cd7538a6a28f14e0b04b
7
- data.tar.gz: e84765ae551e6393bbc4500a1e2805d5424e68599f9de2feeba6e74017bc9bb91db575a76ab84d02bc22dbcd6a539c2bd08b6a3fda563f949a9340afd963bd8c
6
+ metadata.gz: 3e390768f15a21ef08947a353ccfe90a41188e8c8870c605726c7c5903b21cab270797a0918904b15c1ae1a07a0fa2cffba83852dfb82581b9164ebc8cf51ead
7
+ data.tar.gz: 4209c09c42efab18bd5df2d22a1ce222a7c5e212f8d4339ebb5cc44d74138a1b2428de0dbde4def71575ab8109598d6c5f71418f065e4a2afbcb0d8320d1225c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- approveapi_swagger (1.0.2)
4
+ approveapi_swagger (1.0.3)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
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.0
10
- - Package version: 1.0.2
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.2.gem
26
+ gem install ./approveapi_swagger-1.0.3.gem
27
27
  ```
28
- (for development, run `gem install --dev ./approveapi_swagger-1.0.2.gem` to install the development dependencies)
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.2'
34
+ gem 'approveapi_swagger', '~> 1.0.3'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  #The simple API to request a user's approval on anything via email + sms.
7
7
 
8
- OpenAPI spec version: 1.0.0
8
+ OpenAPI spec version: 1.0.1
9
9
  Contact: dev@approveapi.com
10
10
  Generated by: https://openapi-generator.tech
11
11
  OpenAPI Generator version: 4.0.0-SNAPSHOT
@@ -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. Defaults to 'Reject'. | [optional]
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.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
@@ -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.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
@@ -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.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
@@ -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.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
@@ -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.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
@@ -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.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. Defaults to 'Reject'.
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.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
@@ -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.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
@@ -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.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
@@ -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.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
@@ -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.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
@@ -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.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.2'
14
+ VERSION = '1.0.3'
15
15
  end
@@ -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.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
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.2
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-18 00:00:00.000000000 Z
11
+ date: 2019-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus