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
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **limits** | [**Array<LimitConfig>**](LimitConfig.md) | Default limits for campaigns created in this application | [optional]
14
14
  **campaign_priority** | **String** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" | [optional]
15
15
  **exclusive_campaigns_strategy** | **String** | 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\" | [optional]
16
+ **default_discount_scope** | **String** | The default scope to apply \"setDiscount\" effects on if no scope was provided with the effect. | [optional]
16
17
  **enable_cascading_discounts** | **Boolean** | Flag indicating if discounts should cascade for this application | [optional]
17
18
  **enable_flattened_cart_items** | **Boolean** | Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one | [optional]
18
19
  **attributes_settings** | [**AttributesSettings**](AttributesSettings.md) | | [optional]
@@ -33,6 +34,7 @@ instance = TalonOne::NewApplication.new(name: null,
33
34
  limits: null,
34
35
  campaign_priority: null,
35
36
  exclusive_campaigns_strategy: null,
37
+ default_discount_scope: null,
36
38
  enable_cascading_discounts: null,
37
39
  enable_flattened_cart_items: null,
38
40
  attributes_settings: null,
data/docs/NewCoupons.md CHANGED
@@ -8,12 +8,12 @@ Name | Type | Description | Notes
8
8
  **discount_limit** | **Float** | The amount of discounts that can be given with this coupon code. | [optional]
9
9
  **start_date** | **DateTime** | Timestamp at which point the coupon becomes valid. | [optional]
10
10
  **expiry_date** | **DateTime** | Expiry date of the coupon. Coupon never expires if this is omitted, zero, or negative. | [optional]
11
- **valid_characters** | **Array<String>** | Set of characters to be used when generating random part of code. Defaults to [A-Z, 0-9] (in terms of RegExp). |
12
- **coupon_pattern** | **String** | The pattern that will be used to generate coupon codes. The character `#` acts as a placeholder and will be replaced by a random character from the `validCharacters` set. |
13
11
  **number_of_coupons** | **Integer** | The number of new coupon codes to generate for the campaign. Must be at least 1. |
14
12
  **unique_prefix** | **String** | A unique prefix to prepend to all generated coupons. | [optional]
15
13
  **attributes** | [**Object**](.md) | Arbitrary properties associated with this item | [optional]
16
14
  **recipient_integration_id** | **String** | The integration ID for this coupon's beneficiary's profile | [optional]
15
+ **valid_characters** | **Array<String>** | Set of characters to be used when generating random part of code. Defaults to [A-Z, 0-9] (in terms of RegExp). | [optional]
16
+ **coupon_pattern** | **String** | The pattern that will be used to generate coupon codes. The character `#` acts as a placeholder and will be replaced by a random character from the `validCharacters` set. | [optional]
17
17
 
18
18
  ## Code Sample
19
19
 
@@ -24,12 +24,12 @@ instance = TalonOne::NewCoupons.new(usage_limit: null,
24
24
  discount_limit: null,
25
25
  start_date: null,
26
26
  expiry_date: null,
27
- valid_characters: null,
28
- coupon_pattern: null,
29
27
  number_of_coupons: null,
30
28
  unique_prefix: null,
31
29
  attributes: null,
32
- recipient_integration_id: null)
30
+ recipient_integration_id: null,
31
+ valid_characters: null,
32
+ coupon_pattern: null)
33
33
  ```
34
34
 
35
35
 
@@ -0,0 +1,31 @@
1
+ # TalonOne::NewCouponsForMultipleRecipients
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **usage_limit** | **Integer** | The number of times a coupon code can be redeemed. This can be set to 0 for no limit, but any campaign usage limits will still apply. |
8
+ **discount_limit** | **Float** | The amount of discounts that can be given with this coupon code. | [optional]
9
+ **start_date** | **DateTime** | Timestamp at which point the coupon becomes valid. | [optional]
10
+ **expiry_date** | **DateTime** | Expiry date of the coupon. Coupon never expires if this is omitted, zero, or negative. | [optional]
11
+ **attributes** | [**Object**](.md) | Arbitrary properties associated with this item | [optional]
12
+ **recipients_integration_ids** | **Array<String>** | The integration IDs for recipients |
13
+ **valid_characters** | **Array<String>** | Set of characters to be used when generating random part of code. Defaults to [A-Z, 0-9] (in terms of RegExp). | [optional]
14
+ **coupon_pattern** | **String** | The pattern that will be used to generate coupon codes. The character `#` acts as a placeholder and will be replaced by a random character from the `validCharacters` set. | [optional]
15
+
16
+ ## Code Sample
17
+
18
+ ```ruby
19
+ require 'TalonOne'
20
+
21
+ instance = TalonOne::NewCouponsForMultipleRecipients.new(usage_limit: null,
22
+ discount_limit: null,
23
+ start_date: null,
24
+ expiry_date: null,
25
+ attributes: null,
26
+ recipients_integration_ids: null,
27
+ valid_characters: null,
28
+ coupon_pattern: null)
29
+ ```
30
+
31
+
@@ -0,0 +1,19 @@
1
+ # TalonOne::ProfileAudiencesChanges
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **adds** | **Array<Integer>** | The IDs of the audiences for the customer to join. |
8
+ **deletes** | **Array<Integer>** | The IDs of the audiences for the customer to leave. |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'TalonOne'
14
+
15
+ instance = TalonOne::ProfileAudiencesChanges.new(adds: null,
16
+ deletes: null)
17
+ ```
18
+
19
+
@@ -6,6 +6,9 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **value** | **String** | The coupon code that was rejected |
8
8
  **rejection_reason** | **String** | The reason why this coupon was rejected |
9
+ **condition_index** | **Integer** | The index of the condition that caused the rejection of the coupon | [optional]
10
+ **effect_index** | **Integer** | The index of the effect that caused the rejection of the coupon | [optional]
11
+ **details** | **String** | More details about the failure | [optional]
9
12
 
10
13
  ## Code Sample
11
14
 
@@ -13,7 +16,10 @@ Name | Type | Description | Notes
13
16
  require 'TalonOne'
14
17
 
15
18
  instance = TalonOne::RejectCouponEffectProps.new(value: null,
16
- rejection_reason: null)
19
+ rejection_reason: null,
20
+ condition_index: null,
21
+ effect_index: null,
22
+ details: null)
17
23
  ```
18
24
 
19
25
 
@@ -6,6 +6,9 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **value** | **String** | The referral code that was rejected |
8
8
  **rejection_reason** | **String** | The reason why this referral code was rejected |
9
+ **condition_index** | **Integer** | The index of the condition that caused the rejection of the referral | [optional]
10
+ **effect_index** | **Integer** | The index of the effect that caused the rejection of the referral | [optional]
11
+ **details** | **String** | More details about the failure | [optional]
9
12
 
10
13
  ## Code Sample
11
14
 
@@ -13,7 +16,10 @@ Name | Type | Description | Notes
13
16
  require 'TalonOne'
14
17
 
15
18
  instance = TalonOne::RejectReferralEffectProps.new(value: null,
16
- rejection_reason: null)
19
+ rejection_reason: null,
20
+ condition_index: null,
21
+ effect_index: null,
22
+ details: null)
17
23
  ```
18
24
 
19
25
 
@@ -0,0 +1,25 @@
1
+ # TalonOne::RollbackAddedLoyaltyPointsEffectProps
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **program_id** | **Integer** | The ID of the loyalty program where the points were originally added |
8
+ **sub_ledger_id** | **String** | The ID of the subledger within the loyalty program where these points were originally added |
9
+ **value** | **Float** | The amount of points that were rolled back |
10
+ **recipient_integration_id** | **String** | The user for whom these points were originally added |
11
+ **transaction_uuid** | **String** | The identifier of 'deduction' entry added to the ledger as the `addLoyaltyPoints` effect is rolled back. |
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'TalonOne'
17
+
18
+ instance = TalonOne::RollbackAddedLoyaltyPointsEffectProps.new(program_id: null,
19
+ sub_ledger_id: null,
20
+ value: null,
21
+ recipient_integration_id: null,
22
+ transaction_uuid: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,29 @@
1
+ # TalonOne::RollbackDeductedLoyaltyPointsEffectProps
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **program_id** | **Integer** | The ID of the loyalty program where these points were reimbursed |
8
+ **sub_ledger_id** | **String** | The ID of the subledger within the loyalty program where these points were reimbursed |
9
+ **value** | **Float** | The amount of reimbursed points that were added |
10
+ **recipient_integration_id** | **String** | The user for whom these points were reimbursed |
11
+ **start_date** | **DateTime** | Date after which the reimbursed points will be valid | [optional]
12
+ **expiry_date** | **DateTime** | Date after which the reimbursed points will expire | [optional]
13
+ **transaction_uuid** | **String** | The identifier of 'addition' entries added to the ledger as the `deductLoyaltyPoints` effect is rolled back |
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'TalonOne'
19
+
20
+ instance = TalonOne::RollbackDeductedLoyaltyPointsEffectProps.new(program_id: null,
21
+ sub_ledger_id: null,
22
+ value: null,
23
+ recipient_integration_id: null,
24
+ start_date: null,
25
+ expiry_date: null,
26
+ transaction_uuid: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,17 @@
1
+ # TalonOne::RollbackReferralEffectProps
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **value** | **String** | The referral code whose usage has been rolled back |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'TalonOne'
13
+
14
+ instance = TalonOne::RollbackReferralEffectProps.new(value: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,39 @@
1
+ # TalonOne::RuleFailureReason
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **campaign_id** | **Integer** | The ID of the campaign that contains the rule that failed |
8
+ **campaign_name** | **String** | The name of the campaign that contains the rule that failed |
9
+ **ruleset_id** | **Integer** | The ID of the ruleset that contains the rule that failed |
10
+ **coupon_id** | **Integer** | The ID of the coupon that was being evaluated at the time of the rule failure | [optional]
11
+ **coupon_value** | **String** | The value of the coupon that was being evaluated at the time of the rule failure | [optional]
12
+ **referral_id** | **Integer** | The ID of the referral that was being evaluated at the time of the rule failure | [optional]
13
+ **referral_value** | **String** | The value of the referral that was being evaluated at the time of the rule failure | [optional]
14
+ **rule_index** | **Integer** | The index of the rule that failed within the ruleset |
15
+ **rule_name** | **String** | The name of the rule that failed within the ruleset |
16
+ **condition_index** | **Integer** | The index of the condition that failed | [optional]
17
+ **effect_index** | **Integer** | The index of the effect that failed | [optional]
18
+ **details** | **String** | More details about the failure | [optional]
19
+
20
+ ## Code Sample
21
+
22
+ ```ruby
23
+ require 'TalonOne'
24
+
25
+ instance = TalonOne::RuleFailureReason.new(campaign_id: null,
26
+ campaign_name: null,
27
+ ruleset_id: null,
28
+ coupon_id: null,
29
+ coupon_value: null,
30
+ referral_id: null,
31
+ referral_value: null,
32
+ rule_index: null,
33
+ rule_name: null,
34
+ condition_index: null,
35
+ effect_index: null,
36
+ details: null)
37
+ ```
38
+
39
+
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **limits** | [**Array<LimitConfig>**](LimitConfig.md) | Default limits for campaigns created in this application | [optional]
14
14
  **campaign_priority** | **String** | Default priority for campaigns created in this application, can be one of (universal, stackable, exclusive). If no value is provided, this is set to \"universal\" | [optional]
15
15
  **exclusive_campaigns_strategy** | **String** | 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\" | [optional]
16
+ **default_discount_scope** | **String** | The default scope to apply \"setDiscount\" effects on if no scope was provided with the effect. | [optional]
16
17
  **enable_cascading_discounts** | **Boolean** | Flag indicating if discounts should cascade for this application | [optional]
17
18
  **enable_flattened_cart_items** | **Boolean** | Flag indicating if cart items of quantity larger than one should be separated into different items of quantity one | [optional]
18
19
  **attributes_settings** | [**AttributesSettings**](AttributesSettings.md) | | [optional]
@@ -32,6 +33,7 @@ instance = TalonOne::UpdateApplication.new(name: null,
32
33
  limits: null,
33
34
  campaign_priority: null,
34
35
  exclusive_campaigns_strategy: null,
36
+ default_discount_scope: null,
35
37
  enable_cascading_discounts: null,
36
38
  enable_flattened_cart_items: null,
37
39
  attributes_settings: null,
data/lib/talon_one.rb CHANGED
@@ -58,7 +58,6 @@ require 'talon_one/models/campaign_set_branch_node'
58
58
  require 'talon_one/models/campaign_set_leaf_node'
59
59
  require 'talon_one/models/campaign_set_node'
60
60
  require 'talon_one/models/cart_item'
61
- require 'talon_one/models/cart_item_adjustment'
62
61
  require 'talon_one/models/change'
63
62
  require 'talon_one/models/change_profile_password'
64
63
  require 'talon_one/models/code_generator_settings'
@@ -100,7 +99,6 @@ require 'talon_one/models/feed_notification'
100
99
  require 'talon_one/models/func_arg_def'
101
100
  require 'talon_one/models/function_def'
102
101
  require 'talon_one/models/import'
103
- require 'talon_one/models/import_coupons'
104
102
  require 'talon_one/models/inline_response200'
105
103
  require 'talon_one/models/inline_response2001'
106
104
  require 'talon_one/models/inline_response20010'
@@ -170,13 +168,13 @@ require 'talon_one/models/new_campaign'
170
168
  require 'talon_one/models/new_campaign_group'
171
169
  require 'talon_one/models/new_campaign_set'
172
170
  require 'talon_one/models/new_coupons'
171
+ require 'talon_one/models/new_coupons_for_multiple_recipients'
173
172
  require 'talon_one/models/new_customer_profile'
174
173
  require 'talon_one/models/new_customer_session'
175
174
  require 'talon_one/models/new_customer_session_v2'
176
175
  require 'talon_one/models/new_event'
177
176
  require 'talon_one/models/new_event_type'
178
177
  require 'talon_one/models/new_feature_flags'
179
- require 'talon_one/models/new_import'
180
178
  require 'talon_one/models/new_invitation'
181
179
  require 'talon_one/models/new_invite_email'
182
180
  require 'talon_one/models/new_loyalty_program'
@@ -190,6 +188,7 @@ require 'talon_one/models/new_template_def'
190
188
  require 'talon_one/models/new_user'
191
189
  require 'talon_one/models/new_webhook'
192
190
  require 'talon_one/models/notification'
191
+ require 'talon_one/models/profile_audiences_changes'
193
192
  require 'talon_one/models/redeem_referral_effect_props'
194
193
  require 'talon_one/models/referral'
195
194
  require 'talon_one/models/referral_created_effect_props'
@@ -199,9 +198,13 @@ require 'talon_one/models/reject_referral_effect_props'
199
198
  require 'talon_one/models/role'
200
199
  require 'talon_one/models/role_assign'
201
200
  require 'talon_one/models/role_membership'
201
+ require 'talon_one/models/rollback_added_loyalty_points_effect_props'
202
202
  require 'talon_one/models/rollback_coupon_effect_props'
203
+ require 'talon_one/models/rollback_deducted_loyalty_points_effect_props'
203
204
  require 'talon_one/models/rollback_discount_effect_props'
205
+ require 'talon_one/models/rollback_referral_effect_props'
204
206
  require 'talon_one/models/rule'
207
+ require 'talon_one/models/rule_failure_reason'
205
208
  require 'talon_one/models/ruleset'
206
209
  require 'talon_one/models/saml_connection'
207
210
  require 'talon_one/models/saml_connection_metadata'
@@ -221,7 +221,7 @@ module TalonOne
221
221
  return data, status_code, headers
222
222
  end
223
223
 
224
- # Delete the personal data of a customer.
224
+ # Delete the personal data of a customer
225
225
  # Delete all attributes on the customer profile and on entities that reference that customer profile.
226
226
  # @param integration_id [String] The custom identifier for this profile, must be unique within the account.
227
227
  # @param [Hash] opts the optional parameters
@@ -231,7 +231,7 @@ module TalonOne
231
231
  nil
232
232
  end
233
233
 
234
- # Delete the personal data of a customer.
234
+ # Delete the personal data of a customer
235
235
  # Delete all attributes on the customer profile and on entities that reference that customer profile.
236
236
  # @param integration_id [String] The custom identifier for this profile, must be unique within the account.
237
237
  # @param [Hash] opts the optional parameters
@@ -281,7 +281,7 @@ module TalonOne
281
281
  return data, status_code, headers
282
282
  end
283
283
 
284
- # Get an inventory of all data associated with a specific customer profile.
284
+ # Get an inventory of all data associated with a specific customer profile
285
285
  # Get information regarding entities referencing this customer profile's integrationId. Currently we support customer profile information, referral codes and reserved coupons. In the future, this will be expanded with loyalty points.
286
286
  # @param integration_id [String] The custom identifier for this profile, must be unique within the account.
287
287
  # @param [Hash] opts the optional parameters
@@ -295,7 +295,7 @@ module TalonOne
295
295
  data
296
296
  end
297
297
 
298
- # Get an inventory of all data associated with a specific customer profile.
298
+ # Get an inventory of all data associated with a specific customer profile
299
299
  # Get information regarding entities referencing this customer profile's integrationId. Currently we support customer profile information, referral codes and reserved coupons. In the future, this will be expanded with loyalty points.
300
300
  # @param integration_id [String] The custom identifier for this profile, must be unique within the account.
301
301
  # @param [Hash] opts the optional parameters
@@ -421,7 +421,7 @@ module TalonOne
421
421
  # Records an arbitrary event in a customer session. For example, an integration might record an event when a user updates their payment information. The `sessionId` body parameter is required, an event is always part of a session. Much like updating a customer session, if either the profile or the session do not exist, a new empty one will be created. Note that if the specified session already exists, it must belong to the same `profileId` or an error will be returned. As with customer sessions, you can use an empty string for `profileId` to indicate that this is an anonymous session. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place.
422
422
  # @param body [NewEvent]
423
423
  # @param [Hash] opts the optional parameters
424
- # @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true').
424
+ # @option opts [Boolean] :dry Indicates whether to skip persisting the changes or not (Will not persist if set to 'true').
425
425
  # @return [IntegrationState]
426
426
  def track_event(body, opts = {})
427
427
  data, _status_code, _headers = track_event_with_http_info(body, opts)
@@ -432,7 +432,7 @@ module TalonOne
432
432
  # Records an arbitrary event in a customer session. For example, an integration might record an event when a user updates their payment information. The `sessionId` body parameter is required, an event is always part of a session. Much like updating a customer session, if either the profile or the session do not exist, a new empty one will be created. Note that if the specified session already exists, it must belong to the same `profileId` or an error will be returned. As with customer sessions, you can use an empty string for `profileId` to indicate that this is an anonymous session. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place.
433
433
  # @param body [NewEvent]
434
434
  # @param [Hash] opts the optional parameters
435
- # @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to 'true').
435
+ # @option opts [Boolean] :dry Indicates whether to skip persisting the changes or not (Will not persist if set to 'true').
436
436
  # @return [Array<(IntegrationState, Integer, Hash)>] IntegrationState data, response status code and response headers
437
437
  def track_event_with_http_info(body, opts = {})
438
438
  if @api_client.config.debugging
@@ -485,11 +485,11 @@ module TalonOne
485
485
  end
486
486
 
487
487
  # Update a Customer Profile V1
488
- # ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons
488
+ # ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Profile](https://developers.talon.one/Getting-Started/entities#customer-profile). This profile information can then be matched and/or updated by campaign [Rules][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons
489
489
  # @param integration_id [String] The custom identifier for this profile, must be unique within the account.
490
490
  # @param body [NewCustomerProfile]
491
491
  # @param [Hash] opts the optional parameters
492
- # @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
492
+ # @option opts [Boolean] :dry Indicates whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
493
493
  # @return [IntegrationState]
494
494
  def update_customer_profile(integration_id, body, opts = {})
495
495
  data, _status_code, _headers = update_customer_profile_with_http_info(integration_id, body, opts)
@@ -497,11 +497,11 @@ module TalonOne
497
497
  end
498
498
 
499
499
  # Update a Customer Profile V1
500
- # ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Profile][]. This profile information can then be matched and/or updated by campaign [Rules][]. The &#x60;integrationId&#x60; may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the &#x60;integrationId&#x60;. It is vital that this ID **not** change over time, so **don&#39;t** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons
500
+ # ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Profile](https://developers.talon.one/Getting-Started/entities#customer-profile). This profile information can then be matched and/or updated by campaign [Rules][]. The &#x60;integrationId&#x60; may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the &#x60;integrationId&#x60;. It is vital that this ID **not** change over time, so **don&#39;t** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. [Customer Profile]: /Getting-Started/entities#customer-profile [Rules]: /Getting-Started/entities#campaigns-rulesets-and-coupons
501
501
  # @param integration_id [String] The custom identifier for this profile, must be unique within the account.
502
502
  # @param body [NewCustomerProfile]
503
503
  # @param [Hash] opts the optional parameters
504
- # @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
504
+ # @option opts [Boolean] :dry Indicates whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
505
505
  # @return [Array<(IntegrationState, Integer, Hash)>] IntegrationState data, response status code and response headers
506
506
  def update_customer_profile_with_http_info(integration_id, body, opts = {})
507
507
  if @api_client.config.debugging
@@ -620,12 +620,12 @@ module TalonOne
620
620
  end
621
621
 
622
622
  # Update a Customer Profile
623
- # Update (or create) a [Customer Profile][]. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profile]: /Getting-Started/entities#customer-profile
624
- # @param integration_id [String] The custom identifier for this profile, must be unique within the account.
623
+ # Update (or create) a [Customer Profile](https://developers.talon.one/Getting-Started/entities#customer-profile). The `integrationId` must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Updating a customer profile returns a response with the requested integration state. If `runRuleEngine` is set to `true`, the response includes: - The effects generated by the triggered campaigns. - The created coupons and referral objects. - Any entity that was requested in the `responseContent` request parameter.
624
+ # @param integration_id [String] The custom identifier for this profile. Must be unique within the account.
625
625
  # @param body [CustomerProfileIntegrationRequestV2]
626
626
  # @param [Hash] opts the optional parameters
627
- # @option opts [Boolean] :run_rule_engine Flag to indicate whether to run the rule engine (Defaults to false).
628
- # @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;. Only used when &#39;runRuleEngine&#39; is set to &#39;true&#39;).
627
+ # @option opts [Boolean] :run_rule_engine Indicates whether to run the rule engine. (default to false)
628
+ # @option opts [Boolean] :dry Indicates whether to persist the changes. Changes are persisted with &#x60;true&#x60;. Only used when &#x60;runRuleEngine&#x60; is set to &#x60;true&#x60;.
629
629
  # @return [IntegrationStateV2]
630
630
  def update_customer_profile_v2(integration_id, body, opts = {})
631
631
  data, _status_code, _headers = update_customer_profile_v2_with_http_info(integration_id, body, opts)
@@ -633,12 +633,12 @@ module TalonOne
633
633
  end
634
634
 
635
635
  # Update a Customer Profile
636
- # Update (or create) a [Customer Profile][]. The &#x60;integrationId&#x60; may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the &#x60;integrationId&#x60;. It is vital that this ID **not** change over time, so **don&#39;t** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profile]: /Getting-Started/entities#customer-profile
637
- # @param integration_id [String] The custom identifier for this profile, must be unique within the account.
636
+ # Update (or create) a [Customer Profile](https://developers.talon.one/Getting-Started/entities#customer-profile). The &#x60;integrationId&#x60; must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Updating a customer profile returns a response with the requested integration state. If &#x60;runRuleEngine&#x60; is set to &#x60;true&#x60;, the response includes: - The effects generated by the triggered campaigns. - The created coupons and referral objects. - Any entity that was requested in the &#x60;responseContent&#x60; request parameter.
637
+ # @param integration_id [String] The custom identifier for this profile. Must be unique within the account.
638
638
  # @param body [CustomerProfileIntegrationRequestV2]
639
639
  # @param [Hash] opts the optional parameters
640
- # @option opts [Boolean] :run_rule_engine Flag to indicate whether to run the rule engine (Defaults to false).
641
- # @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;. Only used when &#39;runRuleEngine&#39; is set to &#39;true&#39;).
640
+ # @option opts [Boolean] :run_rule_engine Indicates whether to run the rule engine.
641
+ # @option opts [Boolean] :dry Indicates whether to persist the changes. Changes are persisted with &#x60;true&#x60;. Only used when &#x60;runRuleEngine&#x60; is set to &#x60;true&#x60;.
642
642
  # @return [Array<(IntegrationStateV2, Integer, Hash)>] IntegrationStateV2 data, response status code and response headers
643
643
  def update_customer_profile_v2_with_http_info(integration_id, body, opts = {})
644
644
  if @api_client.config.debugging
@@ -696,10 +696,10 @@ module TalonOne
696
696
  end
697
697
 
698
698
  # Update multiple Customer Profiles
699
- # Update (or create) up to 1000 [Customer Profiles][] in 1 request. The `integrationId` may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the `integrationId`. It is vital that this ID **not** change over time, so **don't** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profiles]: /Getting-Started/entities#customer-profile
699
+ # Update (or create) up to 1000 [Customer Profiles](https://developers.talon.one/Getting-Started/entities#customer-profile) in 1 request. The `integrationId` must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. A customer profile [can be linked to one or more sessions](https://developers.talon.one/Integration-API/API-Reference#updateCustomerSessionV2).
700
700
  # @param body [MultipleCustomerProfileIntegrationRequest]
701
701
  # @param [Hash] opts the optional parameters
702
- # @option opts [String] :silent If set to &#39;yes&#39;, response will be an empty 204, otherwise a list of the IntegrationStateV2 generated.
702
+ # @option opts [String] :silent If set to &#x60;yes&#x60;, response will be an empty 204, otherwise a list of integration states will be generated (up to 1000).
703
703
  # @return [MultipleCustomerProfileIntegrationResponseV2]
704
704
  def update_customer_profiles_v2(body, opts = {})
705
705
  data, _status_code, _headers = update_customer_profiles_v2_with_http_info(body, opts)
@@ -707,10 +707,10 @@ module TalonOne
707
707
  end
708
708
 
709
709
  # Update multiple Customer Profiles
710
- # Update (or create) up to 1000 [Customer Profiles][] in 1 request. The &#x60;integrationId&#x60; may be any identifier that will remain stable for the customer. For example, you might use a database ID, an email, or a phone number as the &#x60;integrationId&#x60;. It is vital that this ID **not** change over time, so **don&#39;t** use any identifier that the customer can update themselves. E.g. if your application allows a customer to update their e-mail address, you should instead use a database ID. [Customer Profiles]: /Getting-Started/entities#customer-profile
710
+ # Update (or create) up to 1000 [Customer Profiles](https://developers.talon.one/Getting-Started/entities#customer-profile) in 1 request. The &#x60;integrationId&#x60; must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. A customer profile [can be linked to one or more sessions](https://developers.talon.one/Integration-API/API-Reference#updateCustomerSessionV2).
711
711
  # @param body [MultipleCustomerProfileIntegrationRequest]
712
712
  # @param [Hash] opts the optional parameters
713
- # @option opts [String] :silent If set to &#39;yes&#39;, response will be an empty 204, otherwise a list of the IntegrationStateV2 generated.
713
+ # @option opts [String] :silent If set to &#x60;yes&#x60;, response will be an empty 204, otherwise a list of integration states will be generated (up to 1000).
714
714
  # @return [Array<(MultipleCustomerProfileIntegrationResponseV2, Integer, Hash)>] MultipleCustomerProfileIntegrationResponseV2 data, response status code and response headers
715
715
  def update_customer_profiles_v2_with_http_info(body, opts = {})
716
716
  if @api_client.config.debugging
@@ -763,11 +763,11 @@ module TalonOne
763
763
  end
764
764
 
765
765
  # Update a Customer Session V1
766
- # ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session
766
+ # ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, migrate to [API V2.0](https://developers.talon.one/Getting-Started/APIV2). Update (or create) a [Customer Session](https://developers.talon.one/Getting-Started/entities#customer-session). For example, use this endpoint to represent which items are in the customer's cart. The Talon.One platform supports multiple simultaneous sessions for the same profile. If you have multiple ways of accessing the same application you can either: - Track multiple independent sessions or, - Use the same session across all of them. You should share sessions when application access points share other state, such as the user's cart. If two points of access to the application have independent states, for example a user can have different items in their cart across the two) they should use independent customer session ID's. To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. To track an anonymous session use the empty string (`\"\"`) as the `profileId`. **Note:** You do **not** have to create a customer profile first. If the specified profile does not exist, an empty profile is created automatically. Updating a customer profile returns a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated.
767
767
  # @param customer_session_id [String] The custom identifier for this session, must be unique within the account.
768
768
  # @param body [NewCustomerSession]
769
769
  # @param [Hash] opts the optional parameters
770
- # @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
770
+ # @option opts [Boolean] :dry Indicates whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
771
771
  # @return [IntegrationState]
772
772
  def update_customer_session(customer_session_id, body, opts = {})
773
773
  data, _status_code, _headers = update_customer_session_with_http_info(customer_session_id, body, opts)
@@ -775,11 +775,11 @@ module TalonOne
775
775
  end
776
776
 
777
777
  # Update a Customer Session V1
778
- # ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, please migrate to [API V2.0](/Getting-Started/APIV2). Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID&#39;s. The &#x60;profileId&#x60; parameter in the request body should correspond to an &#x60;integrationId&#x60; for a customer profile, to track an anonymous session use the empty string (&#x60;\&quot;\&quot;&#x60;) as the &#x60;profileId&#x60;. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session
778
+ # ⚠️ Deprecation Notice: Support for requests to this endpoint will end on 15.07.2021. We will not remove the endpoint, and it will still be accessible for you to use. For new features support, migrate to [API V2.0](https://developers.talon.one/Getting-Started/APIV2). Update (or create) a [Customer Session](https://developers.talon.one/Getting-Started/entities#customer-session). For example, use this endpoint to represent which items are in the customer&#39;s cart. The Talon.One platform supports multiple simultaneous sessions for the same profile. If you have multiple ways of accessing the same application you can either: - Track multiple independent sessions or, - Use the same session across all of them. You should share sessions when application access points share other state, such as the user&#39;s cart. If two points of access to the application have independent states, for example a user can have different items in their cart across the two) they should use independent customer session ID&#39;s. To link a session to a customer profile, set the &#x60;profileId&#x60; parameter in the request body to a customer profile&#39;s &#x60;integrationId&#x60;. To track an anonymous session use the empty string (&#x60;\&quot;\&quot;&#x60;) as the &#x60;profileId&#x60;. **Note:** You do **not** have to create a customer profile first. If the specified profile does not exist, an empty profile is created automatically. Updating a customer profile returns a response with the full integration state. This includes the current state of the customer profile, the customer session, the event that was recorded, and an array of effects that took place. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated.
779
779
  # @param customer_session_id [String] The custom identifier for this session, must be unique within the account.
780
780
  # @param body [NewCustomerSession]
781
781
  # @param [Hash] opts the optional parameters
782
- # @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
782
+ # @option opts [Boolean] :dry Indicates whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
783
783
  # @return [Array<(IntegrationState, Integer, Hash)>] IntegrationState data, response status code and response headers
784
784
  def update_customer_session_with_http_info(customer_session_id, body, opts = {})
785
785
  if @api_client.config.debugging
@@ -836,11 +836,11 @@ module TalonOne
836
836
  end
837
837
 
838
838
  # Update a Customer Session
839
- # Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID's. The `profileId` parameter in the request body should correspond to an `integrationId` for a customer profile, to track an anonymous session use the empty string (`\"\"`) as the `profileId`. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the requested integration state. This includes the effects that were generated due to triggered campaigns, the created coupons and referral objects, as well as any entity that was requested in the request parameter \"responseContent\". The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session
839
+ # Update (or create) a [Customer Session](https://developers.talon.one/Getting-Started/entities#customer-session). For example, use this endpoint to represent which items are in the customer's cart. The Talon.One platform supports multiple simultaneous sessions for the same profile. If you have multiple ways of accessing the same application you can either: - Track multiple independent sessions or, - Use the same session across all of them. You should share sessions when application access points share other state, such as the user's cart. If two points of access to the application have independent states, for example a user can have different items in their cart across the two) they should use independent customer session ID's. To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. To track an anonymous session use the empty string (`\"\"`) as the `profileId`. **Note:** You do **not** have to create a customer profile first. If the specified profile does not exist, an empty profile is created automatically. Updating a customer session returns a response with the requested integration state. If `runRuleEngine` is set to `true`, the response includes: - The effects generated by the triggered campaigns. - The created coupons and referral objects. - Any entity that was requested in the `responseContent` request parameter. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated.
840
840
  # @param customer_session_id [String] The custom identifier for this session, must be unique within the account.
841
841
  # @param body [IntegrationRequest]
842
842
  # @param [Hash] opts the optional parameters
843
- # @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
843
+ # @option opts [Boolean] :dry Indicates whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
844
844
  # @return [IntegrationStateV2]
845
845
  def update_customer_session_v2(customer_session_id, body, opts = {})
846
846
  data, _status_code, _headers = update_customer_session_v2_with_http_info(customer_session_id, body, opts)
@@ -848,11 +848,11 @@ module TalonOne
848
848
  end
849
849
 
850
850
  # Update a Customer Session
851
- # Update (or create) a [Customer Session][]. For example, the items in a customers cart are part of a session. The Talon.One platform supports multiple simultaneous sessions for the same profile, so if you have multiple ways of accessing the same application you have the option of either tracking multiple independent sessions or using the same session across all of them. You should share sessions when application access points share other state, such as the users cart. If two points of access to the application have independent state (e.g. a user can have different items in their cart across the two) they should use independent customer session ID&#39;s. The &#x60;profileId&#x60; parameter in the request body should correspond to an &#x60;integrationId&#x60; for a customer profile, to track an anonymous session use the empty string (&#x60;\&quot;\&quot;&#x60;) as the &#x60;profileId&#x60;. Note that you do **not** need to create a customer profile first: if the specified profile does not yet exist, an empty profile will be created automatically. Updating a customer profile will return a response with the requested integration state. This includes the effects that were generated due to triggered campaigns, the created coupons and referral objects, as well as any entity that was requested in the request parameter \&quot;responseContent\&quot;. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated. [Customer Session]: /Getting-Started/entities#customer-session
851
+ # Update (or create) a [Customer Session](https://developers.talon.one/Getting-Started/entities#customer-session). For example, use this endpoint to represent which items are in the customer&#39;s cart. The Talon.One platform supports multiple simultaneous sessions for the same profile. If you have multiple ways of accessing the same application you can either: - Track multiple independent sessions or, - Use the same session across all of them. You should share sessions when application access points share other state, such as the user&#39;s cart. If two points of access to the application have independent states, for example a user can have different items in their cart across the two) they should use independent customer session ID&#39;s. To link a session to a customer profile, set the &#x60;profileId&#x60; parameter in the request body to a customer profile&#39;s &#x60;integrationId&#x60;. To track an anonymous session use the empty string (&#x60;\&quot;\&quot;&#x60;) as the &#x60;profileId&#x60;. **Note:** You do **not** have to create a customer profile first. If the specified profile does not exist, an empty profile is created automatically. Updating a customer session returns a response with the requested integration state. If &#x60;runRuleEngine&#x60; is set to &#x60;true&#x60;, the response includes: - The effects generated by the triggered campaigns. - The created coupons and referral objects. - Any entity that was requested in the &#x60;responseContent&#x60; request parameter. The currency for the session and the cart items in the session is the same as that of the application with which the session is associated.
852
852
  # @param customer_session_id [String] The custom identifier for this session, must be unique within the account.
853
853
  # @param body [IntegrationRequest]
854
854
  # @param [Hash] opts the optional parameters
855
- # @option opts [Boolean] :dry Flag to indicate whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
855
+ # @option opts [Boolean] :dry Indicates whether to skip persisting the changes or not (Will not persist if set to &#39;true&#39;).
856
856
  # @return [Array<(IntegrationStateV2, Integer, Hash)>] IntegrationStateV2 data, response status code and response headers
857
857
  def update_customer_session_v2_with_http_info(customer_session_id, body, opts = {})
858
858
  if @api_client.config.debugging