late-sdk 0.0.908 → 0.0.910
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 +32 -19
- data/docs/AdAccountsApi.md +92 -16
- data/docs/AdCampaignsApi.md +20 -20
- data/docs/AdCreativesApi.md +222 -0
- data/docs/AdInsightsApi.md +16 -16
- data/docs/AdTargetingApi.md +4 -4
- data/docs/CheckPhoneNumberAvailability200Response.md +1 -1
- data/docs/ConversionsApi.md +8 -8
- data/docs/GetAdComments200ResponseMeta.md +1 -1
- data/docs/ListPartnershipAdContent200Response.md +18 -0
- data/docs/ListPartnershipAdContent200ResponseMediaInner.md +30 -0
- data/docs/ListPartnershipAdPermissions200Response.md +18 -0
- data/docs/ListPartnershipAdPermissions200ResponsePermissionsInner.md +22 -0
- data/docs/ListPhoneNumberCountries200ResponseCountriesInnerTypesInner.md +1 -1
- data/docs/ListTikTokAdPixels200Response.md +20 -0
- data/docs/ListTikTokAdPixels200ResponsePixelsInner.md +26 -0
- data/docs/ListTikTokAdPixels200ResponsePixelsInnerEventDetailsInner.md +22 -0
- data/docs/ReachAndFrequencyApi.md +16 -16
- data/docs/SetPartnershipAdPermission200Response.md +18 -0
- data/docs/SetPartnershipAdPermissionRequest.md +22 -0
- data/docs/SubmitPhoneNumberKyc200Response.md +1 -1
- data/lib/zernio-sdk/api/ad_accounts_api.rb +89 -14
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +10 -10
- data/lib/zernio-sdk/api/ad_creatives_api.rb +218 -0
- data/lib/zernio-sdk/api/ad_insights_api.rb +8 -8
- data/lib/zernio-sdk/api/ad_targeting_api.rb +2 -2
- data/lib/zernio-sdk/api/conversions_api.rb +4 -4
- data/lib/zernio-sdk/api/reach_and_frequency_api.rb +8 -8
- data/lib/zernio-sdk/models/check_phone_number_availability200_response.rb +1 -1
- data/lib/zernio-sdk/models/get_ad_comments200_response_meta.rb +1 -1
- data/lib/zernio-sdk/models/list_partnership_ad_content200_response.rb +149 -0
- data/lib/zernio-sdk/models/list_partnership_ad_content200_response_media_inner.rb +205 -0
- data/lib/zernio-sdk/models/list_partnership_ad_permissions200_response.rb +149 -0
- data/lib/zernio-sdk/models/list_partnership_ad_permissions200_response_permissions_inner.rb +165 -0
- data/lib/zernio-sdk/models/list_phone_number_countries200_response_countries_inner_types_inner.rb +1 -1
- data/lib/zernio-sdk/models/list_tik_tok_ad_pixels200_response.rb +158 -0
- data/lib/zernio-sdk/models/list_tik_tok_ad_pixels200_response_pixels_inner.rb +187 -0
- data/lib/zernio-sdk/models/list_tik_tok_ad_pixels200_response_pixels_inner_event_details_inner.rb +166 -0
- data/lib/zernio-sdk/models/set_partnership_ad_permission200_response.rb +147 -0
- data/lib/zernio-sdk/models/set_partnership_ad_permission_request.rb +219 -0
- data/lib/zernio-sdk/models/submit_phone_number_kyc200_response.rb +1 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +9 -0
- data/openapi.yaml +675 -171
- data/spec/api/ad_accounts_api_spec.rb +21 -7
- data/spec/api/ad_campaigns_api_spec.rb +5 -5
- data/spec/api/ad_creatives_api_spec.rb +40 -0
- data/spec/api/ad_insights_api_spec.rb +4 -4
- data/spec/api/ad_targeting_api_spec.rb +1 -1
- data/spec/api/conversions_api_spec.rb +2 -2
- data/spec/api/reach_and_frequency_api_spec.rb +4 -4
- data/spec/models/list_partnership_ad_content200_response_media_inner_spec.rb +72 -0
- data/spec/models/list_partnership_ad_content200_response_spec.rb +36 -0
- data/spec/models/list_partnership_ad_permissions200_response_permissions_inner_spec.rb +48 -0
- data/spec/models/list_partnership_ad_permissions200_response_spec.rb +36 -0
- data/spec/models/list_tik_tok_ad_pixels200_response_pixels_inner_event_details_inner_spec.rb +48 -0
- data/spec/models/list_tik_tok_ad_pixels200_response_pixels_inner_spec.rb +60 -0
- data/spec/models/list_tik_tok_ad_pixels200_response_spec.rb +42 -0
- data/spec/models/set_partnership_ad_permission200_response_spec.rb +36 -0
- data/spec/models/set_partnership_ad_permission_request_spec.rb +48 -0
- data/zernio-sdk-0.0.910.gem +0 -0
- metadata +38 -2
- data/zernio-sdk-0.0.908.gem +0 -0
|
@@ -0,0 +1,219 @@
|
|
|
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 SetPartnershipAdPermissionRequest < ApiModelBase
|
|
18
|
+
attr_accessor :account_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :creator_username
|
|
21
|
+
|
|
22
|
+
attr_accessor :revoke
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'account_id' => :'accountId',
|
|
28
|
+
:'creator_username' => :'creatorUsername',
|
|
29
|
+
:'revoke' => :'revoke'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'account_id' => :'String',
|
|
47
|
+
:'creator_username' => :'String',
|
|
48
|
+
:'revoke' => :'Boolean'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List of attributes with nullable: true
|
|
53
|
+
def self.openapi_nullable
|
|
54
|
+
Set.new([
|
|
55
|
+
])
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
if (!attributes.is_a?(Hash))
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::SetPartnershipAdPermissionRequest` initialize method"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::SetPartnershipAdPermissionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'account_id')
|
|
75
|
+
self.account_id = attributes[:'account_id']
|
|
76
|
+
else
|
|
77
|
+
self.account_id = nil
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'creator_username')
|
|
81
|
+
self.creator_username = attributes[:'creator_username']
|
|
82
|
+
else
|
|
83
|
+
self.creator_username = nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'revoke')
|
|
87
|
+
self.revoke = attributes[:'revoke']
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
92
|
+
# @return Array for valid properties with the reasons
|
|
93
|
+
def list_invalid_properties
|
|
94
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
95
|
+
invalid_properties = Array.new
|
|
96
|
+
if @account_id.nil?
|
|
97
|
+
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
pattern = Regexp.new(/^[a-fA-F0-9]{24}$/)
|
|
101
|
+
if @account_id !~ pattern
|
|
102
|
+
invalid_properties.push("invalid value for \"account_id\", must conform to the pattern #{pattern}.")
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if @creator_username.nil?
|
|
106
|
+
invalid_properties.push('invalid value for "creator_username", creator_username cannot be nil.')
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if @creator_username.to_s.length < 1
|
|
110
|
+
invalid_properties.push('invalid value for "creator_username", the character length must be greater than or equal to 1.')
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
invalid_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Check to see if the all the properties in the model are valid
|
|
117
|
+
# @return true if the model is valid
|
|
118
|
+
def valid?
|
|
119
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
120
|
+
return false if @account_id.nil?
|
|
121
|
+
return false if @account_id !~ Regexp.new(/^[a-fA-F0-9]{24}$/)
|
|
122
|
+
return false if @creator_username.nil?
|
|
123
|
+
return false if @creator_username.to_s.length < 1
|
|
124
|
+
true
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Custom attribute writer method with validation
|
|
128
|
+
# @param [Object] account_id Value to be assigned
|
|
129
|
+
def account_id=(account_id)
|
|
130
|
+
if account_id.nil?
|
|
131
|
+
fail ArgumentError, 'account_id cannot be nil'
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
pattern = Regexp.new(/^[a-fA-F0-9]{24}$/)
|
|
135
|
+
if account_id !~ pattern
|
|
136
|
+
fail ArgumentError, "invalid value for \"account_id\", must conform to the pattern #{pattern}."
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
@account_id = account_id
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Custom attribute writer method with validation
|
|
143
|
+
# @param [Object] creator_username Value to be assigned
|
|
144
|
+
def creator_username=(creator_username)
|
|
145
|
+
if creator_username.nil?
|
|
146
|
+
fail ArgumentError, 'creator_username cannot be nil'
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if creator_username.to_s.length < 1
|
|
150
|
+
fail ArgumentError, 'invalid value for "creator_username", the character length must be greater than or equal to 1.'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@creator_username = creator_username
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Checks equality by comparing each attribute.
|
|
157
|
+
# @param [Object] Object to be compared
|
|
158
|
+
def ==(o)
|
|
159
|
+
return true if self.equal?(o)
|
|
160
|
+
self.class == o.class &&
|
|
161
|
+
account_id == o.account_id &&
|
|
162
|
+
creator_username == o.creator_username &&
|
|
163
|
+
revoke == o.revoke
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# @see the `==` method
|
|
167
|
+
# @param [Object] Object to be compared
|
|
168
|
+
def eql?(o)
|
|
169
|
+
self == o
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Calculates hash code according to all attributes.
|
|
173
|
+
# @return [Integer] Hash code
|
|
174
|
+
def hash
|
|
175
|
+
[account_id, creator_username, revoke].hash
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Builds the object from hash
|
|
179
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
180
|
+
# @return [Object] Returns the model itself
|
|
181
|
+
def self.build_from_hash(attributes)
|
|
182
|
+
return nil unless attributes.is_a?(Hash)
|
|
183
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
184
|
+
transformed_hash = {}
|
|
185
|
+
openapi_types.each_pair do |key, type|
|
|
186
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
187
|
+
transformed_hash["#{key}"] = nil
|
|
188
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
189
|
+
# check to ensure the input is an array given that the attribute
|
|
190
|
+
# is documented as an array but the input is not
|
|
191
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
192
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
193
|
+
end
|
|
194
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
195
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
new(transformed_hash)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Returns the object in the form of hash
|
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
|
203
|
+
def to_hash
|
|
204
|
+
hash = {}
|
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
206
|
+
value = self.send(attr)
|
|
207
|
+
if value.nil?
|
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
hash[param] = _to_hash(value)
|
|
213
|
+
end
|
|
214
|
+
hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
end
|
|
@@ -17,7 +17,7 @@ module Zernio
|
|
|
17
17
|
class SubmitPhoneNumberKyc200Response < ApiModelBase
|
|
18
18
|
attr_accessor :status
|
|
19
19
|
|
|
20
|
-
# True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the
|
|
20
|
+
# True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until we get it, from regular stock the moment it returns or sourced by the carrier (usually 2 to 4 weeks), and is not billed until active. Releasing it (DELETE /v1/phone-numbers/{id}) cancels the pre-order. A pre-order is one number: `quantity` above 1 is rejected with 400.
|
|
21
21
|
attr_accessor :pre_order
|
|
22
22
|
|
|
23
23
|
attr_accessor :phone_number
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -1157,6 +1157,10 @@ require 'zernio-sdk/models/list_logs200_response'
|
|
|
1157
1157
|
require 'zernio-sdk/models/list_logs200_response_logs_inner'
|
|
1158
1158
|
require 'zernio-sdk/models/list_logs200_response_pagination'
|
|
1159
1159
|
require 'zernio-sdk/models/list_meta_businesses200_response'
|
|
1160
|
+
require 'zernio-sdk/models/list_partnership_ad_content200_response'
|
|
1161
|
+
require 'zernio-sdk/models/list_partnership_ad_content200_response_media_inner'
|
|
1162
|
+
require 'zernio-sdk/models/list_partnership_ad_permissions200_response'
|
|
1163
|
+
require 'zernio-sdk/models/list_partnership_ad_permissions200_response_permissions_inner'
|
|
1160
1164
|
require 'zernio-sdk/models/list_phone_number_countries200_response'
|
|
1161
1165
|
require 'zernio-sdk/models/list_phone_number_countries200_response_countries_inner'
|
|
1162
1166
|
require 'zernio-sdk/models/list_phone_number_countries200_response_countries_inner_types_inner'
|
|
@@ -1193,6 +1197,9 @@ require 'zernio-sdk/models/list_sms_sender_ids200_response_budget_pending_reques
|
|
|
1193
1197
|
require 'zernio-sdk/models/list_sms_sender_ids200_response_sender_ids_inner'
|
|
1194
1198
|
require 'zernio-sdk/models/list_snapchat_profiles200_response'
|
|
1195
1199
|
require 'zernio-sdk/models/list_snapchat_profiles200_response_public_profiles_inner'
|
|
1200
|
+
require 'zernio-sdk/models/list_tik_tok_ad_pixels200_response'
|
|
1201
|
+
require 'zernio-sdk/models/list_tik_tok_ad_pixels200_response_pixels_inner'
|
|
1202
|
+
require 'zernio-sdk/models/list_tik_tok_ad_pixels200_response_pixels_inner_event_details_inner'
|
|
1196
1203
|
require 'zernio-sdk/models/list_tracking_tag_shared_accounts200_response'
|
|
1197
1204
|
require 'zernio-sdk/models/list_tracking_tags200_response'
|
|
1198
1205
|
require 'zernio-sdk/models/list_users200_response'
|
|
@@ -1539,6 +1546,8 @@ require 'zernio-sdk/models/set_conversation_thread_control_request'
|
|
|
1539
1546
|
require 'zernio-sdk/models/set_instagram_ice_breakers_request'
|
|
1540
1547
|
require 'zernio-sdk/models/set_instagram_ice_breakers_request_ice_breakers_inner'
|
|
1541
1548
|
require 'zernio-sdk/models/set_messenger_menu_request'
|
|
1549
|
+
require 'zernio-sdk/models/set_partnership_ad_permission200_response'
|
|
1550
|
+
require 'zernio-sdk/models/set_partnership_ad_permission_request'
|
|
1542
1551
|
require 'zernio-sdk/models/set_reddit_post_flair_request'
|
|
1543
1552
|
require 'zernio-sdk/models/set_telegram_commands_request'
|
|
1544
1553
|
require 'zernio-sdk/models/set_telegram_commands_request_commands_inner'
|