talon_one 2.5.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1120) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +164 -56
  3. data/docs/AcceptCouponEffectProps.md +1 -1
  4. data/docs/AcceptReferralEffectProps.md +1 -1
  5. data/docs/AccessLogEntry.md +15 -10
  6. data/docs/Account.md +6 -6
  7. data/docs/AccountAdditionalCost.md +10 -10
  8. data/docs/AccountAnalytics.md +19 -19
  9. data/docs/AccountDashboardStatistic.md +27 -0
  10. data/docs/AccountDashboardStatisticApiCalls.md +19 -0
  11. data/docs/AccountDashboardStatisticCampaigns.md +19 -0
  12. data/docs/AccountDashboardStatisticDiscount.md +21 -0
  13. data/docs/AccountDashboardStatisticLoyaltyPoints.md +19 -0
  14. data/docs/AccountDashboardStatisticReferrals.md +19 -0
  15. data/docs/AccountDashboardStatisticRevenue.md +21 -0
  16. data/docs/AccountLimits.md +12 -12
  17. data/docs/AddFreeItemEffectProps.md +2 -2
  18. data/docs/AddItemCatalogAction.md +23 -0
  19. data/docs/AddLoyaltyPoints.md +31 -0
  20. data/docs/AddLoyaltyPointsEffectProps.md +8 -4
  21. data/docs/AddedDeductedPointsNotificationPolicy.md +19 -0
  22. data/docs/Application.md +13 -13
  23. data/docs/ApplicationAPIKey.md +7 -7
  24. data/docs/ApplicationApiHealth.md +2 -2
  25. data/docs/ApplicationCampaignStats.md +6 -6
  26. data/docs/ApplicationCustomer.md +9 -7
  27. data/docs/ApplicationEvent.md +3 -3
  28. data/docs/ApplicationReferee.md +4 -4
  29. data/docs/ApplicationSession.md +5 -5
  30. data/docs/ApplicationSessionEntity.md +1 -1
  31. data/docs/Attribute.md +17 -13
  32. data/docs/Audience.md +14 -6
  33. data/docs/AudienceAnalytics.md +19 -0
  34. data/docs/AudienceCustomer.md +41 -0
  35. data/docs/AudienceIntegrationID.md +17 -0
  36. data/docs/AudienceMembership.md +2 -2
  37. data/docs/AwardGiveawayEffectProps.md +5 -5
  38. data/docs/BaseLoyaltyProgram.md +7 -5
  39. data/docs/BaseNotification.md +21 -0
  40. data/docs/BaseNotificationEntity.md +17 -0
  41. data/docs/BaseNotificationWebhook.md +25 -0
  42. data/docs/BaseNotifications.md +17 -0
  43. data/docs/BaseSamlConnection.md +1 -1
  44. data/docs/BulkApplicationNotification.md +1 -1
  45. data/docs/BulkCampaignNotification.md +1 -1
  46. data/docs/Campaign.md +27 -25
  47. data/docs/CampaignActivationRequest.md +17 -0
  48. data/docs/CampaignAnalytics.md +8 -8
  49. data/docs/CampaignCollection.md +3 -3
  50. data/docs/CampaignCollectionWithoutPayload.md +3 -3
  51. data/docs/CampaignCopy.md +8 -8
  52. data/docs/CampaignCreatedNotification.md +5 -1
  53. data/docs/CampaignDeletedNotification.md +3 -1
  54. data/docs/CampaignEditedNotification.md +3 -1
  55. data/docs/CampaignGroup.md +8 -8
  56. data/docs/CampaignNotification.md +1 -1
  57. data/docs/CampaignPrioritiesChangedNotification.md +4 -4
  58. data/docs/CampaignRulesetChangedNotification.md +1 -1
  59. data/docs/CampaignSearch.md +1 -1
  60. data/docs/CampaignSet.md +7 -5
  61. data/docs/CampaignSetBranchNode.md +6 -6
  62. data/docs/CampaignSetIDs.md +1 -1
  63. data/docs/CampaignSetLeafNode.md +1 -1
  64. data/docs/CampaignSetNode.md +1 -1
  65. data/docs/CampaignSetV2.md +4 -4
  66. data/docs/CampaignStateChangedNotification.md +4 -2
  67. data/docs/CampaignTemplate.md +23 -21
  68. data/docs/CampaignTemplateParams.md +5 -3
  69. data/docs/CardLedgerTransactionLogEntry.md +41 -0
  70. data/docs/CardLedgerTransactionLogEntryIntegrationAPI.md +41 -0
  71. data/docs/CartItem.md +15 -13
  72. data/docs/Catalog.md +8 -8
  73. data/docs/CatalogAction.md +19 -0
  74. data/docs/CatalogActionFilter.md +21 -0
  75. data/docs/CatalogItem.md +29 -0
  76. data/docs/CatalogSyncRequest.md +19 -0
  77. data/docs/CatalogsStrikethroughNotificationPolicy.md +17 -0
  78. data/docs/Change.md +10 -8
  79. data/docs/ChangeProfilePassword.md +2 -2
  80. data/docs/CodeGeneratorSettings.md +2 -2
  81. data/docs/Collection.md +3 -3
  82. data/docs/CollectionItem.md +17 -0
  83. data/docs/CollectionWithoutPayload.md +3 -3
  84. data/docs/Coupon.md +18 -12
  85. data/docs/CouponConstraints.md +6 -4
  86. data/docs/CouponCreatedEffectProps.md +2 -2
  87. data/docs/CouponCreationJob.md +16 -14
  88. data/docs/CouponReservations.md +2 -2
  89. data/docs/CouponSearch.md +1 -1
  90. data/docs/CouponsNotificationPolicy.md +19 -0
  91. data/docs/CreateApplicationAPIKey.md +2 -2
  92. data/docs/CreateManagementKey.md +23 -0
  93. data/docs/CreateTemplateCampaign.md +2 -0
  94. data/docs/CustomEffect.md +8 -6
  95. data/docs/CustomEffectProps.md +11 -3
  96. data/docs/CustomerActivityReport.md +2 -2
  97. data/docs/CustomerAnalytics.md +7 -7
  98. data/docs/CustomerProfile.md +10 -8
  99. data/docs/CustomerProfileIntegrationRequestV2.md +4 -2
  100. data/docs/CustomerProfileUpdateV2Response.md +17 -0
  101. data/docs/CustomerSession.md +10 -10
  102. data/docs/CustomerSessionV2.md +17 -15
  103. data/docs/DeductLoyaltyPoints.md +23 -0
  104. data/docs/DeductLoyaltyPointsEffectProps.md +7 -7
  105. data/docs/Effect.md +9 -7
  106. data/docs/EffectEntity.md +9 -7
  107. data/docs/Endpoint.md +17 -0
  108. data/docs/Entity.md +2 -2
  109. data/docs/EntityWithTalangVisibleID.md +2 -2
  110. data/docs/Environment.md +3 -3
  111. data/docs/ErrorSource.md +1 -1
  112. data/docs/EvaluableCampaignIds.md +17 -0
  113. data/docs/Event.md +6 -6
  114. data/docs/EventType.md +8 -8
  115. data/docs/EventV2.md +6 -4
  116. data/docs/ExpiringPointsNotificationPolicy.md +19 -0
  117. data/docs/ExpiringPointsNotificationTrigger.md +19 -0
  118. data/docs/Export.md +5 -5
  119. data/docs/FeatureFlag.md +7 -7
  120. data/docs/FeedNotification.md +6 -6
  121. data/docs/FrontendState.md +16 -0
  122. data/docs/Giveaway.md +10 -6
  123. data/docs/GiveawaysPool.md +8 -6
  124. data/docs/Import.md +4 -4
  125. data/docs/ImportEntity.md +1 -1
  126. data/docs/InlineResponse200.md +1 -1
  127. data/docs/InlineResponse2001.md +3 -3
  128. data/docs/InlineResponse20010.md +3 -3
  129. data/docs/InlineResponse20011.md +3 -3
  130. data/docs/InlineResponse20012.md +3 -3
  131. data/docs/InlineResponse20013.md +3 -5
  132. data/docs/InlineResponse20014.md +4 -2
  133. data/docs/InlineResponse20015.md +1 -1
  134. data/docs/InlineResponse20016.md +4 -2
  135. data/docs/InlineResponse20017.md +2 -2
  136. data/docs/InlineResponse20018.md +3 -3
  137. data/docs/InlineResponse20019.md +2 -2
  138. data/docs/InlineResponse2002.md +2 -2
  139. data/docs/InlineResponse20020.md +4 -4
  140. data/docs/InlineResponse20021.md +3 -3
  141. data/docs/InlineResponse20022.md +5 -3
  142. data/docs/InlineResponse20023.md +3 -3
  143. data/docs/InlineResponse20024.md +3 -3
  144. data/docs/InlineResponse20025.md +3 -3
  145. data/docs/InlineResponse20026.md +3 -3
  146. data/docs/InlineResponse20027.md +2 -2
  147. data/docs/InlineResponse20028.md +5 -3
  148. data/docs/InlineResponse20029.md +4 -4
  149. data/docs/InlineResponse2003.md +2 -2
  150. data/docs/InlineResponse20030.md +2 -2
  151. data/docs/InlineResponse20031.md +2 -2
  152. data/docs/InlineResponse20032.md +19 -0
  153. data/docs/InlineResponse20033.md +19 -0
  154. data/docs/InlineResponse20034.md +19 -0
  155. data/docs/InlineResponse20035.md +19 -0
  156. data/docs/InlineResponse20036.md +19 -0
  157. data/docs/InlineResponse20037.md +21 -0
  158. data/docs/InlineResponse20038.md +19 -0
  159. data/docs/InlineResponse20039.md +19 -0
  160. data/docs/InlineResponse2004.md +2 -2
  161. data/docs/InlineResponse2005.md +3 -3
  162. data/docs/InlineResponse2006.md +3 -3
  163. data/docs/InlineResponse2007.md +3 -3
  164. data/docs/InlineResponse2008.md +3 -5
  165. data/docs/InlineResponse2009.md +3 -5
  166. data/docs/InlineResponse201.md +1 -1
  167. data/docs/IntegrationApi.md +516 -87
  168. data/docs/IntegrationCoupon.md +59 -0
  169. data/docs/IntegrationCustomerSessionResponse.md +3 -1
  170. data/docs/IntegrationEntity.md +2 -2
  171. data/docs/IntegrationEvent.md +2 -2
  172. data/docs/IntegrationEventV2Request.md +6 -4
  173. data/docs/IntegrationProfileEntity.md +1 -1
  174. data/docs/IntegrationRequest.md +1 -1
  175. data/docs/IntegrationStateV2.md +2 -2
  176. data/docs/InventoryCoupon.md +18 -12
  177. data/docs/InventoryReferral.md +6 -6
  178. data/docs/ItemAttribute.md +21 -0
  179. data/docs/LedgerEntry.md +12 -12
  180. data/docs/LedgerInfo.md +12 -12
  181. data/docs/LedgerTransactionLogEntryIntegrationAPI.md +39 -0
  182. data/docs/LimitCounter.md +9 -9
  183. data/docs/LoyaltyBalance.md +23 -0
  184. data/docs/LoyaltyBalances.md +19 -0
  185. data/docs/LoyaltyCard.md +13 -9
  186. data/docs/LoyaltyCardProfileRegistration.md +3 -3
  187. data/docs/LoyaltyCardRegistration.md +1 -1
  188. data/docs/LoyaltyDashboardData.md +6 -6
  189. data/docs/LoyaltyDashboardPointsBreakdown.md +2 -2
  190. data/docs/LoyaltyLedger.md +1 -1
  191. data/docs/LoyaltyLedgerEntry.md +17 -15
  192. data/docs/LoyaltyLedgerTransactions.md +19 -0
  193. data/docs/LoyaltyProgram.md +8 -6
  194. data/docs/LoyaltyProgramBalance.md +11 -9
  195. data/docs/LoyaltyProgramLedgers.md +4 -4
  196. data/docs/LoyaltyProgramTransaction.md +49 -0
  197. data/docs/LoyaltyStatistics.md +6 -6
  198. data/docs/LoyaltySubLedger.md +1 -1
  199. data/docs/LoyaltyTier.md +3 -3
  200. data/docs/ManagementApi.md +2620 -735
  201. data/docs/ManagementKey.md +31 -0
  202. data/docs/ModelReturn.md +3 -3
  203. data/docs/MultipleAudiences.md +19 -0
  204. data/docs/MultipleAudiencesItem.md +25 -0
  205. data/docs/MultipleCustomerProfileIntegrationRequestItem.md +2 -2
  206. data/docs/MultipleCustomerProfileIntegrationResponseV2.md +1 -1
  207. data/docs/MultipleNewAudiences.md +17 -0
  208. data/docs/MutableEntity.md +1 -1
  209. data/docs/NewAdditionalCost.md +8 -8
  210. data/docs/NewApplication.md +10 -10
  211. data/docs/NewApplicationAPIKey.md +8 -8
  212. data/docs/NewAttribute.md +15 -11
  213. data/docs/NewAudience.md +12 -4
  214. data/docs/NewBaseNotification.md +19 -0
  215. data/docs/NewCampaign.md +6 -6
  216. data/docs/NewCampaignGroup.md +5 -5
  217. data/docs/NewCampaignSet.md +2 -2
  218. data/docs/NewCampaignSetV2.md +2 -2
  219. data/docs/NewCampaignTemplate.md +7 -5
  220. data/docs/NewCatalog.md +5 -5
  221. data/docs/NewCouponCreationJob.md +8 -6
  222. data/docs/NewCoupons.md +14 -10
  223. data/docs/NewCouponsForMultipleRecipients.md +12 -10
  224. data/docs/NewCustomEffect.md +3 -1
  225. data/docs/NewCustomerProfile.md +1 -1
  226. data/docs/NewCustomerSession.md +6 -6
  227. data/docs/NewCustomerSessionV2.md +7 -5
  228. data/docs/NewEvent.md +2 -2
  229. data/docs/NewEventType.md +6 -6
  230. data/docs/NewGiveawaysPool.md +6 -4
  231. data/docs/NewInternalAudience.md +21 -0
  232. data/docs/NewInvitation.md +4 -4
  233. data/docs/NewLoyaltyProgram.md +7 -5
  234. data/docs/NewLoyaltyTier.md +1 -1
  235. data/docs/NewManagementKey.md +33 -0
  236. data/docs/NewMultipleAudiencesItem.md +19 -0
  237. data/docs/NewNotificationWebhook.md +4 -4
  238. data/docs/NewPassword.md +2 -2
  239. data/docs/NewPicklist.md +19 -0
  240. data/docs/NewReferral.md +3 -3
  241. data/docs/NewReferralsForMultipleAdvocates.md +4 -4
  242. data/docs/NewReturn.md +1 -1
  243. data/docs/NewRole.md +8 -8
  244. data/docs/NewRuleset.md +3 -1
  245. data/docs/NewSamlConnection.md +1 -1
  246. data/docs/NewWebhook.md +16 -14
  247. data/docs/Notification.md +3 -3
  248. data/docs/NotificationWebhook.md +7 -7
  249. data/docs/OutgoingIntegrationBrazePolicy.md +19 -0
  250. data/docs/OutgoingIntegrationConfiguration.md +21 -0
  251. data/docs/OutgoingIntegrationType.md +25 -0
  252. data/docs/OutgoingIntegrationTypes.md +17 -0
  253. data/docs/OutgoingIntegrationWebhookTemplate.md +27 -0
  254. data/docs/OutgoingIntegrationWebhookTemplates.md +17 -0
  255. data/docs/PatchItemCatalogAction.md +23 -0
  256. data/docs/PatchManyItemsCatalogAction.md +21 -0
  257. data/docs/Picklist.md +31 -0
  258. data/docs/PriorityPosition.md +19 -0
  259. data/docs/ProfileAudiencesChanges.md +2 -2
  260. data/docs/RedeemReferralEffectProps.md +2 -2
  261. data/docs/Referral.md +6 -6
  262. data/docs/ReferralConstraints.md +1 -1
  263. data/docs/ReferralCreatedEffectProps.md +1 -1
  264. data/docs/ReferralRejectionReason.md +1 -1
  265. data/docs/RejectCouponEffectProps.md +5 -5
  266. data/docs/RejectReferralEffectProps.md +5 -5
  267. data/docs/RemoveItemCatalogAction.md +17 -0
  268. data/docs/RemoveManyItemsCatalogAction.md +17 -0
  269. data/docs/ReserveCouponEffectProps.md +21 -0
  270. data/docs/ReturnIntegrationRequest.md +1 -1
  271. data/docs/ReturnedCartItem.md +1 -1
  272. data/docs/Role.md +13 -13
  273. data/docs/RoleAssign.md +4 -4
  274. data/docs/RoleMembership.md +2 -2
  275. data/docs/RoleV2.md +25 -0
  276. data/docs/RoleV2ApplicationDetails.md +21 -0
  277. data/docs/RoleV2PermissionSet.md +19 -0
  278. data/docs/RoleV2Permissions.md +19 -0
  279. data/docs/RoleV2PermissionsRoles.md +21 -0
  280. data/docs/RollbackAddedLoyaltyPointsEffectProps.md +8 -8
  281. data/docs/RollbackCouponEffectProps.md +1 -1
  282. data/docs/RollbackDeductedLoyaltyPointsEffectProps.md +10 -10
  283. data/docs/RollbackDiscountEffectProps.md +3 -3
  284. data/docs/RollbackReferralEffectProps.md +1 -1
  285. data/docs/Rule.md +5 -1
  286. data/docs/RuleFailureReason.md +12 -12
  287. data/docs/Ruleset.md +7 -5
  288. data/docs/SamlConnection.md +3 -3
  289. data/docs/Session.md +2 -2
  290. data/docs/SetDiscountEffectProps.md +4 -4
  291. data/docs/SetDiscountPerAdditionalCostEffectProps.md +5 -5
  292. data/docs/SetDiscountPerAdditionalCostPerItemEffectProps.md +5 -5
  293. data/docs/SetDiscountPerItemEffectProps.md +9 -5
  294. data/docs/ShowBundleMetadataEffectProps.md +3 -3
  295. data/docs/ShowNotificationEffectProps.md +3 -3
  296. data/docs/StrikethroughChangedItem.md +29 -0
  297. data/docs/StrikethroughEffect.md +27 -0
  298. data/docs/StrikethroughLabelingNotification.md +25 -0
  299. data/docs/StrikethroughSetDiscountPerItemEffectProps.md +19 -0
  300. data/docs/StrikethroughTrigger.md +25 -0
  301. data/docs/TalangAttribute.md +33 -0
  302. data/docs/TalangAttributeVisibility.md +19 -0
  303. data/docs/TemplateArgDef.md +5 -1
  304. data/docs/TemplateDef.md +2 -2
  305. data/docs/Tier.md +2 -2
  306. data/docs/TransferLoyaltyCard.md +17 -0
  307. data/docs/TriggerWebhookEffectProps.md +2 -2
  308. data/docs/UpdateAccount.md +2 -2
  309. data/docs/UpdateApplication.md +9 -9
  310. data/docs/UpdateAttributeEffectProps.md +2 -2
  311. data/docs/UpdateAudience.md +1 -1
  312. data/docs/UpdateCampaign.md +12 -12
  313. data/docs/UpdateCampaignGroup.md +5 -5
  314. data/docs/UpdateCampaignTemplate.md +16 -14
  315. data/docs/UpdateCatalog.md +2 -2
  316. data/docs/UpdateCoupon.md +12 -8
  317. data/docs/UpdateCouponBatch.md +7 -5
  318. data/docs/UpdateCustomEffect.md +3 -1
  319. data/docs/UpdateLoyaltyCard.md +2 -2
  320. data/docs/UpdateLoyaltyProgram.md +7 -5
  321. data/docs/UpdatePicklist.md +19 -0
  322. data/docs/UpdateReferral.md +3 -3
  323. data/docs/UpdateReferralBatch.md +2 -2
  324. data/docs/UpdateRole.md +8 -8
  325. data/docs/UpdateUser.md +7 -7
  326. data/docs/UpdateUserLatestFeedTimestamp.md +1 -1
  327. data/docs/User.md +5 -5
  328. data/docs/UserEntity.md +2 -2
  329. data/docs/UserFeedNotifications.md +2 -2
  330. data/docs/Webhook.md +19 -17
  331. data/docs/WebhookActivationLogEntry.md +9 -9
  332. data/docs/WebhookLogEntry.md +18 -15
  333. data/docs/WillAwardGiveawayEffectProps.md +3 -3
  334. data/lib/talon_one/api/integration_api.rb +640 -99
  335. data/lib/talon_one/api/management_api.rb +2413 -780
  336. data/lib/talon_one/api_client.rb +2 -2
  337. data/lib/talon_one/api_error.rb +2 -2
  338. data/lib/talon_one/configuration.rb +12 -5
  339. data/lib/talon_one/models/accept_coupon_effect_props.rb +3 -3
  340. data/lib/talon_one/models/accept_referral_effect_props.rb +3 -3
  341. data/lib/talon_one/models/access_log_entry.rb +6 -6
  342. data/lib/talon_one/models/account.rb +8 -8
  343. data/lib/talon_one/models/account_additional_cost.rb +7 -7
  344. data/lib/talon_one/models/account_analytics.rb +21 -21
  345. data/lib/talon_one/models/account_dashboard_statistic.rb +271 -0
  346. data/lib/talon_one/models/account_dashboard_statistic_api_calls.rb +227 -0
  347. data/lib/talon_one/models/account_dashboard_statistic_campaigns.rb +227 -0
  348. data/lib/talon_one/models/account_dashboard_statistic_discount.rb +242 -0
  349. data/lib/talon_one/models/account_dashboard_statistic_loyalty_points.rb +227 -0
  350. data/lib/talon_one/models/account_dashboard_statistic_referrals.rb +227 -0
  351. data/lib/talon_one/models/account_dashboard_statistic_revenue.rb +242 -0
  352. data/lib/talon_one/models/account_entity.rb +2 -2
  353. data/lib/talon_one/models/account_limits.rb +14 -14
  354. data/lib/talon_one/models/add_free_item_effect_props.rb +4 -4
  355. data/lib/talon_one/models/add_item_catalog_action.rb +245 -0
  356. data/lib/talon_one/models/add_loyalty_points.rb +311 -0
  357. data/lib/talon_one/models/add_loyalty_points_effect_props.rb +43 -8
  358. data/lib/talon_one/models/added_deducted_points_notification_policy.rb +269 -0
  359. data/lib/talon_one/models/additional_cost.rb +2 -2
  360. data/lib/talon_one/models/api_error.rb +2 -2
  361. data/lib/talon_one/models/application.rb +7 -7
  362. data/lib/talon_one/models/application_api_health.rb +5 -5
  363. data/lib/talon_one/models/application_api_key.rb +11 -11
  364. data/lib/talon_one/models/application_campaign_stats.rb +9 -9
  365. data/lib/talon_one/models/application_customer.rb +20 -10
  366. data/lib/talon_one/models/application_customer_entity.rb +2 -2
  367. data/lib/talon_one/models/application_entity.rb +2 -2
  368. data/lib/talon_one/models/application_event.rb +5 -5
  369. data/lib/talon_one/models/application_notification.rb +2 -2
  370. data/lib/talon_one/models/application_referee.rb +6 -6
  371. data/lib/talon_one/models/application_session.rb +7 -7
  372. data/lib/talon_one/models/application_session_entity.rb +2 -2
  373. data/lib/talon_one/models/async_coupon_creation_response.rb +2 -2
  374. data/lib/talon_one/models/attribute.rb +30 -6
  375. data/lib/talon_one/models/attributes_mandatory.rb +2 -2
  376. data/lib/talon_one/models/attributes_settings.rb +2 -2
  377. data/lib/talon_one/models/audience.rb +50 -10
  378. data/lib/talon_one/models/audience_analytics.rb +218 -0
  379. data/lib/talon_one/models/audience_customer.rb +395 -0
  380. data/lib/talon_one/models/{loyalty_projection_data.rb → audience_integration_id.rb} +33 -59
  381. data/lib/talon_one/models/audience_membership.rb +2 -2
  382. data/lib/talon_one/models/award_giveaway_effect_props.rb +2 -2
  383. data/lib/talon_one/models/base_loyalty_program.rb +19 -9
  384. data/lib/talon_one/models/base_notification.rb +260 -0
  385. data/lib/talon_one/models/base_notification_entity.rb +211 -0
  386. data/lib/talon_one/models/base_notification_webhook.rb +275 -0
  387. data/lib/talon_one/models/base_notifications.rb +209 -0
  388. data/lib/talon_one/models/base_saml_connection.rb +2 -2
  389. data/lib/talon_one/models/binding.rb +2 -2
  390. data/lib/talon_one/models/bulk_application_notification.rb +2 -2
  391. data/lib/talon_one/models/bulk_campaign_notification.rb +2 -2
  392. data/lib/talon_one/models/campaign.rb +18 -8
  393. data/lib/talon_one/models/campaign_activation_request.rb +214 -0
  394. data/lib/talon_one/models/campaign_analytics.rb +2 -2
  395. data/lib/talon_one/models/campaign_collection.rb +5 -5
  396. data/lib/talon_one/models/campaign_collection_without_payload.rb +5 -5
  397. data/lib/talon_one/models/campaign_copy.rb +4 -4
  398. data/lib/talon_one/models/campaign_created_notification.rb +29 -6
  399. data/lib/talon_one/models/campaign_deleted_notification.rb +21 -6
  400. data/lib/talon_one/models/campaign_edited_notification.rb +15 -6
  401. data/lib/talon_one/models/campaign_entity.rb +2 -2
  402. data/lib/talon_one/models/campaign_group.rb +7 -7
  403. data/lib/talon_one/models/campaign_group_entity.rb +2 -2
  404. data/lib/talon_one/models/campaign_notification.rb +2 -2
  405. data/lib/talon_one/models/campaign_priorities_changed_notification.rb +17 -22
  406. data/lib/talon_one/models/campaign_priorities_v2.rb +2 -2
  407. data/lib/talon_one/models/campaign_ruleset_changed_notification.rb +2 -7
  408. data/lib/talon_one/models/campaign_search.rb +3 -3
  409. data/lib/talon_one/models/campaign_set.rb +19 -9
  410. data/lib/talon_one/models/campaign_set_branch_node.rb +5 -5
  411. data/lib/talon_one/models/campaign_set_i_ds.rb +2 -2
  412. data/lib/talon_one/models/campaign_set_leaf_node.rb +3 -3
  413. data/lib/talon_one/models/campaign_set_node.rb +2 -2
  414. data/lib/talon_one/models/campaign_set_v2.rb +5 -5
  415. data/lib/talon_one/models/campaign_state_changed_notification.rb +15 -6
  416. data/lib/talon_one/models/campaign_template.rb +25 -15
  417. data/lib/talon_one/models/campaign_template_collection.rb +2 -2
  418. data/lib/talon_one/models/campaign_template_params.rb +16 -6
  419. data/lib/talon_one/models/card_ledger_transaction_log_entry.rb +508 -0
  420. data/lib/talon_one/models/card_ledger_transaction_log_entry_integration_api.rb +508 -0
  421. data/lib/talon_one/models/cart_item.rb +28 -47
  422. data/lib/talon_one/models/catalog.rb +7 -7
  423. data/lib/talon_one/models/catalog_action.rb +261 -0
  424. data/lib/talon_one/models/catalog_action_filter.rb +277 -0
  425. data/lib/talon_one/models/catalog_item.rb +313 -0
  426. data/lib/talon_one/models/catalog_sync_request.rb +238 -0
  427. data/lib/talon_one/models/catalogs_strikethrough_notification_policy.rb +231 -0
  428. data/lib/talon_one/models/change.rb +20 -10
  429. data/lib/talon_one/models/change_profile_password.rb +2 -2
  430. data/lib/talon_one/models/code_generator_settings.rb +3 -3
  431. data/lib/talon_one/models/collection.rb +5 -5
  432. data/lib/talon_one/models/collection_item.rb +212 -0
  433. data/lib/talon_one/models/collection_without_payload.rb +5 -5
  434. data/lib/talon_one/models/coupon.rb +68 -12
  435. data/lib/talon_one/models/coupon_constraints.rb +39 -5
  436. data/lib/talon_one/models/coupon_created_effect_props.rb +4 -4
  437. data/lib/talon_one/models/coupon_creation_job.rb +58 -15
  438. data/lib/talon_one/models/coupon_limit_configs.rb +2 -2
  439. data/lib/talon_one/models/coupon_rejection_reason.rb +4 -4
  440. data/lib/talon_one/models/coupon_reservations.rb +3 -3
  441. data/lib/talon_one/models/coupon_search.rb +3 -3
  442. data/lib/talon_one/models/coupon_value.rb +2 -2
  443. data/lib/talon_one/models/coupons_notification_policy.rb +269 -0
  444. data/lib/talon_one/models/create_application_api_key.rb +6 -6
  445. data/lib/talon_one/models/create_management_key.rb +256 -0
  446. data/lib/talon_one/models/create_template_campaign.rb +15 -3
  447. data/lib/talon_one/models/create_template_campaign_response.rb +2 -2
  448. data/lib/talon_one/models/custom_effect.rb +17 -7
  449. data/lib/talon_one/models/custom_effect_props.rb +44 -4
  450. data/lib/talon_one/models/customer_activity_report.rb +5 -5
  451. data/lib/talon_one/models/customer_analytics.rb +10 -10
  452. data/lib/talon_one/models/customer_inventory.rb +2 -2
  453. data/lib/talon_one/models/customer_profile.rb +23 -13
  454. data/lib/talon_one/models/customer_profile_audience_request.rb +2 -2
  455. data/lib/talon_one/models/customer_profile_audience_request_item.rb +2 -2
  456. data/lib/talon_one/models/customer_profile_integration_request_v2.rb +17 -5
  457. data/lib/talon_one/models/customer_profile_search_query.rb +2 -2
  458. data/lib/talon_one/models/customer_profile_update_v2_response.rb +212 -0
  459. data/lib/talon_one/models/customer_session.rb +8 -8
  460. data/lib/talon_one/models/customer_session_v2.rb +27 -15
  461. data/lib/talon_one/models/{loyalty_points.rb → deduct_loyalty_points.rb} +23 -33
  462. data/lib/talon_one/models/deduct_loyalty_points_effect_props.rb +23 -8
  463. data/lib/talon_one/models/effect.rb +20 -9
  464. data/lib/talon_one/models/effect_entity.rb +23 -13
  465. data/lib/talon_one/models/email_entity.rb +2 -2
  466. data/lib/talon_one/models/endpoint.rb +212 -0
  467. data/lib/talon_one/models/entity.rb +4 -4
  468. data/lib/talon_one/models/entity_with_talang_visible_id.rb +2 -2
  469. data/lib/talon_one/models/environment.rb +5 -5
  470. data/lib/talon_one/models/error_effect_props.rb +2 -2
  471. data/lib/talon_one/models/error_response.rb +2 -2
  472. data/lib/talon_one/models/error_response_with_status.rb +2 -2
  473. data/lib/talon_one/models/error_source.rb +3 -3
  474. data/lib/talon_one/models/evaluable_campaign_ids.rb +209 -0
  475. data/lib/talon_one/models/event.rb +6 -6
  476. data/lib/talon_one/models/event_type.rb +7 -7
  477. data/lib/talon_one/models/event_v2.rb +18 -6
  478. data/lib/talon_one/models/expiring_points_notification_policy.rb +247 -0
  479. data/lib/talon_one/models/expiring_points_notification_trigger.rb +280 -0
  480. data/lib/talon_one/models/export.rb +6 -6
  481. data/lib/talon_one/models/feature_flag.rb +6 -6
  482. data/lib/talon_one/models/features_feed.rb +2 -2
  483. data/lib/talon_one/models/feed_notification.rb +9 -9
  484. data/lib/talon_one/models/frontend_state.rb +39 -0
  485. data/lib/talon_one/models/func_arg_def.rb +4 -4
  486. data/lib/talon_one/models/function_def.rb +2 -2
  487. data/lib/talon_one/models/giveaway.rb +28 -8
  488. data/lib/talon_one/models/giveaways_pool.rb +22 -7
  489. data/lib/talon_one/models/import.rb +5 -5
  490. data/lib/talon_one/models/import_entity.rb +2 -2
  491. data/lib/talon_one/models/inline_response200.rb +2 -2
  492. data/lib/talon_one/models/inline_response2001.rb +13 -13
  493. data/lib/talon_one/models/inline_response20010.rb +13 -13
  494. data/lib/talon_one/models/inline_response20011.rb +13 -13
  495. data/lib/talon_one/models/inline_response20012.rb +13 -13
  496. data/lib/talon_one/models/inline_response20013.rb +11 -13
  497. data/lib/talon_one/models/inline_response20014.rb +13 -9
  498. data/lib/talon_one/models/inline_response20015.rb +3 -3
  499. data/lib/talon_one/models/inline_response20016.rb +13 -9
  500. data/lib/talon_one/models/inline_response20017.rb +8 -3
  501. data/lib/talon_one/models/inline_response20018.rb +13 -13
  502. data/lib/talon_one/models/inline_response20019.rb +3 -3
  503. data/lib/talon_one/models/inline_response2002.rb +3 -3
  504. data/lib/talon_one/models/inline_response20020.rb +13 -13
  505. data/lib/talon_one/models/inline_response20021.rb +3 -13
  506. data/lib/talon_one/models/inline_response20022.rb +13 -9
  507. data/lib/talon_one/models/inline_response20023.rb +13 -13
  508. data/lib/talon_one/models/inline_response20024.rb +13 -13
  509. data/lib/talon_one/models/inline_response20025.rb +10 -15
  510. data/lib/talon_one/models/inline_response20026.rb +13 -13
  511. data/lib/talon_one/models/inline_response20027.rb +3 -3
  512. data/lib/talon_one/models/inline_response20028.rb +13 -9
  513. data/lib/talon_one/models/inline_response20029.rb +13 -13
  514. data/lib/talon_one/models/inline_response2003.rb +3 -3
  515. data/lib/talon_one/models/inline_response20030.rb +3 -3
  516. data/lib/talon_one/models/inline_response20031.rb +3 -3
  517. data/lib/talon_one/models/inline_response20032.rb +227 -0
  518. data/lib/talon_one/models/inline_response20033.rb +227 -0
  519. data/lib/talon_one/models/inline_response20034.rb +227 -0
  520. data/lib/talon_one/models/inline_response20035.rb +227 -0
  521. data/lib/talon_one/models/inline_response20036.rb +227 -0
  522. data/lib/talon_one/models/inline_response20037.rb +231 -0
  523. data/lib/talon_one/models/inline_response20038.rb +227 -0
  524. data/lib/talon_one/models/inline_response20039.rb +227 -0
  525. data/lib/talon_one/models/inline_response2004.rb +3 -3
  526. data/lib/talon_one/models/inline_response2005.rb +13 -13
  527. data/lib/talon_one/models/inline_response2006.rb +13 -13
  528. data/lib/talon_one/models/inline_response2007.rb +13 -13
  529. data/lib/talon_one/models/inline_response2008.rb +9 -13
  530. data/lib/talon_one/models/inline_response2009.rb +9 -13
  531. data/lib/talon_one/models/inline_response201.rb +2 -2
  532. data/lib/talon_one/models/integration_coupon.rb +569 -0
  533. data/lib/talon_one/models/integration_customer_session_response.rb +17 -6
  534. data/lib/talon_one/models/integration_entity.rb +4 -4
  535. data/lib/talon_one/models/integration_event.rb +3 -3
  536. data/lib/talon_one/models/integration_event_v2_request.rb +18 -6
  537. data/lib/talon_one/models/integration_profile_entity.rb +3 -3
  538. data/lib/talon_one/models/integration_request.rb +3 -3
  539. data/lib/talon_one/models/integration_state.rb +2 -2
  540. data/lib/talon_one/models/integration_state_v2.rb +5 -4
  541. data/lib/talon_one/models/inventory_coupon.rb +65 -9
  542. data/lib/talon_one/models/inventory_referral.rb +6 -6
  543. data/lib/talon_one/models/item_attribute.rb +243 -0
  544. data/lib/talon_one/models/ledger_entry.rb +11 -11
  545. data/lib/talon_one/models/ledger_info.rb +21 -20
  546. data/lib/talon_one/models/ledger_transaction_log_entry_integration_api.rb +474 -0
  547. data/lib/talon_one/models/library_attribute.rb +2 -2
  548. data/lib/talon_one/models/limit_config.rb +2 -2
  549. data/lib/talon_one/models/limit_counter.rb +4 -4
  550. data/lib/talon_one/models/login_params.rb +2 -2
  551. data/lib/talon_one/models/loyalty.rb +2 -2
  552. data/lib/talon_one/models/loyalty_balance.rb +238 -0
  553. data/lib/talon_one/models/loyalty_balances.rb +219 -0
  554. data/lib/talon_one/models/loyalty_card.rb +81 -12
  555. data/lib/talon_one/models/loyalty_card_profile_registration.rb +4 -4
  556. data/lib/talon_one/models/loyalty_card_registration.rb +2 -2
  557. data/lib/talon_one/models/loyalty_dashboard_data.rb +2 -2
  558. data/lib/talon_one/models/loyalty_dashboard_points_breakdown.rb +2 -2
  559. data/lib/talon_one/models/loyalty_ledger.rb +2 -2
  560. data/lib/talon_one/models/loyalty_ledger_entry.rb +18 -8
  561. data/lib/talon_one/models/loyalty_ledger_transactions.rb +220 -0
  562. data/lib/talon_one/models/loyalty_membership.rb +2 -2
  563. data/lib/talon_one/models/loyalty_program.rb +23 -8
  564. data/lib/talon_one/models/loyalty_program_balance.rb +21 -11
  565. data/lib/talon_one/models/loyalty_program_entity.rb +2 -2
  566. data/lib/talon_one/models/loyalty_program_ledgers.rb +6 -6
  567. data/lib/talon_one/models/loyalty_program_transaction.rb +553 -0
  568. data/lib/talon_one/models/loyalty_statistics.rb +2 -2
  569. data/lib/talon_one/models/loyalty_sub_ledger.rb +3 -3
  570. data/lib/talon_one/models/loyalty_tier.rb +5 -5
  571. data/lib/talon_one/models/management_key.rb +317 -0
  572. data/lib/talon_one/models/manager_config.rb +2 -2
  573. data/lib/talon_one/models/meta.rb +2 -2
  574. data/lib/talon_one/models/model_return.rb +5 -5
  575. data/lib/talon_one/models/multi_application_entity.rb +2 -2
  576. data/lib/talon_one/models/multiple_attribute.rb +2 -2
  577. data/lib/talon_one/models/{loyalty_projection.rb → multiple_audiences.rb} +27 -38
  578. data/lib/talon_one/models/multiple_audiences_item.rb +354 -0
  579. data/lib/talon_one/models/multiple_customer_profile_integration_request.rb +2 -2
  580. data/lib/talon_one/models/multiple_customer_profile_integration_request_item.rb +4 -4
  581. data/lib/talon_one/models/multiple_customer_profile_integration_response_v2.rb +3 -3
  582. data/lib/talon_one/models/multiple_new_attribute.rb +2 -2
  583. data/lib/talon_one/models/multiple_new_audiences.rb +213 -0
  584. data/lib/talon_one/models/mutable_entity.rb +3 -3
  585. data/lib/talon_one/models/new_account.rb +2 -2
  586. data/lib/talon_one/models/new_account_sign_up.rb +2 -2
  587. data/lib/talon_one/models/new_additional_cost.rb +5 -5
  588. data/lib/talon_one/models/new_application.rb +4 -4
  589. data/lib/talon_one/models/new_application_api_key.rb +12 -12
  590. data/lib/talon_one/models/new_attribute.rb +31 -7
  591. data/lib/talon_one/models/new_audience.rb +49 -8
  592. data/lib/talon_one/models/new_base_notification.rb +226 -0
  593. data/lib/talon_one/models/new_campaign.rb +6 -6
  594. data/lib/talon_one/models/new_campaign_collection.rb +2 -2
  595. data/lib/talon_one/models/new_campaign_group.rb +4 -4
  596. data/lib/talon_one/models/new_campaign_set.rb +3 -3
  597. data/lib/talon_one/models/new_campaign_set_v2.rb +3 -3
  598. data/lib/talon_one/models/new_campaign_template.rb +20 -10
  599. data/lib/talon_one/models/new_catalog.rb +4 -4
  600. data/lib/talon_one/models/new_collection.rb +2 -2
  601. data/lib/talon_one/models/new_coupon_creation_job.rb +50 -7
  602. data/lib/talon_one/models/new_coupons.rb +57 -11
  603. data/lib/talon_one/models/new_coupons_for_multiple_recipients.rb +41 -7
  604. data/lib/talon_one/models/new_custom_effect.rb +14 -4
  605. data/lib/talon_one/models/new_customer_profile.rb +3 -3
  606. data/lib/talon_one/models/new_customer_session.rb +5 -5
  607. data/lib/talon_one/models/new_customer_session_v2.rb +21 -9
  608. data/lib/talon_one/models/new_event.rb +3 -3
  609. data/lib/talon_one/models/new_event_type.rb +5 -5
  610. data/lib/talon_one/models/new_giveaways_pool.rb +22 -7
  611. data/lib/talon_one/models/new_internal_audience.rb +251 -0
  612. data/lib/talon_one/models/new_invitation.rb +5 -5
  613. data/lib/talon_one/models/new_invite_email.rb +2 -2
  614. data/lib/talon_one/models/new_loyalty_program.rb +22 -7
  615. data/lib/talon_one/models/new_loyalty_tier.rb +4 -4
  616. data/lib/talon_one/models/new_management_key.rb +332 -0
  617. data/lib/talon_one/models/new_multiple_audiences_item.rb +266 -0
  618. data/lib/talon_one/models/new_notification_webhook.rb +4 -4
  619. data/lib/talon_one/models/new_password.rb +2 -2
  620. data/lib/talon_one/models/new_password_email.rb +2 -2
  621. data/lib/talon_one/models/new_picklist.rb +263 -0
  622. data/lib/talon_one/models/new_referral.rb +4 -4
  623. data/lib/talon_one/models/new_referrals_for_multiple_advocates.rb +4 -4
  624. data/lib/talon_one/models/new_return.rb +3 -3
  625. data/lib/talon_one/models/new_role.rb +6 -6
  626. data/lib/talon_one/models/new_ruleset.rb +15 -3
  627. data/lib/talon_one/models/new_saml_connection.rb +2 -2
  628. data/lib/talon_one/models/new_template_def.rb +2 -2
  629. data/lib/talon_one/models/new_user.rb +2 -2
  630. data/lib/talon_one/models/new_webhook.rb +9 -9
  631. data/lib/talon_one/models/notification.rb +5 -5
  632. data/lib/talon_one/models/notification_webhook.rb +7 -7
  633. data/lib/talon_one/models/outgoing_integration_braze_policy.rb +227 -0
  634. data/lib/talon_one/models/outgoing_integration_configuration.rb +241 -0
  635. data/lib/talon_one/models/outgoing_integration_type.rb +357 -0
  636. data/lib/talon_one/models/outgoing_integration_types.rb +209 -0
  637. data/lib/talon_one/models/outgoing_integration_webhook_template.rb +328 -0
  638. data/lib/talon_one/models/outgoing_integration_webhook_templates.rb +209 -0
  639. data/lib/talon_one/models/patch_item_catalog_action.rb +245 -0
  640. data/lib/talon_one/models/patch_many_items_catalog_action.rb +230 -0
  641. data/lib/talon_one/models/picklist.rb +339 -0
  642. data/lib/talon_one/models/priority_position.rb +264 -0
  643. data/lib/talon_one/models/profile_audiences_changes.rb +2 -2
  644. data/lib/talon_one/models/redeem_referral_effect_props.rb +5 -5
  645. data/lib/talon_one/models/referral.rb +6 -6
  646. data/lib/talon_one/models/referral_constraints.rb +3 -3
  647. data/lib/talon_one/models/referral_created_effect_props.rb +3 -3
  648. data/lib/talon_one/models/referral_rejection_reason.rb +4 -4
  649. data/lib/talon_one/models/reject_coupon_effect_props.rb +7 -7
  650. data/lib/talon_one/models/reject_referral_effect_props.rb +7 -7
  651. data/lib/talon_one/models/remove_item_catalog_action.rb +213 -0
  652. data/lib/talon_one/models/remove_many_items_catalog_action.rb +210 -0
  653. data/lib/talon_one/models/reserve_coupon_effect_props.rb +243 -0
  654. data/lib/talon_one/models/return_integration_request.rb +3 -3
  655. data/lib/talon_one/models/returned_cart_item.rb +3 -3
  656. data/lib/talon_one/models/role.rb +10 -10
  657. data/lib/talon_one/models/role_assign.rb +4 -4
  658. data/lib/talon_one/models/role_membership.rb +4 -4
  659. data/lib/talon_one/models/role_v2.rb +248 -0
  660. data/lib/talon_one/models/role_v2_application_details.rb +227 -0
  661. data/lib/talon_one/models/role_v2_permission_set.rb +228 -0
  662. data/lib/talon_one/models/role_v2_permissions.rb +218 -0
  663. data/lib/talon_one/models/role_v2_permissions_roles.rb +230 -0
  664. data/lib/talon_one/models/rollback_added_loyalty_points_effect_props.rb +23 -8
  665. data/lib/talon_one/models/rollback_coupon_effect_props.rb +3 -3
  666. data/lib/talon_one/models/rollback_deducted_loyalty_points_effect_props.rb +25 -10
  667. data/lib/talon_one/models/rollback_discount_effect_props.rb +5 -5
  668. data/lib/talon_one/models/rollback_referral_effect_props.rb +3 -3
  669. data/lib/talon_one/models/rule.rb +23 -3
  670. data/lib/talon_one/models/rule_failure_reason.rb +14 -14
  671. data/lib/talon_one/models/ruleset.rb +18 -6
  672. data/lib/talon_one/models/saml_connection.rb +4 -4
  673. data/lib/talon_one/models/saml_connection_metadata.rb +2 -2
  674. data/lib/talon_one/models/saml_login_endpoint.rb +2 -2
  675. data/lib/talon_one/models/session.rb +3 -3
  676. data/lib/talon_one/models/set_discount_effect_props.rb +6 -6
  677. data/lib/talon_one/models/set_discount_per_additional_cost_effect_props.rb +7 -7
  678. data/lib/talon_one/models/set_discount_per_additional_cost_per_item_effect_props.rb +7 -7
  679. data/lib/talon_one/models/set_discount_per_item_effect_props.rb +30 -10
  680. data/lib/talon_one/models/show_bundle_metadata_effect_props.rb +6 -6
  681. data/lib/talon_one/models/show_notification_effect_props.rb +5 -5
  682. data/lib/talon_one/models/slot_def.rb +2 -2
  683. data/lib/talon_one/models/strikethrough_changed_item.rb +318 -0
  684. data/lib/talon_one/models/strikethrough_effect.rb +287 -0
  685. data/lib/talon_one/models/strikethrough_labeling_notification.rb +273 -0
  686. data/lib/talon_one/models/strikethrough_set_discount_per_item_effect_props.rb +228 -0
  687. data/lib/talon_one/models/strikethrough_trigger.rb +273 -0
  688. data/lib/talon_one/models/talang_attribute.rb +363 -0
  689. data/lib/talon_one/models/talang_attribute_visibility.rb +221 -0
  690. data/lib/talon_one/models/template_arg_def.rb +28 -8
  691. data/lib/talon_one/models/template_def.rb +4 -4
  692. data/lib/talon_one/models/template_limit_config.rb +2 -2
  693. data/lib/talon_one/models/tier.rb +4 -4
  694. data/lib/talon_one/models/transfer_loyalty_card.rb +231 -0
  695. data/lib/talon_one/models/trigger_webhook_effect_props.rb +4 -4
  696. data/lib/talon_one/models/update_account.rb +4 -4
  697. data/lib/talon_one/models/update_application.rb +3 -3
  698. data/lib/talon_one/models/update_attribute_effect_props.rb +4 -4
  699. data/lib/talon_one/models/update_audience.rb +2 -2
  700. data/lib/talon_one/models/update_campaign.rb +4 -4
  701. data/lib/talon_one/models/update_campaign_collection.rb +2 -2
  702. data/lib/talon_one/models/update_campaign_group.rb +4 -4
  703. data/lib/talon_one/models/update_campaign_template.rb +23 -13
  704. data/lib/talon_one/models/update_catalog.rb +4 -4
  705. data/lib/talon_one/models/update_collection.rb +2 -2
  706. data/lib/talon_one/models/update_coupon.rb +56 -10
  707. data/lib/talon_one/models/update_coupon_batch.rb +40 -6
  708. data/lib/talon_one/models/update_custom_effect.rb +14 -4
  709. data/lib/talon_one/models/update_loyalty_card.rb +3 -3
  710. data/lib/talon_one/models/update_loyalty_program.rb +17 -7
  711. data/lib/talon_one/models/update_picklist.rb +264 -0
  712. data/lib/talon_one/models/update_referral.rb +5 -5
  713. data/lib/talon_one/models/update_referral_batch.rb +4 -4
  714. data/lib/talon_one/models/update_role.rb +6 -6
  715. data/lib/talon_one/models/update_user.rb +5 -5
  716. data/lib/talon_one/models/update_user_latest_feed_timestamp.rb +4 -4
  717. data/lib/talon_one/models/user.rb +7 -7
  718. data/lib/talon_one/models/user_entity.rb +3 -3
  719. data/lib/talon_one/models/user_feed_notifications.rb +5 -5
  720. data/lib/talon_one/models/webhook.rb +12 -12
  721. data/lib/talon_one/models/webhook_activation_log_entry.rb +7 -7
  722. data/lib/talon_one/models/webhook_log_entry.rb +8 -8
  723. data/lib/talon_one/models/will_award_giveaway_effect_props.rb +2 -2
  724. data/lib/talon_one/version.rb +3 -3
  725. data/lib/talon_one.rb +88 -5
  726. data/spec/api/integration_api_spec.rb +151 -49
  727. data/spec/api/management_api_spec.rb +564 -260
  728. data/spec/api_client_spec.rb +2 -2
  729. data/spec/configuration_spec.rb +5 -5
  730. data/spec/models/accept_coupon_effect_props_spec.rb +2 -2
  731. data/spec/models/accept_referral_effect_props_spec.rb +2 -2
  732. data/spec/models/access_log_entry_spec.rb +2 -2
  733. data/spec/models/account_additional_cost_spec.rb +2 -2
  734. data/spec/models/account_analytics_spec.rb +2 -2
  735. data/spec/models/account_dashboard_statistic_api_calls_spec.rb +47 -0
  736. data/spec/models/account_dashboard_statistic_campaigns_spec.rb +47 -0
  737. data/spec/models/account_dashboard_statistic_discount_spec.rb +53 -0
  738. data/spec/models/account_dashboard_statistic_loyalty_points_spec.rb +47 -0
  739. data/spec/models/account_dashboard_statistic_referrals_spec.rb +47 -0
  740. data/spec/models/account_dashboard_statistic_revenue_spec.rb +53 -0
  741. data/spec/models/account_dashboard_statistic_spec.rb +71 -0
  742. data/spec/models/account_entity_spec.rb +2 -2
  743. data/spec/models/account_limits_spec.rb +2 -2
  744. data/spec/models/account_spec.rb +2 -2
  745. data/spec/models/add_free_item_effect_props_spec.rb +2 -2
  746. data/spec/models/{loyalty_projection_data_spec.rb → add_item_catalog_action_spec.rb} +12 -12
  747. data/spec/models/add_loyalty_points_effect_props_spec.rb +14 -2
  748. data/spec/models/add_loyalty_points_spec.rb +83 -0
  749. data/spec/models/added_deducted_points_notification_policy_spec.rb +51 -0
  750. data/spec/models/additional_cost_spec.rb +2 -2
  751. data/spec/models/api_error_spec.rb +2 -2
  752. data/spec/models/application_api_health_spec.rb +2 -2
  753. data/spec/models/application_api_key_spec.rb +3 -3
  754. data/spec/models/application_campaign_stats_spec.rb +2 -2
  755. data/spec/models/application_customer_entity_spec.rb +2 -2
  756. data/spec/models/application_customer_spec.rb +8 -2
  757. data/spec/models/application_entity_spec.rb +2 -2
  758. data/spec/models/application_event_spec.rb +2 -2
  759. data/spec/models/application_notification_spec.rb +2 -2
  760. data/spec/models/application_referee_spec.rb +2 -2
  761. data/spec/models/application_session_entity_spec.rb +2 -2
  762. data/spec/models/application_session_spec.rb +2 -2
  763. data/spec/models/application_spec.rb +2 -2
  764. data/spec/models/async_coupon_creation_response_spec.rb +2 -2
  765. data/spec/models/attribute_spec.rb +18 -2
  766. data/spec/models/attributes_mandatory_spec.rb +2 -2
  767. data/spec/models/attributes_settings_spec.rb +2 -2
  768. data/spec/models/audience_analytics_spec.rb +47 -0
  769. data/spec/models/audience_customer_spec.rb +113 -0
  770. data/spec/models/audience_integration_id_spec.rb +41 -0
  771. data/spec/models/audience_membership_spec.rb +2 -2
  772. data/spec/models/audience_spec.rb +26 -2
  773. data/spec/models/award_giveaway_effect_props_spec.rb +2 -2
  774. data/spec/models/base_loyalty_program_spec.rb +8 -2
  775. data/spec/models/base_notification_entity_spec.rb +41 -0
  776. data/spec/models/{loyalty_projection_spec.rb → base_notification_spec.rb} +11 -11
  777. data/spec/models/base_notification_webhook_spec.rb +65 -0
  778. data/spec/models/base_notifications_spec.rb +41 -0
  779. data/spec/models/base_saml_connection_spec.rb +2 -2
  780. data/spec/models/binding_spec.rb +2 -2
  781. data/spec/models/bulk_application_notification_spec.rb +2 -2
  782. data/spec/models/bulk_campaign_notification_spec.rb +2 -2
  783. data/spec/models/campaign_activation_request_spec.rb +41 -0
  784. data/spec/models/campaign_analytics_spec.rb +2 -2
  785. data/spec/models/campaign_collection_spec.rb +2 -2
  786. data/spec/models/campaign_collection_without_payload_spec.rb +2 -2
  787. data/spec/models/campaign_copy_spec.rb +2 -2
  788. data/spec/models/campaign_created_notification_spec.rb +14 -2
  789. data/spec/models/campaign_deleted_notification_spec.rb +8 -2
  790. data/spec/models/campaign_edited_notification_spec.rb +8 -2
  791. data/spec/models/campaign_entity_spec.rb +2 -2
  792. data/spec/models/campaign_group_entity_spec.rb +2 -2
  793. data/spec/models/campaign_group_spec.rb +2 -2
  794. data/spec/models/campaign_notification_spec.rb +2 -2
  795. data/spec/models/campaign_priorities_changed_notification_spec.rb +3 -3
  796. data/spec/models/campaign_priorities_v2_spec.rb +2 -2
  797. data/spec/models/campaign_ruleset_changed_notification_spec.rb +2 -2
  798. data/spec/models/campaign_search_spec.rb +2 -2
  799. data/spec/models/campaign_set_branch_node_spec.rb +2 -2
  800. data/spec/models/campaign_set_i_ds_spec.rb +2 -2
  801. data/spec/models/campaign_set_leaf_node_spec.rb +2 -2
  802. data/spec/models/campaign_set_node_spec.rb +2 -2
  803. data/spec/models/campaign_set_spec.rb +8 -2
  804. data/spec/models/campaign_set_v2_spec.rb +2 -2
  805. data/spec/models/campaign_spec.rb +9 -3
  806. data/spec/models/campaign_state_changed_notification_spec.rb +8 -2
  807. data/spec/models/campaign_template_collection_spec.rb +2 -2
  808. data/spec/models/campaign_template_params_spec.rb +8 -2
  809. data/spec/models/campaign_template_spec.rb +9 -3
  810. data/spec/models/card_ledger_transaction_log_entry_integration_api_spec.rb +117 -0
  811. data/spec/models/card_ledger_transaction_log_entry_spec.rb +117 -0
  812. data/spec/models/cart_item_spec.rb +8 -2
  813. data/spec/models/catalog_action_filter_spec.rb +57 -0
  814. data/spec/models/catalog_action_spec.rb +51 -0
  815. data/spec/models/catalog_item_spec.rb +77 -0
  816. data/spec/models/catalog_spec.rb +2 -2
  817. data/spec/models/catalog_sync_request_spec.rb +47 -0
  818. data/spec/models/catalogs_strikethrough_notification_policy_spec.rb +41 -0
  819. data/spec/models/change_profile_password_spec.rb +2 -2
  820. data/spec/models/change_spec.rb +8 -2
  821. data/spec/models/code_generator_settings_spec.rb +2 -2
  822. data/spec/models/collection_item_spec.rb +41 -0
  823. data/spec/models/collection_spec.rb +2 -2
  824. data/spec/models/collection_without_payload_spec.rb +2 -2
  825. data/spec/models/coupon_constraints_spec.rb +8 -2
  826. data/spec/models/coupon_created_effect_props_spec.rb +2 -2
  827. data/spec/models/coupon_creation_job_spec.rb +8 -2
  828. data/spec/models/coupon_limit_configs_spec.rb +2 -2
  829. data/spec/models/coupon_rejection_reason_spec.rb +3 -3
  830. data/spec/models/coupon_reservations_spec.rb +2 -2
  831. data/spec/models/coupon_search_spec.rb +2 -2
  832. data/spec/models/coupon_spec.rb +20 -2
  833. data/spec/models/coupon_value_spec.rb +2 -2
  834. data/spec/models/coupons_notification_policy_spec.rb +51 -0
  835. data/spec/models/create_application_api_key_spec.rb +3 -3
  836. data/spec/models/create_management_key_spec.rb +59 -0
  837. data/spec/models/create_template_campaign_response_spec.rb +2 -2
  838. data/spec/models/create_template_campaign_spec.rb +8 -2
  839. data/spec/models/custom_effect_props_spec.rb +26 -2
  840. data/spec/models/custom_effect_spec.rb +8 -2
  841. data/spec/models/customer_activity_report_spec.rb +2 -2
  842. data/spec/models/customer_analytics_spec.rb +2 -2
  843. data/spec/models/customer_inventory_spec.rb +2 -2
  844. data/spec/models/customer_profile_audience_request_item_spec.rb +2 -2
  845. data/spec/models/customer_profile_audience_request_spec.rb +2 -2
  846. data/spec/models/customer_profile_integration_request_v2_spec.rb +8 -2
  847. data/spec/models/customer_profile_search_query_spec.rb +2 -2
  848. data/spec/models/customer_profile_spec.rb +8 -2
  849. data/spec/models/customer_profile_update_v2_response_spec.rb +41 -0
  850. data/spec/models/customer_session_spec.rb +2 -2
  851. data/spec/models/customer_session_v2_spec.rb +8 -2
  852. data/spec/models/deduct_loyalty_points_effect_props_spec.rb +2 -2
  853. data/spec/models/deduct_loyalty_points_spec.rb +59 -0
  854. data/spec/models/effect_entity_spec.rb +8 -2
  855. data/spec/models/effect_spec.rb +8 -2
  856. data/spec/models/email_entity_spec.rb +2 -2
  857. data/spec/models/endpoint_spec.rb +41 -0
  858. data/spec/models/entity_spec.rb +2 -2
  859. data/spec/models/entity_with_talang_visible_id_spec.rb +2 -2
  860. data/spec/models/environment_spec.rb +2 -2
  861. data/spec/models/error_effect_props_spec.rb +2 -2
  862. data/spec/models/error_response_spec.rb +2 -2
  863. data/spec/models/error_response_with_status_spec.rb +2 -2
  864. data/spec/models/error_source_spec.rb +2 -2
  865. data/spec/models/evaluable_campaign_ids_spec.rb +41 -0
  866. data/spec/models/event_spec.rb +2 -2
  867. data/spec/models/event_type_spec.rb +2 -2
  868. data/spec/models/event_v2_spec.rb +8 -2
  869. data/spec/models/expiring_points_notification_policy_spec.rb +47 -0
  870. data/spec/models/expiring_points_notification_trigger_spec.rb +51 -0
  871. data/spec/models/export_spec.rb +2 -2
  872. data/spec/models/feature_flag_spec.rb +2 -2
  873. data/spec/models/features_feed_spec.rb +2 -2
  874. data/spec/models/feed_notification_spec.rb +2 -2
  875. data/spec/models/frontend_state_spec.rb +35 -0
  876. data/spec/models/func_arg_def_spec.rb +3 -3
  877. data/spec/models/function_def_spec.rb +2 -2
  878. data/spec/models/giveaway_spec.rb +14 -2
  879. data/spec/models/giveaways_pool_spec.rb +8 -2
  880. data/spec/models/import_entity_spec.rb +2 -2
  881. data/spec/models/import_spec.rb +2 -2
  882. data/spec/models/inline_response20010_spec.rb +3 -3
  883. data/spec/models/inline_response20011_spec.rb +3 -3
  884. data/spec/models/inline_response20012_spec.rb +3 -3
  885. data/spec/models/inline_response20013_spec.rb +2 -8
  886. data/spec/models/inline_response20014_spec.rb +8 -2
  887. data/spec/models/inline_response20015_spec.rb +2 -2
  888. data/spec/models/inline_response20016_spec.rb +8 -2
  889. data/spec/models/inline_response20017_spec.rb +2 -2
  890. data/spec/models/inline_response20018_spec.rb +3 -3
  891. data/spec/models/inline_response20019_spec.rb +2 -2
  892. data/spec/models/inline_response2001_spec.rb +3 -3
  893. data/spec/models/inline_response20020_spec.rb +4 -4
  894. data/spec/models/inline_response20021_spec.rb +2 -2
  895. data/spec/models/inline_response20022_spec.rb +8 -2
  896. data/spec/models/inline_response20023_spec.rb +3 -3
  897. data/spec/models/inline_response20024_spec.rb +3 -3
  898. data/spec/models/inline_response20025_spec.rb +3 -3
  899. data/spec/models/inline_response20026_spec.rb +3 -3
  900. data/spec/models/inline_response20027_spec.rb +2 -2
  901. data/spec/models/inline_response20028_spec.rb +8 -2
  902. data/spec/models/inline_response20029_spec.rb +4 -4
  903. data/spec/models/inline_response2002_spec.rb +2 -2
  904. data/spec/models/inline_response20030_spec.rb +2 -2
  905. data/spec/models/inline_response20031_spec.rb +2 -2
  906. data/spec/models/inline_response20032_spec.rb +47 -0
  907. data/spec/models/inline_response20033_spec.rb +47 -0
  908. data/spec/models/inline_response20034_spec.rb +47 -0
  909. data/spec/models/inline_response20035_spec.rb +47 -0
  910. data/spec/models/inline_response20036_spec.rb +47 -0
  911. data/spec/models/inline_response20037_spec.rb +53 -0
  912. data/spec/models/inline_response20038_spec.rb +47 -0
  913. data/spec/models/inline_response20039_spec.rb +47 -0
  914. data/spec/models/inline_response2003_spec.rb +2 -2
  915. data/spec/models/inline_response2004_spec.rb +2 -2
  916. data/spec/models/inline_response2005_spec.rb +3 -3
  917. data/spec/models/inline_response2006_spec.rb +3 -3
  918. data/spec/models/inline_response2007_spec.rb +3 -3
  919. data/spec/models/inline_response2008_spec.rb +2 -8
  920. data/spec/models/inline_response2009_spec.rb +2 -8
  921. data/spec/models/inline_response200_spec.rb +2 -2
  922. data/spec/models/inline_response201_spec.rb +2 -2
  923. data/spec/models/integration_coupon_spec.rb +167 -0
  924. data/spec/models/integration_customer_session_response_spec.rb +8 -2
  925. data/spec/models/integration_entity_spec.rb +2 -2
  926. data/spec/models/integration_event_spec.rb +2 -2
  927. data/spec/models/integration_event_v2_request_spec.rb +8 -2
  928. data/spec/models/integration_profile_entity_spec.rb +2 -2
  929. data/spec/models/integration_request_spec.rb +2 -2
  930. data/spec/models/integration_state_spec.rb +2 -2
  931. data/spec/models/integration_state_v2_spec.rb +2 -2
  932. data/spec/models/inventory_coupon_spec.rb +20 -2
  933. data/spec/models/inventory_referral_spec.rb +2 -2
  934. data/spec/models/item_attribute_spec.rb +53 -0
  935. data/spec/models/ledger_entry_spec.rb +2 -2
  936. data/spec/models/ledger_info_spec.rb +5 -5
  937. data/spec/models/ledger_transaction_log_entry_integration_api_spec.rb +111 -0
  938. data/spec/models/library_attribute_spec.rb +2 -2
  939. data/spec/models/limit_config_spec.rb +2 -2
  940. data/spec/models/limit_counter_spec.rb +2 -2
  941. data/spec/models/login_params_spec.rb +2 -2
  942. data/spec/models/loyalty_balance_spec.rb +59 -0
  943. data/spec/models/loyalty_balances_spec.rb +47 -0
  944. data/spec/models/loyalty_card_profile_registration_spec.rb +2 -2
  945. data/spec/models/loyalty_card_registration_spec.rb +2 -2
  946. data/spec/models/loyalty_card_spec.rb +14 -2
  947. data/spec/models/loyalty_dashboard_data_spec.rb +2 -2
  948. data/spec/models/loyalty_dashboard_points_breakdown_spec.rb +2 -2
  949. data/spec/models/loyalty_ledger_entry_spec.rb +8 -2
  950. data/spec/models/loyalty_ledger_spec.rb +2 -2
  951. data/spec/models/loyalty_ledger_transactions_spec.rb +47 -0
  952. data/spec/models/loyalty_membership_spec.rb +2 -2
  953. data/spec/models/loyalty_program_balance_spec.rb +8 -2
  954. data/spec/models/loyalty_program_entity_spec.rb +2 -2
  955. data/spec/models/loyalty_program_ledgers_spec.rb +2 -2
  956. data/spec/models/loyalty_program_spec.rb +8 -2
  957. data/spec/models/loyalty_program_transaction_spec.rb +141 -0
  958. data/spec/models/loyalty_spec.rb +2 -2
  959. data/spec/models/loyalty_statistics_spec.rb +2 -2
  960. data/spec/models/loyalty_sub_ledger_spec.rb +2 -2
  961. data/spec/models/loyalty_tier_spec.rb +2 -2
  962. data/spec/models/management_key_spec.rb +83 -0
  963. data/spec/models/manager_config_spec.rb +2 -2
  964. data/spec/models/meta_spec.rb +2 -2
  965. data/spec/models/model_return_spec.rb +2 -2
  966. data/spec/models/multi_application_entity_spec.rb +2 -2
  967. data/spec/models/multiple_attribute_spec.rb +2 -2
  968. data/spec/models/multiple_audiences_item_spec.rb +69 -0
  969. data/spec/models/multiple_audiences_spec.rb +47 -0
  970. data/spec/models/multiple_customer_profile_integration_request_item_spec.rb +2 -2
  971. data/spec/models/multiple_customer_profile_integration_request_spec.rb +2 -2
  972. data/spec/models/multiple_customer_profile_integration_response_v2_spec.rb +2 -2
  973. data/spec/models/multiple_new_attribute_spec.rb +2 -2
  974. data/spec/models/multiple_new_audiences_spec.rb +41 -0
  975. data/spec/models/mutable_entity_spec.rb +2 -2
  976. data/spec/models/new_account_sign_up_spec.rb +2 -2
  977. data/spec/models/new_account_spec.rb +2 -2
  978. data/spec/models/new_additional_cost_spec.rb +2 -2
  979. data/spec/models/new_application_api_key_spec.rb +3 -3
  980. data/spec/models/new_application_spec.rb +2 -2
  981. data/spec/models/new_attribute_spec.rb +18 -2
  982. data/spec/models/new_audience_spec.rb +26 -2
  983. data/spec/models/new_base_notification_spec.rb +47 -0
  984. data/spec/models/new_campaign_collection_spec.rb +2 -2
  985. data/spec/models/new_campaign_group_spec.rb +2 -2
  986. data/spec/models/new_campaign_set_spec.rb +2 -2
  987. data/spec/models/new_campaign_set_v2_spec.rb +2 -2
  988. data/spec/models/new_campaign_spec.rb +3 -3
  989. data/spec/models/new_campaign_template_spec.rb +9 -3
  990. data/spec/models/new_catalog_spec.rb +2 -2
  991. data/spec/models/new_collection_spec.rb +2 -2
  992. data/spec/models/new_coupon_creation_job_spec.rb +8 -2
  993. data/spec/models/new_coupons_for_multiple_recipients_spec.rb +8 -2
  994. data/spec/models/new_coupons_spec.rb +14 -2
  995. data/spec/models/new_custom_effect_spec.rb +8 -2
  996. data/spec/models/new_customer_profile_spec.rb +2 -2
  997. data/spec/models/new_customer_session_spec.rb +2 -2
  998. data/spec/models/new_customer_session_v2_spec.rb +8 -2
  999. data/spec/models/new_event_spec.rb +2 -2
  1000. data/spec/models/new_event_type_spec.rb +2 -2
  1001. data/spec/models/new_giveaways_pool_spec.rb +8 -2
  1002. data/spec/models/new_internal_audience_spec.rb +53 -0
  1003. data/spec/models/new_invitation_spec.rb +2 -2
  1004. data/spec/models/new_invite_email_spec.rb +2 -2
  1005. data/spec/models/new_loyalty_program_spec.rb +8 -2
  1006. data/spec/models/new_loyalty_tier_spec.rb +2 -2
  1007. data/spec/models/new_management_key_spec.rb +89 -0
  1008. data/spec/models/new_multiple_audiences_item_spec.rb +47 -0
  1009. data/spec/models/new_notification_webhook_spec.rb +2 -2
  1010. data/spec/models/new_password_email_spec.rb +2 -2
  1011. data/spec/models/new_password_spec.rb +2 -2
  1012. data/spec/models/new_picklist_spec.rb +51 -0
  1013. data/spec/models/new_referral_spec.rb +2 -2
  1014. data/spec/models/new_referrals_for_multiple_advocates_spec.rb +2 -2
  1015. data/spec/models/new_return_spec.rb +2 -2
  1016. data/spec/models/new_role_spec.rb +2 -2
  1017. data/spec/models/new_ruleset_spec.rb +8 -2
  1018. data/spec/models/new_saml_connection_spec.rb +2 -2
  1019. data/spec/models/new_template_def_spec.rb +2 -2
  1020. data/spec/models/new_user_spec.rb +2 -2
  1021. data/spec/models/new_webhook_spec.rb +2 -2
  1022. data/spec/models/notification_spec.rb +2 -2
  1023. data/spec/models/notification_webhook_spec.rb +2 -2
  1024. data/spec/models/outgoing_integration_braze_policy_spec.rb +47 -0
  1025. data/spec/models/outgoing_integration_configuration_spec.rb +53 -0
  1026. data/spec/models/outgoing_integration_type_spec.rb +65 -0
  1027. data/spec/models/outgoing_integration_types_spec.rb +41 -0
  1028. data/spec/models/outgoing_integration_webhook_template_spec.rb +65 -0
  1029. data/spec/models/outgoing_integration_webhook_templates_spec.rb +41 -0
  1030. data/spec/models/patch_item_catalog_action_spec.rb +59 -0
  1031. data/spec/models/patch_many_items_catalog_action_spec.rb +53 -0
  1032. data/spec/models/picklist_spec.rb +87 -0
  1033. data/spec/models/priority_position_spec.rb +51 -0
  1034. data/spec/models/profile_audiences_changes_spec.rb +2 -2
  1035. data/spec/models/redeem_referral_effect_props_spec.rb +2 -2
  1036. data/spec/models/referral_constraints_spec.rb +2 -2
  1037. data/spec/models/referral_created_effect_props_spec.rb +2 -2
  1038. data/spec/models/referral_rejection_reason_spec.rb +3 -3
  1039. data/spec/models/referral_spec.rb +2 -2
  1040. data/spec/models/reject_coupon_effect_props_spec.rb +2 -2
  1041. data/spec/models/reject_referral_effect_props_spec.rb +2 -2
  1042. data/spec/models/remove_item_catalog_action_spec.rb +41 -0
  1043. data/spec/models/remove_many_items_catalog_action_spec.rb +41 -0
  1044. data/spec/models/reserve_coupon_effect_props_spec.rb +53 -0
  1045. data/spec/models/return_integration_request_spec.rb +2 -2
  1046. data/spec/models/returned_cart_item_spec.rb +2 -2
  1047. data/spec/models/role_assign_spec.rb +2 -2
  1048. data/spec/models/role_membership_spec.rb +2 -2
  1049. data/spec/models/role_spec.rb +2 -2
  1050. data/spec/models/role_v2_application_details_spec.rb +53 -0
  1051. data/spec/models/role_v2_permission_set_spec.rb +47 -0
  1052. data/spec/models/role_v2_permissions_roles_spec.rb +53 -0
  1053. data/spec/models/role_v2_permissions_spec.rb +47 -0
  1054. data/spec/models/{loyalty_points_spec.rb → role_v2_spec.rb} +13 -13
  1055. data/spec/models/rollback_added_loyalty_points_effect_props_spec.rb +2 -2
  1056. data/spec/models/rollback_coupon_effect_props_spec.rb +2 -2
  1057. data/spec/models/rollback_deducted_loyalty_points_effect_props_spec.rb +2 -2
  1058. data/spec/models/rollback_discount_effect_props_spec.rb +2 -2
  1059. data/spec/models/rollback_referral_effect_props_spec.rb +2 -2
  1060. data/spec/models/rule_failure_reason_spec.rb +2 -2
  1061. data/spec/models/rule_spec.rb +14 -2
  1062. data/spec/models/ruleset_spec.rb +8 -2
  1063. data/spec/models/saml_connection_metadata_spec.rb +2 -2
  1064. data/spec/models/saml_connection_spec.rb +2 -2
  1065. data/spec/models/saml_login_endpoint_spec.rb +2 -2
  1066. data/spec/models/session_spec.rb +2 -2
  1067. data/spec/models/set_discount_effect_props_spec.rb +2 -2
  1068. data/spec/models/set_discount_per_additional_cost_effect_props_spec.rb +2 -2
  1069. data/spec/models/set_discount_per_additional_cost_per_item_effect_props_spec.rb +2 -2
  1070. data/spec/models/set_discount_per_item_effect_props_spec.rb +14 -2
  1071. data/spec/models/show_bundle_metadata_effect_props_spec.rb +2 -2
  1072. data/spec/models/show_notification_effect_props_spec.rb +2 -2
  1073. data/spec/models/slot_def_spec.rb +2 -2
  1074. data/spec/models/strikethrough_changed_item_spec.rb +77 -0
  1075. data/spec/models/strikethrough_effect_spec.rb +71 -0
  1076. data/spec/models/strikethrough_labeling_notification_spec.rb +65 -0
  1077. data/spec/models/strikethrough_set_discount_per_item_effect_props_spec.rb +47 -0
  1078. data/spec/models/strikethrough_trigger_spec.rb +65 -0
  1079. data/spec/models/talang_attribute_spec.rb +97 -0
  1080. data/spec/models/talang_attribute_visibility_spec.rb +47 -0
  1081. data/spec/models/template_arg_def_spec.rb +15 -3
  1082. data/spec/models/template_def_spec.rb +2 -2
  1083. data/spec/models/template_limit_config_spec.rb +2 -2
  1084. data/spec/models/tier_spec.rb +2 -2
  1085. data/spec/models/transfer_loyalty_card_spec.rb +41 -0
  1086. data/spec/models/trigger_webhook_effect_props_spec.rb +2 -2
  1087. data/spec/models/update_account_spec.rb +2 -2
  1088. data/spec/models/update_application_spec.rb +2 -2
  1089. data/spec/models/update_attribute_effect_props_spec.rb +2 -2
  1090. data/spec/models/update_audience_spec.rb +2 -2
  1091. data/spec/models/update_campaign_collection_spec.rb +2 -2
  1092. data/spec/models/update_campaign_group_spec.rb +2 -2
  1093. data/spec/models/update_campaign_spec.rb +3 -3
  1094. data/spec/models/update_campaign_template_spec.rb +9 -3
  1095. data/spec/models/update_catalog_spec.rb +2 -2
  1096. data/spec/models/update_collection_spec.rb +2 -2
  1097. data/spec/models/update_coupon_batch_spec.rb +8 -2
  1098. data/spec/models/update_coupon_spec.rb +14 -2
  1099. data/spec/models/update_custom_effect_spec.rb +8 -2
  1100. data/spec/models/update_loyalty_card_spec.rb +2 -2
  1101. data/spec/models/update_loyalty_program_spec.rb +8 -2
  1102. data/spec/models/update_picklist_spec.rb +51 -0
  1103. data/spec/models/update_referral_batch_spec.rb +2 -2
  1104. data/spec/models/update_referral_spec.rb +2 -2
  1105. data/spec/models/update_role_spec.rb +2 -2
  1106. data/spec/models/update_user_latest_feed_timestamp_spec.rb +2 -2
  1107. data/spec/models/update_user_spec.rb +2 -2
  1108. data/spec/models/user_entity_spec.rb +2 -2
  1109. data/spec/models/user_feed_notifications_spec.rb +2 -2
  1110. data/spec/models/user_spec.rb +2 -2
  1111. data/spec/models/webhook_activation_log_entry_spec.rb +2 -2
  1112. data/spec/models/webhook_log_entry_spec.rb +2 -2
  1113. data/spec/models/webhook_spec.rb +2 -2
  1114. data/spec/models/will_award_giveaway_effect_props_spec.rb +2 -2
  1115. data/spec/spec_helper.rb +2 -2
  1116. data/talon_one.gemspec +2 -2
  1117. metadata +346 -14
  1118. data/docs/LoyaltyPoints.md +0 -25
  1119. data/docs/LoyaltyProjection.md +0 -21
  1120. data/docs/LoyaltyProjectionData.md +0 -23
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Talon.One API
3
3
 
4
- #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerSession](https://docs.talon.one/integration-api/#operation/updateCustomerSessionV2) endpoint is `https://mycompany.talon.one/v2/customer_sessions/{Id}`
4
+ #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document:
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class CouponSearch
17
- # Properties to match against a coupon. All provided attributes will be exactly matched against attributes
17
+ # Properties to match against a coupon. All provided attributes will be exactly matched against attributes.
18
18
  attr_accessor :attributes
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Talon.One API
3
3
 
4
- #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerSession](https://docs.talon.one/integration-api/#operation/updateCustomerSessionV2) endpoint is `https://mycompany.talon.one/v2/customer_sessions/{Id}`
4
+ #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document:
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
@@ -0,0 +1,269 @@
1
+ =begin
2
+ #Talon.One API
3
+
4
+ #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
5
+
6
+ The version of the OpenAPI document:
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module TalonOne
16
+ class CouponsNotificationPolicy
17
+ # Notification name.
18
+ attr_accessor :name
19
+
20
+ attr_accessor :scopes
21
+
22
+ class EnumAttributeValidator
23
+ attr_reader :datatype
24
+ attr_reader :allowable_values
25
+
26
+ def initialize(datatype, allowable_values)
27
+ @allowable_values = allowable_values.map do |value|
28
+ case datatype.to_s
29
+ when /Integer/i
30
+ value.to_i
31
+ when /Float/i
32
+ value.to_f
33
+ else
34
+ value
35
+ end
36
+ end
37
+ end
38
+
39
+ def valid?(value)
40
+ !value || allowable_values.include?(value)
41
+ end
42
+ end
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'name' => :'name',
48
+ :'scopes' => :'scopes'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.openapi_types
54
+ {
55
+ :'name' => :'String',
56
+ :'scopes' => :'Array<String>'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TalonOne::CouponsNotificationPolicy` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!self.class.attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TalonOne::CouponsNotificationPolicy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'name')
82
+ self.name = attributes[:'name']
83
+ end
84
+
85
+ if attributes.key?(:'scopes')
86
+ if (value = attributes[:'scopes']).is_a?(Array)
87
+ self.scopes = value
88
+ end
89
+ end
90
+ end
91
+
92
+ # Show invalid properties with the reasons. Usually used together with valid?
93
+ # @return Array for valid properties with the reasons
94
+ def list_invalid_properties
95
+ invalid_properties = Array.new
96
+ if @name.nil?
97
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
98
+ end
99
+
100
+ if @name.to_s.length < 1
101
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
102
+ end
103
+
104
+ if @scopes.nil?
105
+ invalid_properties.push('invalid value for "scopes", scopes cannot be nil.')
106
+ end
107
+
108
+ invalid_properties
109
+ end
110
+
111
+ # Check to see if the all the properties in the model are valid
112
+ # @return true if the model is valid
113
+ def valid?
114
+ return false if @name.nil?
115
+ return false if @name.to_s.length < 1
116
+ return false if @scopes.nil?
117
+ true
118
+ end
119
+
120
+ # Custom attribute writer method with validation
121
+ # @param [Object] name Value to be assigned
122
+ def name=(name)
123
+ if name.nil?
124
+ fail ArgumentError, 'name cannot be nil'
125
+ end
126
+
127
+ if name.to_s.length < 1
128
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
129
+ end
130
+
131
+ @name = name
132
+ end
133
+
134
+ # Checks equality by comparing each attribute.
135
+ # @param [Object] Object to be compared
136
+ def ==(o)
137
+ return true if self.equal?(o)
138
+ self.class == o.class &&
139
+ name == o.name &&
140
+ scopes == o.scopes
141
+ end
142
+
143
+ # @see the `==` method
144
+ # @param [Object] Object to be compared
145
+ def eql?(o)
146
+ self == o
147
+ end
148
+
149
+ # Calculates hash code according to all attributes.
150
+ # @return [Integer] Hash code
151
+ def hash
152
+ [name, scopes].hash
153
+ end
154
+
155
+ # Builds the object from hash
156
+ # @param [Hash] attributes Model attributes in the form of hash
157
+ # @return [Object] Returns the model itself
158
+ def self.build_from_hash(attributes)
159
+ new.build_from_hash(attributes)
160
+ end
161
+
162
+ # Builds the object from hash
163
+ # @param [Hash] attributes Model attributes in the form of hash
164
+ # @return [Object] Returns the model itself
165
+ def build_from_hash(attributes)
166
+ return nil unless attributes.is_a?(Hash)
167
+ self.class.openapi_types.each_pair do |key, type|
168
+ if type =~ /\AArray<(.*)>/i
169
+ # check to ensure the input is an array given that the attribute
170
+ # is documented as an array but the input is not
171
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
172
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
173
+ end
174
+ elsif !attributes[self.class.attribute_map[key]].nil?
175
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
176
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
177
+ end
178
+
179
+ self
180
+ end
181
+
182
+ # Deserializes the data based on type
183
+ # @param string type Data type
184
+ # @param string value Value to be deserialized
185
+ # @return [Object] Deserialized data
186
+ def _deserialize(type, value)
187
+ case type.to_sym
188
+ when :DateTime
189
+ DateTime.parse(value)
190
+ when :Date
191
+ Date.parse(value)
192
+ when :String
193
+ value.to_s
194
+ when :Integer
195
+ value.to_i
196
+ when :Float
197
+ value.to_f
198
+ when :Boolean
199
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
200
+ true
201
+ else
202
+ false
203
+ end
204
+ when :Object
205
+ # generic object (usually a Hash), return directly
206
+ value
207
+ when /\AArray<(?<inner_type>.+)>\z/
208
+ inner_type = Regexp.last_match[:inner_type]
209
+ value.map { |v| _deserialize(inner_type, v) }
210
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
211
+ k_type = Regexp.last_match[:k_type]
212
+ v_type = Regexp.last_match[:v_type]
213
+ {}.tap do |hash|
214
+ value.each do |k, v|
215
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
216
+ end
217
+ end
218
+ else # model
219
+ TalonOne.const_get(type).build_from_hash(value)
220
+ end
221
+ end
222
+
223
+ # Returns the string representation of the object
224
+ # @return [String] String presentation of the object
225
+ def to_s
226
+ to_hash.to_s
227
+ end
228
+
229
+ # to_body is an alias to to_hash (backward compatibility)
230
+ # @return [Hash] Returns the object in the form of hash
231
+ def to_body
232
+ to_hash
233
+ end
234
+
235
+ # Returns the object in the form of hash
236
+ # @return [Hash] Returns the object in the form of hash
237
+ def to_hash
238
+ hash = {}
239
+ self.class.attribute_map.each_pair do |attr, param|
240
+ value = self.send(attr)
241
+ if value.nil?
242
+ is_nullable = self.class.openapi_nullable.include?(attr)
243
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
244
+ end
245
+
246
+ hash[param] = _to_hash(value)
247
+ end
248
+ hash
249
+ end
250
+
251
+ # Outputs non-array value in the form of hash
252
+ # For object, use to_hash. Otherwise, just return the value
253
+ # @param [Object] value Any valid value
254
+ # @return [Hash] Returns the value in the form of hash
255
+ def _to_hash(value)
256
+ if value.is_a?(Array)
257
+ value.compact.map { |v| _to_hash(v) }
258
+ elsif value.is_a?(Hash)
259
+ {}.tap do |hash|
260
+ value.each { |k, v| hash[k] = _to_hash(v) }
261
+ end
262
+ elsif value.respond_to? :to_hash
263
+ value.to_hash
264
+ else
265
+ value
266
+ end
267
+ end
268
+ end
269
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Talon.One API
3
3
 
4
- #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerSession](https://docs.talon.one/integration-api/#operation/updateCustomerSessionV2) endpoint is `https://mycompany.talon.one/v2/customer_sessions/{Id}`
4
+ #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document:
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
@@ -14,10 +14,10 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class CreateApplicationAPIKey
17
- # Title for API Key
17
+ # Title for API Key.
18
18
  attr_accessor :title
19
19
 
20
- # The date the API key expired
20
+ # The date the API key expired.
21
21
  attr_accessor :expires
22
22
 
23
23
  # The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer.
@@ -117,7 +117,7 @@ module TalonOne
117
117
  def valid?
118
118
  return false if @title.nil?
119
119
  return false if @expires.nil?
120
- platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "selligent", "iterable", "customer_engagement", "customer_data"])
120
+ platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "selligent", "iterable", "customer_engagement", "customer_data", "salesforce"])
121
121
  return false unless platform_validator.valid?(@platform)
122
122
  true
123
123
  end
@@ -125,7 +125,7 @@ module TalonOne
125
125
  # Custom attribute writer method checking allowed values (enum).
126
126
  # @param [Object] platform Object to be assigned
127
127
  def platform=(platform)
128
- validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "selligent", "iterable", "customer_engagement", "customer_data"])
128
+ validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "selligent", "iterable", "customer_engagement", "customer_data", "salesforce"])
129
129
  unless validator.valid?(platform)
130
130
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
131
131
  end
@@ -0,0 +1,256 @@
1
+ =begin
2
+ #Talon.One API
3
+
4
+ #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
5
+
6
+ The version of the OpenAPI document:
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module TalonOne
16
+ class CreateManagementKey
17
+ # Name for management key.
18
+ attr_accessor :name
19
+
20
+ # The date the management key expires.
21
+ attr_accessor :expiry_date
22
+
23
+ # The list of endpoints that can be accessed with the key
24
+ attr_accessor :endpoints
25
+
26
+ # A list of Application IDs that you can access with the management key. An empty or missing list means the management key can be used for all Applications in the account.
27
+ attr_accessor :allowed_application_ids
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'name' => :'name',
33
+ :'expiry_date' => :'expiryDate',
34
+ :'endpoints' => :'endpoints',
35
+ :'allowed_application_ids' => :'allowedApplicationIds'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.openapi_types
41
+ {
42
+ :'name' => :'String',
43
+ :'expiry_date' => :'DateTime',
44
+ :'endpoints' => :'Array<Endpoint>',
45
+ :'allowed_application_ids' => :'Array<Integer>'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TalonOne::CreateManagementKey` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!self.class.attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TalonOne::CreateManagementKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'name')
71
+ self.name = attributes[:'name']
72
+ end
73
+
74
+ if attributes.key?(:'expiry_date')
75
+ self.expiry_date = attributes[:'expiry_date']
76
+ end
77
+
78
+ if attributes.key?(:'endpoints')
79
+ if (value = attributes[:'endpoints']).is_a?(Array)
80
+ self.endpoints = value
81
+ end
82
+ end
83
+
84
+ if attributes.key?(:'allowed_application_ids')
85
+ if (value = attributes[:'allowed_application_ids']).is_a?(Array)
86
+ self.allowed_application_ids = value
87
+ end
88
+ end
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properties with the reasons
93
+ def list_invalid_properties
94
+ invalid_properties = Array.new
95
+ if @name.nil?
96
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
97
+ end
98
+
99
+ if @expiry_date.nil?
100
+ invalid_properties.push('invalid value for "expiry_date", expiry_date cannot be nil.')
101
+ end
102
+
103
+ if @endpoints.nil?
104
+ invalid_properties.push('invalid value for "endpoints", endpoints cannot be nil.')
105
+ end
106
+
107
+ invalid_properties
108
+ end
109
+
110
+ # Check to see if the all the properties in the model are valid
111
+ # @return true if the model is valid
112
+ def valid?
113
+ return false if @name.nil?
114
+ return false if @expiry_date.nil?
115
+ return false if @endpoints.nil?
116
+ true
117
+ end
118
+
119
+ # Checks equality by comparing each attribute.
120
+ # @param [Object] Object to be compared
121
+ def ==(o)
122
+ return true if self.equal?(o)
123
+ self.class == o.class &&
124
+ name == o.name &&
125
+ expiry_date == o.expiry_date &&
126
+ endpoints == o.endpoints &&
127
+ allowed_application_ids == o.allowed_application_ids
128
+ end
129
+
130
+ # @see the `==` method
131
+ # @param [Object] Object to be compared
132
+ def eql?(o)
133
+ self == o
134
+ end
135
+
136
+ # Calculates hash code according to all attributes.
137
+ # @return [Integer] Hash code
138
+ def hash
139
+ [name, expiry_date, endpoints, allowed_application_ids].hash
140
+ end
141
+
142
+ # Builds the object from hash
143
+ # @param [Hash] attributes Model attributes in the form of hash
144
+ # @return [Object] Returns the model itself
145
+ def self.build_from_hash(attributes)
146
+ new.build_from_hash(attributes)
147
+ end
148
+
149
+ # Builds the object from hash
150
+ # @param [Hash] attributes Model attributes in the form of hash
151
+ # @return [Object] Returns the model itself
152
+ def build_from_hash(attributes)
153
+ return nil unless attributes.is_a?(Hash)
154
+ self.class.openapi_types.each_pair do |key, type|
155
+ if type =~ /\AArray<(.*)>/i
156
+ # check to ensure the input is an array given that the attribute
157
+ # is documented as an array but the input is not
158
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
159
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
160
+ end
161
+ elsif !attributes[self.class.attribute_map[key]].nil?
162
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
163
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
164
+ end
165
+
166
+ self
167
+ end
168
+
169
+ # Deserializes the data based on type
170
+ # @param string type Data type
171
+ # @param string value Value to be deserialized
172
+ # @return [Object] Deserialized data
173
+ def _deserialize(type, value)
174
+ case type.to_sym
175
+ when :DateTime
176
+ DateTime.parse(value)
177
+ when :Date
178
+ Date.parse(value)
179
+ when :String
180
+ value.to_s
181
+ when :Integer
182
+ value.to_i
183
+ when :Float
184
+ value.to_f
185
+ when :Boolean
186
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
187
+ true
188
+ else
189
+ false
190
+ end
191
+ when :Object
192
+ # generic object (usually a Hash), return directly
193
+ value
194
+ when /\AArray<(?<inner_type>.+)>\z/
195
+ inner_type = Regexp.last_match[:inner_type]
196
+ value.map { |v| _deserialize(inner_type, v) }
197
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
198
+ k_type = Regexp.last_match[:k_type]
199
+ v_type = Regexp.last_match[:v_type]
200
+ {}.tap do |hash|
201
+ value.each do |k, v|
202
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
203
+ end
204
+ end
205
+ else # model
206
+ TalonOne.const_get(type).build_from_hash(value)
207
+ end
208
+ end
209
+
210
+ # Returns the string representation of the object
211
+ # @return [String] String presentation of the object
212
+ def to_s
213
+ to_hash.to_s
214
+ end
215
+
216
+ # to_body is an alias to to_hash (backward compatibility)
217
+ # @return [Hash] Returns the object in the form of hash
218
+ def to_body
219
+ to_hash
220
+ end
221
+
222
+ # Returns the object in the form of hash
223
+ # @return [Hash] Returns the object in the form of hash
224
+ def to_hash
225
+ hash = {}
226
+ self.class.attribute_map.each_pair do |attr, param|
227
+ value = self.send(attr)
228
+ if value.nil?
229
+ is_nullable = self.class.openapi_nullable.include?(attr)
230
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
231
+ end
232
+
233
+ hash[param] = _to_hash(value)
234
+ end
235
+ hash
236
+ end
237
+
238
+ # Outputs non-array value in the form of hash
239
+ # For object, use to_hash. Otherwise, just return the value
240
+ # @param [Object] value Any valid value
241
+ # @return [Hash] Returns the value in the form of hash
242
+ def _to_hash(value)
243
+ if value.is_a?(Array)
244
+ value.compact.map { |v| _to_hash(v) }
245
+ elsif value.is_a?(Hash)
246
+ {}.tap do |hash|
247
+ value.each { |k, v| hash[k] = _to_hash(v) }
248
+ end
249
+ elsif value.respond_to? :to_hash
250
+ value.to_hash
251
+ else
252
+ value
253
+ end
254
+ end
255
+ end
256
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Talon.One API
3
3
 
4
- #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerSession](https://docs.talon.one/integration-api/#operation/updateCustomerSessionV2) endpoint is `https://mycompany.talon.one/v2/customer_sessions/{Id}`
4
+ #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document:
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
@@ -32,6 +32,9 @@ module TalonOne
32
32
  # Limits for this Campaign. If the Campaign Template or Application define default values for the same limits, they will be overridden.
33
33
  attr_accessor :limit_overrides
34
34
 
35
+ # The IDs of the [campaign groups](https://docs.talon.one/docs/product/account/managing-campaign-groups) this campaign belongs to.
36
+ attr_accessor :campaign_groups
37
+
35
38
  # A list of tags for the campaign. If the campaign template has tags, they will be overridden by this list.
36
39
  attr_accessor :tags
37
40
 
@@ -44,6 +47,7 @@ module TalonOne
44
47
  :'campaign_attributes_overrides' => :'campaignAttributesOverrides',
45
48
  :'template_param_values' => :'templateParamValues',
46
49
  :'limit_overrides' => :'limitOverrides',
50
+ :'campaign_groups' => :'campaignGroups',
47
51
  :'tags' => :'tags'
48
52
  }
49
53
  end
@@ -57,6 +61,7 @@ module TalonOne
57
61
  :'campaign_attributes_overrides' => :'Object',
58
62
  :'template_param_values' => :'Array<Binding>',
59
63
  :'limit_overrides' => :'Array<LimitConfig>',
64
+ :'campaign_groups' => :'Array<Integer>',
60
65
  :'tags' => :'Array<String>'
61
66
  }
62
67
  end
@@ -110,6 +115,12 @@ module TalonOne
110
115
  end
111
116
  end
112
117
 
118
+ if attributes.key?(:'campaign_groups')
119
+ if (value = attributes[:'campaign_groups']).is_a?(Array)
120
+ self.campaign_groups = value
121
+ end
122
+ end
123
+
113
124
  if attributes.key?(:'tags')
114
125
  if (value = attributes[:'tags']).is_a?(Array)
115
126
  self.tags = value
@@ -170,6 +181,7 @@ module TalonOne
170
181
  campaign_attributes_overrides == o.campaign_attributes_overrides &&
171
182
  template_param_values == o.template_param_values &&
172
183
  limit_overrides == o.limit_overrides &&
184
+ campaign_groups == o.campaign_groups &&
173
185
  tags == o.tags
174
186
  end
175
187
 
@@ -182,7 +194,7 @@ module TalonOne
182
194
  # Calculates hash code according to all attributes.
183
195
  # @return [Integer] Hash code
184
196
  def hash
185
- [name, description, template_id, campaign_attributes_overrides, template_param_values, limit_overrides, tags].hash
197
+ [name, description, template_id, campaign_attributes_overrides, template_param_values, limit_overrides, campaign_groups, tags].hash
186
198
  end
187
199
 
188
200
  # Builds the object from hash
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Talon.One API
3
3
 
4
- #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerSession](https://docs.talon.one/integration-api/#operation/updateCustomerSessionV2) endpoint is `https://mycompany.talon.one/v2/customer_sessions/{Id}`
4
+ #Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document:
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1