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
@@ -27,13 +27,17 @@ module TalonOne
27
27
  # Total amount of points awarded but never redeemed. They cannot be used anymore.
28
28
  attr_accessor :expired_points
29
29
 
30
+ # Total amount of negative points. This implies that `activePoints` is `0`.
31
+ attr_accessor :negative_points
32
+
30
33
  # Attribute mapping from ruby-style variable name to JSON key.
31
34
  def self.attribute_map
32
35
  {
33
36
  :'active_points' => :'activePoints',
34
37
  :'pending_points' => :'pendingPoints',
35
38
  :'spent_points' => :'spentPoints',
36
- :'expired_points' => :'expiredPoints'
39
+ :'expired_points' => :'expiredPoints',
40
+ :'negative_points' => :'negativePoints'
37
41
  }
38
42
  end
39
43
 
@@ -43,7 +47,8 @@ module TalonOne
43
47
  :'active_points' => :'Float',
44
48
  :'pending_points' => :'Float',
45
49
  :'spent_points' => :'Float',
46
- :'expired_points' => :'Float'
50
+ :'expired_points' => :'Float',
51
+ :'negative_points' => :'Float'
47
52
  }
48
53
  end
49
54
 
@@ -83,6 +88,10 @@ module TalonOne
83
88
  if attributes.key?(:'expired_points')
84
89
  self.expired_points = attributes[:'expired_points']
85
90
  end
91
+
92
+ if attributes.key?(:'negative_points')
93
+ self.negative_points = attributes[:'negative_points']
94
+ end
86
95
  end
87
96
 
88
97
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,7 +115,8 @@ module TalonOne
106
115
  active_points == o.active_points &&
107
116
  pending_points == o.pending_points &&
108
117
  spent_points == o.spent_points &&
109
- expired_points == o.expired_points
118
+ expired_points == o.expired_points &&
119
+ negative_points == o.negative_points
110
120
  end
111
121
 
112
122
  # @see the `==` method
@@ -118,7 +128,7 @@ module TalonOne
118
128
  # Calculates hash code according to all attributes.
119
129
  # @return [Integer] Hash code
120
130
  def hash
121
- [active_points, pending_points, spent_points, expired_points].hash
131
+ [active_points, pending_points, spent_points, expired_points, negative_points].hash
122
132
  end
123
133
 
124
134
  # Builds the object from hash
@@ -27,6 +27,9 @@ module TalonOne
27
27
  # Total amount of points awarded but never redeemed. They cannot be used anymore.
28
28
  attr_accessor :expired_points
29
29
 
30
+ # Total amount of negative points. This implies that `activePoints` is `0`.
31
+ attr_accessor :negative_points
32
+
30
33
  attr_accessor :current_tier
31
34
 
32
35
  attr_accessor :projected_tier
@@ -44,6 +47,7 @@ module TalonOne
44
47
  :'pending_points' => :'pendingPoints',
45
48
  :'spent_points' => :'spentPoints',
46
49
  :'expired_points' => :'expiredPoints',
50
+ :'negative_points' => :'negativePoints',
47
51
  :'current_tier' => :'currentTier',
48
52
  :'projected_tier' => :'projectedTier',
49
53
  :'points_to_next_tier' => :'pointsToNextTier',
@@ -58,6 +62,7 @@ module TalonOne
58
62
  :'pending_points' => :'Float',
59
63
  :'spent_points' => :'Float',
60
64
  :'expired_points' => :'Float',
65
+ :'negative_points' => :'Float',
61
66
  :'current_tier' => :'Tier',
62
67
  :'projected_tier' => :'ProjectedTier',
63
68
  :'points_to_next_tier' => :'Float',
@@ -102,6 +107,10 @@ module TalonOne
102
107
  self.expired_points = attributes[:'expired_points']
103
108
  end
104
109
 
110
+ if attributes.key?(:'negative_points')
111
+ self.negative_points = attributes[:'negative_points']
112
+ end
113
+
105
114
  if attributes.key?(:'current_tier')
106
115
  self.current_tier = attributes[:'current_tier']
107
116
  end
@@ -141,6 +150,7 @@ module TalonOne
141
150
  pending_points == o.pending_points &&
142
151
  spent_points == o.spent_points &&
143
152
  expired_points == o.expired_points &&
153
+ negative_points == o.negative_points &&
144
154
  current_tier == o.current_tier &&
145
155
  projected_tier == o.projected_tier &&
146
156
  points_to_next_tier == o.points_to_next_tier &&
@@ -156,7 +166,7 @@ module TalonOne
156
166
  # Calculates hash code according to all attributes.
157
167
  # @return [Integer] Hash code
158
168
  def hash
159
- [active_points, pending_points, spent_points, expired_points, current_tier, projected_tier, points_to_next_tier, next_tier_name].hash
169
+ [active_points, pending_points, spent_points, expired_points, negative_points, current_tier, projected_tier, points_to_next_tier, next_tier_name].hash
160
170
  end
161
171
 
162
172
  # Builds the object from hash
@@ -48,6 +48,8 @@ module TalonOne
48
48
  # Indicates if the entry belongs to the archived session.
49
49
  attr_accessor :archived
50
50
 
51
+ attr_accessor :flags
52
+
51
53
  # Attribute mapping from ruby-style variable name to JSON key.
52
54
  def self.attribute_map
53
55
  {
@@ -64,7 +66,8 @@ module TalonOne
64
66
  :'name' => :'name',
65
67
  :'sub_ledger_id' => :'subLedgerID',
66
68
  :'user_id' => :'userID',
67
- :'archived' => :'archived'
69
+ :'archived' => :'archived',
70
+ :'flags' => :'flags'
68
71
  }
69
72
  end
70
73
 
@@ -84,7 +87,8 @@ module TalonOne
84
87
  :'name' => :'String',
85
88
  :'sub_ledger_id' => :'String',
86
89
  :'user_id' => :'Integer',
87
- :'archived' => :'Boolean'
90
+ :'archived' => :'Boolean',
91
+ :'flags' => :'LoyaltyLedgerEntryFlags'
88
92
  }
89
93
  end
90
94
 
@@ -164,6 +168,10 @@ module TalonOne
164
168
  if attributes.key?(:'archived')
165
169
  self.archived = attributes[:'archived']
166
170
  end
171
+
172
+ if attributes.key?(:'flags')
173
+ self.flags = attributes[:'flags']
174
+ end
167
175
  end
168
176
 
169
177
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -227,7 +235,8 @@ module TalonOne
227
235
  name == o.name &&
228
236
  sub_ledger_id == o.sub_ledger_id &&
229
237
  user_id == o.user_id &&
230
- archived == o.archived
238
+ archived == o.archived &&
239
+ flags == o.flags
231
240
  end
232
241
 
233
242
  # @see the `==` method
@@ -239,7 +248,7 @@ module TalonOne
239
248
  # Calculates hash code according to all attributes.
240
249
  # @return [Integer] Hash code
241
250
  def hash
242
- [created, program_id, customer_profile_id, card_id, customer_session_id, event_id, type, amount, start_date, expiry_date, name, sub_ledger_id, user_id, archived].hash
251
+ [created, program_id, customer_profile_id, card_id, customer_session_id, event_id, type, amount, start_date, expiry_date, name, sub_ledger_id, user_id, archived, flags].hash
243
252
  end
244
253
 
245
254
  # Builds the object from hash
@@ -62,7 +62,7 @@ module TalonOne
62
62
 
63
63
  attr_accessor :card_code_settings
64
64
 
65
- # 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.
65
+ # 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.
66
66
  attr_accessor :return_policy
67
67
 
68
68
  # The ID of the Talon.One account that owns this program.
@@ -411,7 +411,7 @@ module TalonOne
411
411
  return false unless tiers_expiration_policy_validator.valid?(@tiers_expiration_policy)
412
412
  tiers_downgrade_policy_validator = EnumAttributeValidator.new('String', ["one_down", "balance_based"])
413
413
  return false unless tiers_downgrade_policy_validator.valid?(@tiers_downgrade_policy)
414
- return_policy_validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance"])
414
+ return_policy_validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance", "unlimited"])
415
415
  return false unless return_policy_validator.valid?(@return_policy)
416
416
  return false if @account_id.nil?
417
417
  return false if @name.nil?
@@ -464,7 +464,7 @@ module TalonOne
464
464
  # Custom attribute writer method checking allowed values (enum).
465
465
  # @param [Object] return_policy Object to be assigned
466
466
  def return_policy=(return_policy)
467
- validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance"])
467
+ validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance", "unlimited"])
468
468
  unless validator.valid?(return_policy)
469
469
  fail ArgumentError, "invalid value for \"return_policy\", must be one of #{validator.allowable_values}."
470
470
  end
@@ -21,6 +21,9 @@ module TalonOne
21
21
  # Sum of pending points.
22
22
  attr_accessor :pending_balance
23
23
 
24
+ # Sum of negative points. This implies that `currentBalance` is `0`.
25
+ attr_accessor :negative_balance
26
+
24
27
  # **DEPRECATED** Value is shown as 0.
25
28
  attr_accessor :expired_balance
26
29
 
@@ -33,15 +36,20 @@ module TalonOne
33
36
  # The tentative points balance, reflecting the `pendingBalance` and all point additions with a future activation date within the current open customer session. When the session is closed, the effects are applied and the `pendingBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer.
34
37
  attr_accessor :tentative_pending_balance
35
38
 
39
+ # The tentative negative balance after all additions and deductions from the current customer session are applied to `negativeBalance`. When the session is closed, the tentative effects are applied and `negativeBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer.
40
+ attr_accessor :tentative_negative_balance
41
+
36
42
  # Attribute mapping from ruby-style variable name to JSON key.
37
43
  def self.attribute_map
38
44
  {
39
45
  :'current_balance' => :'currentBalance',
40
46
  :'pending_balance' => :'pendingBalance',
47
+ :'negative_balance' => :'negativeBalance',
41
48
  :'expired_balance' => :'expiredBalance',
42
49
  :'spent_balance' => :'spentBalance',
43
50
  :'tentative_current_balance' => :'tentativeCurrentBalance',
44
- :'tentative_pending_balance' => :'tentativePendingBalance'
51
+ :'tentative_pending_balance' => :'tentativePendingBalance',
52
+ :'tentative_negative_balance' => :'tentativeNegativeBalance'
45
53
  }
46
54
  end
47
55
 
@@ -50,10 +58,12 @@ module TalonOne
50
58
  {
51
59
  :'current_balance' => :'Float',
52
60
  :'pending_balance' => :'Float',
61
+ :'negative_balance' => :'Float',
53
62
  :'expired_balance' => :'Float',
54
63
  :'spent_balance' => :'Float',
55
64
  :'tentative_current_balance' => :'Float',
56
- :'tentative_pending_balance' => :'Float'
65
+ :'tentative_pending_balance' => :'Float',
66
+ :'tentative_negative_balance' => :'Float'
57
67
  }
58
68
  end
59
69
 
@@ -86,6 +96,10 @@ module TalonOne
86
96
  self.pending_balance = attributes[:'pending_balance']
87
97
  end
88
98
 
99
+ if attributes.key?(:'negative_balance')
100
+ self.negative_balance = attributes[:'negative_balance']
101
+ end
102
+
89
103
  if attributes.key?(:'expired_balance')
90
104
  self.expired_balance = attributes[:'expired_balance']
91
105
  end
@@ -101,6 +115,10 @@ module TalonOne
101
115
  if attributes.key?(:'tentative_pending_balance')
102
116
  self.tentative_pending_balance = attributes[:'tentative_pending_balance']
103
117
  end
118
+
119
+ if attributes.key?(:'tentative_negative_balance')
120
+ self.tentative_negative_balance = attributes[:'tentative_negative_balance']
121
+ end
104
122
  end
105
123
 
106
124
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -115,6 +133,10 @@ module TalonOne
115
133
  invalid_properties.push('invalid value for "pending_balance", pending_balance cannot be nil.')
116
134
  end
117
135
 
136
+ if @negative_balance.nil?
137
+ invalid_properties.push('invalid value for "negative_balance", negative_balance cannot be nil.')
138
+ end
139
+
118
140
  if @expired_balance.nil?
119
141
  invalid_properties.push('invalid value for "expired_balance", expired_balance cannot be nil.')
120
142
  end
@@ -127,6 +149,10 @@ module TalonOne
127
149
  invalid_properties.push('invalid value for "tentative_current_balance", tentative_current_balance cannot be nil.')
128
150
  end
129
151
 
152
+ if @tentative_negative_balance.nil?
153
+ invalid_properties.push('invalid value for "tentative_negative_balance", tentative_negative_balance cannot be nil.')
154
+ end
155
+
130
156
  invalid_properties
131
157
  end
132
158
 
@@ -135,9 +161,11 @@ module TalonOne
135
161
  def valid?
136
162
  return false if @current_balance.nil?
137
163
  return false if @pending_balance.nil?
164
+ return false if @negative_balance.nil?
138
165
  return false if @expired_balance.nil?
139
166
  return false if @spent_balance.nil?
140
167
  return false if @tentative_current_balance.nil?
168
+ return false if @tentative_negative_balance.nil?
141
169
  true
142
170
  end
143
171
 
@@ -148,10 +176,12 @@ module TalonOne
148
176
  self.class == o.class &&
149
177
  current_balance == o.current_balance &&
150
178
  pending_balance == o.pending_balance &&
179
+ negative_balance == o.negative_balance &&
151
180
  expired_balance == o.expired_balance &&
152
181
  spent_balance == o.spent_balance &&
153
182
  tentative_current_balance == o.tentative_current_balance &&
154
- tentative_pending_balance == o.tentative_pending_balance
183
+ tentative_pending_balance == o.tentative_pending_balance &&
184
+ tentative_negative_balance == o.tentative_negative_balance
155
185
  end
156
186
 
157
187
  # @see the `==` method
@@ -163,7 +193,7 @@ module TalonOne
163
193
  # Calculates hash code according to all attributes.
164
194
  # @return [Integer] Hash code
165
195
  def hash
166
- [current_balance, pending_balance, expired_balance, spent_balance, tentative_current_balance, tentative_pending_balance].hash
196
+ [current_balance, pending_balance, negative_balance, expired_balance, spent_balance, tentative_current_balance, tentative_pending_balance, tentative_negative_balance].hash
167
197
  end
168
198
 
169
199
  # Builds the object from hash
@@ -30,6 +30,9 @@ module TalonOne
30
30
  # Total amount of points, that expired without ever being spent.
31
31
  attr_accessor :total_expired_points
32
32
 
33
+ # Total amount of negative points. This implies that `totalActivePoints` is `0`.
34
+ attr_accessor :total_negative_points
35
+
33
36
  # List of all events that have happened such as additions, subtractions and expiries.
34
37
  attr_accessor :transactions
35
38
 
@@ -55,6 +58,7 @@ module TalonOne
55
58
  :'total_pending_points' => :'totalPendingPoints',
56
59
  :'total_spent_points' => :'totalSpentPoints',
57
60
  :'total_expired_points' => :'totalExpiredPoints',
61
+ :'total_negative_points' => :'totalNegativePoints',
58
62
  :'transactions' => :'transactions',
59
63
  :'expiring_points' => :'expiringPoints',
60
64
  :'active_points' => :'activePoints',
@@ -72,6 +76,7 @@ module TalonOne
72
76
  :'total_pending_points' => :'Float',
73
77
  :'total_spent_points' => :'Float',
74
78
  :'total_expired_points' => :'Float',
79
+ :'total_negative_points' => :'Float',
75
80
  :'transactions' => :'Array<LoyaltyLedgerEntry>',
76
81
  :'expiring_points' => :'Array<LoyaltyLedgerEntry>',
77
82
  :'active_points' => :'Array<LoyaltyLedgerEntry>',
@@ -122,6 +127,10 @@ module TalonOne
122
127
  self.total_expired_points = attributes[:'total_expired_points']
123
128
  end
124
129
 
130
+ if attributes.key?(:'total_negative_points')
131
+ self.total_negative_points = attributes[:'total_negative_points']
132
+ end
133
+
125
134
  if attributes.key?(:'transactions')
126
135
  if (value = attributes[:'transactions']).is_a?(Array)
127
136
  self.transactions = value
@@ -181,6 +190,10 @@ module TalonOne
181
190
  invalid_properties.push('invalid value for "total_expired_points", total_expired_points cannot be nil.')
182
191
  end
183
192
 
193
+ if @total_negative_points.nil?
194
+ invalid_properties.push('invalid value for "total_negative_points", total_negative_points cannot be nil.')
195
+ end
196
+
184
197
  invalid_properties
185
198
  end
186
199
 
@@ -192,6 +205,7 @@ module TalonOne
192
205
  return false if @total_pending_points.nil?
193
206
  return false if @total_spent_points.nil?
194
207
  return false if @total_expired_points.nil?
208
+ return false if @total_negative_points.nil?
195
209
  true
196
210
  end
197
211
 
@@ -205,6 +219,7 @@ module TalonOne
205
219
  total_pending_points == o.total_pending_points &&
206
220
  total_spent_points == o.total_spent_points &&
207
221
  total_expired_points == o.total_expired_points &&
222
+ total_negative_points == o.total_negative_points &&
208
223
  transactions == o.transactions &&
209
224
  expiring_points == o.expiring_points &&
210
225
  active_points == o.active_points &&
@@ -222,7 +237,7 @@ module TalonOne
222
237
  # Calculates hash code according to all attributes.
223
238
  # @return [Integer] Hash code
224
239
  def hash
225
- [total, total_active_points, total_pending_points, total_spent_points, total_expired_points, transactions, expiring_points, active_points, pending_points, expired_points, current_tier].hash
240
+ [total, total_active_points, total_pending_points, total_spent_points, total_expired_points, total_negative_points, transactions, expiring_points, active_points, pending_points, expired_points, current_tier].hash
226
241
  end
227
242
 
228
243
  # Builds the object from hash
@@ -38,6 +38,9 @@ module TalonOne
38
38
  # The date the management key was created.
39
39
  attr_accessor :created
40
40
 
41
+ # The management key is disabled (this property is set to `true`) when the user who created the key is disabled or deleted.
42
+ attr_accessor :disabled
43
+
41
44
  # Attribute mapping from ruby-style variable name to JSON key.
42
45
  def self.attribute_map
43
46
  {
@@ -48,7 +51,8 @@ module TalonOne
48
51
  :'id' => :'id',
49
52
  :'created_by' => :'createdBy',
50
53
  :'account_id' => :'accountID',
51
- :'created' => :'created'
54
+ :'created' => :'created',
55
+ :'disabled' => :'disabled'
52
56
  }
53
57
  end
54
58
 
@@ -62,7 +66,8 @@ module TalonOne
62
66
  :'id' => :'Integer',
63
67
  :'created_by' => :'Integer',
64
68
  :'account_id' => :'Integer',
65
- :'created' => :'DateTime'
69
+ :'created' => :'DateTime',
70
+ :'disabled' => :'Boolean'
66
71
  }
67
72
  end
68
73
 
@@ -122,6 +127,10 @@ module TalonOne
122
127
  if attributes.key?(:'created')
123
128
  self.created = attributes[:'created']
124
129
  end
130
+
131
+ if attributes.key?(:'disabled')
132
+ self.disabled = attributes[:'disabled']
133
+ end
125
134
  end
126
135
 
127
136
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -184,7 +193,8 @@ module TalonOne
184
193
  id == o.id &&
185
194
  created_by == o.created_by &&
186
195
  account_id == o.account_id &&
187
- created == o.created
196
+ created == o.created &&
197
+ disabled == o.disabled
188
198
  end
189
199
 
190
200
  # @see the `==` method
@@ -196,7 +206,7 @@ module TalonOne
196
206
  # Calculates hash code according to all attributes.
197
207
  # @return [Integer] Hash code
198
208
  def hash
199
- [name, expiry_date, endpoints, allowed_application_ids, id, created_by, account_id, created].hash
209
+ [name, expiry_date, endpoints, allowed_application_ids, id, created_by, account_id, created, disabled].hash
200
210
  end
201
211
 
202
212
  # Builds the object from hash
@@ -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.
@@ -213,7 +213,7 @@ module TalonOne
213
213
  def valid?
214
214
  return false if @title.nil?
215
215
  return false if @expires.nil?
216
- platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "selligent", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
216
+ platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "shopify", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
217
217
  return false unless platform_validator.valid?(@platform)
218
218
  type_validator = EnumAttributeValidator.new('String', ["staging"])
219
219
  return false unless type_validator.valid?(@type)
@@ -229,7 +229,7 @@ module TalonOne
229
229
  # Custom attribute writer method checking allowed values (enum).
230
230
  # @param [Object] platform Object to be assigned
231
231
  def platform=(platform)
232
- validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "selligent", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
232
+ validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "shopify", "iterable", "customer_engagement", "customer_data", "salesforce", "emarsys"])
233
233
  unless validator.valid?(platform)
234
234
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
235
235
  end
@@ -23,7 +23,7 @@ module TalonOne
23
23
  # A description of the audience.
24
24
  attr_accessor :description
25
25
 
26
- # 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.
26
+ # 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.
27
27
  attr_accessor :integration
28
28
 
29
29
  # 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.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class NewCampaignSet
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
  # Version of the campaign set.
@@ -56,7 +56,7 @@ module TalonOne
56
56
 
57
57
  attr_accessor :card_code_settings
58
58
 
59
- # 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.
59
+ # 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.
60
60
  attr_accessor :return_policy
61
61
 
62
62
  # The internal name for the Loyalty Program. This is an immutable value.
@@ -309,7 +309,7 @@ module TalonOne
309
309
  return false unless tiers_expiration_policy_validator.valid?(@tiers_expiration_policy)
310
310
  tiers_downgrade_policy_validator = EnumAttributeValidator.new('String', ["one_down", "balance_based"])
311
311
  return false unless tiers_downgrade_policy_validator.valid?(@tiers_downgrade_policy)
312
- return_policy_validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance"])
312
+ return_policy_validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance", "unlimited"])
313
313
  return false unless return_policy_validator.valid?(@return_policy)
314
314
  return false if @name.nil?
315
315
  return false if @timezone.nil?
@@ -361,7 +361,7 @@ module TalonOne
361
361
  # Custom attribute writer method checking allowed values (enum).
362
362
  # @param [Object] return_policy Object to be assigned
363
363
  def return_policy=(return_policy)
364
- validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance"])
364
+ validator = EnumAttributeValidator.new('String', ["only_pending", "within_balance", "unlimited"])
365
365
  unless validator.valid?(return_policy)
366
366
  fail ArgumentError, "invalid value for \"return_policy\", must be one of #{validator.allowable_values}."
367
367
  end
@@ -38,6 +38,9 @@ module TalonOne
38
38
  # The date the management key was created.
39
39
  attr_accessor :created
40
40
 
41
+ # The management key is disabled (this property is set to `true`) when the user who created the key is disabled or deleted.
42
+ attr_accessor :disabled
43
+
41
44
  # The management key.
42
45
  attr_accessor :key
43
46
 
@@ -52,6 +55,7 @@ module TalonOne
52
55
  :'created_by' => :'createdBy',
53
56
  :'account_id' => :'accountID',
54
57
  :'created' => :'created',
58
+ :'disabled' => :'disabled',
55
59
  :'key' => :'key'
56
60
  }
57
61
  end
@@ -67,6 +71,7 @@ module TalonOne
67
71
  :'created_by' => :'Integer',
68
72
  :'account_id' => :'Integer',
69
73
  :'created' => :'DateTime',
74
+ :'disabled' => :'Boolean',
70
75
  :'key' => :'String'
71
76
  }
72
77
  end
@@ -128,6 +133,10 @@ module TalonOne
128
133
  self.created = attributes[:'created']
129
134
  end
130
135
 
136
+ if attributes.key?(:'disabled')
137
+ self.disabled = attributes[:'disabled']
138
+ end
139
+
131
140
  if attributes.key?(:'key')
132
141
  self.key = attributes[:'key']
133
142
  end
@@ -199,6 +208,7 @@ module TalonOne
199
208
  created_by == o.created_by &&
200
209
  account_id == o.account_id &&
201
210
  created == o.created &&
211
+ disabled == o.disabled &&
202
212
  key == o.key
203
213
  end
204
214
 
@@ -211,7 +221,7 @@ module TalonOne
211
221
  # Calculates hash code according to all attributes.
212
222
  # @return [Integer] Hash code
213
223
  def hash
214
- [name, expiry_date, endpoints, allowed_application_ids, id, created_by, account_id, created, key].hash
224
+ [name, expiry_date, endpoints, allowed_application_ids, id, created_by, account_id, created, disabled, key].hash
215
225
  end
216
226
 
217
227
  # Builds the object from hash
@@ -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