klaviyo-api-sdk 17.0.0 → 18.0.0
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 +22 -0
- data/README.md +932 -414
- data/klaviyo-api-sdk.gemspec +1 -1
- data/lib/klaviyo-api-sdk/api/accounts_api.rb +12 -12
- data/lib/klaviyo-api-sdk/api/campaigns_api.rb +215 -155
- data/lib/klaviyo-api-sdk/api/catalogs_api.rb +585 -381
- data/lib/klaviyo-api-sdk/api/client_api.rb +100 -0
- data/lib/klaviyo-api-sdk/api/conversations_api.rb +3 -3
- data/lib/klaviyo-api-sdk/api/coupons_api.rb +187 -108
- data/lib/klaviyo-api-sdk/api/custom_objects_api.rb +2755 -83
- data/lib/klaviyo-api-sdk/api/data_privacy_api.rb +3 -3
- data/lib/klaviyo-api-sdk/api/events_api.rb +72 -58
- data/lib/klaviyo-api-sdk/api/flows_api.rb +238 -152
- data/lib/klaviyo-api-sdk/api/forms_api.rb +81 -60
- data/lib/klaviyo-api-sdk/api/images_api.rb +48 -27
- data/lib/klaviyo-api-sdk/api/lists_api.rb +113 -88
- data/lib/klaviyo-api-sdk/api/metrics_api.rb +184 -156
- data/lib/klaviyo-api-sdk/api/profiles_api.rb +445 -226
- data/lib/klaviyo-api-sdk/api/reporting_api.rb +76 -27
- data/lib/klaviyo-api-sdk/api/reviews_api.rb +38 -31
- data/lib/klaviyo-api-sdk/api/segments_api.rb +107 -82
- data/lib/klaviyo-api-sdk/api/tags_api.rb +164 -128
- data/lib/klaviyo-api-sdk/api/templates_api.rb +113 -60
- data/lib/klaviyo-api-sdk/api/tracking_settings_api.rb +24 -17
- data/lib/klaviyo-api-sdk/api/web_feeds_api.rb +41 -27
- data/lib/klaviyo-api-sdk/api/webhooks_api.rb +73 -31
- data/lib/klaviyo-api-sdk/api_client.rb +1 -1
- data/lib/klaviyo-api-sdk/models/action_output_condition.rb +1 -1
- data/lib/klaviyo-api-sdk/models/action_output_condition_filter.rb +78 -195
- data/lib/klaviyo-api-sdk/models/action_output_split_action_data.rb +2 -6
- data/lib/klaviyo-api-sdk/models/{flow_push_notification_additional_filters.rb → action_output_split_action_data_action_output_filter.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/{action_output_condition_condition_group.rb → action_output_split_action_data_action_output_filter_condition_groups_inner.rb} +3 -3
- data/lib/klaviyo-api-sdk/models/age_gate_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/api_schema_property.rb +301 -0
- data/lib/klaviyo-api-sdk/models/back_in_stock_email_consent_checkbox_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/base_event_create_query_bulk_entry_resource_object_attributes.rb +15 -2
- data/lib/klaviyo-api-sdk/models/base_style_properties.rb +15 -5
- data/lib/klaviyo-api-sdk/models/button_action.rb +1 -0
- data/lib/klaviyo-api-sdk/models/button_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/button_styles.rb +25 -3
- data/lib/klaviyo-api-sdk/models/{action_output_condition_filter2.rb → button_styles_height.rb} +3 -7
- data/lib/klaviyo-api-sdk/models/cart_content.rb +277 -0
- data/lib/klaviyo-api-sdk/models/cart_content_properties.rb +236 -0
- data/lib/klaviyo-api-sdk/models/checkboxes_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/conditional_branch_action_data_profile_filter_condition_groups_inner_conditions_inner.rb +5 -0
- data/lib/klaviyo-api-sdk/models/constant_property_mapping.rb +287 -0
- data/lib/klaviyo-api-sdk/models/{price_drop_condition_filter2.rb → constant_property_mapping_value.rb} +6 -16
- data/lib/klaviyo-api-sdk/models/content_experiment_action.rb +1 -1
- data/lib/klaviyo-api-sdk/models/{send_push_notification_action_content_experiment_action_data.rb → content_experiment_action_data.rb} +6 -5
- data/lib/klaviyo-api-sdk/models/{send_push_notification_action_current_experiment.rb → content_experiment_action_data_current_experiment.rb} +6 -6
- data/lib/klaviyo-api-sdk/models/{low_inventory_condition_filter2.rb → content_experiment_action_data_main_action.rb} +3 -16
- data/lib/klaviyo-api-sdk/models/countdown_timer_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/coupon_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/custom_css.rb +231 -0
- data/lib/klaviyo-api-sdk/models/custom_html.rb +292 -0
- data/lib/klaviyo-api-sdk/models/custom_html_properties.rb +263 -0
- data/lib/klaviyo-api-sdk/models/custom_object_date_trigger.rb +450 -0
- data/lib/klaviyo-api-sdk/models/custom_object_property_condition.rb +1 -1
- data/lib/klaviyo-api-sdk/models/custom_object_relationship_source.rb +328 -0
- data/lib/klaviyo-api-sdk/models/date_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/display_options.rb +24 -4
- data/lib/klaviyo-api-sdk/models/dropdown_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/email_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/email_subscription_parameters.rb +13 -9
- data/lib/klaviyo-api-sdk/models/email_unsubscription_parameters.rb +13 -9
- data/lib/klaviyo-api-sdk/models/embedded_object_schema_resource_object.rb +237 -0
- data/lib/klaviyo-api-sdk/models/embedded_object_schema_resource_object_attributes.rb +292 -0
- data/lib/klaviyo-api-sdk/models/embedded_object_schema_resource_object_attributes_source_mapping.rb +224 -0
- data/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes.rb +15 -2
- data/lib/klaviyo-api-sdk/models/events_bulk_create_query_resource_object_attributes.rb +14 -1
- data/lib/klaviyo-api-sdk/models/flow_definition_profile_filter_condition_groups_inner_conditions_inner.rb +5 -0
- data/lib/klaviyo-api-sdk/models/flow_definition_triggers_inner.rb +1 -0
- data/lib/klaviyo-api-sdk/models/flow_email.rb +1 -1
- data/lib/klaviyo-api-sdk/models/flow_push_notification.rb +14 -4
- data/lib/klaviyo-api-sdk/models/flow_sms.rb +15 -2
- data/lib/klaviyo-api-sdk/models/form_create_query_resource_object_attributes.rb +2 -2
- data/lib/klaviyo-api-sdk/models/html_text_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/iaf_deeplink_to_screen.rb +305 -0
- data/lib/klaviyo-api-sdk/models/iaf_deeplink_to_screen_properties.rb +220 -0
- data/lib/klaviyo-api-sdk/models/image_action.rb +1 -0
- data/lib/klaviyo-api-sdk/models/image_block_cropping_properties.rb +0 -35
- data/lib/klaviyo-api-sdk/models/image_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/low_inventory_condition.rb +1 -1
- data/lib/klaviyo-api-sdk/models/low_inventory_trigger.rb +2 -6
- data/lib/klaviyo-api-sdk/models/{low_inventory_condition_filter.rb → low_inventory_trigger_trigger_filter.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/{low_inventory_condition_condition_group.rb → low_inventory_trigger_trigger_filter_condition_groups_inner.rb} +3 -3
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object_attributes.rb +2 -2
- data/lib/klaviyo-api-sdk/models/metric_property_condition.rb +1 -1
- data/lib/klaviyo-api-sdk/models/metric_property_condition_filter.rb +87 -195
- data/lib/klaviyo-api-sdk/models/metric_trigger.rb +2 -1
- data/lib/klaviyo-api-sdk/models/{flow_email_additional_filters.rb → metric_trigger_trigger_filter.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/{flow_email_additional_filters_condition_groups_inner.rb → metric_trigger_trigger_filter_condition_groups_inner.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/mobile_push_content_create.rb +18 -5
- data/lib/klaviyo-api-sdk/models/mobile_push_content_update.rb +18 -5
- data/lib/klaviyo-api-sdk/models/mobile_push_options_on_open.rb +2 -1
- data/lib/klaviyo-api-sdk/models/multi_branch_split_branch_branch_filter_condition_groups_inner_conditions_inner.rb +5 -0
- data/lib/klaviyo-api-sdk/models/object_record_bulk_delete_job_enum.rb +35 -0
- data/lib/klaviyo-api-sdk/models/object_record_delete_job_create_query.rb +223 -0
- data/lib/klaviyo-api-sdk/models/object_record_delete_job_create_query_resource_object.rb +237 -0
- data/lib/klaviyo-api-sdk/models/{flow_push_notification_additional_filters_condition_groups_inner.rb → object_record_delete_job_create_query_resource_object_relationships.rb} +13 -15
- data/lib/klaviyo-api-sdk/models/object_record_delete_job_create_query_resource_object_relationships_object_records.rb +220 -0
- data/lib/klaviyo-api-sdk/models/object_record_delete_job_rels_records_data_inner.rb +238 -0
- data/lib/klaviyo-api-sdk/models/object_record_enum.rb +35 -0
- data/lib/klaviyo-api-sdk/models/object_schema_create_query.rb +223 -0
- data/lib/klaviyo-api-sdk/models/object_schema_create_query_resource_object.rb +246 -0
- data/lib/klaviyo-api-sdk/models/object_schema_create_query_resource_object_attributes.rb +322 -0
- data/lib/klaviyo-api-sdk/models/object_schema_create_query_resource_object_relationships.rb +218 -0
- data/lib/klaviyo-api-sdk/models/object_schema_create_query_resource_object_relationships_object_type.rb +218 -0
- data/lib/klaviyo-api-sdk/models/object_schema_create_query_resource_object_relationships_object_type_data.rb +238 -0
- data/lib/klaviyo-api-sdk/models/object_schema_enum.rb +35 -0
- data/lib/klaviyo-api-sdk/models/object_schema_partial_update_query.rb +223 -0
- data/lib/klaviyo-api-sdk/models/object_schema_partial_update_query_resource_object.rb +252 -0
- data/lib/klaviyo-api-sdk/models/object_schema_partial_update_query_resource_object_attributes.rb +302 -0
- data/lib/klaviyo-api-sdk/models/object_schema_relationship_create_meta.rb +237 -0
- data/lib/klaviyo-api-sdk/models/{metric_property_condition_condition_group.rb → object_schema_relationship_create_query.rb} +14 -14
- data/lib/klaviyo-api-sdk/models/{flow_sms_additional_filters_condition_groups_inner.rb → object_schema_relationship_create_query_data_inner.rb} +37 -15
- data/lib/klaviyo-api-sdk/models/object_schema_relationship_delete_meta.rb +224 -0
- data/lib/klaviyo-api-sdk/models/object_schema_relationship_delete_query.rb +225 -0
- data/lib/klaviyo-api-sdk/models/object_schema_relationship_delete_query_data_inner.rb +247 -0
- data/lib/klaviyo-api-sdk/models/object_schema_relationship_partial_update_query.rb +223 -0
- data/lib/klaviyo-api-sdk/models/object_schema_relationship_partial_update_query_data.rb +247 -0
- data/lib/klaviyo-api-sdk/models/object_schema_relationship_update_meta.rb +246 -0
- data/lib/klaviyo-api-sdk/models/object_type_create_query.rb +223 -0
- data/lib/klaviyo-api-sdk/models/object_type_create_query_resource_object.rb +237 -0
- data/lib/klaviyo-api-sdk/models/object_type_create_query_resource_object_attributes.rb +307 -0
- data/lib/klaviyo-api-sdk/models/object_type_create_query_resource_object_attributes_object_schema.rb +224 -0
- data/lib/klaviyo-api-sdk/models/object_type_enum.rb +35 -0
- data/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb +13 -4
- data/lib/klaviyo-api-sdk/models/open_tracking_subscription_parameters.rb +258 -0
- data/lib/klaviyo-api-sdk/models/open_tracking_unsubscription_parameters.rb +258 -0
- data/lib/klaviyo-api-sdk/models/opt_in_code_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/patch_identifiers.rb +227 -0
- data/lib/klaviyo-api-sdk/models/phone_number_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/price_drop_condition.rb +1 -1
- data/lib/klaviyo-api-sdk/models/price_drop_trigger.rb +2 -6
- data/lib/klaviyo-api-sdk/models/{flow_sms_additional_filters.rb → price_drop_trigger_trigger_filter.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/{price_drop_condition_condition_group.rb → price_drop_trigger_trigger_filter_condition_groups_inner.rb} +3 -3
- data/lib/klaviyo-api-sdk/models/profile_event_tracked_properties.rb +19 -9
- data/lib/klaviyo-api-sdk/models/profile_has_not_received_email_message_condition.rb +1 -1
- data/lib/klaviyo-api-sdk/models/{profile_has_not_received_push_message_condition_timeframe_filter.rb → profile_has_not_received_email_message_condition_timeframe_filter.rb} +1 -1
- data/lib/klaviyo-api-sdk/models/profile_has_not_received_push_message_condition.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_has_not_received_sms_message_condition.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_meta.rb +13 -4
- data/lib/klaviyo-api-sdk/models/profile_not_in_flow_condition.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_object_schema_enum.rb +35 -0
- data/lib/klaviyo-api-sdk/models/profile_object_schema_relationship_create_query.rb +225 -0
- data/lib/klaviyo-api-sdk/models/profile_object_schema_relationship_create_query_data_inner.rb +247 -0
- data/lib/klaviyo-api-sdk/models/profile_object_schema_relationship_delete_query.rb +225 -0
- data/lib/klaviyo-api-sdk/models/profile_object_schema_relationship_delete_query_data_inner.rb +247 -0
- data/lib/klaviyo-api-sdk/models/profile_object_schema_relationship_partial_update_query.rb +223 -0
- data/lib/klaviyo-api-sdk/models/profile_object_schema_relationship_partial_update_query_data.rb +247 -0
- data/lib/klaviyo-api-sdk/models/profile_predictive_analytics_channel_affinity_priority_condition.rb +2 -2
- data/lib/klaviyo-api-sdk/models/profile_predictive_analytics_channel_affinity_rank_condition.rb +2 -2
- data/lib/klaviyo-api-sdk/models/profile_relationship_source.rb +330 -0
- data/lib/klaviyo-api-sdk/models/property_filter.rb +237 -0
- data/lib/klaviyo-api-sdk/models/property_source.rb +254 -0
- data/lib/klaviyo-api-sdk/models/push_action_button.rb +1 -5
- data/lib/klaviyo-api-sdk/models/push_action_button_definition.rb +261 -0
- data/lib/klaviyo-api-sdk/models/push_on_open_web_url.rb +268 -0
- data/lib/klaviyo-api-sdk/models/quote_style.rb +21 -1
- data/lib/klaviyo-api-sdk/models/radio_buttons_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/redirect_properties.rb +2 -5
- data/lib/klaviyo-api-sdk/models/related_id_path.rb +273 -0
- data/lib/klaviyo-api-sdk/models/review_block_styles.rb +13 -13
- data/lib/klaviyo-api-sdk/models/review_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/reviewer_name_style.rb +21 -1
- data/lib/klaviyo-api-sdk/models/row_v0_blocks_inner.rb +1 -0
- data/lib/klaviyo-api-sdk/models/signup_counter_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/simple_property_mapping.rb +287 -0
- data/lib/klaviyo-api-sdk/models/simple_relationship_mapping.rb +287 -0
- data/lib/klaviyo-api-sdk/models/simple_relationship_mapping_source.rb +105 -0
- data/lib/klaviyo-api-sdk/models/sms_consent_checkbox_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/sms_disclosure_link_text_style.rb +319 -0
- data/lib/klaviyo-api-sdk/models/sms_disclosure_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/sms_disclosure_styles.rb +1 -1
- data/lib/klaviyo-api-sdk/models/source_mapping_create_query_resource_object.rb +237 -0
- data/lib/klaviyo-api-sdk/models/source_mapping_create_query_resource_object_attributes.rb +235 -0
- data/lib/klaviyo-api-sdk/models/source_mapping_create_query_resource_object_attributes_property_mappings_inner.rb +104 -0
- data/lib/klaviyo-api-sdk/models/source_mapping_enum.rb +35 -0
- data/lib/klaviyo-api-sdk/models/source_mapping_partial_update_query.rb +223 -0
- data/lib/klaviyo-api-sdk/models/source_mapping_partial_update_query_resource_object.rb +252 -0
- data/lib/klaviyo-api-sdk/models/spin_to_win_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/string_phone_operator_string_array_filter.rb +1 -1
- data/lib/klaviyo-api-sdk/models/table_fallback_image_sub_block.rb +0 -13
- data/lib/klaviyo-api-sdk/models/table_image_sub_block.rb +0 -13
- data/lib/klaviyo-api-sdk/models/template_definition.rb +1 -0
- data/lib/klaviyo-api-sdk/models/text_properties.rb +11 -1
- data/lib/klaviyo-api-sdk/models/version.rb +39 -4
- data/lib/klaviyo-api-sdk/models/version_properties.rb +14 -4
- data/lib/klaviyo-api-sdk/models/version_styles.rb +15 -6
- data/lib/klaviyo-api-sdk/models/version_triggers_inner.rb +1 -0
- data/lib/klaviyo-api-sdk.rb +86 -23
- data/lib/klaviyo-api-sdk.rb.bak +87 -24
- metadata +88 -25
- data/lib/klaviyo-api-sdk/models/custom_object_property_condition_filter.rb +0 -117
- data/lib/klaviyo-api-sdk/models/flow_email_additional_filters_condition_groups_inner_conditions_inner.rb +0 -116
- data/lib/klaviyo-api-sdk/models/flow_push_notification_additional_filters_condition_groups_inner_conditions_inner.rb +0 -116
- data/lib/klaviyo-api-sdk/models/flow_sms_additional_filters_condition_groups_inner_conditions_inner.rb +0 -116
- data/lib/klaviyo-api-sdk/models/metric_property_condition_filter2.rb +0 -117
- data/lib/klaviyo-api-sdk/models/price_drop_condition_filter.rb +0 -225
data/lib/klaviyo-api-sdk/models/embedded_object_schema_resource_object_attributes_source_mapping.rb
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Klaviyo API
|
|
3
|
+
|
|
4
|
+
#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details.
|
|
5
|
+
|
|
6
|
+
Contact: developers@klaviyo.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.2.1
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
require 'time'
|
|
14
|
+
|
|
15
|
+
module KlaviyoAPI
|
|
16
|
+
# The source mapping to create with this object schema
|
|
17
|
+
class EmbeddedObjectSchemaResourceObjectAttributesSourceMapping
|
|
18
|
+
attr_accessor :data
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'data' => :'data'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns all the JSON keys this model knows about
|
|
28
|
+
def self.acceptable_attributes
|
|
29
|
+
attribute_map.values
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Attribute type mapping.
|
|
33
|
+
def self.openapi_types
|
|
34
|
+
{
|
|
35
|
+
:'data' => :'SourceMappingCreateQueryResourceObject'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# List of attributes with nullable: true
|
|
40
|
+
def self.openapi_nullable
|
|
41
|
+
Set.new([
|
|
42
|
+
])
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
47
|
+
def initialize(attributes = {})
|
|
48
|
+
if (!attributes.is_a?(Hash))
|
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KlaviyoAPI::EmbeddedObjectSchemaResourceObjectAttributesSourceMapping` initialize method"
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KlaviyoAPI::EmbeddedObjectSchemaResourceObjectAttributesSourceMapping`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
56
|
+
end
|
|
57
|
+
h[k.to_sym] = v
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if attributes.key?(:'data')
|
|
61
|
+
self.data = attributes[:'data']
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
66
|
+
# @return Array for valid properties with the reasons
|
|
67
|
+
def list_invalid_properties
|
|
68
|
+
invalid_properties = Array.new
|
|
69
|
+
if @data.nil?
|
|
70
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
invalid_properties
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Check to see if the all the properties in the model are valid
|
|
77
|
+
# @return true if the model is valid
|
|
78
|
+
def valid?
|
|
79
|
+
return false if @data.nil?
|
|
80
|
+
true
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Checks equality by comparing each attribute.
|
|
84
|
+
# @param [Object] Object to be compared
|
|
85
|
+
def ==(o)
|
|
86
|
+
return true if self.equal?(o)
|
|
87
|
+
self.class == o.class &&
|
|
88
|
+
data == o.data
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# @see the `==` method
|
|
92
|
+
# @param [Object] Object to be compared
|
|
93
|
+
def eql?(o)
|
|
94
|
+
self == o
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Calculates hash code according to all attributes.
|
|
98
|
+
# @return [Integer] Hash code
|
|
99
|
+
def hash
|
|
100
|
+
[data].hash
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Builds the object from hash
|
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
|
+
# @return [Object] Returns the model itself
|
|
106
|
+
def self.build_from_hash(attributes)
|
|
107
|
+
new.build_from_hash(attributes)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Builds the object from hash
|
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
112
|
+
# @return [Object] Returns the model itself
|
|
113
|
+
def build_from_hash(attributes)
|
|
114
|
+
return nil unless attributes.is_a?(Hash)
|
|
115
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
116
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
117
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
118
|
+
self.send("#{key}=", nil)
|
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
120
|
+
# check to ensure the input is an array given that the attribute
|
|
121
|
+
# is documented as an array but the input is not
|
|
122
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
123
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
124
|
+
end
|
|
125
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
126
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
self
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Deserializes the data based on type
|
|
134
|
+
# @param string type Data type
|
|
135
|
+
# @param string value Value to be deserialized
|
|
136
|
+
# @return [Object] Deserialized data
|
|
137
|
+
def _deserialize(type, value)
|
|
138
|
+
case type.to_sym
|
|
139
|
+
when :Time
|
|
140
|
+
Time.parse(value)
|
|
141
|
+
when :Date
|
|
142
|
+
Date.parse(value)
|
|
143
|
+
when :String
|
|
144
|
+
value.to_s
|
|
145
|
+
when :Integer
|
|
146
|
+
value.to_i
|
|
147
|
+
when :Float
|
|
148
|
+
value.to_f
|
|
149
|
+
when :Boolean
|
|
150
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
151
|
+
true
|
|
152
|
+
else
|
|
153
|
+
false
|
|
154
|
+
end
|
|
155
|
+
when :Object
|
|
156
|
+
# generic object (usually a Hash), return directly
|
|
157
|
+
value
|
|
158
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
159
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
160
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
161
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
162
|
+
k_type = Regexp.last_match[:k_type]
|
|
163
|
+
v_type = Regexp.last_match[:v_type]
|
|
164
|
+
{}.tap do |hash|
|
|
165
|
+
value.each do |k, v|
|
|
166
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
else # model
|
|
170
|
+
# models (e.g. Pet) or oneOf
|
|
171
|
+
klass = KlaviyoAPI.const_get(type)
|
|
172
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Returns the string representation of the object
|
|
177
|
+
# @return [String] String presentation of the object
|
|
178
|
+
def to_s
|
|
179
|
+
to_hash.to_s
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
|
184
|
+
def to_body
|
|
185
|
+
to_hash
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Returns the object in the form of hash
|
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
|
190
|
+
def to_hash
|
|
191
|
+
hash = {}
|
|
192
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
193
|
+
value = self.send(attr)
|
|
194
|
+
if value.nil?
|
|
195
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
196
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
hash[param] = _to_hash(value)
|
|
200
|
+
end
|
|
201
|
+
hash
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Outputs non-array value in the form of hash
|
|
205
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
206
|
+
# @param [Object] value Any valid value
|
|
207
|
+
# @return [Hash] Returns the value in the form of hash
|
|
208
|
+
def _to_hash(value)
|
|
209
|
+
if value.is_a?(Array)
|
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
|
211
|
+
elsif value.is_a?(Hash)
|
|
212
|
+
{}.tap do |hash|
|
|
213
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
214
|
+
end
|
|
215
|
+
elsif value.respond_to? :to_hash
|
|
216
|
+
value.to_hash
|
|
217
|
+
else
|
|
218
|
+
value
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
end
|
|
@@ -17,7 +17,7 @@ module KlaviyoAPI
|
|
|
17
17
|
# Properties of this event (must not exceed 400 properties). The size of the event payload must not exceed 5 MB, and each string cannot be larger than 100 KB. For a full list of data limits on event payloads, see [Limitations](https://developers.klaviyo.com/en/reference/events_api_overview#limitations). Note any top-level property that is not an object can be used to create segments. The `$extra` property records any non-segmentable values that can be referenced later, e.g., HTML templates are useful on a segment but are not used to create a segment.
|
|
18
18
|
attr_accessor :properties
|
|
19
19
|
|
|
20
|
-
# When this event occurred. By default, the time the request was received will be used. The time is truncated to the second. The time must be after the year
|
|
20
|
+
# When this event occurred. By default, the time the request was received will be used. The time is truncated to the second. The time must be after the year 1990 and can only be up to 1 year in the future.
|
|
21
21
|
attr_accessor :time
|
|
22
22
|
|
|
23
23
|
# A numeric, monetary value to associate with this event. For example, the dollar amount of a purchase.
|
|
@@ -29,6 +29,9 @@ module KlaviyoAPI
|
|
|
29
29
|
# A unique identifier for an event. If the unique_id is repeated for the same profile and metric, only the first processed event will be recorded. If this is not present, this will use the time to the second. Using the default, this limits only one event per profile per second.
|
|
30
30
|
attr_accessor :unique_id
|
|
31
31
|
|
|
32
|
+
# When true, the event is recorded but does NOT trigger flows. Use this when backfilling historical events so existing flow definitions do not re-fire on events that already fired in the past.
|
|
33
|
+
attr_accessor :backfill
|
|
34
|
+
|
|
32
35
|
attr_accessor :metric
|
|
33
36
|
|
|
34
37
|
attr_accessor :profile
|
|
@@ -41,6 +44,7 @@ module KlaviyoAPI
|
|
|
41
44
|
:'value' => :'value',
|
|
42
45
|
:'value_currency' => :'value_currency',
|
|
43
46
|
:'unique_id' => :'unique_id',
|
|
47
|
+
:'backfill' => :'backfill',
|
|
44
48
|
:'metric' => :'metric',
|
|
45
49
|
:'profile' => :'profile'
|
|
46
50
|
}
|
|
@@ -59,6 +63,7 @@ module KlaviyoAPI
|
|
|
59
63
|
:'value' => :'Float',
|
|
60
64
|
:'value_currency' => :'String',
|
|
61
65
|
:'unique_id' => :'String',
|
|
66
|
+
:'backfill' => :'Boolean',
|
|
62
67
|
:'metric' => :'EventCreateQueryV2ResourceObjectAttributesMetric',
|
|
63
68
|
:'profile' => :'EventCreateQueryV2ResourceObjectAttributesProfile'
|
|
64
69
|
}
|
|
@@ -71,6 +76,7 @@ module KlaviyoAPI
|
|
|
71
76
|
:'value',
|
|
72
77
|
:'value_currency',
|
|
73
78
|
:'unique_id',
|
|
79
|
+
:'backfill',
|
|
74
80
|
])
|
|
75
81
|
end
|
|
76
82
|
|
|
@@ -109,6 +115,12 @@ module KlaviyoAPI
|
|
|
109
115
|
self.unique_id = attributes[:'unique_id']
|
|
110
116
|
end
|
|
111
117
|
|
|
118
|
+
if attributes.key?(:'backfill')
|
|
119
|
+
self.backfill = attributes[:'backfill']
|
|
120
|
+
else
|
|
121
|
+
self.backfill = false
|
|
122
|
+
end
|
|
123
|
+
|
|
112
124
|
if attributes.key?(:'metric')
|
|
113
125
|
self.metric = attributes[:'metric']
|
|
114
126
|
end
|
|
@@ -156,6 +168,7 @@ module KlaviyoAPI
|
|
|
156
168
|
value == o.value &&
|
|
157
169
|
value_currency == o.value_currency &&
|
|
158
170
|
unique_id == o.unique_id &&
|
|
171
|
+
backfill == o.backfill &&
|
|
159
172
|
metric == o.metric &&
|
|
160
173
|
profile == o.profile
|
|
161
174
|
end
|
|
@@ -169,7 +182,7 @@ module KlaviyoAPI
|
|
|
169
182
|
# Calculates hash code according to all attributes.
|
|
170
183
|
# @return [Integer] Hash code
|
|
171
184
|
def hash
|
|
172
|
-
[properties, time, value, value_currency, unique_id, metric, profile].hash
|
|
185
|
+
[properties, time, value, value_currency, unique_id, backfill, metric, profile].hash
|
|
173
186
|
end
|
|
174
187
|
|
|
175
188
|
# Builds the object from hash
|
|
@@ -14,6 +14,9 @@ require 'time'
|
|
|
14
14
|
|
|
15
15
|
module KlaviyoAPI
|
|
16
16
|
class EventsBulkCreateQueryResourceObjectAttributes
|
|
17
|
+
# When true, the event is recorded but does NOT trigger flows. Use this when backfilling historical events so existing flow definitions do not re-fire on events that already fired in the past.
|
|
18
|
+
attr_accessor :backfill
|
|
19
|
+
|
|
17
20
|
attr_accessor :profile
|
|
18
21
|
|
|
19
22
|
attr_accessor :events
|
|
@@ -21,6 +24,7 @@ module KlaviyoAPI
|
|
|
21
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
25
|
def self.attribute_map
|
|
23
26
|
{
|
|
27
|
+
:'backfill' => :'backfill',
|
|
24
28
|
:'profile' => :'profile',
|
|
25
29
|
:'events' => :'events'
|
|
26
30
|
}
|
|
@@ -34,6 +38,7 @@ module KlaviyoAPI
|
|
|
34
38
|
# Attribute type mapping.
|
|
35
39
|
def self.openapi_types
|
|
36
40
|
{
|
|
41
|
+
:'backfill' => :'Boolean',
|
|
37
42
|
:'profile' => :'EventsBulkCreateQueryResourceObjectAttributesProfile',
|
|
38
43
|
:'events' => :'EventsBulkCreateQueryResourceObjectAttributesEvents'
|
|
39
44
|
}
|
|
@@ -42,6 +47,7 @@ module KlaviyoAPI
|
|
|
42
47
|
# List of attributes with nullable: true
|
|
43
48
|
def self.openapi_nullable
|
|
44
49
|
Set.new([
|
|
50
|
+
:'backfill',
|
|
45
51
|
])
|
|
46
52
|
end
|
|
47
53
|
|
|
@@ -60,6 +66,12 @@ module KlaviyoAPI
|
|
|
60
66
|
h[k.to_sym] = v
|
|
61
67
|
}
|
|
62
68
|
|
|
69
|
+
if attributes.key?(:'backfill')
|
|
70
|
+
self.backfill = attributes[:'backfill']
|
|
71
|
+
else
|
|
72
|
+
self.backfill = false
|
|
73
|
+
end
|
|
74
|
+
|
|
63
75
|
if attributes.key?(:'profile')
|
|
64
76
|
self.profile = attributes[:'profile']
|
|
65
77
|
end
|
|
@@ -97,6 +109,7 @@ module KlaviyoAPI
|
|
|
97
109
|
def ==(o)
|
|
98
110
|
return true if self.equal?(o)
|
|
99
111
|
self.class == o.class &&
|
|
112
|
+
backfill == o.backfill &&
|
|
100
113
|
profile == o.profile &&
|
|
101
114
|
events == o.events
|
|
102
115
|
end
|
|
@@ -110,7 +123,7 @@ module KlaviyoAPI
|
|
|
110
123
|
# Calculates hash code according to all attributes.
|
|
111
124
|
# @return [Integer] Hash code
|
|
112
125
|
def hash
|
|
113
|
-
[profile, events].hash
|
|
126
|
+
[backfill, profile, events].hash
|
|
114
127
|
end
|
|
115
128
|
|
|
116
129
|
# Builds the object from hash
|
|
@@ -21,11 +21,16 @@ module KlaviyoAPI
|
|
|
21
21
|
:'FlowsProfileMetricCondition',
|
|
22
22
|
:'ProfileHasCustomObjectCondition',
|
|
23
23
|
:'ProfileHasGroupMembershipCondition',
|
|
24
|
+
:'ProfileHasNotReceivedEmailMessageCondition',
|
|
25
|
+
:'ProfileHasNotReceivedPushMessageCondition',
|
|
26
|
+
:'ProfileHasNotReceivedSmsMessageCondition',
|
|
24
27
|
:'ProfileMarketingConsentCondition',
|
|
25
28
|
:'ProfileNoGroupMembershipCondition',
|
|
26
29
|
:'ProfileNotInFlowCondition',
|
|
27
30
|
:'ProfilePermissionsCondition',
|
|
28
31
|
:'ProfilePostalCodeDistanceCondition',
|
|
32
|
+
:'ProfilePredictiveAnalyticsChannelAffinityPriorityCondition',
|
|
33
|
+
:'ProfilePredictiveAnalyticsChannelAffinityRankCondition',
|
|
29
34
|
:'ProfilePredictiveAnalyticsDateCondition',
|
|
30
35
|
:'ProfilePredictiveAnalyticsNumericCondition',
|
|
31
36
|
:'ProfilePredictiveAnalyticsStringCondition',
|
|
@@ -86,7 +86,7 @@ module KlaviyoAPI
|
|
|
86
86
|
:'transactional' => :'Boolean',
|
|
87
87
|
:'add_tracking_params' => :'Boolean',
|
|
88
88
|
:'custom_tracking_params' => :'Array<UtmParam>',
|
|
89
|
-
:'additional_filters' => :'
|
|
89
|
+
:'additional_filters' => :'ConditionalBranchActionDataProfileFilter',
|
|
90
90
|
:'name' => :'String',
|
|
91
91
|
:'id' => :'String'
|
|
92
92
|
}
|
|
@@ -40,6 +40,8 @@ module KlaviyoAPI
|
|
|
40
40
|
|
|
41
41
|
attr_accessor :android_link
|
|
42
42
|
|
|
43
|
+
attr_accessor :web_url
|
|
44
|
+
|
|
43
45
|
# The type of push notification to send.
|
|
44
46
|
attr_accessor :push_type
|
|
45
47
|
|
|
@@ -94,6 +96,7 @@ module KlaviyoAPI
|
|
|
94
96
|
:'on_open' => :'on_open',
|
|
95
97
|
:'ios_link' => :'ios_link',
|
|
96
98
|
:'android_link' => :'android_link',
|
|
99
|
+
:'web_url' => :'web_url',
|
|
97
100
|
:'push_type' => :'push_type',
|
|
98
101
|
:'kv_pairs' => :'kv_pairs',
|
|
99
102
|
:'conversion_metric_id' => :'conversion_metric_id',
|
|
@@ -124,11 +127,12 @@ module KlaviyoAPI
|
|
|
124
127
|
:'on_open' => :'String',
|
|
125
128
|
:'ios_link' => :'String',
|
|
126
129
|
:'android_link' => :'String',
|
|
130
|
+
:'web_url' => :'String',
|
|
127
131
|
:'push_type' => :'String',
|
|
128
132
|
:'kv_pairs' => :'Object',
|
|
129
133
|
:'conversion_metric_id' => :'String',
|
|
130
134
|
:'smart_sending_enabled' => :'Boolean',
|
|
131
|
-
:'additional_filters' => :'
|
|
135
|
+
:'additional_filters' => :'ConditionalBranchActionDataProfileFilter',
|
|
132
136
|
:'action_buttons' => :'Array<PushActionButton>',
|
|
133
137
|
:'name' => :'String',
|
|
134
138
|
:'id' => :'String'
|
|
@@ -144,6 +148,7 @@ module KlaviyoAPI
|
|
|
144
148
|
:'video_asset_id',
|
|
145
149
|
:'ios_link',
|
|
146
150
|
:'android_link',
|
|
151
|
+
:'web_url',
|
|
147
152
|
:'push_type',
|
|
148
153
|
:'kv_pairs',
|
|
149
154
|
:'conversion_metric_id',
|
|
@@ -219,6 +224,10 @@ module KlaviyoAPI
|
|
|
219
224
|
self.android_link = attributes[:'android_link']
|
|
220
225
|
end
|
|
221
226
|
|
|
227
|
+
if attributes.key?(:'web_url')
|
|
228
|
+
self.web_url = attributes[:'web_url']
|
|
229
|
+
end
|
|
230
|
+
|
|
222
231
|
if attributes.key?(:'push_type')
|
|
223
232
|
self.push_type = attributes[:'push_type']
|
|
224
233
|
end
|
|
@@ -271,7 +280,7 @@ module KlaviyoAPI
|
|
|
271
280
|
# @return true if the model is valid
|
|
272
281
|
def valid?
|
|
273
282
|
return false if @body.nil?
|
|
274
|
-
on_open_validator = EnumAttributeValidator.new('String', ["home", "link"])
|
|
283
|
+
on_open_validator = EnumAttributeValidator.new('String', ["home", "link", "open_url"])
|
|
275
284
|
return false unless on_open_validator.valid?(@on_open)
|
|
276
285
|
push_type_validator = EnumAttributeValidator.new('String', ["silent", "standard"])
|
|
277
286
|
return false unless push_type_validator.valid?(@push_type)
|
|
@@ -281,7 +290,7 @@ module KlaviyoAPI
|
|
|
281
290
|
# Custom attribute writer method checking allowed values (enum).
|
|
282
291
|
# @param [Object] on_open Object to be assigned
|
|
283
292
|
def on_open=(on_open)
|
|
284
|
-
validator = EnumAttributeValidator.new('String', ["home", "link"])
|
|
293
|
+
validator = EnumAttributeValidator.new('String', ["home", "link", "open_url"])
|
|
285
294
|
unless validator.valid?(on_open)
|
|
286
295
|
fail ArgumentError, "invalid value for \"on_open\", must be one of #{validator.allowable_values}."
|
|
287
296
|
end
|
|
@@ -314,6 +323,7 @@ module KlaviyoAPI
|
|
|
314
323
|
on_open == o.on_open &&
|
|
315
324
|
ios_link == o.ios_link &&
|
|
316
325
|
android_link == o.android_link &&
|
|
326
|
+
web_url == o.web_url &&
|
|
317
327
|
push_type == o.push_type &&
|
|
318
328
|
kv_pairs == o.kv_pairs &&
|
|
319
329
|
conversion_metric_id == o.conversion_metric_id &&
|
|
@@ -333,7 +343,7 @@ module KlaviyoAPI
|
|
|
333
343
|
# Calculates hash code according to all attributes.
|
|
334
344
|
# @return [Integer] Hash code
|
|
335
345
|
def hash
|
|
336
|
-
[title, body, sound, badge, badge_options, image_id, dynamic_image, video_asset_id, on_open, ios_link, android_link, push_type, kv_pairs, conversion_metric_id, smart_sending_enabled, additional_filters, action_buttons, name, id].hash
|
|
346
|
+
[title, body, sound, badge, badge_options, image_id, dynamic_image, video_asset_id, on_open, ios_link, android_link, web_url, push_type, kv_pairs, conversion_metric_id, smart_sending_enabled, additional_filters, action_buttons, name, id].hash
|
|
337
347
|
end
|
|
338
348
|
|
|
339
349
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module KlaviyoAPI
|
|
|
22
22
|
# A dynamic image asset to include in the SMS message.
|
|
23
23
|
attr_accessor :dynamic_image
|
|
24
24
|
|
|
25
|
+
# The RCS/SMS message hierarchy (fallback chain). Each item contains a message_format ('RCS' or 'SMS'), message body, and optional rich content.
|
|
26
|
+
attr_accessor :message_hierarchy
|
|
27
|
+
|
|
25
28
|
attr_accessor :shorten_links
|
|
26
29
|
|
|
27
30
|
attr_accessor :include_contact_card
|
|
@@ -57,6 +60,7 @@ module KlaviyoAPI
|
|
|
57
60
|
:'body' => :'body',
|
|
58
61
|
:'image_id' => :'image_id',
|
|
59
62
|
:'dynamic_image' => :'dynamic_image',
|
|
63
|
+
:'message_hierarchy' => :'message_hierarchy',
|
|
60
64
|
:'shorten_links' => :'shorten_links',
|
|
61
65
|
:'include_contact_card' => :'include_contact_card',
|
|
62
66
|
:'add_org_prefix' => :'add_org_prefix',
|
|
@@ -85,6 +89,7 @@ module KlaviyoAPI
|
|
|
85
89
|
:'body' => :'String',
|
|
86
90
|
:'image_id' => :'String',
|
|
87
91
|
:'dynamic_image' => :'String',
|
|
92
|
+
:'message_hierarchy' => :'Array<Object>',
|
|
88
93
|
:'shorten_links' => :'Boolean',
|
|
89
94
|
:'include_contact_card' => :'Boolean',
|
|
90
95
|
:'add_org_prefix' => :'Boolean',
|
|
@@ -96,7 +101,7 @@ module KlaviyoAPI
|
|
|
96
101
|
:'add_tracking_params' => :'Boolean',
|
|
97
102
|
:'custom_tracking_params' => :'Array<UtmParam>',
|
|
98
103
|
:'template_id' => :'String',
|
|
99
|
-
:'additional_filters' => :'
|
|
104
|
+
:'additional_filters' => :'ConditionalBranchActionDataProfileFilter',
|
|
100
105
|
:'name' => :'String',
|
|
101
106
|
:'id' => :'String'
|
|
102
107
|
}
|
|
@@ -107,6 +112,7 @@ module KlaviyoAPI
|
|
|
107
112
|
Set.new([
|
|
108
113
|
:'image_id',
|
|
109
114
|
:'dynamic_image',
|
|
115
|
+
:'message_hierarchy',
|
|
110
116
|
:'custom_tracking_params',
|
|
111
117
|
:'template_id',
|
|
112
118
|
:'additional_filters',
|
|
@@ -142,6 +148,12 @@ module KlaviyoAPI
|
|
|
142
148
|
self.dynamic_image = attributes[:'dynamic_image']
|
|
143
149
|
end
|
|
144
150
|
|
|
151
|
+
if attributes.key?(:'message_hierarchy')
|
|
152
|
+
if (value = attributes[:'message_hierarchy']).is_a?(Array)
|
|
153
|
+
self.message_hierarchy = value
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
145
157
|
if attributes.key?(:'shorten_links')
|
|
146
158
|
self.shorten_links = attributes[:'shorten_links']
|
|
147
159
|
else
|
|
@@ -245,6 +257,7 @@ module KlaviyoAPI
|
|
|
245
257
|
body == o.body &&
|
|
246
258
|
image_id == o.image_id &&
|
|
247
259
|
dynamic_image == o.dynamic_image &&
|
|
260
|
+
message_hierarchy == o.message_hierarchy &&
|
|
248
261
|
shorten_links == o.shorten_links &&
|
|
249
262
|
include_contact_card == o.include_contact_card &&
|
|
250
263
|
add_org_prefix == o.add_org_prefix &&
|
|
@@ -270,7 +283,7 @@ module KlaviyoAPI
|
|
|
270
283
|
# Calculates hash code according to all attributes.
|
|
271
284
|
# @return [Integer] Hash code
|
|
272
285
|
def hash
|
|
273
|
-
[body, image_id, dynamic_image, shorten_links, include_contact_card, add_org_prefix, add_info_link, add_opt_out_language, smart_sending_enabled, sms_quiet_hours_enabled, transactional, add_tracking_params, custom_tracking_params, template_id, additional_filters, name, id].hash
|
|
286
|
+
[body, image_id, dynamic_image, message_hierarchy, shorten_links, include_contact_card, add_org_prefix, add_info_link, add_opt_out_language, smart_sending_enabled, sms_quiet_hours_enabled, transactional, add_tracking_params, custom_tracking_params, template_id, additional_filters, name, id].hash
|
|
274
287
|
end
|
|
275
288
|
|
|
276
289
|
# Builds the object from hash
|
|
@@ -138,7 +138,7 @@ module KlaviyoAPI
|
|
|
138
138
|
def valid?
|
|
139
139
|
return false if @definition.nil?
|
|
140
140
|
return false if @status.nil?
|
|
141
|
-
status_validator = EnumAttributeValidator.new('String', ["draft"
|
|
141
|
+
status_validator = EnumAttributeValidator.new('String', ["draft"])
|
|
142
142
|
return false unless status_validator.valid?(@status)
|
|
143
143
|
return false if @ab_test.nil?
|
|
144
144
|
return false if @name.nil?
|
|
@@ -148,7 +148,7 @@ module KlaviyoAPI
|
|
|
148
148
|
# Custom attribute writer method checking allowed values (enum).
|
|
149
149
|
# @param [Object] status Object to be assigned
|
|
150
150
|
def status=(status)
|
|
151
|
-
validator = EnumAttributeValidator.new('String', ["draft"
|
|
151
|
+
validator = EnumAttributeValidator.new('String', ["draft"])
|
|
152
152
|
unless validator.valid?(status)
|
|
153
153
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
154
154
|
end
|
|
@@ -16,6 +16,8 @@ module KlaviyoAPI
|
|
|
16
16
|
class HTMLTextProperties
|
|
17
17
|
attr_accessor :display_device
|
|
18
18
|
|
|
19
|
+
attr_accessor :classname
|
|
20
|
+
|
|
19
21
|
attr_accessor :content
|
|
20
22
|
|
|
21
23
|
class EnumAttributeValidator
|
|
@@ -44,6 +46,7 @@ module KlaviyoAPI
|
|
|
44
46
|
def self.attribute_map
|
|
45
47
|
{
|
|
46
48
|
:'display_device' => :'display_device',
|
|
49
|
+
:'classname' => :'classname',
|
|
47
50
|
:'content' => :'content'
|
|
48
51
|
}
|
|
49
52
|
end
|
|
@@ -57,6 +60,7 @@ module KlaviyoAPI
|
|
|
57
60
|
def self.openapi_types
|
|
58
61
|
{
|
|
59
62
|
:'display_device' => :'Array<String>',
|
|
63
|
+
:'classname' => :'String',
|
|
60
64
|
:'content' => :'String'
|
|
61
65
|
}
|
|
62
66
|
end
|
|
@@ -64,6 +68,7 @@ module KlaviyoAPI
|
|
|
64
68
|
# List of attributes with nullable: true
|
|
65
69
|
def self.openapi_nullable
|
|
66
70
|
Set.new([
|
|
71
|
+
:'classname',
|
|
67
72
|
])
|
|
68
73
|
end
|
|
69
74
|
|
|
@@ -88,6 +93,10 @@ module KlaviyoAPI
|
|
|
88
93
|
end
|
|
89
94
|
end
|
|
90
95
|
|
|
96
|
+
if attributes.key?(:'classname')
|
|
97
|
+
self.classname = attributes[:'classname']
|
|
98
|
+
end
|
|
99
|
+
|
|
91
100
|
if attributes.key?(:'content')
|
|
92
101
|
self.content = attributes[:'content']
|
|
93
102
|
else
|
|
@@ -114,6 +123,7 @@ module KlaviyoAPI
|
|
|
114
123
|
return true if self.equal?(o)
|
|
115
124
|
self.class == o.class &&
|
|
116
125
|
display_device == o.display_device &&
|
|
126
|
+
classname == o.classname &&
|
|
117
127
|
content == o.content
|
|
118
128
|
end
|
|
119
129
|
|
|
@@ -126,7 +136,7 @@ module KlaviyoAPI
|
|
|
126
136
|
# Calculates hash code according to all attributes.
|
|
127
137
|
# @return [Integer] Hash code
|
|
128
138
|
def hash
|
|
129
|
-
[display_device, content].hash
|
|
139
|
+
[display_device, classname, content].hash
|
|
130
140
|
end
|
|
131
141
|
|
|
132
142
|
# Builds the object from hash
|