approveapi_swagger 1.0.3 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +4 -4
  4. data/docs/AnswerMetadata.md +1 -1
  5. data/docs/CreatePromptRequest.md +6 -4
  6. data/docs/Prompt.md +3 -2
  7. data/docs/PromptAnswer.md +1 -1
  8. data/docs/PromptMetadata.md +2 -2
  9. data/lib/approveapi_swagger/api/approve_api.rb +0 -1
  10. data/lib/approveapi_swagger/models/answer_metadata.rb +13 -15
  11. data/lib/approveapi_swagger/models/create_prompt_request.rb +68 -49
  12. data/lib/approveapi_swagger/models/error.rb +0 -2
  13. data/lib/approveapi_swagger/models/prompt.rb +31 -19
  14. data/lib/approveapi_swagger/models/prompt_answer.rb +16 -18
  15. data/lib/approveapi_swagger/models/prompt_metadata.rb +24 -26
  16. data/lib/approveapi_swagger/models/prompt_status.rb +0 -2
  17. data/lib/approveapi_swagger/version.rb +1 -1
  18. data/pkg/approveapi_swagger-1.0.1.gem +0 -0
  19. data/pkg/approveapi_swagger-1.0.6.gem +0 -0
  20. metadata +9 -79
  21. data/doc/ApproveAPISwagger.html +0 -185
  22. data/doc/ApproveAPISwagger/AnswerMetadata.html +0 -789
  23. data/doc/ApproveAPISwagger/ApiClient.html +0 -1032
  24. data/doc/ApproveAPISwagger/ApiError.html +0 -224
  25. data/doc/ApproveAPISwagger/ApproveApi.html +0 -501
  26. data/doc/ApproveAPISwagger/Configuration.html +0 -941
  27. data/doc/ApproveAPISwagger/CreatePromptRequest.html +0 -879
  28. data/doc/ApproveAPISwagger/Error.html +0 -754
  29. data/doc/ApproveAPISwagger/Prompt.html +0 -819
  30. data/doc/ApproveAPISwagger/PromptAnswer.html +0 -799
  31. data/doc/ApproveAPISwagger/PromptMetadata.html +0 -829
  32. data/doc/ApproveAPISwagger/PromptStatus.html +0 -754
  33. data/doc/Gemfile.html +0 -120
  34. data/doc/Gemfile_lock.html +0 -194
  35. data/doc/README_md.html +0 -225
  36. data/doc/Rakefile.html +0 -125
  37. data/doc/approveapi_swagger_gemspec.html +0 -161
  38. data/doc/created.rid +0 -39
  39. data/doc/css/fonts.css +0 -167
  40. data/doc/css/rdoc.css +0 -590
  41. data/doc/docs/AnswerMetadata_md.html +0 -123
  42. data/doc/docs/ApproveApi_md.html +0 -293
  43. data/doc/docs/CreatePromptRequest_md.html +0 -123
  44. data/doc/docs/Error_md.html +0 -123
  45. data/doc/docs/PromptAnswer_md.html +0 -123
  46. data/doc/docs/PromptMetadata_md.html +0 -123
  47. data/doc/docs/PromptStatus_md.html +0 -123
  48. data/doc/docs/Prompt_md.html +0 -123
  49. data/doc/fonts/Lato-Light.ttf +0 -0
  50. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  51. data/doc/fonts/Lato-Regular.ttf +0 -0
  52. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  53. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  54. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  55. data/doc/git_push_sh.html +0 -157
  56. data/doc/images/add.png +0 -0
  57. data/doc/images/arrow_up.png +0 -0
  58. data/doc/images/brick.png +0 -0
  59. data/doc/images/brick_link.png +0 -0
  60. data/doc/images/bug.png +0 -0
  61. data/doc/images/bullet_black.png +0 -0
  62. data/doc/images/bullet_toggle_minus.png +0 -0
  63. data/doc/images/bullet_toggle_plus.png +0 -0
  64. data/doc/images/date.png +0 -0
  65. data/doc/images/delete.png +0 -0
  66. data/doc/images/find.png +0 -0
  67. data/doc/images/loadingAnimation.gif +0 -0
  68. data/doc/images/macFFBgHack.png +0 -0
  69. data/doc/images/package.png +0 -0
  70. data/doc/images/page_green.png +0 -0
  71. data/doc/images/page_white_text.png +0 -0
  72. data/doc/images/page_white_width.png +0 -0
  73. data/doc/images/plugin.png +0 -0
  74. data/doc/images/ruby.png +0 -0
  75. data/doc/images/tag_blue.png +0 -0
  76. data/doc/images/tag_green.png +0 -0
  77. data/doc/images/transparent.png +0 -0
  78. data/doc/images/wrench.png +0 -0
  79. data/doc/images/wrench_orange.png +0 -0
  80. data/doc/images/zoom.png +0 -0
  81. data/doc/index.html +0 -141
  82. data/doc/js/darkfish.js +0 -161
  83. data/doc/js/jquery.js +0 -4
  84. data/doc/js/navigation.js +0 -141
  85. data/doc/js/navigation.js.gz +0 -0
  86. data/doc/js/search.js +0 -109
  87. data/doc/js/search_index.js +0 -1
  88. data/doc/js/search_index.js.gz +0 -0
  89. data/doc/js/searcher.js +0 -229
  90. data/doc/js/searcher.js.gz +0 -0
  91. data/doc/table_of_contents.html +0 -1036
  92. data/pkg/approveapi_swagger-1.0.2.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 792e4140c8dacea319ea545d38c8eb9335aa951803ba163f75617d3bc6947c4e
4
- data.tar.gz: 1cc012510bc5b9e4c84ddc30605f7da3cc2328bea3c13ea0cce557f5d82b1dd0
3
+ metadata.gz: 368dafbe8e4db362003ca1c824a3b328564114d174558777b23daf861ea6057f
4
+ data.tar.gz: d9855bdb2c17a40ed698dc51c1c242115703abdb5d3cbd2e83c21f84b19d3d50
5
5
  SHA512:
6
- metadata.gz: 3e390768f15a21ef08947a353ccfe90a41188e8c8870c605726c7c5903b21cab270797a0918904b15c1ae1a07a0fa2cffba83852dfb82581b9164ebc8cf51ead
7
- data.tar.gz: 4209c09c42efab18bd5df2d22a1ce222a7c5e212f8d4339ebb5cc44d74138a1b2428de0dbde4def71575ab8109598d6c5f71418f065e4a2afbcb0d8320d1225c
6
+ metadata.gz: 2c9c75e8bcca2a409a5f984901b07648be167846da437e8a4e7262062a6199aeaccc0c11c69e4467d09fcef7b3ec078ad045b76730343475b5582523a90c58fa
7
+ data.tar.gz: c00639473372ffc95a6b2afbf706e6f6772f0a816957d139df33e13a6745232b1fae0c0b20b2a729bae78d8e388bc72c67fca70ef1dfa241f9146f6ba09acff3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- approveapi_swagger (1.0.3)
4
+ approveapi_swagger (1.0.6)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
data/README.md CHANGED
@@ -7,7 +7,7 @@ The simple API to request a user's approval on anything via email + sms.
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0.1
10
- - Package version: 1.0.3
10
+ - Package version: 1.0.6
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.3.gem
26
+ gem install ./approveapi_swagger-1.0.6.gem
27
27
  ```
28
- (for development, run `gem install --dev ./approveapi_swagger-1.0.3.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./approveapi_swagger-1.0.6.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.3'
34
+ gem 'approveapi_swagger', '~> 1.0.6'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -3,8 +3,8 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **operating_system** | **String** | | [optional]
7
6
  **ip_address** | **String** | | [optional]
8
7
  **browser** | **String** | | [optional]
8
+ **operating_system** | **String** | | [optional]
9
9
 
10
10
 
@@ -3,15 +3,17 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **user** | **String** | The user to send the approval request to. Can be either an email address or a phone number. |
6
7
  **body** | **String** | The body of the approval request to show the user. |
7
8
  **title** | **String** | The title of an approval request. Defaults to an empty string. | [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
- **expires_in** | **Float** | The number of seconds until this request can no longer be answered. | [optional]
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
- **user** | **String** | The user to send the approval request to. Can be either an email address or a phone number. |
12
9
  **approve_text** | **String** | The approve action text. Defaults to 'Approve'. | [optional]
13
10
  **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]
11
+ **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]
14
12
  **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
+ **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]
14
+ **expires_in** | **Float** | The number of seconds until this request can no longer be answered. | [optional]
15
15
  **metadata** | [**PromptMetadata**](PromptMetadata.md) | | [optional]
16
+ **internal_data** | **Hash<String, String>** | | [optional]
17
+ **idempotency_key** | **String** | Allows calling `create_prompt` multiple times idempotently, such that a prompt is sent at-most once. This key should contain sufficient randomness. Idempotent requests are stored for 24 hours. After that time, the same key will create a new request. | [optional]
16
18
 
17
19
 
@@ -3,10 +3,11 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **answer** | [**PromptAnswer**](PromptAnswer.md) | | [optional]
6
+ **id** | **String** | A unique id for this prompt. |
7
7
  **sent_at** | **Float** | The unix timestamp when this prompt was sent. |
8
8
  **is_expired** | **BOOLEAN** | Whether the prompt can still be answered. |
9
- **id** | **String** | A unique id for this prompt. |
9
+ **request** | [**CreatePromptRequest**](CreatePromptRequest.md) | |
10
+ **answer** | [**PromptAnswer**](PromptAnswer.md) | | [optional]
10
11
  **metadata** | [**PromptMetadata**](PromptMetadata.md) | | [optional]
11
12
 
12
13
 
@@ -3,8 +3,8 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **time** | **Float** | The unix timestamp when the user answered the prompt. |
7
6
  **result** | **BOOLEAN** | The user's answer to whether or not they approve this prompt. |
7
+ **time** | **Float** | The unix timestamp when the user answered the prompt. |
8
8
  **metadata** | [**AnswerMetadata**](AnswerMetadata.md) | | [optional]
9
9
 
10
10
 
@@ -3,10 +3,10 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **location** | **String** | The physical location, like Oakland, CA, of the action. | [optional]
6
7
  **time** | **String** | The date/time of the action. | [optional]
7
- **operating_system** | **String** | The operating system initiating the action, i.e. Mac OS X. | [optional]
8
8
  **ip_address** | **String** | The IP address of the computer initiating the action. | [optional]
9
- **location** | **String** | The physical location, like Oakland, CA, of the action. | [optional]
10
9
  **browser** | **String** | The web browser initiating the action, i.e. Chrome. | [optional]
10
+ **operating_system** | **String** | The operating system initiating the action, i.e. Mac OS X. | [optional]
11
11
 
12
12
 
@@ -182,6 +182,5 @@ module ApproveAPISwagger
182
182
  end
183
183
  return data, status_code, headers
184
184
  end
185
-
186
185
  end
187
186
  end
@@ -14,27 +14,27 @@ require 'date'
14
14
 
15
15
  module ApproveAPISwagger
16
16
  class AnswerMetadata
17
- attr_accessor :operating_system
18
-
19
17
  attr_accessor :ip_address
20
18
 
21
19
  attr_accessor :browser
22
20
 
21
+ attr_accessor :operating_system
22
+
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
- :'operating_system' => :'operating_system',
27
26
  :'ip_address' => :'ip_address',
28
- :'browser' => :'browser'
27
+ :'browser' => :'browser',
28
+ :'operating_system' => :'operating_system'
29
29
  }
30
30
  end
31
31
 
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'operating_system' => :'String',
36
35
  :'ip_address' => :'String',
37
- :'browser' => :'String'
36
+ :'browser' => :'String',
37
+ :'operating_system' => :'String'
38
38
  }
39
39
  end
40
40
 
@@ -46,10 +46,6 @@ module ApproveAPISwagger
46
46
  # convert string to symbol for hash key
47
47
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
48
 
49
- if attributes.has_key?(:'operating_system')
50
- self.operating_system = attributes[:'operating_system']
51
- end
52
-
53
49
  if attributes.has_key?(:'ip_address')
54
50
  self.ip_address = attributes[:'ip_address']
55
51
  end
@@ -57,6 +53,10 @@ module ApproveAPISwagger
57
53
  if attributes.has_key?(:'browser')
58
54
  self.browser = attributes[:'browser']
59
55
  end
56
+
57
+ if attributes.has_key?(:'operating_system')
58
+ self.operating_system = attributes[:'operating_system']
59
+ end
60
60
  end
61
61
 
62
62
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -77,9 +77,9 @@ module ApproveAPISwagger
77
77
  def ==(o)
78
78
  return true if self.equal?(o)
79
79
  self.class == o.class &&
80
- operating_system == o.operating_system &&
81
80
  ip_address == o.ip_address &&
82
- browser == o.browser
81
+ browser == o.browser &&
82
+ operating_system == o.operating_system
83
83
  end
84
84
 
85
85
  # @see the `==` method
@@ -91,7 +91,7 @@ module ApproveAPISwagger
91
91
  # Calculates hash code according to all attributes.
92
92
  # @return [Fixnum] Hash code
93
93
  def hash
94
- [operating_system, ip_address, browser].hash
94
+ [ip_address, browser, operating_system].hash
95
95
  end
96
96
 
97
97
  # Builds the object from hash
@@ -203,7 +203,5 @@ module ApproveAPISwagger
203
203
  value
204
204
  end
205
205
  end
206
-
207
206
  end
208
-
209
207
  end
@@ -14,64 +14,73 @@ require 'date'
14
14
 
15
15
  module ApproveAPISwagger
16
16
  class CreatePromptRequest
17
+ # The user to send the approval request to. Can be either an email address or a phone number.
18
+ attr_accessor :user
19
+
17
20
  # The body of the approval request to show the user.
18
21
  attr_accessor :body
19
22
 
20
23
  # The title of an approval request. Defaults to an empty string.
21
24
  attr_accessor :title
22
25
 
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
- attr_accessor :reject_text
25
-
26
- # The number of seconds until this request can no longer be answered.
27
- attr_accessor :expires_in
28
-
29
- # If true, the request waits (long-polls) until the user responds to the prompt or more than 10 minutes pass. Defaults to false.
30
- attr_accessor :long_poll
31
-
32
- # The user to send the approval request to. Can be either an email address or a phone number.
33
- attr_accessor :user
34
-
35
26
  # The approve action text. Defaults to 'Approve'.
36
27
  attr_accessor :approve_text
37
28
 
38
29
  # 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
30
  attr_accessor :approve_redirect_url
40
31
 
32
+ # The reject action text. If not specified the reject button will NOT be rendered, and the user will only see an approve action button.
33
+ attr_accessor :reject_text
34
+
41
35
  # 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
36
  attr_accessor :reject_redirect_url
43
37
 
38
+ # If true, the request waits (long-polls) until the user responds to the prompt or more than 10 minutes pass. Defaults to false.
39
+ attr_accessor :long_poll
40
+
41
+ # The number of seconds until this request can no longer be answered.
42
+ attr_accessor :expires_in
43
+
44
44
  attr_accessor :metadata
45
45
 
46
+ attr_accessor :internal_data
47
+
48
+ # Allows calling `create_prompt` multiple times idempotently, such that a prompt is sent at-most once. This key should contain sufficient randomness. Idempotent requests are stored for 24 hours. After that time, the same key will create a new request.
49
+ attr_accessor :idempotency_key
50
+
46
51
  # Attribute mapping from ruby-style variable name to JSON key.
47
52
  def self.attribute_map
48
53
  {
54
+ :'user' => :'user',
49
55
  :'body' => :'body',
50
56
  :'title' => :'title',
51
- :'reject_text' => :'reject_text',
52
- :'expires_in' => :'expires_in',
53
- :'long_poll' => :'long_poll',
54
- :'user' => :'user',
55
57
  :'approve_text' => :'approve_text',
56
58
  :'approve_redirect_url' => :'approve_redirect_url',
59
+ :'reject_text' => :'reject_text',
57
60
  :'reject_redirect_url' => :'reject_redirect_url',
58
- :'metadata' => :'metadata'
61
+ :'long_poll' => :'long_poll',
62
+ :'expires_in' => :'expires_in',
63
+ :'metadata' => :'metadata',
64
+ :'internal_data' => :'internal_data',
65
+ :'idempotency_key' => :'idempotency_key'
59
66
  }
60
67
  end
61
68
 
62
69
  # Attribute type mapping.
63
70
  def self.openapi_types
64
71
  {
72
+ :'user' => :'String',
65
73
  :'body' => :'String',
66
74
  :'title' => :'String',
67
- :'reject_text' => :'String',
68
- :'expires_in' => :'Float',
69
- :'long_poll' => :'BOOLEAN',
70
- :'user' => :'String',
71
75
  :'approve_text' => :'String',
72
76
  :'approve_redirect_url' => :'String',
77
+ :'reject_text' => :'String',
73
78
  :'reject_redirect_url' => :'String',
74
- :'metadata' => :'PromptMetadata'
79
+ :'long_poll' => :'BOOLEAN',
80
+ :'expires_in' => :'Float',
81
+ :'metadata' => :'PromptMetadata',
82
+ :'internal_data' => :'Hash<String, String>',
83
+ :'idempotency_key' => :'String'
75
84
  }
76
85
  end
77
86
 
@@ -83,6 +92,10 @@ module ApproveAPISwagger
83
92
  # convert string to symbol for hash key
84
93
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
85
94
 
95
+ if attributes.has_key?(:'user')
96
+ self.user = attributes[:'user']
97
+ end
98
+
86
99
  if attributes.has_key?(:'body')
87
100
  self.body = attributes[:'body']
88
101
  end
@@ -91,36 +104,42 @@ module ApproveAPISwagger
91
104
  self.title = attributes[:'title']
92
105
  end
93
106
 
107
+ if attributes.has_key?(:'approve_text')
108
+ self.approve_text = attributes[:'approve_text']
109
+ end
110
+
111
+ if attributes.has_key?(:'approve_redirect_url')
112
+ self.approve_redirect_url = attributes[:'approve_redirect_url']
113
+ end
114
+
94
115
  if attributes.has_key?(:'reject_text')
95
116
  self.reject_text = attributes[:'reject_text']
96
117
  end
97
118
 
98
- if attributes.has_key?(:'expires_in')
99
- self.expires_in = attributes[:'expires_in']
119
+ if attributes.has_key?(:'reject_redirect_url')
120
+ self.reject_redirect_url = attributes[:'reject_redirect_url']
100
121
  end
101
122
 
102
123
  if attributes.has_key?(:'long_poll')
103
124
  self.long_poll = attributes[:'long_poll']
104
125
  end
105
126
 
106
- if attributes.has_key?(:'user')
107
- self.user = attributes[:'user']
108
- end
109
-
110
- if attributes.has_key?(:'approve_text')
111
- self.approve_text = attributes[:'approve_text']
127
+ if attributes.has_key?(:'expires_in')
128
+ self.expires_in = attributes[:'expires_in']
112
129
  end
113
130
 
114
- if attributes.has_key?(:'approve_redirect_url')
115
- self.approve_redirect_url = attributes[:'approve_redirect_url']
131
+ if attributes.has_key?(:'metadata')
132
+ self.metadata = attributes[:'metadata']
116
133
  end
117
134
 
118
- if attributes.has_key?(:'reject_redirect_url')
119
- self.reject_redirect_url = attributes[:'reject_redirect_url']
135
+ if attributes.has_key?(:'internal_data')
136
+ if (value = attributes[:'internal_data']).is_a?(Hash)
137
+ self.internal_data = value
138
+ end
120
139
  end
121
140
 
122
- if attributes.has_key?(:'metadata')
123
- self.metadata = attributes[:'metadata']
141
+ if attributes.has_key?(:'idempotency_key')
142
+ self.idempotency_key = attributes[:'idempotency_key']
124
143
  end
125
144
  end
126
145
 
@@ -128,22 +147,22 @@ module ApproveAPISwagger
128
147
  # @return Array for valid properties with the reasons
129
148
  def list_invalid_properties
130
149
  invalid_properties = Array.new
131
- if @body.nil?
132
- invalid_properties.push('invalid value for "body", body cannot be nil.')
133
- end
134
-
135
150
  if @user.nil?
136
151
  invalid_properties.push('invalid value for "user", user cannot be nil.')
137
152
  end
138
153
 
154
+ if @body.nil?
155
+ invalid_properties.push('invalid value for "body", body cannot be nil.')
156
+ end
157
+
139
158
  invalid_properties
140
159
  end
141
160
 
142
161
  # Check to see if the all the properties in the model are valid
143
162
  # @return true if the model is valid
144
163
  def valid?
145
- return false if @body.nil?
146
164
  return false if @user.nil?
165
+ return false if @body.nil?
147
166
  true
148
167
  end
149
168
 
@@ -152,16 +171,18 @@ module ApproveAPISwagger
152
171
  def ==(o)
153
172
  return true if self.equal?(o)
154
173
  self.class == o.class &&
174
+ user == o.user &&
155
175
  body == o.body &&
156
176
  title == o.title &&
157
- reject_text == o.reject_text &&
158
- expires_in == o.expires_in &&
159
- long_poll == o.long_poll &&
160
- user == o.user &&
161
177
  approve_text == o.approve_text &&
162
178
  approve_redirect_url == o.approve_redirect_url &&
179
+ reject_text == o.reject_text &&
163
180
  reject_redirect_url == o.reject_redirect_url &&
164
- metadata == o.metadata
181
+ long_poll == o.long_poll &&
182
+ expires_in == o.expires_in &&
183
+ metadata == o.metadata &&
184
+ internal_data == o.internal_data &&
185
+ idempotency_key == o.idempotency_key
165
186
  end
166
187
 
167
188
  # @see the `==` method
@@ -173,7 +194,7 @@ module ApproveAPISwagger
173
194
  # Calculates hash code according to all attributes.
174
195
  # @return [Fixnum] Hash code
175
196
  def hash
176
- [body, title, reject_text, expires_in, long_poll, user, approve_text, approve_redirect_url, reject_redirect_url, metadata].hash
197
+ [user, body, title, approve_text, approve_redirect_url, reject_text, reject_redirect_url, long_poll, expires_in, metadata, internal_data, idempotency_key].hash
177
198
  end
178
199
 
179
200
  # Builds the object from hash
@@ -285,7 +306,5 @@ module ApproveAPISwagger
285
306
  value
286
307
  end
287
308
  end
288
-
289
309
  end
290
-
291
310
  end
@@ -191,7 +191,5 @@ module ApproveAPISwagger
191
191
  value
192
192
  end
193
193
  end
194
-
195
194
  end
196
-
197
195
  end