talon_one 7.0.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -7
  3. data/docs/Achievement.md +6 -4
  4. data/docs/AchievementAdditionalProperties.md +5 -3
  5. data/docs/AchievementProgress.md +3 -15
  6. data/docs/AddFreeItemEffectProps.md +3 -1
  7. data/docs/AdditionalCampaignProperties.md +4 -2
  8. data/docs/AnalyticsProduct.md +6 -6
  9. data/docs/ApplicationCIF.md +1 -1
  10. data/docs/ApplicationCIFExpression.md +1 -1
  11. data/docs/ApplicationEntity.md +1 -1
  12. data/docs/ApplicationEvent.md +1 -1
  13. data/docs/ApplicationReferee.md +1 -1
  14. data/docs/ApplicationSession.md +2 -2
  15. data/docs/Audience.md +1 -1
  16. data/docs/BaseLoyaltyProgram.md +1 -1
  17. data/docs/Binding.md +1 -1
  18. data/docs/Campaign.md +4 -2
  19. data/docs/CampaignEvaluationGroup.md +1 -1
  20. data/docs/CampaignNotificationPolicy.md +3 -1
  21. data/docs/CampaignSet.md +1 -1
  22. data/docs/CampaignStoreBudget.md +1 -1
  23. data/docs/CardExpiringPointsNotificationPolicy.md +3 -1
  24. data/docs/CatalogsStrikethroughNotificationPolicy.md +3 -1
  25. data/docs/CouponCreationJob.md +1 -1
  26. data/docs/CouponDeletionJob.md +1 -1
  27. data/docs/CouponsNotificationPolicy.md +5 -1
  28. data/docs/CreateAchievement.md +1 -1
  29. data/docs/CustomerInventory.md +1 -1
  30. data/docs/CustomerSession.md +1 -1
  31. data/docs/CustomerSessionV2.md +2 -4
  32. data/docs/Environment.md +1 -1
  33. data/docs/Event.md +1 -1
  34. data/docs/ExpiringCouponsNotificationPolicy.md +3 -1
  35. data/docs/ExpiringPointsNotificationPolicy.md +3 -1
  36. data/docs/InlineResponse2001.md +3 -3
  37. data/docs/InlineResponse20010.md +3 -3
  38. data/docs/InlineResponse20011.md +3 -3
  39. data/docs/InlineResponse20012.md +1 -1
  40. data/docs/InlineResponse20013.md +1 -1
  41. data/docs/InlineResponse20014.md +1 -1
  42. data/docs/InlineResponse20015.md +3 -3
  43. data/docs/InlineResponse20016.md +3 -3
  44. data/docs/InlineResponse20017.md +3 -5
  45. data/docs/InlineResponse20018.md +2 -2
  46. data/docs/InlineResponse20019.md +3 -3
  47. data/docs/InlineResponse2002.md +3 -3
  48. data/docs/InlineResponse20020.md +5 -3
  49. data/docs/InlineResponse20021.md +3 -5
  50. data/docs/InlineResponse20022.md +2 -4
  51. data/docs/InlineResponse20023.md +3 -5
  52. data/docs/InlineResponse20024.md +5 -3
  53. data/docs/InlineResponse20025.md +4 -2
  54. data/docs/InlineResponse20026.md +3 -1
  55. data/docs/InlineResponse20027.md +1 -1
  56. data/docs/InlineResponse20028.md +3 -3
  57. data/docs/InlineResponse20029.md +1 -3
  58. data/docs/InlineResponse2003.md +1 -1
  59. data/docs/InlineResponse20030.md +2 -2
  60. data/docs/InlineResponse20031.md +3 -3
  61. data/docs/InlineResponse20032.md +1 -1
  62. data/docs/InlineResponse20033.md +3 -3
  63. data/docs/InlineResponse20034.md +1 -3
  64. data/docs/InlineResponse20035.md +5 -3
  65. data/docs/InlineResponse20036.md +1 -1
  66. data/docs/InlineResponse20037.md +5 -3
  67. data/docs/InlineResponse20038.md +1 -1
  68. data/docs/InlineResponse20039.md +1 -1
  69. data/docs/InlineResponse2004.md +1 -1
  70. data/docs/InlineResponse20040.md +1 -1
  71. data/docs/InlineResponse20041.md +2 -4
  72. data/docs/InlineResponse20042.md +1 -1
  73. data/docs/InlineResponse20043.md +1 -1
  74. data/docs/InlineResponse20044.md +4 -4
  75. data/docs/InlineResponse20045.md +3 -3
  76. data/docs/InlineResponse20046.md +3 -3
  77. data/docs/InlineResponse20047.md +5 -3
  78. data/docs/InlineResponse2005.md +3 -3
  79. data/docs/InlineResponse2006.md +3 -3
  80. data/docs/InlineResponse2007.md +1 -1
  81. data/docs/InlineResponse2008.md +1 -1
  82. data/docs/InlineResponse2009.md +3 -3
  83. data/docs/IntegrationApi.md +156 -18
  84. data/docs/LedgerInfo.md +4 -0
  85. data/docs/LimitCounter.md +1 -1
  86. data/docs/LoyaltyBalance.md +3 -1
  87. data/docs/LoyaltyBalanceWithTier.md +2 -0
  88. data/docs/LoyaltyBalances.md +1 -1
  89. data/docs/LoyaltyBalancesWithTiers.md +1 -1
  90. data/docs/LoyaltyCardBalances.md +1 -1
  91. data/docs/LoyaltyLedger.md +1 -1
  92. data/docs/LoyaltyLedgerEntry.md +3 -1
  93. data/docs/LoyaltyProgram.md +1 -1
  94. data/docs/LoyaltyProgramBalance.md +5 -1
  95. data/docs/LoyaltySubLedger.md +2 -0
  96. data/docs/ManagementApi.md +184 -116
  97. data/docs/ManagementKey.md +3 -1
  98. data/docs/ModelReturn.md +1 -1
  99. data/docs/NewAudience.md +1 -1
  100. data/docs/NewCampaignSet.md +1 -1
  101. data/docs/NewLoyaltyProgram.md +1 -1
  102. data/docs/NewManagementKey.md +2 -0
  103. data/docs/PendingPointsNotificationPolicy.md +3 -1
  104. data/docs/ProductSearchMatch.md +2 -2
  105. data/docs/ProductUnitAnalytics.md +4 -10
  106. data/docs/Store.md +1 -1
  107. data/docs/StrikethroughEffect.md +5 -1
  108. data/docs/StrikethroughLabelingNotification.md +4 -2
  109. data/docs/SummaryCampaignStoreBudget.md +3 -1
  110. data/docs/TemplateDef.md +1 -1
  111. data/docs/TierDowngradeNotificationPolicy.md +3 -1
  112. data/docs/TierUpgradeNotificationPolicy.md +3 -1
  113. data/docs/TierWillDowngradeNotificationPolicy.md +2 -0
  114. data/docs/UpdateAchievement.md +2 -2
  115. data/docs/UpdateLoyaltyProgram.md +1 -1
  116. data/lib/talon_one/api/integration_api.rb +220 -29
  117. data/lib/talon_one/api/management_api.rb +248 -169
  118. data/lib/talon_one/models/achievement.rb +27 -15
  119. data/lib/talon_one/models/achievement_additional_properties.rb +49 -10
  120. data/lib/talon_one/models/achievement_progress.rb +4 -137
  121. data/lib/talon_one/models/add_free_item_effect_props.rb +14 -4
  122. data/lib/talon_one/models/additional_campaign_properties.rb +16 -9
  123. data/lib/talon_one/models/analytics_product.rb +20 -21
  124. data/lib/talon_one/models/application_api_key.rb +2 -2
  125. data/lib/talon_one/models/application_cif.rb +1 -1
  126. data/lib/talon_one/models/application_cif_expression.rb +1 -1
  127. data/lib/talon_one/models/application_entity.rb +1 -1
  128. data/lib/talon_one/models/application_event.rb +1 -1
  129. data/lib/talon_one/models/application_referee.rb +1 -1
  130. data/lib/talon_one/models/application_session.rb +2 -2
  131. data/lib/talon_one/models/audience.rb +1 -1
  132. data/lib/talon_one/models/base_loyalty_program.rb +3 -3
  133. data/lib/talon_one/models/campaign.rb +14 -7
  134. data/lib/talon_one/models/campaign_evaluation_group.rb +1 -1
  135. data/lib/talon_one/models/campaign_notification_policy.rb +14 -4
  136. data/lib/talon_one/models/campaign_set.rb +1 -1
  137. data/lib/talon_one/models/campaign_store_budget.rb +1 -1
  138. data/lib/talon_one/models/card_expiring_points_notification_policy.rb +14 -4
  139. data/lib/talon_one/models/catalogs_strikethrough_notification_policy.rb +38 -4
  140. data/lib/talon_one/models/coupon_creation_job.rb +1 -1
  141. data/lib/talon_one/models/coupon_deletion_job.rb +1 -1
  142. data/lib/talon_one/models/coupons_notification_policy.rb +24 -4
  143. data/lib/talon_one/models/create_achievement.rb +0 -5
  144. data/lib/talon_one/models/create_application_api_key.rb +2 -2
  145. data/lib/talon_one/models/customer_inventory.rb +1 -1
  146. data/lib/talon_one/models/customer_session.rb +1 -1
  147. data/lib/talon_one/models/customer_session_v2.rb +5 -15
  148. data/lib/talon_one/models/environment.rb +1 -1
  149. data/lib/talon_one/models/event.rb +1 -1
  150. data/lib/talon_one/models/expiring_coupons_notification_policy.rb +14 -4
  151. data/lib/talon_one/models/expiring_points_notification_policy.rb +14 -4
  152. data/lib/talon_one/models/inline_response2001.rb +11 -11
  153. data/lib/talon_one/models/inline_response20010.rb +11 -11
  154. data/lib/talon_one/models/inline_response20011.rb +11 -11
  155. data/lib/talon_one/models/inline_response20012.rb +1 -1
  156. data/lib/talon_one/models/inline_response20013.rb +1 -1
  157. data/lib/talon_one/models/inline_response20014.rb +1 -1
  158. data/lib/talon_one/models/inline_response20015.rb +11 -11
  159. data/lib/talon_one/models/inline_response20016.rb +11 -13
  160. data/lib/talon_one/models/inline_response20017.rb +7 -11
  161. data/lib/talon_one/models/inline_response20018.rb +1 -1
  162. data/lib/talon_one/models/inline_response20019.rb +3 -1
  163. data/lib/talon_one/models/inline_response2002.rb +11 -11
  164. data/lib/talon_one/models/inline_response20020.rb +11 -7
  165. data/lib/talon_one/models/inline_response20021.rb +7 -11
  166. data/lib/talon_one/models/inline_response20022.rb +7 -11
  167. data/lib/talon_one/models/inline_response20023.rb +7 -11
  168. data/lib/talon_one/models/inline_response20024.rb +11 -7
  169. data/lib/talon_one/models/inline_response20025.rb +11 -7
  170. data/lib/talon_one/models/inline_response20026.rb +11 -2
  171. data/lib/talon_one/models/inline_response20027.rb +1 -1
  172. data/lib/talon_one/models/inline_response20028.rb +11 -11
  173. data/lib/talon_one/models/inline_response20029.rb +2 -11
  174. data/lib/talon_one/models/inline_response2003.rb +1 -1
  175. data/lib/talon_one/models/inline_response20030.rb +6 -1
  176. data/lib/talon_one/models/inline_response20031.rb +13 -8
  177. data/lib/talon_one/models/inline_response20032.rb +1 -1
  178. data/lib/talon_one/models/inline_response20033.rb +8 -13
  179. data/lib/talon_one/models/inline_response20034.rb +2 -11
  180. data/lib/talon_one/models/inline_response20035.rb +11 -7
  181. data/lib/talon_one/models/inline_response20036.rb +1 -1
  182. data/lib/talon_one/models/inline_response20037.rb +11 -7
  183. data/lib/talon_one/models/inline_response20038.rb +1 -1
  184. data/lib/talon_one/models/inline_response20039.rb +1 -1
  185. data/lib/talon_one/models/inline_response2004.rb +1 -1
  186. data/lib/talon_one/models/inline_response20040.rb +1 -1
  187. data/lib/talon_one/models/inline_response20041.rb +7 -11
  188. data/lib/talon_one/models/inline_response20042.rb +1 -1
  189. data/lib/talon_one/models/inline_response20043.rb +1 -1
  190. data/lib/talon_one/models/inline_response20044.rb +11 -11
  191. data/lib/talon_one/models/inline_response20045.rb +13 -8
  192. data/lib/talon_one/models/inline_response20046.rb +11 -11
  193. data/lib/talon_one/models/inline_response20047.rb +11 -7
  194. data/lib/talon_one/models/inline_response2005.rb +11 -11
  195. data/lib/talon_one/models/inline_response2006.rb +11 -11
  196. data/lib/talon_one/models/inline_response2007.rb +1 -1
  197. data/lib/talon_one/models/inline_response2008.rb +1 -1
  198. data/lib/talon_one/models/inline_response2009.rb +11 -11
  199. data/lib/talon_one/models/ledger_info.rb +31 -1
  200. data/lib/talon_one/models/limit_counter.rb +1 -1
  201. data/lib/talon_one/models/loyalty_balance.rb +14 -4
  202. data/lib/talon_one/models/loyalty_balance_with_tier.rb +11 -1
  203. data/lib/talon_one/models/loyalty_ledger_entry.rb +13 -4
  204. data/lib/talon_one/models/loyalty_program.rb +3 -3
  205. data/lib/talon_one/models/loyalty_program_balance.rb +34 -4
  206. data/lib/talon_one/models/loyalty_sub_ledger.rb +16 -1
  207. data/lib/talon_one/models/management_key.rb +14 -4
  208. data/lib/talon_one/models/model_return.rb +1 -1
  209. data/lib/talon_one/models/new_application_api_key.rb +2 -2
  210. data/lib/talon_one/models/new_audience.rb +1 -1
  211. data/lib/talon_one/models/new_campaign_set.rb +1 -1
  212. data/lib/talon_one/models/new_loyalty_program.rb +3 -3
  213. data/lib/talon_one/models/new_management_key.rb +11 -1
  214. data/lib/talon_one/models/pending_points_notification_policy.rb +14 -4
  215. data/lib/talon_one/models/product.rb +0 -19
  216. data/lib/talon_one/models/product_search_match.rb +1 -6
  217. data/lib/talon_one/models/product_unit_analytics.rb +21 -65
  218. data/lib/talon_one/models/store.rb +1 -1
  219. data/lib/talon_one/models/strikethrough_effect.rb +24 -4
  220. data/lib/talon_one/models/strikethrough_labeling_notification.rb +46 -2
  221. data/lib/talon_one/models/summary_campaign_store_budget.rb +18 -4
  222. data/lib/talon_one/models/template_def.rb +1 -1
  223. data/lib/talon_one/models/tier_downgrade_notification_policy.rb +14 -4
  224. data/lib/talon_one/models/tier_upgrade_notification_policy.rb +14 -4
  225. data/lib/talon_one/models/tier_will_downgrade_notification_policy.rb +11 -1
  226. data/lib/talon_one/models/update_achievement.rb +2 -2
  227. data/lib/talon_one/models/update_loyalty_program.rb +3 -3
  228. data/lib/talon_one/version.rb +1 -1
  229. data/lib/talon_one.rb +18 -4
  230. data/spec/api/integration_api_spec.rb +45 -9
  231. data/spec/api/management_api_spec.rb +75 -60
  232. data/spec/models/achievement_additional_properties_spec.rb +10 -0
  233. data/spec/models/achievement_base_spec.rb +103 -0
  234. data/spec/models/achievement_progress_spec.rb +1 -37
  235. data/spec/models/achievement_progress_with_definition_spec.rb +137 -0
  236. data/spec/models/achievement_spec.rb +10 -0
  237. data/spec/models/achievement_status_entry_spec.rb +137 -0
  238. data/spec/models/add_free_item_effect_props_spec.rb +6 -0
  239. data/spec/models/additional_campaign_properties_spec.rb +6 -0
  240. data/spec/models/analytics_product_spec.rb +3 -3
  241. data/spec/models/analytics_sku_spec.rb +59 -0
  242. data/spec/models/application_api_key_spec.rb +1 -1
  243. data/spec/models/application_cif_references_spec.rb +47 -0
  244. data/spec/models/base_loyalty_program_spec.rb +1 -1
  245. data/spec/models/campaign_detail_spec.rb +47 -0
  246. data/spec/models/campaign_notification_policy_spec.rb +6 -0
  247. data/spec/models/campaign_spec.rb +6 -0
  248. data/spec/models/campaign_store_budget_limit_config_spec.rb +73 -0
  249. data/spec/models/card_expiring_points_notification_policy_spec.rb +6 -0
  250. data/spec/models/catalogs_strikethrough_notification_policy_spec.rb +6 -0
  251. data/spec/models/coupons_notification_policy_spec.rb +12 -0
  252. data/spec/models/create_application_api_key_spec.rb +1 -1
  253. data/spec/models/customer_session_v2_spec.rb +0 -6
  254. data/spec/models/expiring_coupons_notification_policy_spec.rb +6 -0
  255. data/spec/models/expiring_points_notification_policy_spec.rb +6 -0
  256. data/spec/models/hidden_conditions_effects_spec.rb +59 -0
  257. data/spec/models/inline_response20010_spec.rb +1 -1
  258. data/spec/models/inline_response20011_spec.rb +1 -1
  259. data/spec/models/inline_response20015_spec.rb +1 -1
  260. data/spec/models/inline_response20016_spec.rb +1 -1
  261. data/spec/models/inline_response20017_spec.rb +0 -6
  262. data/spec/models/inline_response2001_spec.rb +1 -1
  263. data/spec/models/inline_response20020_spec.rb +6 -0
  264. data/spec/models/inline_response20021_spec.rb +0 -6
  265. data/spec/models/inline_response20022_spec.rb +0 -6
  266. data/spec/models/inline_response20023_spec.rb +0 -6
  267. data/spec/models/inline_response20024_spec.rb +6 -0
  268. data/spec/models/inline_response20025_spec.rb +6 -0
  269. data/spec/models/inline_response20026_spec.rb +6 -0
  270. data/spec/models/inline_response20028_spec.rb +1 -1
  271. data/spec/models/inline_response20029_spec.rb +0 -6
  272. data/spec/models/inline_response2002_spec.rb +1 -1
  273. data/spec/models/inline_response20031_spec.rb +1 -1
  274. data/spec/models/inline_response20033_spec.rb +1 -1
  275. data/spec/models/inline_response20034_spec.rb +0 -6
  276. data/spec/models/inline_response20035_spec.rb +6 -0
  277. data/spec/models/inline_response20037_spec.rb +6 -0
  278. data/spec/models/inline_response20041_spec.rb +0 -6
  279. data/spec/models/inline_response20044_spec.rb +2 -2
  280. data/spec/models/inline_response20045_spec.rb +1 -1
  281. data/spec/models/inline_response20046_spec.rb +1 -1
  282. data/spec/models/inline_response20047_spec.rb +6 -0
  283. data/spec/models/inline_response20048_spec.rb +47 -0
  284. data/spec/models/inline_response20049_spec.rb +47 -0
  285. data/spec/models/inline_response2005_spec.rb +1 -1
  286. data/spec/models/inline_response2006_spec.rb +1 -1
  287. data/spec/models/inline_response2009_spec.rb +1 -1
  288. data/spec/models/ledger_info_spec.rb +12 -0
  289. data/spec/models/loyalty_balance_spec.rb +6 -0
  290. data/spec/models/loyalty_balance_with_tier_spec.rb +6 -0
  291. data/spec/models/loyalty_ledger_entry_flags_spec.rb +41 -0
  292. data/spec/models/loyalty_ledger_entry_spec.rb +6 -0
  293. data/spec/models/loyalty_program_balance_spec.rb +12 -0
  294. data/spec/models/loyalty_program_spec.rb +1 -1
  295. data/spec/models/loyalty_sub_ledger_spec.rb +6 -0
  296. data/spec/models/management_key_spec.rb +6 -0
  297. data/spec/models/message_test_spec.rb +47 -0
  298. data/spec/models/new_application_api_key_spec.rb +1 -1
  299. data/spec/models/new_loyalty_program_spec.rb +1 -1
  300. data/spec/models/new_management_key_spec.rb +6 -0
  301. data/spec/models/new_message_test_spec.rb +79 -0
  302. data/spec/models/pending_points_notification_policy_spec.rb +6 -0
  303. data/spec/models/product_unit_analytics_data_point_spec.rb +65 -0
  304. data/spec/models/product_unit_analytics_spec.rb +2 -20
  305. data/spec/models/product_unit_analytics_totals_spec.rb +41 -0
  306. data/spec/models/sku_unit_analytics_data_point_spec.rb +59 -0
  307. data/spec/models/sku_unit_analytics_spec.rb +47 -0
  308. data/spec/models/strikethrough_effect_spec.rb +12 -0
  309. data/spec/models/strikethrough_labeling_notification_spec.rb +10 -0
  310. data/spec/models/summary_campaign_store_budget_spec.rb +6 -0
  311. data/spec/models/tier_downgrade_notification_policy_spec.rb +6 -0
  312. data/spec/models/tier_upgrade_notification_policy_spec.rb +6 -0
  313. data/spec/models/tier_will_downgrade_notification_policy_spec.rb +6 -0
  314. data/spec/models/update_loyalty_program_spec.rb +1 -1
  315. metadata +37 -3
@@ -62,7 +62,7 @@ describe 'ManagementApi' do
62
62
  # Add points to customer profile
63
63
  # Add points in the specified loyalty program for the given customer. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint.
64
64
  # @param loyalty_program_id The identifier for the loyalty program.
65
- # @param integration_id The identifier of the profile.
65
+ # @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.
66
66
  # @param body body
67
67
  # @param [Hash] opts the optional parameters
68
68
  # @return [nil]
@@ -79,7 +79,7 @@ describe 'ManagementApi' do
79
79
  # @param campaign_id The ID of the campaign. It is displayed in your Talon.One deployment URL.
80
80
  # @param body body
81
81
  # @param [Hash] opts the optional parameters
82
- # @return [InlineResponse2006]
82
+ # @return [InlineResponse2008]
83
83
  describe 'copy_campaign_to_applications test' do
84
84
  it 'should work' do
85
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -183,8 +183,8 @@ describe 'ManagementApi' do
183
183
  # @param campaign_id The ID of the campaign. It is displayed in your Talon.One deployment URL.
184
184
  # @param body body
185
185
  # @param [Hash] opts the optional parameters
186
- # @option opts [String] :silent Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
187
- # @return [InlineResponse2008]
186
+ # @option opts [String] :silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
187
+ # @return [InlineResponse20010]
188
188
  describe 'create_coupons test' do
189
189
  it 'should work' do
190
190
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -226,8 +226,8 @@ describe 'ManagementApi' do
226
226
  # @param campaign_id The ID of the campaign. It is displayed in your Talon.One deployment URL.
227
227
  # @param body body
228
228
  # @param [Hash] opts the optional parameters
229
- # @option opts [String] :silent Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
230
- # @return [InlineResponse2008]
229
+ # @option opts [String] :silent Possible values: `yes` or `no`. - `yes`: Increases the performance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
230
+ # @return [InlineResponse20010]
231
231
  describe 'create_coupons_for_multiple_recipients test' do
232
232
  it 'should work' do
233
233
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -715,7 +715,7 @@ describe 'ManagementApi' do
715
715
  # @param range_start Only return results from after this timestamp. **Note:** - This 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.
716
716
  # @param range_end Only return results from before this timestamp. **Note:** - This 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.
717
717
  # @param loyalty_program_id The identifier for the loyalty program.
718
- # @param integration_id The identifier of the profile.
718
+ # @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.
719
719
  # @param [Hash] opts the optional parameters
720
720
  # @option opts [String] :date_format Determines the format of dates in the export document.
721
721
  # @return [String]
@@ -771,7 +771,7 @@ describe 'ManagementApi' do
771
771
  # @option opts [Integer] :page_size The number of items in the response.
772
772
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
773
773
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
774
- # @return [InlineResponse20019]
774
+ # @return [InlineResponse20022]
775
775
  describe 'get_access_logs_without_total_count test' do
776
776
  it 'should work' do
777
777
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -847,7 +847,7 @@ describe 'ManagementApi' do
847
847
  # @option opts [Integer] :page_size The number of items in the response.
848
848
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
849
849
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
850
- # @return [InlineResponse20035]
850
+ # @return [InlineResponse20038]
851
851
  describe 'get_additional_costs test' do
852
852
  it 'should work' do
853
853
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -901,7 +901,7 @@ describe 'ManagementApi' do
901
901
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
902
902
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
903
903
  # @option opts [Boolean] :with_total_result_size When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
904
- # @return [InlineResponse20032]
904
+ # @return [InlineResponse20035]
905
905
  describe 'get_application_customer_friends test' do
906
906
  it 'should work' do
907
907
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -917,7 +917,7 @@ describe 'ManagementApi' do
917
917
  # @option opts [Integer] :page_size The number of items in the response.
918
918
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
919
919
  # @option opts [Boolean] :with_total_result_size When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
920
- # @return [InlineResponse20021]
920
+ # @return [InlineResponse20024]
921
921
  describe 'get_application_customers test' do
922
922
  it 'should work' do
923
923
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -933,7 +933,7 @@ describe 'ManagementApi' do
933
933
  # @option opts [Integer] :page_size The number of items in the response.
934
934
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
935
935
  # @option opts [Boolean] :with_total_result_size When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
936
- # @return [InlineResponse20022]
936
+ # @return [InlineResponse20025]
937
937
  describe 'get_application_customers_by_attributes test' do
938
938
  it 'should work' do
939
939
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -948,7 +948,7 @@ describe 'ManagementApi' do
948
948
  # @option opts [Integer] :page_size The number of items in the response.
949
949
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
950
950
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
951
- # @return [InlineResponse20028]
951
+ # @return [InlineResponse20031]
952
952
  describe 'get_application_event_types test' do
953
953
  it 'should work' do
954
954
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -974,7 +974,7 @@ describe 'ManagementApi' do
974
974
  # @option opts [String] :referral_code Referral code
975
975
  # @option opts [String] :rule_query Rule name filter for events
976
976
  # @option opts [String] :campaign_query Campaign name filter for events
977
- # @return [InlineResponse20027]
977
+ # @return [InlineResponse20030]
978
978
  describe 'get_application_events_without_total_count test' do
979
979
  it 'should work' do
980
980
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1010,7 +1010,7 @@ describe 'ManagementApi' do
1010
1010
  # @option opts [String] :referral Filter by sessions with this referral. Must be exact match.
1011
1011
  # @option opts [String] :integration_id Filter by sessions with this integration ID. Must be exact match.
1012
1012
  # @option opts [String] :store_integration_id The integration ID of the store. You choose this ID when you create a store.
1013
- # @return [InlineResponse20026]
1013
+ # @return [InlineResponse20029]
1014
1014
  describe 'get_application_sessions test' do
1015
1015
  it 'should work' do
1016
1016
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1024,7 +1024,7 @@ describe 'ManagementApi' do
1024
1024
  # @option opts [Integer] :page_size The number of items in the response.
1025
1025
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1026
1026
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1027
- # @return [InlineResponse2005]
1027
+ # @return [InlineResponse2007]
1028
1028
  describe 'get_applications test' do
1029
1029
  it 'should work' do
1030
1030
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1051,7 +1051,7 @@ describe 'ManagementApi' do
1051
1051
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1052
1052
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1053
1053
  # @option opts [String] :entity Returned attributes will be filtered by supplied entity.
1054
- # @return [InlineResponse20033]
1054
+ # @return [InlineResponse20036]
1055
1055
  describe 'get_attributes test' do
1056
1056
  it 'should work' do
1057
1057
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1067,7 +1067,7 @@ describe 'ManagementApi' do
1067
1067
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1068
1068
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1069
1069
  # @option opts [String] :profile_query The filter to select a profile.
1070
- # @return [InlineResponse20031]
1070
+ # @return [InlineResponse20034]
1071
1071
  describe 'get_audience_memberships test' do
1072
1072
  it 'should work' do
1073
1073
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1082,7 +1082,7 @@ describe 'ManagementApi' do
1082
1082
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1083
1083
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1084
1084
  # @option opts [Boolean] :with_total_result_size When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
1085
- # @return [InlineResponse20029]
1085
+ # @return [InlineResponse20032]
1086
1086
  describe 'get_audiences test' do
1087
1087
  it 'should work' do
1088
1088
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1095,7 +1095,7 @@ describe 'ManagementApi' do
1095
1095
  # @param audience_ids The IDs of one or more audiences, separated by commas, by which to filter results.
1096
1096
  # @param [Hash] opts the optional parameters
1097
1097
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1098
- # @return [InlineResponse20030]
1098
+ # @return [InlineResponse20033]
1099
1099
  describe 'get_audiences_analytics test' do
1100
1100
  it 'should work' do
1101
1101
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1124,7 +1124,7 @@ describe 'ManagementApi' do
1124
1124
  # @param range_end Only return results from before this timestamp. **Note:** - This 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.
1125
1125
  # @param [Hash] opts the optional parameters
1126
1126
  # @option opts [String] :granularity The time interval between the results in the returned time-series.
1127
- # @return [InlineResponse20020]
1127
+ # @return [InlineResponse20023]
1128
1128
  describe 'get_campaign_analytics test' do
1129
1129
  it 'should work' do
1130
1130
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1141,7 +1141,7 @@ describe 'ManagementApi' do
1141
1141
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1142
1142
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1143
1143
  # @option opts [String] :campaign_state Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived.
1144
- # @return [InlineResponse2006]
1144
+ # @return [InlineResponse2008]
1145
1145
  describe 'get_campaign_by_attributes test' do
1146
1146
  it 'should work' do
1147
1147
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1167,7 +1167,7 @@ describe 'ManagementApi' do
1167
1167
  # @option opts [Integer] :page_size The number of items in the response.
1168
1168
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1169
1169
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1170
- # @return [InlineResponse20011]
1170
+ # @return [InlineResponse20013]
1171
1171
  describe 'get_campaign_groups test' do
1172
1172
  it 'should work' do
1173
1173
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1185,7 +1185,7 @@ describe 'ManagementApi' do
1185
1185
  # @option opts [String] :name Filter results performing case-insensitive matching against the name of the campaign template.
1186
1186
  # @option opts [String] :tags Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values.
1187
1187
  # @option opts [Integer] :user_id Filter results by user ID.
1188
- # @return [InlineResponse20012]
1188
+ # @return [InlineResponse20014]
1189
1189
  describe 'get_campaign_templates test' do
1190
1190
  it 'should work' do
1191
1191
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1208,7 +1208,7 @@ describe 'ManagementApi' do
1208
1208
  # @option opts [Integer] :campaign_group_id Filter results to campaigns owned by the specified campaign access group ID.
1209
1209
  # @option opts [Integer] :template_id The ID of the campaign template this campaign was created from.
1210
1210
  # @option opts [Integer] :store_id Filter results to campaigns linked to the specified store ID.
1211
- # @return [InlineResponse2006]
1211
+ # @return [InlineResponse2008]
1212
1212
  describe 'get_campaigns test' do
1213
1213
  it 'should work' do
1214
1214
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1230,7 +1230,7 @@ describe 'ManagementApi' do
1230
1230
  # @option opts [Boolean] :with_total_result_size When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
1231
1231
  # @option opts [Integer] :management_key_id Filter results that match the given management key ID.
1232
1232
  # @option opts [Boolean] :include_old When this flag is set to false, the state without the change will not be returned. The default value is true.
1233
- # @return [InlineResponse20041]
1233
+ # @return [InlineResponse20044]
1234
1234
  describe 'get_changes test' do
1235
1235
  it 'should work' do
1236
1236
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1258,7 +1258,7 @@ describe 'ManagementApi' do
1258
1258
  # @param [Hash] opts the optional parameters
1259
1259
  # @option opts [Integer] :page_size The number of items in the response.
1260
1260
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1261
- # @return [InlineResponse20018]
1261
+ # @return [InlineResponse20021]
1262
1262
  describe 'get_collection_items test' do
1263
1263
  it 'should work' do
1264
1264
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1289,7 +1289,7 @@ describe 'ManagementApi' do
1289
1289
  # @option opts [DateTime] :starts_before Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
1290
1290
  # @option opts [DateTime] :starts_after Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
1291
1291
  # @option opts [Boolean] :values_only Filter results to only return the coupon codes (`value` column) without the associated coupon data.
1292
- # @return [InlineResponse2009]
1292
+ # @return [InlineResponse20011]
1293
1293
  describe 'get_coupons_without_total_count test' do
1294
1294
  it 'should work' do
1295
1295
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1327,7 +1327,7 @@ describe 'ManagementApi' do
1327
1327
  # @option opts [String] :integration_id Filter results performing an exact matching against the profile integration identifier.
1328
1328
  # @option opts [String] :campaign_name Only return reports matching the campaign name.
1329
1329
  # @option opts [String] :advocate_name Only return reports matching the current customer referrer name.
1330
- # @return [InlineResponse20025]
1330
+ # @return [InlineResponse20028]
1331
1331
  describe 'get_customer_activity_reports_without_total_count test' do
1332
1332
  it 'should work' do
1333
1333
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1366,13 +1366,13 @@ describe 'ManagementApi' do
1366
1366
  # List customer achievements
1367
1367
  # For the given customer profile, list all the achievements that match your filter criteria.
1368
1368
  # @param application_id The ID of the Application. It is displayed in your Talon.One deployment URL.
1369
- # @param integration_id The identifier of the profile.
1369
+ # @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.
1370
1370
  # @param [Hash] opts the optional parameters
1371
1371
  # @option opts [Integer] :page_size The number of items in the response.
1372
1372
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1373
1373
  # @option opts [Integer] :achievement_id The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
1374
1374
  # @option opts [String] :title Filter results by the `title` of an achievement.
1375
- # @return [InlineResponse20046]
1375
+ # @return [InlineResponse20049]
1376
1376
  describe 'get_customer_profile_achievement_progress test' do
1377
1377
  it 'should work' do
1378
1378
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1386,7 +1386,7 @@ describe 'ManagementApi' do
1386
1386
  # @option opts [Integer] :page_size The number of items in the response.
1387
1387
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1388
1388
  # @option opts [Boolean] :sandbox Indicates whether you are pointing to a sandbox or live customer.
1389
- # @return [InlineResponse20024]
1389
+ # @return [InlineResponse20027]
1390
1390
  describe 'get_customer_profiles test' do
1391
1391
  it 'should work' do
1392
1392
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1401,13 +1401,28 @@ describe 'ManagementApi' do
1401
1401
  # @option opts [Integer] :page_size The number of items in the response.
1402
1402
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1403
1403
  # @option opts [Boolean] :sandbox Indicates whether you are pointing to a sandbox or live customer.
1404
- # @return [InlineResponse20023]
1404
+ # @return [InlineResponse20026]
1405
1405
  describe 'get_customers_by_attributes test' do
1406
1406
  it 'should work' do
1407
1407
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1408
1408
  end
1409
1409
  end
1410
1410
 
1411
+ # unit tests for get_dashboard_statistics
1412
+ # Get statistics for loyalty dashboard
1413
+ # Retrieve the statistics displayed on the specified loyalty program's dashboard, such as the total active points, pending points, spent points, and expired points. **Important:** The returned data does not include the current day. All statistics are updated daily at 11:59 PM in the loyalty program time zone.
1414
+ # @param loyalty_program_id Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
1415
+ # @param range_start Only return results from after this timestamp. **Note:** - This 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.
1416
+ # @param range_end Only return results from before this timestamp. **Note:** - This 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.
1417
+ # @param [Hash] opts the optional parameters
1418
+ # @option opts [String] :subledger_id The ID of the subledger by which we filter the data.
1419
+ # @return [InlineResponse20016]
1420
+ describe 'get_dashboard_statistics test' do
1421
+ it 'should work' do
1422
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1423
+ end
1424
+ end
1425
+
1411
1426
  # unit tests for get_event_types
1412
1427
  # List event types
1413
1428
  # Fetch all event type definitions for your account.
@@ -1417,7 +1432,7 @@ describe 'ManagementApi' do
1417
1432
  # @option opts [Integer] :page_size The number of items in the response.
1418
1433
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1419
1434
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1420
- # @return [InlineResponse20039]
1435
+ # @return [InlineResponse20042]
1421
1436
  describe 'get_event_types test' do
1422
1437
  it 'should work' do
1423
1438
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1433,7 +1448,7 @@ describe 'ManagementApi' do
1433
1448
  # @option opts [Float] :application_id Filter results by Application ID.
1434
1449
  # @option opts [Integer] :campaign_id Filter by the campaign ID on which the limit counters are used.
1435
1450
  # @option opts [String] :entity The name of the entity type that was exported.
1436
- # @return [InlineResponse20042]
1451
+ # @return [InlineResponse20045]
1437
1452
  describe 'get_exports test' do
1438
1453
  it 'should work' do
1439
1454
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1464,7 +1479,7 @@ describe 'ManagementApi' do
1464
1479
  # @option opts [Integer] :page_size The number of items in the response.
1465
1480
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1466
1481
  # @option opts [String] :subledger_id The ID of the subledger by which we filter the data.
1467
- # @return [InlineResponse20016]
1482
+ # @return [InlineResponse20019]
1468
1483
  describe 'get_loyalty_card_transaction_logs test' do
1469
1484
  it 'should work' do
1470
1485
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1482,7 +1497,7 @@ describe 'ManagementApi' do
1482
1497
  # @option opts [String] :identifier The card code by which to filter loyalty cards in the response.
1483
1498
  # @option opts [Integer] :profile_id Filter results by customer profile ID.
1484
1499
  # @option opts [String] :batch_id Filter results by loyalty card batch ID.
1485
- # @return [InlineResponse20015]
1500
+ # @return [InlineResponse20018]
1486
1501
  describe 'get_loyalty_cards test' do
1487
1502
  it 'should work' do
1488
1503
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1493,7 +1508,7 @@ describe 'ManagementApi' do
1493
1508
  # Get customer's full loyalty ledger
1494
1509
  # Get the loyalty ledger for this profile integration ID. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions).
1495
1510
  # @param loyalty_program_id The identifier for the loyalty program.
1496
- # @param integration_id The identifier of the profile.
1511
+ # @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.
1497
1512
  # @param [Hash] opts the optional parameters
1498
1513
  # @return [LoyaltyLedger]
1499
1514
  describe 'get_loyalty_points test' do
@@ -1525,7 +1540,7 @@ describe 'ManagementApi' do
1525
1540
  # @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, `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.
1526
1541
  # @option opts [Integer] :page_size The number of items in the response.
1527
1542
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1528
- # @return [InlineResponse20014]
1543
+ # @return [InlineResponse20017]
1529
1544
  describe 'get_loyalty_program_transactions test' do
1530
1545
  it 'should work' do
1531
1546
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1536,7 +1551,7 @@ describe 'ManagementApi' do
1536
1551
  # List loyalty programs
1537
1552
  # List the loyalty programs of the account.
1538
1553
  # @param [Hash] opts the optional parameters
1539
- # @return [InlineResponse20013]
1554
+ # @return [InlineResponse20015]
1540
1555
  describe 'get_loyalty_programs test' do
1541
1556
  it 'should work' do
1542
1557
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1545,7 +1560,7 @@ describe 'ManagementApi' do
1545
1560
 
1546
1561
  # unit tests for get_loyalty_statistics
1547
1562
  # Get loyalty program statistics
1548
- # Retrieve the statistics of the specified loyalty program such as the total active points, pending points, spent points, and expired points. **Important:** The returned data does not include the current day. All statistics are updated daily at 11:59 PM in the loyalty program time zone.
1563
+ # ⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To retrieve statistics for a loyalty program, use the [Get statistics for loyalty dashboard](/management-api#tag/Loyalty/operation/getDashboardStatistics) endpoint. Retrieve the statistics of the specified loyalty program, such as the total active points, pending points, spent points, and expired points.
1549
1564
  # @param loyalty_program_id Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
1550
1565
  # @param [Hash] opts the optional parameters
1551
1566
  # @return [LoyaltyDashboardData]
@@ -1570,7 +1585,7 @@ describe 'ManagementApi' do
1570
1585
  # @option opts [String] :valid Either \"expired\", \"validNow\", or \"validFuture\". The first option matches referrals in which the expiration date is set and in the past. The second matches referrals in which start date is null or in the past and expiration date is null or in the future, the third matches referrals in which start date is set and in the future.
1571
1586
  # @option opts [String] :usable Either \"true\" or \"false\". If \"true\", only referrals where `usageCounter < usageLimit` will be returned, \"false\" will return only referrals where `usageCounter >= usageLimit`.
1572
1587
  # @option opts [String] :advocate Filter results by match with a profile ID specified in the referral's AdvocateProfileIntegrationId field.
1573
- # @return [InlineResponse20010]
1588
+ # @return [InlineResponse20012]
1574
1589
  describe 'get_referrals_without_total_count test' do
1575
1590
  it 'should work' do
1576
1591
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1612,7 +1627,7 @@ describe 'ManagementApi' do
1612
1627
  # @option opts [Integer] :page_size The number of items in the response.
1613
1628
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1614
1629
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1615
- # @return [InlineResponse2007]
1630
+ # @return [InlineResponse2009]
1616
1631
  describe 'get_rulesets test' do
1617
1632
  it 'should work' do
1618
1633
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1651,7 +1666,7 @@ describe 'ManagementApi' do
1651
1666
  # @option opts [Integer] :page_size The number of items in the response.
1652
1667
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1653
1668
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1654
- # @return [InlineResponse20040]
1669
+ # @return [InlineResponse20043]
1655
1670
  describe 'get_users test' do
1656
1671
  it 'should work' do
1657
1672
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1683,7 +1698,7 @@ describe 'ManagementApi' do
1683
1698
  # @option opts [Float] :campaign_id Filter results by campaign ID.
1684
1699
  # @option opts [DateTime] :created_before Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally.
1685
1700
  # @option opts [DateTime] :created_after Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally.
1686
- # @return [InlineResponse20037]
1701
+ # @return [InlineResponse20040]
1687
1702
  describe 'get_webhook_activation_logs test' do
1688
1703
  it 'should work' do
1689
1704
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1704,7 +1719,7 @@ describe 'ManagementApi' do
1704
1719
  # @option opts [String] :request_uuid Filter results by request UUID.
1705
1720
  # @option opts [DateTime] :created_before Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally.
1706
1721
  # @option opts [DateTime] :created_after Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally.
1707
- # @return [InlineResponse20038]
1722
+ # @return [InlineResponse20041]
1708
1723
  describe 'get_webhook_logs test' do
1709
1724
  it 'should work' do
1710
1725
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1723,7 +1738,7 @@ describe 'ManagementApi' do
1723
1738
  # @option opts [String] :visibility Filter results by visibility.
1724
1739
  # @option opts [Integer] :outgoing_integrations_type_id Filter results by outgoing integration type ID.
1725
1740
  # @option opts [String] :title Filter results performing case-insensitive matching against the webhook title.
1726
- # @return [InlineResponse20036]
1741
+ # @return [InlineResponse20039]
1727
1742
  describe 'get_webhooks test' do
1728
1743
  it 'should work' do
1729
1744
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1900,7 +1915,7 @@ describe 'ManagementApi' do
1900
1915
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
1901
1916
  # @option opts [Boolean] :with_total_result_size When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
1902
1917
  # @option opts [String] :name Filter by collection name.
1903
- # @return [InlineResponse20017]
1918
+ # @return [InlineResponse20020]
1904
1919
  describe 'list_account_collections test' do
1905
1920
  it 'should work' do
1906
1921
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1916,7 +1931,7 @@ describe 'ManagementApi' do
1916
1931
  # @option opts [Integer] :page_size The number of items in the response.
1917
1932
  # @option opts [Integer] :skip The number of items to skip when paging through large result sets.
1918
1933
  # @option opts [String] :title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned.
1919
- # @return [InlineResponse20045]
1934
+ # @return [InlineResponse20048]
1920
1935
  describe 'list_achievements test' do
1921
1936
  it 'should work' do
1922
1937
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1927,7 +1942,7 @@ describe 'ManagementApi' do
1927
1942
  # List roles
1928
1943
  # List all roles.
1929
1944
  # @param [Hash] opts the optional parameters
1930
- # @return [InlineResponse20043]
1945
+ # @return [InlineResponse20046]
1931
1946
  describe 'list_all_roles_v2 test' do
1932
1947
  it 'should work' do
1933
1948
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1944,7 +1959,7 @@ describe 'ManagementApi' do
1944
1959
  # @option opts [Boolean] :with_total_result_size When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
1945
1960
  # @option opts [Array<String>] :sku Filter results by one or more SKUs. Must be exact match.
1946
1961
  # @option opts [Array<String>] :product_names Filter results by one or more product names. Must be exact match.
1947
- # @return [InlineResponse20034]
1962
+ # @return [InlineResponse20037]
1948
1963
  describe 'list_catalog_items test' do
1949
1964
  it 'should work' do
1950
1965
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1962,7 +1977,7 @@ describe 'ManagementApi' do
1962
1977
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with &#x60;-&#x60;. **Note:** This parameter works only with numeric fields.
1963
1978
  # @option opts [Boolean] :with_total_result_size When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When &#x60;true&#x60;: &#x60;hasMore&#x60; is true when there is a next page. &#x60;totalResultSize&#x60; is always zero. - When &#x60;false&#x60;: &#x60;hasMore&#x60; is always false. &#x60;totalResultSize&#x60; contains the total number of results for this query.
1964
1979
  # @option opts [String] :name Filter by collection name.
1965
- # @return [InlineResponse20017]
1980
+ # @return [InlineResponse20020]
1966
1981
  describe 'list_collections test' do
1967
1982
  it 'should work' do
1968
1983
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1979,7 +1994,7 @@ describe 'ManagementApi' do
1979
1994
  # @option opts [String] :sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with &#x60;-&#x60;. **Note:** This parameter works only with numeric fields.
1980
1995
  # @option opts [Boolean] :with_total_result_size When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When &#x60;true&#x60;: &#x60;hasMore&#x60; is true when there is a next page. &#x60;totalResultSize&#x60; is always zero. - When &#x60;false&#x60;: &#x60;hasMore&#x60; is always false. &#x60;totalResultSize&#x60; contains the total number of results for this query.
1981
1996
  # @option opts [String] :name Filter by collection name.
1982
- # @return [InlineResponse20017]
1997
+ # @return [InlineResponse20020]
1983
1998
  describe 'list_collections_in_application test' do
1984
1999
  it 'should work' do
1985
2000
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -1999,7 +2014,7 @@ describe 'ManagementApi' do
1999
2014
  # @option opts [String] :name The name of the store.
2000
2015
  # @option opts [String] :integration_id The integration ID of the store.
2001
2016
  # @option opts [String] :query Filter results by &#x60;name&#x60; or &#x60;integrationId&#x60;.
2002
- # @return [InlineResponse20044]
2017
+ # @return [InlineResponse20047]
2003
2018
  describe 'list_stores test' do
2004
2019
  it 'should work' do
2005
2020
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -2032,7 +2047,7 @@ describe 'ManagementApi' do
2032
2047
 
2033
2048
  # unit tests for post_added_deducted_points_notification
2034
2049
  # Create notification about added or deducted loyalty points
2035
- # Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications).
2050
+ # Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/loyalty-notifications/overview).
2036
2051
  # @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.
2037
2052
  # @param body body
2038
2053
  # @param [Hash] opts the optional parameters
@@ -2045,7 +2060,7 @@ describe 'ManagementApi' do
2045
2060
 
2046
2061
  # unit tests for post_catalogs_strikethrough_notification
2047
2062
  # Create strikethrough notification
2048
- # Create a notification for the in the given Application. For more information, see [Managing notifications](https://docs.talon.one/docs/product/applications/outbound-notifications). See the [payload](https://docs.talon.one/outbound-notifications) you will receive.
2063
+ # Create a notification for the in the given Application. For more information, see [Application notifications](https://docs.talon.one/docs/product/applications/application-notifications/overview). See the [payload](https://docs.talon.one/outbound-notifications) you will receive.
2049
2064
  # @param application_id The ID of the Application. It is displayed in your Talon.One deployment URL.
2050
2065
  # @param body body
2051
2066
  # @param [Hash] opts the optional parameters
@@ -2058,7 +2073,7 @@ describe 'ManagementApi' do
2058
2073
 
2059
2074
  # unit tests for post_pending_points_notification
2060
2075
  # Create notification about pending loyalty points
2061
- # Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications).
2076
+ # Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/loyalty-notifications/overview).
2062
2077
  # @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.
2063
2078
  # @param body body
2064
2079
  # @param [Hash] opts the optional parameters
@@ -2073,7 +2088,7 @@ describe 'ManagementApi' do
2073
2088
  # Deduct points from customer profile
2074
2089
  # Deduct points from the specified loyalty program and specified customer profile. **Important:** - Only active points can be deducted. - Only pending points are rolled back when a session is cancelled or reopened. To get the &#x60;integrationId&#x60; of the profile from a &#x60;sessionId&#x60;, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint.
2075
2090
  # @param loyalty_program_id The identifier for the loyalty program.
2076
- # @param integration_id The identifier of the profile.
2091
+ # @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.
2077
2092
  # @param body body
2078
2093
  # @param [Hash] opts the optional parameters
2079
2094
  # @return [nil]
@@ -2220,7 +2235,7 @@ describe 'ManagementApi' do
2220
2235
  # @option opts [String] :batch_id Filter results by batches of coupons
2221
2236
  # @option opts [Boolean] :exact_match Filter results to an exact case-insensitive matching against the coupon code.
2222
2237
  # @option opts [String] :campaign_state Filter results by the state of the campaign. - &#x60;enabled&#x60;: Campaigns that are scheduled, running (activated), or expired. - &#x60;running&#x60;: Campaigns that are running (activated). - &#x60;disabled&#x60;: Campaigns that are disabled. - &#x60;expired&#x60;: Campaigns that are expired. - &#x60;archived&#x60;: Campaigns that are archived.
2223
- # @return [InlineResponse2009]
2238
+ # @return [InlineResponse20011]
2224
2239
  describe 'search_coupons_advanced_application_wide_without_total_count test' do
2225
2240
  it 'should work' do
2226
2241
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -2246,7 +2261,7 @@ describe 'ManagementApi' do
2246
2261
  # @option opts [String] :recipient_integration_id Filter results by match with a profile ID specified in the coupon&#39;s RecipientIntegrationId field.
2247
2262
  # @option opts [Boolean] :exact_match Filter results to an exact case-insensitive matching against the coupon code.
2248
2263
  # @option opts [String] :batch_id Filter results by batches of coupons
2249
- # @return [InlineResponse2009]
2264
+ # @return [InlineResponse20011]
2250
2265
  describe 'search_coupons_advanced_without_total_count test' do
2251
2266
  it 'should work' do
2252
2267
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -56,4 +56,14 @@ describe 'AchievementAdditionalProperties' do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "status"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["inprogress", "expired", "not_started", "completed"])
63
+ # validator.allowable_values.each do |value|
64
+ # expect { @instance.status = value }.not_to raise_error
65
+ # end
66
+ end
67
+ end
68
+
59
69
  end