late-sdk 0.0.682 → 0.0.683

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: 476de2764b955cb602604845141be530e2aab850ad9bd0c915ca75b0e9efbe2e
4
- data.tar.gz: 74cde0d1a14ca577510cb7bf6d4c4b461225344ef35e62a1858c6afbb7032063
3
+ metadata.gz: 72bf4fcd59dbfb2d9686d445f83e3dacac85ec7de24e291ea41ed0b82450e9e0
4
+ data.tar.gz: 4287b7ec53e4c338a10b46e552f94b0541c973b2a2a0009f690ef29154b5418d
5
5
  SHA512:
6
- metadata.gz: '08b9195fc96cf88dffe2b1aa174b79ea05837c1cebc4bd1780030e4f954a221c44355b97fb4ad2aa79727e3463bb001824cec92f28c92ad8acd3fa0c54acdc89'
7
- data.tar.gz: b15379bd7f9ba352a9111b1cf0fd6879dae8977a94abd6fff5106999b8f3e995472df58d5380a7b3691acade63db3f107edef472ba2d1a0c55d3b37cb400cb07
6
+ metadata.gz: c299151b85b2b5b924a7184d38f0fd4888e6c88b4faddaebe9962f931b0f1641fef3d5d33abf3e0e08742ed32909be718183b3a7ea434609bcef1d8508e1dabc
7
+ data.tar.gz: b6351e30b58375b877372e75c8d6acae08b9190e66c1ebf64481f06ddac74e32f8679c38f0087f8bcca7d81b2375458ea15400e7d354457c416264304a51726b
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | | [optional] |
8
+ | **trigger** | **String** | What fires the automation. Changing it detaches the automation from its bound post or story (a post id and a story id are different objects), unless this same request sets a new binding. 'story_reply' is Instagram only. | [optional] |
8
9
  | **keywords** | **Array<String>** | | [optional] |
9
10
  | **match_mode** | **String** | How a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword. | [optional] |
10
11
  | **exclude_keywords** | **Array<String>** | Comments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode. | [optional] |
@@ -25,6 +26,7 @@ require 'zernio-sdk'
25
26
 
26
27
  instance = Zernio::UpdateCommentAutomationRequest.new(
27
28
  name: null,
29
+ trigger: null,
28
30
  keywords: null,
29
31
  match_mode: null,
30
32
  exclude_keywords: null,
@@ -17,6 +17,9 @@ module Zernio
17
17
  class UpdateCommentAutomationRequest < ApiModelBase
18
18
  attr_accessor :name
19
19
 
20
+ # What fires the automation. Changing it detaches the automation from its bound post or story (a post id and a story id are different objects), unless this same request sets a new binding. 'story_reply' is Instagram only.
21
+ attr_accessor :trigger
22
+
20
23
  attr_accessor :keywords
21
24
 
22
25
  # How a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword.
@@ -75,6 +78,7 @@ module Zernio
75
78
  def self.attribute_map
76
79
  {
77
80
  :'name' => :'name',
81
+ :'trigger' => :'trigger',
78
82
  :'keywords' => :'keywords',
79
83
  :'match_mode' => :'matchMode',
80
84
  :'exclude_keywords' => :'excludeKeywords',
@@ -104,6 +108,7 @@ module Zernio
104
108
  def self.openapi_types
105
109
  {
106
110
  :'name' => :'String',
111
+ :'trigger' => :'String',
107
112
  :'keywords' => :'Array<String>',
108
113
  :'match_mode' => :'String',
109
114
  :'exclude_keywords' => :'Array<String>',
@@ -145,6 +150,10 @@ module Zernio
145
150
  self.name = attributes[:'name']
146
151
  end
147
152
 
153
+ if attributes.key?(:'trigger')
154
+ self.trigger = attributes[:'trigger']
155
+ end
156
+
148
157
  if attributes.key?(:'keywords')
149
158
  if (value = attributes[:'keywords']).is_a?(Array)
150
159
  self.keywords = value
@@ -228,6 +237,8 @@ module Zernio
228
237
  # @return true if the model is valid
229
238
  def valid?
230
239
  warn '[DEPRECATED] the `valid?` method is obsolete'
240
+ trigger_validator = EnumAttributeValidator.new('String', ["comment", "story_reply"])
241
+ return false unless trigger_validator.valid?(@trigger)
231
242
  match_mode_validator = EnumAttributeValidator.new('String', ["exact", "contains", "word"])
232
243
  return false unless match_mode_validator.valid?(@match_mode)
233
244
  return false if !@buttons.nil? && @buttons.length > 3
@@ -236,6 +247,16 @@ module Zernio
236
247
  true
237
248
  end
238
249
 
250
+ # Custom attribute writer method checking allowed values (enum).
251
+ # @param [Object] trigger Object to be assigned
252
+ def trigger=(trigger)
253
+ validator = EnumAttributeValidator.new('String', ["comment", "story_reply"])
254
+ unless validator.valid?(trigger)
255
+ fail ArgumentError, "invalid value for \"trigger\", must be one of #{validator.allowable_values}."
256
+ end
257
+ @trigger = trigger
258
+ end
259
+
239
260
  # Custom attribute writer method checking allowed values (enum).
240
261
  # @param [Object] match_mode Object to be assigned
241
262
  def match_mode=(match_mode)
@@ -294,6 +315,7 @@ module Zernio
294
315
  return true if self.equal?(o)
295
316
  self.class == o.class &&
296
317
  name == o.name &&
318
+ trigger == o.trigger &&
297
319
  keywords == o.keywords &&
298
320
  match_mode == o.match_mode &&
299
321
  exclude_keywords == o.exclude_keywords &&
@@ -317,7 +339,7 @@ module Zernio
317
339
  # Calculates hash code according to all attributes.
318
340
  # @return [Integer] Hash code
319
341
  def hash
320
- [name, keywords, match_mode, exclude_keywords, typo_tolerance, dm_message, buttons, comment_reply, dm_message_variations, comment_reply_variations, link_tracking, click_tag, is_active].hash
342
+ [name, trigger, keywords, match_mode, exclude_keywords, typo_tolerance, dm_message, buttons, comment_reply, dm_message_variations, comment_reply_variations, link_tracking, click_tag, is_active].hash
321
343
  end
322
344
 
323
345
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.682'
14
+ VERSION = '0.0.683'
15
15
  end
data/openapi.yaml CHANGED
@@ -35930,6 +35930,7 @@ paths:
35930
35930
  type: object
35931
35931
  properties:
35932
35932
  name: { type: string }
35933
+ trigger: { type: string, enum: [comment, story_reply], description: "What fires the automation. Changing it detaches the automation from its bound post or story (a post id and a story id are different objects), unless this same request sets a new binding. 'story_reply' is Instagram only." }
35933
35934
  keywords: { type: array, items: { type: string } }
35934
35935
  matchMode: { type: string, enum: [exact, contains, word], description: "How a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword." }
35935
35936
  excludeKeywords: { type: array, items: { type: string }, description: "Comments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode." }
@@ -33,6 +33,16 @@ describe Zernio::UpdateCommentAutomationRequest do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "trigger"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["comment", "story_reply"])
40
+ # validator.allowable_values.each do |value|
41
+ # expect { instance.trigger = value }.not_to raise_error
42
+ # end
43
+ end
44
+ end
45
+
36
46
  describe 'test attribute "keywords"' do
37
47
  it 'should work' do
38
48
  # 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.682
4
+ version: 0.0.683
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -4991,7 +4991,7 @@ files:
4991
4991
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
4992
4992
  - spec/models/you_tube_video_retention_response_spec.rb
4993
4993
  - spec/spec_helper.rb
4994
- - zernio-sdk-0.0.682.gem
4994
+ - zernio-sdk-0.0.683.gem
4995
4995
  - zernio-sdk.gemspec
4996
4996
  homepage: https://openapi-generator.tech
4997
4997
  licenses:
Binary file