talon_one 1.1.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +21 -12
  3. data/docs/AccountAnalytics.md +1 -0
  4. data/docs/AccountLimits.md +1 -0
  5. data/docs/Application.md +2 -1
  6. data/docs/ApplicationCustomer.md +1 -1
  7. data/docs/ApplicationSession.md +2 -1
  8. data/docs/Attribute.md +0 -2
  9. data/docs/AttributesMandatory.md +9 -0
  10. data/docs/AttributesSettings.md +8 -0
  11. data/docs/BaseSamlConnection.md +15 -0
  12. data/docs/Campaign.md +2 -0
  13. data/docs/CampaignAnalytics.md +9 -3
  14. data/docs/CampaignCopy.md +4 -0
  15. data/docs/Change.md +2 -2
  16. data/docs/CustomerInventory.md +9 -0
  17. data/docs/CustomerProfile.md +1 -1
  18. data/docs/ErrorSource.md +1 -0
  19. data/docs/Event.md +1 -1
  20. data/docs/InlineResponse20020.md +1 -1
  21. data/docs/InlineResponse20021.md +1 -1
  22. data/docs/InlineResponse20022.md +1 -1
  23. data/docs/InlineResponse20023.md +1 -1
  24. data/docs/InlineResponse20024.md +1 -1
  25. data/docs/InlineResponse20025.md +1 -1
  26. data/docs/InlineResponse20026.md +3 -2
  27. data/docs/InlineResponse20027.md +1 -1
  28. data/docs/InlineResponse20028.md +1 -1
  29. data/docs/InlineResponse20029.md +9 -0
  30. data/docs/IntegrationApi.md +66 -0
  31. data/docs/IntegrationEvent.md +10 -0
  32. data/docs/IntegrationState.md +1 -0
  33. data/docs/ManagementApi.md +175 -104
  34. data/docs/Meta.md +1 -0
  35. data/docs/NewApplication.md +2 -1
  36. data/docs/NewEvent.md +1 -1
  37. data/docs/NewSamlConnection.md +16 -0
  38. data/docs/Notification.md +10 -0
  39. data/docs/{ApplicationStorageData.md → Notifications.md} +1 -1
  40. data/docs/ReferralRejectionReason.md +10 -0
  41. data/docs/SamlConnection.md +18 -0
  42. data/docs/SamlConnectionMetadata.md +11 -0
  43. data/docs/UpdateApplication.md +15 -0
  44. data/docs/UpdateUser.md +1 -0
  45. data/docs/User.md +2 -0
  46. data/docs/Webhook.md +0 -1
  47. data/lib/talon_one.rb +13 -6
  48. data/lib/talon_one/api/integration_api.rb +60 -0
  49. data/lib/talon_one/api/management_api.rb +194 -121
  50. data/lib/talon_one/models/account_analytics.rb +19 -4
  51. data/lib/talon_one/models/account_limits.rb +11 -1
  52. data/lib/talon_one/models/application.rb +62 -53
  53. data/lib/talon_one/models/application_customer.rb +0 -5
  54. data/lib/talon_one/models/application_session.rb +12 -2
  55. data/lib/talon_one/models/attribute.rb +4 -38
  56. data/lib/talon_one/models/attributes_mandatory.rb +199 -0
  57. data/lib/talon_one/models/{new_application_storage_data.rb → attributes_settings.rb} +13 -4
  58. data/lib/talon_one/models/{application_storage.rb → base_saml_connection.rb} +122 -78
  59. data/lib/talon_one/models/campaign.rb +21 -1
  60. data/lib/talon_one/models/campaign_analytics.rb +94 -4
  61. data/lib/talon_one/models/campaign_copy.rb +46 -4
  62. data/lib/talon_one/models/change.rb +2 -2
  63. data/lib/talon_one/models/coupon_rejection_reason.rb +2 -2
  64. data/lib/talon_one/models/customer_inventory.rb +194 -0
  65. data/lib/talon_one/models/customer_profile.rb +0 -5
  66. data/lib/talon_one/models/error_source.rb +14 -4
  67. data/lib/talon_one/models/event.rb +11 -35
  68. data/lib/talon_one/models/inline_response_200_20.rb +1 -1
  69. data/lib/talon_one/models/inline_response_200_21.rb +1 -1
  70. data/lib/talon_one/models/inline_response_200_22.rb +1 -1
  71. data/lib/talon_one/models/inline_response_200_23.rb +1 -1
  72. data/lib/talon_one/models/inline_response_200_24.rb +1 -1
  73. data/lib/talon_one/models/inline_response_200_25.rb +1 -1
  74. data/lib/talon_one/models/inline_response_200_26.rb +11 -7
  75. data/lib/talon_one/models/inline_response_200_27.rb +1 -1
  76. data/lib/talon_one/models/inline_response_200_28.rb +1 -1
  77. data/lib/talon_one/models/{new_application_storage_tuple.rb → inline_response_200_29.rb} +22 -40
  78. data/lib/talon_one/models/integration_event.rb +234 -0
  79. data/lib/talon_one/models/integration_state.rb +13 -4
  80. data/lib/talon_one/models/limit_config.rb +2 -2
  81. data/lib/talon_one/models/meta.rb +10 -1
  82. data/lib/talon_one/models/new_application.rb +57 -56
  83. data/lib/talon_one/models/new_event.rb +38 -38
  84. data/lib/talon_one/models/new_saml_connection.rb +371 -0
  85. data/lib/talon_one/models/{new_application_storage.rb → notification.rb} +22 -17
  86. data/lib/talon_one/models/{application_storage_data.rb → notifications.rb} +1 -2
  87. data/lib/talon_one/models/referral_rejection_reason.rb +251 -0
  88. data/lib/talon_one/models/saml_connection.rb +387 -0
  89. data/lib/talon_one/models/{application_storage_tuple.rb → saml_connection_metadata.rb} +68 -80
  90. data/lib/talon_one/models/update_application.rb +361 -0
  91. data/lib/talon_one/models/update_user.rb +13 -4
  92. data/lib/talon_one/models/user.rb +23 -4
  93. data/lib/talon_one/models/webhook.rb +4 -21
  94. data/lib/talon_one/version.rb +1 -1
  95. data/spec/api/integration_api_spec.rb +14 -0
  96. data/spec/api/management_api_spec.rb +56 -37
  97. data/spec/models/account_analytics_spec.rb +6 -0
  98. data/spec/models/account_limits_spec.rb +6 -0
  99. data/spec/models/application_session_spec.rb +6 -0
  100. data/spec/models/application_spec.rb +12 -6
  101. data/spec/models/attribute_spec.rb +0 -12
  102. data/spec/models/{new_application_storage_tuple_spec.rb → attributes_mandatory_spec.rb} +8 -8
  103. data/spec/models/{new_application_storage_data_spec.rb → attributes_settings_spec.rb} +12 -6
  104. data/spec/models/{application_storage_spec.rb → base_saml_connection_spec.rb} +14 -14
  105. data/spec/models/campaign_analytics_spec.rb +36 -0
  106. data/spec/models/campaign_copy_spec.rb +24 -0
  107. data/spec/models/campaign_spec.rb +12 -0
  108. data/spec/models/coupon_rejection_reason_spec.rb +1 -1
  109. data/spec/models/customer_inventory_spec.rb +47 -0
  110. data/spec/models/error_source_spec.rb +6 -0
  111. data/spec/models/event_spec.rb +3 -3
  112. data/spec/models/inline_response_200_26_spec.rb +6 -0
  113. data/spec/models/inline_response_200_29_spec.rb +47 -0
  114. data/spec/models/integration_event_spec.rb +53 -0
  115. data/spec/models/integration_state_spec.rb +6 -0
  116. data/spec/models/limit_config_spec.rb +1 -1
  117. data/spec/models/meta_spec.rb +6 -0
  118. data/spec/models/new_application_spec.rb +12 -6
  119. data/spec/models/new_event_spec.rb +3 -3
  120. data/spec/models/new_saml_connection_spec.rb +89 -0
  121. data/spec/models/{new_application_storage_spec.rb → notification_spec.rb} +8 -8
  122. data/spec/models/{application_storage_data_spec.rb → notifications_spec.rb} +6 -6
  123. data/spec/models/referral_rejection_reason_spec.rb +57 -0
  124. data/spec/models/{application_storage_tuple_spec.rb → saml_connection_metadata_spec.rb} +10 -22
  125. data/spec/models/saml_connection_spec.rb +101 -0
  126. data/spec/models/update_application_spec.rb +87 -0
  127. data/spec/models/update_user_spec.rb +6 -0
  128. data/spec/models/user_spec.rb +12 -0
  129. data/spec/models/webhook_spec.rb +0 -6
  130. data/talon_one-1.0.0.gem +0 -0
  131. data/talon_one-1.1.0.gem +0 -0
  132. data/talon_one-1.1.1.gem +0 -0
  133. data/talon_one-1.1.2.gem +0 -0
  134. data/talon_one-1.2.0.gem +0 -0
  135. data/talon_one-1.3.0.gem +0 -0
  136. data/talon_one.gemspec +1 -1
  137. metadata +74 -42
  138. data/docs/ApplicationStorage.md +0 -15
  139. data/docs/ApplicationStorageTuple.md +0 -13
  140. data/docs/NewApplicationStorage.md +0 -10
  141. data/docs/NewApplicationStorageData.md +0 -7
  142. data/docs/NewApplicationStorageTuple.md +0 -9
  143. data/fck.rb +0 -64
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **campaigns** | **Object** | Maps each evaluated campaign ID to a key-value list of that campaigns attributes. Campaigns without attributes will be omitted. | [optional]
7
7
  **coupons** | **Object** | Maps the coupon value to a key-value list of that coupons attributes. | [optional]
8
8
  **coupon_rejection_reason** | [**CouponRejectionReason**](CouponRejectionReason.md) | | [optional]
9
+ **referral_rejection_reason** | [**ReferralRejectionReason**](ReferralRejectionReason.md) | | [optional]
9
10
  **warnings** | **Object** | | [optional]
10
11
 
11
12
 
@@ -5,11 +5,12 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **name** | **String** | The name of this application. |
7
7
  **description** | **String** | A longer description of the application. | [optional]
8
- **key** | **String** | Hex key for HMAC-signing API calls as coming from this application (16 hex digits) |
9
8
  **timezone** | **String** | A string containing an IANA timezone descriptor. |
10
9
  **currency** | **String** | A string describing a default currency for new customer sessions. |
11
10
  **case_sensitivity** | **String** | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional]
12
11
  **attributes** | **Object** | Arbitrary properties associated with this campaign | [optional]
13
12
  **limits** | [**Array<LimitConfig>**](LimitConfig.md) | Default limits for campaigns created in this application | [optional]
13
+ **attributes_settings** | [**AttributesSettings**](AttributesSettings.md) | | [optional]
14
+ **key** | **String** | Hex key for HMAC-signing API calls as coming from this application (16 hex digits) | [optional]
14
15
 
15
16
 
@@ -4,8 +4,8 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **profile_id** | **String** | ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. | [optional]
7
- **session_id** | **String** | The ID of the session that this event occurred in. |
8
7
  **type** | **String** | A string representing the event. Must not be a reserved event name. |
9
8
  **attributes** | **Object** | Arbitrary additional JSON data associated with the event. |
9
+ **session_id** | **String** | The ID of the session that this event occurred in. |
10
10
 
11
11
 
@@ -0,0 +1,16 @@
1
+ # TalonOne::NewSamlConnection
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **x509certificate** | **String** | X.509 Certificate. |
7
+ **account_id** | **Integer** | The ID of the account that owns this entity. |
8
+ **name** | **String** | ID of the SAML service. |
9
+ **enabled** | **BOOLEAN** | Determines if this SAML connection active. |
10
+ **issuer** | **String** | Identity Provider Entity ID. |
11
+ **sign_on_url** | **String** | Single Sign-On URL. |
12
+ **sign_out_url** | **String** | Single Sign-Out URL. | [optional]
13
+ **metadata_url** | **String** | Metadata URL. | [optional]
14
+ **audience_uri** | **String** | The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. | [optional]
15
+
16
+
@@ -0,0 +1,10 @@
1
+ # TalonOne::Notification
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | id of the notification |
7
+ **name** | **String** | name of the notification |
8
+ **description** | **String** | description of the notification |
9
+
10
+
@@ -1,4 +1,4 @@
1
- # TalonOne::ApplicationStorageData
1
+ # TalonOne::Notifications
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -0,0 +1,10 @@
1
+ # TalonOne::ReferralRejectionReason
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **campaign_id** | **Integer** | |
7
+ **referral_id** | **Integer** | |
8
+ **reason** | **String** | |
9
+
10
+
@@ -0,0 +1,18 @@
1
+ # TalonOne::SamlConnection
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **assertion_consumer_service_url** | **String** | The location where the SAML assertion is sent with a HTTP POST. |
7
+ **account_id** | **Integer** | The ID of the account that owns this entity. |
8
+ **name** | **String** | ID of the SAML service. |
9
+ **enabled** | **BOOLEAN** | Determines if this SAML connection active. |
10
+ **issuer** | **String** | Identity Provider Entity ID. |
11
+ **sign_on_url** | **String** | Single Sign-On URL. |
12
+ **sign_out_url** | **String** | Single Sign-Out URL. | [optional]
13
+ **metadata_url** | **String** | Metadata URL. | [optional]
14
+ **audience_uri** | **String** | The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. When not specified, the ACS URL will be used. |
15
+ **id** | **Integer** | Unique ID for this entity. |
16
+ **created** | **DateTime** | The exact moment this entity was created. |
17
+
18
+
@@ -0,0 +1,11 @@
1
+ # TalonOne::SamlConnectionMetadata
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | ID of the SAML service. |
7
+ **enabled** | **BOOLEAN** | Determines if this SAML connection active. |
8
+ **account_id** | **Float** | |
9
+ **metadata_document** | **String** | Identity Provider metadata XML document. |
10
+
11
+
@@ -0,0 +1,15 @@
1
+ # TalonOne::UpdateApplication
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The name of this application. |
7
+ **description** | **String** | A longer description of the application. | [optional]
8
+ **timezone** | **String** | A string containing an IANA timezone descriptor. |
9
+ **currency** | **String** | A string describing a default currency for new customer sessions. |
10
+ **case_sensitivity** | **String** | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional]
11
+ **attributes** | **Object** | Arbitrary properties associated with this campaign | [optional]
12
+ **limits** | [**Array<LimitConfig>**](LimitConfig.md) | Default limits for campaigns created in this application | [optional]
13
+ **attributes_settings** | [**AttributesSettings**](AttributesSettings.md) | | [optional]
14
+
15
+
@@ -12,5 +12,6 @@ Name | Type | Description | Notes
12
12
  **release_update** | **BOOLEAN** | Update the user via email | [optional]
13
13
  **latest_feature** | **String** | The latest feature you've been notified. | [optional]
14
14
  **roles** | **Array<Integer>** | Update | [optional]
15
+ **application_notification_subscriptions** | **Object** | | [optional]
15
16
 
16
17
 
@@ -15,5 +15,7 @@ Name | Type | Description | Notes
15
15
  **release_update** | **BOOLEAN** | Update the user via email |
16
16
  **latest_feature** | **String** | Latest feature the user has been notified. | [optional]
17
17
  **roles** | **Array<Integer>** | Contains a list of all roles a user is a memeber of | [optional]
18
+ **application_notification_subscriptions** | **Object** | | [optional]
19
+ **auth_method** | **String** | The Authentication method for this user | [optional]
18
20
 
19
21
 
@@ -14,6 +14,5 @@ Name | Type | Description | Notes
14
14
  **payload** | **String** | API payload (supports templating using parameters) for this webhook | [optional]
15
15
  **params** | [**Array<TemplateArgDef>**](TemplateArgDef.md) | Array of template argument definitions |
16
16
  **enabled** | **BOOLEAN** | Enables or disables webhook from showing in rule builder |
17
- **used_at** | **Array<String>** | array of rulesets where webhook is used |
18
17
 
19
18
 
@@ -33,11 +33,11 @@ require 'talon_one/models/application_entity'
33
33
  require 'talon_one/models/application_event'
34
34
  require 'talon_one/models/application_session'
35
35
  require 'talon_one/models/application_session_entity'
36
- require 'talon_one/models/application_storage'
37
- require 'talon_one/models/application_storage_data'
38
- require 'talon_one/models/application_storage_tuple'
39
36
  require 'talon_one/models/attribute'
40
37
  require 'talon_one/models/attribute_query'
38
+ require 'talon_one/models/attributes_mandatory'
39
+ require 'talon_one/models/attributes_settings'
40
+ require 'talon_one/models/base_saml_connection'
41
41
  require 'talon_one/models/binding'
42
42
  require 'talon_one/models/campaign'
43
43
  require 'talon_one/models/campaign_analytics'
@@ -61,6 +61,7 @@ require 'talon_one/models/coupon_value'
61
61
  require 'talon_one/models/create_application_api_key'
62
62
  require 'talon_one/models/customer_activity_report'
63
63
  require 'talon_one/models/customer_analytics'
64
+ require 'talon_one/models/customer_inventory'
64
65
  require 'talon_one/models/customer_profile'
65
66
  require 'talon_one/models/customer_profile_search_query'
66
67
  require 'talon_one/models/customer_session'
@@ -101,6 +102,7 @@ require 'talon_one/models/inline_response_200_25'
101
102
  require 'talon_one/models/inline_response_200_26'
102
103
  require 'talon_one/models/inline_response_200_27'
103
104
  require 'talon_one/models/inline_response_200_28'
105
+ require 'talon_one/models/inline_response_200_29'
104
106
  require 'talon_one/models/inline_response_200_3'
105
107
  require 'talon_one/models/inline_response_200_4'
106
108
  require 'talon_one/models/inline_response_200_5'
@@ -109,6 +111,7 @@ require 'talon_one/models/inline_response_200_7'
109
111
  require 'talon_one/models/inline_response_200_8'
110
112
  require 'talon_one/models/inline_response_200_9'
111
113
  require 'talon_one/models/integration_entity'
114
+ require 'talon_one/models/integration_event'
112
115
  require 'talon_one/models/integration_profile_entity'
113
116
  require 'talon_one/models/integration_state'
114
117
  require 'talon_one/models/ledger_entry'
@@ -133,9 +136,6 @@ require 'talon_one/models/new_account'
133
136
  require 'talon_one/models/new_account_sign_up'
134
137
  require 'talon_one/models/new_application'
135
138
  require 'talon_one/models/new_application_api_key'
136
- require 'talon_one/models/new_application_storage'
137
- require 'talon_one/models/new_application_storage_data'
138
- require 'talon_one/models/new_application_storage_tuple'
139
139
  require 'talon_one/models/new_attribute'
140
140
  require 'talon_one/models/new_campaign'
141
141
  require 'talon_one/models/new_campaign_set'
@@ -154,20 +154,27 @@ require 'talon_one/models/new_password_email'
154
154
  require 'talon_one/models/new_referral'
155
155
  require 'talon_one/models/new_role'
156
156
  require 'talon_one/models/new_ruleset'
157
+ require 'talon_one/models/new_saml_connection'
157
158
  require 'talon_one/models/new_template_def'
158
159
  require 'talon_one/models/new_user'
159
160
  require 'talon_one/models/new_webhook'
161
+ require 'talon_one/models/notification'
162
+ require 'talon_one/models/notifications'
160
163
  require 'talon_one/models/referral'
164
+ require 'talon_one/models/referral_rejection_reason'
161
165
  require 'talon_one/models/role'
162
166
  require 'talon_one/models/role_assign'
163
167
  require 'talon_one/models/role_membership'
164
168
  require 'talon_one/models/rule'
165
169
  require 'talon_one/models/ruleset'
170
+ require 'talon_one/models/saml_connection'
171
+ require 'talon_one/models/saml_connection_metadata'
166
172
  require 'talon_one/models/session'
167
173
  require 'talon_one/models/slot_def'
168
174
  require 'talon_one/models/template_arg_def'
169
175
  require 'talon_one/models/template_def'
170
176
  require 'talon_one/models/update_account'
177
+ require 'talon_one/models/update_application'
171
178
  require 'talon_one/models/update_campaign'
172
179
  require 'talon_one/models/update_coupon'
173
180
  require 'talon_one/models/update_coupon_batch'
@@ -245,6 +245,66 @@ module TalonOne
245
245
  end
246
246
  return data, status_code, headers
247
247
  end
248
+ # Get an inventory of all data associated with a specific customer profile.
249
+ # Get information regarding entities referencing this customer profile's integrationId. Currently we support customer profile information and referral codes. In the future, this will be expanded with coupon codes and loyalty points.
250
+ # @param integration_id The custom identifier for this profile, must be unique within the account.
251
+ # @param [Hash] opts the optional parameters
252
+ # @option opts [Object] :profile optional flag to decide if you would like customer profile information in the response
253
+ # @option opts [Object] :referrals optional flag to decide if you would like referral information in the response
254
+ # @return [CustomerInventory]
255
+ def get_customer_inventory(integration_id, opts = {})
256
+ data, _status_code, _headers = get_customer_inventory_with_http_info(integration_id, opts)
257
+ data
258
+ end
259
+
260
+ # Get an inventory of all data associated with a specific customer profile.
261
+ # Get information regarding entities referencing this customer profile's integrationId. Currently we support customer profile information and referral codes. In the future, this will be expanded with coupon codes and loyalty points.
262
+ # @param integration_id The custom identifier for this profile, must be unique within the account.
263
+ # @param [Hash] opts the optional parameters
264
+ # @option opts [Object] :profile optional flag to decide if you would like customer profile information in the response
265
+ # @option opts [Object] :referrals optional flag to decide if you would like referral information in the response
266
+ # @return [Array<(CustomerInventory, Fixnum, Hash)>] CustomerInventory data, response status code and response headers
267
+ def get_customer_inventory_with_http_info(integration_id, opts = {})
268
+ if @api_client.config.debugging
269
+ @api_client.config.logger.debug 'Calling API: IntegrationApi.get_customer_inventory ...'
270
+ end
271
+ # verify the required parameter 'integration_id' is set
272
+ if @api_client.config.client_side_validation && integration_id.nil?
273
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_customer_inventory"
274
+ end
275
+ # resource path
276
+ local_var_path = '/v1/customer_profiles/{integrationId}/inventory'.sub('{' + 'integrationId' + '}', integration_id.to_s)
277
+
278
+ # query parameters
279
+ query_params = {}
280
+ query_params[:'profile'] = opts[:'profile'] if !opts[:'profile'].nil?
281
+ query_params[:'referrals'] = opts[:'referrals'] if !opts[:'referrals'].nil?
282
+
283
+ # header parameters
284
+ header_params = {}
285
+ # HTTP header 'Accept' (if needed)
286
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
287
+ # HTTP header 'Content-Type'
288
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
289
+
290
+ # form parameters
291
+ form_params = {}
292
+
293
+ # http body (model)
294
+ post_body = nil
295
+ auth_names = ['api_key_v1', 'integration_auth']
296
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
297
+ :header_params => header_params,
298
+ :query_params => query_params,
299
+ :form_params => form_params,
300
+ :body => post_body,
301
+ :auth_names => auth_names,
302
+ :return_type => 'CustomerInventory')
303
+ if @api_client.config.debugging
304
+ @api_client.config.logger.debug "API called: IntegrationApi#get_customer_inventory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
305
+ end
306
+ return data, status_code, headers
307
+ end
248
308
  # Get all valid reserved coupons
249
309
  # Returns all coupons this user is subscribed to that are valid and usable
250
310
  # @param integration_id The custom identifier for this profile, must be unique within the account.
@@ -150,6 +150,60 @@ module TalonOne
150
150
  end
151
151
  return data, status_code, headers
152
152
  end
153
+ # Define a new custom attribute
154
+ # Defines a new _custom attribute_ in this account. Custom attributes allow you to attach new fields to Talon.One domain objects like campaigns, coupons, customers and so on. These attributes can then be given values when creating / updating these objects, and these values can be used in your campaign rules. For example, you could define a `zipCode` field for customer sessions, and add a rule to your campaign that only allows certain ZIP codes. These attributes are shared across all applications in your account, and are never required.
155
+ # @param body
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [Attribute]
158
+ def create_attribute(body, opts = {})
159
+ data, _status_code, _headers = create_attribute_with_http_info(body, opts)
160
+ data
161
+ end
162
+
163
+ # Define a new custom attribute
164
+ # Defines a new _custom attribute_ in this account. Custom attributes allow you to attach new fields to Talon.One domain objects like campaigns, coupons, customers and so on. These attributes can then be given values when creating / updating these objects, and these values can be used in your campaign rules. For example, you could define a &#x60;zipCode&#x60; field for customer sessions, and add a rule to your campaign that only allows certain ZIP codes. These attributes are shared across all applications in your account, and are never required.
165
+ # @param body
166
+ # @param [Hash] opts the optional parameters
167
+ # @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers
168
+ def create_attribute_with_http_info(body, opts = {})
169
+ if @api_client.config.debugging
170
+ @api_client.config.logger.debug 'Calling API: ManagementApi.create_attribute ...'
171
+ end
172
+ # verify the required parameter 'body' is set
173
+ if @api_client.config.client_side_validation && body.nil?
174
+ fail ArgumentError, "Missing the required parameter 'body' when calling ManagementApi.create_attribute"
175
+ end
176
+ # resource path
177
+ local_var_path = '/v1/attributes'
178
+
179
+ # query parameters
180
+ query_params = {}
181
+
182
+ # header parameters
183
+ header_params = {}
184
+ # HTTP header 'Accept' (if needed)
185
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
186
+ # HTTP header 'Content-Type'
187
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
188
+
189
+ # form parameters
190
+ form_params = {}
191
+
192
+ # http body (model)
193
+ post_body = @api_client.object_to_http_body(body)
194
+ auth_names = ['manager_auth']
195
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
196
+ :header_params => header_params,
197
+ :query_params => query_params,
198
+ :form_params => form_params,
199
+ :body => post_body,
200
+ :auth_names => auth_names,
201
+ :return_type => 'Attribute')
202
+ if @api_client.config.debugging
203
+ @api_client.config.logger.debug "API called: ManagementApi#create_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
+ end
205
+ return data, status_code, headers
206
+ end
153
207
  # Create a Campaign
154
208
  #
155
209
  # @param application_id
@@ -211,7 +265,7 @@ module TalonOne
211
265
  return data, status_code, headers
212
266
  end
213
267
  # Create Coupons
214
- # Create coupons according to some pattern. Up to 20.000 coupons can be created without a unique prefix. When a unique prefix is provided, up to 200.000 coupns can be created.
268
+ # Create coupons according to some pattern. Up to 20.000 coupons can be created without a unique prefix. When a unique prefix is provided, up to 200.000 coupons can be created.
215
269
  # @param application_id
216
270
  # @param campaign_id
217
271
  # @param body
@@ -224,7 +278,7 @@ module TalonOne
224
278
  end
225
279
 
226
280
  # Create Coupons
227
- # Create coupons according to some pattern. Up to 20.000 coupons can be created without a unique prefix. When a unique prefix is provided, up to 200.000 coupns can be created.
281
+ # Create coupons according to some pattern. Up to 20.000 coupons can be created without a unique prefix. When a unique prefix is provided, up to 200.000 coupons can be created.
228
282
  # @param application_id
229
283
  # @param campaign_id
230
284
  # @param body
@@ -817,8 +871,8 @@ module TalonOne
817
871
  # @param range_start Only return results from after this timestamp, must be an RFC3339 timestamp string
818
872
  # @param range_end Only return results from before this timestamp, must be an RFC3339 timestamp string
819
873
  # @param [Hash] opts the optional parameters
820
- # @option opts [String] :path Only return results where the request path matches the given regular expresssion.
821
- # @option opts [String] :method Only return results where the request method matches the given regular expresssion.
874
+ # @option opts [String] :path Only return results where the request path matches the given regular expression.
875
+ # @option opts [String] :method Only return results where the request method matches the given regular expression.
822
876
  # @option opts [String] :status Filter results by HTTP status codes.
823
877
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
824
878
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
@@ -835,8 +889,8 @@ module TalonOne
835
889
  # @param range_start Only return results from after this timestamp, must be an RFC3339 timestamp string
836
890
  # @param range_end Only return results from before this timestamp, must be an RFC3339 timestamp string
837
891
  # @param [Hash] opts the optional parameters
838
- # @option opts [String] :path Only return results where the request path matches the given regular expresssion.
839
- # @option opts [String] :method Only return results where the request method matches the given regular expresssion.
892
+ # @option opts [String] :path Only return results where the request path matches the given regular expression.
893
+ # @option opts [String] :method Only return results where the request method matches the given regular expression.
840
894
  # @option opts [String] :status Filter results by HTTP status codes.
841
895
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
842
896
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
@@ -909,8 +963,8 @@ module TalonOne
909
963
  # @param range_start Only return results from after this timestamp, must be an RFC3339 timestamp string
910
964
  # @param range_end Only return results from before this timestamp, must be an RFC3339 timestamp string
911
965
  # @param [Hash] opts the optional parameters
912
- # @option opts [String] :path Only return results where the request path matches the given regular expresssion.
913
- # @option opts [String] :method Only return results where the request method matches the given regular expresssion.
966
+ # @option opts [String] :path Only return results where the request path matches the given regular expression.
967
+ # @option opts [String] :method Only return results where the request method matches the given regular expression.
914
968
  # @option opts [String] :status Filter results by HTTP status codes.
915
969
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
916
970
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
@@ -927,8 +981,8 @@ module TalonOne
927
981
  # @param range_start Only return results from after this timestamp, must be an RFC3339 timestamp string
928
982
  # @param range_end Only return results from before this timestamp, must be an RFC3339 timestamp string
929
983
  # @param [Hash] opts the optional parameters
930
- # @option opts [String] :path Only return results where the request path matches the given regular expresssion.
931
- # @option opts [String] :method Only return results where the request method matches the given regular expresssion.
984
+ # @option opts [String] :path Only return results where the request path matches the given regular expression.
985
+ # @option opts [String] :method Only return results where the request method matches the given regular expression.
932
986
  # @option opts [String] :status Filter results by HTTP status codes.
933
987
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
934
988
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
@@ -1103,67 +1157,13 @@ module TalonOne
1103
1157
  end
1104
1158
  return data, status_code, headers
1105
1159
  end
1106
- # Get Account Limits
1107
- # Returns a list of all account limits set
1108
- # @param account_id
1109
- # @param [Hash] opts the optional parameters
1110
- # @return [AccountLimits]
1111
- def get_account_limits(account_id, opts = {})
1112
- data, _status_code, _headers = get_account_limits_with_http_info(account_id, opts)
1113
- data
1114
- end
1115
-
1116
- # Get Account Limits
1117
- # Returns a list of all account limits set
1118
- # @param account_id
1119
- # @param [Hash] opts the optional parameters
1120
- # @return [Array<(AccountLimits, Fixnum, Hash)>] AccountLimits data, response status code and response headers
1121
- def get_account_limits_with_http_info(account_id, opts = {})
1122
- if @api_client.config.debugging
1123
- @api_client.config.logger.debug 'Calling API: ManagementApi.get_account_limits ...'
1124
- end
1125
- # verify the required parameter 'account_id' is set
1126
- if @api_client.config.client_side_validation && account_id.nil?
1127
- fail ArgumentError, "Missing the required parameter 'account_id' when calling ManagementApi.get_account_limits"
1128
- end
1129
- # resource path
1130
- local_var_path = '/v1/accounts/{accountId}/limits'.sub('{' + 'accountId' + '}', account_id.to_s)
1131
-
1132
- # query parameters
1133
- query_params = {}
1134
-
1135
- # header parameters
1136
- header_params = {}
1137
- # HTTP header 'Accept' (if needed)
1138
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1139
- # HTTP header 'Content-Type'
1140
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1141
-
1142
- # form parameters
1143
- form_params = {}
1144
-
1145
- # http body (model)
1146
- post_body = nil
1147
- auth_names = ['manager_auth']
1148
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1149
- :header_params => header_params,
1150
- :query_params => query_params,
1151
- :form_params => form_params,
1152
- :body => post_body,
1153
- :auth_names => auth_names,
1154
- :return_type => 'AccountLimits')
1155
- if @api_client.config.debugging
1156
- @api_client.config.logger.debug "API called: ManagementApi#get_account_limits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1157
- end
1158
- return data, status_code, headers
1159
- end
1160
1160
  # Get all access logs
1161
1161
  # Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs.
1162
1162
  # @param range_start Only return results from after this timestamp, must be an RFC3339 timestamp string
1163
1163
  # @param range_end Only return results from before this timestamp, must be an RFC3339 timestamp string
1164
1164
  # @param [Hash] opts the optional parameters
1165
- # @option opts [String] :path Only return results where the request path matches the given regular expresssion.
1166
- # @option opts [String] :method Only return results where the request method matches the given regular expresssion.
1165
+ # @option opts [String] :path Only return results where the request path matches the given regular expression.
1166
+ # @option opts [String] :method Only return results where the request method matches the given regular expression.
1167
1167
  # @option opts [String] :status Filter results by HTTP status codes.
1168
1168
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
1169
1169
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
@@ -1179,8 +1179,8 @@ module TalonOne
1179
1179
  # @param range_start Only return results from after this timestamp, must be an RFC3339 timestamp string
1180
1180
  # @param range_end Only return results from before this timestamp, must be an RFC3339 timestamp string
1181
1181
  # @param [Hash] opts the optional parameters
1182
- # @option opts [String] :path Only return results where the request path matches the given regular expresssion.
1183
- # @option opts [String] :method Only return results where the request method matches the given regular expresssion.
1182
+ # @option opts [String] :path Only return results where the request path matches the given regular expression.
1183
+ # @option opts [String] :method Only return results where the request method matches the given regular expression.
1184
1184
  # @option opts [String] :status Filter results by HTTP status codes.
1185
1185
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
1186
1186
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
@@ -1245,7 +1245,7 @@ module TalonOne
1245
1245
  end
1246
1246
  # Get all roles.
1247
1247
  # @param [Hash] opts the optional parameters
1248
- # @return [InlineResponse20028]
1248
+ # @return [InlineResponse20029]
1249
1249
  def get_all_roles(opts = {})
1250
1250
  data, _status_code, _headers = get_all_roles_with_http_info(opts)
1251
1251
  data
@@ -1253,7 +1253,7 @@ module TalonOne
1253
1253
 
1254
1254
  # Get all roles.
1255
1255
  # @param [Hash] opts the optional parameters
1256
- # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
1256
+ # @return [Array<(InlineResponse20029, Fixnum, Hash)>] InlineResponse20029 data, response status code and response headers
1257
1257
  def get_all_roles_with_http_info(opts = {})
1258
1258
  if @api_client.config.debugging
1259
1259
  @api_client.config.logger.debug 'Calling API: ManagementApi.get_all_roles ...'
@@ -1283,7 +1283,7 @@ module TalonOne
1283
1283
  :form_params => form_params,
1284
1284
  :body => post_body,
1285
1285
  :auth_names => auth_names,
1286
- :return_type => 'InlineResponse20028')
1286
+ :return_type => 'InlineResponse20029')
1287
1287
  if @api_client.config.debugging
1288
1288
  @api_client.config.logger.debug "API called: ManagementApi#get_all_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1289
1289
  end
@@ -1512,7 +1512,7 @@ module TalonOne
1512
1512
  return data, status_code, headers
1513
1513
  end
1514
1514
  # Get a list of the customer profiles that match the given attributes
1515
- # Gets a list of all the customer profiles for the account that exactly match a set of attributes. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. [Customer Profile]: http://help.talon.one/customer/en/portal/articles/2525263-data-model?b_id=14115#customer-profile
1515
+ # Gets a list of all the customer profiles for the account that exactly match a set of attributes. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. [Customer Profile]: https://help.talon.one/hc/en-us/articles/360005130739-Data-Model#CustomerProfile
1516
1516
  # @param body
1517
1517
  # @param [Hash] opts the optional parameters
1518
1518
  # @return [InlineResponse20013]
@@ -1522,7 +1522,7 @@ module TalonOne
1522
1522
  end
1523
1523
 
1524
1524
  # Get a list of the customer profiles that match the given attributes
1525
- # Gets a list of all the customer profiles for the account that exactly match a set of attributes. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. [Customer Profile]: http://help.talon.one/customer/en/portal/articles/2525263-data-model?b_id&#x3D;14115#customer-profile
1525
+ # Gets a list of all the customer profiles for the account that exactly match a set of attributes. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. [Customer Profile]: https://help.talon.one/hc/en-us/articles/360005130739-Data-Model#CustomerProfile
1526
1526
  # @param body
1527
1527
  # @param [Hash] opts the optional parameters
1528
1528
  # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
@@ -2082,6 +2082,63 @@ module TalonOne
2082
2082
  end
2083
2083
  return data, status_code, headers
2084
2084
  end
2085
+ # List custom attributes
2086
+ # Returns all the defined custom attributes for the account.
2087
+ # @param [Hash] opts the optional parameters
2088
+ # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
2089
+ # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
2090
+ # @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order.
2091
+ # @return [InlineResponse20020]
2092
+ def get_attributes(opts = {})
2093
+ data, _status_code, _headers = get_attributes_with_http_info(opts)
2094
+ data
2095
+ end
2096
+
2097
+ # List custom attributes
2098
+ # Returns all the defined custom attributes for the account.
2099
+ # @param [Hash] opts the optional parameters
2100
+ # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
2101
+ # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
2102
+ # @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order.
2103
+ # @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
2104
+ def get_attributes_with_http_info(opts = {})
2105
+ if @api_client.config.debugging
2106
+ @api_client.config.logger.debug 'Calling API: ManagementApi.get_attributes ...'
2107
+ end
2108
+ # resource path
2109
+ local_var_path = '/v1/attributes'
2110
+
2111
+ # query parameters
2112
+ query_params = {}
2113
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2114
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
2115
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2116
+
2117
+ # header parameters
2118
+ header_params = {}
2119
+ # HTTP header 'Accept' (if needed)
2120
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2121
+ # HTTP header 'Content-Type'
2122
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2123
+
2124
+ # form parameters
2125
+ form_params = {}
2126
+
2127
+ # http body (model)
2128
+ post_body = nil
2129
+ auth_names = ['manager_auth']
2130
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2131
+ :header_params => header_params,
2132
+ :query_params => query_params,
2133
+ :form_params => form_params,
2134
+ :body => post_body,
2135
+ :auth_names => auth_names,
2136
+ :return_type => 'InlineResponse20020')
2137
+ if @api_client.config.debugging
2138
+ @api_client.config.logger.debug "API called: ManagementApi#get_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2139
+ end
2140
+ return data, status_code, headers
2141
+ end
2085
2142
  # Get a Campaign
2086
2143
  #
2087
2144
  # @param application_id
@@ -2144,7 +2201,7 @@ module TalonOne
2144
2201
  end
2145
2202
  # Get analytics of campaigns
2146
2203
  #
2147
- # @param application_id The identifier for the application
2204
+ # @param application_id
2148
2205
  # @param campaign_id
2149
2206
  # @param range_start Only return results from after this timestamp, must be an RFC3339 timestamp string
2150
2207
  # @param range_end Only return results from before this timestamp, must be an RFC3339 timestamp string
@@ -2158,7 +2215,7 @@ module TalonOne
2158
2215
 
2159
2216
  # Get analytics of campaigns
2160
2217
  #
2161
- # @param application_id The identifier for the application
2218
+ # @param application_id
2162
2219
  # @param campaign_id
2163
2220
  # @param range_start Only return results from after this timestamp, must be an RFC3339 timestamp string
2164
2221
  # @param range_end Only return results from before this timestamp, must be an RFC3339 timestamp string
@@ -2438,7 +2495,12 @@ module TalonOne
2438
2495
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
2439
2496
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
2440
2497
  # @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order.
2441
- # @return [InlineResponse20025]
2498
+ # @option opts [Integer] :application_id
2499
+ # @option opts [DateTime] :created_before Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp.
2500
+ # @option opts [DateTime] :created_after Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp.
2501
+ # @option opts [BOOLEAN] :with_total_result_size When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query.
2502
+ # @option opts [BOOLEAN] :include_old When this flag is set to false, the state without the change will not be returned. The default value is true.
2503
+ # @return [InlineResponse20026]
2442
2504
  def get_changes(opts = {})
2443
2505
  data, _status_code, _headers = get_changes_with_http_info(opts)
2444
2506
  data
@@ -2450,7 +2512,12 @@ module TalonOne
2450
2512
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
2451
2513
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
2452
2514
  # @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order.
2453
- # @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
2515
+ # @option opts [Integer] :application_id
2516
+ # @option opts [DateTime] :created_before Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp.
2517
+ # @option opts [DateTime] :created_after Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp.
2518
+ # @option opts [BOOLEAN] :with_total_result_size When this flag is set, the result will include the total size of the result, across all pages. This might decrease performance on large data sets. With this flag set to true, hasMore will be be true whenever there is a next page. totalResultSize will always be zero. With this flag set to false, hasMore will always be set to false. totalResultSize will contain the total number of results for this query.
2519
+ # @option opts [BOOLEAN] :include_old When this flag is set to false, the state without the change will not be returned. The default value is true.
2520
+ # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
2454
2521
  def get_changes_with_http_info(opts = {})
2455
2522
  if @api_client.config.debugging
2456
2523
  @api_client.config.logger.debug 'Calling API: ManagementApi.get_changes ...'
@@ -2463,6 +2530,11 @@ module TalonOne
2463
2530
  query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2464
2531
  query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
2465
2532
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2533
+ query_params[:'applicationId'] = opts[:'application_id'] if !opts[:'application_id'].nil?
2534
+ query_params[:'createdBefore'] = opts[:'created_before'] if !opts[:'created_before'].nil?
2535
+ query_params[:'createdAfter'] = opts[:'created_after'] if !opts[:'created_after'].nil?
2536
+ query_params[:'withTotalResultSize'] = opts[:'with_total_result_size'] if !opts[:'with_total_result_size'].nil?
2537
+ query_params[:'includeOld'] = opts[:'include_old'] if !opts[:'include_old'].nil?
2466
2538
 
2467
2539
  # header parameters
2468
2540
  header_params = {}
@@ -2483,7 +2555,7 @@ module TalonOne
2483
2555
  :form_params => form_params,
2484
2556
  :body => post_body,
2485
2557
  :auth_names => auth_names,
2486
- :return_type => 'InlineResponse20025')
2558
+ :return_type => 'InlineResponse20026')
2487
2559
  if @api_client.config.debugging
2488
2560
  @api_client.config.logger.debug "API called: ManagementApi#get_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2489
2561
  end
@@ -3363,7 +3435,7 @@ module TalonOne
3363
3435
  return data, status_code, headers
3364
3436
  end
3365
3437
  # Get a list of the customer profiles that match the given attributes
3366
- # Gets a list of all the customer profiles for the account that exactly match a set of attributes. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. [Customer Profile]: http://help.talon.one/customer/en/portal/articles/2525263-data-model?b_id=14115#customer-profile
3438
+ # Gets a list of all the customer profiles for the account that exactly match a set of attributes. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. [Customer Profile]: https://help.talon.one/hc/en-us/articles/360005130739-Data-Model#CustomerProfile
3367
3439
  # @param body
3368
3440
  # @param [Hash] opts the optional parameters
3369
3441
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
@@ -3375,7 +3447,7 @@ module TalonOne
3375
3447
  end
3376
3448
 
3377
3449
  # Get a list of the customer profiles that match the given attributes
3378
- # Gets a list of all the customer profiles for the account that exactly match a set of attributes. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. [Customer Profile]: http://help.talon.one/customer/en/portal/articles/2525263-data-model?b_id&#x3D;14115#customer-profile
3450
+ # Gets a list of all the customer profiles for the account that exactly match a set of attributes. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request. [Customer Profile]: https://help.talon.one/hc/en-us/articles/360005130739-Data-Model#CustomerProfile
3379
3451
  # @param body
3380
3452
  # @param [Hash] opts the optional parameters
3381
3453
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
@@ -3431,7 +3503,7 @@ module TalonOne
3431
3503
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
3432
3504
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
3433
3505
  # @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order.
3434
- # @return [InlineResponse20023]
3506
+ # @return [InlineResponse20024]
3435
3507
  def get_event_types(opts = {})
3436
3508
  data, _status_code, _headers = get_event_types_with_http_info(opts)
3437
3509
  data
@@ -3446,7 +3518,7 @@ module TalonOne
3446
3518
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
3447
3519
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
3448
3520
  # @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order.
3449
- # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
3521
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
3450
3522
  def get_event_types_with_http_info(opts = {})
3451
3523
  if @api_client.config.debugging
3452
3524
  @api_client.config.logger.debug 'Calling API: ManagementApi.get_event_types ...'
@@ -3482,7 +3554,7 @@ module TalonOne
3482
3554
  :form_params => form_params,
3483
3555
  :body => post_body,
3484
3556
  :auth_names => auth_names,
3485
- :return_type => 'InlineResponse20023')
3557
+ :return_type => 'InlineResponse20024')
3486
3558
  if @api_client.config.debugging
3487
3559
  @api_client.config.logger.debug "API called: ManagementApi#get_event_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3488
3560
  end
@@ -3496,7 +3568,7 @@ module TalonOne
3496
3568
  # @option opts [Integer] :application_id
3497
3569
  # @option opts [Integer] :campaign_id
3498
3570
  # @option opts [String] :entity The name of the entity type that was exported.
3499
- # @return [InlineResponse20026]
3571
+ # @return [InlineResponse20027]
3500
3572
  def get_exports(opts = {})
3501
3573
  data, _status_code, _headers = get_exports_with_http_info(opts)
3502
3574
  data
@@ -3510,7 +3582,7 @@ module TalonOne
3510
3582
  # @option opts [Integer] :application_id
3511
3583
  # @option opts [Integer] :campaign_id
3512
3584
  # @option opts [String] :entity The name of the entity type that was exported.
3513
- # @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
3585
+ # @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
3514
3586
  def get_exports_with_http_info(opts = {})
3515
3587
  if @api_client.config.debugging
3516
3588
  @api_client.config.logger.debug 'Calling API: ManagementApi.get_exports ...'
@@ -3548,7 +3620,7 @@ module TalonOne
3548
3620
  :form_params => form_params,
3549
3621
  :body => post_body,
3550
3622
  :auth_names => auth_names,
3551
- :return_type => 'InlineResponse20026')
3623
+ :return_type => 'InlineResponse20027')
3552
3624
  if @api_client.config.debugging
3553
3625
  @api_client.config.logger.debug "API called: ManagementApi#get_exports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3554
3626
  end
@@ -3559,7 +3631,7 @@ module TalonOne
3559
3631
  # @param [Hash] opts the optional parameters
3560
3632
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
3561
3633
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
3562
- # @return [InlineResponse20027]
3634
+ # @return [InlineResponse20028]
3563
3635
  def get_imports(opts = {})
3564
3636
  data, _status_code, _headers = get_imports_with_http_info(opts)
3565
3637
  data
@@ -3570,7 +3642,7 @@ module TalonOne
3570
3642
  # @param [Hash] opts the optional parameters
3571
3643
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
3572
3644
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
3573
- # @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
3645
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
3574
3646
  def get_imports_with_http_info(opts = {})
3575
3647
  if @api_client.config.debugging
3576
3648
  @api_client.config.logger.debug 'Calling API: ManagementApi.get_imports ...'
@@ -3602,7 +3674,7 @@ module TalonOne
3602
3674
  :form_params => form_params,
3603
3675
  :body => post_body,
3604
3676
  :auth_names => auth_names,
3605
- :return_type => 'InlineResponse20027')
3677
+ :return_type => 'InlineResponse20028')
3606
3678
  if @api_client.config.debugging
3607
3679
  @api_client.config.logger.debug "API called: ManagementApi#get_imports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3608
3680
  end
@@ -4203,7 +4275,7 @@ module TalonOne
4203
4275
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
4204
4276
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
4205
4277
  # @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order.
4206
- # @return [InlineResponse20024]
4278
+ # @return [InlineResponse20025]
4207
4279
  def get_users(opts = {})
4208
4280
  data, _status_code, _headers = get_users_with_http_info(opts)
4209
4281
  data
@@ -4215,7 +4287,7 @@ module TalonOne
4215
4287
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
4216
4288
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
4217
4289
  # @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order.
4218
- # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
4290
+ # @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
4219
4291
  def get_users_with_http_info(opts = {})
4220
4292
  if @api_client.config.debugging
4221
4293
  @api_client.config.logger.debug 'Calling API: ManagementApi.get_users ...'
@@ -4248,7 +4320,7 @@ module TalonOne
4248
4320
  :form_params => form_params,
4249
4321
  :body => post_body,
4250
4322
  :auth_names => auth_names,
4251
- :return_type => 'InlineResponse20024')
4323
+ :return_type => 'InlineResponse20025')
4252
4324
  if @api_client.config.debugging
4253
4325
  @api_client.config.logger.debug "API called: ManagementApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4254
4326
  end
@@ -4320,7 +4392,7 @@ module TalonOne
4320
4392
  # @option opts [Float] :campaign_id Filter results by campaign.
4321
4393
  # @option opts [DateTime] :created_before Only return events created before this date.
4322
4394
  # @option opts [DateTime] :created_after Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string.
4323
- # @return [InlineResponse20021]
4395
+ # @return [InlineResponse20022]
4324
4396
  def get_webhook_activation_logs(opts = {})
4325
4397
  data, _status_code, _headers = get_webhook_activation_logs_with_http_info(opts)
4326
4398
  data
@@ -4338,7 +4410,7 @@ module TalonOne
4338
4410
  # @option opts [Float] :campaign_id Filter results by campaign.
4339
4411
  # @option opts [DateTime] :created_before Only return events created before this date.
4340
4412
  # @option opts [DateTime] :created_after Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string.
4341
- # @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
4413
+ # @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
4342
4414
  def get_webhook_activation_logs_with_http_info(opts = {})
4343
4415
  if @api_client.config.debugging
4344
4416
  @api_client.config.logger.debug 'Calling API: ManagementApi.get_webhook_activation_logs ...'
@@ -4377,7 +4449,7 @@ module TalonOne
4377
4449
  :form_params => form_params,
4378
4450
  :body => post_body,
4379
4451
  :auth_names => auth_names,
4380
- :return_type => 'InlineResponse20021')
4452
+ :return_type => 'InlineResponse20022')
4381
4453
  if @api_client.config.debugging
4382
4454
  @api_client.config.logger.debug "API called: ManagementApi#get_webhook_activation_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4383
4455
  end
@@ -4396,7 +4468,7 @@ module TalonOne
4396
4468
  # @option opts [String] :request_uuid Filter results by request UUID.
4397
4469
  # @option opts [DateTime] :created_before Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string.
4398
4470
  # @option opts [DateTime] :created_after Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string.
4399
- # @return [InlineResponse20022]
4471
+ # @return [InlineResponse20023]
4400
4472
  def get_webhook_logs(opts = {})
4401
4473
  data, _status_code, _headers = get_webhook_logs_with_http_info(opts)
4402
4474
  data
@@ -4415,7 +4487,7 @@ module TalonOne
4415
4487
  # @option opts [String] :request_uuid Filter results by request UUID.
4416
4488
  # @option opts [DateTime] :created_before Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string.
4417
4489
  # @option opts [DateTime] :created_after Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string.
4418
- # @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
4490
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
4419
4491
  def get_webhook_logs_with_http_info(opts = {})
4420
4492
  if @api_client.config.debugging
4421
4493
  @api_client.config.logger.debug 'Calling API: ManagementApi.get_webhook_logs ...'
@@ -4458,7 +4530,7 @@ module TalonOne
4458
4530
  :form_params => form_params,
4459
4531
  :body => post_body,
4460
4532
  :auth_names => auth_names,
4461
- :return_type => 'InlineResponse20022')
4533
+ :return_type => 'InlineResponse20023')
4462
4534
  if @api_client.config.debugging
4463
4535
  @api_client.config.logger.debug "API called: ManagementApi#get_webhook_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4464
4536
  end
@@ -4471,7 +4543,7 @@ module TalonOne
4471
4543
  # @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order.
4472
4544
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
4473
4545
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
4474
- # @return [InlineResponse20020]
4546
+ # @return [InlineResponse20021]
4475
4547
  def get_webhooks(opts = {})
4476
4548
  data, _status_code, _headers = get_webhooks_with_http_info(opts)
4477
4549
  data
@@ -4484,7 +4556,7 @@ module TalonOne
4484
4556
  # @option opts [String] :sort The field by which results should be sorted. Sorting defaults to ascending order, prefix the field name with &#x60;-&#x60; to sort in descending order.
4485
4557
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
4486
4558
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
4487
- # @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
4559
+ # @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
4488
4560
  def get_webhooks_with_http_info(opts = {})
4489
4561
  if @api_client.config.debugging
4490
4562
  @api_client.config.logger.debug 'Calling API: ManagementApi.get_webhooks ...'
@@ -4518,7 +4590,7 @@ module TalonOne
4518
4590
  :form_params => form_params,
4519
4591
  :body => post_body,
4520
4592
  :auth_names => auth_names,
4521
- :return_type => 'InlineResponse20020')
4593
+ :return_type => 'InlineResponse20021')
4522
4594
  if @api_client.config.debugging
4523
4595
  @api_client.config.logger.debug "API called: ManagementApi#get_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4524
4596
  end
@@ -5122,37 +5194,37 @@ module TalonOne
5122
5194
  end
5123
5195
  return data, status_code, headers
5124
5196
  end
5125
- # Set account limits
5126
- # sets account limits
5127
- # @param account_id
5197
+ # Update a custom attribute
5198
+ # Updates an existing custom attribute. Once created, the only property of a custom attribute that can be changed is the title (human readable description). This restriction is in place to prevent accidentally breaking live integrations. E.g. if you have a customer profile attribute with the name `region`, and your integration is sending `attributes.region` with customer profile updates, changing the name to `locale` would cause the integration requests to begin failing. If you **really** need to change the `type` or `name` property of a custom attribute, create a new attribute and update any relevant integrations and rules to use the new attribute. Then delete the old attribute when you are confident you have migrated any needed data from the old attribute to the new one.
5199
+ # @param attribute_id
5128
5200
  # @param body
5129
5201
  # @param [Hash] opts the optional parameters
5130
- # @return [nil]
5131
- def set_account_limits(account_id, body, opts = {})
5132
- set_account_limits_with_http_info(account_id, body, opts)
5133
- nil
5202
+ # @return [Attribute]
5203
+ def update_attribute(attribute_id, body, opts = {})
5204
+ data, _status_code, _headers = update_attribute_with_http_info(attribute_id, body, opts)
5205
+ data
5134
5206
  end
5135
5207
 
5136
- # Set account limits
5137
- # sets account limits
5138
- # @param account_id
5208
+ # Update a custom attribute
5209
+ # Updates an existing custom attribute. Once created, the only property of a custom attribute that can be changed is the title (human readable description). This restriction is in place to prevent accidentally breaking live integrations. E.g. if you have a customer profile attribute with the name &#x60;region&#x60;, and your integration is sending &#x60;attributes.region&#x60; with customer profile updates, changing the name to &#x60;locale&#x60; would cause the integration requests to begin failing. If you **really** need to change the &#x60;type&#x60; or &#x60;name&#x60; property of a custom attribute, create a new attribute and update any relevant integrations and rules to use the new attribute. Then delete the old attribute when you are confident you have migrated any needed data from the old attribute to the new one.
5210
+ # @param attribute_id
5139
5211
  # @param body
5140
5212
  # @param [Hash] opts the optional parameters
5141
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
5142
- def set_account_limits_with_http_info(account_id, body, opts = {})
5213
+ # @return [Array<(Attribute, Fixnum, Hash)>] Attribute data, response status code and response headers
5214
+ def update_attribute_with_http_info(attribute_id, body, opts = {})
5143
5215
  if @api_client.config.debugging
5144
- @api_client.config.logger.debug 'Calling API: ManagementApi.set_account_limits ...'
5216
+ @api_client.config.logger.debug 'Calling API: ManagementApi.update_attribute ...'
5145
5217
  end
5146
- # verify the required parameter 'account_id' is set
5147
- if @api_client.config.client_side_validation && account_id.nil?
5148
- fail ArgumentError, "Missing the required parameter 'account_id' when calling ManagementApi.set_account_limits"
5218
+ # verify the required parameter 'attribute_id' is set
5219
+ if @api_client.config.client_side_validation && attribute_id.nil?
5220
+ fail ArgumentError, "Missing the required parameter 'attribute_id' when calling ManagementApi.update_attribute"
5149
5221
  end
5150
5222
  # verify the required parameter 'body' is set
5151
5223
  if @api_client.config.client_side_validation && body.nil?
5152
- fail ArgumentError, "Missing the required parameter 'body' when calling ManagementApi.set_account_limits"
5224
+ fail ArgumentError, "Missing the required parameter 'body' when calling ManagementApi.update_attribute"
5153
5225
  end
5154
5226
  # resource path
5155
- local_var_path = '/v1/accounts/{accountId}/limits'.sub('{' + 'accountId' + '}', account_id.to_s)
5227
+ local_var_path = '/v1/attributes/{attributeId}'.sub('{' + 'attributeId' + '}', attribute_id.to_s)
5156
5228
 
5157
5229
  # query parameters
5158
5230
  query_params = {}
@@ -5175,9 +5247,10 @@ module TalonOne
5175
5247
  :query_params => query_params,
5176
5248
  :form_params => form_params,
5177
5249
  :body => post_body,
5178
- :auth_names => auth_names)
5250
+ :auth_names => auth_names,
5251
+ :return_type => 'Attribute')
5179
5252
  if @api_client.config.debugging
5180
- @api_client.config.logger.debug "API called: ManagementApi#set_account_limits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5253
+ @api_client.config.logger.debug "API called: ManagementApi#update_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5181
5254
  end
5182
5255
  return data, status_code, headers
5183
5256
  end