talon_one 7.0.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -7
  3. data/docs/Achievement.md +6 -4
  4. data/docs/AchievementAdditionalProperties.md +5 -3
  5. data/docs/AchievementProgress.md +3 -15
  6. data/docs/AddFreeItemEffectProps.md +3 -1
  7. data/docs/AdditionalCampaignProperties.md +4 -2
  8. data/docs/AnalyticsProduct.md +6 -6
  9. data/docs/ApplicationCIF.md +1 -1
  10. data/docs/ApplicationCIFExpression.md +1 -1
  11. data/docs/ApplicationEntity.md +1 -1
  12. data/docs/ApplicationEvent.md +1 -1
  13. data/docs/ApplicationReferee.md +1 -1
  14. data/docs/ApplicationSession.md +2 -2
  15. data/docs/Audience.md +1 -1
  16. data/docs/BaseLoyaltyProgram.md +1 -1
  17. data/docs/Binding.md +1 -1
  18. data/docs/Campaign.md +4 -2
  19. data/docs/CampaignEvaluationGroup.md +1 -1
  20. data/docs/CampaignNotificationPolicy.md +3 -1
  21. data/docs/CampaignSet.md +1 -1
  22. data/docs/CampaignStoreBudget.md +1 -1
  23. data/docs/CardExpiringPointsNotificationPolicy.md +3 -1
  24. data/docs/CatalogsStrikethroughNotificationPolicy.md +3 -1
  25. data/docs/CouponCreationJob.md +1 -1
  26. data/docs/CouponDeletionJob.md +1 -1
  27. data/docs/CouponsNotificationPolicy.md +5 -1
  28. data/docs/CreateAchievement.md +1 -1
  29. data/docs/CustomerInventory.md +1 -1
  30. data/docs/CustomerSession.md +1 -1
  31. data/docs/CustomerSessionV2.md +2 -4
  32. data/docs/Environment.md +1 -1
  33. data/docs/Event.md +1 -1
  34. data/docs/ExpiringCouponsNotificationPolicy.md +3 -1
  35. data/docs/ExpiringPointsNotificationPolicy.md +3 -1
  36. data/docs/InlineResponse2001.md +3 -3
  37. data/docs/InlineResponse20010.md +3 -3
  38. data/docs/InlineResponse20011.md +3 -3
  39. data/docs/InlineResponse20012.md +1 -1
  40. data/docs/InlineResponse20013.md +1 -1
  41. data/docs/InlineResponse20014.md +1 -1
  42. data/docs/InlineResponse20015.md +3 -3
  43. data/docs/InlineResponse20016.md +3 -3
  44. data/docs/InlineResponse20017.md +3 -5
  45. data/docs/InlineResponse20018.md +2 -2
  46. data/docs/InlineResponse20019.md +3 -3
  47. data/docs/InlineResponse2002.md +3 -3
  48. data/docs/InlineResponse20020.md +5 -3
  49. data/docs/InlineResponse20021.md +3 -5
  50. data/docs/InlineResponse20022.md +2 -4
  51. data/docs/InlineResponse20023.md +3 -5
  52. data/docs/InlineResponse20024.md +5 -3
  53. data/docs/InlineResponse20025.md +4 -2
  54. data/docs/InlineResponse20026.md +3 -1
  55. data/docs/InlineResponse20027.md +1 -1
  56. data/docs/InlineResponse20028.md +3 -3
  57. data/docs/InlineResponse20029.md +1 -3
  58. data/docs/InlineResponse2003.md +1 -1
  59. data/docs/InlineResponse20030.md +2 -2
  60. data/docs/InlineResponse20031.md +3 -3
  61. data/docs/InlineResponse20032.md +1 -1
  62. data/docs/InlineResponse20033.md +3 -3
  63. data/docs/InlineResponse20034.md +1 -3
  64. data/docs/InlineResponse20035.md +5 -3
  65. data/docs/InlineResponse20036.md +1 -1
  66. data/docs/InlineResponse20037.md +5 -3
  67. data/docs/InlineResponse20038.md +1 -1
  68. data/docs/InlineResponse20039.md +1 -1
  69. data/docs/InlineResponse2004.md +1 -1
  70. data/docs/InlineResponse20040.md +1 -1
  71. data/docs/InlineResponse20041.md +2 -4
  72. data/docs/InlineResponse20042.md +1 -1
  73. data/docs/InlineResponse20043.md +1 -1
  74. data/docs/InlineResponse20044.md +4 -4
  75. data/docs/InlineResponse20045.md +3 -3
  76. data/docs/InlineResponse20046.md +3 -3
  77. data/docs/InlineResponse20047.md +5 -3
  78. data/docs/InlineResponse2005.md +3 -3
  79. data/docs/InlineResponse2006.md +3 -3
  80. data/docs/InlineResponse2007.md +1 -1
  81. data/docs/InlineResponse2008.md +1 -1
  82. data/docs/InlineResponse2009.md +3 -3
  83. data/docs/IntegrationApi.md +156 -18
  84. data/docs/LedgerInfo.md +4 -0
  85. data/docs/LimitCounter.md +1 -1
  86. data/docs/LoyaltyBalance.md +3 -1
  87. data/docs/LoyaltyBalanceWithTier.md +2 -0
  88. data/docs/LoyaltyBalances.md +1 -1
  89. data/docs/LoyaltyBalancesWithTiers.md +1 -1
  90. data/docs/LoyaltyCardBalances.md +1 -1
  91. data/docs/LoyaltyLedger.md +1 -1
  92. data/docs/LoyaltyLedgerEntry.md +3 -1
  93. data/docs/LoyaltyProgram.md +1 -1
  94. data/docs/LoyaltyProgramBalance.md +5 -1
  95. data/docs/LoyaltySubLedger.md +2 -0
  96. data/docs/ManagementApi.md +184 -116
  97. data/docs/ManagementKey.md +3 -1
  98. data/docs/ModelReturn.md +1 -1
  99. data/docs/NewAudience.md +1 -1
  100. data/docs/NewCampaignSet.md +1 -1
  101. data/docs/NewLoyaltyProgram.md +1 -1
  102. data/docs/NewManagementKey.md +2 -0
  103. data/docs/PendingPointsNotificationPolicy.md +3 -1
  104. data/docs/ProductSearchMatch.md +2 -2
  105. data/docs/ProductUnitAnalytics.md +4 -10
  106. data/docs/Store.md +1 -1
  107. data/docs/StrikethroughEffect.md +5 -1
  108. data/docs/StrikethroughLabelingNotification.md +4 -2
  109. data/docs/SummaryCampaignStoreBudget.md +3 -1
  110. data/docs/TemplateDef.md +1 -1
  111. data/docs/TierDowngradeNotificationPolicy.md +3 -1
  112. data/docs/TierUpgradeNotificationPolicy.md +3 -1
  113. data/docs/TierWillDowngradeNotificationPolicy.md +2 -0
  114. data/docs/UpdateAchievement.md +2 -2
  115. data/docs/UpdateLoyaltyProgram.md +1 -1
  116. data/lib/talon_one/api/integration_api.rb +220 -29
  117. data/lib/talon_one/api/management_api.rb +248 -169
  118. data/lib/talon_one/models/achievement.rb +27 -15
  119. data/lib/talon_one/models/achievement_additional_properties.rb +49 -10
  120. data/lib/talon_one/models/achievement_progress.rb +4 -137
  121. data/lib/talon_one/models/add_free_item_effect_props.rb +14 -4
  122. data/lib/talon_one/models/additional_campaign_properties.rb +16 -9
  123. data/lib/talon_one/models/analytics_product.rb +20 -21
  124. data/lib/talon_one/models/application_api_key.rb +2 -2
  125. data/lib/talon_one/models/application_cif.rb +1 -1
  126. data/lib/talon_one/models/application_cif_expression.rb +1 -1
  127. data/lib/talon_one/models/application_entity.rb +1 -1
  128. data/lib/talon_one/models/application_event.rb +1 -1
  129. data/lib/talon_one/models/application_referee.rb +1 -1
  130. data/lib/talon_one/models/application_session.rb +2 -2
  131. data/lib/talon_one/models/audience.rb +1 -1
  132. data/lib/talon_one/models/base_loyalty_program.rb +3 -3
  133. data/lib/talon_one/models/campaign.rb +14 -7
  134. data/lib/talon_one/models/campaign_evaluation_group.rb +1 -1
  135. data/lib/talon_one/models/campaign_notification_policy.rb +14 -4
  136. data/lib/talon_one/models/campaign_set.rb +1 -1
  137. data/lib/talon_one/models/campaign_store_budget.rb +1 -1
  138. data/lib/talon_one/models/card_expiring_points_notification_policy.rb +14 -4
  139. data/lib/talon_one/models/catalogs_strikethrough_notification_policy.rb +38 -4
  140. data/lib/talon_one/models/coupon_creation_job.rb +1 -1
  141. data/lib/talon_one/models/coupon_deletion_job.rb +1 -1
  142. data/lib/talon_one/models/coupons_notification_policy.rb +24 -4
  143. data/lib/talon_one/models/create_achievement.rb +0 -5
  144. data/lib/talon_one/models/create_application_api_key.rb +2 -2
  145. data/lib/talon_one/models/customer_inventory.rb +1 -1
  146. data/lib/talon_one/models/customer_session.rb +1 -1
  147. data/lib/talon_one/models/customer_session_v2.rb +5 -15
  148. data/lib/talon_one/models/environment.rb +1 -1
  149. data/lib/talon_one/models/event.rb +1 -1
  150. data/lib/talon_one/models/expiring_coupons_notification_policy.rb +14 -4
  151. data/lib/talon_one/models/expiring_points_notification_policy.rb +14 -4
  152. data/lib/talon_one/models/inline_response2001.rb +11 -11
  153. data/lib/talon_one/models/inline_response20010.rb +11 -11
  154. data/lib/talon_one/models/inline_response20011.rb +11 -11
  155. data/lib/talon_one/models/inline_response20012.rb +1 -1
  156. data/lib/talon_one/models/inline_response20013.rb +1 -1
  157. data/lib/talon_one/models/inline_response20014.rb +1 -1
  158. data/lib/talon_one/models/inline_response20015.rb +11 -11
  159. data/lib/talon_one/models/inline_response20016.rb +11 -13
  160. data/lib/talon_one/models/inline_response20017.rb +7 -11
  161. data/lib/talon_one/models/inline_response20018.rb +1 -1
  162. data/lib/talon_one/models/inline_response20019.rb +3 -1
  163. data/lib/talon_one/models/inline_response2002.rb +11 -11
  164. data/lib/talon_one/models/inline_response20020.rb +11 -7
  165. data/lib/talon_one/models/inline_response20021.rb +7 -11
  166. data/lib/talon_one/models/inline_response20022.rb +7 -11
  167. data/lib/talon_one/models/inline_response20023.rb +7 -11
  168. data/lib/talon_one/models/inline_response20024.rb +11 -7
  169. data/lib/talon_one/models/inline_response20025.rb +11 -7
  170. data/lib/talon_one/models/inline_response20026.rb +11 -2
  171. data/lib/talon_one/models/inline_response20027.rb +1 -1
  172. data/lib/talon_one/models/inline_response20028.rb +11 -11
  173. data/lib/talon_one/models/inline_response20029.rb +2 -11
  174. data/lib/talon_one/models/inline_response2003.rb +1 -1
  175. data/lib/talon_one/models/inline_response20030.rb +6 -1
  176. data/lib/talon_one/models/inline_response20031.rb +13 -8
  177. data/lib/talon_one/models/inline_response20032.rb +1 -1
  178. data/lib/talon_one/models/inline_response20033.rb +8 -13
  179. data/lib/talon_one/models/inline_response20034.rb +2 -11
  180. data/lib/talon_one/models/inline_response20035.rb +11 -7
  181. data/lib/talon_one/models/inline_response20036.rb +1 -1
  182. data/lib/talon_one/models/inline_response20037.rb +11 -7
  183. data/lib/talon_one/models/inline_response20038.rb +1 -1
  184. data/lib/talon_one/models/inline_response20039.rb +1 -1
  185. data/lib/talon_one/models/inline_response2004.rb +1 -1
  186. data/lib/talon_one/models/inline_response20040.rb +1 -1
  187. data/lib/talon_one/models/inline_response20041.rb +7 -11
  188. data/lib/talon_one/models/inline_response20042.rb +1 -1
  189. data/lib/talon_one/models/inline_response20043.rb +1 -1
  190. data/lib/talon_one/models/inline_response20044.rb +11 -11
  191. data/lib/talon_one/models/inline_response20045.rb +13 -8
  192. data/lib/talon_one/models/inline_response20046.rb +11 -11
  193. data/lib/talon_one/models/inline_response20047.rb +11 -7
  194. data/lib/talon_one/models/inline_response2005.rb +11 -11
  195. data/lib/talon_one/models/inline_response2006.rb +11 -11
  196. data/lib/talon_one/models/inline_response2007.rb +1 -1
  197. data/lib/talon_one/models/inline_response2008.rb +1 -1
  198. data/lib/talon_one/models/inline_response2009.rb +11 -11
  199. data/lib/talon_one/models/ledger_info.rb +31 -1
  200. data/lib/talon_one/models/limit_counter.rb +1 -1
  201. data/lib/talon_one/models/loyalty_balance.rb +14 -4
  202. data/lib/talon_one/models/loyalty_balance_with_tier.rb +11 -1
  203. data/lib/talon_one/models/loyalty_ledger_entry.rb +13 -4
  204. data/lib/talon_one/models/loyalty_program.rb +3 -3
  205. data/lib/talon_one/models/loyalty_program_balance.rb +34 -4
  206. data/lib/talon_one/models/loyalty_sub_ledger.rb +16 -1
  207. data/lib/talon_one/models/management_key.rb +14 -4
  208. data/lib/talon_one/models/model_return.rb +1 -1
  209. data/lib/talon_one/models/new_application_api_key.rb +2 -2
  210. data/lib/talon_one/models/new_audience.rb +1 -1
  211. data/lib/talon_one/models/new_campaign_set.rb +1 -1
  212. data/lib/talon_one/models/new_loyalty_program.rb +3 -3
  213. data/lib/talon_one/models/new_management_key.rb +11 -1
  214. data/lib/talon_one/models/pending_points_notification_policy.rb +14 -4
  215. data/lib/talon_one/models/product.rb +0 -19
  216. data/lib/talon_one/models/product_search_match.rb +1 -6
  217. data/lib/talon_one/models/product_unit_analytics.rb +21 -65
  218. data/lib/talon_one/models/store.rb +1 -1
  219. data/lib/talon_one/models/strikethrough_effect.rb +24 -4
  220. data/lib/talon_one/models/strikethrough_labeling_notification.rb +46 -2
  221. data/lib/talon_one/models/summary_campaign_store_budget.rb +18 -4
  222. data/lib/talon_one/models/template_def.rb +1 -1
  223. data/lib/talon_one/models/tier_downgrade_notification_policy.rb +14 -4
  224. data/lib/talon_one/models/tier_upgrade_notification_policy.rb +14 -4
  225. data/lib/talon_one/models/tier_will_downgrade_notification_policy.rb +11 -1
  226. data/lib/talon_one/models/update_achievement.rb +2 -2
  227. data/lib/talon_one/models/update_loyalty_program.rb +3 -3
  228. data/lib/talon_one/version.rb +1 -1
  229. data/lib/talon_one.rb +18 -4
  230. data/spec/api/integration_api_spec.rb +45 -9
  231. data/spec/api/management_api_spec.rb +75 -60
  232. data/spec/models/achievement_additional_properties_spec.rb +10 -0
  233. data/spec/models/achievement_base_spec.rb +103 -0
  234. data/spec/models/achievement_progress_spec.rb +1 -37
  235. data/spec/models/achievement_progress_with_definition_spec.rb +137 -0
  236. data/spec/models/achievement_spec.rb +10 -0
  237. data/spec/models/achievement_status_entry_spec.rb +137 -0
  238. data/spec/models/add_free_item_effect_props_spec.rb +6 -0
  239. data/spec/models/additional_campaign_properties_spec.rb +6 -0
  240. data/spec/models/analytics_product_spec.rb +3 -3
  241. data/spec/models/analytics_sku_spec.rb +59 -0
  242. data/spec/models/application_api_key_spec.rb +1 -1
  243. data/spec/models/application_cif_references_spec.rb +47 -0
  244. data/spec/models/base_loyalty_program_spec.rb +1 -1
  245. data/spec/models/campaign_detail_spec.rb +47 -0
  246. data/spec/models/campaign_notification_policy_spec.rb +6 -0
  247. data/spec/models/campaign_spec.rb +6 -0
  248. data/spec/models/campaign_store_budget_limit_config_spec.rb +73 -0
  249. data/spec/models/card_expiring_points_notification_policy_spec.rb +6 -0
  250. data/spec/models/catalogs_strikethrough_notification_policy_spec.rb +6 -0
  251. data/spec/models/coupons_notification_policy_spec.rb +12 -0
  252. data/spec/models/create_application_api_key_spec.rb +1 -1
  253. data/spec/models/customer_session_v2_spec.rb +0 -6
  254. data/spec/models/expiring_coupons_notification_policy_spec.rb +6 -0
  255. data/spec/models/expiring_points_notification_policy_spec.rb +6 -0
  256. data/spec/models/hidden_conditions_effects_spec.rb +59 -0
  257. data/spec/models/inline_response20010_spec.rb +1 -1
  258. data/spec/models/inline_response20011_spec.rb +1 -1
  259. data/spec/models/inline_response20015_spec.rb +1 -1
  260. data/spec/models/inline_response20016_spec.rb +1 -1
  261. data/spec/models/inline_response20017_spec.rb +0 -6
  262. data/spec/models/inline_response2001_spec.rb +1 -1
  263. data/spec/models/inline_response20020_spec.rb +6 -0
  264. data/spec/models/inline_response20021_spec.rb +0 -6
  265. data/spec/models/inline_response20022_spec.rb +0 -6
  266. data/spec/models/inline_response20023_spec.rb +0 -6
  267. data/spec/models/inline_response20024_spec.rb +6 -0
  268. data/spec/models/inline_response20025_spec.rb +6 -0
  269. data/spec/models/inline_response20026_spec.rb +6 -0
  270. data/spec/models/inline_response20028_spec.rb +1 -1
  271. data/spec/models/inline_response20029_spec.rb +0 -6
  272. data/spec/models/inline_response2002_spec.rb +1 -1
  273. data/spec/models/inline_response20031_spec.rb +1 -1
  274. data/spec/models/inline_response20033_spec.rb +1 -1
  275. data/spec/models/inline_response20034_spec.rb +0 -6
  276. data/spec/models/inline_response20035_spec.rb +6 -0
  277. data/spec/models/inline_response20037_spec.rb +6 -0
  278. data/spec/models/inline_response20041_spec.rb +0 -6
  279. data/spec/models/inline_response20044_spec.rb +2 -2
  280. data/spec/models/inline_response20045_spec.rb +1 -1
  281. data/spec/models/inline_response20046_spec.rb +1 -1
  282. data/spec/models/inline_response20047_spec.rb +6 -0
  283. data/spec/models/inline_response20048_spec.rb +47 -0
  284. data/spec/models/inline_response20049_spec.rb +47 -0
  285. data/spec/models/inline_response2005_spec.rb +1 -1
  286. data/spec/models/inline_response2006_spec.rb +1 -1
  287. data/spec/models/inline_response2009_spec.rb +1 -1
  288. data/spec/models/ledger_info_spec.rb +12 -0
  289. data/spec/models/loyalty_balance_spec.rb +6 -0
  290. data/spec/models/loyalty_balance_with_tier_spec.rb +6 -0
  291. data/spec/models/loyalty_ledger_entry_flags_spec.rb +41 -0
  292. data/spec/models/loyalty_ledger_entry_spec.rb +6 -0
  293. data/spec/models/loyalty_program_balance_spec.rb +12 -0
  294. data/spec/models/loyalty_program_spec.rb +1 -1
  295. data/spec/models/loyalty_sub_ledger_spec.rb +6 -0
  296. data/spec/models/management_key_spec.rb +6 -0
  297. data/spec/models/message_test_spec.rb +47 -0
  298. data/spec/models/new_application_api_key_spec.rb +1 -1
  299. data/spec/models/new_loyalty_program_spec.rb +1 -1
  300. data/spec/models/new_management_key_spec.rb +6 -0
  301. data/spec/models/new_message_test_spec.rb +79 -0
  302. data/spec/models/pending_points_notification_policy_spec.rb +6 -0
  303. data/spec/models/product_unit_analytics_data_point_spec.rb +65 -0
  304. data/spec/models/product_unit_analytics_spec.rb +2 -20
  305. data/spec/models/product_unit_analytics_totals_spec.rb +41 -0
  306. data/spec/models/sku_unit_analytics_data_point_spec.rb +59 -0
  307. data/spec/models/sku_unit_analytics_spec.rb +47 -0
  308. data/spec/models/strikethrough_effect_spec.rb +12 -0
  309. data/spec/models/strikethrough_labeling_notification_spec.rb +10 -0
  310. data/spec/models/summary_campaign_store_budget_spec.rb +6 -0
  311. data/spec/models/tier_downgrade_notification_policy_spec.rb +6 -0
  312. data/spec/models/tier_upgrade_notification_policy_spec.rb +6 -0
  313. data/spec/models/tier_will_downgrade_notification_policy_spec.rb +6 -0
  314. data/spec/models/update_loyalty_program_spec.rb +1 -1
  315. metadata +37 -3
@@ -14,25 +14,24 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class AnalyticsProduct
17
- # The ID of the analytics-level product.
17
+ # The ID of the product.
18
18
  attr_accessor :id
19
19
 
20
- # Indicates whether the analytics-level product is connected to a catalog and also has a product name.
21
- attr_accessor :is_preliminary
22
-
23
- # The name of the analytics-level product.
20
+ # The name of the product.
24
21
  attr_accessor :name
25
22
 
26
23
  # The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**.
27
24
  attr_accessor :catalog_id
28
25
 
26
+ attr_accessor :units_sold
27
+
29
28
  # Attribute mapping from ruby-style variable name to JSON key.
30
29
  def self.attribute_map
31
30
  {
32
31
  :'id' => :'id',
33
- :'is_preliminary' => :'isPreliminary',
34
32
  :'name' => :'name',
35
- :'catalog_id' => :'catalogId'
33
+ :'catalog_id' => :'catalogId',
34
+ :'units_sold' => :'unitsSold'
36
35
  }
37
36
  end
38
37
 
@@ -40,9 +39,9 @@ module TalonOne
40
39
  def self.openapi_types
41
40
  {
42
41
  :'id' => :'Integer',
43
- :'is_preliminary' => :'Boolean',
44
42
  :'name' => :'String',
45
- :'catalog_id' => :'Integer'
43
+ :'catalog_id' => :'Integer',
44
+ :'units_sold' => :'AnalyticsDataPointWithTrend'
46
45
  }
47
46
  end
48
47
 
@@ -71,10 +70,6 @@ module TalonOne
71
70
  self.id = attributes[:'id']
72
71
  end
73
72
 
74
- if attributes.key?(:'is_preliminary')
75
- self.is_preliminary = attributes[:'is_preliminary']
76
- end
77
-
78
73
  if attributes.key?(:'name')
79
74
  self.name = attributes[:'name']
80
75
  end
@@ -82,6 +77,10 @@ module TalonOne
82
77
  if attributes.key?(:'catalog_id')
83
78
  self.catalog_id = attributes[:'catalog_id']
84
79
  end
80
+
81
+ if attributes.key?(:'units_sold')
82
+ self.units_sold = attributes[:'units_sold']
83
+ end
85
84
  end
86
85
 
87
86
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -92,14 +91,14 @@ module TalonOne
92
91
  invalid_properties.push('invalid value for "id", id cannot be nil.')
93
92
  end
94
93
 
95
- if @is_preliminary.nil?
96
- invalid_properties.push('invalid value for "is_preliminary", is_preliminary cannot be nil.')
97
- end
98
-
99
94
  if @name.nil?
100
95
  invalid_properties.push('invalid value for "name", name cannot be nil.')
101
96
  end
102
97
 
98
+ if @catalog_id.nil?
99
+ invalid_properties.push('invalid value for "catalog_id", catalog_id cannot be nil.')
100
+ end
101
+
103
102
  invalid_properties
104
103
  end
105
104
 
@@ -107,8 +106,8 @@ module TalonOne
107
106
  # @return true if the model is valid
108
107
  def valid?
109
108
  return false if @id.nil?
110
- return false if @is_preliminary.nil?
111
109
  return false if @name.nil?
110
+ return false if @catalog_id.nil?
112
111
  true
113
112
  end
114
113
 
@@ -118,9 +117,9 @@ module TalonOne
118
117
  return true if self.equal?(o)
119
118
  self.class == o.class &&
120
119
  id == o.id &&
121
- is_preliminary == o.is_preliminary &&
122
120
  name == o.name &&
123
- catalog_id == o.catalog_id
121
+ catalog_id == o.catalog_id &&
122
+ units_sold == o.units_sold
124
123
  end
125
124
 
126
125
  # @see the `==` method
@@ -132,7 +131,7 @@ module TalonOne
132
131
  # Calculates hash code according to all attributes.
133
132
  # @return [Integer] Hash code
134
133
  def hash
135
- [id, is_preliminary, name, catalog_id].hash
134
+ [id, name, catalog_id, units_sold].hash
136
135
  end
137
136
 
138
137
  # Builds the object from hash
@@ -200,7 +200,7 @@ module TalonOne
200
200
  def valid?
201
201
  return false if @title.nil?
202
202
  return false if @expires.nil?
203
- platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "selligent", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
203
+ platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "shopify", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
204
204
  return false unless platform_validator.valid?(@platform)
205
205
  type_validator = EnumAttributeValidator.new('String', ["staging"])
206
206
  return false unless type_validator.valid?(@type)
@@ -215,7 +215,7 @@ module TalonOne
215
215
  # Custom attribute writer method checking allowed values (enum).
216
216
  # @param [Object] platform Object to be assigned
217
217
  def platform=(platform)
218
- validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "selligent", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
218
+ validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "shopify", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
219
219
  unless validator.valid?(platform)
220
220
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
221
221
  end
@@ -38,7 +38,7 @@ module TalonOne
38
38
  # Timestamp of the most recent update to the Application cart item filter.
39
39
  attr_accessor :modified
40
40
 
41
- # The ID of the application that owns this entity.
41
+ # The ID of the Application that owns this entity.
42
42
  attr_accessor :application_id
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -29,7 +29,7 @@ module TalonOne
29
29
  # Arbitrary additional JSON data associated with the Application cart item filter.
30
30
  attr_accessor :expression
31
31
 
32
- # The ID of the application that owns this entity.
32
+ # The ID of the Application that owns this entity.
33
33
  attr_accessor :application_id
34
34
 
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class ApplicationEntity
17
- # The ID of the application that owns this entity.
17
+ # The ID of the Application that owns this entity.
18
18
  attr_accessor :application_id
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -20,7 +20,7 @@ module TalonOne
20
20
  # The time this entity was created.
21
21
  attr_accessor :created
22
22
 
23
- # The ID of the application that owns this entity.
23
+ # The ID of the Application that owns this entity.
24
24
  attr_accessor :application_id
25
25
 
26
26
  # The globally unique Talon.One ID of the customer that created this entity.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class ApplicationReferee
17
- # The ID of the application that owns this entity.
17
+ # The ID of the Application that owns this entity.
18
18
  attr_accessor :application_id
19
19
 
20
20
  # Integration ID of the session in which the customer redeemed the referral.
@@ -26,7 +26,7 @@ module TalonOne
26
26
  # The integration ID of the store. You choose this ID when you create a store.
27
27
  attr_accessor :store_integration_id
28
28
 
29
- # The ID of the application that owns this entity.
29
+ # The ID of the Application that owns this entity.
30
30
  attr_accessor :application_id
31
31
 
32
32
  # The globally unique Talon.One ID of the customer that created this entity.
@@ -50,7 +50,7 @@ module TalonOne
50
50
  # **API V1 only.** A map of labeled discount values, in the same currency as the session. If you are using the V2 endpoints, refer to the `totalDiscounts` property instead.
51
51
  attr_accessor :discounts
52
52
 
53
- # The total sum of the discounts applied to this session.
53
+ # The total sum of the discounts applied to this session. **Note:** If more than one session is returned, this value is displayed as `0`.
54
54
  attr_accessor :total_discounts
55
55
 
56
56
  # The total sum of the session before any discounts applied.
@@ -32,7 +32,7 @@ module TalonOne
32
32
  # A description of the audience.
33
33
  attr_accessor :description
34
34
 
35
- # The Talon.One-supported [3rd-party platform](https://docs.talon.one/docs/dev/technology-partners/overview) that this audience was created in. For example, `mParticle`, `Segment`, `Selligent`, `Braze`, or `Iterable`. **Note:** If you do not integrate with any of these platforms, do not use this property.
35
+ # The Talon.One-supported [3rd-party platform](https://docs.talon.one/docs/dev/technology-partners/overview) that this audience was created in. For example, `mParticle`, `Segment`, `Shopify`, `Braze`, or `Iterable`. **Note:** If you do not integrate with any of these platforms, do not use this property.
36
36
  attr_accessor :integration
37
37
 
38
38
  # The ID of this audience in the third-party integration. **Note:** To create an audience that doesn't come from a 3rd party platform, do not use this property.
@@ -55,7 +55,7 @@ module TalonOne
55
55
 
56
56
  attr_accessor :card_code_settings
57
57
 
58
- # The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative.
58
+ # The policy that defines the rollback of points in case of a partially returned, cancelled, or reopened [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). - `only_pending`: Only pending points can be rolled back. - `within_balance`: Available active points can be rolled back if there aren't enough pending points. The active balance of the customer cannot be negative. - `unlimited`: Allows negative balance without any limit.
59
59
  attr_accessor :return_policy
60
60
 
61
61
  class EnumAttributeValidator
@@ -227,7 +227,7 @@ module TalonOne
227
227
  return false unless tiers_expiration_policy_validator.valid?(@tiers_expiration_policy)
228
228
  tiers_downgrade_policy_validator = EnumAttributeValidator.new('String', ["one_down", "balance_based"])
229
229
  return false unless tiers_downgrade_policy_validator.valid?(@tiers_downgrade_policy)
230
- return_policy_validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance"])
230
+ return_policy_validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance", "unlimited"])
231
231
  return false unless return_policy_validator.valid?(@return_policy)
232
232
  true
233
233
  end
@@ -275,7 +275,7 @@ module TalonOne
275
275
  # Custom attribute writer method checking allowed values (enum).
276
276
  # @param [Object] return_policy Object to be assigned
277
277
  def return_policy=(return_policy)
278
- validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance"])
278
+ validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance", "unlimited"])
279
279
  unless validator.valid?(return_policy)
280
280
  fail ArgumentError, "invalid value for \"return_policy\", must be one of #{validator.allowable_values}."
281
281
  end
@@ -20,7 +20,7 @@ module TalonOne
20
20
  # The exact moment this entity was created.
21
21
  attr_accessor :created
22
22
 
23
- # The ID of the application that owns this entity.
23
+ # The ID of the Application that owns this entity.
24
24
  attr_accessor :application_id
25
25
 
26
26
  # The ID of the user associated with this entity.
@@ -138,6 +138,9 @@ module TalonOne
138
138
  # Indicates whether the linked stores were imported via a CSV file.
139
139
  attr_accessor :stores_imported
140
140
 
141
+ # A list of value map IDs for the campaign.
142
+ attr_accessor :value_maps_ids
143
+
141
144
  # The campaign revision state displayed in the Campaign Manager.
142
145
  attr_accessor :revision_frontend_state
143
146
 
@@ -226,6 +229,7 @@ module TalonOne
226
229
  :'template_id' => :'templateId',
227
230
  :'frontend_state' => :'frontendState',
228
231
  :'stores_imported' => :'storesImported',
232
+ :'value_maps_ids' => :'valueMapsIds',
229
233
  :'revision_frontend_state' => :'revisionFrontendState',
230
234
  :'active_revision_id' => :'activeRevisionId',
231
235
  :'active_revision_version_id' => :'activeRevisionVersionId',
@@ -281,6 +285,7 @@ module TalonOne
281
285
  :'template_id' => :'Integer',
282
286
  :'frontend_state' => :'String',
283
287
  :'stores_imported' => :'Boolean',
288
+ :'value_maps_ids' => :'Array<Integer>',
284
289
  :'revision_frontend_state' => :'String',
285
290
  :'active_revision_id' => :'Integer',
286
291
  :'active_revision_version_id' => :'Integer',
@@ -496,6 +501,12 @@ module TalonOne
496
501
  self.stores_imported = attributes[:'stores_imported']
497
502
  end
498
503
 
504
+ if attributes.key?(:'value_maps_ids')
505
+ if (value = attributes[:'value_maps_ids']).is_a?(Array)
506
+ self.value_maps_ids = value
507
+ end
508
+ end
509
+
499
510
  if attributes.key?(:'revision_frontend_state')
500
511
  self.revision_frontend_state = attributes[:'revision_frontend_state']
501
512
  end
@@ -579,10 +590,6 @@ module TalonOne
579
590
  invalid_properties.push('invalid value for "type", type cannot be nil.')
580
591
  end
581
592
 
582
- if @budgets.nil?
583
- invalid_properties.push('invalid value for "budgets", budgets cannot be nil.')
584
- end
585
-
586
593
  if @frontend_state.nil?
587
594
  invalid_properties.push('invalid value for "frontend_state", frontend_state cannot be nil.')
588
595
  end
@@ -613,7 +620,6 @@ module TalonOne
613
620
  return false if @type.nil?
614
621
  type_validator = EnumAttributeValidator.new('String', ["cartItem", "advanced"])
615
622
  return false unless type_validator.valid?(@type)
616
- return false if @budgets.nil?
617
623
  return false if @frontend_state.nil?
618
624
  frontend_state_validator = EnumAttributeValidator.new('String', ["expired", "scheduled", "running", "disabled", "archived", "staged"])
619
625
  return false unless frontend_state_validator.valid?(@frontend_state)
@@ -724,6 +730,7 @@ module TalonOne
724
730
  template_id == o.template_id &&
725
731
  frontend_state == o.frontend_state &&
726
732
  stores_imported == o.stores_imported &&
733
+ value_maps_ids == o.value_maps_ids &&
727
734
  revision_frontend_state == o.revision_frontend_state &&
728
735
  active_revision_id == o.active_revision_id &&
729
736
  active_revision_version_id == o.active_revision_version_id &&
@@ -742,7 +749,7 @@ module TalonOne
742
749
  # Calculates hash code according to all attributes.
743
750
  # @return [Integer] Hash code
744
751
  def hash
745
- [id, created, application_id, user_id, name, description, start_time, end_time, attributes, state, active_ruleset_id, tags, features, coupon_settings, referral_settings, limits, campaign_groups, type, linked_store_ids, budgets, coupon_redemption_count, referral_redemption_count, discount_count, discount_effect_count, coupon_creation_count, custom_effect_count, referral_creation_count, add_free_item_effect_count, awarded_giveaways_count, created_loyalty_points_count, created_loyalty_points_effect_count, redeemed_loyalty_points_count, redeemed_loyalty_points_effect_count, call_api_effect_count, reservecoupon_effect_count, last_activity, updated, created_by, updated_by, template_id, frontend_state, stores_imported, revision_frontend_state, active_revision_id, active_revision_version_id, version, current_revision_id, current_revision_version_id, stage_revision].hash
752
+ [id, created, application_id, user_id, name, description, start_time, end_time, attributes, state, active_ruleset_id, tags, features, coupon_settings, referral_settings, limits, campaign_groups, type, linked_store_ids, budgets, coupon_redemption_count, referral_redemption_count, discount_count, discount_effect_count, coupon_creation_count, custom_effect_count, referral_creation_count, add_free_item_effect_count, awarded_giveaways_count, created_loyalty_points_count, created_loyalty_points_effect_count, redeemed_loyalty_points_count, redeemed_loyalty_points_effect_count, call_api_effect_count, reservecoupon_effect_count, last_activity, updated, created_by, updated_by, template_id, frontend_state, stores_imported, value_maps_ids, revision_frontend_state, active_revision_id, active_revision_version_id, version, current_revision_id, current_revision_version_id, stage_revision].hash
746
753
  end
747
754
 
748
755
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class CampaignEvaluationGroup
17
- # The ID of the application that owns this entity.
17
+ # The ID of the Application that owns this entity.
18
18
  attr_accessor :application_id
19
19
 
20
20
  # The name of the campaign evaluation group.
@@ -20,11 +20,15 @@ module TalonOne
20
20
  # Indicates whether batching is activated.
21
21
  attr_accessor :batching_enabled
22
22
 
23
+ # The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.
24
+ attr_accessor :batch_size
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
  :'name' => :'name',
27
- :'batching_enabled' => :'batchingEnabled'
30
+ :'batching_enabled' => :'batchingEnabled',
31
+ :'batch_size' => :'batchSize'
28
32
  }
29
33
  end
30
34
 
@@ -32,7 +36,8 @@ module TalonOne
32
36
  def self.openapi_types
33
37
  {
34
38
  :'name' => :'String',
35
- :'batching_enabled' => :'Boolean'
39
+ :'batching_enabled' => :'Boolean',
40
+ :'batch_size' => :'Integer'
36
41
  }
37
42
  end
38
43
 
@@ -66,6 +71,10 @@ module TalonOne
66
71
  else
67
72
  self.batching_enabled = true
68
73
  end
74
+
75
+ if attributes.key?(:'batch_size')
76
+ self.batch_size = attributes[:'batch_size']
77
+ end
69
78
  end
70
79
 
71
80
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,7 +120,8 @@ module TalonOne
111
120
  return true if self.equal?(o)
112
121
  self.class == o.class &&
113
122
  name == o.name &&
114
- batching_enabled == o.batching_enabled
123
+ batching_enabled == o.batching_enabled &&
124
+ batch_size == o.batch_size
115
125
  end
116
126
 
117
127
  # @see the `==` method
@@ -123,7 +133,7 @@ module TalonOne
123
133
  # Calculates hash code according to all attributes.
124
134
  # @return [Integer] Hash code
125
135
  def hash
126
- [name, batching_enabled].hash
136
+ [name, batching_enabled, batch_size].hash
127
137
  end
128
138
 
129
139
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class CampaignSet
17
- # The ID of the application that owns this entity.
17
+ # The ID of the Application that owns this entity.
18
18
  attr_accessor :application_id
19
19
 
20
20
  # Internal ID of this entity.
@@ -47,7 +47,7 @@ module TalonOne
47
47
  :'created' => :'DateTime',
48
48
  :'campaign_id' => :'Integer',
49
49
  :'store_id' => :'Integer',
50
- :'limits' => :'Array<LimitConfig>'
50
+ :'limits' => :'Array<CampaignStoreBudgetLimitConfig>'
51
51
  }
52
52
  end
53
53
 
@@ -22,12 +22,16 @@ module TalonOne
22
22
  # Indicates whether batching is activated.
23
23
  attr_accessor :batching_enabled
24
24
 
25
+ # The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.
26
+ attr_accessor :batch_size
27
+
25
28
  # Attribute mapping from ruby-style variable name to JSON key.
26
29
  def self.attribute_map
27
30
  {
28
31
  :'name' => :'name',
29
32
  :'triggers' => :'triggers',
30
- :'batching_enabled' => :'batchingEnabled'
33
+ :'batching_enabled' => :'batchingEnabled',
34
+ :'batch_size' => :'batchSize'
31
35
  }
32
36
  end
33
37
 
@@ -36,7 +40,8 @@ module TalonOne
36
40
  {
37
41
  :'name' => :'String',
38
42
  :'triggers' => :'Array<CardExpiringPointsNotificationTrigger>',
39
- :'batching_enabled' => :'Boolean'
43
+ :'batching_enabled' => :'Boolean',
44
+ :'batch_size' => :'Integer'
40
45
  }
41
46
  end
42
47
 
@@ -76,6 +81,10 @@ module TalonOne
76
81
  else
77
82
  self.batching_enabled = true
78
83
  end
84
+
85
+ if attributes.key?(:'batch_size')
86
+ self.batch_size = attributes[:'batch_size']
87
+ end
79
88
  end
80
89
 
81
90
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -127,7 +136,8 @@ module TalonOne
127
136
  self.class == o.class &&
128
137
  name == o.name &&
129
138
  triggers == o.triggers &&
130
- batching_enabled == o.batching_enabled
139
+ batching_enabled == o.batching_enabled &&
140
+ batch_size == o.batch_size
131
141
  end
132
142
 
133
143
  # @see the `==` method
@@ -139,7 +149,7 @@ module TalonOne
139
149
  # Calculates hash code according to all attributes.
140
150
  # @return [Integer] Hash code
141
151
  def hash
142
- [name, triggers, batching_enabled].hash
152
+ [name, triggers, batching_enabled, batch_size].hash
143
153
  end
144
154
 
145
155
  # Builds the object from hash
@@ -17,17 +17,22 @@ module TalonOne
17
17
  # Notification name.
18
18
  attr_accessor :name
19
19
 
20
+ # The number of days in advance that strikethrough pricing updates should be sent.
21
+ attr_accessor :ahead_of_days_trigger
22
+
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
23
- :'name' => :'name'
26
+ :'name' => :'name',
27
+ :'ahead_of_days_trigger' => :'aheadOfDaysTrigger'
24
28
  }
25
29
  end
26
30
 
27
31
  # Attribute type mapping.
28
32
  def self.openapi_types
29
33
  {
30
- :'name' => :'String'
34
+ :'name' => :'String',
35
+ :'ahead_of_days_trigger' => :'Integer'
31
36
  }
32
37
  end
33
38
 
@@ -55,6 +60,10 @@ module TalonOne
55
60
  if attributes.key?(:'name')
56
61
  self.name = attributes[:'name']
57
62
  end
63
+
64
+ if attributes.key?(:'ahead_of_days_trigger')
65
+ self.ahead_of_days_trigger = attributes[:'ahead_of_days_trigger']
66
+ end
58
67
  end
59
68
 
60
69
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -69,6 +78,14 @@ module TalonOne
69
78
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
70
79
  end
71
80
 
81
+ if !@ahead_of_days_trigger.nil? && @ahead_of_days_trigger > 30
82
+ invalid_properties.push('invalid value for "ahead_of_days_trigger", must be smaller than or equal to 30.')
83
+ end
84
+
85
+ if !@ahead_of_days_trigger.nil? && @ahead_of_days_trigger < 1
86
+ invalid_properties.push('invalid value for "ahead_of_days_trigger", must be greater than or equal to 1.')
87
+ end
88
+
72
89
  invalid_properties
73
90
  end
74
91
 
@@ -77,6 +94,8 @@ module TalonOne
77
94
  def valid?
78
95
  return false if @name.nil?
79
96
  return false if @name.to_s.length < 1
97
+ return false if !@ahead_of_days_trigger.nil? && @ahead_of_days_trigger > 30
98
+ return false if !@ahead_of_days_trigger.nil? && @ahead_of_days_trigger < 1
80
99
  true
81
100
  end
82
101
 
@@ -94,12 +113,27 @@ module TalonOne
94
113
  @name = name
95
114
  end
96
115
 
116
+ # Custom attribute writer method with validation
117
+ # @param [Object] ahead_of_days_trigger Value to be assigned
118
+ def ahead_of_days_trigger=(ahead_of_days_trigger)
119
+ if !ahead_of_days_trigger.nil? && ahead_of_days_trigger > 30
120
+ fail ArgumentError, 'invalid value for "ahead_of_days_trigger", must be smaller than or equal to 30.'
121
+ end
122
+
123
+ if !ahead_of_days_trigger.nil? && ahead_of_days_trigger < 1
124
+ fail ArgumentError, 'invalid value for "ahead_of_days_trigger", must be greater than or equal to 1.'
125
+ end
126
+
127
+ @ahead_of_days_trigger = ahead_of_days_trigger
128
+ end
129
+
97
130
  # Checks equality by comparing each attribute.
98
131
  # @param [Object] Object to be compared
99
132
  def ==(o)
100
133
  return true if self.equal?(o)
101
134
  self.class == o.class &&
102
- name == o.name
135
+ name == o.name &&
136
+ ahead_of_days_trigger == o.ahead_of_days_trigger
103
137
  end
104
138
 
105
139
  # @see the `==` method
@@ -111,7 +145,7 @@ module TalonOne
111
145
  # Calculates hash code according to all attributes.
112
146
  # @return [Integer] Hash code
113
147
  def hash
114
- [name].hash
148
+ [name, ahead_of_days_trigger].hash
115
149
  end
116
150
 
117
151
  # Builds the object from hash
@@ -23,7 +23,7 @@ module TalonOne
23
23
  # The ID of the campaign that owns this entity.
24
24
  attr_accessor :campaign_id
25
25
 
26
- # The ID of the application that owns this entity.
26
+ # The ID of the Application that owns this entity.
27
27
  attr_accessor :application_id
28
28
 
29
29
  # The ID of the account that owns this entity.
@@ -20,7 +20,7 @@ module TalonOne
20
20
  # The time this entity was created.
21
21
  attr_accessor :created
22
22
 
23
- # The ID of the application that owns this entity.
23
+ # The ID of the Application that owns this entity.
24
24
  attr_accessor :application_id
25
25
 
26
26
  # The ID of the account that owns this entity.
@@ -22,6 +22,12 @@ module TalonOne
22
22
  # Indicates whether batching is activated.
23
23
  attr_accessor :batching_enabled
24
24
 
25
+ # Indicates whether to include all generated coupons. If `false`, only the `batchId` of the generated coupons is included.
26
+ attr_accessor :include_data
27
+
28
+ # The required size of each batch of data. This value applies only when `batchingEnabled` is `true`.
29
+ attr_accessor :batch_size
30
+
25
31
  class EnumAttributeValidator
26
32
  attr_reader :datatype
27
33
  attr_reader :allowable_values
@@ -49,7 +55,9 @@ module TalonOne
49
55
  {
50
56
  :'name' => :'name',
51
57
  :'scopes' => :'scopes',
52
- :'batching_enabled' => :'batchingEnabled'
58
+ :'batching_enabled' => :'batchingEnabled',
59
+ :'include_data' => :'includeData',
60
+ :'batch_size' => :'batchSize'
53
61
  }
54
62
  end
55
63
 
@@ -58,7 +66,9 @@ module TalonOne
58
66
  {
59
67
  :'name' => :'String',
60
68
  :'scopes' => :'Array<String>',
61
- :'batching_enabled' => :'Boolean'
69
+ :'batching_enabled' => :'Boolean',
70
+ :'include_data' => :'Boolean',
71
+ :'batch_size' => :'Integer'
62
72
  }
63
73
  end
64
74
 
@@ -98,6 +108,14 @@ module TalonOne
98
108
  else
99
109
  self.batching_enabled = true
100
110
  end
111
+
112
+ if attributes.key?(:'include_data')
113
+ self.include_data = attributes[:'include_data']
114
+ end
115
+
116
+ if attributes.key?(:'batch_size')
117
+ self.batch_size = attributes[:'batch_size']
118
+ end
101
119
  end
102
120
 
103
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -149,7 +167,9 @@ module TalonOne
149
167
  self.class == o.class &&
150
168
  name == o.name &&
151
169
  scopes == o.scopes &&
152
- batching_enabled == o.batching_enabled
170
+ batching_enabled == o.batching_enabled &&
171
+ include_data == o.include_data &&
172
+ batch_size == o.batch_size
153
173
  end
154
174
 
155
175
  # @see the `==` method
@@ -161,7 +181,7 @@ module TalonOne
161
181
  # Calculates hash code according to all attributes.
162
182
  # @return [Integer] Hash code
163
183
  def hash
164
- [name, scopes, batching_enabled].hash
184
+ [name, scopes, batching_enabled, include_data, batch_size].hash
165
185
  end
166
186
 
167
187
  # Builds the object from hash