late-sdk 0.0.539 → 0.0.541

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 (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -42
  3. data/docs/AdAudiencesApi.md +5 -5
  4. data/docs/AdCampaignsApi.md +0 -142
  5. data/docs/AdsApi.md +18 -700
  6. data/docs/InboxApi.md +79 -0
  7. data/docs/InboxWebhookMessageAttachmentsInner.md +1 -1
  8. data/docs/SMSApi.md +1 -276
  9. data/docs/SendSmsRequest.md +1 -1
  10. data/docs/WebhookPayloadMessageMessage.md +1 -1
  11. data/docs/WebhookPayloadMessageMessageAttachmentsInner.md +22 -0
  12. data/docs/WebhookPayloadMessageSentMessage.md +1 -1
  13. data/docs/WebhookPayloadMessageSentMessageAttachmentsInner.md +22 -0
  14. data/lib/zernio-sdk/api/ad_audiences_api.rb +4 -4
  15. data/lib/zernio-sdk/api/ad_campaigns_api.rb +0 -142
  16. data/lib/zernio-sdk/api/ads_api.rb +39 -739
  17. data/lib/zernio-sdk/api/inbox_api.rb +92 -0
  18. data/lib/zernio-sdk/api/sms_api.rb +2 -256
  19. data/lib/zernio-sdk/models/inbox_webhook_message_attachments_inner.rb +1 -1
  20. data/lib/zernio-sdk/models/send_sms_request.rb +1 -1
  21. data/lib/zernio-sdk/models/webhook_payload_message_message.rb +1 -1
  22. data/lib/zernio-sdk/models/{create_sms_sender_id_request.rb → webhook_payload_message_message_attachments_inner.rb} +52 -33
  23. data/lib/zernio-sdk/models/webhook_payload_message_sent_message.rb +1 -1
  24. data/lib/zernio-sdk/models/{update_ad_creative_request.rb → webhook_payload_message_sent_message_attachments_inner.rb} +46 -44
  25. data/lib/zernio-sdk/version.rb +1 -1
  26. data/lib/zernio-sdk.rb +3 -26
  27. data/openapi.yaml +87 -624
  28. data/spec/api/ad_audiences_api_spec.rb +2 -2
  29. data/spec/api/ad_campaigns_api_spec.rb +0 -25
  30. data/spec/api/ads_api_spec.rb +0 -128
  31. data/spec/api/inbox_api_spec.rb +48 -0
  32. data/spec/api/sms_api_spec.rb +1 -47
  33. data/spec/models/{list_ad_images200_response_spec.rb → webhook_payload_message_message_attachments_inner_spec.rb} +9 -9
  34. data/spec/models/{list_ad_creatives200_response_spec.rb → webhook_payload_message_sent_message_attachments_inner_spec.rb} +9 -9
  35. data/zernio-sdk-0.0.541.gem +0 -0
  36. metadata +14 -106
  37. data/docs/CreateAdCampaign201Response.md +0 -24
  38. data/docs/CreateAdCampaignRequest.md +0 -32
  39. data/docs/CreateAdCreative201Response.md +0 -20
  40. data/docs/CreateAdCreativeRequest.md +0 -38
  41. data/docs/CreateAdCreativeRequestCarouselCardsInner.md +0 -26
  42. data/docs/CreateSmsSenderId200Response.md +0 -22
  43. data/docs/CreateSmsSenderIdRequest.md +0 -18
  44. data/docs/DeleteAdCreative200Response.md +0 -20
  45. data/docs/DeleteSmsSenderId200Response.md +0 -18
  46. data/docs/DuplicateAd200Response.md +0 -22
  47. data/docs/DuplicateAdRequest.md +0 -28
  48. data/docs/DuplicateAdSet200Response.md +0 -22
  49. data/docs/DuplicateAdSetRequest.md +0 -36
  50. data/docs/GetAdCreative200Response.md +0 -18
  51. data/docs/ListAdCreatives200Response.md +0 -22
  52. data/docs/ListAdImages200Response.md +0 -22
  53. data/docs/ListAdLabels200Response.md +0 -22
  54. data/docs/ListHighDemandPeriods200Response.md +0 -22
  55. data/docs/ListSmsSenderIds200Response.md +0 -20
  56. data/docs/ListSmsSenderIds200ResponseBudget.md +0 -24
  57. data/docs/ListSmsSenderIds200ResponseBudgetPendingRequest.md +0 -22
  58. data/docs/ListSmsSenderIds200ResponseSenderIdsInner.md +0 -24
  59. data/docs/RequestSmsSenderIdLimitIncrease200Response.md +0 -20
  60. data/docs/RequestSmsSenderIdLimitIncreaseRequest.md +0 -20
  61. data/docs/UpdateAdCreative200Response.md +0 -22
  62. data/docs/UpdateAdCreativeRequest.md +0 -20
  63. data/lib/zernio-sdk/models/create_ad_campaign201_response.rb +0 -210
  64. data/lib/zernio-sdk/models/create_ad_campaign_request.rb +0 -343
  65. data/lib/zernio-sdk/models/create_ad_creative201_response.rb +0 -157
  66. data/lib/zernio-sdk/models/create_ad_creative_request.rb +0 -390
  67. data/lib/zernio-sdk/models/create_ad_creative_request_carousel_cards_inner.rb +0 -255
  68. data/lib/zernio-sdk/models/create_sms_sender_id200_response.rb +0 -166
  69. data/lib/zernio-sdk/models/delete_ad_creative200_response.rb +0 -156
  70. data/lib/zernio-sdk/models/delete_sms_sender_id200_response.rb +0 -147
  71. data/lib/zernio-sdk/models/duplicate_ad200_response.rb +0 -200
  72. data/lib/zernio-sdk/models/duplicate_ad_request.rb +0 -243
  73. data/lib/zernio-sdk/models/duplicate_ad_set200_response.rb +0 -201
  74. data/lib/zernio-sdk/models/duplicate_ad_set_request.rb +0 -302
  75. data/lib/zernio-sdk/models/get_ad_creative200_response.rb +0 -148
  76. data/lib/zernio-sdk/models/list_ad_creatives200_response.rb +0 -167
  77. data/lib/zernio-sdk/models/list_ad_images200_response.rb +0 -167
  78. data/lib/zernio-sdk/models/list_ad_labels200_response.rb +0 -167
  79. data/lib/zernio-sdk/models/list_high_demand_periods200_response.rb +0 -168
  80. data/lib/zernio-sdk/models/list_sms_sender_ids200_response.rb +0 -158
  81. data/lib/zernio-sdk/models/list_sms_sender_ids200_response_budget.rb +0 -178
  82. data/lib/zernio-sdk/models/list_sms_sender_ids200_response_budget_pending_request.rb +0 -167
  83. data/lib/zernio-sdk/models/list_sms_sender_ids200_response_sender_ids_inner.rb +0 -175
  84. data/lib/zernio-sdk/models/request_sms_sender_id_limit_increase200_response.rb +0 -156
  85. data/lib/zernio-sdk/models/request_sms_sender_id_limit_increase_request.rb +0 -210
  86. data/lib/zernio-sdk/models/update_ad_creative200_response.rb +0 -165
  87. data/spec/models/create_ad_campaign201_response_spec.rb +0 -58
  88. data/spec/models/create_ad_campaign_request_spec.rb +0 -94
  89. data/spec/models/create_ad_creative201_response_spec.rb +0 -42
  90. data/spec/models/create_ad_creative_request_carousel_cards_inner_spec.rb +0 -60
  91. data/spec/models/create_ad_creative_request_spec.rb +0 -96
  92. data/spec/models/create_sms_sender_id200_response_spec.rb +0 -48
  93. data/spec/models/create_sms_sender_id_request_spec.rb +0 -36
  94. data/spec/models/delete_ad_creative200_response_spec.rb +0 -42
  95. data/spec/models/delete_sms_sender_id200_response_spec.rb +0 -36
  96. data/spec/models/duplicate_ad200_response_spec.rb +0 -52
  97. data/spec/models/duplicate_ad_request_spec.rb +0 -74
  98. data/spec/models/duplicate_ad_set200_response_spec.rb +0 -52
  99. data/spec/models/duplicate_ad_set_request_spec.rb +0 -102
  100. data/spec/models/get_ad_creative200_response_spec.rb +0 -36
  101. data/spec/models/list_ad_labels200_response_spec.rb +0 -48
  102. data/spec/models/list_high_demand_periods200_response_spec.rb +0 -48
  103. data/spec/models/list_sms_sender_ids200_response_budget_pending_request_spec.rb +0 -48
  104. data/spec/models/list_sms_sender_ids200_response_budget_spec.rb +0 -54
  105. data/spec/models/list_sms_sender_ids200_response_sender_ids_inner_spec.rb +0 -54
  106. data/spec/models/list_sms_sender_ids200_response_spec.rb +0 -42
  107. data/spec/models/request_sms_sender_id_limit_increase200_response_spec.rb +0 -42
  108. data/spec/models/request_sms_sender_id_limit_increase_request_spec.rb +0 -42
  109. data/spec/models/update_ad_creative200_response_spec.rb +0 -48
  110. data/spec/models/update_ad_creative_request_spec.rb +0 -42
  111. data/zernio-sdk-0.0.539.gem +0 -0
@@ -1,210 +0,0 @@
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
- class RequestSmsSenderIdLimitIncreaseRequest < ApiModelBase
18
- # Desired daily message cap. Must exceed the current cap.
19
- attr_accessor :requested_cap
20
-
21
- # Use case and audience (what you send, to whom, opt-in status).
22
- attr_accessor :reason
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'requested_cap' => :'requestedCap',
28
- :'reason' => :'reason'
29
- }
30
- end
31
-
32
- # Returns attribute mapping this model knows about
33
- def self.acceptable_attribute_map
34
- attribute_map
35
- end
36
-
37
- # Returns all the JSON keys this model knows about
38
- def self.acceptable_attributes
39
- acceptable_attribute_map.values
40
- end
41
-
42
- # Attribute type mapping.
43
- def self.openapi_types
44
- {
45
- :'requested_cap' => :'Integer',
46
- :'reason' => :'String'
47
- }
48
- end
49
-
50
- # List of attributes with nullable: true
51
- def self.openapi_nullable
52
- Set.new([
53
- ])
54
- end
55
-
56
- # Initializes the object
57
- # @param [Hash] attributes Model attributes in the form of hash
58
- def initialize(attributes = {})
59
- if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::RequestSmsSenderIdLimitIncreaseRequest` initialize method"
61
- end
62
-
63
- # check to see if the attribute exists and convert string to symbol for hash key
64
- acceptable_attribute_map = self.class.acceptable_attribute_map
65
- attributes = attributes.each_with_object({}) { |(k, v), h|
66
- if (!acceptable_attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::RequestSmsSenderIdLimitIncreaseRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
- end
69
- h[k.to_sym] = v
70
- }
71
-
72
- if attributes.key?(:'requested_cap')
73
- self.requested_cap = attributes[:'requested_cap']
74
- else
75
- self.requested_cap = nil
76
- end
77
-
78
- if attributes.key?(:'reason')
79
- self.reason = attributes[:'reason']
80
- else
81
- self.reason = nil
82
- end
83
- end
84
-
85
- # Show invalid properties with the reasons. Usually used together with valid?
86
- # @return Array for valid properties with the reasons
87
- def list_invalid_properties
88
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
89
- invalid_properties = Array.new
90
- if @requested_cap.nil?
91
- invalid_properties.push('invalid value for "requested_cap", requested_cap cannot be nil.')
92
- end
93
-
94
- if @reason.nil?
95
- invalid_properties.push('invalid value for "reason", reason cannot be nil.')
96
- end
97
-
98
- if @reason.to_s.length > 2000
99
- invalid_properties.push('invalid value for "reason", the character length must be smaller than or equal to 2000.')
100
- end
101
-
102
- if @reason.to_s.length < 10
103
- invalid_properties.push('invalid value for "reason", the character length must be greater than or equal to 10.')
104
- end
105
-
106
- invalid_properties
107
- end
108
-
109
- # Check to see if the all the properties in the model are valid
110
- # @return true if the model is valid
111
- def valid?
112
- warn '[DEPRECATED] the `valid?` method is obsolete'
113
- return false if @requested_cap.nil?
114
- return false if @reason.nil?
115
- return false if @reason.to_s.length > 2000
116
- return false if @reason.to_s.length < 10
117
- true
118
- end
119
-
120
- # Custom attribute writer method with validation
121
- # @param [Object] requested_cap Value to be assigned
122
- def requested_cap=(requested_cap)
123
- if requested_cap.nil?
124
- fail ArgumentError, 'requested_cap cannot be nil'
125
- end
126
-
127
- @requested_cap = requested_cap
128
- end
129
-
130
- # Custom attribute writer method with validation
131
- # @param [Object] reason Value to be assigned
132
- def reason=(reason)
133
- if reason.nil?
134
- fail ArgumentError, 'reason cannot be nil'
135
- end
136
-
137
- if reason.to_s.length > 2000
138
- fail ArgumentError, 'invalid value for "reason", the character length must be smaller than or equal to 2000.'
139
- end
140
-
141
- if reason.to_s.length < 10
142
- fail ArgumentError, 'invalid value for "reason", the character length must be greater than or equal to 10.'
143
- end
144
-
145
- @reason = reason
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
- requested_cap == o.requested_cap &&
154
- reason == o.reason
155
- end
156
-
157
- # @see the `==` method
158
- # @param [Object] Object to be compared
159
- def eql?(o)
160
- self == o
161
- end
162
-
163
- # Calculates hash code according to all attributes.
164
- # @return [Integer] Hash code
165
- def hash
166
- [requested_cap, reason].hash
167
- end
168
-
169
- # Builds the object from hash
170
- # @param [Hash] attributes Model attributes in the form of hash
171
- # @return [Object] Returns the model itself
172
- def self.build_from_hash(attributes)
173
- return nil unless attributes.is_a?(Hash)
174
- attributes = attributes.transform_keys(&:to_sym)
175
- transformed_hash = {}
176
- openapi_types.each_pair do |key, type|
177
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
178
- transformed_hash["#{key}"] = nil
179
- elsif type =~ /\AArray<(.*)>/i
180
- # check to ensure the input is an array given that the attribute
181
- # is documented as an array but the input is not
182
- if attributes[attribute_map[key]].is_a?(Array)
183
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
184
- end
185
- elsif !attributes[attribute_map[key]].nil?
186
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
187
- end
188
- end
189
- new(transformed_hash)
190
- end
191
-
192
- # Returns the object in the form of hash
193
- # @return [Hash] Returns the object in the form of hash
194
- def to_hash
195
- hash = {}
196
- self.class.attribute_map.each_pair do |attr, param|
197
- value = self.send(attr)
198
- if value.nil?
199
- is_nullable = self.class.openapi_nullable.include?(attr)
200
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
- end
202
-
203
- hash[param] = _to_hash(value)
204
- end
205
- hash
206
- end
207
-
208
- end
209
-
210
- end
@@ -1,165 +0,0 @@
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
- class UpdateAdCreative200Response < ApiModelBase
18
- attr_accessor :creative_id
19
-
20
- attr_accessor :name
21
-
22
- attr_accessor :message
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'creative_id' => :'creativeId',
28
- :'name' => :'name',
29
- :'message' => :'message'
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
- :'creative_id' => :'String',
47
- :'name' => :'String',
48
- :'message' => :'String'
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::UpdateAdCreative200Response` 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::UpdateAdCreative200Response`. 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?(:'creative_id')
75
- self.creative_id = attributes[:'creative_id']
76
- end
77
-
78
- if attributes.key?(:'name')
79
- self.name = attributes[:'name']
80
- end
81
-
82
- if attributes.key?(:'message')
83
- self.message = attributes[:'message']
84
- end
85
- end
86
-
87
- # Show invalid properties with the reasons. Usually used together with valid?
88
- # @return Array for valid properties with the reasons
89
- def list_invalid_properties
90
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
91
- invalid_properties = Array.new
92
- invalid_properties
93
- end
94
-
95
- # Check to see if the all the properties in the model are valid
96
- # @return true if the model is valid
97
- def valid?
98
- warn '[DEPRECATED] the `valid?` method is obsolete'
99
- true
100
- end
101
-
102
- # Checks equality by comparing each attribute.
103
- # @param [Object] Object to be compared
104
- def ==(o)
105
- return true if self.equal?(o)
106
- self.class == o.class &&
107
- creative_id == o.creative_id &&
108
- name == o.name &&
109
- message == o.message
110
- end
111
-
112
- # @see the `==` method
113
- # @param [Object] Object to be compared
114
- def eql?(o)
115
- self == o
116
- end
117
-
118
- # Calculates hash code according to all attributes.
119
- # @return [Integer] Hash code
120
- def hash
121
- [creative_id, name, message].hash
122
- end
123
-
124
- # Builds the object from hash
125
- # @param [Hash] attributes Model attributes in the form of hash
126
- # @return [Object] Returns the model itself
127
- def self.build_from_hash(attributes)
128
- return nil unless attributes.is_a?(Hash)
129
- attributes = attributes.transform_keys(&:to_sym)
130
- transformed_hash = {}
131
- openapi_types.each_pair do |key, type|
132
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
133
- transformed_hash["#{key}"] = nil
134
- elsif type =~ /\AArray<(.*)>/i
135
- # check to ensure the input is an array given that the attribute
136
- # is documented as an array but the input is not
137
- if attributes[attribute_map[key]].is_a?(Array)
138
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
139
- end
140
- elsif !attributes[attribute_map[key]].nil?
141
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
142
- end
143
- end
144
- new(transformed_hash)
145
- end
146
-
147
- # Returns the object in the form of hash
148
- # @return [Hash] Returns the object in the form of hash
149
- def to_hash
150
- hash = {}
151
- self.class.attribute_map.each_pair do |attr, param|
152
- value = self.send(attr)
153
- if value.nil?
154
- is_nullable = self.class.openapi_nullable.include?(attr)
155
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
156
- end
157
-
158
- hash[param] = _to_hash(value)
159
- end
160
- hash
161
- end
162
-
163
- end
164
-
165
- end
@@ -1,58 +0,0 @@
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::CreateAdCampaign201Response
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe Zernio::CreateAdCampaign201Response do
21
- #let(:instance) { Zernio::CreateAdCampaign201Response.new }
22
-
23
- describe 'test an instance of CreateAdCampaign201Response' do
24
- it 'should create an instance of CreateAdCampaign201Response' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(Zernio::CreateAdCampaign201Response)
27
- end
28
- end
29
-
30
- describe 'test attribute "ad_account_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 "campaign_id"' 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 "objective"' 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 "status"' do
49
- it 'should work' do
50
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ACTIVE", "PAUSED"])
52
- # validator.allowable_values.each do |value|
53
- # expect { instance.status = value }.not_to raise_error
54
- # end
55
- end
56
- end
57
-
58
- end
@@ -1,94 +0,0 @@
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::CreateAdCampaignRequest
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe Zernio::CreateAdCampaignRequest do
21
- #let(:instance) { Zernio::CreateAdCampaignRequest.new }
22
-
23
- describe 'test an instance of CreateAdCampaignRequest' do
24
- it 'should create an instance of CreateAdCampaignRequest' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(Zernio::CreateAdCampaignRequest)
27
- end
28
- end
29
-
30
- describe 'test attribute "account_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 "ad_account_id"' 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 "name"' 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 "goal"' do
49
- it 'should work' do
50
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["engagement", "traffic", "awareness", "video_views", "lead_generation", "lead_conversion", "job_applicants", "conversions", "app_promotion", "catalog_sales"])
52
- # validator.allowable_values.each do |value|
53
- # expect { instance.goal = value }.not_to raise_error
54
- # end
55
- end
56
- end
57
-
58
- describe 'test attribute "special_ad_categories"' do
59
- it 'should work' do
60
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["HOUSING", "EMPLOYMENT", "CREDIT", "ISSUES_ELECTIONS_POLITICS", "FINANCIAL_PRODUCTS_SERVICES", "ONLINE_GAMBLING_AND_GAMING"])
62
- # validator.allowable_values.each do |value|
63
- # expect { instance.special_ad_categories = value }.not_to raise_error
64
- # end
65
- end
66
- end
67
-
68
- describe 'test attribute "budget_amount"' do
69
- it 'should work' do
70
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
71
- end
72
- end
73
-
74
- describe 'test attribute "budget_type"' do
75
- it 'should work' do
76
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
77
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["daily", "lifetime"])
78
- # validator.allowable_values.each do |value|
79
- # expect { instance.budget_type = value }.not_to raise_error
80
- # end
81
- end
82
- end
83
-
84
- describe 'test attribute "status"' do
85
- it 'should work' do
86
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ACTIVE", "PAUSED"])
88
- # validator.allowable_values.each do |value|
89
- # expect { instance.status = value }.not_to raise_error
90
- # end
91
- end
92
- end
93
-
94
- end
@@ -1,42 +0,0 @@
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::CreateAdCreative201Response
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe Zernio::CreateAdCreative201Response do
21
- #let(:instance) { Zernio::CreateAdCreative201Response.new }
22
-
23
- describe 'test an instance of CreateAdCreative201Response' do
24
- it 'should create an instance of CreateAdCreative201Response' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(Zernio::CreateAdCreative201Response)
27
- end
28
- end
29
-
30
- describe 'test attribute "ad_account_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 "creative_id"' 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
- end
@@ -1,60 +0,0 @@
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::CreateAdCreativeRequestCarouselCardsInner
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe Zernio::CreateAdCreativeRequestCarouselCardsInner do
21
- #let(:instance) { Zernio::CreateAdCreativeRequestCarouselCardsInner.new }
22
-
23
- describe 'test an instance of CreateAdCreativeRequestCarouselCardsInner' do
24
- it 'should create an instance of CreateAdCreativeRequestCarouselCardsInner' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(Zernio::CreateAdCreativeRequestCarouselCardsInner)
27
- end
28
- end
29
-
30
- describe 'test attribute "image_url"' 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 "link_url"' 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 "headline"' 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 "description"' 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 "call_to_action"' 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