talon_one 4.0.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +83 -18
- data/docs/AchievementProgress.md +2 -0
- data/docs/ActivateUserRequest.md +17 -0
- data/docs/AdditionalCampaignProperties.md +3 -1
- data/docs/AnalyticsDataPoint.md +19 -0
- data/docs/AnalyticsDataPointWithTrend.md +19 -0
- data/docs/AnalyticsDataPointWithTrendAndInfluencedRate.md +21 -0
- data/docs/AnalyticsDataPointWithTrendAndUplift.md +21 -0
- data/docs/Application.md +4 -0
- data/docs/ApplicationAnalyticsDataPoint.md +6 -6
- data/docs/ApplicationCIF.md +33 -0
- data/docs/ApplicationCIFExpression.md +27 -0
- data/docs/ApplicationCampaignAnalytics.md +13 -19
- data/docs/ApplicationCampaignStats.md +1 -3
- data/docs/AsyncCouponDeletionJobResponse.md +17 -0
- data/docs/BaseLoyaltyProgram.md +8 -4
- data/docs/BaseNotification.md +1 -1
- data/docs/BaseNotificationEntity.md +1 -1
- data/docs/Campaign.md +15 -1
- data/docs/CampaignCollectionEditedNotification.md +21 -0
- data/docs/CampaignNotificationPolicy.md +3 -1
- data/docs/CampaignStateChangedNotification.md +2 -2
- data/docs/CampaignStoreBudget.md +25 -0
- data/docs/CampaignVersions.md +27 -0
- data/docs/CardAddedDeductedPointsNotificationPolicy.md +19 -0
- data/docs/CartItem.md +1 -1
- data/docs/CodeGeneratorSettings.md +1 -1
- data/docs/Coupon.md +3 -3
- data/docs/CouponConstraints.md +1 -1
- data/docs/CouponCreationJob.md +1 -1
- data/docs/CouponDeletionFilters.md +43 -0
- data/docs/CouponDeletionJob.md +39 -0
- data/docs/CustomerInventory.md +1 -1
- data/docs/CustomerSessionV2.md +2 -2
- data/docs/Effect.md +8 -0
- data/docs/EffectEntity.md +9 -1
- data/docs/Environment.md +3 -1
- data/docs/Event.md +1 -1
- data/docs/GenerateCampaignDescription.md +19 -0
- data/docs/GenerateCampaignTags.md +17 -0
- data/docs/GenerateItemFilterDescription.md +17 -0
- data/docs/GenerateLoyaltyCard.md +19 -0
- data/docs/GenerateRuleTitle.md +19 -0
- data/docs/GenerateRuleTitleRule.md +19 -0
- data/docs/IncreaseAchievementProgressEffectProps.md +1 -1
- data/docs/InlineResponse20044.md +1 -1
- data/docs/IntegrationApi.md +77 -16
- data/docs/IntegrationCoupon.md +3 -3
- data/docs/InventoryCoupon.md +3 -3
- data/docs/InventoryReferral.md +1 -1
- data/docs/LoyaltyBalanceWithTier.md +31 -0
- data/docs/LoyaltyBalancesWithTiers.md +19 -0
- data/docs/LoyaltyCard.md +6 -2
- data/docs/LoyaltyCardBalances.md +21 -0
- data/docs/LoyaltyCardBatch.md +21 -0
- data/docs/LoyaltyCardBatchResponse.md +19 -0
- data/docs/LoyaltyCardProfileRegistration.md +1 -1
- data/docs/LoyaltyProgram.md +14 -6
- data/docs/ManagementApi.md +1269 -176
- data/docs/MessageLogEntry.md +1 -3
- data/docs/MessageLogResponse.md +3 -3
- data/docs/NewAppWideCouponDeletionJob.md +19 -0
- data/docs/NewApplication.md +3 -1
- data/docs/NewApplicationCIF.md +27 -0
- data/docs/NewApplicationCIFExpression.md +21 -0
- data/docs/NewBaseNotification.md +1 -1
- data/docs/NewCouponCreationJob.md +1 -1
- data/docs/NewCouponDeletionJob.md +17 -0
- data/docs/NewCoupons.md +2 -2
- data/docs/NewCouponsForMultipleRecipients.md +1 -1
- data/docs/NewCustomerSessionV2.md +2 -2
- data/docs/NewExternalInvitation.md +21 -0
- data/docs/NewLoyaltyProgram.md +8 -4
- data/docs/NewOutgoingIntegrationWebhook.md +2 -0
- data/docs/NewReferral.md +1 -1
- data/docs/NewReferralsForMultipleAdvocates.md +1 -1
- data/docs/NewRevisionVersion.md +37 -0
- data/docs/NewWebhook.md +2 -0
- data/docs/OktaEvent.md +19 -0
- data/docs/OktaEventPayload.md +17 -0
- data/docs/OktaEventPayloadData.md +17 -0
- data/docs/OktaEventTarget.md +21 -0
- data/docs/ProjectedTier.md +21 -0
- data/docs/Referral.md +1 -1
- data/docs/ReferralConstraints.md +1 -1
- data/docs/RejectCouponEffectProps.md +3 -1
- data/docs/RejectReferralEffectProps.md +3 -1
- data/docs/Revision.md +35 -0
- data/docs/RevisionActivation.md +17 -0
- data/docs/RevisionVersion.md +53 -0
- data/docs/RollbackIncreasedAchievementProgressEffectProps.md +27 -0
- data/docs/RuleFailureReason.md +5 -1
- data/docs/SSOConfig.md +3 -1
- data/docs/ScimBaseUser.md +23 -0
- data/docs/ScimBaseUserName.md +17 -0
- data/docs/ScimNewUser.md +23 -0
- data/docs/ScimPatchOperation.md +21 -0
- data/docs/ScimPatchRequest.md +19 -0
- data/docs/ScimResource.md +21 -0
- data/docs/ScimResourceTypesListResponse.md +17 -0
- data/docs/ScimSchemaResource.md +23 -0
- data/docs/ScimSchemasListResponse.md +21 -0
- data/docs/ScimServiceProviderConfigResponse.md +27 -0
- data/docs/ScimServiceProviderConfigResponseBulk.md +21 -0
- data/docs/ScimServiceProviderConfigResponseChangePassword.md +17 -0
- data/docs/ScimServiceProviderConfigResponseFilter.md +19 -0
- data/docs/ScimServiceProviderConfigResponsePatch.md +17 -0
- data/docs/ScimUser.md +25 -0
- data/docs/ScimUsersListResponse.md +21 -0
- data/docs/Tier.md +3 -1
- data/docs/TransferLoyaltyCard.md +3 -1
- data/docs/UpdateApplication.md +5 -1
- data/docs/UpdateApplicationCIF.md +23 -0
- data/docs/UpdateCampaign.md +1 -1
- data/docs/UpdateCoupon.md +2 -2
- data/docs/UpdateCouponBatch.md +1 -1
- data/docs/UpdateLoyaltyCard.md +4 -2
- data/docs/UpdateLoyaltyProgram.md +8 -4
- data/docs/UpdateReferral.md +1 -1
- data/docs/UpdateReferralBatch.md +1 -1
- data/docs/UpdateUser.md +1 -1
- data/docs/User.md +3 -1
- data/docs/Webhook.md +2 -0
- data/docs/WebhookWithOutgoingIntegrationDetails.md +2 -0
- data/lib/talon_one/api/integration_api.rb +101 -25
- data/lib/talon_one/api/management_api.rb +1362 -189
- data/lib/talon_one/models/achievement_progress.rb +16 -1
- data/lib/talon_one/models/activate_user_request.rb +213 -0
- data/lib/talon_one/models/additional_campaign_properties.rb +21 -6
- data/lib/talon_one/models/analytics_data_point.rb +225 -0
- data/lib/talon_one/models/analytics_data_point_with_trend.rb +225 -0
- data/lib/talon_one/models/analytics_data_point_with_trend_and_influenced_rate.rb +239 -0
- data/lib/talon_one/models/analytics_data_point_with_trend_and_uplift.rb +239 -0
- data/lib/talon_one/models/application.rb +21 -1
- data/lib/talon_one/models/application_analytics_data_point.rb +14 -4
- data/lib/talon_one/models/application_campaign_analytics.rb +39 -41
- data/lib/talon_one/models/application_campaign_stats.rb +1 -16
- data/lib/talon_one/models/application_cif.rb +308 -0
- data/lib/talon_one/models/application_cif_expression.rb +275 -0
- data/lib/talon_one/models/async_coupon_deletion_job_response.rb +213 -0
- data/lib/talon_one/models/attribute.rb +2 -2
- data/lib/talon_one/models/base_loyalty_program.rb +44 -25
- data/lib/talon_one/models/base_notification.rb +3 -2
- data/lib/talon_one/models/base_notification_entity.rb +1 -0
- data/lib/talon_one/models/campaign.rb +83 -6
- data/lib/talon_one/models/campaign_collection_edited_notification.rb +235 -0
- data/lib/talon_one/models/campaign_notification_policy.rb +16 -4
- data/lib/talon_one/models/campaign_state_changed_notification.rb +2 -2
- data/lib/talon_one/models/campaign_store_budget.rb +275 -0
- data/lib/talon_one/models/campaign_versions.rb +259 -0
- data/lib/talon_one/models/card_added_deducted_points_notification_policy.rb +269 -0
- data/lib/talon_one/models/cart_item.rb +1 -1
- data/lib/talon_one/models/code_generator_settings.rb +1 -1
- data/lib/talon_one/models/coupon.rb +3 -3
- data/lib/talon_one/models/coupon_constraints.rb +1 -1
- data/lib/talon_one/models/coupon_creation_job.rb +1 -1
- data/lib/talon_one/models/coupon_deletion_filters.rb +375 -0
- data/lib/talon_one/models/coupon_deletion_job.rb +370 -0
- data/lib/talon_one/models/customer_inventory.rb +1 -1
- data/lib/talon_one/models/customer_session_v2.rb +2 -2
- data/lib/talon_one/models/effect.rb +41 -1
- data/lib/talon_one/models/effect_entity.rb +44 -4
- data/lib/talon_one/models/environment.rb +16 -4
- data/lib/talon_one/models/event.rb +0 -5
- data/lib/talon_one/models/generate_campaign_description.rb +227 -0
- data/lib/talon_one/models/generate_campaign_tags.rb +212 -0
- data/lib/talon_one/models/generate_item_filter_description.rb +214 -0
- data/lib/talon_one/models/generate_loyalty_card.rb +256 -0
- data/lib/talon_one/models/generate_rule_title.rb +226 -0
- data/lib/talon_one/models/generate_rule_title_rule.rb +221 -0
- data/lib/talon_one/models/increase_achievement_progress_effect_props.rb +1 -1
- data/lib/talon_one/models/inline_response20044.rb +1 -1
- data/lib/talon_one/models/integration_coupon.rb +3 -3
- data/lib/talon_one/models/inventory_coupon.rb +3 -3
- data/lib/talon_one/models/inventory_referral.rb +1 -1
- data/lib/talon_one/models/loyalty_balance_with_tier.rb +276 -0
- data/lib/talon_one/models/loyalty_balances_with_tiers.rb +219 -0
- data/lib/talon_one/models/loyalty_card.rb +25 -5
- data/lib/talon_one/models/loyalty_card_balances.rb +231 -0
- data/lib/talon_one/models/loyalty_card_batch.rb +304 -0
- data/lib/talon_one/models/loyalty_card_batch_response.rb +227 -0
- data/lib/talon_one/models/loyalty_card_profile_registration.rb +1 -1
- data/lib/talon_one/models/loyalty_program.rb +70 -29
- data/lib/talon_one/models/message_log_entry.rb +4 -14
- data/lib/talon_one/models/message_log_response.rb +3 -22
- data/lib/talon_one/models/new_app_wide_coupon_deletion_job.rb +227 -0
- data/lib/talon_one/models/new_application.rb +14 -4
- data/lib/talon_one/models/new_application_cif.rb +262 -0
- data/lib/talon_one/models/new_application_cif_expression.rb +229 -0
- data/lib/talon_one/models/new_attribute.rb +2 -2
- data/lib/talon_one/models/new_base_notification.rb +1 -0
- data/lib/talon_one/models/new_coupon_creation_job.rb +1 -1
- data/lib/talon_one/models/new_coupon_deletion_job.rb +211 -0
- data/lib/talon_one/models/new_coupons.rb +2 -2
- data/lib/talon_one/models/new_coupons_for_multiple_recipients.rb +1 -1
- data/lib/talon_one/models/new_customer_session_v2.rb +2 -2
- data/lib/talon_one/models/new_external_invitation.rb +235 -0
- data/lib/talon_one/models/new_loyalty_program.rb +44 -25
- data/lib/talon_one/models/new_notification_test.rb +2 -2
- data/lib/talon_one/models/new_outgoing_integration_webhook.rb +11 -1
- data/lib/talon_one/models/new_referral.rb +1 -1
- data/lib/talon_one/models/new_referrals_for_multiple_advocates.rb +1 -1
- data/lib/talon_one/models/new_revision_version.rb +352 -0
- data/lib/talon_one/models/new_webhook.rb +11 -1
- data/lib/talon_one/models/okta_event.rb +229 -0
- data/lib/talon_one/models/okta_event_payload.rb +212 -0
- data/lib/talon_one/models/okta_event_payload_data.rb +214 -0
- data/lib/talon_one/models/okta_event_target.rb +243 -0
- data/lib/talon_one/models/projected_tier.rb +232 -0
- data/lib/talon_one/models/referral.rb +1 -1
- data/lib/talon_one/models/referral_constraints.rb +1 -1
- data/lib/talon_one/models/reject_coupon_effect_props.rb +14 -4
- data/lib/talon_one/models/reject_referral_effect_props.rb +14 -4
- data/lib/talon_one/models/revision.rb +319 -0
- data/lib/talon_one/models/revision_activation.rb +206 -0
- data/lib/talon_one/models/revision_version.rb +466 -0
- data/lib/talon_one/models/rollback_increased_achievement_progress_effect_props.rb +288 -0
- data/lib/talon_one/models/rule_failure_reason.rb +24 -4
- data/lib/talon_one/models/scim_base_user.rb +237 -0
- data/lib/talon_one/models/scim_base_user_name.rb +208 -0
- data/lib/talon_one/models/scim_new_user.rb +237 -0
- data/lib/talon_one/models/scim_patch_operation.rb +267 -0
- data/lib/talon_one/models/scim_patch_request.rb +226 -0
- data/lib/talon_one/models/scim_resource.rb +228 -0
- data/lib/talon_one/models/scim_resource_types_list_response.rb +214 -0
- data/lib/talon_one/models/scim_schema_resource.rb +239 -0
- data/lib/talon_one/models/scim_schemas_list_response.rb +236 -0
- data/lib/talon_one/models/scim_service_provider_config_response.rb +256 -0
- data/lib/talon_one/models/scim_service_provider_config_response_bulk.rb +228 -0
- data/lib/talon_one/models/scim_service_provider_config_response_change_password.rb +208 -0
- data/lib/talon_one/models/scim_service_provider_config_response_filter.rb +218 -0
- data/lib/talon_one/models/scim_service_provider_config_response_patch.rb +208 -0
- data/lib/talon_one/models/scim_user.rb +252 -0
- data/lib/talon_one/models/scim_users_list_response.rb +236 -0
- data/lib/talon_one/models/sso_config.rb +14 -4
- data/lib/talon_one/models/tier.rb +12 -2
- data/lib/talon_one/models/transfer_loyalty_card.rb +14 -4
- data/lib/talon_one/models/update_application.rb +24 -4
- data/lib/talon_one/models/update_application_cif.rb +237 -0
- data/lib/talon_one/models/update_campaign.rb +1 -1
- data/lib/talon_one/models/update_coupon.rb +2 -2
- data/lib/talon_one/models/update_coupon_batch.rb +1 -1
- data/lib/talon_one/models/update_loyalty_card.rb +15 -5
- data/lib/talon_one/models/update_loyalty_program.rb +44 -25
- data/lib/talon_one/models/update_referral.rb +1 -1
- data/lib/talon_one/models/update_referral_batch.rb +1 -1
- data/lib/talon_one/models/update_user.rb +1 -1
- data/lib/talon_one/models/user.rb +14 -4
- data/lib/talon_one/models/webhook.rb +11 -1
- data/lib/talon_one/models/webhook_with_outgoing_integration_details.rb +11 -1
- data/lib/talon_one/version.rb +1 -1
- data/lib/talon_one.rb +57 -11
- data/spec/api/integration_api_spec.rb +25 -10
- data/spec/api/management_api_spec.rb +267 -39
- data/spec/models/achievement_progress_spec.rb +6 -0
- data/spec/models/activate_user_request_spec.rb +41 -0
- data/spec/models/additional_campaign_properties_spec.rb +7 -1
- data/spec/models/analytics_data_point_spec.rb +47 -0
- data/spec/models/analytics_data_point_with_trend_and_influenced_rate_spec.rb +53 -0
- data/spec/models/analytics_data_point_with_trend_and_uplift_spec.rb +53 -0
- data/spec/models/analytics_data_point_with_trend_spec.rb +47 -0
- data/spec/models/application_campaign_analytics_spec.rb +1 -19
- data/spec/models/application_campaign_stats_spec.rb +0 -6
- data/spec/models/application_cif_expression_spec.rb +71 -0
- data/spec/models/application_cif_spec.rb +89 -0
- data/spec/models/application_spec.rb +12 -0
- data/spec/models/async_coupon_deletion_job_response_spec.rb +41 -0
- data/spec/models/attribute_spec.rb +1 -1
- data/spec/models/base_loyalty_program_spec.rb +18 -6
- data/spec/models/base_notification_spec.rb +1 -1
- data/spec/models/campaign_collection_edited_notification_spec.rb +53 -0
- data/spec/models/campaign_notification_policy_spec.rb +6 -0
- data/spec/models/campaign_spec.rb +43 -1
- data/spec/models/campaign_store_budget_spec.rb +65 -0
- data/spec/models/campaign_versions_spec.rb +71 -0
- data/spec/models/card_added_deducted_points_notification_policy_spec.rb +51 -0
- data/spec/models/coupon_deletion_filters_spec.rb +123 -0
- data/spec/models/coupon_deletion_job_spec.rb +107 -0
- data/spec/models/effect_entity_spec.rb +24 -0
- data/spec/models/effect_spec.rb +24 -0
- data/spec/models/environment_spec.rb +6 -0
- data/spec/models/generate_campaign_description_spec.rb +47 -0
- data/spec/models/generate_campaign_tags_spec.rb +41 -0
- data/spec/models/generate_item_filter_description_spec.rb +41 -0
- data/spec/models/generate_loyalty_card_spec.rb +51 -0
- data/spec/models/generate_rule_title_rule_spec.rb +47 -0
- data/spec/models/generate_rule_title_spec.rb +47 -0
- data/spec/models/loyalty_balance_with_tier_spec.rb +83 -0
- data/spec/models/loyalty_balances_with_tiers_spec.rb +47 -0
- data/spec/models/loyalty_card_balances_spec.rb +53 -0
- data/spec/models/loyalty_card_batch_response_spec.rb +47 -0
- data/spec/models/loyalty_card_batch_spec.rb +57 -0
- data/spec/models/loyalty_card_spec.rb +12 -0
- data/spec/models/loyalty_program_spec.rb +30 -6
- data/spec/models/message_log_entry_spec.rb +1 -7
- data/spec/models/new_app_wide_coupon_deletion_job_spec.rb +47 -0
- data/spec/models/new_application_cif_expression_spec.rb +53 -0
- data/spec/models/new_application_cif_spec.rb +71 -0
- data/spec/models/new_application_spec.rb +6 -0
- data/spec/models/new_attribute_spec.rb +1 -1
- data/spec/models/new_coupon_deletion_job_spec.rb +41 -0
- data/spec/models/new_external_invitation_spec.rb +53 -0
- data/spec/models/new_loyalty_program_spec.rb +18 -6
- data/spec/models/new_notification_test_spec.rb +1 -1
- data/spec/models/new_outgoing_integration_webhook_spec.rb +6 -0
- data/spec/models/new_revision_version_spec.rb +105 -0
- data/spec/models/new_webhook_spec.rb +6 -0
- data/spec/models/okta_event_payload_data_spec.rb +41 -0
- data/spec/models/okta_event_payload_spec.rb +41 -0
- data/spec/models/okta_event_spec.rb +47 -0
- data/spec/models/okta_event_target_spec.rb +53 -0
- data/spec/models/projected_tier_spec.rb +53 -0
- data/spec/models/reject_coupon_effect_props_spec.rb +6 -0
- data/spec/models/reject_referral_effect_props_spec.rb +6 -0
- data/spec/models/revision_activation_spec.rb +41 -0
- data/spec/models/revision_spec.rb +95 -0
- data/spec/models/revision_version_spec.rb +153 -0
- data/spec/models/rollback_increased_achievement_progress_effect_props_spec.rb +71 -0
- data/spec/models/rule_failure_reason_spec.rb +12 -0
- data/spec/models/scim_base_user_name_spec.rb +41 -0
- data/spec/models/scim_base_user_spec.rb +59 -0
- data/spec/models/scim_new_user_spec.rb +59 -0
- data/spec/models/scim_patch_operation_spec.rb +57 -0
- data/spec/models/scim_patch_request_spec.rb +47 -0
- data/spec/models/scim_resource_spec.rb +53 -0
- data/spec/models/scim_resource_types_list_response_spec.rb +41 -0
- data/spec/models/scim_schema_resource_spec.rb +59 -0
- data/spec/models/scim_schemas_list_response_spec.rb +53 -0
- data/spec/models/scim_service_provider_config_response_bulk_spec.rb +53 -0
- data/spec/models/scim_service_provider_config_response_change_password_spec.rb +41 -0
- data/spec/models/scim_service_provider_config_response_filter_spec.rb +47 -0
- data/spec/models/scim_service_provider_config_response_patch_spec.rb +41 -0
- data/spec/models/scim_service_provider_config_response_spec.rb +71 -0
- data/spec/models/scim_user_spec.rb +65 -0
- data/spec/models/scim_users_list_response_spec.rb +53 -0
- data/spec/models/sso_config_spec.rb +6 -0
- data/spec/models/tier_spec.rb +6 -0
- data/spec/models/transfer_loyalty_card_spec.rb +6 -0
- data/spec/models/update_application_cif_spec.rb +59 -0
- data/spec/models/update_application_spec.rb +12 -0
- data/spec/models/update_loyalty_card_spec.rb +6 -0
- data/spec/models/update_loyalty_program_spec.rb +18 -6
- data/spec/models/user_spec.rb +6 -0
- data/spec/models/webhook_spec.rb +6 -0
- data/spec/models/webhook_with_outgoing_integration_details_spec.rb +6 -0
- metadata +246 -18
@@ -0,0 +1,370 @@
|
|
1
|
+
=begin
|
2
|
+
#Talon.One API
|
3
|
+
|
4
|
+
#Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
|
5
|
+
|
6
|
+
The version of the OpenAPI document:
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module TalonOne
|
16
|
+
#
|
17
|
+
class CouponDeletionJob
|
18
|
+
# Internal ID of this entity.
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# The time this entity was created.
|
22
|
+
attr_accessor :created
|
23
|
+
|
24
|
+
# The ID of the application that owns this entity.
|
25
|
+
attr_accessor :application_id
|
26
|
+
|
27
|
+
# The ID of the account that owns this entity.
|
28
|
+
attr_accessor :account_id
|
29
|
+
|
30
|
+
attr_accessor :filters
|
31
|
+
|
32
|
+
# The current status of this request. Possible values: - `not_ready` - `pending` - `completed` - `failed`
|
33
|
+
attr_accessor :status
|
34
|
+
|
35
|
+
# The number of coupon codes that were already deleted for this request.
|
36
|
+
attr_accessor :deleted_amount
|
37
|
+
|
38
|
+
# The number of times this job failed.
|
39
|
+
attr_accessor :fail_count
|
40
|
+
|
41
|
+
# An array of individual problems encountered during the request.
|
42
|
+
attr_accessor :errors
|
43
|
+
|
44
|
+
# ID of the user who created this effect.
|
45
|
+
attr_accessor :created_by
|
46
|
+
|
47
|
+
# Indicates whether the user that created this job was notified of its final state.
|
48
|
+
attr_accessor :communicated
|
49
|
+
|
50
|
+
attr_accessor :campaign_i_ds
|
51
|
+
|
52
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
53
|
+
def self.attribute_map
|
54
|
+
{
|
55
|
+
:'id' => :'id',
|
56
|
+
:'created' => :'created',
|
57
|
+
:'application_id' => :'applicationId',
|
58
|
+
:'account_id' => :'accountId',
|
59
|
+
:'filters' => :'filters',
|
60
|
+
:'status' => :'status',
|
61
|
+
:'deleted_amount' => :'deletedAmount',
|
62
|
+
:'fail_count' => :'failCount',
|
63
|
+
:'errors' => :'errors',
|
64
|
+
:'created_by' => :'createdBy',
|
65
|
+
:'communicated' => :'communicated',
|
66
|
+
:'campaign_i_ds' => :'campaignIDs'
|
67
|
+
}
|
68
|
+
end
|
69
|
+
|
70
|
+
# Attribute type mapping.
|
71
|
+
def self.openapi_types
|
72
|
+
{
|
73
|
+
:'id' => :'Integer',
|
74
|
+
:'created' => :'DateTime',
|
75
|
+
:'application_id' => :'Integer',
|
76
|
+
:'account_id' => :'Integer',
|
77
|
+
:'filters' => :'CouponDeletionFilters',
|
78
|
+
:'status' => :'String',
|
79
|
+
:'deleted_amount' => :'Integer',
|
80
|
+
:'fail_count' => :'Integer',
|
81
|
+
:'errors' => :'Array<String>',
|
82
|
+
:'created_by' => :'Integer',
|
83
|
+
:'communicated' => :'Boolean',
|
84
|
+
:'campaign_i_ds' => :'Array<Integer>'
|
85
|
+
}
|
86
|
+
end
|
87
|
+
|
88
|
+
# List of attributes with nullable: true
|
89
|
+
def self.openapi_nullable
|
90
|
+
Set.new([
|
91
|
+
])
|
92
|
+
end
|
93
|
+
|
94
|
+
# Initializes the object
|
95
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
96
|
+
def initialize(attributes = {})
|
97
|
+
if (!attributes.is_a?(Hash))
|
98
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TalonOne::CouponDeletionJob` initialize method"
|
99
|
+
end
|
100
|
+
|
101
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
102
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
103
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
104
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TalonOne::CouponDeletionJob`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
105
|
+
end
|
106
|
+
h[k.to_sym] = v
|
107
|
+
}
|
108
|
+
|
109
|
+
if attributes.key?(:'id')
|
110
|
+
self.id = attributes[:'id']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'created')
|
114
|
+
self.created = attributes[:'created']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'application_id')
|
118
|
+
self.application_id = attributes[:'application_id']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.key?(:'account_id')
|
122
|
+
self.account_id = attributes[:'account_id']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'filters')
|
126
|
+
self.filters = attributes[:'filters']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'status')
|
130
|
+
self.status = attributes[:'status']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'deleted_amount')
|
134
|
+
self.deleted_amount = attributes[:'deleted_amount']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'fail_count')
|
138
|
+
self.fail_count = attributes[:'fail_count']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.key?(:'errors')
|
142
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
143
|
+
self.errors = value
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'created_by')
|
148
|
+
self.created_by = attributes[:'created_by']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.key?(:'communicated')
|
152
|
+
self.communicated = attributes[:'communicated']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.key?(:'campaign_i_ds')
|
156
|
+
if (value = attributes[:'campaign_i_ds']).is_a?(Array)
|
157
|
+
self.campaign_i_ds = value
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
163
|
+
# @return Array for valid properties with the reasons
|
164
|
+
def list_invalid_properties
|
165
|
+
invalid_properties = Array.new
|
166
|
+
if @id.nil?
|
167
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
168
|
+
end
|
169
|
+
|
170
|
+
if @created.nil?
|
171
|
+
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
172
|
+
end
|
173
|
+
|
174
|
+
if @application_id.nil?
|
175
|
+
invalid_properties.push('invalid value for "application_id", application_id cannot be nil.')
|
176
|
+
end
|
177
|
+
|
178
|
+
if @account_id.nil?
|
179
|
+
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
180
|
+
end
|
181
|
+
|
182
|
+
if @filters.nil?
|
183
|
+
invalid_properties.push('invalid value for "filters", filters cannot be nil.')
|
184
|
+
end
|
185
|
+
|
186
|
+
if @status.nil?
|
187
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
188
|
+
end
|
189
|
+
|
190
|
+
if @fail_count.nil?
|
191
|
+
invalid_properties.push('invalid value for "fail_count", fail_count cannot be nil.')
|
192
|
+
end
|
193
|
+
|
194
|
+
if @errors.nil?
|
195
|
+
invalid_properties.push('invalid value for "errors", errors cannot be nil.')
|
196
|
+
end
|
197
|
+
|
198
|
+
if @created_by.nil?
|
199
|
+
invalid_properties.push('invalid value for "created_by", created_by cannot be nil.')
|
200
|
+
end
|
201
|
+
|
202
|
+
if @communicated.nil?
|
203
|
+
invalid_properties.push('invalid value for "communicated", communicated cannot be nil.')
|
204
|
+
end
|
205
|
+
|
206
|
+
invalid_properties
|
207
|
+
end
|
208
|
+
|
209
|
+
# Check to see if the all the properties in the model are valid
|
210
|
+
# @return true if the model is valid
|
211
|
+
def valid?
|
212
|
+
return false if @id.nil?
|
213
|
+
return false if @created.nil?
|
214
|
+
return false if @application_id.nil?
|
215
|
+
return false if @account_id.nil?
|
216
|
+
return false if @filters.nil?
|
217
|
+
return false if @status.nil?
|
218
|
+
return false if @fail_count.nil?
|
219
|
+
return false if @errors.nil?
|
220
|
+
return false if @created_by.nil?
|
221
|
+
return false if @communicated.nil?
|
222
|
+
true
|
223
|
+
end
|
224
|
+
|
225
|
+
# Checks equality by comparing each attribute.
|
226
|
+
# @param [Object] Object to be compared
|
227
|
+
def ==(o)
|
228
|
+
return true if self.equal?(o)
|
229
|
+
self.class == o.class &&
|
230
|
+
id == o.id &&
|
231
|
+
created == o.created &&
|
232
|
+
application_id == o.application_id &&
|
233
|
+
account_id == o.account_id &&
|
234
|
+
filters == o.filters &&
|
235
|
+
status == o.status &&
|
236
|
+
deleted_amount == o.deleted_amount &&
|
237
|
+
fail_count == o.fail_count &&
|
238
|
+
errors == o.errors &&
|
239
|
+
created_by == o.created_by &&
|
240
|
+
communicated == o.communicated &&
|
241
|
+
campaign_i_ds == o.campaign_i_ds
|
242
|
+
end
|
243
|
+
|
244
|
+
# @see the `==` method
|
245
|
+
# @param [Object] Object to be compared
|
246
|
+
def eql?(o)
|
247
|
+
self == o
|
248
|
+
end
|
249
|
+
|
250
|
+
# Calculates hash code according to all attributes.
|
251
|
+
# @return [Integer] Hash code
|
252
|
+
def hash
|
253
|
+
[id, created, application_id, account_id, filters, status, deleted_amount, fail_count, errors, created_by, communicated, campaign_i_ds].hash
|
254
|
+
end
|
255
|
+
|
256
|
+
# Builds the object from hash
|
257
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
258
|
+
# @return [Object] Returns the model itself
|
259
|
+
def self.build_from_hash(attributes)
|
260
|
+
new.build_from_hash(attributes)
|
261
|
+
end
|
262
|
+
|
263
|
+
# Builds the object from hash
|
264
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
265
|
+
# @return [Object] Returns the model itself
|
266
|
+
def build_from_hash(attributes)
|
267
|
+
return nil unless attributes.is_a?(Hash)
|
268
|
+
self.class.openapi_types.each_pair do |key, type|
|
269
|
+
if type =~ /\AArray<(.*)>/i
|
270
|
+
# check to ensure the input is an array given that the attribute
|
271
|
+
# is documented as an array but the input is not
|
272
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
273
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
274
|
+
end
|
275
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
276
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
277
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
278
|
+
end
|
279
|
+
|
280
|
+
self
|
281
|
+
end
|
282
|
+
|
283
|
+
# Deserializes the data based on type
|
284
|
+
# @param string type Data type
|
285
|
+
# @param string value Value to be deserialized
|
286
|
+
# @return [Object] Deserialized data
|
287
|
+
def _deserialize(type, value)
|
288
|
+
case type.to_sym
|
289
|
+
when :DateTime
|
290
|
+
DateTime.parse(value)
|
291
|
+
when :Date
|
292
|
+
Date.parse(value)
|
293
|
+
when :String
|
294
|
+
value.to_s
|
295
|
+
when :Integer
|
296
|
+
value.to_i
|
297
|
+
when :Float
|
298
|
+
value.to_f
|
299
|
+
when :Boolean
|
300
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
301
|
+
true
|
302
|
+
else
|
303
|
+
false
|
304
|
+
end
|
305
|
+
when :Object
|
306
|
+
# generic object (usually a Hash), return directly
|
307
|
+
value
|
308
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
309
|
+
inner_type = Regexp.last_match[:inner_type]
|
310
|
+
value.map { |v| _deserialize(inner_type, v) }
|
311
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
312
|
+
k_type = Regexp.last_match[:k_type]
|
313
|
+
v_type = Regexp.last_match[:v_type]
|
314
|
+
{}.tap do |hash|
|
315
|
+
value.each do |k, v|
|
316
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
317
|
+
end
|
318
|
+
end
|
319
|
+
else # model
|
320
|
+
TalonOne.const_get(type).build_from_hash(value)
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
# Returns the string representation of the object
|
325
|
+
# @return [String] String presentation of the object
|
326
|
+
def to_s
|
327
|
+
to_hash.to_s
|
328
|
+
end
|
329
|
+
|
330
|
+
# to_body is an alias to to_hash (backward compatibility)
|
331
|
+
# @return [Hash] Returns the object in the form of hash
|
332
|
+
def to_body
|
333
|
+
to_hash
|
334
|
+
end
|
335
|
+
|
336
|
+
# Returns the object in the form of hash
|
337
|
+
# @return [Hash] Returns the object in the form of hash
|
338
|
+
def to_hash
|
339
|
+
hash = {}
|
340
|
+
self.class.attribute_map.each_pair do |attr, param|
|
341
|
+
value = self.send(attr)
|
342
|
+
if value.nil?
|
343
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
344
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
345
|
+
end
|
346
|
+
|
347
|
+
hash[param] = _to_hash(value)
|
348
|
+
end
|
349
|
+
hash
|
350
|
+
end
|
351
|
+
|
352
|
+
# Outputs non-array value in the form of hash
|
353
|
+
# For object, use to_hash. Otherwise, just return the value
|
354
|
+
# @param [Object] value Any valid value
|
355
|
+
# @return [Hash] Returns the value in the form of hash
|
356
|
+
def _to_hash(value)
|
357
|
+
if value.is_a?(Array)
|
358
|
+
value.compact.map { |v| _to_hash(v) }
|
359
|
+
elsif value.is_a?(Hash)
|
360
|
+
{}.tap do |hash|
|
361
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
362
|
+
end
|
363
|
+
elsif value.respond_to? :to_hash
|
364
|
+
value.to_hash
|
365
|
+
else
|
366
|
+
value
|
367
|
+
end
|
368
|
+
end
|
369
|
+
end
|
370
|
+
end
|
@@ -20,7 +20,7 @@ module TalonOne
|
|
20
20
|
|
21
21
|
attr_accessor :referrals
|
22
22
|
|
23
|
-
# The coupons reserved by this profile. This array includes hard and soft reservations.
|
23
|
+
# The coupons reserved by this profile. This array includes hard and soft reservations.
|
24
24
|
attr_accessor :coupons
|
25
25
|
|
26
26
|
attr_accessor :giveaways
|
@@ -36,10 +36,10 @@ module TalonOne
|
|
36
36
|
# When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them.
|
37
37
|
attr_accessor :evaluable_campaign_ids
|
38
38
|
|
39
|
-
# Any coupon codes entered. **Important**: If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it.
|
39
|
+
# Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, provide `\"couponCodes\": null` or omit the parameter entirely.
|
40
40
|
attr_accessor :coupon_codes
|
41
41
|
|
42
|
-
# Any referral code entered. **Important**: If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it.
|
42
|
+
# Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, provide `\"referralCode\": null` or omit the parameter entirely.
|
43
43
|
attr_accessor :referral_code
|
44
44
|
|
45
45
|
# Identifier of a loyalty card.
|
@@ -39,6 +39,18 @@ module TalonOne
|
|
39
39
|
# The index of the condition that was triggered.
|
40
40
|
attr_accessor :condition_index
|
41
41
|
|
42
|
+
# The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).
|
43
|
+
attr_accessor :evaluation_group_id
|
44
|
+
|
45
|
+
# The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).
|
46
|
+
attr_accessor :evaluation_group_mode
|
47
|
+
|
48
|
+
# The revision ID of the campaign that was used when triggering the effect.
|
49
|
+
attr_accessor :campaign_revision_id
|
50
|
+
|
51
|
+
# The revision version ID of the campaign that was used when triggering the effect.
|
52
|
+
attr_accessor :campaign_revision_version_id
|
53
|
+
|
42
54
|
# The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects).
|
43
55
|
attr_accessor :props
|
44
56
|
|
@@ -53,6 +65,10 @@ module TalonOne
|
|
53
65
|
:'triggered_by_coupon' => :'triggeredByCoupon',
|
54
66
|
:'triggered_for_catalog_item' => :'triggeredForCatalogItem',
|
55
67
|
:'condition_index' => :'conditionIndex',
|
68
|
+
:'evaluation_group_id' => :'evaluationGroupID',
|
69
|
+
:'evaluation_group_mode' => :'evaluationGroupMode',
|
70
|
+
:'campaign_revision_id' => :'campaignRevisionId',
|
71
|
+
:'campaign_revision_version_id' => :'campaignRevisionVersionId',
|
56
72
|
:'props' => :'props'
|
57
73
|
}
|
58
74
|
end
|
@@ -68,6 +84,10 @@ module TalonOne
|
|
68
84
|
:'triggered_by_coupon' => :'Integer',
|
69
85
|
:'triggered_for_catalog_item' => :'Integer',
|
70
86
|
:'condition_index' => :'Integer',
|
87
|
+
:'evaluation_group_id' => :'Integer',
|
88
|
+
:'evaluation_group_mode' => :'String',
|
89
|
+
:'campaign_revision_id' => :'Integer',
|
90
|
+
:'campaign_revision_version_id' => :'Integer',
|
71
91
|
:'props' => :'Object'
|
72
92
|
}
|
73
93
|
end
|
@@ -125,6 +145,22 @@ module TalonOne
|
|
125
145
|
self.condition_index = attributes[:'condition_index']
|
126
146
|
end
|
127
147
|
|
148
|
+
if attributes.key?(:'evaluation_group_id')
|
149
|
+
self.evaluation_group_id = attributes[:'evaluation_group_id']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'evaluation_group_mode')
|
153
|
+
self.evaluation_group_mode = attributes[:'evaluation_group_mode']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'campaign_revision_id')
|
157
|
+
self.campaign_revision_id = attributes[:'campaign_revision_id']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'campaign_revision_version_id')
|
161
|
+
self.campaign_revision_version_id = attributes[:'campaign_revision_version_id']
|
162
|
+
end
|
163
|
+
|
128
164
|
if attributes.key?(:'props')
|
129
165
|
self.props = attributes[:'props']
|
130
166
|
end
|
@@ -186,6 +222,10 @@ module TalonOne
|
|
186
222
|
triggered_by_coupon == o.triggered_by_coupon &&
|
187
223
|
triggered_for_catalog_item == o.triggered_for_catalog_item &&
|
188
224
|
condition_index == o.condition_index &&
|
225
|
+
evaluation_group_id == o.evaluation_group_id &&
|
226
|
+
evaluation_group_mode == o.evaluation_group_mode &&
|
227
|
+
campaign_revision_id == o.campaign_revision_id &&
|
228
|
+
campaign_revision_version_id == o.campaign_revision_version_id &&
|
189
229
|
props == o.props
|
190
230
|
end
|
191
231
|
|
@@ -198,7 +238,7 @@ module TalonOne
|
|
198
238
|
# Calculates hash code according to all attributes.
|
199
239
|
# @return [Integer] Hash code
|
200
240
|
def hash
|
201
|
-
[campaign_id, ruleset_id, rule_index, rule_name, effect_type, triggered_by_coupon, triggered_for_catalog_item, condition_index, props].hash
|
241
|
+
[campaign_id, ruleset_id, rule_index, rule_name, effect_type, triggered_by_coupon, triggered_for_catalog_item, condition_index, evaluation_group_id, evaluation_group_mode, campaign_revision_id, campaign_revision_version_id, props].hash
|
202
242
|
end
|
203
243
|
|
204
244
|
# Builds the object from hash
|
@@ -39,6 +39,18 @@ module TalonOne
|
|
39
39
|
# The index of the condition that was triggered.
|
40
40
|
attr_accessor :condition_index
|
41
41
|
|
42
|
+
# The ID of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).
|
43
|
+
attr_accessor :evaluation_group_id
|
44
|
+
|
45
|
+
# The evaluation mode of the evaluation group. For more information, see [Managing campaign evaluation](https://docs.talon.one/docs/product/applications/managing-campaign-evaluation).
|
46
|
+
attr_accessor :evaluation_group_mode
|
47
|
+
|
48
|
+
# The revision ID of the campaign that was used when triggering the effect.
|
49
|
+
attr_accessor :campaign_revision_id
|
50
|
+
|
51
|
+
# The revision version ID of the campaign that was used when triggering the effect.
|
52
|
+
attr_accessor :campaign_revision_version_id
|
53
|
+
|
42
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
55
|
def self.attribute_map
|
44
56
|
{
|
@@ -49,7 +61,11 @@ module TalonOne
|
|
49
61
|
:'effect_type' => :'effectType',
|
50
62
|
:'triggered_by_coupon' => :'triggeredByCoupon',
|
51
63
|
:'triggered_for_catalog_item' => :'triggeredForCatalogItem',
|
52
|
-
:'condition_index' => :'conditionIndex'
|
64
|
+
:'condition_index' => :'conditionIndex',
|
65
|
+
:'evaluation_group_id' => :'evaluationGroupID',
|
66
|
+
:'evaluation_group_mode' => :'evaluationGroupMode',
|
67
|
+
:'campaign_revision_id' => :'campaignRevisionId',
|
68
|
+
:'campaign_revision_version_id' => :'campaignRevisionVersionId'
|
53
69
|
}
|
54
70
|
end
|
55
71
|
|
@@ -63,7 +79,11 @@ module TalonOne
|
|
63
79
|
:'effect_type' => :'String',
|
64
80
|
:'triggered_by_coupon' => :'Integer',
|
65
81
|
:'triggered_for_catalog_item' => :'Integer',
|
66
|
-
:'condition_index' => :'Integer'
|
82
|
+
:'condition_index' => :'Integer',
|
83
|
+
:'evaluation_group_id' => :'Integer',
|
84
|
+
:'evaluation_group_mode' => :'String',
|
85
|
+
:'campaign_revision_id' => :'Integer',
|
86
|
+
:'campaign_revision_version_id' => :'Integer'
|
67
87
|
}
|
68
88
|
end
|
69
89
|
|
@@ -119,6 +139,22 @@ module TalonOne
|
|
119
139
|
if attributes.key?(:'condition_index')
|
120
140
|
self.condition_index = attributes[:'condition_index']
|
121
141
|
end
|
142
|
+
|
143
|
+
if attributes.key?(:'evaluation_group_id')
|
144
|
+
self.evaluation_group_id = attributes[:'evaluation_group_id']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'evaluation_group_mode')
|
148
|
+
self.evaluation_group_mode = attributes[:'evaluation_group_mode']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.key?(:'campaign_revision_id')
|
152
|
+
self.campaign_revision_id = attributes[:'campaign_revision_id']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.key?(:'campaign_revision_version_id')
|
156
|
+
self.campaign_revision_version_id = attributes[:'campaign_revision_version_id']
|
157
|
+
end
|
122
158
|
end
|
123
159
|
|
124
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -171,7 +207,11 @@ module TalonOne
|
|
171
207
|
effect_type == o.effect_type &&
|
172
208
|
triggered_by_coupon == o.triggered_by_coupon &&
|
173
209
|
triggered_for_catalog_item == o.triggered_for_catalog_item &&
|
174
|
-
condition_index == o.condition_index
|
210
|
+
condition_index == o.condition_index &&
|
211
|
+
evaluation_group_id == o.evaluation_group_id &&
|
212
|
+
evaluation_group_mode == o.evaluation_group_mode &&
|
213
|
+
campaign_revision_id == o.campaign_revision_id &&
|
214
|
+
campaign_revision_version_id == o.campaign_revision_version_id
|
175
215
|
end
|
176
216
|
|
177
217
|
# @see the `==` method
|
@@ -183,7 +223,7 @@ module TalonOne
|
|
183
223
|
# Calculates hash code according to all attributes.
|
184
224
|
# @return [Integer] Hash code
|
185
225
|
def hash
|
186
|
-
[campaign_id, ruleset_id, rule_index, rule_name, effect_type, triggered_by_coupon, triggered_for_catalog_item, condition_index].hash
|
226
|
+
[campaign_id, ruleset_id, rule_index, rule_name, effect_type, triggered_by_coupon, triggered_for_catalog_item, condition_index, evaluation_group_id, evaluation_group_mode, campaign_revision_id, campaign_revision_version_id].hash
|
187
227
|
end
|
188
228
|
|
189
229
|
# Builds the object from hash
|
@@ -57,6 +57,9 @@ module TalonOne
|
|
57
57
|
# The account-level collections that the application is subscribed to.
|
58
58
|
attr_accessor :collections
|
59
59
|
|
60
|
+
# The cart item filters belonging to the Application.
|
61
|
+
attr_accessor :application_cart_item_filters
|
62
|
+
|
60
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
61
64
|
def self.attribute_map
|
62
65
|
{
|
@@ -73,7 +76,8 @@ module TalonOne
|
|
73
76
|
:'attributes' => :'attributes',
|
74
77
|
:'additional_costs' => :'additionalCosts',
|
75
78
|
:'audiences' => :'audiences',
|
76
|
-
:'collections' => :'collections'
|
79
|
+
:'collections' => :'collections',
|
80
|
+
:'application_cart_item_filters' => :'applicationCartItemFilters'
|
77
81
|
}
|
78
82
|
end
|
79
83
|
|
@@ -93,7 +97,8 @@ module TalonOne
|
|
93
97
|
:'attributes' => :'Array<Attribute>',
|
94
98
|
:'additional_costs' => :'Array<AccountAdditionalCost>',
|
95
99
|
:'audiences' => :'Array<Audience>',
|
96
|
-
:'collections' => :'Array<Collection>'
|
100
|
+
:'collections' => :'Array<Collection>',
|
101
|
+
:'application_cart_item_filters' => :'Array<ApplicationCIF>'
|
97
102
|
}
|
98
103
|
end
|
99
104
|
|
@@ -193,6 +198,12 @@ module TalonOne
|
|
193
198
|
self.collections = value
|
194
199
|
end
|
195
200
|
end
|
201
|
+
|
202
|
+
if attributes.key?(:'application_cart_item_filters')
|
203
|
+
if (value = attributes[:'application_cart_item_filters']).is_a?(Array)
|
204
|
+
self.application_cart_item_filters = value
|
205
|
+
end
|
206
|
+
end
|
196
207
|
end
|
197
208
|
|
198
209
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -261,7 +272,8 @@ module TalonOne
|
|
261
272
|
attributes == o.attributes &&
|
262
273
|
additional_costs == o.additional_costs &&
|
263
274
|
audiences == o.audiences &&
|
264
|
-
collections == o.collections
|
275
|
+
collections == o.collections &&
|
276
|
+
application_cart_item_filters == o.application_cart_item_filters
|
265
277
|
end
|
266
278
|
|
267
279
|
# @see the `==` method
|
@@ -273,7 +285,7 @@ module TalonOne
|
|
273
285
|
# Calculates hash code according to all attributes.
|
274
286
|
# @return [Integer] Hash code
|
275
287
|
def hash
|
276
|
-
[id, created, application_id, slots, functions, templates, variables, giveaways_pools, loyalty_programs, achievements, attributes, additional_costs, audiences, collections].hash
|
288
|
+
[id, created, application_id, slots, functions, templates, variables, giveaways_pools, loyalty_programs, achievements, attributes, additional_costs, audiences, collections, application_cart_item_filters].hash
|
277
289
|
end
|
278
290
|
|
279
291
|
# Builds the object from hash
|
@@ -191,10 +191,6 @@ module TalonOne
|
|
191
191
|
invalid_properties.push('invalid value for "effects", effects cannot be nil.')
|
192
192
|
end
|
193
193
|
|
194
|
-
if @ledger_entries.nil?
|
195
|
-
invalid_properties.push('invalid value for "ledger_entries", ledger_entries cannot be nil.')
|
196
|
-
end
|
197
|
-
|
198
194
|
invalid_properties
|
199
195
|
end
|
200
196
|
|
@@ -210,7 +206,6 @@ module TalonOne
|
|
210
206
|
return false if @type.to_s.length < 1
|
211
207
|
return false if @attributes.nil?
|
212
208
|
return false if @effects.nil?
|
213
|
-
return false if @ledger_entries.nil?
|
214
209
|
true
|
215
210
|
end
|
216
211
|
|