talon_one 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +7 -4
  3. data/docs/Application.md +1 -1
  4. data/docs/Campaign.md +2 -0
  5. data/docs/InlineResponse20025.md +2 -1
  6. data/docs/IntegrationState.md +1 -0
  7. data/docs/ManagementApi.md +11 -1
  8. data/docs/NewApplication.md +1 -1
  9. data/docs/NewSamlConnection.md +15 -0
  10. data/docs/SamlConnection.md +19 -0
  11. data/docs/UpdateApplication.md +14 -0
  12. data/docs/User.md +1 -0
  13. data/lib/talon_one.rb +3 -0
  14. data/lib/talon_one/api/management_api.rb +15 -0
  15. data/lib/talon_one/models/application.rb +53 -53
  16. data/lib/talon_one/models/campaign.rb +21 -1
  17. data/lib/talon_one/models/inline_response_200_25.rb +10 -6
  18. data/lib/talon_one/models/integration_state.rb +13 -4
  19. data/lib/talon_one/models/limit_config.rb +2 -2
  20. data/lib/talon_one/models/new_application.rb +48 -56
  21. data/lib/talon_one/models/new_saml_connection.rb +356 -0
  22. data/lib/talon_one/models/saml_connection.rb +420 -0
  23. data/lib/talon_one/models/update_application.rb +352 -0
  24. data/lib/talon_one/models/user.rb +14 -4
  25. data/lib/talon_one/version.rb +1 -1
  26. data/spec/api/management_api_spec.rb +5 -0
  27. data/spec/models/application_spec.rb +6 -6
  28. data/spec/models/campaign_spec.rb +12 -0
  29. data/spec/models/inline_response_200_25_spec.rb +6 -0
  30. data/spec/models/integration_state_spec.rb +6 -0
  31. data/spec/models/limit_config_spec.rb +1 -1
  32. data/spec/models/new_application_spec.rb +6 -6
  33. data/spec/models/new_saml_connection_spec.rb +83 -0
  34. data/spec/models/saml_connection_spec.rb +107 -0
  35. data/spec/models/update_application_spec.rb +81 -0
  36. data/spec/models/user_spec.rb +6 -0
  37. data/talon_one-1.2.0.gem +0 -0
  38. metadata +28 -16
@@ -53,6 +53,9 @@ module TalonOne
53
53
 
54
54
  attr_accessor :application_notification_subscriptions
55
55
 
56
+ # The Authentication method for this user
57
+ attr_accessor :auth_method
58
+
56
59
  class EnumAttributeValidator
57
60
  attr_reader :datatype
58
61
  attr_reader :allowable_values
@@ -90,7 +93,8 @@ module TalonOne
90
93
  :'release_update' => :'releaseUpdate',
91
94
  :'latest_feature' => :'latestFeature',
92
95
  :'roles' => :'roles',
93
- :'application_notification_subscriptions' => :'applicationNotificationSubscriptions'
96
+ :'application_notification_subscriptions' => :'applicationNotificationSubscriptions',
97
+ :'auth_method' => :'authMethod'
94
98
  }
95
99
  end
96
100
 
@@ -109,7 +113,8 @@ module TalonOne
109
113
  :'release_update' => :'BOOLEAN',
110
114
  :'latest_feature' => :'String',
111
115
  :'roles' => :'Array<Integer>',
112
- :'application_notification_subscriptions' => :'Object'
116
+ :'application_notification_subscriptions' => :'Object',
117
+ :'auth_method' => :'String'
113
118
  }
114
119
  end
115
120
 
@@ -174,6 +179,10 @@ module TalonOne
174
179
  if attributes.has_key?(:'applicationNotificationSubscriptions')
175
180
  self.application_notification_subscriptions = attributes[:'applicationNotificationSubscriptions']
176
181
  end
182
+
183
+ if attributes.has_key?(:'authMethod')
184
+ self.auth_method = attributes[:'authMethod']
185
+ end
177
186
  end
178
187
 
179
188
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -268,7 +277,8 @@ module TalonOne
268
277
  release_update == o.release_update &&
269
278
  latest_feature == o.latest_feature &&
270
279
  roles == o.roles &&
271
- application_notification_subscriptions == o.application_notification_subscriptions
280
+ application_notification_subscriptions == o.application_notification_subscriptions &&
281
+ auth_method == o.auth_method
272
282
  end
273
283
 
274
284
  # @see the `==` method
@@ -280,7 +290,7 @@ module TalonOne
280
290
  # Calculates hash code according to all attributes.
281
291
  # @return [Fixnum] Hash code
282
292
  def hash
283
- [id, created, modified, email, account_id, invite_token, state, name, policy, release_update, latest_feature, roles, application_notification_subscriptions].hash
293
+ [id, created, modified, email, account_id, invite_token, state, name, policy, release_update, latest_feature, roles, application_notification_subscriptions, auth_method].hash
284
294
  end
285
295
 
286
296
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.7
11
11
  =end
12
12
 
13
13
  module TalonOne
14
- VERSION = '1.2.0'
14
+ VERSION = '1.3.0'
15
15
  end
@@ -582,6 +582,11 @@ describe 'ManagementApi' do
582
582
  # @option opts [Integer] :page_size The number of items to include in this response. When omitted, the maximum value of 1000 will be used.
583
583
  # @option opts [Integer] :skip Skips the given number of items when paging through large result sets.
584
584
  # @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.
585
+ # @option opts [Integer] :application_id
586
+ # @option opts [DateTime] :created_before Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp.
587
+ # @option opts [DateTime] :created_after Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp.
588
+ # @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.
589
+ # @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.
585
590
  # @return [InlineResponse20025]
586
591
  describe 'get_changes test' do
587
592
  it 'should work' do
@@ -68,12 +68,6 @@ describe 'Application' do
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "key"' do
72
- it 'should work' do
73
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
- end
75
- end
76
-
77
71
  describe 'test attribute "timezone"' do
78
72
  it 'should work' do
79
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -108,6 +102,12 @@ describe 'Application' do
108
102
  end
109
103
  end
110
104
 
105
+ describe 'test attribute "key"' do
106
+ it 'should work' do
107
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ end
109
+ end
110
+
111
111
  describe 'test attribute "loyalty_programs"' do
112
112
  it 'should work' do
113
113
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -154,6 +154,18 @@ describe 'Campaign' do
154
154
  end
155
155
  end
156
156
 
157
+ describe 'test attribute "discount_effect_count"' do
158
+ it 'should work' do
159
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
160
+ end
161
+ end
162
+
163
+ describe 'test attribute "coupon_creation_count"' do
164
+ it 'should work' do
165
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
166
+ end
167
+ end
168
+
157
169
  describe 'test attribute "last_activity"' do
158
170
  it 'should work' do
159
171
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -38,6 +38,12 @@ describe 'InlineResponse20025' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "has_more"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
41
47
  describe 'test attribute "data"' do
42
48
  it 'should work' do
43
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -56,4 +56,10 @@ describe 'IntegrationState' do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "coupon"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
59
65
  end
@@ -35,7 +35,7 @@ describe 'LimitConfig' do
35
35
  describe 'test attribute "action"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["redeemCoupon", "redeemReferral", "setDiscount", "createCoupon"])
38
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["redeemCoupon", "redeemReferral", "setDiscount", "createCoupon", "setDiscountEffect"])
39
39
  # validator.allowable_values.each do |value|
40
40
  # expect { @instance.action = value }.not_to raise_error
41
41
  # end
@@ -44,12 +44,6 @@ describe 'NewApplication' do
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "key"' do
48
- it 'should work' do
49
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
- end
51
- end
52
-
53
47
  describe 'test attribute "timezone"' do
54
48
  it 'should work' do
55
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -84,4 +78,10 @@ describe 'NewApplication' do
84
78
  end
85
79
  end
86
80
 
81
+ describe 'test attribute "key"' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
87
  end
@@ -0,0 +1,83 @@
1
+ =begin
2
+ #Talon.One API
3
+
4
+ #The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.7
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TalonOne::NewSamlConnection
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'NewSamlConnection' do
21
+ before do
22
+ # run before each test
23
+ @instance = TalonOne::NewSamlConnection.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of NewSamlConnection' do
31
+ it 'should create an instance of NewSamlConnection' do
32
+ expect(@instance).to be_instance_of(TalonOne::NewSamlConnection)
33
+ end
34
+ end
35
+ describe 'test attribute "name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "enabled"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "issuer"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "sign_on_url"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "sign_out_url"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "metadata_url"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "x509certificate"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "audience"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ end
@@ -0,0 +1,107 @@
1
+ =begin
2
+ #Talon.One API
3
+
4
+ #The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.7
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TalonOne::SamlConnection
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'SamlConnection' do
21
+ before do
22
+ # run before each test
23
+ @instance = TalonOne::SamlConnection.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SamlConnection' do
31
+ it 'should create an instance of SamlConnection' do
32
+ expect(@instance).to be_instance_of(TalonOne::SamlConnection)
33
+ end
34
+ end
35
+ describe 'test attribute "id"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "created"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "account_id"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "assertion_consumer_service_url"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "name"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "enabled"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "issuer"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "sign_on_url"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "sign_out_url"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
89
+ describe 'test attribute "metadata_url"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "x509certificate"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ describe 'test attribute "audience"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
107
+ end
@@ -0,0 +1,81 @@
1
+ =begin
2
+ #Talon.One API
3
+
4
+ #The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.7
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TalonOne::UpdateApplication
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'UpdateApplication' do
21
+ before do
22
+ # run before each test
23
+ @instance = TalonOne::UpdateApplication.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UpdateApplication' do
31
+ it 'should create an instance of UpdateApplication' do
32
+ expect(@instance).to be_instance_of(TalonOne::UpdateApplication)
33
+ end
34
+ end
35
+ describe 'test attribute "name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "description"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "timezone"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "currency"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "case_sensitivity"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["sensitive", "insensitive-uppercase", "insensitive-lowercase"])
63
+ # validator.allowable_values.each do |value|
64
+ # expect { @instance.case_sensitivity = value }.not_to raise_error
65
+ # end
66
+ end
67
+ end
68
+
69
+ describe 'test attribute "attributes"' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ end
73
+ end
74
+
75
+ describe 'test attribute "limits"' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ end