late-sdk 0.0.924 → 0.0.925
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/README.md +1 -0
- data/docs/OnWhatsAppNumberActionRequiredRequest.md +4 -0
- data/docs/OnWhatsAppNumberActionRequiredRequestRequirementsInner.md +22 -0
- data/docs/WebhookEventsApi.md +1 -1
- data/lib/zernio-sdk/api/webhook_events_api.rb +2 -2
- data/lib/zernio-sdk/models/on_whats_app_number_action_required_request.rb +23 -1
- data/lib/zernio-sdk/models/on_whats_app_number_action_required_request_requirements_inner.rb +200 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +1 -0
- data/openapi.yaml +20 -1
- data/spec/models/on_whats_app_number_action_required_request_requirements_inner_spec.rb +52 -0
- data/spec/models/on_whats_app_number_action_required_request_spec.rb +12 -0
- data/zernio-sdk-0.0.925.gem +0 -0
- metadata +6 -2
- data/zernio-sdk-0.0.924.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cff3e41ec9b94a9b9d7ac8f8d35986a88ee649e5622d1c35fa139bd27630e865
|
|
4
|
+
data.tar.gz: eb6adcd1251f7d9634f0d21a1efd8e8909c6f76961d60e2899047a29c4a0ba64
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0ac66db9db1af1c80f2a6c4da2d67f0c6cf3b328128992de3124c898a5453c946ed7b074ff77cd7531c38c9ec22a77ef77e8076bcd619e8ac6156998b113850
|
|
7
|
+
data.tar.gz: e2788c7a93d59147cb280b45a3a85b16405560591211f57e6f26212b348de34dd349e9685b2b796015d8c7d7d7da9ab0c6f17a85c5d74279a4dc05644de90560
|
data/README.md
CHANGED
|
@@ -2050,6 +2050,7 @@ Class | Method | HTTP request | Description
|
|
|
2050
2050
|
- [Zernio::OnWhatsAppAutomaticEventRequest](docs/OnWhatsAppAutomaticEventRequest.md)
|
|
2051
2051
|
- [Zernio::OnWhatsAppAutomaticEventRequestCustomData](docs/OnWhatsAppAutomaticEventRequestCustomData.md)
|
|
2052
2052
|
- [Zernio::OnWhatsAppNumberActionRequiredRequest](docs/OnWhatsAppNumberActionRequiredRequest.md)
|
|
2053
|
+
- [Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner](docs/OnWhatsAppNumberActionRequiredRequestRequirementsInner.md)
|
|
2053
2054
|
- [Zernio::OnWhatsAppNumberActivatedRequest](docs/OnWhatsAppNumberActivatedRequest.md)
|
|
2054
2055
|
- [Zernio::OnWhatsAppNumberActivatedRequestNumber](docs/OnWhatsAppNumberActivatedRequestNumber.md)
|
|
2055
2056
|
- [Zernio::OnWhatsAppNumberDeclinedRequest](docs/OnWhatsAppNumberDeclinedRequest.md)
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
| **event** | **String** | | [optional] |
|
|
9
9
|
| **timestamp** | **Time** | UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt. | [optional] |
|
|
10
10
|
| **reason** | **String** | | [optional] |
|
|
11
|
+
| **requirements** | [**Array<OnWhatsAppNumberActionRequiredRequestRequirementsInner>**](OnWhatsAppNumberActionRequiredRequestRequirementsInner.md) | Every requirement on the order with the reviewer's current verdict. Omitted when the order's requirements could not be read. | [optional] |
|
|
12
|
+
| **reviewed_at** | **Time** | When the reviewer last commented on the order. Omitted when there is no reviewer comment. | [optional] |
|
|
11
13
|
| **number** | [**OnWhatsAppNumberDeclinedRequestNumber**](OnWhatsAppNumberDeclinedRequestNumber.md) | | [optional] |
|
|
12
14
|
|
|
13
15
|
## Example
|
|
@@ -20,6 +22,8 @@ instance = Zernio::OnWhatsAppNumberActionRequiredRequest.new(
|
|
|
20
22
|
event: null,
|
|
21
23
|
timestamp: null,
|
|
22
24
|
reason: null,
|
|
25
|
+
requirements: null,
|
|
26
|
+
reviewed_at: null,
|
|
23
27
|
number: null
|
|
24
28
|
)
|
|
25
29
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **requirement_id** | **String** | Same id as fields[].requirementId on the remediation endpoint. | [optional] |
|
|
8
|
+
| **label** | **String** | | [optional] |
|
|
9
|
+
| **status** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'zernio-sdk'
|
|
15
|
+
|
|
16
|
+
instance = Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner.new(
|
|
17
|
+
requirement_id: null,
|
|
18
|
+
label: null,
|
|
19
|
+
status: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/WebhookEventsApi.md
CHANGED
|
@@ -2989,7 +2989,7 @@ nil (empty response body)
|
|
|
2989
2989
|
|
|
2990
2990
|
WhatsApp number action required event
|
|
2991
2991
|
|
|
2992
|
-
Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. `reason` carries the regulator's request verbatim when available.
|
|
2992
|
+
Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. `reason` carries the regulator's request verbatim when available. `requirements` lists every requirement on the order with the reviewer's current verdict; the `declined` ones are what to fix, keyed by the same `requirementId` the remediation endpoint uses. Verdicts only change when a reviewer acts, so they describe the review at `reviewedAt`, the time of the reviewer's last comment.
|
|
2993
2993
|
|
|
2994
2994
|
### Examples
|
|
2995
2995
|
|
|
@@ -2858,7 +2858,7 @@ module Zernio
|
|
|
2858
2858
|
end
|
|
2859
2859
|
|
|
2860
2860
|
# WhatsApp number action required event
|
|
2861
|
-
# Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. `reason` carries the regulator's request verbatim when available.
|
|
2861
|
+
# Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. `reason` carries the regulator's request verbatim when available. `requirements` lists every requirement on the order with the reviewer's current verdict; the `declined` ones are what to fix, keyed by the same `requirementId` the remediation endpoint uses. Verdicts only change when a reviewer acts, so they describe the review at `reviewedAt`, the time of the reviewer's last comment.
|
|
2862
2862
|
# @param on_whats_app_number_action_required_request [OnWhatsAppNumberActionRequiredRequest]
|
|
2863
2863
|
# @param [Hash] opts the optional parameters
|
|
2864
2864
|
# @return [nil]
|
|
@@ -2868,7 +2868,7 @@ module Zernio
|
|
|
2868
2868
|
end
|
|
2869
2869
|
|
|
2870
2870
|
# WhatsApp number action required event
|
|
2871
|
-
# Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. `reason` carries the regulator's request verbatim when available.
|
|
2871
|
+
# Fired when the regulator asks for more information on an already-placed regulated number order. The number stays pending (nothing was rejected); the customer can provide the missing information from the dashboard, or via the remediation endpoint. `reason` carries the regulator's request verbatim when available. `requirements` lists every requirement on the order with the reviewer's current verdict; the `declined` ones are what to fix, keyed by the same `requirementId` the remediation endpoint uses. Verdicts only change when a reviewer acts, so they describe the review at `reviewedAt`, the time of the reviewer's last comment.
|
|
2872
2872
|
# @param on_whats_app_number_action_required_request [OnWhatsAppNumberActionRequiredRequest]
|
|
2873
2873
|
# @param [Hash] opts the optional parameters
|
|
2874
2874
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -24,6 +24,12 @@ module Zernio
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :reason
|
|
26
26
|
|
|
27
|
+
# Every requirement on the order with the reviewer's current verdict. Omitted when the order's requirements could not be read.
|
|
28
|
+
attr_accessor :requirements
|
|
29
|
+
|
|
30
|
+
# When the reviewer last commented on the order. Omitted when there is no reviewer comment.
|
|
31
|
+
attr_accessor :reviewed_at
|
|
32
|
+
|
|
27
33
|
attr_accessor :number
|
|
28
34
|
|
|
29
35
|
class EnumAttributeValidator
|
|
@@ -55,6 +61,8 @@ module Zernio
|
|
|
55
61
|
:'event' => :'event',
|
|
56
62
|
:'timestamp' => :'timestamp',
|
|
57
63
|
:'reason' => :'reason',
|
|
64
|
+
:'requirements' => :'requirements',
|
|
65
|
+
:'reviewed_at' => :'reviewedAt',
|
|
58
66
|
:'number' => :'number'
|
|
59
67
|
}
|
|
60
68
|
end
|
|
@@ -76,6 +84,8 @@ module Zernio
|
|
|
76
84
|
:'event' => :'String',
|
|
77
85
|
:'timestamp' => :'Time',
|
|
78
86
|
:'reason' => :'String',
|
|
87
|
+
:'requirements' => :'Array<OnWhatsAppNumberActionRequiredRequestRequirementsInner>',
|
|
88
|
+
:'reviewed_at' => :'Time',
|
|
79
89
|
:'number' => :'OnWhatsAppNumberDeclinedRequestNumber'
|
|
80
90
|
}
|
|
81
91
|
end
|
|
@@ -118,6 +128,16 @@ module Zernio
|
|
|
118
128
|
self.reason = attributes[:'reason']
|
|
119
129
|
end
|
|
120
130
|
|
|
131
|
+
if attributes.key?(:'requirements')
|
|
132
|
+
if (value = attributes[:'requirements']).is_a?(Array)
|
|
133
|
+
self.requirements = value
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'reviewed_at')
|
|
138
|
+
self.reviewed_at = attributes[:'reviewed_at']
|
|
139
|
+
end
|
|
140
|
+
|
|
121
141
|
if attributes.key?(:'number')
|
|
122
142
|
self.number = attributes[:'number']
|
|
123
143
|
end
|
|
@@ -159,6 +179,8 @@ module Zernio
|
|
|
159
179
|
event == o.event &&
|
|
160
180
|
timestamp == o.timestamp &&
|
|
161
181
|
reason == o.reason &&
|
|
182
|
+
requirements == o.requirements &&
|
|
183
|
+
reviewed_at == o.reviewed_at &&
|
|
162
184
|
number == o.number
|
|
163
185
|
end
|
|
164
186
|
|
|
@@ -171,7 +193,7 @@ module Zernio
|
|
|
171
193
|
# Calculates hash code according to all attributes.
|
|
172
194
|
# @return [Integer] Hash code
|
|
173
195
|
def hash
|
|
174
|
-
[id, event, timestamp, reason, number].hash
|
|
196
|
+
[id, event, timestamp, reason, requirements, reviewed_at, number].hash
|
|
175
197
|
end
|
|
176
198
|
|
|
177
199
|
# Builds the object from hash
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
class OnWhatsAppNumberActionRequiredRequestRequirementsInner < ApiModelBase
|
|
18
|
+
# Same id as fields[].requirementId on the remediation endpoint.
|
|
19
|
+
attr_accessor :requirement_id
|
|
20
|
+
|
|
21
|
+
attr_accessor :label
|
|
22
|
+
|
|
23
|
+
attr_accessor :status
|
|
24
|
+
|
|
25
|
+
class EnumAttributeValidator
|
|
26
|
+
attr_reader :datatype
|
|
27
|
+
attr_reader :allowable_values
|
|
28
|
+
|
|
29
|
+
def initialize(datatype, allowable_values)
|
|
30
|
+
@allowable_values = allowable_values.map do |value|
|
|
31
|
+
case datatype.to_s
|
|
32
|
+
when /Integer/i
|
|
33
|
+
value.to_i
|
|
34
|
+
when /Float/i
|
|
35
|
+
value.to_f
|
|
36
|
+
else
|
|
37
|
+
value
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def valid?(value)
|
|
43
|
+
!value || allowable_values.include?(value)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
|
+
def self.attribute_map
|
|
49
|
+
{
|
|
50
|
+
:'requirement_id' => :'requirementId',
|
|
51
|
+
:'label' => :'label',
|
|
52
|
+
:'status' => :'status'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns attribute mapping this model knows about
|
|
57
|
+
def self.acceptable_attribute_map
|
|
58
|
+
attribute_map
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Returns all the JSON keys this model knows about
|
|
62
|
+
def self.acceptable_attributes
|
|
63
|
+
acceptable_attribute_map.values
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Attribute type mapping.
|
|
67
|
+
def self.openapi_types
|
|
68
|
+
{
|
|
69
|
+
:'requirement_id' => :'String',
|
|
70
|
+
:'label' => :'String',
|
|
71
|
+
:'status' => :'String'
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# List of attributes with nullable: true
|
|
76
|
+
def self.openapi_nullable
|
|
77
|
+
Set.new([
|
|
78
|
+
])
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Initializes the object
|
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
|
+
def initialize(attributes = {})
|
|
84
|
+
if (!attributes.is_a?(Hash))
|
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner` initialize method"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
89
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
90
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
91
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
93
|
+
end
|
|
94
|
+
h[k.to_sym] = v
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'requirement_id')
|
|
98
|
+
self.requirement_id = attributes[:'requirement_id']
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'label')
|
|
102
|
+
self.label = attributes[:'label']
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if attributes.key?(:'status')
|
|
106
|
+
self.status = attributes[:'status']
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
111
|
+
# @return Array for valid properties with the reasons
|
|
112
|
+
def list_invalid_properties
|
|
113
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
114
|
+
invalid_properties = Array.new
|
|
115
|
+
invalid_properties
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Check to see if the all the properties in the model are valid
|
|
119
|
+
# @return true if the model is valid
|
|
120
|
+
def valid?
|
|
121
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
122
|
+
status_validator = EnumAttributeValidator.new('String', ["approved", "pending", "declined"])
|
|
123
|
+
return false unless status_validator.valid?(@status)
|
|
124
|
+
true
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
128
|
+
# @param [Object] status Object to be assigned
|
|
129
|
+
def status=(status)
|
|
130
|
+
validator = EnumAttributeValidator.new('String', ["approved", "pending", "declined"])
|
|
131
|
+
unless validator.valid?(status)
|
|
132
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
133
|
+
end
|
|
134
|
+
@status = status
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Checks equality by comparing each attribute.
|
|
138
|
+
# @param [Object] Object to be compared
|
|
139
|
+
def ==(o)
|
|
140
|
+
return true if self.equal?(o)
|
|
141
|
+
self.class == o.class &&
|
|
142
|
+
requirement_id == o.requirement_id &&
|
|
143
|
+
label == o.label &&
|
|
144
|
+
status == o.status
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# @see the `==` method
|
|
148
|
+
# @param [Object] Object to be compared
|
|
149
|
+
def eql?(o)
|
|
150
|
+
self == o
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Calculates hash code according to all attributes.
|
|
154
|
+
# @return [Integer] Hash code
|
|
155
|
+
def hash
|
|
156
|
+
[requirement_id, label, status].hash
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Builds the object from hash
|
|
160
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
161
|
+
# @return [Object] Returns the model itself
|
|
162
|
+
def self.build_from_hash(attributes)
|
|
163
|
+
return nil unless attributes.is_a?(Hash)
|
|
164
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
165
|
+
transformed_hash = {}
|
|
166
|
+
openapi_types.each_pair do |key, type|
|
|
167
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
168
|
+
transformed_hash["#{key}"] = nil
|
|
169
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
170
|
+
# check to ensure the input is an array given that the attribute
|
|
171
|
+
# is documented as an array but the input is not
|
|
172
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
173
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
174
|
+
end
|
|
175
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
176
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
new(transformed_hash)
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Returns the object in the form of hash
|
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
|
184
|
+
def to_hash
|
|
185
|
+
hash = {}
|
|
186
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
187
|
+
value = self.send(attr)
|
|
188
|
+
if value.nil?
|
|
189
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
190
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
hash[param] = _to_hash(value)
|
|
194
|
+
end
|
|
195
|
+
hash
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
end
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -1269,6 +1269,7 @@ require 'zernio-sdk/models/on_verification_failed_request_verification'
|
|
|
1269
1269
|
require 'zernio-sdk/models/on_whats_app_automatic_event_request'
|
|
1270
1270
|
require 'zernio-sdk/models/on_whats_app_automatic_event_request_custom_data'
|
|
1271
1271
|
require 'zernio-sdk/models/on_whats_app_number_action_required_request'
|
|
1272
|
+
require 'zernio-sdk/models/on_whats_app_number_action_required_request_requirements_inner'
|
|
1272
1273
|
require 'zernio-sdk/models/on_whats_app_number_activated_request'
|
|
1273
1274
|
require 'zernio-sdk/models/on_whats_app_number_activated_request_number'
|
|
1274
1275
|
require 'zernio-sdk/models/on_whats_app_number_declined_request'
|
data/openapi.yaml
CHANGED
|
@@ -11595,7 +11595,11 @@ webhooks:
|
|
|
11595
11595
|
regulated number order. The number stays pending (nothing was rejected);
|
|
11596
11596
|
the customer can provide the missing information from the dashboard, or
|
|
11597
11597
|
via the remediation endpoint. `reason` carries the regulator's request
|
|
11598
|
-
verbatim when available.
|
|
11598
|
+
verbatim when available. `requirements` lists every requirement on the
|
|
11599
|
+
order with the reviewer's current verdict; the `declined` ones are what to
|
|
11600
|
+
fix, keyed by the same `requirementId` the remediation endpoint uses.
|
|
11601
|
+
Verdicts only change when a reviewer acts, so they describe the review at
|
|
11602
|
+
`reviewedAt`, the time of the reviewer's last comment.
|
|
11599
11603
|
tags: [Webhook Events]
|
|
11600
11604
|
requestBody:
|
|
11601
11605
|
required: true
|
|
@@ -11611,6 +11615,21 @@ webhooks:
|
|
|
11611
11615
|
format: date-time
|
|
11612
11616
|
description: 'UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.'
|
|
11613
11617
|
reason: { type: string }
|
|
11618
|
+
requirements:
|
|
11619
|
+
type: array
|
|
11620
|
+
description: "Every requirement on the order with the reviewer's current verdict. Omitted when the order's requirements could not be read."
|
|
11621
|
+
items:
|
|
11622
|
+
type: object
|
|
11623
|
+
properties:
|
|
11624
|
+
requirementId:
|
|
11625
|
+
type: string
|
|
11626
|
+
description: 'Same id as fields[].requirementId on the remediation endpoint.'
|
|
11627
|
+
label: { type: string }
|
|
11628
|
+
status: { type: string, enum: [approved, pending, declined] }
|
|
11629
|
+
reviewedAt:
|
|
11630
|
+
type: string
|
|
11631
|
+
format: date-time
|
|
11632
|
+
description: 'When the reviewer last commented on the order. Omitted when there is no reviewer comment.'
|
|
11614
11633
|
number:
|
|
11615
11634
|
type: object
|
|
11616
11635
|
properties:
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner do
|
|
21
|
+
#let(:instance) { Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of OnWhatsAppNumberActionRequiredRequestRequirementsInner' do
|
|
24
|
+
it 'should create an instance of OnWhatsAppNumberActionRequiredRequestRequirementsInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::OnWhatsAppNumberActionRequiredRequestRequirementsInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "requirement_id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "label"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "status"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["approved", "pending", "declined"])
|
|
46
|
+
# validator.allowable_values.each do |value|
|
|
47
|
+
# expect { instance.status = value }.not_to raise_error
|
|
48
|
+
# end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
end
|
|
@@ -55,6 +55,18 @@ describe Zernio::OnWhatsAppNumberActionRequiredRequest do
|
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
describe 'test attribute "requirements"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "reviewed_at"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
58
70
|
describe 'test attribute "number"' do
|
|
59
71
|
it 'should work' do
|
|
60
72
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.925
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -1361,6 +1361,7 @@ files:
|
|
|
1361
1361
|
- docs/OnWhatsAppAutomaticEventRequest.md
|
|
1362
1362
|
- docs/OnWhatsAppAutomaticEventRequestCustomData.md
|
|
1363
1363
|
- docs/OnWhatsAppNumberActionRequiredRequest.md
|
|
1364
|
+
- docs/OnWhatsAppNumberActionRequiredRequestRequirementsInner.md
|
|
1364
1365
|
- docs/OnWhatsAppNumberActivatedRequest.md
|
|
1365
1366
|
- docs/OnWhatsAppNumberActivatedRequestNumber.md
|
|
1366
1367
|
- docs/OnWhatsAppNumberDeclinedRequest.md
|
|
@@ -3488,6 +3489,7 @@ files:
|
|
|
3488
3489
|
- lib/zernio-sdk/models/on_whats_app_automatic_event_request.rb
|
|
3489
3490
|
- lib/zernio-sdk/models/on_whats_app_automatic_event_request_custom_data.rb
|
|
3490
3491
|
- lib/zernio-sdk/models/on_whats_app_number_action_required_request.rb
|
|
3492
|
+
- lib/zernio-sdk/models/on_whats_app_number_action_required_request_requirements_inner.rb
|
|
3491
3493
|
- lib/zernio-sdk/models/on_whats_app_number_activated_request.rb
|
|
3492
3494
|
- lib/zernio-sdk/models/on_whats_app_number_activated_request_number.rb
|
|
3493
3495
|
- lib/zernio-sdk/models/on_whats_app_number_declined_request.rb
|
|
@@ -5581,6 +5583,7 @@ files:
|
|
|
5581
5583
|
- spec/models/on_verification_failed_request_verification_spec.rb
|
|
5582
5584
|
- spec/models/on_whats_app_automatic_event_request_custom_data_spec.rb
|
|
5583
5585
|
- spec/models/on_whats_app_automatic_event_request_spec.rb
|
|
5586
|
+
- spec/models/on_whats_app_number_action_required_request_requirements_inner_spec.rb
|
|
5584
5587
|
- spec/models/on_whats_app_number_action_required_request_spec.rb
|
|
5585
5588
|
- spec/models/on_whats_app_number_activated_request_number_spec.rb
|
|
5586
5589
|
- spec/models/on_whats_app_number_activated_request_spec.rb
|
|
@@ -6355,7 +6358,7 @@ files:
|
|
|
6355
6358
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
6356
6359
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
6357
6360
|
- spec/spec_helper.rb
|
|
6358
|
-
- zernio-sdk-0.0.
|
|
6361
|
+
- zernio-sdk-0.0.925.gem
|
|
6359
6362
|
- zernio-sdk.gemspec
|
|
6360
6363
|
homepage: https://openapi-generator.tech
|
|
6361
6364
|
licenses:
|
|
@@ -8409,6 +8412,7 @@ test_files:
|
|
|
8409
8412
|
- spec/models/get_google_business_reviews200_response_spec.rb
|
|
8410
8413
|
- spec/models/list_whats_app_flow_versions200_response_spec.rb
|
|
8411
8414
|
- spec/models/create_inbox_conversation_request_template_button_params_inner_spec.rb
|
|
8415
|
+
- spec/models/on_whats_app_number_action_required_request_requirements_inner_spec.rb
|
|
8412
8416
|
- spec/models/create_google_business_media_request_spec.rb
|
|
8413
8417
|
- spec/models/validate_phone_number_kyc_address400_response_details_spec.rb
|
|
8414
8418
|
- spec/models/replace_ad_audience_companies_request_companies_inner_spec.rb
|
data/zernio-sdk-0.0.924.gem
DELETED
|
Binary file
|