klaviyo_sdk 1.0.1.20220329 → 1.0.2.20220329
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/CHANGELOG.md +6 -0
- data/README.md +99 -99
- data/docs/Campaign.md +2 -2
- data/docs/CampaignsApi.md +37 -37
- data/docs/CheckMembershipRequest.md +2 -2
- data/docs/DataPrivacyApi.md +5 -5
- data/docs/DeleteEmail.md +2 -2
- data/docs/DeletePerson.md +2 -2
- data/docs/DeletePhone.md +2 -2
- data/docs/DeprecatedGetListResponse.md +2 -2
- data/docs/DeprecatedGetListResponseData.md +2 -2
- data/docs/GlobalExclusionResponseData.md +2 -2
- data/docs/IdentifyPayload.md +2 -2
- data/docs/IdentifyPayloadProperties.md +2 -2
- data/docs/InlineObject.md +2 -2
- data/docs/InlineObject3.md +2 -2
- data/docs/InlineObject4.md +2 -2
- data/docs/InlineObject5.md +2 -2
- data/docs/ListsSegmentsApi.md +71 -71
- data/docs/Metric.md +2 -2
- data/docs/MetricExport.md +2 -2
- data/docs/MetricTimeline.md +2 -2
- data/docs/MetricTimelineData.md +2 -2
- data/docs/MetricsApi.md +17 -17
- data/docs/Person.md +2 -2
- data/docs/PrivacyEmail.md +2 -2
- data/docs/PrivacyId.md +2 -2
- data/docs/PrivacyPhone.md +2 -2
- data/docs/ProfilesApi.md +22 -22
- data/docs/RenderedTemplate.md +2 -2
- data/docs/Template.md +2 -2
- data/docs/TemplatesApi.md +29 -29
- data/docs/TrackIdentifyApi.md +13 -13
- data/docs/TrackPayload.md +2 -2
- data/docs/TrackPayloadCustomerProperties.md +2 -2
- data/docs/TrackPayloadProperties.md +2 -2
- data/klaviyo_sdk.gemspec +1 -1
- data/lib/klaviyo_sdk/api/campaigns_api.rb +1 -1
- data/lib/klaviyo_sdk/api/data_privacy_api.rb +1 -1
- data/lib/klaviyo_sdk/api/lists_segments_api.rb +1 -1
- data/lib/klaviyo_sdk/api/metrics_api.rb +1 -1
- data/lib/klaviyo_sdk/api/profiles_api.rb +1 -1
- data/lib/klaviyo_sdk/api/templates_api.rb +1 -1
- data/lib/klaviyo_sdk/api/track_identify_api.rb +1 -1
- data/lib/klaviyo_sdk/api_client.rb +2 -2
- data/lib/klaviyo_sdk/api_error.rb +1 -1
- data/lib/klaviyo_sdk/configuration.rb +1 -1
- data/lib/klaviyo_sdk/models/campaign.rb +4 -4
- data/lib/klaviyo_sdk/models/check_membership_request.rb +4 -4
- data/lib/klaviyo_sdk/models/delete_email.rb +4 -4
- data/lib/klaviyo_sdk/models/delete_person.rb +4 -4
- data/lib/klaviyo_sdk/models/delete_phone.rb +4 -4
- data/lib/klaviyo_sdk/models/deprecated_get_list_response.rb +4 -4
- data/lib/klaviyo_sdk/models/deprecated_get_list_response_data.rb +4 -4
- data/lib/klaviyo_sdk/models/global_exclusion_response_data.rb +4 -4
- data/lib/klaviyo_sdk/models/identify_payload.rb +4 -4
- data/lib/klaviyo_sdk/models/identify_payload_properties.rb +4 -4
- data/lib/klaviyo_sdk/models/inline_object.rb +4 -4
- data/lib/klaviyo_sdk/models/inline_object3.rb +4 -4
- data/lib/klaviyo_sdk/models/inline_object4.rb +4 -4
- data/lib/klaviyo_sdk/models/inline_object5.rb +4 -4
- data/lib/klaviyo_sdk/models/metric.rb +4 -4
- data/lib/klaviyo_sdk/models/metric_export.rb +4 -4
- data/lib/klaviyo_sdk/models/metric_timeline.rb +4 -4
- data/lib/klaviyo_sdk/models/metric_timeline_data.rb +4 -4
- data/lib/klaviyo_sdk/models/person.rb +4 -4
- data/lib/klaviyo_sdk/models/person.rb.bak +4 -4
- data/lib/klaviyo_sdk/models/privacy_email.rb +4 -4
- data/lib/klaviyo_sdk/models/privacy_id.rb +4 -4
- data/lib/klaviyo_sdk/models/privacy_phone.rb +4 -4
- data/lib/klaviyo_sdk/models/rendered_template.rb +4 -4
- data/lib/klaviyo_sdk/models/template.rb +4 -4
- data/lib/klaviyo_sdk/models/track_payload.rb +4 -4
- data/lib/klaviyo_sdk/models/track_payload_customer_properties.rb +4 -4
- data/lib/klaviyo_sdk/models/track_payload_properties.rb +4 -4
- data/lib/klaviyo_sdk/version.rb +1 -1
- data/lib/klaviyo_sdk.rb +7 -7
- data/spec/api/campaigns_api_spec.rb +3 -3
- data/spec/api/data_privacy_api_spec.rb +3 -3
- data/spec/api/lists_segments_api_spec.rb +3 -3
- data/spec/api/metrics_api_spec.rb +3 -3
- data/spec/api/profiles_api_spec.rb +3 -3
- data/spec/api/templates_api_spec.rb +3 -3
- data/spec/api/track_identify_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +29 -29
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/campaign_spec.rb +4 -4
- data/spec/models/check_membership_request_spec.rb +4 -4
- data/spec/models/delete_email_spec.rb +4 -4
- data/spec/models/delete_person_spec.rb +4 -4
- data/spec/models/delete_phone_spec.rb +4 -4
- data/spec/models/deprecated_get_list_response_data_spec.rb +4 -4
- data/spec/models/deprecated_get_list_response_spec.rb +4 -4
- data/spec/models/global_exclusion_response_data_spec.rb +4 -4
- data/spec/models/identify_payload_properties_spec.rb +4 -4
- data/spec/models/identify_payload_spec.rb +4 -4
- data/spec/models/inline_object3_spec.rb +4 -4
- data/spec/models/inline_object4_spec.rb +4 -4
- data/spec/models/inline_object5_spec.rb +4 -4
- data/spec/models/inline_object_spec.rb +4 -4
- data/spec/models/metric_export_spec.rb +4 -4
- data/spec/models/metric_spec.rb +4 -4
- data/spec/models/metric_timeline_data_spec.rb +4 -4
- data/spec/models/metric_timeline_spec.rb +4 -4
- data/spec/models/person_spec.rb +4 -4
- data/spec/models/privacy_email_spec.rb +4 -4
- data/spec/models/privacy_id_spec.rb +4 -4
- data/spec/models/privacy_phone_spec.rb +4 -4
- data/spec/models/rendered_template_spec.rb +4 -4
- data/spec/models/template_spec.rb +4 -4
- data/spec/models/track_payload_customer_properties_spec.rb +4 -4
- data/spec/models/track_payload_properties_spec.rb +4 -4
- data/spec/models/track_payload_spec.rb +4 -4
- metadata +2 -3
- data/klaviyo_sdk-1.0.0.20220329.gem +0 -0
data/docs/TrackIdentifyApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Klaviyo::TrackIdentifyApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://a.klaviyo.com/api*
|
4
4
|
|
@@ -24,14 +24,14 @@ This endpoint is also used to identify a profile and update its properties witho
|
|
24
24
|
require 'time'
|
25
25
|
require 'klaviyo_sdk'
|
26
26
|
|
27
|
-
api_instance =
|
27
|
+
api_instance = Klaviyo::TrackIdentifyApi.new
|
28
28
|
data = 'BASE_64_STRING' # String | String representation of base64 encoded JSON object
|
29
29
|
|
30
30
|
begin
|
31
31
|
# Identify Profile (Legacy)
|
32
32
|
result = api_instance.identify_get(data)
|
33
33
|
p result
|
34
|
-
rescue
|
34
|
+
rescue Klaviyo::ApiError => e
|
35
35
|
puts "Error when calling TrackIdentifyApi->identify_get: #{e}"
|
36
36
|
end
|
37
37
|
```
|
@@ -49,7 +49,7 @@ begin
|
|
49
49
|
p status_code # => 2xx
|
50
50
|
p headers # => { ... }
|
51
51
|
p data # => String
|
52
|
-
rescue
|
52
|
+
rescue Klaviyo::ApiError => e
|
53
53
|
puts "Error when calling TrackIdentifyApi->identify_get_with_http_info: #{e}"
|
54
54
|
end
|
55
55
|
```
|
@@ -88,14 +88,14 @@ This endpoint is used to track and update properties about an individual without
|
|
88
88
|
require 'time'
|
89
89
|
require 'klaviyo_sdk'
|
90
90
|
|
91
|
-
api_instance =
|
91
|
+
api_instance = Klaviyo::TrackIdentifyApi.new
|
92
92
|
data = 'data_example' # String |
|
93
93
|
|
94
94
|
begin
|
95
95
|
# Identify Profile
|
96
96
|
result = api_instance.identify_post(data)
|
97
97
|
p result
|
98
|
-
rescue
|
98
|
+
rescue Klaviyo::ApiError => e
|
99
99
|
puts "Error when calling TrackIdentifyApi->identify_post: #{e}"
|
100
100
|
end
|
101
101
|
```
|
@@ -113,7 +113,7 @@ begin
|
|
113
113
|
p status_code # => 2xx
|
114
114
|
p headers # => { ... }
|
115
115
|
p data # => String
|
116
|
-
rescue
|
116
|
+
rescue Klaviyo::ApiError => e
|
117
117
|
puts "Error when calling TrackIdentifyApi->identify_post_with_http_info: #{e}"
|
118
118
|
end
|
119
119
|
```
|
@@ -152,14 +152,14 @@ This endpoint is also used to track a profile's activity. It takes as input the
|
|
152
152
|
require 'time'
|
153
153
|
require 'klaviyo_sdk'
|
154
154
|
|
155
|
-
api_instance =
|
155
|
+
api_instance = Klaviyo::TrackIdentifyApi.new
|
156
156
|
data = 'BASE_64_STRING' # String | String representation of base64 encoded JSON object
|
157
157
|
|
158
158
|
begin
|
159
159
|
# Track Profile Activity (Legacy)
|
160
160
|
result = api_instance.track_get(data)
|
161
161
|
p result
|
162
|
-
rescue
|
162
|
+
rescue Klaviyo::ApiError => e
|
163
163
|
puts "Error when calling TrackIdentifyApi->track_get: #{e}"
|
164
164
|
end
|
165
165
|
```
|
@@ -177,7 +177,7 @@ begin
|
|
177
177
|
p status_code # => 2xx
|
178
178
|
p headers # => { ... }
|
179
179
|
p data # => String
|
180
|
-
rescue
|
180
|
+
rescue Klaviyo::ApiError => e
|
181
181
|
puts "Error when calling TrackIdentifyApi->track_get_with_http_info: #{e}"
|
182
182
|
end
|
183
183
|
```
|
@@ -216,14 +216,14 @@ This endpoint is used to track a profile's activity. The following data is encod
|
|
216
216
|
require 'time'
|
217
217
|
require 'klaviyo_sdk'
|
218
218
|
|
219
|
-
api_instance =
|
219
|
+
api_instance = Klaviyo::TrackIdentifyApi.new
|
220
220
|
data = 'data_example' # String |
|
221
221
|
|
222
222
|
begin
|
223
223
|
# Track Profile Activity
|
224
224
|
result = api_instance.track_post(data)
|
225
225
|
p result
|
226
|
-
rescue
|
226
|
+
rescue Klaviyo::ApiError => e
|
227
227
|
puts "Error when calling TrackIdentifyApi->track_post: #{e}"
|
228
228
|
end
|
229
229
|
```
|
@@ -241,7 +241,7 @@ begin
|
|
241
241
|
p status_code # => 2xx
|
242
242
|
p headers # => { ... }
|
243
243
|
p data # => String
|
244
|
-
rescue
|
244
|
+
rescue Klaviyo::ApiError => e
|
245
245
|
puts "Error when calling TrackIdentifyApi->track_post_with_http_info: #{e}"
|
246
246
|
end
|
247
247
|
```
|
data/docs/TrackPayload.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Klaviyo::TrackPayload
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
```ruby
|
15
15
|
require 'klaviyo_sdk'
|
16
16
|
|
17
|
-
instance =
|
17
|
+
instance = Klaviyo::TrackPayload.new(
|
18
18
|
token: null,
|
19
19
|
customer_properties: null,
|
20
20
|
properties: null,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Klaviyo::TrackPayloadCustomerProperties
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
```ruby
|
13
13
|
require 'klaviyo_sdk'
|
14
14
|
|
15
|
-
instance =
|
15
|
+
instance = Klaviyo::TrackPayloadCustomerProperties.new(
|
16
16
|
_email: null,
|
17
17
|
_phone_number: null
|
18
18
|
)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# Klaviyo::TrackPayloadProperties
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
```ruby
|
14
14
|
require 'klaviyo_sdk'
|
15
15
|
|
16
|
-
instance =
|
16
|
+
instance = Klaviyo::TrackPayloadProperties.new(
|
17
17
|
event_id: null,
|
18
18
|
value: null,
|
19
19
|
your_custom_field: null
|
data/klaviyo_sdk.gemspec
CHANGED
@@ -17,7 +17,7 @@ require "klaviyo_sdk/version"
|
|
17
17
|
|
18
18
|
Gem::Specification.new do |s|
|
19
19
|
s.name = "klaviyo_sdk"
|
20
|
-
s.version = "1.0.
|
20
|
+
s.version = "1.0.2.20220329"
|
21
21
|
s.authors = ['Klaviyo Team']
|
22
22
|
s.email = ['libraries@klaviyo.com']
|
23
23
|
s.summary = 'You heard us, a Ruby wrapper for the Klaviyo API'
|
@@ -17,7 +17,7 @@ require 'tempfile'
|
|
17
17
|
require 'time'
|
18
18
|
require 'typhoeus'
|
19
19
|
|
20
|
-
module
|
20
|
+
module Klaviyo
|
21
21
|
class ApiClient
|
22
22
|
# The Configuration object holding settings to be used in the API client.
|
23
23
|
attr_accessor :config
|
@@ -31,7 +31,7 @@ module Client
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
32
32
|
def initialize(config = Configuration.default)
|
33
33
|
@config = config
|
34
|
-
@user_agent = "klaviyo-ruby/1.0.
|
34
|
+
@user_agent = "klaviyo-ruby/1.0.2.20220329"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class Campaign
|
18
18
|
attr_accessor :object
|
19
19
|
|
@@ -86,13 +86,13 @@ module Client
|
|
86
86
|
# @param [Hash] attributes Model attributes in the form of hash
|
87
87
|
def initialize(attributes = {})
|
88
88
|
if (!attributes.is_a?(Hash))
|
89
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
89
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::Campaign` initialize method"
|
90
90
|
end
|
91
91
|
|
92
92
|
# check to see if the attribute exists and convert string to symbol for hash key
|
93
93
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
94
94
|
if (!self.class.attribute_map.key?(k.to_sym))
|
95
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
95
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::Campaign`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
96
96
|
end
|
97
97
|
h[k.to_sym] = v
|
98
98
|
}
|
@@ -254,7 +254,7 @@ module Client
|
|
254
254
|
end
|
255
255
|
else # model
|
256
256
|
# models (e.g. Pet) or oneOf
|
257
|
-
klass =
|
257
|
+
klass = Klaviyo.const_get(type)
|
258
258
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
259
259
|
end
|
260
260
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class CheckMembershipRequest
|
18
18
|
# List of email addresses
|
19
19
|
attr_accessor :emails
|
@@ -56,13 +56,13 @@ module Client
|
|
56
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
57
57
|
def initialize(attributes = {})
|
58
58
|
if (!attributes.is_a?(Hash))
|
59
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::CheckMembershipRequest` initialize method"
|
60
60
|
end
|
61
61
|
|
62
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
63
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
64
64
|
if (!self.class.attribute_map.key?(k.to_sym))
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::CheckMembershipRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
66
66
|
end
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
@@ -188,7 +188,7 @@ module Client
|
|
188
188
|
end
|
189
189
|
else # model
|
190
190
|
# models (e.g. Pet) or oneOf
|
191
|
-
klass =
|
191
|
+
klass = Klaviyo.const_get(type)
|
192
192
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
193
193
|
end
|
194
194
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class DeleteEmail
|
18
18
|
attr_accessor :email
|
19
19
|
|
@@ -46,13 +46,13 @@ module Client
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::DeleteEmail` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::DeleteEmail`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -162,7 +162,7 @@ module Client
|
|
162
162
|
end
|
163
163
|
else # model
|
164
164
|
# models (e.g. Pet) or oneOf
|
165
|
-
klass =
|
165
|
+
klass = Klaviyo.const_get(type)
|
166
166
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
167
167
|
end
|
168
168
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class DeletePerson
|
18
18
|
attr_accessor :person_id
|
19
19
|
|
@@ -46,13 +46,13 @@ module Client
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::DeletePerson` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::DeletePerson`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -162,7 +162,7 @@ module Client
|
|
162
162
|
end
|
163
163
|
else # model
|
164
164
|
# models (e.g. Pet) or oneOf
|
165
|
-
klass =
|
165
|
+
klass = Klaviyo.const_get(type)
|
166
166
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
167
167
|
end
|
168
168
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class DeletePhone
|
18
18
|
# Phone Number
|
19
19
|
attr_accessor :phone_number
|
@@ -47,13 +47,13 @@ module Client
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::DeletePhone` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::DeletePhone`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
57
|
end
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|
@@ -163,7 +163,7 @@ module Client
|
|
163
163
|
end
|
164
164
|
else # model
|
165
165
|
# models (e.g. Pet) or oneOf
|
166
|
-
klass =
|
166
|
+
klass = Klaviyo.const_get(type)
|
167
167
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
168
168
|
end
|
169
169
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class DeprecatedGetListResponse
|
18
18
|
attr_accessor :object
|
19
19
|
|
@@ -70,13 +70,13 @@ module Client
|
|
70
70
|
# @param [Hash] attributes Model attributes in the form of hash
|
71
71
|
def initialize(attributes = {})
|
72
72
|
if (!attributes.is_a?(Hash))
|
73
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::DeprecatedGetListResponse` initialize method"
|
74
74
|
end
|
75
75
|
|
76
76
|
# check to see if the attribute exists and convert string to symbol for hash key
|
77
77
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
78
78
|
if (!self.class.attribute_map.key?(k.to_sym))
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
79
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::DeprecatedGetListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
80
80
|
end
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
@@ -242,7 +242,7 @@ module Client
|
|
242
242
|
end
|
243
243
|
else # model
|
244
244
|
# models (e.g. Pet) or oneOf
|
245
|
-
klass =
|
245
|
+
klass = Klaviyo.const_get(type)
|
246
246
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
247
247
|
end
|
248
248
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class DeprecatedGetListResponseData
|
18
18
|
attr_accessor :object
|
19
19
|
|
@@ -66,13 +66,13 @@ module Client
|
|
66
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
67
67
|
def initialize(attributes = {})
|
68
68
|
if (!attributes.is_a?(Hash))
|
69
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::DeprecatedGetListResponseData` initialize method"
|
70
70
|
end
|
71
71
|
|
72
72
|
# check to see if the attribute exists and convert string to symbol for hash key
|
73
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
74
|
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::DeprecatedGetListResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
76
|
end
|
77
77
|
h[k.to_sym] = v
|
78
78
|
}
|
@@ -207,7 +207,7 @@ module Client
|
|
207
207
|
end
|
208
208
|
else # model
|
209
209
|
# models (e.g. Pet) or oneOf
|
210
|
-
klass =
|
210
|
+
klass = Klaviyo.const_get(type)
|
211
211
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
212
212
|
end
|
213
213
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class GlobalExclusionResponseData
|
18
18
|
attr_accessor :object
|
19
19
|
|
@@ -70,13 +70,13 @@ module Client
|
|
70
70
|
# @param [Hash] attributes Model attributes in the form of hash
|
71
71
|
def initialize(attributes = {})
|
72
72
|
if (!attributes.is_a?(Hash))
|
73
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::GlobalExclusionResponseData` initialize method"
|
74
74
|
end
|
75
75
|
|
76
76
|
# check to see if the attribute exists and convert string to symbol for hash key
|
77
77
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
78
78
|
if (!self.class.attribute_map.key?(k.to_sym))
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
79
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::GlobalExclusionResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
80
80
|
end
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
@@ -218,7 +218,7 @@ module Client
|
|
218
218
|
end
|
219
219
|
else # model
|
220
220
|
# models (e.g. Pet) or oneOf
|
221
|
-
klass =
|
221
|
+
klass = Klaviyo.const_get(type)
|
222
222
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
223
223
|
end
|
224
224
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class IdentifyPayload
|
18
18
|
attr_accessor :token
|
19
19
|
|
@@ -50,13 +50,13 @@ module Client
|
|
50
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
51
|
def initialize(attributes = {})
|
52
52
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::IdentifyPayload` initialize method"
|
54
54
|
end
|
55
55
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::IdentifyPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
60
|
end
|
61
61
|
h[k.to_sym] = v
|
62
62
|
}
|
@@ -181,7 +181,7 @@ module Client
|
|
181
181
|
end
|
182
182
|
else # model
|
183
183
|
# models (e.g. Pet) or oneOf
|
184
|
-
klass =
|
184
|
+
klass = Klaviyo.const_get(type)
|
185
185
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
186
186
|
end
|
187
187
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class IdentifyPayloadProperties
|
18
18
|
attr_accessor :_email
|
19
19
|
|
@@ -95,13 +95,13 @@ module Client
|
|
95
95
|
# @param [Hash] attributes Model attributes in the form of hash
|
96
96
|
def initialize(attributes = {})
|
97
97
|
if (!attributes.is_a?(Hash))
|
98
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
98
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::IdentifyPayloadProperties` initialize method"
|
99
99
|
end
|
100
100
|
|
101
101
|
# check to see if the attribute exists and convert string to symbol for hash key
|
102
102
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
103
103
|
if (!self.class.attribute_map.key?(k.to_sym))
|
104
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
104
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::IdentifyPayloadProperties`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
105
105
|
end
|
106
106
|
h[k.to_sym] = v
|
107
107
|
}
|
@@ -271,7 +271,7 @@ module Client
|
|
271
271
|
end
|
272
272
|
else # model
|
273
273
|
# models (e.g. Pet) or oneOf
|
274
|
-
klass =
|
274
|
+
klass = Klaviyo.const_get(type)
|
275
275
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
276
276
|
end
|
277
277
|
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 5.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module Klaviyo
|
17
17
|
class InlineObject
|
18
18
|
attr_accessor :exchange_id
|
19
19
|
|
@@ -46,13 +46,13 @@ module Client
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::InlineObject` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::InlineObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -164,7 +164,7 @@ module Client
|
|
164
164
|
end
|
165
165
|
else # model
|
166
166
|
# models (e.g. Pet) or oneOf
|
167
|
-
klass =
|
167
|
+
klass = Klaviyo.const_get(type)
|
168
168
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
169
|
end
|
170
170
|
end
|