talon_one 10.0.0 → 11.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/.github/workflows/autorelease.yml +123 -0
- data/README.md +55 -11
- data/docker-compose.yml +2 -2
- data/docs/AccountLimits.md +5 -1
- data/docs/Achievement.md +2 -0
- data/docs/AchievementBase.md +3 -1
- data/docs/AchievementProgressWithDefinition.md +3 -1
- data/docs/AchievementStatusEntry.md +2 -0
- data/docs/AddLoyaltyPoints.md +1 -1
- data/docs/AddedDeductedPointsNotification.md +41 -0
- data/docs/AnalyticsSKU.md +6 -2
- data/docs/ApplicationCustomer.md +1 -1
- data/docs/AsyncCouponsData.md +25 -0
- data/docs/AudienceCustomer.md +1 -1
- data/docs/AudienceReference.md +21 -0
- data/docs/BaseLoyaltyProgram.md +1 -1
- data/docs/BestPriorPrice.md +27 -0
- data/docs/BestPriorPriceMetadata.md +19 -0
- data/docs/BestPriorPriceRequest.md +25 -0
- data/docs/BestPriorPriceRequestTarget.md +19 -0
- data/docs/CampaignCollectionEditedNotification.md +6 -6
- data/docs/CampaignCollectionEditedNotificationItem.md +23 -0
- data/docs/CampaignCreatedNotification.md +6 -6
- data/docs/CampaignCreatedNotificationItem.md +23 -0
- data/docs/CampaignDeletedNotification.md +6 -4
- data/docs/CampaignDeletedNotificationItem.md +21 -0
- data/docs/CampaignEditedNotification.md +6 -6
- data/docs/CampaignEditedNotificationItem.md +23 -0
- data/docs/CampaignEvaluationTreeChangedMessage.md +21 -0
- data/docs/CampaignNotificationBase.md +19 -0
- data/docs/CampaignNotificationGeneric.md +21 -0
- data/docs/CampaignNotificationItemBase.md +17 -0
- data/docs/CampaignNotificationPolicy.md +1 -1
- data/docs/CampaignRulesetChangedNotification.md +6 -6
- data/docs/CampaignRulesetChangedNotificationItem.md +23 -0
- data/docs/CampaignStateChangedNotification.md +6 -8
- data/docs/CampaignStateChangedNotificationItem.md +25 -0
- data/docs/CardAddedDeductedPointsNotification.md +45 -0
- data/docs/CardExpiringPointsNotificationPolicy.md +1 -1
- data/docs/CardLedgerPointsEntryIntegrationAPI.md +2 -0
- data/docs/CardLedgerTransactionLogEntry.md +3 -1
- data/docs/CardLedgerTransactionLogEntryIntegrationAPI.md +3 -1
- data/docs/CatalogsStrikethroughNotificationPolicy.md +3 -1
- data/docs/CouponsNotificationData.md +27 -0
- data/docs/CouponsNotificationPolicy.md +1 -1
- data/docs/CreateAchievement.md +3 -1
- data/docs/CreateCouponData.md +29 -0
- data/docs/CustomerProfile.md +1 -1
- data/docs/DeleteCouponsData.md +31 -0
- data/docs/Effect.md +1 -1
- data/docs/ExpiringCardPointsData.md +29 -0
- data/docs/ExpiringCardPointsNotification.md +21 -0
- data/docs/ExpiringCouponsData.md +35 -0
- data/docs/ExpiringCouponsNotification.md +21 -0
- data/docs/ExpiringCouponsNotificationPolicy.md +1 -1
- data/docs/ExpiringPointsData.md +25 -0
- data/docs/ExpiringPointsNotification.md +21 -0
- data/docs/ExpiringPointsNotificationPolicy.md +1 -1
- data/docs/ExtendLoyaltyPointsExpiryDateEffectProps.md +2 -4
- data/docs/ExtendedCoupon.md +61 -0
- data/docs/GenerateAuditLogSummary.md +17 -0
- data/docs/GenerateCampaignDescription.md +3 -1
- data/docs/GenerateCouponFailureDetailedSummary.md +25 -0
- data/docs/GenerateCouponFailureSummary.md +19 -0
- data/docs/GenerateUserSessionSummary.md +19 -0
- data/docs/GetIntegrationCouponRequest.md +1 -1
- data/docs/InlineResponse20040.md +1 -1
- data/docs/InlineResponse20041.md +1 -1
- data/docs/InlineResponse20042.md +4 -2
- data/docs/InlineResponse20043.md +1 -1
- data/docs/InlineResponse20044.md +2 -4
- data/docs/InlineResponse20045.md +5 -3
- data/docs/InlineResponse20046.md +2 -4
- data/docs/InlineResponse20047.md +2 -6
- data/docs/InlineResponse20048.md +4 -2
- data/docs/InlineResponse20049.md +4 -2
- data/docs/IntegrationApi.md +88 -3
- data/docs/JWT.md +19 -0
- data/docs/LabelTargetAudience.md +19 -0
- data/docs/LabelTargetNone.md +17 -0
- data/docs/LedgerPointsEntryIntegrationAPI.md +2 -0
- data/docs/LedgerTransactionLogEntryIntegrationAPI.md +3 -1
- data/docs/LoyaltyDashboardData.md +2 -0
- data/docs/LoyaltyLedgerEntryExpiryDateChange.md +21 -0
- data/docs/LoyaltyProgram.md +1 -1
- data/docs/LoyaltyProgramTransaction.md +2 -0
- data/docs/ManagementApi.md +1083 -366
- data/docs/NewLoyaltyProgram.md +1 -1
- data/docs/NewMessageTest.md +6 -6
- data/docs/NewPriceAdjustment.md +3 -1
- data/docs/NewPriceType.md +4 -4
- data/docs/NewSecondaryDeployment.md +17 -0
- data/docs/NewWebhook.md +3 -1
- data/docs/PendingActivePointsData.md +29 -0
- data/docs/PendingActivePointsNotification.md +21 -0
- data/docs/PendingPointsNotificationPolicy.md +1 -1
- data/docs/PriceDetail.md +2 -0
- data/docs/PriceType.md +4 -4
- data/docs/PriceTypeReferenceDetail.md +23 -0
- data/docs/PriceTypeReferences.md +19 -0
- data/docs/RoleV2RolesGroup.md +3 -1
- data/docs/SecondaryDeployment.md +31 -0
- data/docs/SetLoyaltyPointsExpiryDateEffectProps.md +23 -0
- data/docs/StrikethroughChangedItem.md +2 -0
- data/docs/StrikethroughEffect.md +9 -1
- data/docs/StrikethroughLabelingNotification.md +3 -1
- data/docs/TierDowngradeData.md +31 -0
- data/docs/TierDowngradeNotification.md +21 -0
- data/docs/TierDowngradeNotificationPolicy.md +1 -1
- data/docs/TierUpgradeData.md +35 -0
- data/docs/TierUpgradeNotification.md +21 -0
- data/docs/TierUpgradeNotificationPolicy.md +1 -1
- data/docs/TierWillDowngradeData.md +31 -0
- data/docs/TierWillDowngradeNotification.md +21 -0
- data/docs/TierWillDowngradeNotificationPolicy.md +1 -1
- data/docs/UpdateAchievement.md +3 -1
- data/docs/UpdateCouponsData.md +29 -0
- data/docs/UpdateLoyaltyProgram.md +1 -1
- data/docs/UpdatePriceType.md +21 -0
- data/docs/Webhook.md +3 -1
- data/docs/WebhookWithOutgoingIntegrationDetails.md +2 -0
- data/lib/talon_one/api/integration_api.rb +104 -2
- data/lib/talon_one/api/management_api.rb +226 -400
- data/lib/talon_one/models/account_limits.rb +34 -4
- data/lib/talon_one/models/achievement.rb +11 -1
- data/lib/talon_one/models/achievement_base.rb +14 -4
- data/lib/talon_one/models/achievement_progress_with_definition.rb +14 -4
- data/lib/talon_one/models/achievement_status_entry.rb +11 -1
- data/lib/talon_one/models/add_loyalty_points.rb +1 -10
- data/lib/talon_one/models/added_deducted_points_notification.rb +478 -0
- data/lib/talon_one/models/analytics_sku.rb +23 -3
- data/lib/talon_one/models/application_customer.rb +1 -1
- data/lib/talon_one/models/async_coupons_data.rb +272 -0
- data/lib/talon_one/models/audience_customer.rb +1 -1
- data/lib/talon_one/models/audience_reference.rb +256 -0
- data/lib/talon_one/models/base_loyalty_program.rb +1 -1
- data/lib/talon_one/models/best_prior_price.rb +285 -0
- data/lib/talon_one/models/best_prior_price_metadata.rb +219 -0
- data/lib/talon_one/models/best_prior_price_request.rb +268 -0
- data/lib/talon_one/models/best_prior_price_request_target.rb +257 -0
- data/lib/talon_one/models/campaign_collection_edited_notification.rb +30 -26
- data/lib/talon_one/models/campaign_collection_edited_notification_item.rb +250 -0
- data/lib/talon_one/models/campaign_created_notification.rb +30 -26
- data/lib/talon_one/models/campaign_created_notification_item.rb +250 -0
- data/lib/talon_one/models/campaign_deleted_notification.rb +33 -21
- data/lib/talon_one/models/campaign_deleted_notification_item.rb +242 -0
- data/lib/talon_one/models/campaign_edited_notification.rb +30 -26
- data/lib/talon_one/models/campaign_edited_notification_item.rb +250 -0
- data/lib/talon_one/models/campaign_evaluation_tree_changed_message.rb +239 -0
- data/lib/talon_one/models/campaign_notification_base.rb +227 -0
- data/lib/talon_one/models/campaign_notification_generic.rb +244 -0
- data/lib/talon_one/models/campaign_notification_item_base.rb +212 -0
- data/lib/talon_one/models/campaign_notification_policy.rb +2 -0
- data/lib/talon_one/models/campaign_ruleset_changed_notification.rb +32 -23
- data/lib/talon_one/models/campaign_ruleset_changed_notification_item.rb +245 -0
- data/lib/talon_one/models/campaign_state_changed_notification.rb +30 -42
- data/lib/talon_one/models/campaign_state_changed_notification_item.rb +266 -0
- data/lib/talon_one/models/card_added_deducted_points_notification.rb +510 -0
- data/lib/talon_one/models/card_expiring_points_notification_policy.rb +2 -0
- data/lib/talon_one/models/card_ledger_points_entry_integration_api.rb +16 -1
- data/lib/talon_one/models/card_ledger_transaction_log_entry.rb +16 -1
- data/lib/talon_one/models/card_ledger_transaction_log_entry_integration_api.rb +16 -1
- data/lib/talon_one/models/catalogs_strikethrough_notification_policy.rb +16 -4
- data/lib/talon_one/models/coupons_notification_data.rb +278 -0
- data/lib/talon_one/models/coupons_notification_policy.rb +2 -0
- data/lib/talon_one/models/create_achievement.rb +14 -4
- data/lib/talon_one/models/create_coupon_data.rb +288 -0
- data/lib/talon_one/models/customer_profile.rb +1 -1
- data/lib/talon_one/models/deduct_loyalty_points.rb +0 -9
- data/lib/talon_one/models/delete_coupons_data.rb +310 -0
- data/lib/talon_one/models/effect.rb +0 -1
- data/lib/talon_one/models/expiring_card_points_data.rb +342 -0
- data/lib/talon_one/models/expiring_card_points_notification.rb +277 -0
- data/lib/talon_one/models/expiring_coupons_data.rb +369 -0
- data/lib/talon_one/models/expiring_coupons_notification.rb +277 -0
- data/lib/talon_one/models/expiring_coupons_notification_policy.rb +2 -0
- data/lib/talon_one/models/expiring_points_data.rb +291 -0
- data/lib/talon_one/models/expiring_points_notification.rb +277 -0
- data/lib/talon_one/models/expiring_points_notification_policy.rb +2 -0
- data/lib/talon_one/models/extend_loyalty_points_expiry_date_effect_props.rb +9 -24
- data/lib/talon_one/models/extended_coupon.rb +578 -0
- data/lib/talon_one/models/generate_audit_log_summary.rb +212 -0
- data/lib/talon_one/models/generate_campaign_description.rb +16 -1
- data/lib/talon_one/models/generate_coupon_failure_detailed_summary.rb +286 -0
- data/lib/talon_one/models/generate_coupon_failure_summary.rb +222 -0
- data/lib/talon_one/models/generate_user_session_summary.rb +227 -0
- data/lib/talon_one/models/get_integration_coupon_request.rb +2 -0
- data/lib/talon_one/models/inline_response20040.rb +1 -1
- data/lib/talon_one/models/inline_response20041.rb +1 -1
- data/lib/talon_one/models/inline_response20042.rb +11 -7
- data/lib/talon_one/models/inline_response20043.rb +1 -1
- data/lib/talon_one/models/inline_response20044.rb +7 -11
- data/lib/talon_one/models/inline_response20045.rb +11 -7
- data/lib/talon_one/models/inline_response20046.rb +2 -21
- data/lib/talon_one/models/inline_response20047.rb +2 -25
- data/lib/talon_one/models/inline_response20048.rb +16 -2
- data/lib/talon_one/models/inline_response20049.rb +21 -2
- data/lib/talon_one/models/jwt.rb +228 -0
- data/lib/talon_one/models/label_target_audience.rb +260 -0
- data/lib/talon_one/models/label_target_none.rb +246 -0
- data/lib/talon_one/models/ledger_points_entry_integration_api.rb +16 -1
- data/lib/talon_one/models/ledger_transaction_log_entry_integration_api.rb +17 -2
- data/lib/talon_one/models/loyalty_dashboard_data.rb +16 -1
- data/lib/talon_one/models/loyalty_ledger_entry_expiry_date_change.rb +238 -0
- data/lib/talon_one/models/loyalty_program.rb +1 -1
- data/lib/talon_one/models/loyalty_program_transaction.rb +16 -1
- data/lib/talon_one/models/new_loyalty_program.rb +1 -1
- data/lib/talon_one/models/new_message_test.rb +28 -43
- data/lib/talon_one/models/new_price_adjustment.rb +33 -4
- data/lib/talon_one/models/new_price_type.rb +3 -3
- data/lib/talon_one/models/new_secondary_deployment.rb +242 -0
- data/lib/talon_one/models/new_webhook.rb +14 -4
- data/lib/talon_one/models/pending_active_points_data.rb +308 -0
- data/lib/talon_one/models/pending_active_points_notification.rb +277 -0
- data/lib/talon_one/models/pending_points_notification_policy.rb +2 -0
- data/lib/talon_one/models/price_detail.rb +11 -1
- data/lib/talon_one/models/price_type.rb +3 -3
- data/lib/talon_one/models/price_type_reference_detail.rb +286 -0
- data/lib/talon_one/models/price_type_references.rb +224 -0
- data/lib/talon_one/models/role_v2_roles_group.rb +14 -4
- data/lib/talon_one/models/secondary_deployment.rb +367 -0
- data/lib/talon_one/models/set_loyalty_points_expiry_date_effect_props.rb +255 -0
- data/lib/talon_one/models/strikethrough_changed_item.rb +13 -1
- data/lib/talon_one/models/strikethrough_effect.rb +46 -4
- data/lib/talon_one/models/strikethrough_labeling_notification.rb +19 -4
- data/lib/talon_one/models/tier_downgrade_data.rb +328 -0
- data/lib/talon_one/models/tier_downgrade_notification.rb +277 -0
- data/lib/talon_one/models/tier_downgrade_notification_policy.rb +2 -0
- data/lib/talon_one/models/tier_upgrade_data.rb +353 -0
- data/lib/talon_one/models/tier_upgrade_notification.rb +277 -0
- data/lib/talon_one/models/tier_upgrade_notification_policy.rb +2 -0
- data/lib/talon_one/models/tier_will_downgrade_data.rb +328 -0
- data/lib/talon_one/models/tier_will_downgrade_notification.rb +277 -0
- data/lib/talon_one/models/tier_will_downgrade_notification_policy.rb +2 -0
- data/lib/talon_one/models/update_achievement.rb +14 -4
- data/lib/talon_one/models/update_coupons_data.rb +296 -0
- data/lib/talon_one/models/update_loyalty_program.rb +1 -1
- data/lib/talon_one/models/update_price_type.rb +239 -0
- data/lib/talon_one/models/webhook.rb +14 -4
- 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 +51 -6
- data/spec/api/integration_api_spec.rb +23 -1
- data/spec/api/management_api_spec.rb +18 -54
- data/spec/models/account_limits_spec.rb +12 -0
- data/spec/models/achievement_base_spec.rb +6 -0
- data/spec/models/achievement_progress_with_definition_spec.rb +6 -0
- data/spec/models/achievement_spec.rb +6 -0
- data/spec/models/achievement_status_entry_spec.rb +6 -0
- data/spec/models/added_deducted_points_notification_spec.rb +125 -0
- data/spec/models/analytics_sku_spec.rb +12 -0
- data/spec/models/async_coupons_data_spec.rb +65 -0
- data/spec/models/audience_reference_spec.rb +53 -0
- data/spec/models/best_prior_price_metadata_spec.rb +47 -0
- data/spec/models/best_prior_price_request_spec.rb +65 -0
- data/spec/models/best_prior_price_request_target_spec.rb +51 -0
- data/spec/models/best_prior_price_spec.rb +71 -0
- data/spec/models/campaign_collection_edited_notification_item_spec.rb +59 -0
- data/spec/models/campaign_collection_edited_notification_spec.rb +3 -3
- data/spec/models/campaign_created_notification_item_spec.rb +59 -0
- data/spec/models/campaign_created_notification_spec.rb +3 -3
- data/spec/models/campaign_deleted_notification_item_spec.rb +53 -0
- data/spec/models/campaign_deleted_notification_spec.rb +8 -2
- data/spec/models/campaign_edited_notification_item_spec.rb +59 -0
- data/spec/models/campaign_edited_notification_spec.rb +3 -3
- data/spec/models/campaign_evaluation_tree_changed_message_spec.rb +53 -0
- data/spec/models/campaign_notification_base_spec.rb +47 -0
- data/spec/models/campaign_notification_generic_spec.rb +53 -0
- data/spec/models/campaign_notification_item_base_spec.rb +41 -0
- data/spec/models/campaign_ruleset_changed_notification_item_spec.rb +59 -0
- data/spec/models/campaign_ruleset_changed_notification_spec.rb +3 -3
- data/spec/models/campaign_state_changed_notification_item_spec.rb +65 -0
- data/spec/models/campaign_state_changed_notification_spec.rb +3 -9
- data/spec/models/card_added_deducted_points_notification_spec.rb +137 -0
- data/spec/models/card_ledger_points_entry_integration_api_spec.rb +6 -0
- data/spec/models/card_ledger_transaction_log_entry_integration_api_spec.rb +6 -0
- data/spec/models/card_ledger_transaction_log_entry_spec.rb +6 -0
- data/spec/models/catalogs_strikethrough_notification_policy_spec.rb +6 -0
- data/spec/models/coupons_notification_data_spec.rb +71 -0
- data/spec/models/create_achievement_spec.rb +6 -0
- data/spec/models/create_coupon_data_spec.rb +77 -0
- data/spec/models/delete_coupons_data_spec.rb +83 -0
- data/spec/models/expiring_card_points_data_spec.rb +77 -0
- data/spec/models/expiring_card_points_notification_spec.rb +57 -0
- data/spec/models/expiring_coupons_data_spec.rb +95 -0
- data/spec/models/expiring_coupons_notification_spec.rb +57 -0
- data/spec/models/expiring_points_data_spec.rb +65 -0
- data/spec/models/expiring_points_notification_spec.rb +57 -0
- data/spec/models/extend_loyalty_points_expiry_date_effect_props_spec.rb +1 -7
- data/spec/models/extended_coupon_spec.rb +173 -0
- data/spec/models/generate_audit_log_summary_spec.rb +41 -0
- data/spec/models/generate_campaign_description_spec.rb +6 -0
- data/spec/models/generate_coupon_failure_detailed_summary_spec.rb +65 -0
- data/spec/models/generate_coupon_failure_summary_spec.rb +47 -0
- data/spec/models/generate_user_session_summary_spec.rb +47 -0
- data/spec/models/inline_response20042_spec.rb +6 -0
- data/spec/models/inline_response20044_spec.rb +0 -6
- data/spec/models/inline_response20045_spec.rb +6 -0
- data/spec/models/inline_response20046_spec.rb +0 -6
- data/spec/models/inline_response20047_spec.rb +0 -12
- data/spec/models/inline_response20048_spec.rb +6 -0
- data/spec/models/inline_response20049_spec.rb +6 -0
- data/spec/models/jwt_spec.rb +47 -0
- data/spec/models/label_target_audience_spec.rb +51 -0
- data/spec/models/label_target_none_spec.rb +45 -0
- data/spec/models/ledger_points_entry_integration_api_spec.rb +6 -0
- data/spec/models/ledger_transaction_log_entry_integration_api_spec.rb +6 -0
- data/spec/models/loyalty_dashboard_data_spec.rb +6 -0
- data/spec/models/loyalty_ledger_entry_expiry_date_change_spec.rb +53 -0
- data/spec/models/loyalty_program_transaction_spec.rb +6 -0
- data/spec/models/new_message_test_spec.rb +10 -14
- data/spec/models/new_price_adjustment_spec.rb +6 -0
- data/spec/models/new_secondary_deployment_spec.rb +41 -0
- data/spec/models/new_webhook_spec.rb +6 -0
- data/spec/models/pending_active_points_data_spec.rb +77 -0
- data/spec/models/pending_active_points_notification_spec.rb +57 -0
- data/spec/models/price_detail_spec.rb +6 -0
- data/spec/models/price_type_reference_detail_spec.rb +63 -0
- data/spec/models/price_type_references_spec.rb +47 -0
- data/spec/models/role_v2_roles_group_spec.rb +6 -0
- data/spec/models/secondary_deployment_spec.rb +87 -0
- data/spec/models/set_loyalty_points_expiry_date_effect_props_spec.rb +59 -0
- data/spec/models/strikethrough_changed_item_spec.rb +6 -0
- data/spec/models/strikethrough_effect_spec.rb +24 -0
- data/spec/models/strikethrough_labeling_notification_spec.rb +6 -0
- data/spec/models/tier_downgrade_data_spec.rb +83 -0
- data/spec/models/tier_downgrade_notification_spec.rb +57 -0
- data/spec/models/tier_upgrade_data_spec.rb +95 -0
- data/spec/models/tier_upgrade_notification_spec.rb +57 -0
- data/spec/models/tier_will_downgrade_data_spec.rb +83 -0
- data/spec/models/tier_will_downgrade_notification_spec.rb +57 -0
- data/spec/models/update_achievement_spec.rb +6 -0
- data/spec/models/update_coupons_data_spec.rb +77 -0
- data/spec/models/update_price_type_spec.rb +53 -0
- data/spec/models/webhook_spec.rb +6 -0
- data/spec/models/webhook_with_outgoing_integration_details_spec.rb +6 -0
- metadata +206 -2
- data/.github/dependabot.yml +0 -10
|
@@ -0,0 +1,478 @@
|
|
|
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
|
+
class AddedDeductedPointsNotification
|
|
17
|
+
# The integration ID of the customer profile to whom points were added or deducted.
|
|
18
|
+
attr_accessor :profile_integration_id
|
|
19
|
+
|
|
20
|
+
# The ID of the loyalty program.
|
|
21
|
+
attr_accessor :loyalty_program_id
|
|
22
|
+
|
|
23
|
+
# The ID of the subledger within the loyalty program where these points were added.
|
|
24
|
+
attr_accessor :subledger_id
|
|
25
|
+
|
|
26
|
+
# The amount of added or deducted loyalty points.
|
|
27
|
+
attr_accessor :amount
|
|
28
|
+
|
|
29
|
+
# The reason for the points addition or deduction.
|
|
30
|
+
attr_accessor :reason
|
|
31
|
+
|
|
32
|
+
# The notification source, that is, it indicates whether the points were added or deducted via one of the following routes: - [The Campaign Manager](/docs/product/getting-started) - [Management API](/management-api#tag/Loyalty) - [Rule Engine](/docs/product/applications/evaluation-order-for-rules-and-filters)
|
|
33
|
+
attr_accessor :type_of_change
|
|
34
|
+
|
|
35
|
+
# The name of the employee who added or deducted points.
|
|
36
|
+
attr_accessor :employee_name
|
|
37
|
+
|
|
38
|
+
# The ID of the employee who added or deducted points.
|
|
39
|
+
attr_accessor :user_id
|
|
40
|
+
|
|
41
|
+
# The action (addition or deduction) made with loyalty points.
|
|
42
|
+
attr_accessor :operation
|
|
43
|
+
|
|
44
|
+
# The start date for loyalty points.
|
|
45
|
+
attr_accessor :start_date
|
|
46
|
+
|
|
47
|
+
# The expiration date for loyalty points.
|
|
48
|
+
attr_accessor :expiry_date
|
|
49
|
+
|
|
50
|
+
# The integration ID of the session through which the points were earned or lost.
|
|
51
|
+
attr_accessor :session_integration_id
|
|
52
|
+
|
|
53
|
+
# The type of notification.
|
|
54
|
+
attr_accessor :notification_type
|
|
55
|
+
|
|
56
|
+
class EnumAttributeValidator
|
|
57
|
+
attr_reader :datatype
|
|
58
|
+
attr_reader :allowable_values
|
|
59
|
+
|
|
60
|
+
def initialize(datatype, allowable_values)
|
|
61
|
+
@allowable_values = allowable_values.map do |value|
|
|
62
|
+
case datatype.to_s
|
|
63
|
+
when /Integer/i
|
|
64
|
+
value.to_i
|
|
65
|
+
when /Float/i
|
|
66
|
+
value.to_f
|
|
67
|
+
else
|
|
68
|
+
value
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def valid?(value)
|
|
74
|
+
!value || allowable_values.include?(value)
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
79
|
+
def self.attribute_map
|
|
80
|
+
{
|
|
81
|
+
:'profile_integration_id' => :'ProfileIntegrationID',
|
|
82
|
+
:'loyalty_program_id' => :'LoyaltyProgramID',
|
|
83
|
+
:'subledger_id' => :'SubledgerID',
|
|
84
|
+
:'amount' => :'Amount',
|
|
85
|
+
:'reason' => :'Reason',
|
|
86
|
+
:'type_of_change' => :'TypeOfChange',
|
|
87
|
+
:'employee_name' => :'EmployeeName',
|
|
88
|
+
:'user_id' => :'UserID',
|
|
89
|
+
:'operation' => :'Operation',
|
|
90
|
+
:'start_date' => :'StartDate',
|
|
91
|
+
:'expiry_date' => :'ExpiryDate',
|
|
92
|
+
:'session_integration_id' => :'SessionIntegrationID',
|
|
93
|
+
:'notification_type' => :'NotificationType'
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Attribute type mapping.
|
|
98
|
+
def self.openapi_types
|
|
99
|
+
{
|
|
100
|
+
:'profile_integration_id' => :'String',
|
|
101
|
+
:'loyalty_program_id' => :'Integer',
|
|
102
|
+
:'subledger_id' => :'String',
|
|
103
|
+
:'amount' => :'Float',
|
|
104
|
+
:'reason' => :'String',
|
|
105
|
+
:'type_of_change' => :'String',
|
|
106
|
+
:'employee_name' => :'String',
|
|
107
|
+
:'user_id' => :'Integer',
|
|
108
|
+
:'operation' => :'String',
|
|
109
|
+
:'start_date' => :'DateTime',
|
|
110
|
+
:'expiry_date' => :'DateTime',
|
|
111
|
+
:'session_integration_id' => :'String',
|
|
112
|
+
:'notification_type' => :'String'
|
|
113
|
+
}
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# List of attributes with nullable: true
|
|
117
|
+
def self.openapi_nullable
|
|
118
|
+
Set.new([
|
|
119
|
+
])
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Initializes the object
|
|
123
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
124
|
+
def initialize(attributes = {})
|
|
125
|
+
if (!attributes.is_a?(Hash))
|
|
126
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TalonOne::AddedDeductedPointsNotification` initialize method"
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
130
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
131
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
132
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TalonOne::AddedDeductedPointsNotification`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
133
|
+
end
|
|
134
|
+
h[k.to_sym] = v
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'profile_integration_id')
|
|
138
|
+
self.profile_integration_id = attributes[:'profile_integration_id']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'loyalty_program_id')
|
|
142
|
+
self.loyalty_program_id = attributes[:'loyalty_program_id']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'subledger_id')
|
|
146
|
+
self.subledger_id = attributes[:'subledger_id']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'amount')
|
|
150
|
+
self.amount = attributes[:'amount']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'reason')
|
|
154
|
+
self.reason = attributes[:'reason']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'type_of_change')
|
|
158
|
+
self.type_of_change = attributes[:'type_of_change']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'employee_name')
|
|
162
|
+
self.employee_name = attributes[:'employee_name']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'user_id')
|
|
166
|
+
self.user_id = attributes[:'user_id']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.key?(:'operation')
|
|
170
|
+
self.operation = attributes[:'operation']
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
if attributes.key?(:'start_date')
|
|
174
|
+
self.start_date = attributes[:'start_date']
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
if attributes.key?(:'expiry_date')
|
|
178
|
+
self.expiry_date = attributes[:'expiry_date']
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if attributes.key?(:'session_integration_id')
|
|
182
|
+
self.session_integration_id = attributes[:'session_integration_id']
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if attributes.key?(:'notification_type')
|
|
186
|
+
self.notification_type = attributes[:'notification_type']
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
191
|
+
# @return Array for valid properties with the reasons
|
|
192
|
+
def list_invalid_properties
|
|
193
|
+
invalid_properties = Array.new
|
|
194
|
+
if @profile_integration_id.nil?
|
|
195
|
+
invalid_properties.push('invalid value for "profile_integration_id", profile_integration_id cannot be nil.')
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if @loyalty_program_id.nil?
|
|
199
|
+
invalid_properties.push('invalid value for "loyalty_program_id", loyalty_program_id cannot be nil.')
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if @loyalty_program_id < 1
|
|
203
|
+
invalid_properties.push('invalid value for "loyalty_program_id", must be greater than or equal to 1.')
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if @subledger_id.nil?
|
|
207
|
+
invalid_properties.push('invalid value for "subledger_id", subledger_id cannot be nil.')
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if @amount.nil?
|
|
211
|
+
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if @reason.nil?
|
|
215
|
+
invalid_properties.push('invalid value for "reason", reason cannot be nil.')
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if @type_of_change.nil?
|
|
219
|
+
invalid_properties.push('invalid value for "type_of_change", type_of_change cannot be nil.')
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if @employee_name.nil?
|
|
223
|
+
invalid_properties.push('invalid value for "employee_name", employee_name cannot be nil.')
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if @user_id.nil?
|
|
227
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if @user_id < 1
|
|
231
|
+
invalid_properties.push('invalid value for "user_id", must be greater than or equal to 1.')
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if @operation.nil?
|
|
235
|
+
invalid_properties.push('invalid value for "operation", operation cannot be nil.')
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if @session_integration_id.nil?
|
|
239
|
+
invalid_properties.push('invalid value for "session_integration_id", session_integration_id cannot be nil.')
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if @notification_type.nil?
|
|
243
|
+
invalid_properties.push('invalid value for "notification_type", notification_type cannot be nil.')
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
invalid_properties
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Check to see if the all the properties in the model are valid
|
|
250
|
+
# @return true if the model is valid
|
|
251
|
+
def valid?
|
|
252
|
+
return false if @profile_integration_id.nil?
|
|
253
|
+
return false if @loyalty_program_id.nil?
|
|
254
|
+
return false if @loyalty_program_id < 1
|
|
255
|
+
return false if @subledger_id.nil?
|
|
256
|
+
return false if @amount.nil?
|
|
257
|
+
return false if @reason.nil?
|
|
258
|
+
return false if @type_of_change.nil?
|
|
259
|
+
type_of_change_validator = EnumAttributeValidator.new('String', ["campaign_manager", "rule_engine", "management_api"])
|
|
260
|
+
return false unless type_of_change_validator.valid?(@type_of_change)
|
|
261
|
+
return false if @employee_name.nil?
|
|
262
|
+
return false if @user_id.nil?
|
|
263
|
+
return false if @user_id < 1
|
|
264
|
+
return false if @operation.nil?
|
|
265
|
+
operation_validator = EnumAttributeValidator.new('String', ["addition", "deduction"])
|
|
266
|
+
return false unless operation_validator.valid?(@operation)
|
|
267
|
+
return false if @session_integration_id.nil?
|
|
268
|
+
return false if @notification_type.nil?
|
|
269
|
+
notification_type_validator = EnumAttributeValidator.new('String', ["LoyaltyPointsDeducted", "LoyaltyPointsAdded"])
|
|
270
|
+
return false unless notification_type_validator.valid?(@notification_type)
|
|
271
|
+
true
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Custom attribute writer method with validation
|
|
275
|
+
# @param [Object] loyalty_program_id Value to be assigned
|
|
276
|
+
def loyalty_program_id=(loyalty_program_id)
|
|
277
|
+
if loyalty_program_id.nil?
|
|
278
|
+
fail ArgumentError, 'loyalty_program_id cannot be nil'
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if loyalty_program_id < 1
|
|
282
|
+
fail ArgumentError, 'invalid value for "loyalty_program_id", must be greater than or equal to 1.'
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
@loyalty_program_id = loyalty_program_id
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
289
|
+
# @param [Object] type_of_change Object to be assigned
|
|
290
|
+
def type_of_change=(type_of_change)
|
|
291
|
+
validator = EnumAttributeValidator.new('String', ["campaign_manager", "rule_engine", "management_api"])
|
|
292
|
+
unless validator.valid?(type_of_change)
|
|
293
|
+
fail ArgumentError, "invalid value for \"type_of_change\", must be one of #{validator.allowable_values}."
|
|
294
|
+
end
|
|
295
|
+
@type_of_change = type_of_change
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Custom attribute writer method with validation
|
|
299
|
+
# @param [Object] user_id Value to be assigned
|
|
300
|
+
def user_id=(user_id)
|
|
301
|
+
if user_id.nil?
|
|
302
|
+
fail ArgumentError, 'user_id cannot be nil'
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
if user_id < 1
|
|
306
|
+
fail ArgumentError, 'invalid value for "user_id", must be greater than or equal to 1.'
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
@user_id = user_id
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
313
|
+
# @param [Object] operation Object to be assigned
|
|
314
|
+
def operation=(operation)
|
|
315
|
+
validator = EnumAttributeValidator.new('String', ["addition", "deduction"])
|
|
316
|
+
unless validator.valid?(operation)
|
|
317
|
+
fail ArgumentError, "invalid value for \"operation\", must be one of #{validator.allowable_values}."
|
|
318
|
+
end
|
|
319
|
+
@operation = operation
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
323
|
+
# @param [Object] notification_type Object to be assigned
|
|
324
|
+
def notification_type=(notification_type)
|
|
325
|
+
validator = EnumAttributeValidator.new('String', ["LoyaltyPointsDeducted", "LoyaltyPointsAdded"])
|
|
326
|
+
unless validator.valid?(notification_type)
|
|
327
|
+
fail ArgumentError, "invalid value for \"notification_type\", must be one of #{validator.allowable_values}."
|
|
328
|
+
end
|
|
329
|
+
@notification_type = notification_type
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Checks equality by comparing each attribute.
|
|
333
|
+
# @param [Object] Object to be compared
|
|
334
|
+
def ==(o)
|
|
335
|
+
return true if self.equal?(o)
|
|
336
|
+
self.class == o.class &&
|
|
337
|
+
profile_integration_id == o.profile_integration_id &&
|
|
338
|
+
loyalty_program_id == o.loyalty_program_id &&
|
|
339
|
+
subledger_id == o.subledger_id &&
|
|
340
|
+
amount == o.amount &&
|
|
341
|
+
reason == o.reason &&
|
|
342
|
+
type_of_change == o.type_of_change &&
|
|
343
|
+
employee_name == o.employee_name &&
|
|
344
|
+
user_id == o.user_id &&
|
|
345
|
+
operation == o.operation &&
|
|
346
|
+
start_date == o.start_date &&
|
|
347
|
+
expiry_date == o.expiry_date &&
|
|
348
|
+
session_integration_id == o.session_integration_id &&
|
|
349
|
+
notification_type == o.notification_type
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# @see the `==` method
|
|
353
|
+
# @param [Object] Object to be compared
|
|
354
|
+
def eql?(o)
|
|
355
|
+
self == o
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Calculates hash code according to all attributes.
|
|
359
|
+
# @return [Integer] Hash code
|
|
360
|
+
def hash
|
|
361
|
+
[profile_integration_id, loyalty_program_id, subledger_id, amount, reason, type_of_change, employee_name, user_id, operation, start_date, expiry_date, session_integration_id, notification_type].hash
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Builds the object from hash
|
|
365
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
366
|
+
# @return [Object] Returns the model itself
|
|
367
|
+
def self.build_from_hash(attributes)
|
|
368
|
+
new.build_from_hash(attributes)
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# Builds the object from hash
|
|
372
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
373
|
+
# @return [Object] Returns the model itself
|
|
374
|
+
def build_from_hash(attributes)
|
|
375
|
+
return nil unless attributes.is_a?(Hash)
|
|
376
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
377
|
+
if type =~ /\AArray<(.*)>/i
|
|
378
|
+
# check to ensure the input is an array given that the attribute
|
|
379
|
+
# is documented as an array but the input is not
|
|
380
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
381
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
382
|
+
end
|
|
383
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
384
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
385
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
self
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
# Deserializes the data based on type
|
|
392
|
+
# @param string type Data type
|
|
393
|
+
# @param string value Value to be deserialized
|
|
394
|
+
# @return [Object] Deserialized data
|
|
395
|
+
def _deserialize(type, value)
|
|
396
|
+
case type.to_sym
|
|
397
|
+
when :DateTime
|
|
398
|
+
DateTime.parse(value)
|
|
399
|
+
when :Date
|
|
400
|
+
Date.parse(value)
|
|
401
|
+
when :String
|
|
402
|
+
value.to_s
|
|
403
|
+
when :Integer
|
|
404
|
+
value.to_i
|
|
405
|
+
when :Float
|
|
406
|
+
value.to_f
|
|
407
|
+
when :Boolean
|
|
408
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
409
|
+
true
|
|
410
|
+
else
|
|
411
|
+
false
|
|
412
|
+
end
|
|
413
|
+
when :Object
|
|
414
|
+
# generic object (usually a Hash), return directly
|
|
415
|
+
value
|
|
416
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
417
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
418
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
419
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
420
|
+
k_type = Regexp.last_match[:k_type]
|
|
421
|
+
v_type = Regexp.last_match[:v_type]
|
|
422
|
+
{}.tap do |hash|
|
|
423
|
+
value.each do |k, v|
|
|
424
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
425
|
+
end
|
|
426
|
+
end
|
|
427
|
+
else # model
|
|
428
|
+
TalonOne.const_get(type).build_from_hash(value)
|
|
429
|
+
end
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
# Returns the string representation of the object
|
|
433
|
+
# @return [String] String presentation of the object
|
|
434
|
+
def to_s
|
|
435
|
+
to_hash.to_s
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
439
|
+
# @return [Hash] Returns the object in the form of hash
|
|
440
|
+
def to_body
|
|
441
|
+
to_hash
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# Returns the object in the form of hash
|
|
445
|
+
# @return [Hash] Returns the object in the form of hash
|
|
446
|
+
def to_hash
|
|
447
|
+
hash = {}
|
|
448
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
449
|
+
value = self.send(attr)
|
|
450
|
+
if value.nil?
|
|
451
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
452
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
hash[param] = _to_hash(value)
|
|
456
|
+
end
|
|
457
|
+
hash
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
# Outputs non-array value in the form of hash
|
|
461
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
462
|
+
# @param [Object] value Any valid value
|
|
463
|
+
# @return [Hash] Returns the value in the form of hash
|
|
464
|
+
def _to_hash(value)
|
|
465
|
+
if value.is_a?(Array)
|
|
466
|
+
value.compact.map { |v| _to_hash(v) }
|
|
467
|
+
elsif value.is_a?(Hash)
|
|
468
|
+
{}.tap do |hash|
|
|
469
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
470
|
+
end
|
|
471
|
+
elsif value.respond_to? :to_hash
|
|
472
|
+
value.to_hash
|
|
473
|
+
else
|
|
474
|
+
value
|
|
475
|
+
end
|
|
476
|
+
end
|
|
477
|
+
end
|
|
478
|
+
end
|
|
@@ -14,15 +14,21 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module TalonOne
|
|
16
16
|
class AnalyticsSKU
|
|
17
|
-
# The ID of the SKU linked to the
|
|
17
|
+
# The ID of the SKU linked to the Application.
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
-
# The SKU linked to the
|
|
20
|
+
# The SKU linked to the Application.
|
|
21
21
|
attr_accessor :sku
|
|
22
22
|
|
|
23
23
|
# Values in UTC for the date the SKU linked to the product was last updated.
|
|
24
24
|
attr_accessor :last_updated
|
|
25
25
|
|
|
26
|
+
# The ID of the catalog that contains the SKU.
|
|
27
|
+
attr_accessor :catalog_id
|
|
28
|
+
|
|
29
|
+
# The ID of the product that the SKU belongs to.
|
|
30
|
+
attr_accessor :product_id
|
|
31
|
+
|
|
26
32
|
attr_accessor :units_sold
|
|
27
33
|
|
|
28
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -31,6 +37,8 @@ module TalonOne
|
|
|
31
37
|
:'id' => :'id',
|
|
32
38
|
:'sku' => :'sku',
|
|
33
39
|
:'last_updated' => :'lastUpdated',
|
|
40
|
+
:'catalog_id' => :'catalogId',
|
|
41
|
+
:'product_id' => :'productId',
|
|
34
42
|
:'units_sold' => :'unitsSold'
|
|
35
43
|
}
|
|
36
44
|
end
|
|
@@ -41,6 +49,8 @@ module TalonOne
|
|
|
41
49
|
:'id' => :'Integer',
|
|
42
50
|
:'sku' => :'String',
|
|
43
51
|
:'last_updated' => :'DateTime',
|
|
52
|
+
:'catalog_id' => :'Integer',
|
|
53
|
+
:'product_id' => :'Integer',
|
|
44
54
|
:'units_sold' => :'AnalyticsDataPointWithTrend'
|
|
45
55
|
}
|
|
46
56
|
end
|
|
@@ -78,6 +88,14 @@ module TalonOne
|
|
|
78
88
|
self.last_updated = attributes[:'last_updated']
|
|
79
89
|
end
|
|
80
90
|
|
|
91
|
+
if attributes.key?(:'catalog_id')
|
|
92
|
+
self.catalog_id = attributes[:'catalog_id']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'product_id')
|
|
96
|
+
self.product_id = attributes[:'product_id']
|
|
97
|
+
end
|
|
98
|
+
|
|
81
99
|
if attributes.key?(:'units_sold')
|
|
82
100
|
self.units_sold = attributes[:'units_sold']
|
|
83
101
|
end
|
|
@@ -114,6 +132,8 @@ module TalonOne
|
|
|
114
132
|
id == o.id &&
|
|
115
133
|
sku == o.sku &&
|
|
116
134
|
last_updated == o.last_updated &&
|
|
135
|
+
catalog_id == o.catalog_id &&
|
|
136
|
+
product_id == o.product_id &&
|
|
117
137
|
units_sold == o.units_sold
|
|
118
138
|
end
|
|
119
139
|
|
|
@@ -126,7 +146,7 @@ module TalonOne
|
|
|
126
146
|
# Calculates hash code according to all attributes.
|
|
127
147
|
# @return [Integer] Hash code
|
|
128
148
|
def hash
|
|
129
|
-
[id, sku, last_updated, units_sold].hash
|
|
149
|
+
[id, sku, last_updated, catalog_id, product_id, units_sold].hash
|
|
130
150
|
end
|
|
131
151
|
|
|
132
152
|
# Builds the object from hash
|
|
@@ -35,7 +35,7 @@ module TalonOne
|
|
|
35
35
|
# The total amount of money spent by the customer **before** discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items.
|
|
36
36
|
attr_accessor :total_sales
|
|
37
37
|
|
|
38
|
-
# **DEPRECATED
|
|
38
|
+
# **DEPRECATED. Always returns `null`.** A list of loyalty programs joined by the customer.
|
|
39
39
|
attr_accessor :loyalty_memberships
|
|
40
40
|
|
|
41
41
|
# The audiences the customer belongs to.
|