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
@@ -46,7 +46,7 @@ describe 'IntegrationApi' do
46
46
 
47
47
  # unit tests for create_coupon_reservation
48
48
  # Create coupon reservation
49
- # Create a coupon reservation for specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation effect](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). Reserving a coupon allows you to associate a coupon code to a given customer(s). You can then list the reserved coupons of a given customer with the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. If a coupon gets created for a specific user, it will automatically appear in their coupons. When a user redeems a coupon, a reservation is automatically created after the redemption and the used coupon will be returned in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. For example, you can use this endpoint and `List customer data` to create a _coupon wallet_ by reserving coupon codes for a customer, and then displaying their coupon wallet when they visit your store. <div class=\"redoc-section\"> <p class=\"title\">Important</p> This endpoint creates a **soft** reservation. _Any_ customer can use a reserved coupon code and proceed to checkout. To create a hard reservation, you can: - use the [Create coupons](https://docs.talon.one/management-api#operation/createCoupons) endpoint or, - use the [Create coupons for multiple recipients](https://docs.talon.one/management-api#operation/createCouponsForMultipleRecipients) endpoint setting the `recipientsIntegrationId` property or, - create a coupon code with the **Reservation mandatory** option then use the [Create coupon code reservation effect](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). </div> To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
49
+ # Create a coupon reservation for specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation effect](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). Reserving a coupon allows you to associate a coupon code to a given customer(s). You can then list the reserved coupons of a given customer with the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. If a coupon gets created for a specific user, it will automatically appear in their coupons. When a user redeems a coupon, a reservation is automatically created after the redemption and the used coupon will be returned in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. For example, you can use this endpoint and `List customer data` to create a _coupon wallet_ by reserving coupon codes for a customer, and then displaying their coupon wallet when they visit your store. If the **Coupon visibility** checkbox was selected when [creating a universal code](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons#generating-a-universal-code), the coupon code is implicitly reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. <div class=\"redoc-section\"> <p class=\"title\">Important</p> This endpoint creates a **soft** reservation. _Any_ customer can use a reserved coupon code and proceed to checkout. To create a hard reservation, you can: - use the [Create coupons](https://docs.talon.one/management-api#operation/createCoupons) endpoint or, - use the [Create coupons for multiple recipients](https://docs.talon.one/management-api#operation/createCouponsForMultipleRecipients) endpoint setting the `recipientsIntegrationId` property or, - create a coupon code with the **Reservation mandatory** option then use the [Create coupon code reservation effect](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). This endpoint overrides the reservation limit set for the coupon code during coupon creation. </div> To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
50
50
  # @param coupon_value The code of the coupon.
51
51
  # @param body body
52
52
  # @param [Hash] opts the optional parameters
@@ -85,7 +85,7 @@ describe 'IntegrationApi' do
85
85
  # unit tests for delete_audience_memberships_v2
86
86
  # Delete audience memberships
87
87
  # Remove all members from this audience.
88
- # @param audience_id The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2).
88
+ # @param audience_id The ID of the audience.
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [nil]
91
91
  describe 'delete_audience_memberships_v2 test' do
@@ -97,7 +97,7 @@ describe 'IntegrationApi' do
97
97
  # unit tests for delete_audience_v2
98
98
  # Delete audience
99
99
  # Delete an audience created by a third-party integration. **Warning:** This endpoint also removes any associations recorded between a customer profile and this audience. **Note:** Audiences can also be deleted via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience).
100
- # @param audience_id The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2).
100
+ # @param audience_id The ID of the audience.
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @return [nil]
103
103
  describe 'delete_audience_v2 test' do
@@ -122,7 +122,7 @@ describe 'IntegrationApi' do
122
122
  # unit tests for delete_customer_data
123
123
  # Delete customer's personal data
124
124
  # Delete all attributes on the customer profile and on entities that reference this customer profile. **Important:** To preserve performance, we recommend avoiding deleting customer data during peak-traffic hours.
125
- # @param integration_id The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration Id with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
125
+ # @param integration_id The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
126
126
  # @param [Hash] opts the optional parameters
127
127
  # @return [nil]
128
128
  describe 'delete_customer_data test' do
@@ -134,13 +134,14 @@ describe 'IntegrationApi' do
134
134
  # unit tests for get_customer_inventory
135
135
  # List customer data
136
136
  # Return the customer inventory regarding entities referencing this customer profile's `integrationId`. Typical entities returned are: customer profile information, referral codes, loyalty points, loyalty cards and reserved coupons. Reserved coupons also include redeemed coupons.
137
- # @param integration_id The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration Id with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
137
+ # @param integration_id The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
138
138
  # @param [Hash] opts the optional parameters
139
139
  # @option opts [Boolean] :profile Set to `true` to include customer profile information in the response.
140
140
  # @option opts [Boolean] :referrals Set to `true` to include referral information in the response.
141
141
  # @option opts [Boolean] :coupons Set to `true` to include coupon information in the response.
142
142
  # @option opts [Boolean] :loyalty Set to `true` to include loyalty information in the response.
143
143
  # @option opts [Boolean] :giveaways Set to `true` to include giveaways information in the response.
144
+ # @option opts [Boolean] :achievements Set to `true` to include achievement information in the response.
144
145
  # @return [CustomerInventory]
145
146
  describe 'get_customer_inventory test' do
146
147
  it 'should work' do
@@ -162,11 +163,12 @@ describe 'IntegrationApi' do
162
163
 
163
164
  # unit tests for get_loyalty_balances
164
165
  # Get customer's loyalty points
165
- # Retrieve loyalty ledger balances for the given Integration ID in the specified loyalty program. You can filter balances by date. If no filtering options are applied, you retrieve all loyalty balances on the current date for the given integration ID. Loyalty balances are calculated when Talon.One receives your request using the points stored in our database, so retrieving a large number of balances at once can impact performance. **Note:** For more information, see [our documentation on managing loyalty data](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-data#obtaining-the-loyalty-balances-of-a-customer).
166
- # @param loyalty_program_id Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
166
+ # Retrieve loyalty ledger balances for the given Integration ID in the specified loyalty program. You can filter balances by date and subledger ID. **Note**: If no filtering options are applied, you retrieve all loyalty balances on the current date for the given integration ID. Loyalty balances are calculated when Talon.One receives your request using the points stored in our database, so retrieving a large number of balances at once can impact performance. For more information, see: - [Managing card-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards) - [Managing profile-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-pb-lp-data)
167
+ # @param loyalty_program_id Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
167
168
  # @param integration_id The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
168
169
  # @param [Hash] opts the optional parameters
169
- # @option opts [DateTime] :end_date Used to return balances only for entries older than this timestamp. The expired, active, and pending points are relative to this timestamp. **Note:** It must be an RFC3339 timestamp string.
170
+ # @option opts [DateTime] :end_date Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
171
+ # @option opts [Array<String>] :subledger_id Filter results by one or more subledger IDs. Must be exact match.
170
172
  # @return [LoyaltyBalances]
171
173
  describe 'get_loyalty_balances test' do
172
174
  it 'should work' do
@@ -180,7 +182,8 @@ describe 'IntegrationApi' do
180
182
  # @param loyalty_program_id Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
181
183
  # @param loyalty_card_id Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
182
184
  # @param [Hash] opts the optional parameters
183
- # @option opts [DateTime] :end_date Used to return balances only for entries older than this timestamp. The expired, active, and pending points are relative to this timestamp. **Note:** It must be an RFC3339 timestamp string.
185
+ # @option opts [DateTime] :end_date Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, &#x60;T23:59:59&#x60; to specify the end of the day. The time zone setting considered is &#x60;UTC&#x60;. If you do not include a time component, a default time value of &#x60;T00:00:00&#x60; (midnight) in &#x60;UTC&#x60; is considered.
186
+ # @option opts [Array<String>] :subledger_id Filter results by one or more subledger IDs. Must be exact match.
184
187
  # @return [LoyaltyBalances]
185
188
  describe 'get_loyalty_card_balances test' do
186
189
  it 'should work' do
@@ -188,6 +191,23 @@ describe 'IntegrationApi' do
188
191
  end
189
192
  end
190
193
 
194
+ # unit tests for get_loyalty_card_points
195
+ # List card&#39;s unused loyalty points
196
+ # Get paginated results of loyalty points for a given loyalty card identifier in a card-based loyalty program. This endpoint returns only the balances of unused points on a loyalty card. You can filter points by status: - &#x60;active&#x60;: Points ready to be redeemed. - &#x60;pending&#x60;: Points with a start date in the future. - &#x60;expired&#x60;: Points with an expiration date in the past.
197
+ # @param loyalty_program_id Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
198
+ # @param loyalty_card_id Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
199
+ # @param [Hash] opts the optional parameters
200
+ # @option opts [String] :status Filter points based on their status.
201
+ # @option opts [String] :subledger_id The ID of the subledger by which we filter the data.
202
+ # @option opts [Integer] :page_size The number of items in the response.
203
+ # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
204
+ # @return [InlineResponse2003]
205
+ describe 'get_loyalty_card_points test' do
206
+ it 'should work' do
207
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
208
+ end
209
+ end
210
+
191
211
  # unit tests for get_loyalty_card_transactions
192
212
  # List card&#39;s transactions
193
213
  # Retrieve loyalty transaction logs for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned.
@@ -195,10 +215,11 @@ describe 'IntegrationApi' do
195
215
  # @param loyalty_card_id Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
196
216
  # @param [Hash] opts the optional parameters
197
217
  # @option opts [String] :subledger_id The ID of the subledger by which we filter the data.
198
- # @option opts [DateTime] :start_date Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** It must be an RFC3339 timestamp string.
199
- # @option opts [DateTime] :end_date Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** It must be an RFC3339 timestamp string.
200
- # @option opts [Integer] :page_size The number of items in this response.
201
- # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
218
+ # @option opts [String] :loyalty_transaction_type Filter results by loyalty transaction type: - &#x60;manual&#x60;: Loyalty transaction that was done manually. - &#x60;session&#x60;: Loyalty transaction that resulted from a customer session. - &#x60;import&#x60;: Loyalty transaction that was imported from a CSV file.
219
+ # @option opts [DateTime] :start_date Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, &#x60;T23:59:59&#x60; to specify the end of the day. The time zone setting considered is &#x60;UTC&#x60;. If you do not include a time component, a default time value of &#x60;T00:00:00&#x60; (midnight) in &#x60;UTC&#x60; is considered.
220
+ # @option opts [DateTime] :end_date Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, &#x60;T23:59:59&#x60; to specify the end of the day. The time zone setting considered is &#x60;UTC&#x60;. If you do not include a time component, a default time value of &#x60;T00:00:00&#x60; (midnight) in &#x60;UTC&#x60; is considered.
221
+ # @option opts [Integer] :page_size The number of items in the response.
222
+ # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
202
223
  # @return [InlineResponse2001]
203
224
  describe 'get_loyalty_card_transactions test' do
204
225
  it 'should work' do
@@ -206,17 +227,35 @@ describe 'IntegrationApi' do
206
227
  end
207
228
  end
208
229
 
230
+ # unit tests for get_loyalty_program_profile_points
231
+ # List customer&#39;s unused loyalty points
232
+ # Get paginated results of loyalty points for a given Integration ID in the specified profile-based loyalty program. This endpoint returns only the balances of unused points linked to a customer profile. You can filter points by status: - &#x60;active&#x60;: Points ready to be redeemed. - &#x60;pending&#x60;: Points with a start date in the future. - &#x60;expired&#x60;: Points with an expiration date in the past.
233
+ # @param loyalty_program_id Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
234
+ # @param integration_id The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
235
+ # @param [Hash] opts the optional parameters
236
+ # @option opts [String] :status Filter points based on their status.
237
+ # @option opts [String] :subledger_id The ID of the subledger by which we filter the data.
238
+ # @option opts [Integer] :page_size The number of items in the response.
239
+ # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
240
+ # @return [InlineResponse2004]
241
+ describe 'get_loyalty_program_profile_points test' do
242
+ it 'should work' do
243
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
244
+ end
245
+ end
246
+
209
247
  # unit tests for get_loyalty_program_profile_transactions
210
248
  # List customer&#39;s loyalty transactions
211
249
  # Retrieve paginated results of loyalty transaction logs for the given Integration ID in the specified loyalty program. You can filter transactions by date. If no filters are applied, the last 50 loyalty transactions for the given integration ID are returned. **Note:** To retrieve all loyalty program transaction logs in a given loyalty program, use the [List loyalty program transactions](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgramTransactions) endpoint.
212
- # @param loyalty_program_id Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
250
+ # @param loyalty_program_id Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
213
251
  # @param integration_id The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
214
252
  # @param [Hash] opts the optional parameters
215
253
  # @option opts [String] :subledger_id The ID of the subledger by which we filter the data.
216
- # @option opts [DateTime] :start_date Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** It must be an RFC3339 timestamp string.
217
- # @option opts [DateTime] :end_date Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** It must be an RFC3339 timestamp string.
218
- # @option opts [Integer] :page_size The number of items in this response.
219
- # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
254
+ # @option opts [String] :loyalty_transaction_type Filter results by loyalty transaction type: - &#x60;manual&#x60;: Loyalty transaction that was done manually. - &#x60;session&#x60;: Loyalty transaction that resulted from a customer session. - &#x60;import&#x60;: Loyalty transaction that was imported from a CSV file.
255
+ # @option opts [DateTime] :start_date Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, &#x60;T23:59:59&#x60; to specify the end of the day. The time zone setting considered is &#x60;UTC&#x60;. If you do not include a time component, a default time value of &#x60;T00:00:00&#x60; (midnight) in &#x60;UTC&#x60; is considered.
256
+ # @option opts [DateTime] :end_date Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, &#x60;T23:59:59&#x60; to specify the end of the day. The time zone setting considered is &#x60;UTC&#x60;. If you do not include a time component, a default time value of &#x60;T00:00:00&#x60; (midnight) in &#x60;UTC&#x60; is considered.
257
+ # @option opts [Integer] :page_size The number of items in the response.
258
+ # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
220
259
  # @return [InlineResponse2002]
221
260
  describe 'get_loyalty_program_profile_transactions test' do
222
261
  it 'should work' do
@@ -238,7 +277,7 @@ describe 'IntegrationApi' do
238
277
 
239
278
  # unit tests for link_loyalty_card_to_profile
240
279
  # Link customer profile to card
241
- # [Loyalty cards](https://docs.talon.one/docs/product/loyalty-programs/loyalty-cards/loyalty-card-overview) allow customers to collect and spend loyalty points within a [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). They are useful to gamify loyalty programs and can be used with or without customer profiles linked to them. Link a customer profile to a given loyalty card for the card to be set as **Registered**. This affects how it can be used. See the [docs](https://docs.talon.one/docs/product/loyalty-programs/loyalty-cards/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). **Note:** You can link as many customer profiles to a given loyalty card as the [**card user limit**](https://docs.talon.one/docs/product/loyalty-programs/creating-loyalty-programs#creating-card-based-loyalty-programs) allows.
280
+ # [Loyalty cards](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) allow customers to collect and spend loyalty points within a [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). They are useful to gamify loyalty programs and can be used with or without customer profiles linked to them. Link a customer profile to a given loyalty card for the card to be set as **Registered**. This affects how it can be used. See the [docs](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). **Note:** You can link as many customer profiles to a given loyalty card as the [**card user limit**](https://docs.talon.one/docs/product/loyalty-programs/card-based/creating-cb-programs) allows.
242
281
  # @param loyalty_program_id Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
243
282
  # @param loyalty_card_id Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
244
283
  # @param body body
@@ -252,7 +291,7 @@ describe 'IntegrationApi' do
252
291
 
253
292
  # unit tests for reopen_customer_session
254
293
  # Reopen customer session
255
- # Reopen a closed [customer session](https://docs.talon.one/docs/dev/concepts/entities#customer-session). For example, if a session has been completed but still needs to be edited, you can reopen it with this endpoint. A reopen session is treated like a standard open session. When reopening a session: - The &#x60;talon_session_reopened&#x60; event is triggered. You can see it in the **Events** view in the Campaign Manager. - The session state is updated to &#x60;open&#x60;. - Modified budgets and triggered effects when the session was closed are rolled back except for the list below. &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Effects and budgets unimpacted by a session reopening&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &lt;p&gt;The following effects and budgets are left the way they were once the session was originally closed:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Add free item effect&lt;/li&gt; &lt;li&gt;Any &lt;strong&gt;not pending&lt;/strong&gt; pending loyalty points.&lt;/li&gt; &lt;li&gt;Award giveaway&lt;/li&gt; &lt;li&gt;Coupon and referral creation&lt;/li&gt; &lt;li&gt;Coupon reservation&lt;/li&gt; &lt;li&gt;Custom effect&lt;/li&gt; &lt;li&gt;Update attribute value&lt;/li&gt; &lt;li&gt;Update cart item attribute value&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;p&gt;To see an example of roll back, see the &lt;a href&#x3D;\&quot;https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\&quot;&gt;Cancelling a session with campaign budgets tutorial&lt;/a&gt;.&lt;/p&gt; &lt;/details&gt; **Note:** If your order workflow requires you to create a new session instead of reopening a session, use the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint to cancel a closed session and create a new one.
294
+ # Reopen a closed [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). For example, if a session has been completed but still needs to be edited, you can reopen it with this endpoint. A reopen session is treated like a standard open session. When reopening a session: - The &#x60;talon_session_reopened&#x60; event is triggered. You can see it in the **Events** view in the Campaign Manager. - The session state is updated to &#x60;open&#x60;. - Modified budgets and triggered effects when the session was closed are rolled back except for the list below. &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Effects and budgets unimpacted by a session reopening&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &lt;p&gt;The following effects and budgets are left the way they were once the session was originally closed:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Add free item effect&lt;/li&gt; &lt;li&gt;Any &lt;strong&gt;non-pending&lt;/strong&gt; loyalty points&lt;/li&gt; &lt;li&gt;Award giveaway&lt;/li&gt; &lt;li&gt;Coupon and referral creation&lt;/li&gt; &lt;li&gt;Coupon reservation&lt;/li&gt; &lt;li&gt;Custom effect&lt;/li&gt; &lt;li&gt;Update attribute value&lt;/li&gt; &lt;li&gt;Update cart item attribute value&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;p&gt;To see an example of roll back, see the &lt;a href&#x3D;\&quot;https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\&quot;&gt;Cancelling a session with campaign budgets tutorial&lt;/a&gt;.&lt;/p&gt; &lt;/details&gt; **Note:** If your order workflow requires you to create a new session instead of reopening a session, use the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint to cancel a closed session and create a new one.
256
295
  # @param customer_session_id The &#x60;integration ID&#x60; of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager&#39;s **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
257
296
  # @param [Hash] opts the optional parameters
258
297
  # @return [ReopenSessionResponse]
@@ -264,7 +303,7 @@ describe 'IntegrationApi' do
264
303
 
265
304
  # unit tests for return_cart_items
266
305
  # Return cart items
267
- # Create a new return request for the specified cart items. This endpoint automatically changes the session state from &#x60;closed&#x60; to &#x60;partially_returned&#x60;. Its behavior depends on whether [cart item flattening](https://docs.talon.one/docs/product/campaigns/campaign-evaluation#flattening) is enabled for the Application. **Note:** This will roll back any effects associated with these cart items. For more information, see [our documentation on session states](https://docs.talon.one/docs/dev/concepts/entities#customer-session-states) and [this tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session).
306
+ # Create a new return request for the specified cart items. This endpoint automatically changes the session state from &#x60;closed&#x60; to &#x60;partially_returned&#x60;. **Note:** This will roll back any effects associated with these cart items. For more information, see [our documentation on session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) and [this tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session).
268
307
  # @param customer_session_id The &#x60;integration ID&#x60; of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager&#39;s **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
269
308
  # @param body body
270
309
  # @param [Hash] opts the optional parameters
@@ -278,7 +317,7 @@ describe 'IntegrationApi' do
278
317
 
279
318
  # unit tests for sync_catalog
280
319
  # Sync cart item catalog
281
- # Perform one or more of the following sync actions on this cart item catalog, up to 1000 actions: - Add an item to the catalog. - Edit the attributes of an item in the catalog. - Edit the attributes of more than one item in the catalog. - Remove an item from the catalog. - Remove more than one item from the catalog. **Note:** For more information, see [our documentation on managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs#displaying-the-details-and-content-of-a-catalog) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The &#x60;filters&#x60; array contains an object with the following properties: - &#x60;attr&#x60;: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - &#x60;op&#x60;: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the &#x60;value&#x60; property for the attribute selected in &#x60;attr&#x60;. The value of &#x60;op&#x60; can be one of the following: - &#x60;EQ&#x60;: Equal to &#x60;value&#x60; - &#x60;LT&#x60;: Less than &#x60;value&#x60; - &#x60;LE&#x60;: Less than or equal to &#x60;value&#x60; - &#x60;GT&#x60;: Greater than &#x60;value&#x60; - &#x60;GE&#x60;: Greater than or equal to &#x60;value&#x60; - &#x60;IN&#x60;: One of the comma-separated values that &#x60;value&#x60; is set to. **Note:** &#x60;GE&#x60;, &#x60;LE&#x60;, &#x60;GT&#x60;, &#x60;LT&#x60; are for numeric values only. - &#x60;value&#x60;: The value of the attribute selected in &#x60;attr&#x60;. ### Payload examples Synchronization actions are sent as &#x60;PUT&#x60; requests. See the structure for each action: &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Adding an item to the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;attributes\&quot;: { \&quot;color\&quot;: \&quot;Navy blue\&quot;, \&quot;type\&quot;: \&quot;shoe\&quot; }, \&quot;replaceIfExists\&quot;: true, \&quot;sku\&quot;: \&quot;SKU1241028\&quot;, \&quot;price\&quot;: 100 }, \&quot;type\&quot;: \&quot;ADD\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Editing the attributes of an item in the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;attributes\&quot;: { \&quot;age\&quot;: 11, \&quot;origin\&quot;: \&quot;germany\&quot; }, \&quot;createIfNotExists\&quot;: false, \&quot;sku\&quot;: \&quot;SKU1241028\&quot; }, \&quot;type\&quot;: \&quot;PATCH\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Editing the attributes of several items at once&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;attributes\&quot;: { \&quot;color\&quot;: \&quot;red\&quot; }, \&quot;filters\&quot;: [ { \&quot;attr\&quot;: \&quot;color\&quot;, \&quot;op\&quot;: \&quot;EQ\&quot;, \&quot;value\&quot;: \&quot;blue\&quot; } ] }, \&quot;type\&quot;: \&quot;PATCH_MANY\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Removing an item from the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;sku\&quot;: \&quot;SKU1241028\&quot; }, \&quot;type\&quot;: \&quot;REMOVE\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Removing several items from the catalog at once&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;filters\&quot;: [ { \&quot;attr\&quot;: \&quot;color\&quot;, \&quot;op\&quot;: \&quot;EQ\&quot;, \&quot;value\&quot;: \&quot;blue\&quot; } ] }, \&quot;type\&quot;: \&quot;REMOVE_MANY\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Removing shoes of sizes above 45 from the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &lt;p&gt; Let&#39;s imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:&lt;/p&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;filters\&quot;: [ { \&quot;attr\&quot;: \&quot;size\&quot;, \&quot;op\&quot;: \&quot;GT\&quot;, \&quot;value\&quot;: \&quot;45\&quot; } ] }, \&quot;type\&quot;: \&quot;REMOVE_MANY\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt;
320
+ # Perform one or more of the following actions for a given cart item catalog: - Adding an item to the catalog. - Adding several items to the catalog. - Editing the attributes of an item in the catalog. - Editing the attributes of several items in the catalog. - Removing an item from the catalog. - Removing several items from the catalog. You can add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique &#x60;SKU&#x60;. **Important**: Syncing items with duplicate &#x60;SKU&#x60; values in a single request returns an error message with a &#x60;400&#x60; status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The &#x60;filters&#x60; array contains an object with the following properties: - &#x60;attr&#x60;: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - &#x60;op&#x60;: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the &#x60;value&#x60; property for the attribute selected in &#x60;attr&#x60;. The value of &#x60;op&#x60; can be one of the following: - &#x60;EQ&#x60;: Equal to &#x60;value&#x60; - &#x60;LT&#x60;: Less than &#x60;value&#x60; - &#x60;LE&#x60;: Less than or equal to &#x60;value&#x60; - &#x60;GT&#x60;: Greater than &#x60;value&#x60; - &#x60;GE&#x60;: Greater than or equal to &#x60;value&#x60; - &#x60;IN&#x60;: One of the comma-separated values that &#x60;value&#x60; is set to. **Note:** &#x60;GE&#x60;, &#x60;LE&#x60;, &#x60;GT&#x60;, &#x60;LT&#x60; are for numeric values only. - &#x60;value&#x60;: The value of the attribute selected in &#x60;attr&#x60;. ### Payload examples Synchronization actions are sent as &#x60;PUT&#x60; requests. See the structure for each action: &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Adding an item to the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;attributes\&quot;: { \&quot;color\&quot;: \&quot;Navy blue\&quot;, \&quot;type\&quot;: \&quot;shoes\&quot; }, \&quot;replaceIfExists\&quot;: true, \&quot;sku\&quot;: \&quot;SKU1241028\&quot;, \&quot;price\&quot;: 100, \&quot;product\&quot;: { \&quot;name\&quot;: \&quot;sneakers\&quot; } }, \&quot;type\&quot;: \&quot;ADD\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Adding several items to the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;attributes\&quot;: { \&quot;color\&quot;: \&quot;Navy blue\&quot;, \&quot;type\&quot;: \&quot;shoes\&quot; }, \&quot;replaceIfExists\&quot;: true, \&quot;sku\&quot;: \&quot;SKU1241027\&quot;, \&quot;price\&quot;: 100, \&quot;product\&quot;: { \&quot;name\&quot;: \&quot;sneakers\&quot; } }, \&quot;type\&quot;: \&quot;ADD\&quot; }, { \&quot;payload\&quot;: { \&quot;attributes\&quot;: { \&quot;color\&quot;: \&quot;Navy blue\&quot;, \&quot;type\&quot;: \&quot;shoes\&quot; }, \&quot;replaceIfExists\&quot;: true, \&quot;sku\&quot;: \&quot;SKU1241028\&quot;, \&quot;price\&quot;: 100, \&quot;product\&quot;: { \&quot;name\&quot;: \&quot;sneakers\&quot; } }, \&quot;type\&quot;: \&quot;ADD\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Editing the attributes of an item in the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;attributes\&quot;: { \&quot;age\&quot;: 11, \&quot;origin\&quot;: \&quot;germany\&quot; }, \&quot;createIfNotExists\&quot;: false, \&quot;sku\&quot;: \&quot;SKU1241028\&quot;, \&quot;product\&quot;: { \&quot;name\&quot;: \&quot;sneakers\&quot; } }, \&quot;type\&quot;: \&quot;PATCH\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Editing the attributes of several items in the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;attributes\&quot;: { \&quot;color\&quot;: \&quot;red\&quot; }, \&quot;filters\&quot;: [ { \&quot;attr\&quot;: \&quot;color\&quot;, \&quot;op\&quot;: \&quot;EQ\&quot;, \&quot;value\&quot;: \&quot;blue\&quot; } ] }, \&quot;type\&quot;: \&quot;PATCH_MANY\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Removing an item from the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;sku\&quot;: \&quot;SKU1241028\&quot; }, \&quot;type\&quot;: \&quot;REMOVE\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Removing several items from the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;filters\&quot;: [ { \&quot;attr\&quot;: \&quot;color\&quot;, \&quot;op\&quot;: \&quot;EQ\&quot;, \&quot;value\&quot;: \&quot;blue\&quot; } ] }, \&quot;type\&quot;: \&quot;REMOVE_MANY\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt; &lt;details&gt; &lt;summary&gt;&lt;strong&gt;Removing shoes of sizes above 45 from the catalog&lt;/strong&gt;&lt;/summary&gt; &lt;div&gt; &lt;p&gt; Let&#39;s imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:&lt;/p&gt; &#x60;&#x60;&#x60;json { \&quot;actions\&quot;: [ { \&quot;payload\&quot;: { \&quot;filters\&quot;: [ { \&quot;attr\&quot;: \&quot;size\&quot;, \&quot;op\&quot;: \&quot;GT\&quot;, \&quot;value\&quot;: \&quot;45\&quot; } ] }, \&quot;type\&quot;: \&quot;REMOVE_MANY\&quot; } ] } &#x60;&#x60;&#x60; &lt;/div&gt; &lt;/details&gt;
282
321
  # @param catalog_id The ID of the catalog. You can find the ID in the Campaign Manager in **Account** &gt; **Tools** &gt; **Cart item catalogs**.
283
322
  # @param body body
284
323
  # @param [Hash] opts the optional parameters
@@ -289,27 +328,14 @@ describe 'IntegrationApi' do
289
328
  end
290
329
  end
291
330
 
292
- # unit tests for track_event
293
- # Track event
294
- # &lt;div class&#x3D;\&quot;redoc-section\&quot;&gt; &lt;p class&#x3D;\&quot;title\&quot;&gt;Deprecation warning&lt;/p&gt; &lt;p&gt;This endpoint is DEPRECATED and will be sunset on March 31st 2023. Use &lt;a href&#x3D;\&quot;https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2\&quot;&gt;Track Event V2&lt;/a&gt; instead.&lt;/p&gt; &lt;p&gt;See &lt;a href&#x3D;\&quot;https://docs.talon.one/docs/dev/tutorials/migrating-to-v2\&quot;&gt;Migrating to V2&lt;/a&gt;.&lt;/p&gt; &lt;/div&gt; Triggers a custom event in a customer session. You can then check this event in your rules. Before using this endpoint, create your event as a custom attribute of type &#x60;event&#x60;. An event is always part of a session. If either the profile or the session does not exist, a new empty profile/session is created. If the specified session already exists, it must belong to the same &#x60;profileId&#x60; or an error will be returned.
295
- # @param body body
296
- # @param [Hash] opts the optional parameters
297
- # @option opts [Boolean] :dry Indicates whether to persist the changes. Changes are ignored when &#x60;dry&#x3D;true&#x60;.
298
- # @return [IntegrationState]
299
- describe 'track_event test' do
300
- it 'should work' do
301
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
302
- end
303
- end
304
-
305
331
  # unit tests for track_event_v2
306
- # Track event V2
307
- # Triggers a custom event. You can build a condition around this event in your rules. Talon.One offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). **Important:** - &#x60;profileId&#x60; is required. An event V2 is associated with a customer profile. - Before using this endpoint, create your event as a custom attribute of type &#x60;event&#x60;. See the [Developer docs](https://docs.talon.one/docs/dev/concepts/events#creating-a-custom-event). When you successfully sent an event to Talon.One, you can list received events in the **Events** view in the Campaign Manager.
332
+ # Track event
333
+ # Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). &lt;div class&#x3D;\&quot;redoc-section\&quot;&gt; &lt;p class&#x3D;\&quot;title\&quot;&gt;Important&lt;/p&gt; 1. &#x60;profileId&#x60; is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the &#x60;customer_profile_created&#x60; [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). &lt;/div&gt;
308
334
  # @param body body
309
335
  # @param [Hash] opts the optional parameters
310
336
  # @option opts [String] :silent Possible values: &#x60;yes&#x60; or &#x60;no&#x60;. - &#x60;yes&#x60;: Increases the perfomance of the API call by returning a 204 response. - &#x60;no&#x60;: Returns a 200 response that contains the updated customer profiles.
311
337
  # @option opts [Boolean] :dry Indicates whether to persist the changes. Changes are ignored when &#x60;dry&#x3D;true&#x60;.
312
- # @return [IntegrationStateV2]
338
+ # @return [TrackEventV2Response]
313
339
  describe 'track_event_v2 test' do
314
340
  it 'should work' do
315
341
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -319,7 +345,7 @@ describe 'IntegrationApi' do
319
345
  # unit tests for update_audience_customers_attributes
320
346
  # Update profile attributes for all customers in audience
321
347
  # Update the specified profile attributes to the provided values for all customers in the specified audience.
322
- # @param audience_id The ID of the audience. You get it via the &#x60;id&#x60; property when [creating an audience](#operation/createAudienceV2).
348
+ # @param audience_id The ID of the audience.
323
349
  # @param body body
324
350
  # @param [Hash] opts the optional parameters
325
351
  # @return [nil]
@@ -331,8 +357,8 @@ describe 'IntegrationApi' do
331
357
 
332
358
  # unit tests for update_audience_v2
333
359
  # Update audience name
334
- # Update the name of the given audience created by a third-party integration. Sending a request to this endpoint does **not** trigger the rule engine. To update the audience&#39;s members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint.
335
- # @param audience_id The ID of the audience. You get it via the &#x60;id&#x60; property when [creating an audience](#operation/createAudienceV2).
360
+ # Update the name of the given audience created by a third-party integration. Sending a request to this endpoint does **not** trigger the Rule Engine. To update the audience&#39;s members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint.
361
+ # @param audience_id The ID of the audience.
336
362
  # @param body body
337
363
  # @param [Hash] opts the optional parameters
338
364
  # @return [Audience]
@@ -344,7 +370,7 @@ describe 'IntegrationApi' do
344
370
 
345
371
  # unit tests for update_customer_profile_audiences
346
372
  # Update multiple customer profiles&#39; audiences
347
- # Update the specified customer profiles with the specified audiences. Use this endpoint when customers join or leave audiences. The limit of customer profiles per request is 1000.
373
+ # Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (&#x60;add&#x60; or &#x60;remove&#x60;) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect.
348
374
  # @param body body
349
375
  # @param [Hash] opts the optional parameters
350
376
  # @return [nil]
@@ -356,13 +382,13 @@ describe 'IntegrationApi' do
356
382
 
357
383
  # unit tests for update_customer_profile_v2
358
384
  # Update customer profile
359
- # Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities#customer-profile). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. &lt;div class&#x3D;\&quot;redoc-section\&quot;&gt; &lt;p class&#x3D;\&quot;title\&quot;&gt;Performance tips&lt;/p&gt; Updating a customer profile returns a response with the requested integration state. You can use the &#x60;responseContent&#x60; property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. &lt;/div&gt;
385
+ # Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. &lt;div class&#x3D;\&quot;redoc-section\&quot;&gt; &lt;p class&#x3D;\&quot;title\&quot;&gt;Performance tips&lt;/p&gt; - Updating a customer profile returns a response with the requested integration state. - You can use the &#x60;responseContent&#x60; property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). &lt;/div&gt;
360
386
  # @param integration_id The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
361
387
  # @param body body
362
388
  # @param [Hash] opts the optional parameters
363
389
  # @option opts [Boolean] :run_rule_engine Indicates whether to run the Rule Engine. If &#x60;true&#x60;, the response includes: - The effects generated by the triggered campaigns are returned in the &#x60;effects&#x60; property. - The created coupons and referral objects. If &#x60;false&#x60;: - The rules are not executed and the &#x60;effects&#x60; property is always empty. - The response time improves. - You cannot use &#x60;responseContent&#x60; in the body.
364
390
  # @option opts [Boolean] :dry (Only works when &#x60;runRuleEngine&#x3D;true&#x60;) Indicates whether to persist the changes. Changes are ignored when &#x60;dry&#x3D;true&#x60;. When set to &#x60;true&#x60;, you can use the &#x60;evaluableCampaignIds&#x60; body property to select specific campaigns to run.
365
- # @return [IntegrationStateV2]
391
+ # @return [CustomerProfileIntegrationResponseV2]
366
392
  describe 'update_customer_profile_v2 test' do
367
393
  it 'should work' do
368
394
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -371,7 +397,7 @@ describe 'IntegrationApi' do
371
397
 
372
398
  # unit tests for update_customer_profiles_v2
373
399
  # Update multiple customer profiles
374
- # Update (or create) up to 1000 [customer profiles](https://docs.talon.one/docs/dev/concepts/entities#customer-profile) in 1 request. The &#x60;integrationId&#x60; must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. A customer profile [can be linked to one or more sessions](https://docs.talon.one/integration-api#tag/Customer-sessions).
400
+ # Update (or create) up to 1000 [customer profiles](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) in 1 request. The &#x60;integrationId&#x60; must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. A customer profile [can be linked to one or more sessions](https://docs.talon.one/integration-api#tag/Customer-sessions). **Note:** This endpoint does not trigger the Rule Engine. To trigger the Rule Engine for customer profile updates, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint.
375
401
  # @param body body
376
402
  # @param [Hash] opts the optional parameters
377
403
  # @option opts [String] :silent Possible values: &#x60;yes&#x60; or &#x60;no&#x60;. - &#x60;yes&#x60;: Increases the perfomance of the API call by returning a 204 response. - &#x60;no&#x60;: Returns a 200 response that contains the updated customer profiles.
@@ -384,11 +410,12 @@ describe 'IntegrationApi' do
384
410
 
385
411
  # unit tests for update_customer_session_v2
386
412
  # Update customer session
387
- # Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities#customer-session). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer&#39;s cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities#customer-session) and their states and refer to the &#x60;state&#x60; parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the &#x60;profileId&#x60; parameter in the request body to a customer profile&#39;s &#x60;integrationId&#x60;. - While you can create an anonymous session with &#x60;profileId&#x3D;\&quot;\&quot;&#x60;, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). &lt;div class&#x3D;\&quot;redoc-section\&quot;&gt; &lt;p class&#x3D;\&quot;title\&quot;&gt;Performance tips&lt;/p&gt; Updating a customer session returns a response with the new integration state. Use the &#x60;responseContent&#x60; property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. &lt;/div&gt; For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one).
413
+ # Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer&#39;s cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the &#x60;state&#x60; parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the &#x60;profileId&#x60; parameter in the request body to a customer profile&#39;s &#x60;integrationId&#x60;. - While you can create an anonymous session with &#x60;profileId&#x3D;\&quot;\&quot;&#x60;, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). &lt;div class&#x3D;\&quot;redoc-section\&quot;&gt; &lt;p class&#x3D;\&quot;title\&quot;&gt;Performance tips&lt;/p&gt; - Updating a customer session returns a response with the new integration state. Use the &#x60;responseContent&#x60; property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). &lt;/div&gt; For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one).
388
414
  # @param customer_session_id The &#x60;integration ID&#x60; of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager&#39;s **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
389
415
  # @param body body
390
416
  # @param [Hash] opts the optional parameters
391
- # @option opts [Boolean] :dry Indicates whether to persist the changes. Changes are ignored when &#x60;dry&#x3D;true&#x60;. When set to &#x60;true&#x60;, you can use the &#x60;evaluableCampaignIds&#x60; body property to select specific campaigns to run.
417
+ # @option opts [Boolean] :dry Indicates whether to persist the changes. Changes are ignored when &#x60;dry&#x3D;true&#x60;. When set to &#x60;true&#x60;: - The endpoint will **only** consider the payload that you pass when **closing** the session. When you do not use the &#x60;dry&#x60; parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the &#x60;evaluableCampaignIds&#x60; body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests).
418
+ # @option opts [DateTime] :now A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the &#x60;dry&#x60; parameter in the query is set to &#x60;true&#x60;.
392
419
  # @return [IntegrationStateV2]
393
420
  describe 'update_customer_session_v2 test' do
394
421
  it 'should work' do