talon_one 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -12
  3. data/docs/AddLoyaltyPointsEffectProps.md +3 -1
  4. data/docs/Application.md +2 -0
  5. data/docs/ApplicationEvent.md +3 -1
  6. data/docs/Binding.md +2 -0
  7. data/docs/Campaign.md +11 -1
  8. data/docs/CartItem.md +1 -3
  9. data/docs/Change.md +2 -0
  10. data/docs/CustomerProfileIntegrationRequestV2.md +3 -1
  11. data/docs/DeductLoyaltyPointsEffectProps.md +3 -1
  12. data/docs/Effect.md +2 -0
  13. data/docs/EffectEntity.md +3 -1
  14. data/docs/Import.md +1 -1
  15. data/docs/InlineResponse20020.md +2 -2
  16. data/docs/InlineResponse20021.md +1 -1
  17. data/docs/InlineResponse20022.md +1 -1
  18. data/docs/InlineResponse20023.md +1 -1
  19. data/docs/InlineResponse20024.md +1 -1
  20. data/docs/InlineResponse20025.md +1 -1
  21. data/docs/InlineResponse20026.md +1 -1
  22. data/docs/InlineResponse20027.md +2 -4
  23. data/docs/InlineResponse20028.md +4 -2
  24. data/docs/InlineResponse20029.md +1 -1
  25. data/docs/IntegrationApi.md +27 -27
  26. data/docs/IntegrationRequest.md +1 -1
  27. data/docs/IntegrationStateV2.md +2 -0
  28. data/docs/LoyaltyProgramBalance.md +10 -2
  29. data/docs/LoyaltyProgramLedgers.md +3 -1
  30. data/docs/LoyaltySubLedger.md +1 -1
  31. data/docs/ManagementApi.md +623 -169
  32. data/docs/NewApplication.md +2 -0
  33. data/docs/NewCoupons.md +5 -5
  34. data/docs/NewCouponsForMultipleRecipients.md +31 -0
  35. data/docs/ProfileAudiencesChanges.md +19 -0
  36. data/docs/RejectCouponEffectProps.md +7 -1
  37. data/docs/RejectReferralEffectProps.md +7 -1
  38. data/docs/RollbackAddedLoyaltyPointsEffectProps.md +25 -0
  39. data/docs/RollbackDeductedLoyaltyPointsEffectProps.md +29 -0
  40. data/docs/RollbackReferralEffectProps.md +17 -0
  41. data/docs/RuleFailureReason.md +39 -0
  42. data/docs/UpdateApplication.md +2 -0
  43. data/lib/talon_one.rb +6 -3
  44. data/lib/talon_one/api/integration_api.rb +30 -30
  45. data/lib/talon_one/api/management_api.rb +816 -242
  46. data/lib/talon_one/models/add_loyalty_points_effect_props.rb +19 -4
  47. data/lib/talon_one/models/application.rb +23 -1
  48. data/lib/talon_one/models/application_api_key.rb +2 -2
  49. data/lib/talon_one/models/application_event.rb +16 -4
  50. data/lib/talon_one/models/binding.rb +11 -1
  51. data/lib/talon_one/models/campaign.rb +52 -2
  52. data/lib/talon_one/models/cart_item.rb +4 -13
  53. data/lib/talon_one/models/change.rb +11 -1
  54. data/lib/talon_one/models/code_generator_settings.rb +9 -0
  55. data/lib/talon_one/models/create_application_api_key.rb +2 -2
  56. data/lib/talon_one/models/customer_profile_integration_request_v2.rb +11 -2
  57. data/lib/talon_one/models/customer_session.rb +38 -0
  58. data/lib/talon_one/models/customer_session_v2.rb +15 -0
  59. data/lib/talon_one/models/deduct_loyalty_points_effect_props.rb +19 -4
  60. data/lib/talon_one/models/effect.rb +11 -1
  61. data/lib/talon_one/models/effect_entity.rb +14 -4
  62. data/lib/talon_one/models/import.rb +1 -35
  63. data/lib/talon_one/models/inline_response20020.rb +1 -6
  64. data/lib/talon_one/models/inline_response20021.rb +1 -1
  65. data/lib/talon_one/models/inline_response20022.rb +1 -1
  66. data/lib/talon_one/models/inline_response20023.rb +1 -1
  67. data/lib/talon_one/models/inline_response20024.rb +1 -1
  68. data/lib/talon_one/models/inline_response20025.rb +1 -1
  69. data/lib/talon_one/models/inline_response20026.rb +1 -1
  70. data/lib/talon_one/models/inline_response20027.rb +7 -11
  71. data/lib/talon_one/models/inline_response20028.rb +11 -7
  72. data/lib/talon_one/models/inline_response20029.rb +1 -1
  73. data/lib/talon_one/models/integration_request.rb +1 -1
  74. data/lib/talon_one/models/integration_state_v2.rb +12 -1
  75. data/lib/talon_one/models/limit_config.rb +0 -12
  76. data/lib/talon_one/models/loyalty_points.rb +28 -0
  77. data/lib/talon_one/models/loyalty_program_balance.rb +65 -4
  78. data/lib/talon_one/models/loyalty_program_ledgers.rb +16 -1
  79. data/lib/talon_one/models/loyalty_sub_ledger.rb +1 -1
  80. data/lib/talon_one/models/new_application.rb +23 -1
  81. data/lib/talon_one/models/new_application_api_key.rb +2 -2
  82. data/lib/talon_one/models/new_coupons.rb +36 -41
  83. data/lib/talon_one/models/new_coupons_for_multiple_recipients.rb +368 -0
  84. data/lib/talon_one/models/new_customer_session.rb +30 -0
  85. data/lib/talon_one/models/new_customer_session_v2.rb +15 -0
  86. data/lib/talon_one/models/{new_import.rb → profile_audiences_changes.rb} +32 -48
  87. data/lib/talon_one/models/reject_coupon_effect_props.rb +34 -4
  88. data/lib/talon_one/models/reject_referral_effect_props.rb +34 -4
  89. data/lib/talon_one/models/{cart_item_adjustment.rb → rollback_added_loyalty_points_effect_props.rb} +63 -61
  90. data/lib/talon_one/models/rollback_deducted_loyalty_points_effect_props.rb +293 -0
  91. data/lib/talon_one/models/{import_coupons.rb → rollback_referral_effect_props.rb} +15 -13
  92. data/lib/talon_one/models/rule_failure_reason.rb +343 -0
  93. data/lib/talon_one/models/update_application.rb +23 -1
  94. data/lib/talon_one/version.rb +1 -1
  95. data/spec/api/integration_api_spec.rb +15 -15
  96. data/spec/api/management_api_spec.rb +183 -68
  97. data/spec/models/add_loyalty_points_effect_props_spec.rb +6 -0
  98. data/spec/models/application_api_key_spec.rb +1 -1
  99. data/spec/models/application_event_spec.rb +6 -0
  100. data/spec/models/application_spec.rb +10 -0
  101. data/spec/models/binding_spec.rb +6 -0
  102. data/spec/models/campaign_spec.rb +30 -0
  103. data/spec/models/cart_item_spec.rb +0 -6
  104. data/spec/models/change_spec.rb +6 -0
  105. data/spec/models/create_application_api_key_spec.rb +1 -1
  106. data/spec/models/customer_profile_integration_request_v2_spec.rb +7 -1
  107. data/spec/models/deduct_loyalty_points_effect_props_spec.rb +6 -0
  108. data/spec/models/effect_entity_spec.rb +6 -0
  109. data/spec/models/effect_spec.rb +6 -0
  110. data/spec/models/import_spec.rb +0 -4
  111. data/spec/models/inline_response20027_spec.rb +0 -6
  112. data/spec/models/inline_response20028_spec.rb +6 -0
  113. data/spec/models/integration_request_spec.rb +1 -1
  114. data/spec/models/integration_state_v2_spec.rb +6 -0
  115. data/spec/models/limit_config_spec.rb +0 -4
  116. data/spec/models/loyalty_program_balance_spec.rb +24 -0
  117. data/spec/models/loyalty_program_ledgers_spec.rb +6 -0
  118. data/spec/models/new_application_api_key_spec.rb +1 -1
  119. data/spec/models/new_application_spec.rb +10 -0
  120. data/spec/models/new_coupons_for_multiple_recipients_spec.rb +83 -0
  121. data/spec/models/new_coupons_spec.rb +6 -6
  122. data/spec/models/{cart_item_adjustment_spec.rb → profile_audiences_changes_spec.rb} +8 -14
  123. data/spec/models/reject_coupon_effect_props_spec.rb +18 -0
  124. data/spec/models/reject_referral_effect_props_spec.rb +18 -0
  125. data/spec/models/rollback_added_loyalty_points_effect_props_spec.rb +65 -0
  126. data/spec/models/rollback_deducted_loyalty_points_effect_props_spec.rb +77 -0
  127. data/spec/models/{import_coupons_spec.rb → rollback_referral_effect_props_spec.rb} +7 -7
  128. data/spec/models/rule_failure_reason_spec.rb +107 -0
  129. data/spec/models/update_application_spec.rb +10 -0
  130. metadata +26 -14
  131. data/docs/CartItemAdjustment.md +0 -21
  132. data/docs/ImportCoupons.md +0 -17
  133. data/docs/NewImport.md +0 -17
  134. data/spec/models/new_import_spec.rb +0 -45
@@ -36,6 +36,9 @@ module TalonOne
36
36
  # Date after which points will expire
37
37
  attr_accessor :expiry_date
38
38
 
39
+ # The identifier of this addition in the loyalty ledger
40
+ attr_accessor :transaction_uuid
41
+
39
42
  # Attribute mapping from ruby-style variable name to JSON key.
40
43
  def self.attribute_map
41
44
  {
@@ -45,7 +48,8 @@ module TalonOne
45
48
  :'value' => :'value',
46
49
  :'recipient_integration_id' => :'recipientIntegrationId',
47
50
  :'start_date' => :'startDate',
48
- :'expiry_date' => :'expiryDate'
51
+ :'expiry_date' => :'expiryDate',
52
+ :'transaction_uuid' => :'transactionUUID'
49
53
  }
50
54
  end
51
55
 
@@ -58,7 +62,8 @@ module TalonOne
58
62
  :'value' => :'Float',
59
63
  :'recipient_integration_id' => :'String',
60
64
  :'start_date' => :'DateTime',
61
- :'expiry_date' => :'DateTime'
65
+ :'expiry_date' => :'DateTime',
66
+ :'transaction_uuid' => :'String'
62
67
  }
63
68
  end
64
69
 
@@ -110,6 +115,10 @@ module TalonOne
110
115
  if attributes.key?(:'expiry_date')
111
116
  self.expiry_date = attributes[:'expiry_date']
112
117
  end
118
+
119
+ if attributes.key?(:'transaction_uuid')
120
+ self.transaction_uuid = attributes[:'transaction_uuid']
121
+ end
113
122
  end
114
123
 
115
124
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -136,6 +145,10 @@ module TalonOne
136
145
  invalid_properties.push('invalid value for "recipient_integration_id", recipient_integration_id cannot be nil.')
137
146
  end
138
147
 
148
+ if @transaction_uuid.nil?
149
+ invalid_properties.push('invalid value for "transaction_uuid", transaction_uuid cannot be nil.')
150
+ end
151
+
139
152
  invalid_properties
140
153
  end
141
154
 
@@ -147,6 +160,7 @@ module TalonOne
147
160
  return false if @sub_ledger_id.nil?
148
161
  return false if @value.nil?
149
162
  return false if @recipient_integration_id.nil?
163
+ return false if @transaction_uuid.nil?
150
164
  true
151
165
  end
152
166
 
@@ -161,7 +175,8 @@ module TalonOne
161
175
  value == o.value &&
162
176
  recipient_integration_id == o.recipient_integration_id &&
163
177
  start_date == o.start_date &&
164
- expiry_date == o.expiry_date
178
+ expiry_date == o.expiry_date &&
179
+ transaction_uuid == o.transaction_uuid
165
180
  end
166
181
 
167
182
  # @see the `==` method
@@ -173,7 +188,7 @@ module TalonOne
173
188
  # Calculates hash code according to all attributes.
174
189
  # @return [Integer] Hash code
175
190
  def hash
176
- [name, program_id, sub_ledger_id, value, recipient_integration_id, start_date, expiry_date].hash
191
+ [name, program_id, sub_ledger_id, value, recipient_integration_id, start_date, expiry_date, transaction_uuid].hash
177
192
  end
178
193
 
179
194
  # Builds the object from hash
@@ -54,6 +54,9 @@ module TalonOne
54
54
  # The strategy used when choosing exclusive campaigns for evaluation, can be one of (listOrder, lowestDiscount, highestDiscount). If no value is provided, this is set to \"listOrder\"
55
55
  attr_accessor :exclusive_campaigns_strategy
56
56
 
57
+ # The default scope to apply \"setDiscount\" effects on if no scope was provided with the effect.
58
+ attr_accessor :default_discount_scope
59
+
57
60
  # Flag indicating if discounts should cascade for this application
58
61
  attr_accessor :enable_cascading_discounts
59
62
 
@@ -106,6 +109,7 @@ module TalonOne
106
109
  :'limits' => :'limits',
107
110
  :'campaign_priority' => :'campaignPriority',
108
111
  :'exclusive_campaigns_strategy' => :'exclusiveCampaignsStrategy',
112
+ :'default_discount_scope' => :'defaultDiscountScope',
109
113
  :'enable_cascading_discounts' => :'enableCascadingDiscounts',
110
114
  :'enable_flattened_cart_items' => :'enableFlattenedCartItems',
111
115
  :'attributes_settings' => :'attributesSettings',
@@ -130,6 +134,7 @@ module TalonOne
130
134
  :'limits' => :'Array<LimitConfig>',
131
135
  :'campaign_priority' => :'String',
132
136
  :'exclusive_campaigns_strategy' => :'String',
137
+ :'default_discount_scope' => :'String',
133
138
  :'enable_cascading_discounts' => :'Boolean',
134
139
  :'enable_flattened_cart_items' => :'Boolean',
135
140
  :'attributes_settings' => :'AttributesSettings',
@@ -213,6 +218,10 @@ module TalonOne
213
218
  self.exclusive_campaigns_strategy = attributes[:'exclusive_campaigns_strategy']
214
219
  end
215
220
 
221
+ if attributes.key?(:'default_discount_scope')
222
+ self.default_discount_scope = attributes[:'default_discount_scope']
223
+ end
224
+
216
225
  if attributes.key?(:'enable_cascading_discounts')
217
226
  self.enable_cascading_discounts = attributes[:'enable_cascading_discounts']
218
227
  end
@@ -306,6 +315,8 @@ module TalonOne
306
315
  return false unless campaign_priority_validator.valid?(@campaign_priority)
307
316
  exclusive_campaigns_strategy_validator = EnumAttributeValidator.new('String', ["listOrder", "lowestDiscount", "highestDiscount"])
308
317
  return false unless exclusive_campaigns_strategy_validator.valid?(@exclusive_campaigns_strategy)
318
+ default_discount_scope_validator = EnumAttributeValidator.new('String', ["sessionTotal", "cartItems", "additionalCosts"])
319
+ return false unless default_discount_scope_validator.valid?(@default_discount_scope)
309
320
  return false if @loyalty_programs.nil?
310
321
  true
311
322
  end
@@ -382,6 +393,16 @@ module TalonOne
382
393
  @exclusive_campaigns_strategy = exclusive_campaigns_strategy
383
394
  end
384
395
 
396
+ # Custom attribute writer method checking allowed values (enum).
397
+ # @param [Object] default_discount_scope Object to be assigned
398
+ def default_discount_scope=(default_discount_scope)
399
+ validator = EnumAttributeValidator.new('String', ["sessionTotal", "cartItems", "additionalCosts"])
400
+ unless validator.valid?(default_discount_scope)
401
+ fail ArgumentError, "invalid value for \"default_discount_scope\", must be one of #{validator.allowable_values}."
402
+ end
403
+ @default_discount_scope = default_discount_scope
404
+ end
405
+
385
406
  # Checks equality by comparing each attribute.
386
407
  # @param [Object] Object to be compared
387
408
  def ==(o)
@@ -400,6 +421,7 @@ module TalonOne
400
421
  limits == o.limits &&
401
422
  campaign_priority == o.campaign_priority &&
402
423
  exclusive_campaigns_strategy == o.exclusive_campaigns_strategy &&
424
+ default_discount_scope == o.default_discount_scope &&
403
425
  enable_cascading_discounts == o.enable_cascading_discounts &&
404
426
  enable_flattened_cart_items == o.enable_flattened_cart_items &&
405
427
  attributes_settings == o.attributes_settings &&
@@ -416,7 +438,7 @@ module TalonOne
416
438
  # Calculates hash code according to all attributes.
417
439
  # @return [Integer] Hash code
418
440
  def hash
419
- [id, created, modified, account_id, name, description, timezone, currency, case_sensitivity, attributes, limits, campaign_priority, exclusive_campaigns_strategy, enable_cascading_discounts, enable_flattened_cart_items, attributes_settings, sandbox, loyalty_programs].hash
441
+ [id, created, modified, account_id, name, description, timezone, currency, case_sensitivity, attributes, limits, campaign_priority, exclusive_campaigns_strategy, default_discount_scope, enable_cascading_discounts, enable_flattened_cart_items, attributes_settings, sandbox, loyalty_programs].hash
420
442
  end
421
443
 
422
444
  # Builds the object from hash
@@ -183,7 +183,7 @@ module TalonOne
183
183
  def valid?
184
184
  return false if @title.nil?
185
185
  return false if @expires.nil?
186
- platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle"])
186
+ platform_validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "selligent"])
187
187
  return false unless platform_validator.valid?(@platform)
188
188
  return false if @id.nil?
189
189
  return false if @created_by.nil?
@@ -196,7 +196,7 @@ module TalonOne
196
196
  # Custom attribute writer method checking allowed values (enum).
197
197
  # @param [Object] platform Object to be assigned
198
198
  def platform=(platform)
199
- validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle"])
199
+ validator = EnumAttributeValidator.new('String', ["none", "segment", "braze", "mparticle", "selligent"])
200
200
  unless validator.valid?(platform)
201
201
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
202
202
  end
@@ -39,6 +39,9 @@ module TalonOne
39
39
  # An array containing the effects that were applied as a result of this event.
40
40
  attr_accessor :effects
41
41
 
42
+ # An array containing the rule failure reasons which happened during this event.
43
+ attr_accessor :rule_failure_reasons
44
+
42
45
  # Attribute mapping from ruby-style variable name to JSON key.
43
46
  def self.attribute_map
44
47
  {
@@ -49,7 +52,8 @@ module TalonOne
49
52
  :'session_id' => :'sessionId',
50
53
  :'type' => :'type',
51
54
  :'attributes' => :'attributes',
52
- :'effects' => :'effects'
55
+ :'effects' => :'effects',
56
+ :'rule_failure_reasons' => :'ruleFailureReasons'
53
57
  }
54
58
  end
55
59
 
@@ -63,7 +67,8 @@ module TalonOne
63
67
  :'session_id' => :'Integer',
64
68
  :'type' => :'String',
65
69
  :'attributes' => :'Object',
66
- :'effects' => :'Array<Object>'
70
+ :'effects' => :'Array<Object>',
71
+ :'rule_failure_reasons' => :'Array<RuleFailureReason>'
67
72
  }
68
73
  end
69
74
 
@@ -121,6 +126,12 @@ module TalonOne
121
126
  self.effects = value
122
127
  end
123
128
  end
129
+
130
+ if attributes.key?(:'rule_failure_reasons')
131
+ if (value = attributes[:'rule_failure_reasons']).is_a?(Array)
132
+ self.rule_failure_reasons = value
133
+ end
134
+ end
124
135
  end
125
136
 
126
137
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -178,7 +189,8 @@ module TalonOne
178
189
  session_id == o.session_id &&
179
190
  type == o.type &&
180
191
  attributes == o.attributes &&
181
- effects == o.effects
192
+ effects == o.effects &&
193
+ rule_failure_reasons == o.rule_failure_reasons
182
194
  end
183
195
 
184
196
  # @see the `==` method
@@ -190,7 +202,7 @@ module TalonOne
190
202
  # Calculates hash code according to all attributes.
191
203
  # @return [Integer] Hash code
192
204
  def hash
193
- [id, created, application_id, profile_id, session_id, type, attributes, effects].hash
205
+ [id, created, application_id, profile_id, session_id, type, attributes, effects, rule_failure_reasons].hash
194
206
  end
195
207
 
196
208
  # Builds the object from hash
@@ -17,6 +17,9 @@ module TalonOne
17
17
  # A descriptive name for the value to be bound.
18
18
  attr_accessor :name
19
19
 
20
+ # The kind of binding. Possible values are cartItemFilter, subledgerBalance.
21
+ attr_accessor :type
22
+
20
23
  # A Talang expression that will be evaluated and its result attached to the name of the binding.
21
24
  attr_accessor :expression
22
25
 
@@ -24,6 +27,7 @@ module TalonOne
24
27
  def self.attribute_map
25
28
  {
26
29
  :'name' => :'name',
30
+ :'type' => :'type',
27
31
  :'expression' => :'expression'
28
32
  }
29
33
  end
@@ -32,6 +36,7 @@ module TalonOne
32
36
  def self.openapi_types
33
37
  {
34
38
  :'name' => :'String',
39
+ :'type' => :'String',
35
40
  :'expression' => :'Array<Object>'
36
41
  }
37
42
  end
@@ -61,6 +66,10 @@ module TalonOne
61
66
  self.name = attributes[:'name']
62
67
  end
63
68
 
69
+ if attributes.key?(:'type')
70
+ self.type = attributes[:'type']
71
+ end
72
+
64
73
  if attributes.key?(:'expression')
65
74
  if (value = attributes[:'expression']).is_a?(Array)
66
75
  self.expression = value
@@ -97,6 +106,7 @@ module TalonOne
97
106
  return true if self.equal?(o)
98
107
  self.class == o.class &&
99
108
  name == o.name &&
109
+ type == o.type &&
100
110
  expression == o.expression
101
111
  end
102
112
 
@@ -109,7 +119,7 @@ module TalonOne
109
119
  # Calculates hash code according to all attributes.
110
120
  # @return [Integer] Hash code
111
121
  def hash
112
- [name, expression].hash
122
+ [name, type, expression].hash
113
123
  end
114
124
 
115
125
  # Builds the object from hash
@@ -79,6 +79,21 @@ module TalonOne
79
79
  # Total number of coupons created by rules in this campaign.
80
80
  attr_accessor :coupon_creation_count
81
81
 
82
+ # Total number of referrals created by rules in this campaign.
83
+ attr_accessor :referral_creation_count
84
+
85
+ # Total number of loyalty points created by rules in this campaign.
86
+ attr_accessor :created_loyalty_points_count
87
+
88
+ # Total number of loyalty point creation effects triggered by rules in this campaign.
89
+ attr_accessor :created_loyalty_points_effect_count
90
+
91
+ # Total number of loyalty points redeemed by rules in this campaign.
92
+ attr_accessor :redeemed_loyalty_points_count
93
+
94
+ # Total number of loyalty point redemption effects triggered by rules in this campaign.
95
+ attr_accessor :redeemed_loyalty_points_effect_count
96
+
82
97
  # Timestamp of the most recent event received by this campaign.
83
98
  attr_accessor :last_activity
84
99
 
@@ -138,6 +153,11 @@ module TalonOne
138
153
  :'discount_count' => :'discountCount',
139
154
  :'discount_effect_count' => :'discountEffectCount',
140
155
  :'coupon_creation_count' => :'couponCreationCount',
156
+ :'referral_creation_count' => :'referralCreationCount',
157
+ :'created_loyalty_points_count' => :'createdLoyaltyPointsCount',
158
+ :'created_loyalty_points_effect_count' => :'createdLoyaltyPointsEffectCount',
159
+ :'redeemed_loyalty_points_count' => :'redeemedLoyaltyPointsCount',
160
+ :'redeemed_loyalty_points_effect_count' => :'redeemedLoyaltyPointsEffectCount',
141
161
  :'last_activity' => :'lastActivity',
142
162
  :'updated' => :'updated',
143
163
  :'created_by' => :'createdBy',
@@ -167,9 +187,14 @@ module TalonOne
167
187
  :'campaign_groups' => :'Array<Integer>',
168
188
  :'coupon_redemption_count' => :'Integer',
169
189
  :'referral_redemption_count' => :'Integer',
170
- :'discount_count' => :'Integer',
190
+ :'discount_count' => :'Float',
171
191
  :'discount_effect_count' => :'Integer',
172
192
  :'coupon_creation_count' => :'Integer',
193
+ :'referral_creation_count' => :'Integer',
194
+ :'created_loyalty_points_count' => :'Float',
195
+ :'created_loyalty_points_effect_count' => :'Integer',
196
+ :'redeemed_loyalty_points_count' => :'Float',
197
+ :'redeemed_loyalty_points_effect_count' => :'Integer',
173
198
  :'last_activity' => :'DateTime',
174
199
  :'updated' => :'DateTime',
175
200
  :'created_by' => :'String',
@@ -296,6 +321,26 @@ module TalonOne
296
321
  self.coupon_creation_count = attributes[:'coupon_creation_count']
297
322
  end
298
323
 
324
+ if attributes.key?(:'referral_creation_count')
325
+ self.referral_creation_count = attributes[:'referral_creation_count']
326
+ end
327
+
328
+ if attributes.key?(:'created_loyalty_points_count')
329
+ self.created_loyalty_points_count = attributes[:'created_loyalty_points_count']
330
+ end
331
+
332
+ if attributes.key?(:'created_loyalty_points_effect_count')
333
+ self.created_loyalty_points_effect_count = attributes[:'created_loyalty_points_effect_count']
334
+ end
335
+
336
+ if attributes.key?(:'redeemed_loyalty_points_count')
337
+ self.redeemed_loyalty_points_count = attributes[:'redeemed_loyalty_points_count']
338
+ end
339
+
340
+ if attributes.key?(:'redeemed_loyalty_points_effect_count')
341
+ self.redeemed_loyalty_points_effect_count = attributes[:'redeemed_loyalty_points_effect_count']
342
+ end
343
+
299
344
  if attributes.key?(:'last_activity')
300
345
  self.last_activity = attributes[:'last_activity']
301
346
  end
@@ -434,6 +479,11 @@ module TalonOne
434
479
  discount_count == o.discount_count &&
435
480
  discount_effect_count == o.discount_effect_count &&
436
481
  coupon_creation_count == o.coupon_creation_count &&
482
+ referral_creation_count == o.referral_creation_count &&
483
+ created_loyalty_points_count == o.created_loyalty_points_count &&
484
+ created_loyalty_points_effect_count == o.created_loyalty_points_effect_count &&
485
+ redeemed_loyalty_points_count == o.redeemed_loyalty_points_count &&
486
+ redeemed_loyalty_points_effect_count == o.redeemed_loyalty_points_effect_count &&
437
487
  last_activity == o.last_activity &&
438
488
  updated == o.updated &&
439
489
  created_by == o.created_by &&
@@ -449,7 +499,7 @@ module TalonOne
449
499
  # Calculates hash code according to all attributes.
450
500
  # @return [Integer] Hash code
451
501
  def hash
452
- [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, coupon_redemption_count, referral_redemption_count, discount_count, discount_effect_count, coupon_creation_count, last_activity, updated, created_by, updated_by].hash
502
+ [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, coupon_redemption_count, referral_redemption_count, discount_count, discount_effect_count, coupon_creation_count, referral_creation_count, created_loyalty_points_count, created_loyalty_points_effect_count, redeemed_loyalty_points_count, redeemed_loyalty_points_effect_count, last_activity, updated, created_by, updated_by].hash
453
503
  end
454
504
 
455
505
  # Builds the object from hash
@@ -42,8 +42,6 @@ module TalonOne
42
42
  # Arbitrary properties associated with this item
43
43
  attr_accessor :attributes
44
44
 
45
- attr_accessor :adjustment
46
-
47
45
  # Attribute mapping from ruby-style variable name to JSON key.
48
46
  def self.attribute_map
49
47
  {
@@ -57,8 +55,7 @@ module TalonOne
57
55
  :'width' => :'width',
58
56
  :'length' => :'length',
59
57
  :'position' => :'position',
60
- :'attributes' => :'attributes',
61
- :'adjustment' => :'adjustment'
58
+ :'attributes' => :'attributes'
62
59
  }
63
60
  end
64
61
 
@@ -75,8 +72,7 @@ module TalonOne
75
72
  :'width' => :'Float',
76
73
  :'length' => :'Float',
77
74
  :'position' => :'Float',
78
- :'attributes' => :'Object',
79
- :'adjustment' => :'CartItemAdjustment'
75
+ :'attributes' => :'Object'
80
76
  }
81
77
  end
82
78
 
@@ -144,10 +140,6 @@ module TalonOne
144
140
  if attributes.key?(:'attributes')
145
141
  self.attributes = attributes[:'attributes']
146
142
  end
147
-
148
- if attributes.key?(:'adjustment')
149
- self.adjustment = attributes[:'adjustment']
150
- end
151
143
  end
152
144
 
153
145
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -255,8 +247,7 @@ module TalonOne
255
247
  width == o.width &&
256
248
  length == o.length &&
257
249
  position == o.position &&
258
- attributes == o.attributes &&
259
- adjustment == o.adjustment
250
+ attributes == o.attributes
260
251
  end
261
252
 
262
253
  # @see the `==` method
@@ -268,7 +259,7 @@ module TalonOne
268
259
  # Calculates hash code according to all attributes.
269
260
  # @return [Integer] Hash code
270
261
  def hash
271
- [name, sku, quantity, price, category, weight, height, width, length, position, attributes, adjustment].hash
262
+ [name, sku, quantity, price, category, weight, height, width, length, position, attributes].hash
272
263
  end
273
264
 
274
265
  # Builds the object from hash
@@ -24,6 +24,9 @@ module TalonOne
24
24
  # The ID of the account that owns this entity.
25
25
  attr_accessor :user_id
26
26
 
27
+ # ID of application associated with change
28
+ attr_accessor :application_id
29
+
27
30
  # API endpoint on which the change was initiated.
28
31
  attr_accessor :entity
29
32
 
@@ -39,6 +42,7 @@ module TalonOne
39
42
  :'id' => :'id',
40
43
  :'created' => :'created',
41
44
  :'user_id' => :'userId',
45
+ :'application_id' => :'applicationId',
42
46
  :'entity' => :'entity',
43
47
  :'old' => :'old',
44
48
  :'new' => :'new'
@@ -51,6 +55,7 @@ module TalonOne
51
55
  :'id' => :'Integer',
52
56
  :'created' => :'DateTime',
53
57
  :'user_id' => :'Integer',
58
+ :'application_id' => :'Integer',
54
59
  :'entity' => :'String',
55
60
  :'old' => :'Object',
56
61
  :'new' => :'Object'
@@ -90,6 +95,10 @@ module TalonOne
90
95
  self.user_id = attributes[:'user_id']
91
96
  end
92
97
 
98
+ if attributes.key?(:'application_id')
99
+ self.application_id = attributes[:'application_id']
100
+ end
101
+
93
102
  if attributes.key?(:'entity')
94
103
  self.entity = attributes[:'entity']
95
104
  end
@@ -144,6 +153,7 @@ module TalonOne
144
153
  id == o.id &&
145
154
  created == o.created &&
146
155
  user_id == o.user_id &&
156
+ application_id == o.application_id &&
147
157
  entity == o.entity &&
148
158
  old == o.old &&
149
159
  new == o.new
@@ -158,7 +168,7 @@ module TalonOne
158
168
  # Calculates hash code according to all attributes.
159
169
  # @return [Integer] Hash code
160
170
  def hash
161
- [id, created, user_id, entity, old, new].hash
171
+ [id, created, user_id, application_id, entity, old, new].hash
162
172
  end
163
173
 
164
174
  # Builds the object from hash