late-sdk 0.0.597 → 0.0.599

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/docs/CreatePostRequestPlatformsInnerPlatformSpecificData.md +2 -0
  4. data/docs/PlatformTargetPlatformSpecificData.md +2 -0
  5. data/docs/SendInboxMessage400Response.md +4 -2
  6. data/docs/SendInboxMessage400ResponsePlatformError.md +24 -0
  7. data/docs/SendPrivateReplyToComment400Response.md +20 -0
  8. data/docs/SlackPlatformData.md +26 -0
  9. data/lib/zernio-sdk/api/accounts_api.rb +1 -1
  10. data/lib/zernio-sdk/api/connect_api.rb +1 -1
  11. data/lib/zernio-sdk/models/account_with_follower_stats.rb +2 -2
  12. data/lib/zernio-sdk/models/create_post_request_platforms_inner_platform_specific_data.rb +1 -0
  13. data/lib/zernio-sdk/models/platform_target_platform_specific_data.rb +1 -0
  14. data/lib/zernio-sdk/models/send_inbox_message400_response.rb +16 -6
  15. data/lib/zernio-sdk/models/send_inbox_message400_response_platform_error.rb +179 -0
  16. data/lib/zernio-sdk/models/send_private_reply_to_comment400_response.rb +190 -0
  17. data/lib/zernio-sdk/models/slack_platform_data.rb +189 -0
  18. data/lib/zernio-sdk/models/social_account.rb +2 -2
  19. data/lib/zernio-sdk/models/validate_post_request_platforms_inner.rb +2 -2
  20. data/lib/zernio-sdk/version.rb +1 -1
  21. data/lib/zernio-sdk.rb +3 -0
  22. data/openapi.yaml +37 -5
  23. data/spec/models/account_with_follower_stats_spec.rb +1 -1
  24. data/spec/models/send_inbox_message400_response_platform_error_spec.rb +54 -0
  25. data/spec/models/send_inbox_message400_response_spec.rb +7 -1
  26. data/spec/models/send_private_reply_to_comment400_response_spec.rb +46 -0
  27. data/spec/models/slack_platform_data_spec.rb +60 -0
  28. data/spec/models/social_account_spec.rb +1 -1
  29. data/spec/models/validate_post_request_platforms_inner_spec.rb +1 -1
  30. data/zernio-sdk-0.0.599.gem +0 -0
  31. metadata +14 -2
  32. data/zernio-sdk-0.0.597.gem +0 -0
@@ -0,0 +1,189 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
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
+ # Slack message settings. Posts mrkdwn text (up to 40,000 chars; Slack truncates beyond that) to the channel fixed by the connected account, with up to 10 media files per post uploaded via Slack's file API (the text becomes the caption). The target channel is chosen at connect time — one connected account per channel — so channelId is NOT accepted here (a 400 is returned); connect the desired channel via /v1/connect/slack and target its accountId. Messages over 4,000 characters cannot be edited later (Slack's edit limit is stricter than its post limit).
18
+ class SlackPlatformData < ApiModelBase
19
+ # Parent message ts to post this message as a thread reply (e.g. \"1503435956.000247\").
20
+ attr_accessor :thread_ts
21
+
22
+ # Expand links in the message into preview cards. Default true.
23
+ attr_accessor :unfurl_links
24
+
25
+ # Expand media links into inline previews. Default true.
26
+ attr_accessor :unfurl_media
27
+
28
+ # Override the bot display name for this message only (requires no setup; shown with an APP badge). Does not change the app identity in the sidebar.
29
+ attr_accessor :username
30
+
31
+ # Override the bot avatar image URL for this message only.
32
+ attr_accessor :icon_url
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'thread_ts' => :'threadTs',
38
+ :'unfurl_links' => :'unfurlLinks',
39
+ :'unfurl_media' => :'unfurlMedia',
40
+ :'username' => :'username',
41
+ :'icon_url' => :'iconUrl'
42
+ }
43
+ end
44
+
45
+ # Returns attribute mapping this model knows about
46
+ def self.acceptable_attribute_map
47
+ attribute_map
48
+ end
49
+
50
+ # Returns all the JSON keys this model knows about
51
+ def self.acceptable_attributes
52
+ acceptable_attribute_map.values
53
+ end
54
+
55
+ # Attribute type mapping.
56
+ def self.openapi_types
57
+ {
58
+ :'thread_ts' => :'String',
59
+ :'unfurl_links' => :'Boolean',
60
+ :'unfurl_media' => :'Boolean',
61
+ :'username' => :'String',
62
+ :'icon_url' => :'String'
63
+ }
64
+ end
65
+
66
+ # List of attributes with nullable: true
67
+ def self.openapi_nullable
68
+ Set.new([
69
+ ])
70
+ end
71
+
72
+ # Initializes the object
73
+ # @param [Hash] attributes Model attributes in the form of hash
74
+ def initialize(attributes = {})
75
+ if (!attributes.is_a?(Hash))
76
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::SlackPlatformData` initialize method"
77
+ end
78
+
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ acceptable_attribute_map = self.class.acceptable_attribute_map
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!acceptable_attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::SlackPlatformData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'thread_ts')
89
+ self.thread_ts = attributes[:'thread_ts']
90
+ end
91
+
92
+ if attributes.key?(:'unfurl_links')
93
+ self.unfurl_links = attributes[:'unfurl_links']
94
+ end
95
+
96
+ if attributes.key?(:'unfurl_media')
97
+ self.unfurl_media = attributes[:'unfurl_media']
98
+ end
99
+
100
+ if attributes.key?(:'username')
101
+ self.username = attributes[:'username']
102
+ end
103
+
104
+ if attributes.key?(:'icon_url')
105
+ self.icon_url = attributes[:'icon_url']
106
+ end
107
+ end
108
+
109
+ # Show invalid properties with the reasons. Usually used together with valid?
110
+ # @return Array for valid properties with the reasons
111
+ def list_invalid_properties
112
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
+ invalid_properties = Array.new
114
+ invalid_properties
115
+ end
116
+
117
+ # Check to see if the all the properties in the model are valid
118
+ # @return true if the model is valid
119
+ def valid?
120
+ warn '[DEPRECATED] the `valid?` method is obsolete'
121
+ true
122
+ end
123
+
124
+ # Checks equality by comparing each attribute.
125
+ # @param [Object] Object to be compared
126
+ def ==(o)
127
+ return true if self.equal?(o)
128
+ self.class == o.class &&
129
+ thread_ts == o.thread_ts &&
130
+ unfurl_links == o.unfurl_links &&
131
+ unfurl_media == o.unfurl_media &&
132
+ username == o.username &&
133
+ icon_url == o.icon_url
134
+ end
135
+
136
+ # @see the `==` method
137
+ # @param [Object] Object to be compared
138
+ def eql?(o)
139
+ self == o
140
+ end
141
+
142
+ # Calculates hash code according to all attributes.
143
+ # @return [Integer] Hash code
144
+ def hash
145
+ [thread_ts, unfurl_links, unfurl_media, username, icon_url].hash
146
+ end
147
+
148
+ # Builds the object from hash
149
+ # @param [Hash] attributes Model attributes in the form of hash
150
+ # @return [Object] Returns the model itself
151
+ def self.build_from_hash(attributes)
152
+ return nil unless attributes.is_a?(Hash)
153
+ attributes = attributes.transform_keys(&:to_sym)
154
+ transformed_hash = {}
155
+ openapi_types.each_pair do |key, type|
156
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
157
+ transformed_hash["#{key}"] = nil
158
+ elsif type =~ /\AArray<(.*)>/i
159
+ # check to ensure the input is an array given that the attribute
160
+ # is documented as an array but the input is not
161
+ if attributes[attribute_map[key]].is_a?(Array)
162
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
163
+ end
164
+ elsif !attributes[attribute_map[key]].nil?
165
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
166
+ end
167
+ end
168
+ new(transformed_hash)
169
+ end
170
+
171
+ # Returns the object in the form of hash
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_hash
174
+ hash = {}
175
+ self.class.attribute_map.each_pair do |attr, param|
176
+ value = self.send(attr)
177
+ if value.nil?
178
+ is_nullable = self.class.openapi_nullable.include?(attr)
179
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
180
+ end
181
+
182
+ hash[param] = _to_hash(value)
183
+ end
184
+ hash
185
+ end
186
+
187
+ end
188
+
189
+ end
@@ -242,7 +242,7 @@ module Zernio
242
242
  warn '[DEPRECATED] the `valid?` method is obsolete'
243
243
  return false if @_id.nil?
244
244
  return false if @platform.nil?
245
- platform_validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
245
+ platform_validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
246
246
  return false unless platform_validator.valid?(@platform)
247
247
  return false if @profile_id.nil?
248
248
  return false if @is_active.nil?
@@ -262,7 +262,7 @@ module Zernio
262
262
  # Custom attribute writer method checking allowed values (enum).
263
263
  # @param [Object] platform Object to be assigned
264
264
  def platform=(platform)
265
- validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
265
+ validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
266
266
  unless validator.valid?(platform)
267
267
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
268
268
  end
@@ -144,7 +144,7 @@ module Zernio
144
144
  def valid?
145
145
  warn '[DEPRECATED] the `valid?` method is obsolete'
146
146
  return false if @platform.nil?
147
- platform_validator = EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord"])
147
+ platform_validator = EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord", "slack"])
148
148
  return false unless platform_validator.valid?(@platform)
149
149
  true
150
150
  end
@@ -152,7 +152,7 @@ module Zernio
152
152
  # Custom attribute writer method checking allowed values (enum).
153
153
  # @param [Object] platform Object to be assigned
154
154
  def platform=(platform)
155
- validator = EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord"])
155
+ validator = EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord", "slack"])
156
156
  unless validator.valid?(platform)
157
157
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
158
158
  end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.597'
14
+ VERSION = '0.0.599'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -1131,6 +1131,7 @@ require 'zernio-sdk/models/send_discord_direct_message_request_attachments_inner
1131
1131
  require 'zernio-sdk/models/send_inbox_message200_response'
1132
1132
  require 'zernio-sdk/models/send_inbox_message200_response_data'
1133
1133
  require 'zernio-sdk/models/send_inbox_message400_response'
1134
+ require 'zernio-sdk/models/send_inbox_message400_response_platform_error'
1134
1135
  require 'zernio-sdk/models/send_inbox_message_request'
1135
1136
  require 'zernio-sdk/models/send_inbox_message_request_buttons_inner'
1136
1137
  require 'zernio-sdk/models/send_inbox_message_request_contacts_inner'
@@ -1170,6 +1171,7 @@ require 'zernio-sdk/models/send_inbox_message_request_template'
1170
1171
  require 'zernio-sdk/models/send_inbox_message_request_template_elements_inner'
1171
1172
  require 'zernio-sdk/models/send_inbox_message_request_template_elements_inner_buttons_inner'
1172
1173
  require 'zernio-sdk/models/send_private_reply_to_comment200_response'
1174
+ require 'zernio-sdk/models/send_private_reply_to_comment400_response'
1173
1175
  require 'zernio-sdk/models/send_private_reply_to_comment_request'
1174
1176
  require 'zernio-sdk/models/send_private_reply_to_comment_request_buttons_inner'
1175
1177
  require 'zernio-sdk/models/send_private_reply_to_comment_request_buttons_inner_one_of'
@@ -1198,6 +1200,7 @@ require 'zernio-sdk/models/set_whatsapp_business_username_request'
1198
1200
  require 'zernio-sdk/models/share_sms_registration200_response'
1199
1201
  require 'zernio-sdk/models/share_sms_registration_request'
1200
1202
  require 'zernio-sdk/models/shared_ad_account'
1203
+ require 'zernio-sdk/models/slack_platform_data'
1201
1204
  require 'zernio-sdk/models/snapchat_platform_data'
1202
1205
  require 'zernio-sdk/models/social_account'
1203
1206
  require 'zernio-sdk/models/social_account_profile_id'
data/openapi.yaml CHANGED
@@ -4053,6 +4053,7 @@ components:
4053
4053
  - $ref: '#/components/schemas/RedditPlatformData'
4054
4054
  - $ref: '#/components/schemas/BlueskyPlatformData'
4055
4055
  - $ref: '#/components/schemas/DiscordPlatformData'
4056
+ - $ref: '#/components/schemas/SlackPlatformData'
4056
4057
  additionalProperties: true
4057
4058
  status:
4058
4059
  type: string
@@ -5304,6 +5305,27 @@ components:
5304
5305
  description: |
5305
5306
  Discord message settings. Supports plain text (2,000 chars), rich embeds (up to 10), native polls, forum posts, threads, and announcement crossposts. Media attachments support images (JPEG, PNG, GIF, WebP), videos (MP4), and documents (up to 10 files, 25 MB each). Webhook identity (username + avatar) can be customized per-account via PATCH /v1/connect/discord or per-post via webhookUsername/webhookAvatarUrl.
5306
5307
 
5308
+ SlackPlatformData:
5309
+ type: object
5310
+ properties:
5311
+ threadTs:
5312
+ type: string
5313
+ description: 'Parent message ts to post this message as a thread reply (e.g. "1503435956.000247").'
5314
+ unfurlLinks:
5315
+ type: boolean
5316
+ description: 'Expand links in the message into preview cards. Default true.'
5317
+ unfurlMedia:
5318
+ type: boolean
5319
+ description: 'Expand media links into inline previews. Default true.'
5320
+ username:
5321
+ type: string
5322
+ description: 'Override the bot display name for this message only (requires no setup; shown with an APP badge). Does not change the app identity in the sidebar.'
5323
+ iconUrl:
5324
+ type: string
5325
+ description: 'Override the bot avatar image URL for this message only.'
5326
+ description: |
5327
+ Slack message settings. Posts mrkdwn text (up to 40,000 chars; Slack truncates beyond that) to the channel fixed by the connected account, with up to 10 media files per post uploaded via Slack's file API (the text becomes the caption). The target channel is chosen at connect time — one connected account per channel — so channelId is NOT accepted here (a 400 is returned); connect the desired channel via /v1/connect/slack and target its accountId. Messages over 4,000 characters cannot be edited later (Slack's edit limit is stricter than its post limit).
5328
+
5307
5329
  DiscordScheduledEvent:
5308
5330
  type: object
5309
5331
  description: |
@@ -5406,7 +5428,7 @@ components:
5406
5428
  _id: { type: string }
5407
5429
  platform:
5408
5430
  type: string
5409
- enum: [tiktok, instagram, facebook, youtube, linkedin, twitter, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord, whatsapp, linkedinads, metaads, pinterestads, tiktokads, xads, googleads, openaiads]
5431
+ enum: [tiktok, instagram, facebook, youtube, linkedin, twitter, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord, slack, whatsapp, linkedinads, metaads, pinterestads, tiktokads, xads, googleads, openaiads]
5410
5432
  profileId:
5411
5433
  oneOf:
5412
5434
  - type: string
@@ -8330,7 +8352,7 @@ paths:
8330
8352
  properties:
8331
8353
  platform:
8332
8354
  type: string
8333
- enum: [twitter, instagram, tiktok, youtube, facebook, linkedin, bluesky, threads, reddit, pinterest, telegram, snapchat, googlebusiness, discord]
8355
+ enum: [twitter, instagram, tiktok, youtube, facebook, linkedin, bluesky, threads, reddit, pinterest, telegram, snapchat, googlebusiness, discord, slack]
8334
8356
  accountId: { type: string, description: 'Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.' }
8335
8357
  customContent: { type: string }
8336
8358
  platformSpecificData: { type: object }
@@ -12176,6 +12198,7 @@ paths:
12176
12198
  - $ref: '#/components/schemas/RedditPlatformData'
12177
12199
  - $ref: '#/components/schemas/BlueskyPlatformData'
12178
12200
  - $ref: '#/components/schemas/DiscordPlatformData'
12201
+ - $ref: '#/components/schemas/SlackPlatformData'
12179
12202
  scheduledFor: { type: string, format: date-time }
12180
12203
  publishNow: { type: boolean, default: false }
12181
12204
  isDraft:
@@ -13856,7 +13879,7 @@ paths:
13856
13879
  description: Filter by platform
13857
13880
  schema:
13858
13881
  type: string
13859
- enum: [facebook, instagram, linkedin, twitter, tiktok, youtube, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord, whatsapp]
13882
+ enum: [facebook, instagram, linkedin, twitter, tiktok, youtube, threads, pinterest, reddit, bluesky, googlebusiness, telegram, snapchat, discord, slack, whatsapp]
13860
13883
  - name: status
13861
13884
  in: query
13862
13885
  description: Filter by health status
@@ -14344,7 +14367,7 @@ paths:
14344
14367
  required: true
14345
14368
  schema:
14346
14369
  type: string
14347
- enum: [facebook, instagram, linkedin, twitter, tiktok, youtube, threads, reddit, pinterest, bluesky, googlebusiness, telegram, snapchat, discord, whatsapp]
14370
+ enum: [facebook, instagram, linkedin, twitter, tiktok, youtube, threads, reddit, pinterest, bluesky, googlebusiness, telegram, snapchat, discord, slack, whatsapp]
14348
14371
  description: Social media platform to connect
14349
14372
  - name: profileId
14350
14373
  in: query
@@ -22970,7 +22993,16 @@ paths:
22970
22993
  error: { type: string }
22971
22994
  code:
22972
22995
  type: string
22973
- enum: [PLATFORM_LIMITATION]
22996
+ description: "Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to."
22997
+ enum: [PLATFORM_LIMITATION, MISSING_PARTICIPANT]
22998
+ platformError:
22999
+ type: object
23000
+ description: "Instagram/Facebook only. Meta's own diagnostic fields for the rejected send, passed through verbatim so you can tell failure classes apart and quote them to Meta. Absent when the failure did not come from Meta."
23001
+ properties:
23002
+ code: { type: integer, description: "Meta error code" }
23003
+ subcode: { type: integer, description: "Meta error_subcode" }
23004
+ fbtraceId: { type: string, description: "Meta fbtrace_id, quote this in a Meta bug report" }
23005
+ type: { type: string, description: "Meta error type (e.g. OAuthException)" }
22974
23006
  '401': { $ref: '#/components/responses/Unauthorized' }
22975
23007
  '403':
22976
23008
  description: Inbox addon required
@@ -36,7 +36,7 @@ describe Zernio::AccountWithFollowerStats do
36
36
  describe 'test attribute "platform"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
40
40
  # validator.allowable_values.each do |value|
41
41
  # expect { instance.platform = value }.not_to raise_error
42
42
  # end
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
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::SendInboxMessage400ResponsePlatformError
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zernio::SendInboxMessage400ResponsePlatformError do
21
+ #let(:instance) { Zernio::SendInboxMessage400ResponsePlatformError.new }
22
+
23
+ describe 'test an instance of SendInboxMessage400ResponsePlatformError' do
24
+ it 'should create an instance of SendInboxMessage400ResponsePlatformError' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zernio::SendInboxMessage400ResponsePlatformError)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "code"' 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 "subcode"' 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 "fbtrace_id"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "type"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ end
@@ -36,11 +36,17 @@ describe Zernio::SendInboxMessage400Response do
36
36
  describe 'test attribute "code"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PLATFORM_LIMITATION"])
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PLATFORM_LIMITATION", "MISSING_PARTICIPANT"])
40
40
  # validator.allowable_values.each do |value|
41
41
  # expect { instance.code = value }.not_to raise_error
42
42
  # end
43
43
  end
44
44
  end
45
45
 
46
+ describe 'test attribute "platform_error"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
49
+ end
50
+ end
51
+
46
52
  end
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
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::SendPrivateReplyToComment400Response
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zernio::SendPrivateReplyToComment400Response do
21
+ #let(:instance) { Zernio::SendPrivateReplyToComment400Response.new }
22
+
23
+ describe 'test an instance of SendPrivateReplyToComment400Response' do
24
+ it 'should create an instance of SendPrivateReplyToComment400Response' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zernio::SendPrivateReplyToComment400Response)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "error"' 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 "code"' 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', ["PLATFORM_LIMITATION"])
40
+ # validator.allowable_values.each do |value|
41
+ # expect { instance.code = value }.not_to raise_error
42
+ # end
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,60 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
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::SlackPlatformData
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zernio::SlackPlatformData do
21
+ #let(:instance) { Zernio::SlackPlatformData.new }
22
+
23
+ describe 'test an instance of SlackPlatformData' do
24
+ it 'should create an instance of SlackPlatformData' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zernio::SlackPlatformData)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "thread_ts"' 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 "unfurl_links"' 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 "unfurl_media"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "username"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "icon_url"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ end
@@ -36,7 +36,7 @@ describe Zernio::SocialAccount do
36
36
  describe 'test attribute "platform"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
40
40
  # validator.allowable_values.each do |value|
41
41
  # expect { instance.platform = value }.not_to raise_error
42
42
  # end
@@ -30,7 +30,7 @@ describe Zernio::ValidatePostRequestPlatformsInner do
30
30
  describe 'test attribute "platform"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord"])
33
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["twitter", "instagram", "tiktok", "youtube", "facebook", "linkedin", "bluesky", "threads", "reddit", "pinterest", "telegram", "snapchat", "googlebusiness", "discord", "slack"])
34
34
  # validator.allowable_values.each do |value|
35
35
  # expect { instance.platform = value }.not_to raise_error
36
36
  # end
Binary file