late-sdk 0.0.1305 → 0.0.1306
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 +3 -0
- data/docs/ConnectApi.md +70 -0
- data/docs/ConnectWhopAdsCredentials200Response.md +24 -0
- data/docs/ConnectWhopAdsCredentialsRequest.md +24 -0
- data/docs/TrackingTagsApi.md +1 -1
- data/lib/zernio-sdk/api/accounts_api.rb +1 -1
- data/lib/zernio-sdk/api/connect_api.rb +68 -0
- data/lib/zernio-sdk/api/tracking_tags_api.rb +2 -2
- data/lib/zernio-sdk/models/account_with_follower_stats.rb +2 -2
- data/lib/zernio-sdk/models/connect_whop_ads_credentials200_response.rb +176 -0
- data/lib/zernio-sdk/models/connect_whop_ads_credentials_request.rb +212 -0
- data/lib/zernio-sdk/models/create_tracking_tag201_response.rb +2 -2
- data/lib/zernio-sdk/models/get_tracking_tag200_response.rb +2 -2
- data/lib/zernio-sdk/models/get_tracking_tag_stats200_response.rb +2 -2
- data/lib/zernio-sdk/models/get_tracking_tag_store_install200_response.rb +2 -2
- data/lib/zernio-sdk/models/install_tracking_tag_on_store200_response.rb +2 -2
- data/lib/zernio-sdk/models/list_tracking_tags200_response.rb +2 -2
- data/lib/zernio-sdk/models/remove_tracking_tag_from_store200_response.rb +2 -2
- data/lib/zernio-sdk/models/social_account.rb +2 -2
- data/lib/zernio-sdk/models/tracking_tag.rb +2 -2
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +2 -0
- data/openapi.yaml +1 -1
- data/spec/api/connect_api_spec.rb +12 -0
- data/spec/api/tracking_tags_api_spec.rb +1 -1
- data/spec/models/account_with_follower_stats_spec.rb +1 -1
- data/spec/models/connect_whop_ads_credentials200_response_spec.rb +54 -0
- data/spec/models/connect_whop_ads_credentials_request_spec.rb +54 -0
- data/spec/models/create_tracking_tag201_response_spec.rb +1 -1
- data/spec/models/get_tracking_tag200_response_spec.rb +1 -1
- data/spec/models/get_tracking_tag_stats200_response_spec.rb +1 -1
- data/spec/models/get_tracking_tag_store_install200_response_spec.rb +1 -1
- data/spec/models/install_tracking_tag_on_store200_response_spec.rb +1 -1
- data/spec/models/list_tracking_tags200_response_spec.rb +1 -1
- data/spec/models/remove_tracking_tag_from_store200_response_spec.rb +1 -1
- data/spec/models/social_account_spec.rb +1 -1
- data/spec/models/tracking_tag_spec.rb +1 -1
- data/zernio-sdk-0.0.1306.gem +0 -0
- metadata +10 -2
- data/zernio-sdk-0.0.1305.gem +0 -0
|
@@ -0,0 +1,212 @@
|
|
|
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). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.223.0
|
|
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 ConnectWhopAdsCredentialsRequest < ApiModelBase
|
|
18
|
+
# Account API key from the Whop dashboard.
|
|
19
|
+
attr_accessor :api_key
|
|
20
|
+
|
|
21
|
+
# Your Zernio profile ID
|
|
22
|
+
attr_accessor :profile_id
|
|
23
|
+
|
|
24
|
+
# Optional state passthrough for the connect flow.
|
|
25
|
+
attr_accessor :state
|
|
26
|
+
|
|
27
|
+
# Optional URL to redirect to after successful connection, echoed back as redirectUrl.
|
|
28
|
+
attr_accessor :redirect_url
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'api_key' => :'apiKey',
|
|
34
|
+
:'profile_id' => :'profileId',
|
|
35
|
+
:'state' => :'state',
|
|
36
|
+
:'redirect_url' => :'redirect_url'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Returns attribute mapping this model knows about
|
|
41
|
+
def self.acceptable_attribute_map
|
|
42
|
+
attribute_map
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Returns all the JSON keys this model knows about
|
|
46
|
+
def self.acceptable_attributes
|
|
47
|
+
acceptable_attribute_map.values
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Attribute type mapping.
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'api_key' => :'String',
|
|
54
|
+
:'profile_id' => :'String',
|
|
55
|
+
:'state' => :'String',
|
|
56
|
+
:'redirect_url' => :'String'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# List of attributes with nullable: true
|
|
61
|
+
def self.openapi_nullable
|
|
62
|
+
Set.new([
|
|
63
|
+
])
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
|
+
def initialize(attributes = {})
|
|
69
|
+
if (!attributes.is_a?(Hash))
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ConnectWhopAdsCredentialsRequest` initialize method"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ConnectWhopAdsCredentialsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
|
+
end
|
|
79
|
+
h[k.to_sym] = v
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'api_key')
|
|
83
|
+
self.api_key = attributes[:'api_key']
|
|
84
|
+
else
|
|
85
|
+
self.api_key = nil
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'profile_id')
|
|
89
|
+
self.profile_id = attributes[:'profile_id']
|
|
90
|
+
else
|
|
91
|
+
self.profile_id = nil
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'state')
|
|
95
|
+
self.state = attributes[:'state']
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'redirect_url')
|
|
99
|
+
self.redirect_url = attributes[:'redirect_url']
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
104
|
+
# @return Array for valid properties with the reasons
|
|
105
|
+
def list_invalid_properties
|
|
106
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
107
|
+
invalid_properties = Array.new
|
|
108
|
+
if @api_key.nil?
|
|
109
|
+
invalid_properties.push('invalid value for "api_key", api_key cannot be nil.')
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if @profile_id.nil?
|
|
113
|
+
invalid_properties.push('invalid value for "profile_id", profile_id cannot be nil.')
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
invalid_properties
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Check to see if the all the properties in the model are valid
|
|
120
|
+
# @return true if the model is valid
|
|
121
|
+
def valid?
|
|
122
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
123
|
+
return false if @api_key.nil?
|
|
124
|
+
return false if @profile_id.nil?
|
|
125
|
+
true
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Custom attribute writer method with validation
|
|
129
|
+
# @param [Object] api_key Value to be assigned
|
|
130
|
+
def api_key=(api_key)
|
|
131
|
+
if api_key.nil?
|
|
132
|
+
fail ArgumentError, 'api_key cannot be nil'
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
@api_key = api_key
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Custom attribute writer method with validation
|
|
139
|
+
# @param [Object] profile_id Value to be assigned
|
|
140
|
+
def profile_id=(profile_id)
|
|
141
|
+
if profile_id.nil?
|
|
142
|
+
fail ArgumentError, 'profile_id cannot be nil'
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
@profile_id = profile_id
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Checks equality by comparing each attribute.
|
|
149
|
+
# @param [Object] Object to be compared
|
|
150
|
+
def ==(o)
|
|
151
|
+
return true if self.equal?(o)
|
|
152
|
+
self.class == o.class &&
|
|
153
|
+
api_key == o.api_key &&
|
|
154
|
+
profile_id == o.profile_id &&
|
|
155
|
+
state == o.state &&
|
|
156
|
+
redirect_url == o.redirect_url
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# @see the `==` method
|
|
160
|
+
# @param [Object] Object to be compared
|
|
161
|
+
def eql?(o)
|
|
162
|
+
self == o
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Calculates hash code according to all attributes.
|
|
166
|
+
# @return [Integer] Hash code
|
|
167
|
+
def hash
|
|
168
|
+
[api_key, profile_id, state, redirect_url].hash
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Builds the object from hash
|
|
172
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
173
|
+
# @return [Object] Returns the model itself
|
|
174
|
+
def self.build_from_hash(attributes)
|
|
175
|
+
return nil unless attributes.is_a?(Hash)
|
|
176
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
177
|
+
transformed_hash = {}
|
|
178
|
+
openapi_types.each_pair do |key, type|
|
|
179
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
180
|
+
transformed_hash["#{key}"] = nil
|
|
181
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
182
|
+
# check to ensure the input is an array given that the attribute
|
|
183
|
+
# is documented as an array but the input is not
|
|
184
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
185
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
186
|
+
end
|
|
187
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
188
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
new(transformed_hash)
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Returns the object in the form of hash
|
|
195
|
+
# @return [Hash] Returns the object in the form of hash
|
|
196
|
+
def to_hash
|
|
197
|
+
hash = {}
|
|
198
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
199
|
+
value = self.send(attr)
|
|
200
|
+
if value.nil?
|
|
201
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
202
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
hash[param] = _to_hash(value)
|
|
206
|
+
end
|
|
207
|
+
hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
end
|
|
@@ -110,7 +110,7 @@ module Zernio
|
|
|
110
110
|
# @return true if the model is valid
|
|
111
111
|
def valid?
|
|
112
112
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
113
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads"])
|
|
113
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads", "whopads"])
|
|
114
114
|
return false unless platform_validator.valid?(@platform)
|
|
115
115
|
true
|
|
116
116
|
end
|
|
@@ -118,7 +118,7 @@ module Zernio
|
|
|
118
118
|
# Custom attribute writer method checking allowed values (enum).
|
|
119
119
|
# @param [Object] platform Object to be assigned
|
|
120
120
|
def platform=(platform)
|
|
121
|
-
validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads"])
|
|
121
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads", "whopads"])
|
|
122
122
|
unless validator.valid?(platform)
|
|
123
123
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
124
124
|
end
|
|
@@ -110,7 +110,7 @@ module Zernio
|
|
|
110
110
|
# @return true if the model is valid
|
|
111
111
|
def valid?
|
|
112
112
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
113
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads"])
|
|
113
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads", "whopads"])
|
|
114
114
|
return false unless platform_validator.valid?(@platform)
|
|
115
115
|
true
|
|
116
116
|
end
|
|
@@ -118,7 +118,7 @@ module Zernio
|
|
|
118
118
|
# Custom attribute writer method checking allowed values (enum).
|
|
119
119
|
# @param [Object] platform Object to be assigned
|
|
120
120
|
def platform=(platform)
|
|
121
|
-
validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads"])
|
|
121
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads", "whopads"])
|
|
122
122
|
unless validator.valid?(platform)
|
|
123
123
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
124
124
|
end
|
|
@@ -110,7 +110,7 @@ module Zernio
|
|
|
110
110
|
# @return true if the model is valid
|
|
111
111
|
def valid?
|
|
112
112
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
113
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads"])
|
|
113
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads", "whopads"])
|
|
114
114
|
return false unless platform_validator.valid?(@platform)
|
|
115
115
|
true
|
|
116
116
|
end
|
|
@@ -118,7 +118,7 @@ module Zernio
|
|
|
118
118
|
# Custom attribute writer method checking allowed values (enum).
|
|
119
119
|
# @param [Object] platform Object to be assigned
|
|
120
120
|
def platform=(platform)
|
|
121
|
-
validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads"])
|
|
121
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads", "whopads"])
|
|
122
122
|
unless validator.valid?(platform)
|
|
123
123
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
124
124
|
end
|
|
@@ -110,7 +110,7 @@ module Zernio
|
|
|
110
110
|
# @return true if the model is valid
|
|
111
111
|
def valid?
|
|
112
112
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
113
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads"])
|
|
113
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads", "whopads"])
|
|
114
114
|
return false unless platform_validator.valid?(@platform)
|
|
115
115
|
true
|
|
116
116
|
end
|
|
@@ -118,7 +118,7 @@ module Zernio
|
|
|
118
118
|
# Custom attribute writer method checking allowed values (enum).
|
|
119
119
|
# @param [Object] platform Object to be assigned
|
|
120
120
|
def platform=(platform)
|
|
121
|
-
validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads"])
|
|
121
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads", "whopads"])
|
|
122
122
|
unless validator.valid?(platform)
|
|
123
123
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
124
124
|
end
|
|
@@ -110,7 +110,7 @@ module Zernio
|
|
|
110
110
|
# @return true if the model is valid
|
|
111
111
|
def valid?
|
|
112
112
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
113
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads"])
|
|
113
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads", "whopads"])
|
|
114
114
|
return false unless platform_validator.valid?(@platform)
|
|
115
115
|
true
|
|
116
116
|
end
|
|
@@ -118,7 +118,7 @@ module Zernio
|
|
|
118
118
|
# Custom attribute writer method checking allowed values (enum).
|
|
119
119
|
# @param [Object] platform Object to be assigned
|
|
120
120
|
def platform=(platform)
|
|
121
|
-
validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads"])
|
|
121
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads", "whopads"])
|
|
122
122
|
unless validator.valid?(platform)
|
|
123
123
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
124
124
|
end
|
|
@@ -112,7 +112,7 @@ module Zernio
|
|
|
112
112
|
# @return true if the model is valid
|
|
113
113
|
def valid?
|
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
115
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads"])
|
|
115
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads", "whopads"])
|
|
116
116
|
return false unless platform_validator.valid?(@platform)
|
|
117
117
|
true
|
|
118
118
|
end
|
|
@@ -120,7 +120,7 @@ module Zernio
|
|
|
120
120
|
# Custom attribute writer method checking allowed values (enum).
|
|
121
121
|
# @param [Object] platform Object to be assigned
|
|
122
122
|
def platform=(platform)
|
|
123
|
-
validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads"])
|
|
123
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads", "whopads"])
|
|
124
124
|
unless validator.valid?(platform)
|
|
125
125
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
126
126
|
end
|
|
@@ -110,7 +110,7 @@ module Zernio
|
|
|
110
110
|
# @return true if the model is valid
|
|
111
111
|
def valid?
|
|
112
112
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
113
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads"])
|
|
113
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads", "whopads"])
|
|
114
114
|
return false unless platform_validator.valid?(@platform)
|
|
115
115
|
true
|
|
116
116
|
end
|
|
@@ -118,7 +118,7 @@ module Zernio
|
|
|
118
118
|
# Custom attribute writer method checking allowed values (enum).
|
|
119
119
|
# @param [Object] platform Object to be assigned
|
|
120
120
|
def platform=(platform)
|
|
121
|
-
validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads"])
|
|
121
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "tiktokads", "googleads", "xads", "openaiads", "linkedinads", "pinterestads", "whopads"])
|
|
122
122
|
unless validator.valid?(platform)
|
|
123
123
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
124
124
|
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", "slack", "whatsapp", "shopify", "wordpress", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads", "sms", "phone", "rcs"])
|
|
245
|
+
platform_validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "shopify", "wordpress", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads", "sms", "phone", "rcs", "whopads"])
|
|
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", "slack", "whatsapp", "shopify", "wordpress", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads", "sms", "phone", "rcs"])
|
|
265
|
+
validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "slack", "whatsapp", "shopify", "wordpress", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads", "sms", "phone", "rcs", "whopads"])
|
|
266
266
|
unless validator.valid?(platform)
|
|
267
267
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
268
268
|
end
|
|
@@ -276,7 +276,7 @@ module Zernio
|
|
|
276
276
|
return false if @id.nil?
|
|
277
277
|
return false if @name.nil?
|
|
278
278
|
return false if @platform.nil?
|
|
279
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads"])
|
|
279
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads", "whopads"])
|
|
280
280
|
return false unless platform_validator.valid?(@platform)
|
|
281
281
|
return false if @kind.nil?
|
|
282
282
|
kind_validator = EnumAttributeValidator.new('String', ["pixel", "tag", "insight_tag"])
|
|
@@ -310,7 +310,7 @@ module Zernio
|
|
|
310
310
|
# Custom attribute writer method checking allowed values (enum).
|
|
311
311
|
# @param [Object] platform Object to be assigned
|
|
312
312
|
def platform=(platform)
|
|
313
|
-
validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads"])
|
|
313
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "openaiads", "tiktokads", "googleads", "xads", "linkedinads", "pinterestads", "whopads"])
|
|
314
314
|
unless validator.valid?(platform)
|
|
315
315
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
316
316
|
end
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -364,6 +364,8 @@ require 'zernio-sdk/models/connect_whats_app_credentials_request'
|
|
|
364
364
|
require 'zernio-sdk/models/connect_whats_app_embedded_signup200_response'
|
|
365
365
|
require 'zernio-sdk/models/connect_whats_app_embedded_signup200_response_account'
|
|
366
366
|
require 'zernio-sdk/models/connect_whats_app_embedded_signup_request'
|
|
367
|
+
require 'zernio-sdk/models/connect_whop_ads_credentials200_response'
|
|
368
|
+
require 'zernio-sdk/models/connect_whop_ads_credentials_request'
|
|
367
369
|
require 'zernio-sdk/models/connect_word_press_with_application_password200_response'
|
|
368
370
|
require 'zernio-sdk/models/connect_word_press_with_application_password200_response_account'
|
|
369
371
|
require 'zernio-sdk/models/connect_word_press_with_application_password_request'
|