talon_one 3.0.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (642) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +9 -6
  3. data/README.md +150 -51
  4. data/docs/AccountAnalytics.md +3 -1
  5. data/docs/AccountDashboardStatistic.md +0 -2
  6. data/docs/AccountDashboardStatisticCampaigns.md +4 -2
  7. data/docs/Achievement.md +39 -0
  8. data/docs/AchievementAdditionalProperties.md +23 -0
  9. data/docs/AchievementProgress.md +35 -0
  10. data/docs/AddItemCatalogAction.md +3 -1
  11. data/docs/AddLoyaltyPoints.md +2 -2
  12. data/docs/AddLoyaltyPointsEffectProps.md +1 -1
  13. data/docs/AddToAudienceEffectProps.md +23 -0
  14. data/docs/AdditionalCampaignProperties.md +59 -0
  15. data/docs/Application.md +3 -5
  16. data/docs/ApplicationAPIKey.md +6 -2
  17. data/docs/ApplicationAnalyticsDataPoint.md +31 -0
  18. data/docs/ApplicationAnalyticsDataPointAvgItemsPerSession.md +19 -0
  19. data/docs/ApplicationAnalyticsDataPointAvgSessionValue.md +19 -0
  20. data/docs/ApplicationAnalyticsDataPointSessionsCount.md +19 -0
  21. data/docs/ApplicationAnalyticsDataPointTotalRevenue.md +19 -0
  22. data/docs/ApplicationCampaignAnalytics.md +45 -0
  23. data/docs/ApplicationCampaignAnalyticsAvgItemsPerSession.md +21 -0
  24. data/docs/ApplicationCampaignAnalyticsAvgSessionValue.md +21 -0
  25. data/docs/ApplicationCampaignAnalyticsCouponsCount.md +19 -0
  26. data/docs/ApplicationCampaignAnalyticsSessionsCount.md +21 -0
  27. data/docs/ApplicationCampaignAnalyticsTotalDiscounts.md +19 -0
  28. data/docs/ApplicationCampaignAnalyticsTotalRevenue.md +21 -0
  29. data/docs/ApplicationCustomer.md +2 -2
  30. data/docs/ApplicationEvent.md +4 -0
  31. data/docs/ApplicationNotification.md +1 -1
  32. data/docs/ApplicationSession.md +5 -3
  33. data/docs/ApplicationStoreEntity.md +17 -0
  34. data/docs/Audience.md +1 -1
  35. data/docs/AudienceAnalytics.md +1 -1
  36. data/docs/AudienceCustomer.md +2 -2
  37. data/docs/BaseCampaign.md +45 -0
  38. data/docs/BaseLoyaltyProgram.md +9 -1
  39. data/docs/BaseNotification.md +5 -1
  40. data/docs/BaseNotificationEntity.md +3 -1
  41. data/docs/BaseNotificationWebhook.md +3 -1
  42. data/docs/BulkOperationOnCampaigns.md +19 -0
  43. data/docs/Campaign.md +25 -17
  44. data/docs/CampaignBudget.md +21 -0
  45. data/docs/CampaignCopy.md +3 -1
  46. data/docs/CampaignCreatedNotification.md +2 -2
  47. data/docs/CampaignEvaluationGroup.md +31 -0
  48. data/docs/CampaignEvaluationPosition.md +21 -0
  49. data/docs/CampaignEvaluationTreeChangedNotification.md +21 -0
  50. data/docs/CampaignGroup.md +6 -6
  51. data/docs/CampaignNotificationPolicy.md +17 -0
  52. data/docs/CampaignSet.md +3 -5
  53. data/docs/CampaignSetBranchNode.md +13 -3
  54. data/docs/CampaignTemplate.md +2 -0
  55. data/docs/CardExpiringPointsNotificationPolicy.md +21 -0
  56. data/docs/CardExpiringPointsNotificationTrigger.md +19 -0
  57. data/docs/CardLedgerPointsEntryIntegrationAPI.md +35 -0
  58. data/docs/CartItem.md +4 -2
  59. data/docs/CatalogItem.md +3 -1
  60. data/docs/ChangeLoyaltyTierLevelEffectProps.md +27 -0
  61. data/docs/Coupon.md +4 -2
  62. data/docs/CouponCreationJob.md +1 -1
  63. data/docs/CouponsNotificationPolicy.md +3 -1
  64. data/docs/CreateAchievement.md +27 -0
  65. data/docs/CreateApplicationAPIKey.md +7 -3
  66. data/docs/CreateTemplateCampaign.md +6 -2
  67. data/docs/CustomEffectProps.md +1 -1
  68. data/docs/CustomerInventory.md +3 -1
  69. data/docs/CustomerProfile.md +2 -2
  70. data/docs/CustomerProfileAudienceRequestItem.md +1 -1
  71. data/docs/CustomerProfileIntegrationResponseV2.md +33 -0
  72. data/docs/CustomerSession.md +1 -1
  73. data/docs/CustomerSessionV2.md +8 -6
  74. data/docs/DeactivateUserRequest.md +17 -0
  75. data/docs/DeleteUserRequest.md +17 -0
  76. data/docs/Effect.md +2 -0
  77. data/docs/EffectEntity.md +3 -1
  78. data/docs/EmailEntity.md +1 -1
  79. data/docs/Environment.md +2 -0
  80. data/docs/Event.md +2 -0
  81. data/docs/EventV2.md +4 -2
  82. data/docs/ExpiringCouponsNotificationPolicy.md +21 -0
  83. data/docs/ExpiringCouponsNotificationTrigger.md +19 -0
  84. data/docs/ExpiringPointsNotificationPolicy.md +4 -2
  85. data/docs/FuncArgDef.md +1 -1
  86. data/docs/GetIntegrationCouponRequest.md +19 -0
  87. data/docs/IdentifiableEntity.md +17 -0
  88. data/docs/IncreaseAchievementProgressEffectProps.md +29 -0
  89. data/docs/InlineResponse20010.md +1 -1
  90. data/docs/InlineResponse20011.md +1 -1
  91. data/docs/InlineResponse20012.md +1 -1
  92. data/docs/InlineResponse20013.md +3 -3
  93. data/docs/InlineResponse20014.md +2 -2
  94. data/docs/InlineResponse20015.md +3 -5
  95. data/docs/InlineResponse20016.md +3 -3
  96. data/docs/InlineResponse20017.md +1 -1
  97. data/docs/InlineResponse20018.md +1 -1
  98. data/docs/InlineResponse20019.md +2 -2
  99. data/docs/InlineResponse20020.md +1 -1
  100. data/docs/InlineResponse20021.md +2 -4
  101. data/docs/InlineResponse20022.md +3 -3
  102. data/docs/InlineResponse20023.md +1 -1
  103. data/docs/InlineResponse20024.md +3 -1
  104. data/docs/InlineResponse20025.md +1 -1
  105. data/docs/InlineResponse20026.md +2 -2
  106. data/docs/InlineResponse20027.md +2 -2
  107. data/docs/InlineResponse20028.md +3 -3
  108. data/docs/InlineResponse20029.md +3 -5
  109. data/docs/InlineResponse2003.md +3 -3
  110. data/docs/InlineResponse20030.md +1 -1
  111. data/docs/InlineResponse20031.md +3 -3
  112. data/docs/InlineResponse20032.md +3 -3
  113. data/docs/InlineResponse20033.md +5 -3
  114. data/docs/InlineResponse20034.md +1 -1
  115. data/docs/InlineResponse20035.md +5 -3
  116. data/docs/InlineResponse20036.md +1 -1
  117. data/docs/InlineResponse20037.md +1 -1
  118. data/docs/InlineResponse20038.md +2 -4
  119. data/docs/InlineResponse20039.md +1 -1
  120. data/docs/InlineResponse2004.md +3 -3
  121. data/docs/InlineResponse20040.md +1 -1
  122. data/docs/InlineResponse20041.md +19 -0
  123. data/docs/InlineResponse20042.md +21 -0
  124. data/docs/InlineResponse20043.md +19 -0
  125. data/docs/InlineResponse20044.md +19 -0
  126. data/docs/InlineResponse20045.md +21 -0
  127. data/docs/InlineResponse20046.md +19 -0
  128. data/docs/InlineResponse20047.md +19 -0
  129. data/docs/InlineResponse2005.md +1 -1
  130. data/docs/InlineResponse2006.md +1 -1
  131. data/docs/InlineResponse2007.md +1 -1
  132. data/docs/InlineResponse2008.md +2 -2
  133. data/docs/InlineResponse2009.md +1 -1
  134. data/docs/IntegrationApi.md +204 -117
  135. data/docs/IntegrationCoupon.md +3 -1
  136. data/docs/IntegrationEvent.md +2 -0
  137. data/docs/IntegrationEventV2Request.md +4 -2
  138. data/docs/IntegrationRequest.md +1 -1
  139. data/docs/IntegrationStoreEntity.md +17 -0
  140. data/docs/InventoryCoupon.md +4 -2
  141. data/docs/LedgerPointsEntryIntegrationAPI.md +33 -0
  142. data/docs/LoginParams.md +1 -1
  143. data/docs/LoyaltyLedgerTransactions.md +1 -1
  144. data/docs/LoyaltyProgram.md +15 -1
  145. data/docs/LoyaltyProgramLedgers.md +2 -0
  146. data/docs/LoyaltyProgramSubledgers.md +19 -0
  147. data/docs/LoyaltyProgramTransaction.md +4 -2
  148. data/docs/ManagementApi.md +3313 -1620
  149. data/docs/MessageLogEntries.md +19 -0
  150. data/docs/MessageLogEntry.md +39 -0
  151. data/docs/MessageLogRequest.md +19 -0
  152. data/docs/MessageLogResponse.md +21 -0
  153. data/docs/NewAccountSignUp.md +1 -1
  154. data/docs/NewApplication.md +6 -10
  155. data/docs/NewApplicationAPIKey.md +6 -2
  156. data/docs/NewAudience.md +1 -1
  157. data/docs/NewBaseNotification.md +2 -0
  158. data/docs/NewCampaign.md +8 -2
  159. data/docs/NewCampaignEvaluationGroup.md +27 -0
  160. data/docs/NewCampaignGroup.md +6 -6
  161. data/docs/NewCampaignTemplate.md +3 -1
  162. data/docs/NewCoupons.md +4 -2
  163. data/docs/NewCustomerSession.md +1 -1
  164. data/docs/NewCustomerSessionV2.md +5 -3
  165. data/docs/NewEvent.md +2 -0
  166. data/docs/NewInternalAudience.md +1 -1
  167. data/docs/NewInvitation.md +8 -6
  168. data/docs/NewInviteEmail.md +4 -4
  169. data/docs/NewLoyaltyProgram.md +8 -0
  170. data/docs/NewNotificationTest.md +29 -0
  171. data/docs/NewNotificationWebhook.md +3 -1
  172. data/docs/NewPicklist.md +1 -1
  173. data/docs/NewRoleV2.md +23 -0
  174. data/docs/NewStore.md +23 -0
  175. data/docs/NewUser.md +1 -1
  176. data/docs/NotificationActivation.md +17 -0
  177. data/docs/NotificationListItem.md +23 -0
  178. data/docs/NotificationTest.md +27 -0
  179. data/docs/OneTimeCode.md +23 -0
  180. data/docs/OutgoingIntegrationCleverTapPolicy.md +21 -0
  181. data/docs/OutgoingIntegrationConfiguration.md +1 -1
  182. data/docs/OutgoingIntegrationIterablePolicy.md +19 -0
  183. data/docs/OutgoingIntegrationMoEngagePolicy.md +23 -0
  184. data/docs/OutgoingIntegrationTemplate.md +33 -0
  185. data/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md +35 -0
  186. data/docs/OutgoingIntegrationTemplates.md +17 -0
  187. data/docs/OutgoingIntegrationType.md +1 -1
  188. data/docs/PatchItemCatalogAction.md +2 -0
  189. data/docs/PendingPointsNotificationPolicy.md +19 -0
  190. data/docs/Picklist.md +1 -1
  191. data/docs/Product.md +17 -0
  192. data/docs/RemoveFromAudienceEffectProps.md +23 -0
  193. data/docs/ReturnedCartItem.md +1 -1
  194. data/docs/Role.md +1 -1
  195. data/docs/RoleAssign.md +2 -2
  196. data/docs/RoleV2.md +12 -6
  197. data/docs/RoleV2ApplicationDetails.md +6 -4
  198. data/docs/RoleV2Base.md +23 -0
  199. data/docs/RoleV2PermissionSet.md +3 -3
  200. data/docs/RoleV2Permissions.md +3 -3
  201. data/docs/RoleV2RolesGroup.md +21 -0
  202. data/docs/RollbackAddedLoyaltyPointsEffectProps.md +1 -1
  203. data/docs/RollbackDiscountEffectProps.md +1 -1
  204. data/docs/SSOConfig.md +17 -0
  205. data/docs/SamlConnectionInternal.md +19 -0
  206. data/docs/SamlLoginEndpoint.md +4 -2
  207. data/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md +1 -1
  208. data/docs/SetDiscountPerItemEffectProps.md +6 -2
  209. data/docs/Store.md +33 -0
  210. data/docs/TemplateArgDef.md +1 -1
  211. data/docs/Tier.md +5 -1
  212. data/docs/TierDowngradeNotificationPolicy.md +19 -0
  213. data/docs/TierUpgradeNotificationPolicy.md +19 -0
  214. data/docs/TierWillDowngradeNotificationPolicy.md +21 -0
  215. data/docs/TierWillDowngradeNotificationTrigger.md +19 -0
  216. data/docs/TimePoint.md +27 -0
  217. data/docs/TrackEventV2Response.md +33 -0
  218. data/docs/TwoFAConfig.md +19 -0
  219. data/docs/UpdateAchievement.md +27 -0
  220. data/docs/UpdateApplication.md +4 -6
  221. data/docs/UpdateApplicationAPIKey.md +17 -0
  222. data/docs/UpdateCampaign.md +9 -3
  223. data/docs/UpdateCampaignEvaluationGroup.md +27 -0
  224. data/docs/UpdateCampaignGroup.md +6 -6
  225. data/docs/UpdateCampaignTemplate.md +3 -1
  226. data/docs/UpdateCoupon.md +4 -2
  227. data/docs/UpdateCouponBatch.md +2 -2
  228. data/docs/UpdateLoyaltyProgram.md +8 -0
  229. data/docs/UpdatePicklist.md +1 -1
  230. data/docs/UpdateStore.md +21 -0
  231. data/docs/UpdateUser.md +8 -6
  232. data/docs/User.md +19 -13
  233. data/docs/WebhookWithOutgoingIntegrationDetails.md +45 -0
  234. data/lib/talon_one/api/integration_api.rb +283 -136
  235. data/lib/talon_one/api/management_api.rb +2787 -890
  236. data/lib/talon_one/api_client.rb +2 -1
  237. data/lib/talon_one/api_error.rb +8 -1
  238. data/lib/talon_one/models/account_additional_cost.rb +3 -3
  239. data/lib/talon_one/models/account_analytics.rb +19 -4
  240. data/lib/talon_one/models/account_dashboard_statistic.rb +1 -13
  241. data/lib/talon_one/models/account_dashboard_statistic_campaigns.rb +20 -5
  242. data/lib/talon_one/models/achievement.rb +406 -0
  243. data/lib/talon_one/models/achievement_additional_properties.rb +252 -0
  244. data/lib/talon_one/models/achievement_progress.rb +410 -0
  245. data/lib/talon_one/models/add_item_catalog_action.rb +12 -3
  246. data/lib/talon_one/models/add_loyalty_points.rb +2 -2
  247. data/lib/talon_one/models/add_loyalty_points_effect_props.rb +1 -1
  248. data/lib/talon_one/models/add_to_audience_effect_props.rb +238 -0
  249. data/lib/talon_one/models/additional_campaign_properties.rb +463 -0
  250. data/lib/talon_one/models/application.rb +12 -50
  251. data/lib/talon_one/models/application_analytics_data_point.rb +273 -0
  252. data/lib/talon_one/models/application_analytics_data_point_avg_items_per_session.rb +216 -0
  253. data/lib/talon_one/models/application_analytics_data_point_avg_session_value.rb +216 -0
  254. data/lib/talon_one/models/application_analytics_data_point_sessions_count.rb +216 -0
  255. data/lib/talon_one/models/application_analytics_data_point_total_revenue.rb +216 -0
  256. data/lib/talon_one/models/application_api_key.rb +37 -5
  257. data/lib/talon_one/models/application_campaign_analytics.rb +379 -0
  258. data/lib/talon_one/models/application_campaign_analytics_avg_items_per_session.rb +225 -0
  259. data/lib/talon_one/models/application_campaign_analytics_avg_session_value.rb +225 -0
  260. data/lib/talon_one/models/application_campaign_analytics_coupons_count.rb +216 -0
  261. data/lib/talon_one/models/application_campaign_analytics_sessions_count.rb +225 -0
  262. data/lib/talon_one/models/application_campaign_analytics_total_discounts.rb +216 -0
  263. data/lib/talon_one/models/application_campaign_analytics_total_revenue.rb +225 -0
  264. data/lib/talon_one/models/application_customer.rb +2 -2
  265. data/lib/talon_one/models/application_event.rb +45 -1
  266. data/lib/talon_one/models/application_notification.rb +1 -1
  267. data/lib/talon_one/models/application_session.rb +51 -17
  268. data/lib/talon_one/models/application_store_entity.rb +207 -0
  269. data/lib/talon_one/models/attribute.rb +2 -2
  270. data/lib/talon_one/models/audience_analytics.rb +2 -2
  271. data/lib/talon_one/models/audience_customer.rb +2 -2
  272. data/lib/talon_one/models/base_campaign.rb +449 -0
  273. data/lib/talon_one/models/base_loyalty_program.rb +102 -4
  274. data/lib/talon_one/models/base_notification.rb +65 -4
  275. data/lib/talon_one/models/base_notification_entity.rb +16 -4
  276. data/lib/talon_one/models/base_notification_webhook.rb +16 -4
  277. data/lib/talon_one/models/bulk_operation_on_campaigns.rb +263 -0
  278. data/lib/talon_one/models/campaign.rb +105 -20
  279. data/lib/talon_one/models/campaign_budget.rb +280 -0
  280. data/lib/talon_one/models/campaign_copy.rb +14 -4
  281. data/lib/talon_one/models/campaign_created_notification.rb +10 -10
  282. data/lib/talon_one/models/campaign_evaluation_group.rb +378 -0
  283. data/lib/talon_one/models/campaign_evaluation_position.rb +243 -0
  284. data/lib/talon_one/models/campaign_evaluation_tree_changed_notification.rb +236 -0
  285. data/lib/talon_one/models/campaign_group.rb +4 -4
  286. data/lib/talon_one/models/campaign_notification_policy.rb +231 -0
  287. data/lib/talon_one/models/campaign_set.rb +16 -31
  288. data/lib/talon_one/models/campaign_set_branch_node.rb +100 -6
  289. data/lib/talon_one/models/campaign_template.rb +30 -1
  290. data/lib/talon_one/models/card_expiring_points_notification_policy.rb +259 -0
  291. data/lib/talon_one/models/card_expiring_points_notification_trigger.rb +280 -0
  292. data/lib/talon_one/models/card_ledger_points_entry_integration_api.rb +410 -0
  293. data/lib/talon_one/models/cart_item.rb +12 -3
  294. data/lib/talon_one/models/catalog_item.rb +13 -4
  295. data/lib/talon_one/models/change_loyalty_tier_level_effect_props.rb +278 -0
  296. data/lib/talon_one/models/coupon.rb +15 -5
  297. data/lib/talon_one/models/coupon_creation_job.rb +1 -1
  298. data/lib/talon_one/models/coupons_notification_policy.rb +16 -4
  299. data/lib/talon_one/models/create_achievement.rb +320 -0
  300. data/lib/talon_one/models/create_application_api_key.rb +40 -8
  301. data/lib/talon_one/models/create_template_campaign.rb +27 -5
  302. data/lib/talon_one/models/custom_effect_props.rb +1 -1
  303. data/lib/talon_one/models/customer_inventory.rb +15 -4
  304. data/lib/talon_one/models/customer_profile.rb +2 -2
  305. data/lib/talon_one/models/customer_profile_audience_request_item.rb +1 -1
  306. data/lib/talon_one/models/customer_profile_integration_response_v2.rb +307 -0
  307. data/lib/talon_one/models/customer_session.rb +1 -1
  308. data/lib/talon_one/models/customer_session_v2.rb +41 -7
  309. data/lib/talon_one/models/deactivate_user_request.rb +213 -0
  310. data/lib/talon_one/models/delete_user_request.rb +213 -0
  311. data/lib/talon_one/models/effect.rb +11 -1
  312. data/lib/talon_one/models/effect_entity.rb +14 -4
  313. data/lib/talon_one/models/email_entity.rb +1 -1
  314. data/lib/talon_one/models/environment.rb +13 -1
  315. data/lib/talon_one/models/event.rb +35 -1
  316. data/lib/talon_one/models/event_v2.rb +37 -3
  317. data/lib/talon_one/models/expiring_coupons_notification_policy.rb +259 -0
  318. data/lib/talon_one/models/expiring_coupons_notification_trigger.rb +280 -0
  319. data/lib/talon_one/models/expiring_points_notification_policy.rb +16 -4
  320. data/lib/talon_one/models/func_arg_def.rb +0 -5
  321. data/lib/talon_one/models/get_integration_coupon_request.rb +257 -0
  322. data/lib/talon_one/models/identifiable_entity.rb +212 -0
  323. data/lib/talon_one/models/increase_achievement_progress_effect_props.rb +298 -0
  324. data/lib/talon_one/models/inline_response20010.rb +1 -1
  325. data/lib/talon_one/models/inline_response20011.rb +1 -1
  326. data/lib/talon_one/models/inline_response20012.rb +1 -1
  327. data/lib/talon_one/models/inline_response20013.rb +11 -11
  328. data/lib/talon_one/models/inline_response20014.rb +1 -3
  329. data/lib/talon_one/models/inline_response20015.rb +7 -11
  330. data/lib/talon_one/models/inline_response20016.rb +3 -1
  331. data/lib/talon_one/models/inline_response20017.rb +1 -1
  332. data/lib/talon_one/models/inline_response20018.rb +1 -1
  333. data/lib/talon_one/models/inline_response20019.rb +10 -10
  334. data/lib/talon_one/models/inline_response20020.rb +1 -1
  335. data/lib/talon_one/models/inline_response20021.rb +7 -11
  336. data/lib/talon_one/models/inline_response20022.rb +10 -10
  337. data/lib/talon_one/models/inline_response20023.rb +1 -1
  338. data/lib/talon_one/models/inline_response20024.rb +10 -6
  339. data/lib/talon_one/models/inline_response20025.rb +1 -1
  340. data/lib/talon_one/models/inline_response20026.rb +6 -1
  341. data/lib/talon_one/models/inline_response20027.rb +1 -6
  342. data/lib/talon_one/models/inline_response20028.rb +11 -11
  343. data/lib/talon_one/models/inline_response20029.rb +7 -11
  344. data/lib/talon_one/models/inline_response2003.rb +11 -11
  345. data/lib/talon_one/models/inline_response20030.rb +1 -1
  346. data/lib/talon_one/models/inline_response20031.rb +8 -13
  347. data/lib/talon_one/models/inline_response20032.rb +8 -13
  348. data/lib/talon_one/models/inline_response20033.rb +11 -7
  349. data/lib/talon_one/models/inline_response20034.rb +1 -1
  350. data/lib/talon_one/models/inline_response20035.rb +11 -7
  351. data/lib/talon_one/models/inline_response20036.rb +1 -1
  352. data/lib/talon_one/models/inline_response20037.rb +1 -1
  353. data/lib/talon_one/models/inline_response20038.rb +7 -11
  354. data/lib/talon_one/models/inline_response20039.rb +1 -1
  355. data/lib/talon_one/models/inline_response2004.rb +11 -11
  356. data/lib/talon_one/models/inline_response20040.rb +1 -1
  357. data/lib/talon_one/models/inline_response20041.rb +227 -0
  358. data/lib/talon_one/models/inline_response20042.rb +231 -0
  359. data/lib/talon_one/models/inline_response20043.rb +227 -0
  360. data/lib/talon_one/models/inline_response20044.rb +227 -0
  361. data/lib/talon_one/models/inline_response20045.rb +231 -0
  362. data/lib/talon_one/models/inline_response20046.rb +222 -0
  363. data/lib/talon_one/models/inline_response20047.rb +227 -0
  364. data/lib/talon_one/models/inline_response2005.rb +1 -1
  365. data/lib/talon_one/models/inline_response2006.rb +1 -1
  366. data/lib/talon_one/models/inline_response2007.rb +1 -1
  367. data/lib/talon_one/models/inline_response2008.rb +10 -10
  368. data/lib/talon_one/models/inline_response2009.rb +1 -1
  369. data/lib/talon_one/models/integration_coupon.rb +12 -2
  370. data/lib/talon_one/models/integration_event.rb +35 -1
  371. data/lib/talon_one/models/integration_event_v2_request.rb +37 -3
  372. data/lib/talon_one/models/integration_request.rb +1 -1
  373. data/lib/talon_one/models/integration_store_entity.rb +231 -0
  374. data/lib/talon_one/models/inventory_coupon.rb +13 -3
  375. data/lib/talon_one/models/ledger_points_entry_integration_api.rb +400 -0
  376. data/lib/talon_one/models/login_params.rb +1 -1
  377. data/lib/talon_one/models/loyalty.rb +1 -1
  378. data/lib/talon_one/models/loyalty_ledger_transactions.rb +1 -1
  379. data/lib/talon_one/models/loyalty_program.rb +136 -4
  380. data/lib/talon_one/models/loyalty_program_ledgers.rb +12 -2
  381. data/lib/talon_one/models/loyalty_program_subledgers.rb +230 -0
  382. data/lib/talon_one/models/loyalty_program_transaction.rb +13 -3
  383. data/lib/talon_one/models/message_log_entries.rb +241 -0
  384. data/lib/talon_one/models/message_log_entry.rb +395 -0
  385. data/lib/talon_one/models/message_log_request.rb +249 -0
  386. data/lib/talon_one/models/message_log_response.rb +264 -0
  387. data/lib/talon_one/models/new_account_sign_up.rb +1 -1
  388. data/lib/talon_one/models/new_additional_cost.rb +3 -3
  389. data/lib/talon_one/models/new_application.rb +2 -51
  390. data/lib/talon_one/models/new_application_api_key.rb +37 -5
  391. data/lib/talon_one/models/new_attribute.rb +2 -2
  392. data/lib/talon_one/models/new_base_notification.rb +13 -1
  393. data/lib/talon_one/models/new_campaign.rb +52 -5
  394. data/lib/talon_one/models/new_campaign_evaluation_group.rb +347 -0
  395. data/lib/talon_one/models/new_campaign_group.rb +4 -4
  396. data/lib/talon_one/models/new_campaign_template.rb +33 -4
  397. data/lib/talon_one/models/new_coupons.rb +15 -5
  398. data/lib/talon_one/models/new_customer_session.rb +1 -1
  399. data/lib/talon_one/models/new_customer_session_v2.rb +38 -4
  400. data/lib/talon_one/models/new_event.rb +35 -1
  401. data/lib/talon_one/models/new_invitation.rb +24 -18
  402. data/lib/talon_one/models/new_invite_email.rb +2 -38
  403. data/lib/talon_one/models/new_loyalty_program.rb +99 -1
  404. data/lib/talon_one/models/new_notification_test.rb +327 -0
  405. data/lib/talon_one/models/new_notification_webhook.rb +16 -4
  406. data/lib/talon_one/models/new_picklist.rb +1 -1
  407. data/lib/talon_one/models/new_role_v2.rb +249 -0
  408. data/lib/talon_one/models/new_store.rb +309 -0
  409. data/lib/talon_one/models/new_user.rb +1 -1
  410. data/lib/talon_one/models/notification_activation.rb +212 -0
  411. data/lib/talon_one/models/notification_list_item.rb +257 -0
  412. data/lib/talon_one/models/notification_test.rb +227 -0
  413. data/lib/talon_one/models/one_time_code.rb +252 -0
  414. data/lib/talon_one/models/outgoing_integration_clever_tap_policy.rb +242 -0
  415. data/lib/talon_one/models/outgoing_integration_configuration.rb +1 -0
  416. data/lib/talon_one/models/outgoing_integration_iterable_policy.rb +227 -0
  417. data/lib/talon_one/models/outgoing_integration_mo_engage_policy.rb +257 -0
  418. data/lib/talon_one/models/outgoing_integration_template.rb +409 -0
  419. data/lib/talon_one/models/outgoing_integration_template_with_configuration_details.rb +425 -0
  420. data/lib/talon_one/models/outgoing_integration_templates.rb +209 -0
  421. data/lib/talon_one/models/patch_item_catalog_action.rb +11 -2
  422. data/lib/talon_one/models/pending_points_notification_policy.rb +243 -0
  423. data/lib/talon_one/models/picklist.rb +1 -1
  424. data/lib/talon_one/models/product.rb +232 -0
  425. data/lib/talon_one/models/remove_from_audience_effect_props.rb +238 -0
  426. data/lib/talon_one/models/returned_cart_item.rb +1 -1
  427. data/lib/talon_one/models/role.rb +1 -1
  428. data/lib/talon_one/models/role_assign.rb +2 -2
  429. data/lib/talon_one/models/role_v2.rb +63 -12
  430. data/lib/talon_one/models/role_v2_application_details.rb +17 -7
  431. data/lib/talon_one/models/role_v2_base.rb +238 -0
  432. data/lib/talon_one/models/role_v2_permission_set.rb +12 -11
  433. data/lib/talon_one/models/role_v2_permissions.rb +2 -2
  434. data/lib/talon_one/models/role_v2_roles_group.rb +233 -0
  435. data/lib/talon_one/models/rollback_added_loyalty_points_effect_props.rb +1 -1
  436. data/lib/talon_one/models/rollback_discount_effect_props.rb +1 -1
  437. data/lib/talon_one/models/saml_connection_internal.rb +265 -0
  438. data/lib/talon_one/models/saml_login_endpoint.rb +17 -2
  439. data/lib/talon_one/models/set_discount_per_additional_cost_per_item_effect_props.rb +1 -1
  440. data/lib/talon_one/models/set_discount_per_item_effect_props.rb +25 -5
  441. data/lib/talon_one/models/sso_config.rb +212 -0
  442. data/lib/talon_one/models/store.rb +381 -0
  443. data/lib/talon_one/models/talang_attribute.rb +2 -2
  444. data/lib/talon_one/models/template_arg_def.rb +0 -5
  445. data/lib/talon_one/models/tier.rb +58 -4
  446. data/lib/talon_one/models/tier_downgrade_notification_policy.rb +243 -0
  447. data/lib/talon_one/models/tier_upgrade_notification_policy.rb +243 -0
  448. data/lib/talon_one/models/tier_will_downgrade_notification_policy.rb +259 -0
  449. data/lib/talon_one/models/tier_will_downgrade_notification_trigger.rb +261 -0
  450. data/lib/talon_one/models/time_point.rb +345 -0
  451. data/lib/talon_one/models/track_event_v2_response.rb +307 -0
  452. data/lib/talon_one/models/two_fa_config.rb +222 -0
  453. data/lib/talon_one/models/update_achievement.rb +291 -0
  454. data/lib/talon_one/models/update_application.rb +15 -53
  455. data/lib/talon_one/models/update_application_api_key.rb +212 -0
  456. data/lib/talon_one/models/update_campaign.rb +52 -6
  457. data/lib/talon_one/models/update_campaign_evaluation_group.rb +348 -0
  458. data/lib/talon_one/models/update_campaign_group.rb +4 -4
  459. data/lib/talon_one/models/update_campaign_template.rb +28 -4
  460. data/lib/talon_one/models/update_coupon.rb +15 -5
  461. data/lib/talon_one/models/update_coupon_batch.rb +2 -2
  462. data/lib/talon_one/models/update_loyalty_program.rb +99 -1
  463. data/lib/talon_one/models/update_picklist.rb +1 -1
  464. data/lib/talon_one/models/update_store.rb +265 -0
  465. data/lib/talon_one/models/update_user.rb +25 -14
  466. data/lib/talon_one/models/user.rb +73 -42
  467. data/lib/talon_one/models/webhook_with_outgoing_integration_details.rb +449 -0
  468. data/lib/talon_one/version.rb +1 -1
  469. data/lib/talon_one.rb +86 -16
  470. data/spec/api/integration_api_spec.rb +74 -47
  471. data/spec/api/management_api_spec.rb +669 -299
  472. data/spec/models/account_analytics_spec.rb +6 -0
  473. data/spec/models/account_dashboard_statistic_campaigns_spec.rb +6 -0
  474. data/spec/models/account_dashboard_statistic_spec.rb +0 -6
  475. data/spec/models/achievement_additional_properties_spec.rb +59 -0
  476. data/spec/models/achievement_progress_spec.rb +99 -0
  477. data/spec/models/achievement_spec.rb +107 -0
  478. data/spec/models/add_item_catalog_action_spec.rb +6 -0
  479. data/spec/models/add_to_audience_effect_props_spec.rb +59 -0
  480. data/spec/models/additional_campaign_properties_spec.rb +171 -0
  481. data/spec/models/application_analytics_data_point_avg_items_per_session_spec.rb +47 -0
  482. data/spec/models/application_analytics_data_point_avg_session_value_spec.rb +47 -0
  483. data/spec/models/application_analytics_data_point_sessions_count_spec.rb +47 -0
  484. data/spec/models/application_analytics_data_point_spec.rb +83 -0
  485. data/spec/models/application_analytics_data_point_total_revenue_spec.rb +47 -0
  486. data/spec/models/application_api_key_spec.rb +17 -1
  487. data/spec/models/application_campaign_analytics_avg_items_per_session_spec.rb +53 -0
  488. data/spec/models/application_campaign_analytics_avg_session_value_spec.rb +53 -0
  489. data/spec/models/application_campaign_analytics_coupons_count_spec.rb +47 -0
  490. data/spec/models/application_campaign_analytics_sessions_count_spec.rb +53 -0
  491. data/spec/models/application_campaign_analytics_spec.rb +129 -0
  492. data/spec/models/application_campaign_analytics_total_discounts_spec.rb +47 -0
  493. data/spec/models/application_campaign_analytics_total_revenue_spec.rb +53 -0
  494. data/spec/models/application_event_spec.rb +12 -0
  495. data/spec/models/application_session_spec.rb +9 -3
  496. data/spec/models/application_spec.rb +6 -20
  497. data/spec/models/application_store_entity_spec.rb +41 -0
  498. data/spec/models/attribute_spec.rb +1 -1
  499. data/spec/models/base_campaign_spec.rb +137 -0
  500. data/spec/models/base_loyalty_program_spec.rb +36 -0
  501. data/spec/models/base_notification_entity_spec.rb +6 -0
  502. data/spec/models/base_notification_spec.rb +16 -0
  503. data/spec/models/base_notification_webhook_spec.rb +6 -0
  504. data/spec/models/bulk_operation_on_campaigns_spec.rb +51 -0
  505. data/spec/models/campaign_budget_spec.rb +53 -0
  506. data/spec/models/campaign_copy_spec.rb +6 -0
  507. data/spec/models/campaign_created_notification_spec.rb +1 -1
  508. data/spec/models/campaign_evaluation_group_spec.rb +91 -0
  509. data/spec/models/campaign_evaluation_position_spec.rb +53 -0
  510. data/spec/models/campaign_evaluation_tree_changed_notification_spec.rb +53 -0
  511. data/spec/models/campaign_notification_policy_spec.rb +41 -0
  512. data/spec/models/campaign_set_branch_node_spec.rb +38 -0
  513. data/spec/models/campaign_set_spec.rb +2 -8
  514. data/spec/models/campaign_spec.rb +33 -1
  515. data/spec/models/campaign_template_spec.rb +11 -1
  516. data/spec/models/card_expiring_points_notification_policy_spec.rb +53 -0
  517. data/spec/models/card_expiring_points_notification_trigger_spec.rb +51 -0
  518. data/spec/models/card_ledger_points_entry_integration_api_spec.rb +95 -0
  519. data/spec/models/cart_item_spec.rb +6 -0
  520. data/spec/models/catalog_item_spec.rb +6 -0
  521. data/spec/models/change_loyalty_tier_level_effect_props_spec.rb +71 -0
  522. data/spec/models/coupon_spec.rb +6 -0
  523. data/spec/models/coupons_notification_policy_spec.rb +6 -0
  524. data/spec/models/create_achievement_spec.rb +71 -0
  525. data/spec/models/create_application_api_key_spec.rb +17 -1
  526. data/spec/models/create_template_campaign_spec.rb +12 -0
  527. data/spec/models/customer_inventory_spec.rb +6 -0
  528. data/spec/models/customer_profile_integration_response_v2_spec.rb +89 -0
  529. data/spec/models/customer_session_v2_spec.rb +6 -0
  530. data/spec/models/deactivate_user_request_spec.rb +41 -0
  531. data/spec/models/delete_user_request_spec.rb +41 -0
  532. data/spec/models/effect_entity_spec.rb +6 -0
  533. data/spec/models/effect_spec.rb +6 -0
  534. data/spec/models/environment_spec.rb +6 -0
  535. data/spec/models/event_spec.rb +6 -0
  536. data/spec/models/event_v2_spec.rb +6 -0
  537. data/spec/models/expiring_coupons_notification_policy_spec.rb +53 -0
  538. data/spec/models/expiring_coupons_notification_trigger_spec.rb +51 -0
  539. data/spec/models/expiring_points_notification_policy_spec.rb +6 -0
  540. data/spec/models/get_integration_coupon_request_spec.rb +47 -0
  541. data/spec/models/identifiable_entity_spec.rb +41 -0
  542. data/spec/models/increase_achievement_progress_effect_props_spec.rb +77 -0
  543. data/spec/models/inline_response20013_spec.rb +1 -1
  544. data/spec/models/inline_response20015_spec.rb +0 -6
  545. data/spec/models/inline_response20019_spec.rb +1 -1
  546. data/spec/models/inline_response20021_spec.rb +0 -6
  547. data/spec/models/inline_response20022_spec.rb +2 -2
  548. data/spec/models/inline_response20024_spec.rb +6 -0
  549. data/spec/models/inline_response20028_spec.rb +1 -1
  550. data/spec/models/inline_response20029_spec.rb +0 -6
  551. data/spec/models/inline_response20031_spec.rb +1 -1
  552. data/spec/models/inline_response20032_spec.rb +1 -1
  553. data/spec/models/inline_response20033_spec.rb +6 -0
  554. data/spec/models/inline_response20035_spec.rb +6 -0
  555. data/spec/models/inline_response20038_spec.rb +0 -6
  556. data/spec/models/inline_response2003_spec.rb +1 -1
  557. data/spec/models/inline_response20041_spec.rb +47 -0
  558. data/spec/models/inline_response20042_spec.rb +53 -0
  559. data/spec/models/inline_response20043_spec.rb +47 -0
  560. data/spec/models/inline_response20044_spec.rb +47 -0
  561. data/spec/models/inline_response20045_spec.rb +53 -0
  562. data/spec/models/inline_response20046_spec.rb +47 -0
  563. data/spec/models/inline_response20047_spec.rb +47 -0
  564. data/spec/models/inline_response2004_spec.rb +1 -1
  565. data/spec/models/inline_response2008_spec.rb +1 -1
  566. data/spec/models/integration_coupon_spec.rb +6 -0
  567. data/spec/models/integration_event_spec.rb +6 -0
  568. data/spec/models/integration_event_v2_request_spec.rb +6 -0
  569. data/spec/models/integration_store_entity_spec.rb +41 -0
  570. data/spec/models/inventory_coupon_spec.rb +6 -0
  571. data/spec/models/ledger_points_entry_integration_api_spec.rb +89 -0
  572. data/spec/models/loyalty_program_ledgers_spec.rb +6 -0
  573. data/spec/models/loyalty_program_spec.rb +54 -0
  574. data/spec/models/loyalty_program_subledgers_spec.rb +47 -0
  575. data/spec/models/loyalty_program_transaction_spec.rb +6 -0
  576. data/spec/models/message_log_entries_spec.rb +47 -0
  577. data/spec/models/message_log_entry_spec.rb +111 -0
  578. data/spec/models/message_log_request_spec.rb +47 -0
  579. data/spec/models/message_log_response_spec.rb +53 -0
  580. data/spec/models/new_application_api_key_spec.rb +17 -1
  581. data/spec/models/new_application_spec.rb +0 -20
  582. data/spec/models/new_attribute_spec.rb +1 -1
  583. data/spec/models/new_base_notification_spec.rb +6 -0
  584. data/spec/models/new_campaign_evaluation_group_spec.rb +79 -0
  585. data/spec/models/new_campaign_spec.rb +23 -1
  586. data/spec/models/new_campaign_template_spec.rb +11 -1
  587. data/spec/models/new_coupons_spec.rb +6 -0
  588. data/spec/models/new_customer_session_v2_spec.rb +6 -0
  589. data/spec/models/new_event_spec.rb +6 -0
  590. data/spec/models/new_invitation_spec.rb +7 -1
  591. data/spec/models/new_loyalty_program_spec.rb +36 -0
  592. data/spec/models/new_notification_test_spec.rb +79 -0
  593. data/spec/models/new_notification_webhook_spec.rb +6 -0
  594. data/spec/models/new_role_v2_spec.rb +59 -0
  595. data/spec/models/new_store_spec.rb +59 -0
  596. data/spec/models/notification_activation_spec.rb +41 -0
  597. data/spec/models/notification_list_item_spec.rb +59 -0
  598. data/spec/models/notification_test_spec.rb +47 -0
  599. data/spec/models/one_time_code_spec.rb +59 -0
  600. data/spec/models/outgoing_integration_clever_tap_policy_spec.rb +53 -0
  601. data/spec/models/outgoing_integration_iterable_policy_spec.rb +47 -0
  602. data/spec/models/outgoing_integration_mo_engage_policy_spec.rb +59 -0
  603. data/spec/models/outgoing_integration_template_spec.rb +87 -0
  604. data/spec/models/outgoing_integration_template_with_configuration_details_spec.rb +93 -0
  605. data/spec/models/outgoing_integration_templates_spec.rb +41 -0
  606. data/spec/models/patch_item_catalog_action_spec.rb +6 -0
  607. data/spec/models/pending_points_notification_policy_spec.rb +47 -0
  608. data/spec/models/product_spec.rb +41 -0
  609. data/spec/models/remove_from_audience_effect_props_spec.rb +59 -0
  610. data/spec/models/role_v2_application_details_spec.rb +6 -0
  611. data/spec/models/role_v2_base_spec.rb +59 -0
  612. data/spec/models/role_v2_permission_set_spec.rb +1 -1
  613. data/spec/models/role_v2_roles_group_spec.rb +53 -0
  614. data/spec/models/role_v2_spec.rb +21 -3
  615. data/spec/models/saml_connection_internal_spec.rb +47 -0
  616. data/spec/models/saml_login_endpoint_spec.rb +6 -0
  617. data/spec/models/set_discount_per_item_effect_props_spec.rb +12 -0
  618. data/spec/models/sso_config_spec.rb +41 -0
  619. data/spec/models/store_spec.rb +89 -0
  620. data/spec/models/talang_attribute_spec.rb +1 -1
  621. data/spec/models/tier_downgrade_notification_policy_spec.rb +47 -0
  622. data/spec/models/tier_spec.rb +16 -0
  623. data/spec/models/tier_upgrade_notification_policy_spec.rb +47 -0
  624. data/spec/models/tier_will_downgrade_notification_policy_spec.rb +53 -0
  625. data/spec/models/tier_will_downgrade_notification_trigger_spec.rb +51 -0
  626. data/spec/models/time_point_spec.rb +71 -0
  627. data/spec/models/track_event_v2_response_spec.rb +89 -0
  628. data/spec/models/two_fa_config_spec.rb +47 -0
  629. data/spec/models/update_achievement_spec.rb +71 -0
  630. data/spec/models/update_application_api_key_spec.rb +41 -0
  631. data/spec/models/update_application_spec.rb +6 -20
  632. data/spec/models/update_campaign_evaluation_group_spec.rb +79 -0
  633. data/spec/models/update_campaign_spec.rb +23 -1
  634. data/spec/models/update_campaign_template_spec.rb +11 -1
  635. data/spec/models/update_coupon_spec.rb +6 -0
  636. data/spec/models/update_loyalty_program_spec.rb +36 -0
  637. data/spec/models/update_store_spec.rb +53 -0
  638. data/spec/models/update_user_spec.rb +12 -6
  639. data/spec/models/user_spec.rb +23 -5
  640. data/spec/models/webhook_with_outgoing_integration_details_spec.rb +123 -0
  641. data/talon_one.gemspec +1 -1
  642. metadata +713 -369
@@ -0,0 +1,463 @@
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 AdditionalCampaignProperties
17
+ # A list of all the budgets that are defined by this campaign and their usage. **Note:** Budgets that are not defined do not appear in this list and their usage is not counted until they are defined.
18
+ attr_accessor :budgets
19
+
20
+ # This property is **deprecated**. The count should be available under *budgets* property. Number of coupons redeemed in the campaign.
21
+ attr_accessor :coupon_redemption_count
22
+
23
+ # This property is **deprecated**. The count should be available under *budgets* property. Number of referral codes redeemed in the campaign.
24
+ attr_accessor :referral_redemption_count
25
+
26
+ # This property is **deprecated**. The count should be available under *budgets* property. Total amount of discounts redeemed in the campaign.
27
+ attr_accessor :discount_count
28
+
29
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of times discounts were redeemed in this campaign.
30
+ attr_accessor :discount_effect_count
31
+
32
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of coupons created by rules in this campaign.
33
+ attr_accessor :coupon_creation_count
34
+
35
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of custom effects triggered by rules in this campaign.
36
+ attr_accessor :custom_effect_count
37
+
38
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of referrals created by rules in this campaign.
39
+ attr_accessor :referral_creation_count
40
+
41
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of times the [add free item effect](https://docs.talon.one/docs/dev/integration-api/api-effects#addfreeitem) can be triggered in this campaign.
42
+ attr_accessor :add_free_item_effect_count
43
+
44
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of giveaways awarded by rules in this campaign.
45
+ attr_accessor :awarded_giveaways_count
46
+
47
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points created by rules in this campaign.
48
+ attr_accessor :created_loyalty_points_count
49
+
50
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point creation effects triggered by rules in this campaign.
51
+ attr_accessor :created_loyalty_points_effect_count
52
+
53
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty points redeemed by rules in this campaign.
54
+ attr_accessor :redeemed_loyalty_points_count
55
+
56
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of loyalty point redemption effects triggered by rules in this campaign.
57
+ attr_accessor :redeemed_loyalty_points_effect_count
58
+
59
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of webhooks triggered by rules in this campaign.
60
+ attr_accessor :call_api_effect_count
61
+
62
+ # This property is **deprecated**. The count should be available under *budgets* property. Total number of reserve coupon effects triggered by rules in this campaign.
63
+ attr_accessor :reservecoupon_effect_count
64
+
65
+ # Timestamp of the most recent event received by this campaign.
66
+ attr_accessor :last_activity
67
+
68
+ # Timestamp of the most recent update to the campaign's property. Updates to external entities used in this campaign are **not** registered by this property, such as collection or coupon updates.
69
+ attr_accessor :updated
70
+
71
+ # Name of the user who created this campaign if available.
72
+ attr_accessor :created_by
73
+
74
+ # Name of the user who last updated this campaign if available.
75
+ attr_accessor :updated_by
76
+
77
+ # The ID of the Campaign Template this Campaign was created from.
78
+ attr_accessor :template_id
79
+
80
+ # A campaign state described exactly as in the Campaign Manager.
81
+ attr_accessor :frontend_state
82
+
83
+ class EnumAttributeValidator
84
+ attr_reader :datatype
85
+ attr_reader :allowable_values
86
+
87
+ def initialize(datatype, allowable_values)
88
+ @allowable_values = allowable_values.map do |value|
89
+ case datatype.to_s
90
+ when /Integer/i
91
+ value.to_i
92
+ when /Float/i
93
+ value.to_f
94
+ else
95
+ value
96
+ end
97
+ end
98
+ end
99
+
100
+ def valid?(value)
101
+ !value || allowable_values.include?(value)
102
+ end
103
+ end
104
+
105
+ # Attribute mapping from ruby-style variable name to JSON key.
106
+ def self.attribute_map
107
+ {
108
+ :'budgets' => :'budgets',
109
+ :'coupon_redemption_count' => :'couponRedemptionCount',
110
+ :'referral_redemption_count' => :'referralRedemptionCount',
111
+ :'discount_count' => :'discountCount',
112
+ :'discount_effect_count' => :'discountEffectCount',
113
+ :'coupon_creation_count' => :'couponCreationCount',
114
+ :'custom_effect_count' => :'customEffectCount',
115
+ :'referral_creation_count' => :'referralCreationCount',
116
+ :'add_free_item_effect_count' => :'addFreeItemEffectCount',
117
+ :'awarded_giveaways_count' => :'awardedGiveawaysCount',
118
+ :'created_loyalty_points_count' => :'createdLoyaltyPointsCount',
119
+ :'created_loyalty_points_effect_count' => :'createdLoyaltyPointsEffectCount',
120
+ :'redeemed_loyalty_points_count' => :'redeemedLoyaltyPointsCount',
121
+ :'redeemed_loyalty_points_effect_count' => :'redeemedLoyaltyPointsEffectCount',
122
+ :'call_api_effect_count' => :'callApiEffectCount',
123
+ :'reservecoupon_effect_count' => :'reservecouponEffectCount',
124
+ :'last_activity' => :'lastActivity',
125
+ :'updated' => :'updated',
126
+ :'created_by' => :'createdBy',
127
+ :'updated_by' => :'updatedBy',
128
+ :'template_id' => :'templateId',
129
+ :'frontend_state' => :'frontendState'
130
+ }
131
+ end
132
+
133
+ # Attribute type mapping.
134
+ def self.openapi_types
135
+ {
136
+ :'budgets' => :'Array<CampaignBudget>',
137
+ :'coupon_redemption_count' => :'Integer',
138
+ :'referral_redemption_count' => :'Integer',
139
+ :'discount_count' => :'Float',
140
+ :'discount_effect_count' => :'Integer',
141
+ :'coupon_creation_count' => :'Integer',
142
+ :'custom_effect_count' => :'Integer',
143
+ :'referral_creation_count' => :'Integer',
144
+ :'add_free_item_effect_count' => :'Integer',
145
+ :'awarded_giveaways_count' => :'Integer',
146
+ :'created_loyalty_points_count' => :'Float',
147
+ :'created_loyalty_points_effect_count' => :'Integer',
148
+ :'redeemed_loyalty_points_count' => :'Float',
149
+ :'redeemed_loyalty_points_effect_count' => :'Integer',
150
+ :'call_api_effect_count' => :'Integer',
151
+ :'reservecoupon_effect_count' => :'Integer',
152
+ :'last_activity' => :'DateTime',
153
+ :'updated' => :'DateTime',
154
+ :'created_by' => :'String',
155
+ :'updated_by' => :'String',
156
+ :'template_id' => :'Integer',
157
+ :'frontend_state' => :'String'
158
+ }
159
+ end
160
+
161
+ # List of attributes with nullable: true
162
+ def self.openapi_nullable
163
+ Set.new([
164
+ ])
165
+ end
166
+
167
+ # Initializes the object
168
+ # @param [Hash] attributes Model attributes in the form of hash
169
+ def initialize(attributes = {})
170
+ if (!attributes.is_a?(Hash))
171
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TalonOne::AdditionalCampaignProperties` initialize method"
172
+ end
173
+
174
+ # check to see if the attribute exists and convert string to symbol for hash key
175
+ attributes = attributes.each_with_object({}) { |(k, v), h|
176
+ if (!self.class.attribute_map.key?(k.to_sym))
177
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TalonOne::AdditionalCampaignProperties`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
178
+ end
179
+ h[k.to_sym] = v
180
+ }
181
+
182
+ if attributes.key?(:'budgets')
183
+ if (value = attributes[:'budgets']).is_a?(Array)
184
+ self.budgets = value
185
+ end
186
+ end
187
+
188
+ if attributes.key?(:'coupon_redemption_count')
189
+ self.coupon_redemption_count = attributes[:'coupon_redemption_count']
190
+ end
191
+
192
+ if attributes.key?(:'referral_redemption_count')
193
+ self.referral_redemption_count = attributes[:'referral_redemption_count']
194
+ end
195
+
196
+ if attributes.key?(:'discount_count')
197
+ self.discount_count = attributes[:'discount_count']
198
+ end
199
+
200
+ if attributes.key?(:'discount_effect_count')
201
+ self.discount_effect_count = attributes[:'discount_effect_count']
202
+ end
203
+
204
+ if attributes.key?(:'coupon_creation_count')
205
+ self.coupon_creation_count = attributes[:'coupon_creation_count']
206
+ end
207
+
208
+ if attributes.key?(:'custom_effect_count')
209
+ self.custom_effect_count = attributes[:'custom_effect_count']
210
+ end
211
+
212
+ if attributes.key?(:'referral_creation_count')
213
+ self.referral_creation_count = attributes[:'referral_creation_count']
214
+ end
215
+
216
+ if attributes.key?(:'add_free_item_effect_count')
217
+ self.add_free_item_effect_count = attributes[:'add_free_item_effect_count']
218
+ end
219
+
220
+ if attributes.key?(:'awarded_giveaways_count')
221
+ self.awarded_giveaways_count = attributes[:'awarded_giveaways_count']
222
+ end
223
+
224
+ if attributes.key?(:'created_loyalty_points_count')
225
+ self.created_loyalty_points_count = attributes[:'created_loyalty_points_count']
226
+ end
227
+
228
+ if attributes.key?(:'created_loyalty_points_effect_count')
229
+ self.created_loyalty_points_effect_count = attributes[:'created_loyalty_points_effect_count']
230
+ end
231
+
232
+ if attributes.key?(:'redeemed_loyalty_points_count')
233
+ self.redeemed_loyalty_points_count = attributes[:'redeemed_loyalty_points_count']
234
+ end
235
+
236
+ if attributes.key?(:'redeemed_loyalty_points_effect_count')
237
+ self.redeemed_loyalty_points_effect_count = attributes[:'redeemed_loyalty_points_effect_count']
238
+ end
239
+
240
+ if attributes.key?(:'call_api_effect_count')
241
+ self.call_api_effect_count = attributes[:'call_api_effect_count']
242
+ end
243
+
244
+ if attributes.key?(:'reservecoupon_effect_count')
245
+ self.reservecoupon_effect_count = attributes[:'reservecoupon_effect_count']
246
+ end
247
+
248
+ if attributes.key?(:'last_activity')
249
+ self.last_activity = attributes[:'last_activity']
250
+ end
251
+
252
+ if attributes.key?(:'updated')
253
+ self.updated = attributes[:'updated']
254
+ end
255
+
256
+ if attributes.key?(:'created_by')
257
+ self.created_by = attributes[:'created_by']
258
+ end
259
+
260
+ if attributes.key?(:'updated_by')
261
+ self.updated_by = attributes[:'updated_by']
262
+ end
263
+
264
+ if attributes.key?(:'template_id')
265
+ self.template_id = attributes[:'template_id']
266
+ end
267
+
268
+ if attributes.key?(:'frontend_state')
269
+ self.frontend_state = attributes[:'frontend_state']
270
+ end
271
+ end
272
+
273
+ # Show invalid properties with the reasons. Usually used together with valid?
274
+ # @return Array for valid properties with the reasons
275
+ def list_invalid_properties
276
+ invalid_properties = Array.new
277
+ if @budgets.nil?
278
+ invalid_properties.push('invalid value for "budgets", budgets cannot be nil.')
279
+ end
280
+
281
+ if @frontend_state.nil?
282
+ invalid_properties.push('invalid value for "frontend_state", frontend_state cannot be nil.')
283
+ end
284
+
285
+ invalid_properties
286
+ end
287
+
288
+ # Check to see if the all the properties in the model are valid
289
+ # @return true if the model is valid
290
+ def valid?
291
+ return false if @budgets.nil?
292
+ return false if @frontend_state.nil?
293
+ frontend_state_validator = EnumAttributeValidator.new('String', ["expired", "scheduled", "running", "draft"])
294
+ return false unless frontend_state_validator.valid?(@frontend_state)
295
+ true
296
+ end
297
+
298
+ # Custom attribute writer method checking allowed values (enum).
299
+ # @param [Object] frontend_state Object to be assigned
300
+ def frontend_state=(frontend_state)
301
+ validator = EnumAttributeValidator.new('String', ["expired", "scheduled", "running", "draft"])
302
+ unless validator.valid?(frontend_state)
303
+ fail ArgumentError, "invalid value for \"frontend_state\", must be one of #{validator.allowable_values}."
304
+ end
305
+ @frontend_state = frontend_state
306
+ end
307
+
308
+ # Checks equality by comparing each attribute.
309
+ # @param [Object] Object to be compared
310
+ def ==(o)
311
+ return true if self.equal?(o)
312
+ self.class == o.class &&
313
+ budgets == o.budgets &&
314
+ coupon_redemption_count == o.coupon_redemption_count &&
315
+ referral_redemption_count == o.referral_redemption_count &&
316
+ discount_count == o.discount_count &&
317
+ discount_effect_count == o.discount_effect_count &&
318
+ coupon_creation_count == o.coupon_creation_count &&
319
+ custom_effect_count == o.custom_effect_count &&
320
+ referral_creation_count == o.referral_creation_count &&
321
+ add_free_item_effect_count == o.add_free_item_effect_count &&
322
+ awarded_giveaways_count == o.awarded_giveaways_count &&
323
+ created_loyalty_points_count == o.created_loyalty_points_count &&
324
+ created_loyalty_points_effect_count == o.created_loyalty_points_effect_count &&
325
+ redeemed_loyalty_points_count == o.redeemed_loyalty_points_count &&
326
+ redeemed_loyalty_points_effect_count == o.redeemed_loyalty_points_effect_count &&
327
+ call_api_effect_count == o.call_api_effect_count &&
328
+ reservecoupon_effect_count == o.reservecoupon_effect_count &&
329
+ last_activity == o.last_activity &&
330
+ updated == o.updated &&
331
+ created_by == o.created_by &&
332
+ updated_by == o.updated_by &&
333
+ template_id == o.template_id &&
334
+ frontend_state == o.frontend_state
335
+ end
336
+
337
+ # @see the `==` method
338
+ # @param [Object] Object to be compared
339
+ def eql?(o)
340
+ self == o
341
+ end
342
+
343
+ # Calculates hash code according to all attributes.
344
+ # @return [Integer] Hash code
345
+ def hash
346
+ [budgets, coupon_redemption_count, referral_redemption_count, discount_count, discount_effect_count, coupon_creation_count, custom_effect_count, referral_creation_count, add_free_item_effect_count, awarded_giveaways_count, created_loyalty_points_count, created_loyalty_points_effect_count, redeemed_loyalty_points_count, redeemed_loyalty_points_effect_count, call_api_effect_count, reservecoupon_effect_count, last_activity, updated, created_by, updated_by, template_id, frontend_state].hash
347
+ end
348
+
349
+ # Builds the object from hash
350
+ # @param [Hash] attributes Model attributes in the form of hash
351
+ # @return [Object] Returns the model itself
352
+ def self.build_from_hash(attributes)
353
+ new.build_from_hash(attributes)
354
+ end
355
+
356
+ # Builds the object from hash
357
+ # @param [Hash] attributes Model attributes in the form of hash
358
+ # @return [Object] Returns the model itself
359
+ def build_from_hash(attributes)
360
+ return nil unless attributes.is_a?(Hash)
361
+ self.class.openapi_types.each_pair do |key, type|
362
+ if type =~ /\AArray<(.*)>/i
363
+ # check to ensure the input is an array given that the attribute
364
+ # is documented as an array but the input is not
365
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
366
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
367
+ end
368
+ elsif !attributes[self.class.attribute_map[key]].nil?
369
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
370
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
371
+ end
372
+
373
+ self
374
+ end
375
+
376
+ # Deserializes the data based on type
377
+ # @param string type Data type
378
+ # @param string value Value to be deserialized
379
+ # @return [Object] Deserialized data
380
+ def _deserialize(type, value)
381
+ case type.to_sym
382
+ when :DateTime
383
+ DateTime.parse(value)
384
+ when :Date
385
+ Date.parse(value)
386
+ when :String
387
+ value.to_s
388
+ when :Integer
389
+ value.to_i
390
+ when :Float
391
+ value.to_f
392
+ when :Boolean
393
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
394
+ true
395
+ else
396
+ false
397
+ end
398
+ when :Object
399
+ # generic object (usually a Hash), return directly
400
+ value
401
+ when /\AArray<(?<inner_type>.+)>\z/
402
+ inner_type = Regexp.last_match[:inner_type]
403
+ value.map { |v| _deserialize(inner_type, v) }
404
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
405
+ k_type = Regexp.last_match[:k_type]
406
+ v_type = Regexp.last_match[:v_type]
407
+ {}.tap do |hash|
408
+ value.each do |k, v|
409
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
410
+ end
411
+ end
412
+ else # model
413
+ TalonOne.const_get(type).build_from_hash(value)
414
+ end
415
+ end
416
+
417
+ # Returns the string representation of the object
418
+ # @return [String] String presentation of the object
419
+ def to_s
420
+ to_hash.to_s
421
+ end
422
+
423
+ # to_body is an alias to to_hash (backward compatibility)
424
+ # @return [Hash] Returns the object in the form of hash
425
+ def to_body
426
+ to_hash
427
+ end
428
+
429
+ # Returns the object in the form of hash
430
+ # @return [Hash] Returns the object in the form of hash
431
+ def to_hash
432
+ hash = {}
433
+ self.class.attribute_map.each_pair do |attr, param|
434
+ value = self.send(attr)
435
+ if value.nil?
436
+ is_nullable = self.class.openapi_nullable.include?(attr)
437
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
438
+ end
439
+
440
+ hash[param] = _to_hash(value)
441
+ end
442
+ hash
443
+ end
444
+
445
+ # Outputs non-array value in the form of hash
446
+ # For object, use to_hash. Otherwise, just return the value
447
+ # @param [Object] value Any valid value
448
+ # @return [Hash] Returns the value in the form of hash
449
+ def _to_hash(value)
450
+ if value.is_a?(Array)
451
+ value.compact.map { |v| _to_hash(v) }
452
+ elsif value.is_a?(Hash)
453
+ {}.tap do |hash|
454
+ value.each { |k, v| hash[k] = _to_hash(v) }
455
+ end
456
+ elsif value.respond_to? :to_hash
457
+ value.to_hash
458
+ else
459
+ value
460
+ end
461
+ end
462
+ end
463
+ end
@@ -48,19 +48,13 @@ module TalonOne
48
48
  # Default limits for campaigns created in this application.
49
49
  attr_accessor :limits
50
50
 
51
- # Default [priority](https://docs.talon.one/docs/product/applications/setting-up-campaign-priorities) for campaigns created in this Application.
52
- attr_accessor :campaign_priority
53
-
54
- # The strategy used when choosing exclusive campaigns for evaluation.
55
- attr_accessor :exclusive_campaigns_strategy
56
-
57
51
  # The default scope to apply `setDiscount` effects on if no scope was provided with the effect.
58
52
  attr_accessor :default_discount_scope
59
53
 
60
54
  # Indicates if discounts should cascade for this Application.
61
55
  attr_accessor :enable_cascading_discounts
62
56
 
63
- # Indicates if cart items of quantity larger than one should be separated into different items of quantity one. See the [docs](https://docs.talon.one/docs/product/campaigns/campaign-evaluation#flattening).
57
+ # Indicates if cart items of quantity larger than one should be separated into different items of quantity one.
64
58
  attr_accessor :enable_flattened_cart_items
65
59
 
66
60
  attr_accessor :attributes_settings
@@ -74,6 +68,9 @@ module TalonOne
74
68
  # The default scope to apply `setDiscountPerItem` effects on if no scope was provided with the effect.
75
69
  attr_accessor :default_discount_additional_cost_per_item_scope
76
70
 
71
+ # The ID of the default campaign evaluation group to which new campaigns will be added unless a different group is selected when creating the campaign.
72
+ attr_accessor :default_evaluation_group_id
73
+
77
74
  # An array containing all the loyalty programs to which this application is subscribed.
78
75
  attr_accessor :loyalty_programs
79
76
 
@@ -113,8 +110,6 @@ module TalonOne
113
110
  :'case_sensitivity' => :'caseSensitivity',
114
111
  :'attributes' => :'attributes',
115
112
  :'limits' => :'limits',
116
- :'campaign_priority' => :'campaignPriority',
117
- :'exclusive_campaigns_strategy' => :'exclusiveCampaignsStrategy',
118
113
  :'default_discount_scope' => :'defaultDiscountScope',
119
114
  :'enable_cascading_discounts' => :'enableCascadingDiscounts',
120
115
  :'enable_flattened_cart_items' => :'enableFlattenedCartItems',
@@ -122,6 +117,7 @@ module TalonOne
122
117
  :'sandbox' => :'sandbox',
123
118
  :'enable_partial_discounts' => :'enablePartialDiscounts',
124
119
  :'default_discount_additional_cost_per_item_scope' => :'defaultDiscountAdditionalCostPerItemScope',
120
+ :'default_evaluation_group_id' => :'defaultEvaluationGroupId',
125
121
  :'loyalty_programs' => :'loyaltyPrograms'
126
122
  }
127
123
  end
@@ -140,8 +136,6 @@ module TalonOne
140
136
  :'case_sensitivity' => :'String',
141
137
  :'attributes' => :'Object',
142
138
  :'limits' => :'Array<LimitConfig>',
143
- :'campaign_priority' => :'String',
144
- :'exclusive_campaigns_strategy' => :'String',
145
139
  :'default_discount_scope' => :'String',
146
140
  :'enable_cascading_discounts' => :'Boolean',
147
141
  :'enable_flattened_cart_items' => :'Boolean',
@@ -149,6 +143,7 @@ module TalonOne
149
143
  :'sandbox' => :'Boolean',
150
144
  :'enable_partial_discounts' => :'Boolean',
151
145
  :'default_discount_additional_cost_per_item_scope' => :'String',
146
+ :'default_evaluation_group_id' => :'Integer',
152
147
  :'loyalty_programs' => :'Array<LoyaltyProgram>'
153
148
  }
154
149
  end
@@ -220,18 +215,6 @@ module TalonOne
220
215
  end
221
216
  end
222
217
 
223
- if attributes.key?(:'campaign_priority')
224
- self.campaign_priority = attributes[:'campaign_priority']
225
- else
226
- self.campaign_priority = 'universal'
227
- end
228
-
229
- if attributes.key?(:'exclusive_campaigns_strategy')
230
- self.exclusive_campaigns_strategy = attributes[:'exclusive_campaigns_strategy']
231
- else
232
- self.exclusive_campaigns_strategy = 'listOrder'
233
- end
234
-
235
218
  if attributes.key?(:'default_discount_scope')
236
219
  self.default_discount_scope = attributes[:'default_discount_scope']
237
220
  end
@@ -260,6 +243,10 @@ module TalonOne
260
243
  self.default_discount_additional_cost_per_item_scope = attributes[:'default_discount_additional_cost_per_item_scope']
261
244
  end
262
245
 
246
+ if attributes.key?(:'default_evaluation_group_id')
247
+ self.default_evaluation_group_id = attributes[:'default_evaluation_group_id']
248
+ end
249
+
263
250
  if attributes.key?(:'loyalty_programs')
264
251
  if (value = attributes[:'loyalty_programs']).is_a?(Array)
265
252
  self.loyalty_programs = value
@@ -333,10 +320,6 @@ module TalonOne
333
320
  return false if @currency.to_s.length < 1
334
321
  case_sensitivity_validator = EnumAttributeValidator.new('String', ["sensitive", "insensitive-uppercase", "insensitive-lowercase"])
335
322
  return false unless case_sensitivity_validator.valid?(@case_sensitivity)
336
- campaign_priority_validator = EnumAttributeValidator.new('String', ["universal", "stackable", "exclusive"])
337
- return false unless campaign_priority_validator.valid?(@campaign_priority)
338
- exclusive_campaigns_strategy_validator = EnumAttributeValidator.new('String', ["listOrder", "lowestDiscount", "highestDiscount"])
339
- return false unless exclusive_campaigns_strategy_validator.valid?(@exclusive_campaigns_strategy)
340
323
  default_discount_scope_validator = EnumAttributeValidator.new('String', ["sessionTotal", "cartItems", "additionalCosts"])
341
324
  return false unless default_discount_scope_validator.valid?(@default_discount_scope)
342
325
  default_discount_additional_cost_per_item_scope_validator = EnumAttributeValidator.new('String', ["price", "itemTotal", "additionalCosts"])
@@ -397,26 +380,6 @@ module TalonOne
397
380
  @case_sensitivity = case_sensitivity
398
381
  end
399
382
 
400
- # Custom attribute writer method checking allowed values (enum).
401
- # @param [Object] campaign_priority Object to be assigned
402
- def campaign_priority=(campaign_priority)
403
- validator = EnumAttributeValidator.new('String', ["universal", "stackable", "exclusive"])
404
- unless validator.valid?(campaign_priority)
405
- fail ArgumentError, "invalid value for \"campaign_priority\", must be one of #{validator.allowable_values}."
406
- end
407
- @campaign_priority = campaign_priority
408
- end
409
-
410
- # Custom attribute writer method checking allowed values (enum).
411
- # @param [Object] exclusive_campaigns_strategy Object to be assigned
412
- def exclusive_campaigns_strategy=(exclusive_campaigns_strategy)
413
- validator = EnumAttributeValidator.new('String', ["listOrder", "lowestDiscount", "highestDiscount"])
414
- unless validator.valid?(exclusive_campaigns_strategy)
415
- fail ArgumentError, "invalid value for \"exclusive_campaigns_strategy\", must be one of #{validator.allowable_values}."
416
- end
417
- @exclusive_campaigns_strategy = exclusive_campaigns_strategy
418
- end
419
-
420
383
  # Custom attribute writer method checking allowed values (enum).
421
384
  # @param [Object] default_discount_scope Object to be assigned
422
385
  def default_discount_scope=(default_discount_scope)
@@ -453,8 +416,6 @@ module TalonOne
453
416
  case_sensitivity == o.case_sensitivity &&
454
417
  attributes == o.attributes &&
455
418
  limits == o.limits &&
456
- campaign_priority == o.campaign_priority &&
457
- exclusive_campaigns_strategy == o.exclusive_campaigns_strategy &&
458
419
  default_discount_scope == o.default_discount_scope &&
459
420
  enable_cascading_discounts == o.enable_cascading_discounts &&
460
421
  enable_flattened_cart_items == o.enable_flattened_cart_items &&
@@ -462,6 +423,7 @@ module TalonOne
462
423
  sandbox == o.sandbox &&
463
424
  enable_partial_discounts == o.enable_partial_discounts &&
464
425
  default_discount_additional_cost_per_item_scope == o.default_discount_additional_cost_per_item_scope &&
426
+ default_evaluation_group_id == o.default_evaluation_group_id &&
465
427
  loyalty_programs == o.loyalty_programs
466
428
  end
467
429
 
@@ -474,7 +436,7 @@ module TalonOne
474
436
  # Calculates hash code according to all attributes.
475
437
  # @return [Integer] Hash code
476
438
  def hash
477
- [id, created, modified, account_id, name, description, timezone, currency, case_sensitivity, attributes, limits, campaign_priority, exclusive_campaigns_strategy, default_discount_scope, enable_cascading_discounts, enable_flattened_cart_items, attributes_settings, sandbox, enable_partial_discounts, default_discount_additional_cost_per_item_scope, loyalty_programs].hash
439
+ [id, created, modified, account_id, name, description, timezone, currency, case_sensitivity, attributes, limits, default_discount_scope, enable_cascading_discounts, enable_flattened_cart_items, attributes_settings, sandbox, enable_partial_discounts, default_discount_additional_cost_per_item_scope, default_evaluation_group_id, loyalty_programs].hash
478
440
  end
479
441
 
480
442
  # Builds the object from hash