talon_one 3.0.2 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (649) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +157 -51
  3. data/docs/AccountAnalytics.md +3 -1
  4. data/docs/AccountDashboardStatistic.md +0 -2
  5. data/docs/AccountDashboardStatisticCampaigns.md +4 -2
  6. data/docs/Achievement.md +39 -0
  7. data/docs/AchievementAdditionalProperties.md +23 -0
  8. data/docs/AchievementProgress.md +35 -0
  9. data/docs/ActivateUserRequest.md +17 -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 +5 -3
  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 +4 -2
  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 +209 -122
  135. data/docs/IntegrationCoupon.md +4 -2
  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 +5 -3
  141. data/docs/LedgerPointsEntryIntegrationAPI.md +33 -0
  142. data/docs/LoginParams.md +1 -1
  143. data/docs/LoyaltyCardBalances.md +21 -0
  144. data/docs/LoyaltyCardProfileRegistration.md +1 -1
  145. data/docs/LoyaltyLedgerTransactions.md +1 -1
  146. data/docs/LoyaltyProgram.md +15 -1
  147. data/docs/LoyaltyProgramLedgers.md +2 -0
  148. data/docs/LoyaltyProgramSubledgers.md +19 -0
  149. data/docs/LoyaltyProgramTransaction.md +4 -2
  150. data/docs/ManagementApi.md +3460 -1649
  151. data/docs/MessageLogEntries.md +19 -0
  152. data/docs/MessageLogEntry.md +37 -0
  153. data/docs/MessageLogRequest.md +19 -0
  154. data/docs/MessageLogResponse.md +21 -0
  155. data/docs/NewAccountSignUp.md +1 -1
  156. data/docs/NewApplication.md +6 -10
  157. data/docs/NewApplicationAPIKey.md +6 -2
  158. data/docs/NewAudience.md +1 -1
  159. data/docs/NewBaseNotification.md +2 -0
  160. data/docs/NewCampaign.md +8 -2
  161. data/docs/NewCampaignEvaluationGroup.md +27 -0
  162. data/docs/NewCampaignGroup.md +6 -6
  163. data/docs/NewCampaignTemplate.md +3 -1
  164. data/docs/NewCoupons.md +4 -2
  165. data/docs/NewCustomerSession.md +1 -1
  166. data/docs/NewCustomerSessionV2.md +5 -3
  167. data/docs/NewEvent.md +2 -0
  168. data/docs/NewExternalInvitation.md +21 -0
  169. data/docs/NewInternalAudience.md +1 -1
  170. data/docs/NewInvitation.md +8 -6
  171. data/docs/NewInviteEmail.md +4 -4
  172. data/docs/NewLoyaltyProgram.md +8 -0
  173. data/docs/NewNotificationTest.md +29 -0
  174. data/docs/NewNotificationWebhook.md +3 -1
  175. data/docs/NewPicklist.md +1 -1
  176. data/docs/NewRoleV2.md +23 -0
  177. data/docs/NewStore.md +23 -0
  178. data/docs/NewUser.md +1 -1
  179. data/docs/NotificationActivation.md +17 -0
  180. data/docs/NotificationListItem.md +23 -0
  181. data/docs/NotificationTest.md +27 -0
  182. data/docs/OneTimeCode.md +23 -0
  183. data/docs/OutgoingIntegrationCleverTapPolicy.md +21 -0
  184. data/docs/OutgoingIntegrationConfiguration.md +1 -1
  185. data/docs/OutgoingIntegrationIterablePolicy.md +19 -0
  186. data/docs/OutgoingIntegrationMoEngagePolicy.md +23 -0
  187. data/docs/OutgoingIntegrationTemplate.md +33 -0
  188. data/docs/OutgoingIntegrationTemplateWithConfigurationDetails.md +35 -0
  189. data/docs/OutgoingIntegrationTemplates.md +17 -0
  190. data/docs/OutgoingIntegrationType.md +1 -1
  191. data/docs/PatchItemCatalogAction.md +2 -0
  192. data/docs/PendingPointsNotificationPolicy.md +19 -0
  193. data/docs/Picklist.md +1 -1
  194. data/docs/Product.md +17 -0
  195. data/docs/RemoveFromAudienceEffectProps.md +23 -0
  196. data/docs/ReturnedCartItem.md +1 -1
  197. data/docs/Role.md +1 -1
  198. data/docs/RoleAssign.md +2 -2
  199. data/docs/RoleV2.md +12 -6
  200. data/docs/RoleV2ApplicationDetails.md +6 -4
  201. data/docs/RoleV2Base.md +23 -0
  202. data/docs/RoleV2PermissionSet.md +3 -3
  203. data/docs/RoleV2Permissions.md +3 -3
  204. data/docs/RoleV2RolesGroup.md +21 -0
  205. data/docs/RollbackAddedLoyaltyPointsEffectProps.md +1 -1
  206. data/docs/RollbackDiscountEffectProps.md +1 -1
  207. data/docs/SSOConfig.md +17 -0
  208. data/docs/SamlConnectionInternal.md +19 -0
  209. data/docs/SamlLoginEndpoint.md +4 -2
  210. data/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md +1 -1
  211. data/docs/SetDiscountPerItemEffectProps.md +6 -2
  212. data/docs/Store.md +33 -0
  213. data/docs/TemplateArgDef.md +1 -1
  214. data/docs/Tier.md +5 -1
  215. data/docs/TierDowngradeNotificationPolicy.md +19 -0
  216. data/docs/TierUpgradeNotificationPolicy.md +19 -0
  217. data/docs/TierWillDowngradeNotificationPolicy.md +21 -0
  218. data/docs/TierWillDowngradeNotificationTrigger.md +19 -0
  219. data/docs/TimePoint.md +27 -0
  220. data/docs/TrackEventV2Response.md +33 -0
  221. data/docs/TwoFAConfig.md +19 -0
  222. data/docs/UpdateAchievement.md +27 -0
  223. data/docs/UpdateApplication.md +4 -6
  224. data/docs/UpdateApplicationAPIKey.md +17 -0
  225. data/docs/UpdateCampaign.md +9 -3
  226. data/docs/UpdateCampaignEvaluationGroup.md +27 -0
  227. data/docs/UpdateCampaignGroup.md +6 -6
  228. data/docs/UpdateCampaignTemplate.md +3 -1
  229. data/docs/UpdateCoupon.md +4 -2
  230. data/docs/UpdateCouponBatch.md +2 -2
  231. data/docs/UpdateLoyaltyProgram.md +8 -0
  232. data/docs/UpdatePicklist.md +1 -1
  233. data/docs/UpdateStore.md +21 -0
  234. data/docs/UpdateUser.md +8 -6
  235. data/docs/User.md +19 -13
  236. data/docs/WebhookWithOutgoingIntegrationDetails.md +45 -0
  237. data/lib/talon_one/api/integration_api.rb +291 -144
  238. data/lib/talon_one/api/management_api.rb +3054 -1033
  239. data/lib/talon_one/models/account_additional_cost.rb +3 -3
  240. data/lib/talon_one/models/account_analytics.rb +19 -4
  241. data/lib/talon_one/models/account_dashboard_statistic.rb +1 -13
  242. data/lib/talon_one/models/account_dashboard_statistic_campaigns.rb +20 -5
  243. data/lib/talon_one/models/achievement.rb +406 -0
  244. data/lib/talon_one/models/achievement_additional_properties.rb +252 -0
  245. data/lib/talon_one/models/achievement_progress.rb +410 -0
  246. data/lib/talon_one/models/activate_user_request.rb +213 -0
  247. data/lib/talon_one/models/add_item_catalog_action.rb +12 -3
  248. data/lib/talon_one/models/add_loyalty_points.rb +2 -2
  249. data/lib/talon_one/models/add_loyalty_points_effect_props.rb +1 -1
  250. data/lib/talon_one/models/add_to_audience_effect_props.rb +238 -0
  251. data/lib/talon_one/models/additional_campaign_properties.rb +463 -0
  252. data/lib/talon_one/models/application.rb +12 -50
  253. data/lib/talon_one/models/application_analytics_data_point.rb +273 -0
  254. data/lib/talon_one/models/application_analytics_data_point_avg_items_per_session.rb +216 -0
  255. data/lib/talon_one/models/application_analytics_data_point_avg_session_value.rb +216 -0
  256. data/lib/talon_one/models/application_analytics_data_point_sessions_count.rb +216 -0
  257. data/lib/talon_one/models/application_analytics_data_point_total_revenue.rb +216 -0
  258. data/lib/talon_one/models/application_api_key.rb +37 -5
  259. data/lib/talon_one/models/application_campaign_analytics.rb +379 -0
  260. data/lib/talon_one/models/application_campaign_analytics_avg_items_per_session.rb +225 -0
  261. data/lib/talon_one/models/application_campaign_analytics_avg_session_value.rb +225 -0
  262. data/lib/talon_one/models/application_campaign_analytics_coupons_count.rb +216 -0
  263. data/lib/talon_one/models/application_campaign_analytics_sessions_count.rb +225 -0
  264. data/lib/talon_one/models/application_campaign_analytics_total_discounts.rb +216 -0
  265. data/lib/talon_one/models/application_campaign_analytics_total_revenue.rb +225 -0
  266. data/lib/talon_one/models/application_customer.rb +2 -2
  267. data/lib/talon_one/models/application_event.rb +45 -1
  268. data/lib/talon_one/models/application_notification.rb +1 -1
  269. data/lib/talon_one/models/application_session.rb +51 -17
  270. data/lib/talon_one/models/application_store_entity.rb +207 -0
  271. data/lib/talon_one/models/attribute.rb +2 -2
  272. data/lib/talon_one/models/audience_analytics.rb +2 -2
  273. data/lib/talon_one/models/audience_customer.rb +2 -2
  274. data/lib/talon_one/models/base_campaign.rb +449 -0
  275. data/lib/talon_one/models/base_loyalty_program.rb +102 -4
  276. data/lib/talon_one/models/base_notification.rb +65 -4
  277. data/lib/talon_one/models/base_notification_entity.rb +16 -4
  278. data/lib/talon_one/models/base_notification_webhook.rb +16 -4
  279. data/lib/talon_one/models/bulk_operation_on_campaigns.rb +263 -0
  280. data/lib/talon_one/models/campaign.rb +105 -20
  281. data/lib/talon_one/models/campaign_budget.rb +280 -0
  282. data/lib/talon_one/models/campaign_copy.rb +14 -4
  283. data/lib/talon_one/models/campaign_created_notification.rb +10 -10
  284. data/lib/talon_one/models/campaign_evaluation_group.rb +378 -0
  285. data/lib/talon_one/models/campaign_evaluation_position.rb +243 -0
  286. data/lib/talon_one/models/campaign_evaluation_tree_changed_notification.rb +236 -0
  287. data/lib/talon_one/models/campaign_group.rb +4 -4
  288. data/lib/talon_one/models/campaign_notification_policy.rb +231 -0
  289. data/lib/talon_one/models/campaign_set.rb +16 -31
  290. data/lib/talon_one/models/campaign_set_branch_node.rb +100 -6
  291. data/lib/talon_one/models/campaign_template.rb +30 -1
  292. data/lib/talon_one/models/card_expiring_points_notification_policy.rb +259 -0
  293. data/lib/talon_one/models/card_expiring_points_notification_trigger.rb +280 -0
  294. data/lib/talon_one/models/card_ledger_points_entry_integration_api.rb +410 -0
  295. data/lib/talon_one/models/cart_item.rb +12 -3
  296. data/lib/talon_one/models/catalog_item.rb +13 -4
  297. data/lib/talon_one/models/change_loyalty_tier_level_effect_props.rb +278 -0
  298. data/lib/talon_one/models/coupon.rb +17 -7
  299. data/lib/talon_one/models/coupon_creation_job.rb +1 -1
  300. data/lib/talon_one/models/coupons_notification_policy.rb +16 -4
  301. data/lib/talon_one/models/create_achievement.rb +320 -0
  302. data/lib/talon_one/models/create_application_api_key.rb +40 -8
  303. data/lib/talon_one/models/create_template_campaign.rb +27 -5
  304. data/lib/talon_one/models/custom_effect_props.rb +1 -1
  305. data/lib/talon_one/models/customer_inventory.rb +16 -5
  306. data/lib/talon_one/models/customer_profile.rb +2 -2
  307. data/lib/talon_one/models/customer_profile_audience_request_item.rb +1 -1
  308. data/lib/talon_one/models/customer_profile_integration_response_v2.rb +307 -0
  309. data/lib/talon_one/models/customer_session.rb +1 -1
  310. data/lib/talon_one/models/customer_session_v2.rb +41 -7
  311. data/lib/talon_one/models/deactivate_user_request.rb +213 -0
  312. data/lib/talon_one/models/delete_user_request.rb +213 -0
  313. data/lib/talon_one/models/effect.rb +11 -1
  314. data/lib/talon_one/models/effect_entity.rb +14 -4
  315. data/lib/talon_one/models/email_entity.rb +1 -1
  316. data/lib/talon_one/models/environment.rb +13 -1
  317. data/lib/talon_one/models/event.rb +35 -1
  318. data/lib/talon_one/models/event_v2.rb +37 -3
  319. data/lib/talon_one/models/expiring_coupons_notification_policy.rb +259 -0
  320. data/lib/talon_one/models/expiring_coupons_notification_trigger.rb +280 -0
  321. data/lib/talon_one/models/expiring_points_notification_policy.rb +16 -4
  322. data/lib/talon_one/models/func_arg_def.rb +0 -5
  323. data/lib/talon_one/models/get_integration_coupon_request.rb +257 -0
  324. data/lib/talon_one/models/identifiable_entity.rb +212 -0
  325. data/lib/talon_one/models/increase_achievement_progress_effect_props.rb +298 -0
  326. data/lib/talon_one/models/inline_response20010.rb +1 -1
  327. data/lib/talon_one/models/inline_response20011.rb +1 -1
  328. data/lib/talon_one/models/inline_response20012.rb +1 -1
  329. data/lib/talon_one/models/inline_response20013.rb +11 -11
  330. data/lib/talon_one/models/inline_response20014.rb +1 -3
  331. data/lib/talon_one/models/inline_response20015.rb +7 -11
  332. data/lib/talon_one/models/inline_response20016.rb +3 -1
  333. data/lib/talon_one/models/inline_response20017.rb +1 -1
  334. data/lib/talon_one/models/inline_response20018.rb +1 -1
  335. data/lib/talon_one/models/inline_response20019.rb +10 -10
  336. data/lib/talon_one/models/inline_response20020.rb +1 -1
  337. data/lib/talon_one/models/inline_response20021.rb +7 -11
  338. data/lib/talon_one/models/inline_response20022.rb +10 -10
  339. data/lib/talon_one/models/inline_response20023.rb +1 -1
  340. data/lib/talon_one/models/inline_response20024.rb +10 -6
  341. data/lib/talon_one/models/inline_response20025.rb +1 -1
  342. data/lib/talon_one/models/inline_response20026.rb +6 -1
  343. data/lib/talon_one/models/inline_response20027.rb +1 -6
  344. data/lib/talon_one/models/inline_response20028.rb +11 -11
  345. data/lib/talon_one/models/inline_response20029.rb +7 -11
  346. data/lib/talon_one/models/inline_response2003.rb +11 -11
  347. data/lib/talon_one/models/inline_response20030.rb +1 -1
  348. data/lib/talon_one/models/inline_response20031.rb +8 -13
  349. data/lib/talon_one/models/inline_response20032.rb +8 -13
  350. data/lib/talon_one/models/inline_response20033.rb +11 -7
  351. data/lib/talon_one/models/inline_response20034.rb +1 -1
  352. data/lib/talon_one/models/inline_response20035.rb +11 -7
  353. data/lib/talon_one/models/inline_response20036.rb +1 -1
  354. data/lib/talon_one/models/inline_response20037.rb +1 -1
  355. data/lib/talon_one/models/inline_response20038.rb +7 -11
  356. data/lib/talon_one/models/inline_response20039.rb +1 -1
  357. data/lib/talon_one/models/inline_response2004.rb +11 -11
  358. data/lib/talon_one/models/inline_response20040.rb +1 -1
  359. data/lib/talon_one/models/inline_response20041.rb +227 -0
  360. data/lib/talon_one/models/inline_response20042.rb +231 -0
  361. data/lib/talon_one/models/inline_response20043.rb +227 -0
  362. data/lib/talon_one/models/inline_response20044.rb +227 -0
  363. data/lib/talon_one/models/inline_response20045.rb +231 -0
  364. data/lib/talon_one/models/inline_response20046.rb +222 -0
  365. data/lib/talon_one/models/inline_response20047.rb +227 -0
  366. data/lib/talon_one/models/inline_response2005.rb +1 -1
  367. data/lib/talon_one/models/inline_response2006.rb +1 -1
  368. data/lib/talon_one/models/inline_response2007.rb +1 -1
  369. data/lib/talon_one/models/inline_response2008.rb +10 -10
  370. data/lib/talon_one/models/inline_response2009.rb +1 -1
  371. data/lib/talon_one/models/integration_coupon.rb +14 -4
  372. data/lib/talon_one/models/integration_event.rb +35 -1
  373. data/lib/talon_one/models/integration_event_v2_request.rb +37 -3
  374. data/lib/talon_one/models/integration_request.rb +1 -1
  375. data/lib/talon_one/models/integration_store_entity.rb +231 -0
  376. data/lib/talon_one/models/inventory_coupon.rb +15 -5
  377. data/lib/talon_one/models/ledger_points_entry_integration_api.rb +400 -0
  378. data/lib/talon_one/models/login_params.rb +1 -1
  379. data/lib/talon_one/models/loyalty.rb +1 -1
  380. data/lib/talon_one/models/loyalty_card_balances.rb +231 -0
  381. data/lib/talon_one/models/loyalty_card_profile_registration.rb +1 -1
  382. data/lib/talon_one/models/loyalty_ledger_transactions.rb +1 -1
  383. data/lib/talon_one/models/loyalty_program.rb +136 -4
  384. data/lib/talon_one/models/loyalty_program_ledgers.rb +12 -2
  385. data/lib/talon_one/models/loyalty_program_subledgers.rb +230 -0
  386. data/lib/talon_one/models/loyalty_program_transaction.rb +13 -3
  387. data/lib/talon_one/models/message_log_entries.rb +241 -0
  388. data/lib/talon_one/models/message_log_entry.rb +385 -0
  389. data/lib/talon_one/models/message_log_request.rb +249 -0
  390. data/lib/talon_one/models/message_log_response.rb +264 -0
  391. data/lib/talon_one/models/new_account_sign_up.rb +1 -1
  392. data/lib/talon_one/models/new_additional_cost.rb +3 -3
  393. data/lib/talon_one/models/new_application.rb +2 -51
  394. data/lib/talon_one/models/new_application_api_key.rb +37 -5
  395. data/lib/talon_one/models/new_attribute.rb +2 -2
  396. data/lib/talon_one/models/new_base_notification.rb +13 -1
  397. data/lib/talon_one/models/new_campaign.rb +52 -5
  398. data/lib/talon_one/models/new_campaign_evaluation_group.rb +347 -0
  399. data/lib/talon_one/models/new_campaign_group.rb +4 -4
  400. data/lib/talon_one/models/new_campaign_template.rb +33 -4
  401. data/lib/talon_one/models/new_coupons.rb +16 -6
  402. data/lib/talon_one/models/new_customer_session.rb +1 -1
  403. data/lib/talon_one/models/new_customer_session_v2.rb +38 -4
  404. data/lib/talon_one/models/new_event.rb +35 -1
  405. data/lib/talon_one/models/new_external_invitation.rb +235 -0
  406. data/lib/talon_one/models/new_invitation.rb +24 -18
  407. data/lib/talon_one/models/new_invite_email.rb +2 -38
  408. data/lib/talon_one/models/new_loyalty_program.rb +99 -1
  409. data/lib/talon_one/models/new_notification_test.rb +327 -0
  410. data/lib/talon_one/models/new_notification_webhook.rb +16 -4
  411. data/lib/talon_one/models/new_picklist.rb +1 -1
  412. data/lib/talon_one/models/new_role_v2.rb +249 -0
  413. data/lib/talon_one/models/new_store.rb +309 -0
  414. data/lib/talon_one/models/new_user.rb +1 -1
  415. data/lib/talon_one/models/notification_activation.rb +212 -0
  416. data/lib/talon_one/models/notification_list_item.rb +257 -0
  417. data/lib/talon_one/models/notification_test.rb +227 -0
  418. data/lib/talon_one/models/one_time_code.rb +252 -0
  419. data/lib/talon_one/models/outgoing_integration_clever_tap_policy.rb +242 -0
  420. data/lib/talon_one/models/outgoing_integration_configuration.rb +1 -0
  421. data/lib/talon_one/models/outgoing_integration_iterable_policy.rb +227 -0
  422. data/lib/talon_one/models/outgoing_integration_mo_engage_policy.rb +257 -0
  423. data/lib/talon_one/models/outgoing_integration_template.rb +409 -0
  424. data/lib/talon_one/models/outgoing_integration_template_with_configuration_details.rb +425 -0
  425. data/lib/talon_one/models/outgoing_integration_templates.rb +209 -0
  426. data/lib/talon_one/models/patch_item_catalog_action.rb +11 -2
  427. data/lib/talon_one/models/pending_points_notification_policy.rb +243 -0
  428. data/lib/talon_one/models/picklist.rb +1 -1
  429. data/lib/talon_one/models/product.rb +232 -0
  430. data/lib/talon_one/models/remove_from_audience_effect_props.rb +238 -0
  431. data/lib/talon_one/models/returned_cart_item.rb +1 -1
  432. data/lib/talon_one/models/role.rb +1 -1
  433. data/lib/talon_one/models/role_assign.rb +2 -2
  434. data/lib/talon_one/models/role_v2.rb +63 -12
  435. data/lib/talon_one/models/role_v2_application_details.rb +17 -7
  436. data/lib/talon_one/models/role_v2_base.rb +238 -0
  437. data/lib/talon_one/models/role_v2_permission_set.rb +12 -11
  438. data/lib/talon_one/models/role_v2_permissions.rb +2 -2
  439. data/lib/talon_one/models/role_v2_roles_group.rb +233 -0
  440. data/lib/talon_one/models/rollback_added_loyalty_points_effect_props.rb +1 -1
  441. data/lib/talon_one/models/rollback_discount_effect_props.rb +1 -1
  442. data/lib/talon_one/models/saml_connection_internal.rb +265 -0
  443. data/lib/talon_one/models/saml_login_endpoint.rb +17 -2
  444. data/lib/talon_one/models/set_discount_per_additional_cost_per_item_effect_props.rb +1 -1
  445. data/lib/talon_one/models/set_discount_per_item_effect_props.rb +25 -5
  446. data/lib/talon_one/models/sso_config.rb +212 -0
  447. data/lib/talon_one/models/store.rb +381 -0
  448. data/lib/talon_one/models/talang_attribute.rb +2 -2
  449. data/lib/talon_one/models/template_arg_def.rb +0 -5
  450. data/lib/talon_one/models/tier.rb +58 -4
  451. data/lib/talon_one/models/tier_downgrade_notification_policy.rb +243 -0
  452. data/lib/talon_one/models/tier_upgrade_notification_policy.rb +243 -0
  453. data/lib/talon_one/models/tier_will_downgrade_notification_policy.rb +259 -0
  454. data/lib/talon_one/models/tier_will_downgrade_notification_trigger.rb +261 -0
  455. data/lib/talon_one/models/time_point.rb +345 -0
  456. data/lib/talon_one/models/track_event_v2_response.rb +307 -0
  457. data/lib/talon_one/models/two_fa_config.rb +222 -0
  458. data/lib/talon_one/models/update_achievement.rb +291 -0
  459. data/lib/talon_one/models/update_application.rb +15 -53
  460. data/lib/talon_one/models/update_application_api_key.rb +212 -0
  461. data/lib/talon_one/models/update_campaign.rb +52 -6
  462. data/lib/talon_one/models/update_campaign_evaluation_group.rb +348 -0
  463. data/lib/talon_one/models/update_campaign_group.rb +4 -4
  464. data/lib/talon_one/models/update_campaign_template.rb +28 -4
  465. data/lib/talon_one/models/update_coupon.rb +16 -6
  466. data/lib/talon_one/models/update_coupon_batch.rb +2 -2
  467. data/lib/talon_one/models/update_loyalty_program.rb +99 -1
  468. data/lib/talon_one/models/update_picklist.rb +1 -1
  469. data/lib/talon_one/models/update_store.rb +265 -0
  470. data/lib/talon_one/models/update_user.rb +25 -14
  471. data/lib/talon_one/models/user.rb +73 -42
  472. data/lib/talon_one/models/webhook_with_outgoing_integration_details.rb +449 -0
  473. data/lib/talon_one/version.rb +1 -1
  474. data/lib/talon_one.rb +89 -16
  475. data/spec/api/integration_api_spec.rb +77 -50
  476. data/spec/api/management_api_spec.rb +706 -312
  477. data/spec/models/account_analytics_spec.rb +6 -0
  478. data/spec/models/account_dashboard_statistic_campaigns_spec.rb +6 -0
  479. data/spec/models/account_dashboard_statistic_spec.rb +0 -6
  480. data/spec/models/achievement_additional_properties_spec.rb +59 -0
  481. data/spec/models/achievement_progress_spec.rb +99 -0
  482. data/spec/models/achievement_spec.rb +107 -0
  483. data/spec/models/activate_user_request_spec.rb +41 -0
  484. data/spec/models/add_item_catalog_action_spec.rb +6 -0
  485. data/spec/models/add_to_audience_effect_props_spec.rb +59 -0
  486. data/spec/models/additional_campaign_properties_spec.rb +171 -0
  487. data/spec/models/application_analytics_data_point_avg_items_per_session_spec.rb +47 -0
  488. data/spec/models/application_analytics_data_point_avg_session_value_spec.rb +47 -0
  489. data/spec/models/application_analytics_data_point_sessions_count_spec.rb +47 -0
  490. data/spec/models/application_analytics_data_point_spec.rb +83 -0
  491. data/spec/models/application_analytics_data_point_total_revenue_spec.rb +47 -0
  492. data/spec/models/application_api_key_spec.rb +17 -1
  493. data/spec/models/application_campaign_analytics_avg_items_per_session_spec.rb +53 -0
  494. data/spec/models/application_campaign_analytics_avg_session_value_spec.rb +53 -0
  495. data/spec/models/application_campaign_analytics_coupons_count_spec.rb +47 -0
  496. data/spec/models/application_campaign_analytics_sessions_count_spec.rb +53 -0
  497. data/spec/models/application_campaign_analytics_spec.rb +129 -0
  498. data/spec/models/application_campaign_analytics_total_discounts_spec.rb +47 -0
  499. data/spec/models/application_campaign_analytics_total_revenue_spec.rb +53 -0
  500. data/spec/models/application_event_spec.rb +12 -0
  501. data/spec/models/application_session_spec.rb +9 -3
  502. data/spec/models/application_spec.rb +6 -20
  503. data/spec/models/application_store_entity_spec.rb +41 -0
  504. data/spec/models/attribute_spec.rb +1 -1
  505. data/spec/models/base_campaign_spec.rb +137 -0
  506. data/spec/models/base_loyalty_program_spec.rb +36 -0
  507. data/spec/models/base_notification_entity_spec.rb +6 -0
  508. data/spec/models/base_notification_spec.rb +16 -0
  509. data/spec/models/base_notification_webhook_spec.rb +6 -0
  510. data/spec/models/bulk_operation_on_campaigns_spec.rb +51 -0
  511. data/spec/models/campaign_budget_spec.rb +53 -0
  512. data/spec/models/campaign_copy_spec.rb +6 -0
  513. data/spec/models/campaign_created_notification_spec.rb +1 -1
  514. data/spec/models/campaign_evaluation_group_spec.rb +91 -0
  515. data/spec/models/campaign_evaluation_position_spec.rb +53 -0
  516. data/spec/models/campaign_evaluation_tree_changed_notification_spec.rb +53 -0
  517. data/spec/models/campaign_notification_policy_spec.rb +41 -0
  518. data/spec/models/campaign_set_branch_node_spec.rb +38 -0
  519. data/spec/models/campaign_set_spec.rb +2 -8
  520. data/spec/models/campaign_spec.rb +33 -1
  521. data/spec/models/campaign_template_spec.rb +11 -1
  522. data/spec/models/card_expiring_points_notification_policy_spec.rb +53 -0
  523. data/spec/models/card_expiring_points_notification_trigger_spec.rb +51 -0
  524. data/spec/models/card_ledger_points_entry_integration_api_spec.rb +95 -0
  525. data/spec/models/cart_item_spec.rb +6 -0
  526. data/spec/models/catalog_item_spec.rb +6 -0
  527. data/spec/models/change_loyalty_tier_level_effect_props_spec.rb +71 -0
  528. data/spec/models/coupon_spec.rb +6 -0
  529. data/spec/models/coupons_notification_policy_spec.rb +6 -0
  530. data/spec/models/create_achievement_spec.rb +71 -0
  531. data/spec/models/create_application_api_key_spec.rb +17 -1
  532. data/spec/models/create_template_campaign_spec.rb +12 -0
  533. data/spec/models/customer_inventory_spec.rb +6 -0
  534. data/spec/models/customer_profile_integration_response_v2_spec.rb +89 -0
  535. data/spec/models/customer_session_v2_spec.rb +6 -0
  536. data/spec/models/deactivate_user_request_spec.rb +41 -0
  537. data/spec/models/delete_user_request_spec.rb +41 -0
  538. data/spec/models/effect_entity_spec.rb +6 -0
  539. data/spec/models/effect_spec.rb +6 -0
  540. data/spec/models/environment_spec.rb +6 -0
  541. data/spec/models/event_spec.rb +6 -0
  542. data/spec/models/event_v2_spec.rb +6 -0
  543. data/spec/models/expiring_coupons_notification_policy_spec.rb +53 -0
  544. data/spec/models/expiring_coupons_notification_trigger_spec.rb +51 -0
  545. data/spec/models/expiring_points_notification_policy_spec.rb +6 -0
  546. data/spec/models/get_integration_coupon_request_spec.rb +47 -0
  547. data/spec/models/identifiable_entity_spec.rb +41 -0
  548. data/spec/models/increase_achievement_progress_effect_props_spec.rb +77 -0
  549. data/spec/models/inline_response20013_spec.rb +1 -1
  550. data/spec/models/inline_response20015_spec.rb +0 -6
  551. data/spec/models/inline_response20019_spec.rb +1 -1
  552. data/spec/models/inline_response20021_spec.rb +0 -6
  553. data/spec/models/inline_response20022_spec.rb +2 -2
  554. data/spec/models/inline_response20024_spec.rb +6 -0
  555. data/spec/models/inline_response20028_spec.rb +1 -1
  556. data/spec/models/inline_response20029_spec.rb +0 -6
  557. data/spec/models/inline_response20031_spec.rb +1 -1
  558. data/spec/models/inline_response20032_spec.rb +1 -1
  559. data/spec/models/inline_response20033_spec.rb +6 -0
  560. data/spec/models/inline_response20035_spec.rb +6 -0
  561. data/spec/models/inline_response20038_spec.rb +0 -6
  562. data/spec/models/inline_response2003_spec.rb +1 -1
  563. data/spec/models/inline_response20041_spec.rb +47 -0
  564. data/spec/models/inline_response20042_spec.rb +53 -0
  565. data/spec/models/inline_response20043_spec.rb +47 -0
  566. data/spec/models/inline_response20044_spec.rb +47 -0
  567. data/spec/models/inline_response20045_spec.rb +53 -0
  568. data/spec/models/inline_response20046_spec.rb +47 -0
  569. data/spec/models/inline_response20047_spec.rb +47 -0
  570. data/spec/models/inline_response2004_spec.rb +1 -1
  571. data/spec/models/inline_response2008_spec.rb +1 -1
  572. data/spec/models/integration_coupon_spec.rb +6 -0
  573. data/spec/models/integration_event_spec.rb +6 -0
  574. data/spec/models/integration_event_v2_request_spec.rb +6 -0
  575. data/spec/models/integration_store_entity_spec.rb +41 -0
  576. data/spec/models/inventory_coupon_spec.rb +6 -0
  577. data/spec/models/ledger_points_entry_integration_api_spec.rb +89 -0
  578. data/spec/models/loyalty_card_balances_spec.rb +53 -0
  579. data/spec/models/loyalty_program_ledgers_spec.rb +6 -0
  580. data/spec/models/loyalty_program_spec.rb +54 -0
  581. data/spec/models/loyalty_program_subledgers_spec.rb +47 -0
  582. data/spec/models/loyalty_program_transaction_spec.rb +6 -0
  583. data/spec/models/message_log_entries_spec.rb +47 -0
  584. data/spec/models/message_log_entry_spec.rb +105 -0
  585. data/spec/models/message_log_request_spec.rb +47 -0
  586. data/spec/models/message_log_response_spec.rb +53 -0
  587. data/spec/models/new_application_api_key_spec.rb +17 -1
  588. data/spec/models/new_application_spec.rb +0 -20
  589. data/spec/models/new_attribute_spec.rb +1 -1
  590. data/spec/models/new_base_notification_spec.rb +6 -0
  591. data/spec/models/new_campaign_evaluation_group_spec.rb +79 -0
  592. data/spec/models/new_campaign_spec.rb +23 -1
  593. data/spec/models/new_campaign_template_spec.rb +11 -1
  594. data/spec/models/new_coupons_spec.rb +6 -0
  595. data/spec/models/new_customer_session_v2_spec.rb +6 -0
  596. data/spec/models/new_event_spec.rb +6 -0
  597. data/spec/models/new_external_invitation_spec.rb +53 -0
  598. data/spec/models/new_invitation_spec.rb +7 -1
  599. data/spec/models/new_loyalty_program_spec.rb +36 -0
  600. data/spec/models/new_notification_test_spec.rb +79 -0
  601. data/spec/models/new_notification_webhook_spec.rb +6 -0
  602. data/spec/models/new_role_v2_spec.rb +59 -0
  603. data/spec/models/new_store_spec.rb +59 -0
  604. data/spec/models/notification_activation_spec.rb +41 -0
  605. data/spec/models/notification_list_item_spec.rb +59 -0
  606. data/spec/models/notification_test_spec.rb +47 -0
  607. data/spec/models/one_time_code_spec.rb +59 -0
  608. data/spec/models/outgoing_integration_clever_tap_policy_spec.rb +53 -0
  609. data/spec/models/outgoing_integration_iterable_policy_spec.rb +47 -0
  610. data/spec/models/outgoing_integration_mo_engage_policy_spec.rb +59 -0
  611. data/spec/models/outgoing_integration_template_spec.rb +87 -0
  612. data/spec/models/outgoing_integration_template_with_configuration_details_spec.rb +93 -0
  613. data/spec/models/outgoing_integration_templates_spec.rb +41 -0
  614. data/spec/models/patch_item_catalog_action_spec.rb +6 -0
  615. data/spec/models/pending_points_notification_policy_spec.rb +47 -0
  616. data/spec/models/product_spec.rb +41 -0
  617. data/spec/models/remove_from_audience_effect_props_spec.rb +59 -0
  618. data/spec/models/role_v2_application_details_spec.rb +6 -0
  619. data/spec/models/role_v2_base_spec.rb +59 -0
  620. data/spec/models/role_v2_permission_set_spec.rb +1 -1
  621. data/spec/models/role_v2_roles_group_spec.rb +53 -0
  622. data/spec/models/role_v2_spec.rb +21 -3
  623. data/spec/models/saml_connection_internal_spec.rb +47 -0
  624. data/spec/models/saml_login_endpoint_spec.rb +6 -0
  625. data/spec/models/set_discount_per_item_effect_props_spec.rb +12 -0
  626. data/spec/models/sso_config_spec.rb +41 -0
  627. data/spec/models/store_spec.rb +89 -0
  628. data/spec/models/talang_attribute_spec.rb +1 -1
  629. data/spec/models/tier_downgrade_notification_policy_spec.rb +47 -0
  630. data/spec/models/tier_spec.rb +16 -0
  631. data/spec/models/tier_upgrade_notification_policy_spec.rb +47 -0
  632. data/spec/models/tier_will_downgrade_notification_policy_spec.rb +53 -0
  633. data/spec/models/tier_will_downgrade_notification_trigger_spec.rb +51 -0
  634. data/spec/models/time_point_spec.rb +71 -0
  635. data/spec/models/track_event_v2_response_spec.rb +89 -0
  636. data/spec/models/two_fa_config_spec.rb +47 -0
  637. data/spec/models/update_achievement_spec.rb +71 -0
  638. data/spec/models/update_application_api_key_spec.rb +41 -0
  639. data/spec/models/update_application_spec.rb +6 -20
  640. data/spec/models/update_campaign_evaluation_group_spec.rb +79 -0
  641. data/spec/models/update_campaign_spec.rb +23 -1
  642. data/spec/models/update_campaign_template_spec.rb +11 -1
  643. data/spec/models/update_coupon_spec.rb +6 -0
  644. data/spec/models/update_loyalty_program_spec.rb +36 -0
  645. data/spec/models/update_store_spec.rb +53 -0
  646. data/spec/models/update_user_spec.rb +12 -6
  647. data/spec/models/user_spec.rb +23 -5
  648. data/spec/models/webhook_with_outgoing_integration_details_spec.rb +123 -0
  649. metadata +716 -360
@@ -24,6 +24,7 @@ Name | Type | Description | Notes
24
24
  **applications_ids** | **Array<Integer>** | A list of IDs of the Applications that are subscribed to this campaign template. |
25
25
  **campaign_collections** | [**Array<CampaignTemplateCollection>**](CampaignTemplateCollection.md) | The campaign collections from the blueprint campaign for the template. | [optional]
26
26
  **default_campaign_group_id** | **Integer** | The default campaign group ID. | [optional]
27
+ **campaign_type** | **String** | The campaign type. Possible type values: - `cartItem`: Type of campaign that can apply effects only to cart items. - `advanced`: Type of campaign that can apply effects to customer sessions and cart items. | [default to 'advanced']
27
28
  **updated** | **DateTime** | Timestamp of the most recent update to the campaign template or any of its elements. | [optional]
28
29
  **updated_by** | **String** | Name of the user who last updated this campaign template, if available. | [optional]
29
30
  **valid_application_ids** | **Array<Integer>** | The IDs of the Applications that are related to this entity. |
@@ -53,6 +54,7 @@ instance = TalonOne::CampaignTemplate.new(id: 6,
53
54
  applications_ids: null,
54
55
  campaign_collections: null,
55
56
  default_campaign_group_id: 42,
57
+ campaign_type: advanced,
56
58
  updated: 2022-08-24T14:15:22Z,
57
59
  updated_by: Jane Doe,
58
60
  valid_application_ids: [1, 2, 3])
@@ -0,0 +1,21 @@
1
+ # TalonOne::CardExpiringPointsNotificationPolicy
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | Notification name. |
8
+ **triggers** | [**Array<CardExpiringPointsNotificationTrigger>**](CardExpiringPointsNotificationTrigger.md) | |
9
+ **batching_enabled** | **Boolean** | Indicates whether batching is activated. | [optional] [default to true]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'TalonOne'
15
+
16
+ instance = TalonOne::CardExpiringPointsNotificationPolicy.new(name: Notification to Google,
17
+ triggers: null,
18
+ batching_enabled: true)
19
+ ```
20
+
21
+
@@ -0,0 +1,19 @@
1
+ # TalonOne::CardExpiringPointsNotificationTrigger
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **amount** | **Integer** | The amount of period. |
8
+ **period** | **String** | Notification period indicated by a letter; \"w\" means week, \"d\" means day. |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'TalonOne'
14
+
15
+ instance = TalonOne::CardExpiringPointsNotificationTrigger.new(amount: null,
16
+ period: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,35 @@
1
+ # TalonOne::CardLedgerPointsEntryIntegrationAPI
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **Integer** | ID of the transaction that adds loyalty points. |
8
+ **created** | **DateTime** | Date and time the loyalty card points were added. |
9
+ **program_id** | **Integer** | ID of the loyalty program. |
10
+ **customer_profile_id** | **String** | Integration ID of the customer profile linked to the card. | [optional]
11
+ **customer_session_id** | **String** | ID of the customer session where points were added. | [optional]
12
+ **name** | **String** | Name or reason of the transaction that adds loyalty points. |
13
+ **start_date** | **String** | When points become active. Possible values: - `immediate`: Points are active immediately. - `timestamp value`: Points become active at a given date and time. |
14
+ **expiry_date** | **String** | Date when points expire. Possible values are: - `unlimited`: Points have no expiration date. - `timestamp value`: Points expire on the given date and time. |
15
+ **subledger_id** | **String** | ID of the subledger. |
16
+ **amount** | **Float** | Amount of loyalty points added in the transaction. |
17
+
18
+ ## Code Sample
19
+
20
+ ```ruby
21
+ require 'TalonOne'
22
+
23
+ instance = TalonOne::CardLedgerPointsEntryIntegrationAPI.new(id: 123,
24
+ created: null,
25
+ program_id: 324,
26
+ customer_profile_id: URNGV8294NV,
27
+ customer_session_id: 05c2da0d-48fa-4aa1-b629-898f58f1584d,
28
+ name: Reward 10% points of a purchase's current total,
29
+ start_date: 2022-01-02T15:04:05Z07:00,
30
+ expiry_date: 2022-08-02T15:04:05Z07:00,
31
+ subledger_id: sub-123,
32
+ amount: 10.25)
33
+ ```
34
+
35
+
data/docs/CartItem.md CHANGED
@@ -6,11 +6,12 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | Name of item. | [optional]
8
8
  **sku** | **String** | Stock keeping unit of item. |
9
- **quantity** | **Integer** | Quantity of item. **Important:** If you enabled [cart item flattening](https://docs.talon.one/docs/product/campaigns/campaign-evaluation#flattening), the quantity is always one and the same cart item might receive multiple per-item discounts. Ensure you can process multiple discounts on one cart item correctly. |
9
+ **quantity** | **Integer** | Number of units of this item. Due to [cart item flattening](https://docs.talon.one/docs/product/rules/understanding-cart-item-flattening), if you provide a quantity greater than 1, the item will be split in as many items as the provided quantity. This will impact the number of **per-item** effects triggered from your campaigns. |
10
10
  **returned_quantity** | **Integer** | Number of returned items, calculated internally based on returns of this item. | [optional]
11
11
  **remaining_quantity** | **Integer** | Remaining quantity of the item, calculated internally based on returns of this item. | [optional]
12
12
  **price** | **Float** | Price of the item in the currency defined by your Application. This field is required if this item is not part of a [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). If it is part of a catalog, setting a price here overrides the price from the catalog. | [optional]
13
13
  **category** | **String** | Type, group or model of the item. | [optional]
14
+ **product** | [**Product**](Product.md) | | [optional]
14
15
  **weight** | **Float** | Weight of item in grams. | [optional]
15
16
  **height** | **Float** | Height of item in mm. | [optional]
16
17
  **width** | **Float** | Width of item in mm. | [optional]
@@ -18,7 +19,7 @@ Name | Type | Description | Notes
18
19
  **position** | **Float** | Position of the Cart Item in the Cart (calculated internally). | [optional]
19
20
  **attributes** | [**Object**](.md) | Use this property to set a value for the attributes of your choice. [Attributes](https://docs.talon.one/docs/dev/concepts/attributes) represent any information to attach to this cart item. Custom _cart item_ attributes must be created in the Campaign Manager before you set them with this property. | [optional]
20
21
  **additional_costs** | [**Hash<String, AdditionalCost>**](AdditionalCost.md) | Use this property to set a value for the additional costs of this item, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). | [optional]
21
- **catalog_item_id** | **Integer** | The [catalog item ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-cart-item-catalogs). | [optional]
22
+ **catalog_item_id** | **Integer** | The [catalog item ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-a-cart-item-catalog). | [optional]
22
23
 
23
24
  ## Code Sample
24
25
 
@@ -32,6 +33,7 @@ instance = TalonOne::CartItem.new(name: Air Glide,
32
33
  remaining_quantity: 1,
33
34
  price: 99.99,
34
35
  category: shoes,
36
+ product: null,
35
37
  weight: 1130.0,
36
38
  height: null,
37
39
  width: null,
data/docs/CatalogItem.md CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **catalogid** | **Integer** | The ID of the catalog the item belongs to. |
12
12
  **version** | **Integer** | The version of the catalog item. |
13
13
  **attributes** | [**Array<ItemAttribute>**](ItemAttribute.md) | | [optional]
14
+ **product** | [**Product**](Product.md) | | [optional]
14
15
 
15
16
  ## Code Sample
16
17
 
@@ -23,7 +24,8 @@ instance = TalonOne::CatalogItem.new(id: 6,
23
24
  price: 99.99,
24
25
  catalogid: 6,
25
26
  version: 5,
26
- attributes: null)
27
+ attributes: null,
28
+ product: null)
27
29
  ```
28
30
 
29
31
 
@@ -0,0 +1,27 @@
1
+ # TalonOne::ChangeLoyaltyTierLevelEffectProps
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **rule_title** | **String** | The title of the rule that triggered the tier upgrade. |
8
+ **program_id** | **Integer** | The ID of the loyalty program where these points were added. |
9
+ **sub_ledger_id** | **String** | The ID of the subledger within the loyalty program where these points were added. |
10
+ **previous_tier_name** | **String** | The name of the tier from which the user was upgraded. | [optional]
11
+ **new_tier_name** | **String** | The name of the tier to which the user has been upgraded. |
12
+ **expiry_date** | **DateTime** | The expiration date of the new tier. | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'TalonOne'
18
+
19
+ instance = TalonOne::ChangeLoyaltyTierLevelEffectProps.new(rule_title: null,
20
+ program_id: null,
21
+ sub_ledger_id: null,
22
+ previous_tier_name: null,
23
+ new_tier_name: null,
24
+ expiry_date: null)
25
+ ```
26
+
27
+
data/docs/Coupon.md CHANGED
@@ -22,9 +22,10 @@ Name | Type | Description | Notes
22
22
  **referral_id** | **Integer** | The integration ID of the referring customer (if any) for whom this coupon was created as an effect. | [optional]
23
23
  **recipient_integration_id** | **String** | The Integration ID of the customer that is allowed to redeem this coupon. | [optional]
24
24
  **import_id** | **Integer** | The ID of the Import which created this coupon. | [optional]
25
- **reservation** | **Boolean** | Defines the type of reservation: - `true`: The reservation is a soft reservation. Any customer can use the coupon. This is done via the [Create coupon reservation](https://docs.talon.one/integration-api#operation/createCouponReservation) endpoint. - `false`: The reservation is a hard reservation. Only the associated customer (`recipientIntegrationId`) can use the coupon. This is done via the Campaign Manager when you create a coupon for a given `recipientIntegrationId`, the [Create coupons](https://docs.talon.one/management-api#operation/createCoupons) endpoint or [Create coupons for multiple recipients](https://docs.talon.one/management-api#operation/createCouponsForMultipleRecipients) endpoint. | [optional] [default to true]
25
+ **reservation** | **Boolean** | Defines the reservation type: - `true`: The coupon can be reserved for multiple customers. - `false`: The coupon can be reserved only for one customer. It is a personal code. | [optional] [default to true]
26
26
  **batch_id** | **String** | The id of the batch the coupon belongs to. | [optional]
27
- **is_reservation_mandatory** | **Boolean** | Whether the reservation effect actually created a new reservation. | [optional] [default to true]
27
+ **is_reservation_mandatory** | **Boolean** | An indication of whether the code can be redeemed only if it has been reserved first. | [optional] [default to false]
28
+ **implicitly_reserved** | **Boolean** | An indication of whether the coupon is implicitly reserved for all customers. | [optional]
28
29
 
29
30
  ## Code Sample
30
31
 
@@ -51,7 +52,8 @@ instance = TalonOne::Coupon.new(id: 6,
51
52
  import_id: 4,
52
53
  reservation: false,
53
54
  batch_id: 32535-43255,
54
- is_reservation_mandatory: false)
55
+ is_reservation_mandatory: false,
56
+ implicitly_reserved: false)
55
57
  ```
56
58
 
57
59
 
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
18
18
  **coupon_settings** | [**CodeGeneratorSettings**](CodeGeneratorSettings.md) | | [optional]
19
19
  **attributes** | [**Object**](.md) | Arbitrary properties associated with coupons. |
20
20
  **batch_id** | **String** | The batch ID coupons created by this job will bear. |
21
- **status** | **String** | The current status of this request. Possible values: - `pending` - `completed` - `failed` - `coupon pattern full` |
21
+ **status** | **String** | The current status of this request. Possible values: - `pending verification` - `pending` - `completed` - `failed` - `coupon pattern full` |
22
22
  **created_amount** | **Integer** | The number of coupon codes that were already created for this request. |
23
23
  **fail_count** | **Integer** | The number of times this job failed. |
24
24
  **errors** | **Array<String>** | An array of individual problems encountered during the request. |
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | Notification name. |
8
8
  **scopes** | **Array<String>** | |
9
+ **batching_enabled** | **Boolean** | Indicates whether batching is activated. | [optional] [default to true]
9
10
 
10
11
  ## Code Sample
11
12
 
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
13
14
  require 'TalonOne'
14
15
 
15
16
  instance = TalonOne::CouponsNotificationPolicy.new(name: Christmas Sale,
16
- scopes: null)
17
+ scopes: null,
18
+ batching_enabled: true)
17
19
  ```
18
20
 
19
21
 
@@ -0,0 +1,27 @@
1
+ # TalonOne::CreateAchievement
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | The internal name of the achievement used in API requests. **Note**: The name should start with a letter. This cannot be changed after the achievement has been created. |
8
+ **title** | **String** | The display name for the achievement in the Campaign Manager. |
9
+ **description** | **String** | A description of the achievement. |
10
+ **target** | **Float** | The required number of actions or the transactional milestone to complete the achievement. |
11
+ **period** | **String** | The relative duration after which the achievement ends and resets for a particular customer profile. **Note**: The `period` does not start when the achievement is created. The period is a **positive real number** followed by one letter indicating the time unit. Examples: `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can also round certain units down to the beginning of period and up to the end of period.: - `_D` for rounding down days only. Signifies the start of the day. Example: `30D_D` - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. Example: `23W_U` **Note**: You can either use the round down and round up option or set an absolute period. |
12
+ **period_end_override** | [**TimePoint**](TimePoint.md) | | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'TalonOne'
18
+
19
+ instance = TalonOne::CreateAchievement.new(name: Order50Discount,
20
+ title: 50% off on 50th purchase.,
21
+ description: 50% off for every 50th purchase in a year.,
22
+ target: 50.0,
23
+ period: 1Y,
24
+ period_end_override: null)
25
+ ```
26
+
27
+
@@ -4,9 +4,11 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **title** | **String** | Title for API Key. |
8
- **expires** | **DateTime** | The date the API key expired. |
7
+ **title** | **String** | Title of the API key. |
8
+ **expires** | **DateTime** | The date the API key expires. |
9
9
  **platform** | **String** | The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. | [optional]
10
+ **type** | **String** | The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint, [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint, and [Track event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2) endpoint. When using the _Update customer profile_ endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. | [optional]
11
+ **time_offset** | **Integer** | A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. | [optional]
10
12
 
11
13
  ## Code Sample
12
14
 
@@ -15,7 +17,9 @@ require 'TalonOne'
15
17
 
16
18
  instance = TalonOne::CreateApplicationAPIKey.new(title: My generated key,
17
19
  expires: 2023-08-24T14:00Z,
18
- platform: none)
20
+ platform: none,
21
+ type: staging,
22
+ time_offset: 100000)
19
23
  ```
20
24
 
21
25
 
@@ -10,8 +10,10 @@ Name | Type | Description | Notes
10
10
  **campaign_attributes_overrides** | [**Object**](.md) | Custom Campaign Attributes. If the Campaign Template defines the same values, they will be overridden. | [optional]
11
11
  **template_param_values** | [**Array<Binding>**](Binding.md) | Actual values to replace the template placeholder values in the Ruleset bindings. Values for all Template Parameters must be provided. | [optional]
12
12
  **limit_overrides** | [**Array<LimitConfig>**](LimitConfig.md) | Limits for this Campaign. If the Campaign Template or Application define default values for the same limits, they will be overridden. | [optional]
13
- **campaign_groups** | **Array<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to. | [optional]
13
+ **campaign_groups** | **Array<Integer>** | The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/account-settings/managing-campaign-groups) this campaign belongs to. | [optional]
14
14
  **tags** | **Array<String>** | A list of tags for the campaign. If the campaign template has tags, they will be overridden by this list. | [optional]
15
+ **evaluation_group_id** | **Integer** | The ID of the campaign evaluation group the campaign belongs to. | [optional]
16
+ **linked_store_ids** | **Array<Integer>** | A list of store IDs that are linked to the campaign. **Note:** Campaigns with linked store IDs will only be evaluated when there is a [customer session update](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) that references a linked store. | [optional]
15
17
 
16
18
  ## Code Sample
17
19
 
@@ -25,7 +27,9 @@ instance = TalonOne::CreateTemplateCampaign.new(name: Discount campaign,
25
27
  template_param_values: null,
26
28
  limit_overrides: null,
27
29
  campaign_groups: [1, 3],
28
- tags: [summer])
30
+ tags: [summer],
31
+ evaluation_group_id: 2,
32
+ linked_store_ids: [1, 2, 3])
29
33
  ```
30
34
 
31
35
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **effect_id** | **Integer** | The ID of the custom effect that was triggered. |
8
8
  **name** | **String** | The type of the custom effect. |
9
9
  **cart_item_position** | **Float** | The index of the item in the cart item list to which the custom effect is applied. | [optional]
10
- **cart_item_sub_position** | **Float** | When cart item flattening is enabled, the sub position indicates to which item unit the custom effect is applied, for cart items with quantity > 1. | [optional]
10
+ **cart_item_sub_position** | **Float** | For cart items with quantity > 1, the sub position indicates to which item unit the custom effect is applied. | [optional]
11
11
  **bundle_index** | **Integer** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional]
12
12
  **bundle_name** | **String** | The name of the bundle definition. | [optional]
13
13
  **payload** | [**Object**](.md) | The JSON payload of the custom effect. |
@@ -7,8 +7,9 @@ Name | Type | Description | Notes
7
7
  **profile** | [**CustomerProfile**](CustomerProfile.md) | | [optional]
8
8
  **loyalty** | [**Loyalty**](Loyalty.md) | | [optional]
9
9
  **referrals** | [**Array<InventoryReferral>**](InventoryReferral.md) | | [optional]
10
- **coupons** | [**Array<InventoryCoupon>**](InventoryCoupon.md) | The coupons reserved by this profile. This array includes hard and soft reservations. See each coupon's `reservation` property. | [optional]
10
+ **coupons** | [**Array<InventoryCoupon>**](InventoryCoupon.md) | The coupons reserved by this profile. This array includes hard and soft reservations. | [optional]
11
11
  **giveaways** | [**Array<Giveaway>**](Giveaway.md) | | [optional]
12
+ **achievements** | [**Array<AchievementProgress>**](AchievementProgress.md) | | [optional]
12
13
 
13
14
  ## Code Sample
14
15
 
@@ -19,7 +20,8 @@ instance = TalonOne::CustomerInventory.new(profile: null,
19
20
  loyalty: null,
20
21
  referrals: null,
21
22
  coupons: null,
22
- giveaways: null)
23
+ giveaways: null,
24
+ achievements: null)
23
25
  ```
24
26
 
25
27
 
@@ -13,8 +13,8 @@ Name | Type | Description | Notes
13
13
  **total_sales** | **Float** | 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. |
14
14
  **loyalty_memberships** | [**Array<LoyaltyMembership>**](LoyaltyMembership.md) | **DEPRECATED** A list of loyalty programs joined by the customer. | [optional]
15
15
  **audience_memberships** | [**Array<AudienceMembership>**](AudienceMembership.md) | The audiences the customer belongs to. | [optional]
16
- **last_activity** | **DateTime** | Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the rule-engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. |
17
- **sandbox** | **Boolean** | Shows whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). | [optional]
16
+ **last_activity** | **DateTime** | Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not [dry requests](https://docs.talon.one/docs/dev/integration-api/dry-requests/#overlay). For example, [reserving a coupon](https://docs.talon.one/integration-api#operation/createCouponReservation) for a customer doesn't impact this field. |
17
+ **sandbox** | **Boolean** | An indicator of whether the customer is part of a sandbox or live Application. See the [docs](https://docs.talon.one/docs/product/applications/overview#application-environments). | [optional]
18
18
 
19
19
  ## Code Sample
20
20
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **action** | **String** | Defines the action to perform: - `add`: Adds the customer profile to the audience. - `delete`: Removes the customer profile from the audience. |
7
+ **action** | **String** | Defines the action to perform: - `add`: Adds the customer profile to the audience. If the customer profile does not exist, it will be created. - `delete`: Removes the customer profile from the audience. |
8
8
  **profile_integration_id** | **String** | The ID of this customer profile in the third-party integration. |
9
9
  **audience_id** | **Integer** | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). |
10
10
 
@@ -0,0 +1,33 @@
1
+ # TalonOne::CustomerProfileIntegrationResponseV2
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **customer_profile** | [**CustomerProfile**](CustomerProfile.md) | | [optional]
8
+ **event** | [**Event**](Event.md) | | [optional]
9
+ **loyalty** | [**Loyalty**](Loyalty.md) | | [optional]
10
+ **triggered_campaigns** | [**Array<Campaign>**](Campaign.md) | | [optional]
11
+ **rule_failure_reasons** | [**Array<RuleFailureReason>**](RuleFailureReason.md) | | [optional]
12
+ **awarded_giveaways** | [**Array<Giveaway>**](Giveaway.md) | | [optional]
13
+ **effects** | [**Array<Effect>**](Effect.md) | The effects generated by the rules in your running campaigns. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). |
14
+ **created_coupons** | [**Array<Coupon>**](Coupon.md) | |
15
+ **created_referrals** | [**Array<Referral>**](Referral.md) | |
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'TalonOne'
21
+
22
+ instance = TalonOne::CustomerProfileIntegrationResponseV2.new(customer_profile: null,
23
+ event: null,
24
+ loyalty: null,
25
+ triggered_campaigns: null,
26
+ rule_failure_reasons: null,
27
+ awarded_giveaways: null,
28
+ effects: null,
29
+ created_coupons: null,
30
+ created_referrals: null)
31
+ ```
32
+
33
+
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **profile_id** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. |
11
11
  **coupon** | **String** | Any coupon code entered. |
12
12
  **referral** | **String** | Any referral code entered. |
13
- **state** | **String** | Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities#customer-session). | [default to 'open']
13
+ **state** | **String** | Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). | [default to 'open']
14
14
  **cart_items** | [**Array<CartItem>**](CartItem.md) | Serialized JSON representation. |
15
15
  **identifiers** | **Array<String>** | Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). | [optional]
16
16
  **total** | **Float** | The total sum of the cart in one session. |
@@ -9,19 +9,20 @@ Name | Type | Description | Notes
9
9
  **integration_id** | **String** | The integration ID set by your integration layer. |
10
10
  **application_id** | **Integer** | The ID of the application that owns this entity. |
11
11
  **profile_id** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. |
12
+ **store_integration_id** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional]
12
13
  **evaluable_campaign_ids** | **Array<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional]
13
14
  **coupon_codes** | **Array<String>** | Any coupon codes entered. **Important**: If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. | [optional]
14
15
  **referral_code** | **String** | Any referral code entered. **Important**: If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. | [optional]
15
- **loyalty_cards** | **Array<String>** | Any loyalty cards used. | [optional]
16
- **state** | **String** | Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities#customer-session). | [default to 'open']
17
- **cart_items** | [**Array<CartItem>**](CartItem.md) | The items to add to this sessions. - If cart item flattening is disabled: **Do not exceed 1000 items** (regardless of their `quantity`) per request. - If cart item flattening is enabled: **Do not exceed 1000 items** and ensure the sum of all cart item's `quantity` **does not exceed 10.000** per request. |
16
+ **loyalty_cards** | **Array<String>** | Identifier of a loyalty card. | [optional]
17
+ **state** | **String** | Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). | [default to 'open']
18
+ **cart_items** | [**Array<CartItem>**](CartItem.md) | The items to add to this session. **Do not exceed 1000 items** and ensure the sum of all cart item's `quantity` **does not exceed 10.000** per request. |
18
19
  **additional_costs** | [**Hash<String, AdditionalCost>**](AdditionalCost.md) | Use this property to set a value for the additional costs of this session, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). | [optional]
19
20
  **identifiers** | **Array<String>** | Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). **Important**: Ensure the session contains an identifier by the time you close it if: - You [create a unique identifier budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign. - Your campaign has [coupons](https://docs.talon.one/docs/product/campaigns/coupons/coupon-page-overview). | [optional]
20
21
  **attributes** | [**Object**](.md) | Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use [built-in attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) or [custom ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). Custom attributes must be created in the Campaign Manager before you set them with this property. |
21
22
  **first_session** | **Boolean** | Indicates whether this is the first session for the customer's profile. Will always be true for anonymous sessions. |
22
- **total** | **Float** | The total sum of cart-items, as well as additional costs, before any discounts applied. |
23
- **cart_item_total** | **Float** | The total sum of cart-items before any discounts applied. |
24
- **additional_cost_total** | **Float** | The total sum of additional costs before any discounts applied. |
23
+ **total** | **Float** | The total value of cart items and additional costs in the session, before any discounts are applied. |
24
+ **cart_item_total** | **Float** | The total value of cart items, before any discounts are applied. |
25
+ **additional_cost_total** | **Float** | The total value of additional costs, before any discounts are applied. |
25
26
  **updated** | **DateTime** | Timestamp of the most recent event received on this session. |
26
27
 
27
28
  ## Code Sample
@@ -34,6 +35,7 @@ instance = TalonOne::CustomerSessionV2.new(id: 6,
34
35
  integration_id: URNGV8294NV,
35
36
  application_id: 322,
36
37
  profile_id: URNGV8294NV,
38
+ store_integration_id: STORE-001,
37
39
  evaluable_campaign_ids: [10, 12],
38
40
  coupon_codes: [XMAS-20-2021],
39
41
  referral_code: NT2K54D9,
@@ -0,0 +1,17 @@
1
+ # TalonOne::DeactivateUserRequest
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **email** | **String** | The email address associated with the user profile. |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'TalonOne'
13
+
14
+ instance = TalonOne::DeactivateUserRequest.new(email: john.doe@example.com)
15
+ ```
16
+
17
+
@@ -0,0 +1,17 @@
1
+ # TalonOne::DeleteUserRequest
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **email** | **String** | The email address associated with the user profile. |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'TalonOne'
13
+
14
+ instance = TalonOne::DeleteUserRequest.new(email: john.doe@example.com)
15
+ ```
16
+
17
+
data/docs/Effect.md CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **effect_type** | **String** | The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). |
12
12
  **triggered_by_coupon** | **Integer** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional]
13
13
  **triggered_for_catalog_item** | **Integer** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional]
14
+ **condition_index** | **Integer** | The index of the condition that was triggered. | [optional]
14
15
  **props** | [**Object**](.md) | The properties of the effect. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). |
15
16
 
16
17
  ## Code Sample
@@ -25,6 +26,7 @@ instance = TalonOne::Effect.new(campaign_id: 244,
25
26
  effect_type: rejectCoupon,
26
27
  triggered_by_coupon: 4928,
27
28
  triggered_for_catalog_item: 786,
29
+ condition_index: 786,
28
30
  props: null)
29
31
  ```
30
32
 
data/docs/EffectEntity.md CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **effect_type** | **String** | The type of effect that was triggered. See [API effects](https://docs.talon.one/docs/dev/integration-api/api-effects). |
12
12
  **triggered_by_coupon** | **Integer** | The ID of the coupon that was being evaluated when this effect was triggered. | [optional]
13
13
  **triggered_for_catalog_item** | **Integer** | The ID of the catalog item that was being evaluated when this effect was triggered. | [optional]
14
+ **condition_index** | **Integer** | The index of the condition that was triggered. | [optional]
14
15
 
15
16
  ## Code Sample
16
17
 
@@ -23,7 +24,8 @@ instance = TalonOne::EffectEntity.new(campaign_id: 244,
23
24
  rule_name: Give 20% discount,
24
25
  effect_type: rejectCoupon,
25
26
  triggered_by_coupon: 4928,
26
- triggered_for_catalog_item: 786)
27
+ triggered_for_catalog_item: 786,
28
+ condition_index: 786)
27
29
  ```
28
30
 
29
31
 
data/docs/EmailEntity.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **email** | **String** | The email address associated with your account. |
7
+ **email** | **String** | The email address associated with the user profile. |
8
8
 
9
9
  ## Code Sample
10
10
 
data/docs/Environment.md CHANGED
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **variables** | **String** | A stringified version of the environment's Talang variables scope. |
14
14
  **giveaways_pools** | [**Array<GiveawaysPool>**](GiveawaysPool.md) | The giveaways pools that the application is subscribed to. | [optional]
15
15
  **loyalty_programs** | [**Array<LoyaltyProgram>**](LoyaltyProgram.md) | The loyalty programs that the application is subscribed to. | [optional]
16
+ **achievements** | [**Array<Achievement>**](Achievement.md) | The achievements, linked to the campaigns, belonging to the application. | [optional]
16
17
  **attributes** | [**Array<Attribute>**](Attribute.md) | The attributes that the application is subscribed to. | [optional]
17
18
  **additional_costs** | [**Array<AccountAdditionalCost>**](AccountAdditionalCost.md) | The additional costs that the application is subscribed to. | [optional]
18
19
  **audiences** | [**Array<Audience>**](Audience.md) | The audiences contained in the account which the application belongs to. | [optional]
@@ -32,6 +33,7 @@ instance = TalonOne::Environment.new(id: 6,
32
33
  variables: null,
33
34
  giveaways_pools: null,
34
35
  loyalty_programs: null,
36
+ achievements: null,
35
37
  attributes: null,
36
38
  additional_costs: null,
37
39
  audiences: null,
data/docs/Event.md CHANGED
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **created** | **DateTime** | The time this entity was created. |
9
9
  **application_id** | **Integer** | The ID of the application that owns this entity. |
10
10
  **profile_id** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional]
11
+ **store_integration_id** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional]
11
12
  **type** | **String** | A string representing the event. Must not be a reserved event name. |
12
13
  **attributes** | [**Object**](.md) | Arbitrary additional JSON data associated with the event. |
13
14
  **session_id** | **String** | The ID of the session that this event occurred in. | [optional]
@@ -24,6 +25,7 @@ instance = TalonOne::Event.new(id: 6,
24
25
  created: 2020-06-10T09:05:27.993483Z,
25
26
  application_id: 322,
26
27
  profile_id: URNGV8294NV,
28
+ store_integration_id: STORE-001,
27
29
  type: pageViewed,
28
30
  attributes: {"myAttribute":"myValue"},
29
31
  session_id: 175KJPS947296,
data/docs/EventV2.md CHANGED
@@ -5,9 +5,10 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **profile_id** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional]
8
+ **store_integration_id** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional]
8
9
  **evaluable_campaign_ids** | **Array<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional]
9
- **type** | **String** | A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/events#creating-a-custom-event) of type `event` in the Campaign Manager. |
10
- **attributes** | [**Object**](.md) | Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-custom-attributes). | [optional]
10
+ **type** | **String** | A string representing the event name. Must not be a reserved event name. You create this value when you [create an attribute](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) of type `event` in the Campaign Manager. |
11
+ **attributes** | [**Object**](.md) | Arbitrary additional JSON properties associated with the event. They must be created in the Campaign Manager before setting them with this property. See [creating custom attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#creating-a-custom-attribute). | [optional]
11
12
 
12
13
  ## Code Sample
13
14
 
@@ -15,6 +16,7 @@ Name | Type | Description | Notes
15
16
  require 'TalonOne'
16
17
 
17
18
  instance = TalonOne::EventV2.new(profile_id: URNGV8294NV,
19
+ store_integration_id: STORE-001,
18
20
  evaluable_campaign_ids: [10, 12],
19
21
  type: pageViewed,
20
22
  attributes: {"myAttribute":"myValue"})