klaviyo_sdk 1.0.0.20220329 → 1.0.3.20220329
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +10 -0
- data/README.md +99 -99
- data/Rakefile +10 -0
- data/docs/Campaign.md +38 -0
- data/docs/CampaignsApi.md +707 -0
- data/docs/CheckMembershipRequest.md +22 -0
- data/docs/DataPrivacyApi.md +81 -0
- data/docs/DeleteEmail.md +18 -0
- data/docs/DeletePerson.md +18 -0
- data/docs/DeletePhone.md +18 -0
- data/docs/DeprecatedGetListResponse.md +30 -0
- data/docs/DeprecatedGetListResponseData.md +28 -0
- data/docs/GlobalExclusionResponseData.md +30 -0
- data/docs/IdentifyPayload.md +20 -0
- data/docs/IdentifyPayloadProperties.md +42 -0
- data/docs/InlineObject.md +18 -0
- data/docs/InlineObject3.md +18 -0
- data/docs/InlineObject4.md +18 -0
- data/docs/InlineObject5.md +22 -0
- data/docs/ListsSegmentsApi.md +1198 -0
- data/docs/Metric.md +28 -0
- data/docs/MetricExport.md +32 -0
- data/docs/MetricTimeline.md +24 -0
- data/docs/MetricTimelineData.md +34 -0
- data/docs/MetricsApi.md +329 -0
- data/docs/Person.md +56 -0
- data/docs/PrivacyEmail.md +18 -0
- data/docs/PrivacyId.md +18 -0
- data/docs/PrivacyPhone.md +18 -0
- data/docs/ProfilesApi.md +391 -0
- data/docs/RenderedTemplate.md +24 -0
- data/docs/Template.md +30 -0
- data/docs/TemplatesApi.md +541 -0
- data/docs/TrackIdentifyApi.md +267 -0
- data/docs/TrackPayload.md +24 -0
- data/docs/TrackPayloadCustomerProperties.md +20 -0
- data/docs/TrackPayloadProperties.md +22 -0
- data/git_push.sh +57 -0
- data/klaviyo_sdk-1.0.3.2022.03.29.gem +0 -0
- data/klaviyo_sdk.gemspec +6 -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 +9 -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 +165 -0
- data/spec/api/data_privacy_api_spec.rb +47 -0
- data/spec/api/lists_segments_api_spec.rb +239 -0
- data/spec/api/metrics_api_spec.rb +96 -0
- data/spec/api/profiles_api_spec.rb +103 -0
- data/spec/api/templates_api_spec.rb +130 -0
- data/spec/api/track_identify_api_spec.rb +83 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/campaign_spec.rb +94 -0
- data/spec/models/check_membership_request_spec.rb +46 -0
- data/spec/models/delete_email_spec.rb +34 -0
- data/spec/models/delete_person_spec.rb +34 -0
- data/spec/models/delete_phone_spec.rb +34 -0
- data/spec/models/deprecated_get_list_response_data_spec.rb +64 -0
- data/spec/models/deprecated_get_list_response_spec.rb +70 -0
- data/spec/models/global_exclusion_response_data_spec.rb +70 -0
- data/spec/models/identify_payload_properties_spec.rb +106 -0
- data/spec/models/identify_payload_spec.rb +40 -0
- data/spec/models/inline_object3_spec.rb +34 -0
- data/spec/models/inline_object4_spec.rb +34 -0
- data/spec/models/inline_object5_spec.rb +46 -0
- data/spec/models/inline_object_spec.rb +34 -0
- data/spec/models/metric_export_spec.rb +76 -0
- data/spec/models/metric_spec.rb +64 -0
- data/spec/models/metric_timeline_data_spec.rb +82 -0
- data/spec/models/metric_timeline_spec.rb +52 -0
- data/spec/models/person_spec.rb +148 -0
- data/spec/models/privacy_email_spec.rb +34 -0
- data/spec/models/privacy_id_spec.rb +34 -0
- data/spec/models/privacy_phone_spec.rb +34 -0
- data/spec/models/rendered_template_spec.rb +52 -0
- data/spec/models/template_spec.rb +70 -0
- data/spec/models/track_payload_customer_properties_spec.rb +40 -0
- data/spec/models/track_payload_properties_spec.rb +46 -0
- data/spec/models/track_payload_spec.rb +52 -0
- data/spec/spec_helper.rb +111 -0
- metadata +80 -3
@@ -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
|
}
|
@@ -68,12 +68,17 @@ module Client
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
+
if @exchange_id.nil?
|
72
|
+
invalid_properties.push('invalid value for "exchange_id", exchange_id cannot be nil.')
|
73
|
+
end
|
74
|
+
|
71
75
|
invalid_properties
|
72
76
|
end
|
73
77
|
|
74
78
|
# Check to see if the all the properties in the model are valid
|
75
79
|
# @return true if the model is valid
|
76
80
|
def valid?
|
81
|
+
return false if @exchange_id.nil?
|
77
82
|
true
|
78
83
|
end
|
79
84
|
|
@@ -164,7 +169,7 @@ module Client
|
|
164
169
|
end
|
165
170
|
else # model
|
166
171
|
# models (e.g. Pet) or oneOf
|
167
|
-
klass =
|
172
|
+
klass = Klaviyo.const_get(type)
|
168
173
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
174
|
end
|
170
175
|
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
|
# The profiles that you would like to subscribe. Each object in the list must have either an email or phone number key. You can also provide additional properties as key-value pairs. If you are a GDPR compliant business, you will need to include `$consent` in your API call. `$consent` is a list-type, Klaviyo special property and only accepts some subset of the following: `[\"email\", \"web\", \"sms\", \"directmail\", \"mobile\"]`. If you are updating consent for a phone number or would like to send an opt-in SMS to the profile (for double opt-in lists), include an `sms_consent` key in the profile with a value of `true` or `false`.
|
18
18
|
class InlineObject3
|
19
19
|
attr_accessor :profiles
|
@@ -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::InlineObject3` 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::InlineObject3`. 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
|
}
|
@@ -170,7 +170,7 @@ module Client
|
|
170
170
|
end
|
171
171
|
else # model
|
172
172
|
# models (e.g. Pet) or oneOf
|
173
|
-
klass =
|
173
|
+
klass = Klaviyo.const_get(type)
|
174
174
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
175
175
|
end
|
176
176
|
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
|
# The profiles that you would like to add to the list. Each object in the array must have an `email` or `phone_number`. You can also provide additional properties as key-value pairs.
|
18
18
|
class InlineObject4
|
19
19
|
attr_accessor :profiles
|
@@ -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::InlineObject4` 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::InlineObject4`. 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
|
}
|
@@ -198,7 +198,7 @@ module Client
|
|
198
198
|
end
|
199
199
|
else # model
|
200
200
|
# models (e.g. Pet) or oneOf
|
201
|
-
klass =
|
201
|
+
klass = Klaviyo.const_get(type)
|
202
202
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
203
203
|
end
|
204
204
|
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
|
# The profiles that you would like to remove from the list. Example: { \"emails\":[\"george.washington@klaviyo.com\",\"abraham.lincoln@klaviyo.com\"], \"phone_numbers\":[\"+13239169023\"], \"push_tokens\":[\"03df25c845d460bcdad7802d2vf6fc1dfde97283bf75cc993eb6dca835ea2e2r\"] }
|
18
18
|
class InlineObject5
|
19
19
|
attr_accessor :emails
|
@@ -55,13 +55,13 @@ module Client
|
|
55
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
56
56
|
def initialize(attributes = {})
|
57
57
|
if (!attributes.is_a?(Hash))
|
58
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::InlineObject5` initialize method"
|
59
59
|
end
|
60
60
|
|
61
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
62
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
63
|
if (!self.class.attribute_map.key?(k.to_sym))
|
64
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::InlineObject5`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
65
|
end
|
66
66
|
h[k.to_sym] = v
|
67
67
|
}
|
@@ -232,7 +232,7 @@ module Client
|
|
232
232
|
end
|
233
233
|
else # model
|
234
234
|
# models (e.g. Pet) or oneOf
|
235
|
-
klass =
|
235
|
+
klass = Klaviyo.const_get(type)
|
236
236
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
237
237
|
end
|
238
238
|
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 Metric
|
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::Metric` 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::Metric`. 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
|
}
|
@@ -209,7 +209,7 @@ module Client
|
|
209
209
|
end
|
210
210
|
else # model
|
211
211
|
# models (e.g. Pet) or oneOf
|
212
|
-
klass =
|
212
|
+
klass = Klaviyo.const_get(type)
|
213
213
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
214
214
|
end
|
215
215
|
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 MetricExport
|
18
18
|
attr_accessor :metric
|
19
19
|
|
@@ -74,13 +74,13 @@ module Client
|
|
74
74
|
# @param [Hash] attributes Model attributes in the form of hash
|
75
75
|
def initialize(attributes = {})
|
76
76
|
if (!attributes.is_a?(Hash))
|
77
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::MetricExport` initialize method"
|
78
78
|
end
|
79
79
|
|
80
80
|
# check to see if the attribute exists and convert string to symbol for hash key
|
81
81
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
82
|
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::MetricExport`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
84
|
end
|
85
85
|
h[k.to_sym] = v
|
86
86
|
}
|
@@ -229,7 +229,7 @@ module Client
|
|
229
229
|
end
|
230
230
|
else # model
|
231
231
|
# models (e.g. Pet) or oneOf
|
232
|
-
klass =
|
232
|
+
klass = Klaviyo.const_get(type)
|
233
233
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
234
234
|
end
|
235
235
|
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 MetricTimeline
|
18
18
|
attr_accessor :object
|
19
19
|
|
@@ -58,13 +58,13 @@ module Client
|
|
58
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
59
|
def initialize(attributes = {})
|
60
60
|
if (!attributes.is_a?(Hash))
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::MetricTimeline` initialize method"
|
62
62
|
end
|
63
63
|
|
64
64
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
66
|
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::MetricTimeline`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
68
|
end
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
@@ -215,7 +215,7 @@ module Client
|
|
215
215
|
end
|
216
216
|
else # model
|
217
217
|
# models (e.g. Pet) or oneOf
|
218
|
-
klass =
|
218
|
+
klass = Klaviyo.const_get(type)
|
219
219
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
220
220
|
end
|
221
221
|
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 MetricTimelineData
|
18
18
|
attr_accessor :object
|
19
19
|
|
@@ -78,13 +78,13 @@ module Client
|
|
78
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
79
|
def initialize(attributes = {})
|
80
80
|
if (!attributes.is_a?(Hash))
|
81
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::MetricTimelineData` initialize method"
|
82
82
|
end
|
83
83
|
|
84
84
|
# check to see if the attribute exists and convert string to symbol for hash key
|
85
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
86
|
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::MetricTimelineData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
88
|
end
|
89
89
|
h[k.to_sym] = v
|
90
90
|
}
|
@@ -238,7 +238,7 @@ module Client
|
|
238
238
|
end
|
239
239
|
else # model
|
240
240
|
# models (e.g. Pet) or oneOf
|
241
|
-
klass =
|
241
|
+
klass = Klaviyo.const_get(type)
|
242
242
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
243
243
|
end
|
244
244
|
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 Person
|
18
18
|
attr_accessor :object
|
19
19
|
|
@@ -122,13 +122,13 @@ module Client
|
|
122
122
|
# @param [Hash] attributes Model attributes in the form of hash
|
123
123
|
def initialize(attributes = {})
|
124
124
|
if (!attributes.is_a?(Hash))
|
125
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
125
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::Person` initialize method"
|
126
126
|
end
|
127
127
|
|
128
128
|
# check to see if the attribute exists and convert string to symbol for hash key
|
129
129
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
130
130
|
if (!self.class.attribute_map.key?(k.to_sym))
|
131
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
131
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::Person`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
132
132
|
end
|
133
133
|
h[k.to_sym] = v
|
134
134
|
}
|
@@ -333,7 +333,7 @@ module Client
|
|
333
333
|
end
|
334
334
|
else # model
|
335
335
|
# models (e.g. Pet) or oneOf
|
336
|
-
klass =
|
336
|
+
klass = Klaviyo.const_get(type)
|
337
337
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
338
338
|
end
|
339
339
|
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 Person
|
18
18
|
attr_accessor :object
|
19
19
|
|
@@ -122,13 +122,13 @@ module Client
|
|
122
122
|
# @param [Hash] attributes Model attributes in the form of hash
|
123
123
|
def initialize(attributes = {})
|
124
124
|
if (!attributes.is_a?(Hash))
|
125
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
125
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Klaviyo::Person` initialize method"
|
126
126
|
end
|
127
127
|
|
128
128
|
# check to see if the attribute exists and convert string to symbol for hash key
|
129
129
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
130
130
|
if (!self.class.attribute_map.key?(k.to_sym))
|
131
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
131
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Klaviyo::Person`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
132
132
|
end
|
133
133
|
h[k.to_sym] = v
|
134
134
|
}
|
@@ -333,7 +333,7 @@ module Client
|
|
333
333
|
end
|
334
334
|
else # model
|
335
335
|
# models (e.g. Pet) or oneOf
|
336
|
-
klass =
|
336
|
+
klass = Klaviyo.const_get(type)
|
337
337
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
338
338
|
end
|
339
339
|
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 PrivacyEmail
|
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::PrivacyEmail` 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::PrivacyEmail`. 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 PrivacyId
|
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::PrivacyId` 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::PrivacyId`. 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
|