talon_one 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -5
- data/docs/ApplicationCampaignStats.md +27 -0
- data/docs/ApplicationReferee.md +27 -0
- data/docs/AwardGiveawayEffectProps.md +25 -0
- data/docs/Campaign.md +2 -0
- data/docs/Coupon.md +1 -1
- data/docs/CustomEffect.md +41 -0
- data/docs/CustomEffectProps.md +19 -0
- data/docs/CustomerInventory.md +4 -2
- data/docs/CustomerProfileIntegrationRequestV2.md +1 -1
- data/docs/Environment.md +10 -0
- data/docs/Giveaway.md +33 -0
- data/docs/GiveawaysPool.md +33 -0
- data/docs/ImportEntity.md +17 -0
- data/docs/InlineResponse20010.md +3 -3
- data/docs/InlineResponse20011.md +4 -2
- data/docs/InlineResponse20012.md +2 -4
- data/docs/InlineResponse20013.md +3 -3
- data/docs/InlineResponse20014.md +2 -2
- data/docs/InlineResponse20015.md +2 -2
- data/docs/InlineResponse20016.md +3 -3
- data/docs/InlineResponse20017.md +2 -2
- data/docs/InlineResponse20018.md +3 -3
- data/docs/InlineResponse20019.md +5 -3
- data/docs/InlineResponse20020.md +2 -2
- data/docs/InlineResponse20021.md +1 -1
- data/docs/InlineResponse20022.md +1 -1
- data/docs/InlineResponse20023.md +1 -1
- data/docs/InlineResponse20024.md +1 -1
- data/docs/InlineResponse20025.md +1 -1
- data/docs/InlineResponse20026.md +1 -1
- data/docs/InlineResponse20027.md +4 -2
- data/docs/InlineResponse20028.md +2 -4
- data/docs/InlineResponse20029.md +1 -1
- data/docs/InlineResponse2006.md +2 -2
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +2 -2
- data/docs/{InlineResponse20030.md → InlineResponse201.md} +3 -3
- data/docs/IntegrationApi.md +77 -11
- data/docs/IntegrationRequest.md +1 -1
- data/docs/IntegrationStateV2.md +3 -1
- data/docs/InventoryCoupon.md +53 -0
- data/docs/LoyaltyProgram.md +3 -1
- data/docs/LoyaltyProgramEntity.md +17 -0
- data/docs/LoyaltyTier.md +25 -0
- data/docs/ManagementApi.md +370 -69
- data/docs/NewCustomEffect.md +29 -0
- data/docs/NewGiveawaysPool.md +21 -0
- data/docs/NewLoyaltyTier.md +19 -0
- data/docs/NewReferral.md +10 -6
- data/docs/NewReferralsForMultipleAdvocates.md +31 -0
- data/docs/NewRole.md +1 -1
- data/docs/Referral.md +13 -7
- data/docs/ReferralConstraints.md +21 -0
- data/docs/Role.md +8 -4
- data/docs/UpdateCustomEffect.md +29 -0
- data/docs/UpdateLoyaltyTier.md +19 -0
- data/docs/UpdateReferral.md +25 -0
- data/docs/UpdateRole.md +1 -1
- data/docs/WillAwardGiveawayEffectProps.md +21 -0
- data/lib/talon_one.rb +21 -1
- data/lib/talon_one/api/integration_api.rb +80 -10
- data/lib/talon_one/api/management_api.rb +460 -97
- data/lib/talon_one/models/application_campaign_stats.rb +288 -0
- data/lib/talon_one/models/application_referee.rb +288 -0
- data/lib/talon_one/models/attribute.rb +2 -2
- data/lib/talon_one/models/award_giveaway_effect_props.rb +273 -0
- data/lib/talon_one/models/campaign.rb +11 -1
- data/lib/talon_one/models/coupon.rb +1 -1
- data/lib/talon_one/models/custom_effect.rb +377 -0
- data/lib/talon_one/models/custom_effect_props.rb +228 -0
- data/lib/talon_one/models/customer_inventory.rb +15 -4
- data/lib/talon_one/models/customer_profile_integration_request_v2.rb +1 -1
- data/lib/talon_one/models/environment.rb +61 -1
- data/lib/talon_one/models/export.rb +2 -2
- data/lib/talon_one/models/giveaway.rb +308 -0
- data/lib/talon_one/models/giveaways_pool.rb +315 -0
- data/lib/talon_one/models/import_entity.rb +207 -0
- data/lib/talon_one/models/inline_response20010.rb +11 -11
- data/lib/talon_one/models/inline_response20011.rb +11 -7
- data/lib/talon_one/models/inline_response20012.rb +6 -10
- data/lib/talon_one/models/inline_response20013.rb +11 -11
- data/lib/talon_one/models/inline_response20014.rb +10 -10
- data/lib/talon_one/models/inline_response20015.rb +1 -6
- data/lib/talon_one/models/inline_response20016.rb +13 -8
- data/lib/talon_one/models/inline_response20017.rb +10 -10
- data/lib/talon_one/models/inline_response20018.rb +11 -11
- data/lib/talon_one/models/inline_response20019.rb +11 -7
- data/lib/talon_one/models/inline_response20020.rb +6 -1
- data/lib/talon_one/models/inline_response20021.rb +1 -1
- data/lib/talon_one/models/inline_response20022.rb +1 -1
- data/lib/talon_one/models/inline_response20023.rb +1 -1
- data/lib/talon_one/models/inline_response20024.rb +1 -1
- data/lib/talon_one/models/inline_response20025.rb +1 -1
- data/lib/talon_one/models/inline_response20026.rb +1 -1
- data/lib/talon_one/models/inline_response20027.rb +11 -7
- data/lib/talon_one/models/inline_response20028.rb +7 -11
- data/lib/talon_one/models/inline_response20029.rb +1 -1
- data/lib/talon_one/models/inline_response2006.rb +10 -10
- data/lib/talon_one/models/inline_response2007.rb +11 -11
- data/lib/talon_one/models/inline_response2008.rb +1 -1
- data/lib/talon_one/models/inline_response2009.rb +10 -10
- data/lib/talon_one/models/{inline_response20030.rb → inline_response201.rb} +4 -4
- data/lib/talon_one/models/integration_request.rb +1 -1
- data/lib/talon_one/models/integration_state_v2.rb +15 -4
- data/lib/talon_one/models/inventory_coupon.rb +499 -0
- data/lib/talon_one/models/loyalty_program.rb +16 -4
- data/lib/talon_one/models/loyalty_program_entity.rb +212 -0
- data/lib/talon_one/models/loyalty_tier.rb +301 -0
- data/lib/talon_one/models/new_attribute.rb +2 -2
- data/lib/talon_one/models/new_custom_effect.rb +291 -0
- data/lib/talon_one/models/new_giveaways_pool.rb +234 -0
- data/lib/talon_one/models/new_loyalty_tier.rb +256 -0
- data/lib/talon_one/models/new_referral.rb +64 -19
- data/lib/talon_one/models/new_referrals_for_multiple_advocates.rb +349 -0
- data/lib/talon_one/models/new_role.rb +1 -1
- data/lib/talon_one/models/referral.rb +86 -47
- data/lib/talon_one/models/referral_constraints.rb +251 -0
- data/lib/talon_one/models/role.rb +44 -4
- data/lib/talon_one/models/update_custom_effect.rb +292 -0
- data/lib/talon_one/models/update_loyalty_tier.rb +256 -0
- data/lib/talon_one/models/update_referral.rb +271 -0
- data/lib/talon_one/models/update_role.rb +1 -1
- data/lib/talon_one/models/will_award_giveaway_effect_props.rb +243 -0
- data/lib/talon_one/version.rb +1 -1
- data/spec/api/integration_api_spec.rb +19 -5
- data/spec/api/management_api_spec.rb +102 -33
- data/spec/models/application_campaign_stats_spec.rb +71 -0
- data/spec/models/application_referee_spec.rb +71 -0
- data/spec/models/attribute_spec.rb +1 -1
- data/spec/models/award_giveaway_effect_props_spec.rb +65 -0
- data/spec/models/campaign_spec.rb +7 -1
- data/spec/models/custom_effect_props_spec.rb +47 -0
- data/spec/models/custom_effect_spec.rb +113 -0
- data/spec/models/customer_inventory_spec.rb +6 -0
- data/spec/models/customer_profile_integration_request_v2_spec.rb +1 -1
- data/spec/models/environment_spec.rb +30 -0
- data/spec/models/export_spec.rb +1 -1
- data/spec/models/giveaway_spec.rb +89 -0
- data/spec/models/giveaways_pool_spec.rb +89 -0
- data/spec/models/import_entity_spec.rb +41 -0
- data/spec/models/inline_response20010_spec.rb +1 -1
- data/spec/models/inline_response20011_spec.rb +6 -0
- data/spec/models/inline_response20012_spec.rb +0 -6
- data/spec/models/inline_response20013_spec.rb +1 -1
- data/spec/models/inline_response20014_spec.rb +1 -1
- data/spec/models/inline_response20016_spec.rb +1 -1
- data/spec/models/inline_response20017_spec.rb +1 -1
- data/spec/models/inline_response20018_spec.rb +1 -1
- data/spec/models/inline_response20019_spec.rb +6 -0
- data/spec/models/inline_response20027_spec.rb +6 -0
- data/spec/models/inline_response20028_spec.rb +0 -6
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/{inline_response20030_spec.rb → inline_response201_spec.rb} +6 -6
- data/spec/models/integration_request_spec.rb +1 -1
- data/spec/models/integration_state_v2_spec.rb +6 -0
- data/spec/models/inventory_coupon_spec.rb +149 -0
- data/spec/models/loyalty_program_entity_spec.rb +41 -0
- data/spec/models/loyalty_program_spec.rb +6 -0
- data/spec/models/loyalty_tier_spec.rb +65 -0
- data/spec/models/new_attribute_spec.rb +1 -1
- data/spec/models/new_campaign_spec.rb +1 -1
- data/spec/models/new_custom_effect_spec.rb +77 -0
- data/spec/models/new_giveaways_pool_spec.rb +53 -0
- data/spec/models/new_loyalty_tier_spec.rb +47 -0
- data/spec/models/new_referral_spec.rb +17 -5
- data/spec/models/new_referrals_for_multiple_advocates_spec.rb +83 -0
- data/spec/models/referral_constraints_spec.rb +53 -0
- data/spec/models/referral_spec.rb +21 -3
- data/spec/models/role_spec.rb +12 -0
- data/spec/models/update_campaign_spec.rb +1 -1
- data/spec/models/update_custom_effect_spec.rb +77 -0
- data/spec/models/update_loyalty_tier_spec.rb +47 -0
- data/spec/models/update_referral_spec.rb +65 -0
- data/spec/models/will_award_giveaway_effect_props_spec.rb +53 -0
- metadata +86 -6
@@ -14,14 +14,14 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class InlineResponse20017
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :has_more
|
18
18
|
|
19
19
|
attr_accessor :data
|
20
20
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
24
|
-
:'
|
24
|
+
:'has_more' => :'hasMore',
|
25
25
|
:'data' => :'data'
|
26
26
|
}
|
27
27
|
end
|
@@ -29,7 +29,7 @@ module TalonOne
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.openapi_types
|
31
31
|
{
|
32
|
-
:'
|
32
|
+
:'has_more' => :'Boolean',
|
33
33
|
:'data' => :'Array<ApplicationEvent>'
|
34
34
|
}
|
35
35
|
end
|
@@ -55,8 +55,8 @@ module TalonOne
|
|
55
55
|
h[k.to_sym] = v
|
56
56
|
}
|
57
57
|
|
58
|
-
if attributes.key?(:'
|
59
|
-
self.
|
58
|
+
if attributes.key?(:'has_more')
|
59
|
+
self.has_more = attributes[:'has_more']
|
60
60
|
end
|
61
61
|
|
62
62
|
if attributes.key?(:'data')
|
@@ -70,8 +70,8 @@ module TalonOne
|
|
70
70
|
# @return Array for valid properties with the reasons
|
71
71
|
def list_invalid_properties
|
72
72
|
invalid_properties = Array.new
|
73
|
-
if @
|
74
|
-
invalid_properties.push('invalid value for "
|
73
|
+
if @has_more.nil?
|
74
|
+
invalid_properties.push('invalid value for "has_more", has_more cannot be nil.')
|
75
75
|
end
|
76
76
|
|
77
77
|
if @data.nil?
|
@@ -84,7 +84,7 @@ module TalonOne
|
|
84
84
|
# Check to see if the all the properties in the model are valid
|
85
85
|
# @return true if the model is valid
|
86
86
|
def valid?
|
87
|
-
return false if @
|
87
|
+
return false if @has_more.nil?
|
88
88
|
return false if @data.nil?
|
89
89
|
true
|
90
90
|
end
|
@@ -94,7 +94,7 @@ module TalonOne
|
|
94
94
|
def ==(o)
|
95
95
|
return true if self.equal?(o)
|
96
96
|
self.class == o.class &&
|
97
|
-
|
97
|
+
has_more == o.has_more &&
|
98
98
|
data == o.data
|
99
99
|
end
|
100
100
|
|
@@ -107,7 +107,7 @@ module TalonOne
|
|
107
107
|
# Calculates hash code according to all attributes.
|
108
108
|
# @return [Integer] Hash code
|
109
109
|
def hash
|
110
|
-
[
|
110
|
+
[has_more, data].hash
|
111
111
|
end
|
112
112
|
|
113
113
|
# Builds the object from hash
|
@@ -14,14 +14,14 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class InlineResponse20018
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :total_result_size
|
18
18
|
|
19
19
|
attr_accessor :data
|
20
20
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
24
|
-
:'
|
24
|
+
:'total_result_size' => :'totalResultSize',
|
25
25
|
:'data' => :'data'
|
26
26
|
}
|
27
27
|
end
|
@@ -29,8 +29,8 @@ module TalonOne
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.openapi_types
|
31
31
|
{
|
32
|
-
:'
|
33
|
-
:'data' => :'Array<
|
32
|
+
:'total_result_size' => :'Integer',
|
33
|
+
:'data' => :'Array<String>'
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
@@ -55,8 +55,8 @@ module TalonOne
|
|
55
55
|
h[k.to_sym] = v
|
56
56
|
}
|
57
57
|
|
58
|
-
if attributes.key?(:'
|
59
|
-
self.
|
58
|
+
if attributes.key?(:'total_result_size')
|
59
|
+
self.total_result_size = attributes[:'total_result_size']
|
60
60
|
end
|
61
61
|
|
62
62
|
if attributes.key?(:'data')
|
@@ -70,8 +70,8 @@ module TalonOne
|
|
70
70
|
# @return Array for valid properties with the reasons
|
71
71
|
def list_invalid_properties
|
72
72
|
invalid_properties = Array.new
|
73
|
-
if @
|
74
|
-
invalid_properties.push('invalid value for "
|
73
|
+
if @total_result_size.nil?
|
74
|
+
invalid_properties.push('invalid value for "total_result_size", total_result_size cannot be nil.')
|
75
75
|
end
|
76
76
|
|
77
77
|
if @data.nil?
|
@@ -84,7 +84,7 @@ module TalonOne
|
|
84
84
|
# Check to see if the all the properties in the model are valid
|
85
85
|
# @return true if the model is valid
|
86
86
|
def valid?
|
87
|
-
return false if @
|
87
|
+
return false if @total_result_size.nil?
|
88
88
|
return false if @data.nil?
|
89
89
|
true
|
90
90
|
end
|
@@ -94,7 +94,7 @@ module TalonOne
|
|
94
94
|
def ==(o)
|
95
95
|
return true if self.equal?(o)
|
96
96
|
self.class == o.class &&
|
97
|
-
|
97
|
+
total_result_size == o.total_result_size &&
|
98
98
|
data == o.data
|
99
99
|
end
|
100
100
|
|
@@ -107,7 +107,7 @@ module TalonOne
|
|
107
107
|
# Calculates hash code according to all attributes.
|
108
108
|
# @return [Integer] Hash code
|
109
109
|
def hash
|
110
|
-
[
|
110
|
+
[total_result_size, data].hash
|
111
111
|
end
|
112
112
|
|
113
113
|
# Builds the object from hash
|
@@ -14,6 +14,8 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TalonOne
|
16
16
|
class InlineResponse20019
|
17
|
+
attr_accessor :has_more
|
18
|
+
|
17
19
|
attr_accessor :total_result_size
|
18
20
|
|
19
21
|
attr_accessor :data
|
@@ -21,6 +23,7 @@ module TalonOne
|
|
21
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
24
|
def self.attribute_map
|
23
25
|
{
|
26
|
+
:'has_more' => :'hasMore',
|
24
27
|
:'total_result_size' => :'totalResultSize',
|
25
28
|
:'data' => :'data'
|
26
29
|
}
|
@@ -29,8 +32,9 @@ module TalonOne
|
|
29
32
|
# Attribute type mapping.
|
30
33
|
def self.openapi_types
|
31
34
|
{
|
35
|
+
:'has_more' => :'Boolean',
|
32
36
|
:'total_result_size' => :'Integer',
|
33
|
-
:'data' => :'Array<
|
37
|
+
:'data' => :'Array<Audience>'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -55,6 +59,10 @@ module TalonOne
|
|
55
59
|
h[k.to_sym] = v
|
56
60
|
}
|
57
61
|
|
62
|
+
if attributes.key?(:'has_more')
|
63
|
+
self.has_more = attributes[:'has_more']
|
64
|
+
end
|
65
|
+
|
58
66
|
if attributes.key?(:'total_result_size')
|
59
67
|
self.total_result_size = attributes[:'total_result_size']
|
60
68
|
end
|
@@ -70,10 +78,6 @@ module TalonOne
|
|
70
78
|
# @return Array for valid properties with the reasons
|
71
79
|
def list_invalid_properties
|
72
80
|
invalid_properties = Array.new
|
73
|
-
if @total_result_size.nil?
|
74
|
-
invalid_properties.push('invalid value for "total_result_size", total_result_size cannot be nil.')
|
75
|
-
end
|
76
|
-
|
77
81
|
if @data.nil?
|
78
82
|
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
79
83
|
end
|
@@ -84,7 +88,6 @@ module TalonOne
|
|
84
88
|
# Check to see if the all the properties in the model are valid
|
85
89
|
# @return true if the model is valid
|
86
90
|
def valid?
|
87
|
-
return false if @total_result_size.nil?
|
88
91
|
return false if @data.nil?
|
89
92
|
true
|
90
93
|
end
|
@@ -94,6 +97,7 @@ module TalonOne
|
|
94
97
|
def ==(o)
|
95
98
|
return true if self.equal?(o)
|
96
99
|
self.class == o.class &&
|
100
|
+
has_more == o.has_more &&
|
97
101
|
total_result_size == o.total_result_size &&
|
98
102
|
data == o.data
|
99
103
|
end
|
@@ -107,7 +111,7 @@ module TalonOne
|
|
107
111
|
# Calculates hash code according to all attributes.
|
108
112
|
# @return [Integer] Hash code
|
109
113
|
def hash
|
110
|
-
[total_result_size, data].hash
|
114
|
+
[has_more, total_result_size, data].hash
|
111
115
|
end
|
112
116
|
|
113
117
|
# Builds the object from hash
|
@@ -30,7 +30,7 @@ module TalonOne
|
|
30
30
|
def self.openapi_types
|
31
31
|
{
|
32
32
|
:'total_result_size' => :'Integer',
|
33
|
-
:'data' => :'Array<
|
33
|
+
:'data' => :'Array<Attribute>'
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
@@ -70,6 +70,10 @@ module TalonOne
|
|
70
70
|
# @return Array for valid properties with the reasons
|
71
71
|
def list_invalid_properties
|
72
72
|
invalid_properties = Array.new
|
73
|
+
if @total_result_size.nil?
|
74
|
+
invalid_properties.push('invalid value for "total_result_size", total_result_size cannot be nil.')
|
75
|
+
end
|
76
|
+
|
73
77
|
if @data.nil?
|
74
78
|
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
75
79
|
end
|
@@ -80,6 +84,7 @@ module TalonOne
|
|
80
84
|
# Check to see if the all the properties in the model are valid
|
81
85
|
# @return true if the model is valid
|
82
86
|
def valid?
|
87
|
+
return false if @total_result_size.nil?
|
83
88
|
return false if @data.nil?
|
84
89
|
true
|
85
90
|
end
|
@@ -16,12 +16,15 @@ module TalonOne
|
|
16
16
|
class InlineResponse20027
|
17
17
|
attr_accessor :total_result_size
|
18
18
|
|
19
|
+
attr_accessor :has_more
|
20
|
+
|
19
21
|
attr_accessor :data
|
20
22
|
|
21
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
24
|
def self.attribute_map
|
23
25
|
{
|
24
26
|
:'total_result_size' => :'totalResultSize',
|
27
|
+
:'has_more' => :'hasMore',
|
25
28
|
:'data' => :'data'
|
26
29
|
}
|
27
30
|
end
|
@@ -30,7 +33,8 @@ module TalonOne
|
|
30
33
|
def self.openapi_types
|
31
34
|
{
|
32
35
|
:'total_result_size' => :'Integer',
|
33
|
-
:'
|
36
|
+
:'has_more' => :'Boolean',
|
37
|
+
:'data' => :'Array<Change>'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -59,6 +63,10 @@ module TalonOne
|
|
59
63
|
self.total_result_size = attributes[:'total_result_size']
|
60
64
|
end
|
61
65
|
|
66
|
+
if attributes.key?(:'has_more')
|
67
|
+
self.has_more = attributes[:'has_more']
|
68
|
+
end
|
69
|
+
|
62
70
|
if attributes.key?(:'data')
|
63
71
|
if (value = attributes[:'data']).is_a?(Array)
|
64
72
|
self.data = value
|
@@ -70,10 +78,6 @@ module TalonOne
|
|
70
78
|
# @return Array for valid properties with the reasons
|
71
79
|
def list_invalid_properties
|
72
80
|
invalid_properties = Array.new
|
73
|
-
if @total_result_size.nil?
|
74
|
-
invalid_properties.push('invalid value for "total_result_size", total_result_size cannot be nil.')
|
75
|
-
end
|
76
|
-
|
77
81
|
if @data.nil?
|
78
82
|
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
79
83
|
end
|
@@ -84,7 +88,6 @@ module TalonOne
|
|
84
88
|
# Check to see if the all the properties in the model are valid
|
85
89
|
# @return true if the model is valid
|
86
90
|
def valid?
|
87
|
-
return false if @total_result_size.nil?
|
88
91
|
return false if @data.nil?
|
89
92
|
true
|
90
93
|
end
|
@@ -95,6 +98,7 @@ module TalonOne
|
|
95
98
|
return true if self.equal?(o)
|
96
99
|
self.class == o.class &&
|
97
100
|
total_result_size == o.total_result_size &&
|
101
|
+
has_more == o.has_more &&
|
98
102
|
data == o.data
|
99
103
|
end
|
100
104
|
|
@@ -107,7 +111,7 @@ module TalonOne
|
|
107
111
|
# Calculates hash code according to all attributes.
|
108
112
|
# @return [Integer] Hash code
|
109
113
|
def hash
|
110
|
-
[total_result_size, data].hash
|
114
|
+
[total_result_size, has_more, data].hash
|
111
115
|
end
|
112
116
|
|
113
117
|
# Builds the object from hash
|
@@ -16,15 +16,12 @@ module TalonOne
|
|
16
16
|
class InlineResponse20028
|
17
17
|
attr_accessor :total_result_size
|
18
18
|
|
19
|
-
attr_accessor :has_more
|
20
|
-
|
21
19
|
attr_accessor :data
|
22
20
|
|
23
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
22
|
def self.attribute_map
|
25
23
|
{
|
26
24
|
:'total_result_size' => :'totalResultSize',
|
27
|
-
:'has_more' => :'hasMore',
|
28
25
|
:'data' => :'data'
|
29
26
|
}
|
30
27
|
end
|
@@ -33,8 +30,7 @@ module TalonOne
|
|
33
30
|
def self.openapi_types
|
34
31
|
{
|
35
32
|
:'total_result_size' => :'Integer',
|
36
|
-
:'
|
37
|
-
:'data' => :'Array<Change>'
|
33
|
+
:'data' => :'Array<Export>'
|
38
34
|
}
|
39
35
|
end
|
40
36
|
|
@@ -63,10 +59,6 @@ module TalonOne
|
|
63
59
|
self.total_result_size = attributes[:'total_result_size']
|
64
60
|
end
|
65
61
|
|
66
|
-
if attributes.key?(:'has_more')
|
67
|
-
self.has_more = attributes[:'has_more']
|
68
|
-
end
|
69
|
-
|
70
62
|
if attributes.key?(:'data')
|
71
63
|
if (value = attributes[:'data']).is_a?(Array)
|
72
64
|
self.data = value
|
@@ -78,6 +70,10 @@ module TalonOne
|
|
78
70
|
# @return Array for valid properties with the reasons
|
79
71
|
def list_invalid_properties
|
80
72
|
invalid_properties = Array.new
|
73
|
+
if @total_result_size.nil?
|
74
|
+
invalid_properties.push('invalid value for "total_result_size", total_result_size cannot be nil.')
|
75
|
+
end
|
76
|
+
|
81
77
|
if @data.nil?
|
82
78
|
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
83
79
|
end
|
@@ -88,6 +84,7 @@ module TalonOne
|
|
88
84
|
# Check to see if the all the properties in the model are valid
|
89
85
|
# @return true if the model is valid
|
90
86
|
def valid?
|
87
|
+
return false if @total_result_size.nil?
|
91
88
|
return false if @data.nil?
|
92
89
|
true
|
93
90
|
end
|
@@ -98,7 +95,6 @@ module TalonOne
|
|
98
95
|
return true if self.equal?(o)
|
99
96
|
self.class == o.class &&
|
100
97
|
total_result_size == o.total_result_size &&
|
101
|
-
has_more == o.has_more &&
|
102
98
|
data == o.data
|
103
99
|
end
|
104
100
|
|
@@ -111,7 +107,7 @@ module TalonOne
|
|
111
107
|
# Calculates hash code according to all attributes.
|
112
108
|
# @return [Integer] Hash code
|
113
109
|
def hash
|
114
|
-
[total_result_size,
|
110
|
+
[total_result_size, data].hash
|
115
111
|
end
|
116
112
|
|
117
113
|
# Builds the object from hash
|