talon_one 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AddLoyaltyPoints.md +2 -2
  4. data/docs/CustomEffect.md +1 -1
  5. data/docs/InlineResponse2001.md +1 -1
  6. data/docs/InlineResponse20010.md +3 -3
  7. data/docs/InlineResponse20011.md +3 -3
  8. data/docs/InlineResponse20012.md +1 -1
  9. data/docs/InlineResponse20013.md +2 -2
  10. data/docs/InlineResponse20014.md +3 -5
  11. data/docs/InlineResponse20015.md +4 -2
  12. data/docs/InlineResponse20016.md +2 -4
  13. data/docs/InlineResponse20017.md +4 -2
  14. data/docs/InlineResponse20018.md +2 -2
  15. data/docs/InlineResponse20019.md +1 -1
  16. data/docs/InlineResponse2002.md +3 -3
  17. data/docs/InlineResponse20020.md +2 -4
  18. data/docs/InlineResponse20021.md +3 -3
  19. data/docs/InlineResponse20022.md +1 -1
  20. data/docs/InlineResponse20023.md +3 -1
  21. data/docs/InlineResponse20024.md +1 -1
  22. data/docs/InlineResponse20025.md +2 -2
  23. data/docs/InlineResponse20026.md +2 -2
  24. data/docs/InlineResponse20027.md +3 -3
  25. data/docs/InlineResponse20028.md +3 -5
  26. data/docs/InlineResponse20029.md +1 -1
  27. data/docs/InlineResponse2003.md +1 -1
  28. data/docs/InlineResponse20030.md +5 -3
  29. data/docs/InlineResponse20031.md +1 -1
  30. data/docs/InlineResponse20032.md +1 -1
  31. data/docs/InlineResponse20033.md +1 -1
  32. data/docs/InlineResponse20034.md +1 -1
  33. data/docs/InlineResponse20035.md +1 -1
  34. data/docs/InlineResponse20036.md +1 -1
  35. data/docs/InlineResponse20037.md +2 -4
  36. data/docs/InlineResponse20038.md +4 -2
  37. data/docs/InlineResponse20039.md +1 -1
  38. data/docs/InlineResponse2004.md +1 -1
  39. data/docs/InlineResponse20040.md +19 -0
  40. data/docs/InlineResponse2005.md +1 -1
  41. data/docs/InlineResponse2006.md +1 -1
  42. data/docs/InlineResponse2007.md +2 -2
  43. data/docs/InlineResponse2008.md +1 -1
  44. data/docs/InlineResponse2009.md +1 -1
  45. data/docs/IntegrationApi.md +26 -26
  46. data/docs/ManagementApi.md +141 -141
  47. data/docs/MultiApplicationEntity.md +1 -1
  48. data/docs/NewCustomEffect.md +1 -1
  49. data/docs/NewOutgoingIntegrationWebhook.md +19 -0
  50. data/docs/NewWebhook.md +3 -3
  51. data/docs/OutgoingIntegrationConfiguration.md +3 -1
  52. data/docs/OutgoingIntegrationWebhookTemplate.md +3 -1
  53. data/docs/ReopenSessionResponse.md +17 -0
  54. data/docs/StrikethroughCustomEffectPerItemProps.md +21 -0
  55. data/docs/UpdateCustomEffect.md +1 -1
  56. data/docs/Webhook.md +3 -3
  57. data/lib/talon_one/api/integration_api.rb +48 -48
  58. data/lib/talon_one/api/management_api.rb +234 -234
  59. data/lib/talon_one/models/add_loyalty_points.rb +2 -2
  60. data/lib/talon_one/models/custom_effect.rb +1 -1
  61. data/lib/talon_one/models/inline_response2001.rb +1 -1
  62. data/lib/talon_one/models/inline_response20010.rb +11 -11
  63. data/lib/talon_one/models/inline_response20011.rb +11 -11
  64. data/lib/talon_one/models/inline_response20012.rb +1 -1
  65. data/lib/talon_one/models/inline_response20013.rb +1 -3
  66. data/lib/talon_one/models/inline_response20014.rb +9 -11
  67. data/lib/talon_one/models/inline_response20015.rb +11 -7
  68. data/lib/talon_one/models/inline_response20016.rb +7 -11
  69. data/lib/talon_one/models/inline_response20017.rb +11 -7
  70. data/lib/talon_one/models/inline_response20018.rb +10 -10
  71. data/lib/talon_one/models/inline_response20019.rb +1 -1
  72. data/lib/talon_one/models/inline_response2002.rb +11 -11
  73. data/lib/talon_one/models/inline_response20020.rb +7 -11
  74. data/lib/talon_one/models/inline_response20021.rb +10 -10
  75. data/lib/talon_one/models/inline_response20022.rb +1 -1
  76. data/lib/talon_one/models/inline_response20023.rb +10 -6
  77. data/lib/talon_one/models/inline_response20024.rb +1 -1
  78. data/lib/talon_one/models/inline_response20025.rb +6 -1
  79. data/lib/talon_one/models/inline_response20026.rb +1 -6
  80. data/lib/talon_one/models/inline_response20027.rb +11 -11
  81. data/lib/talon_one/models/inline_response20028.rb +7 -11
  82. data/lib/talon_one/models/inline_response20029.rb +1 -1
  83. data/lib/talon_one/models/inline_response2003.rb +1 -1
  84. data/lib/talon_one/models/inline_response20030.rb +11 -7
  85. data/lib/talon_one/models/inline_response20031.rb +1 -1
  86. data/lib/talon_one/models/inline_response20032.rb +1 -1
  87. data/lib/talon_one/models/inline_response20033.rb +1 -1
  88. data/lib/talon_one/models/inline_response20034.rb +1 -1
  89. data/lib/talon_one/models/inline_response20035.rb +1 -1
  90. data/lib/talon_one/models/inline_response20036.rb +1 -1
  91. data/lib/talon_one/models/inline_response20037.rb +7 -11
  92. data/lib/talon_one/models/inline_response20038.rb +11 -7
  93. data/lib/talon_one/models/inline_response20039.rb +1 -1
  94. data/lib/talon_one/models/inline_response2004.rb +1 -1
  95. data/lib/talon_one/models/inline_response20040.rb +227 -0
  96. data/lib/talon_one/models/inline_response2005.rb +1 -1
  97. data/lib/talon_one/models/inline_response2006.rb +1 -1
  98. data/lib/talon_one/models/inline_response2007.rb +10 -10
  99. data/lib/talon_one/models/inline_response2008.rb +1 -1
  100. data/lib/talon_one/models/inline_response2009.rb +1 -1
  101. data/lib/talon_one/models/multi_application_entity.rb +1 -1
  102. data/lib/talon_one/models/new_custom_effect.rb +1 -1
  103. data/lib/talon_one/models/new_outgoing_integration_webhook.rb +229 -0
  104. data/lib/talon_one/models/new_webhook.rb +3 -3
  105. data/lib/talon_one/models/outgoing_integration_configuration.rb +16 -1
  106. data/lib/talon_one/models/outgoing_integration_webhook_template.rb +53 -4
  107. data/lib/talon_one/models/reopen_session_response.rb +215 -0
  108. data/lib/talon_one/models/strikethrough_custom_effect_per_item_props.rb +243 -0
  109. data/lib/talon_one/models/update_custom_effect.rb +1 -1
  110. data/lib/talon_one/models/webhook.rb +3 -3
  111. data/lib/talon_one/version.rb +1 -1
  112. data/lib/talon_one.rb +4 -0
  113. data/spec/api/integration_api_spec.rb +9 -9
  114. data/spec/api/management_api_spec.rb +59 -59
  115. data/spec/models/inline_response20010_spec.rb +1 -1
  116. data/spec/models/inline_response20011_spec.rb +1 -1
  117. data/spec/models/inline_response20014_spec.rb +0 -6
  118. data/spec/models/inline_response20015_spec.rb +6 -0
  119. data/spec/models/inline_response20016_spec.rb +0 -6
  120. data/spec/models/inline_response20017_spec.rb +6 -0
  121. data/spec/models/inline_response20018_spec.rb +1 -1
  122. data/spec/models/inline_response20020_spec.rb +0 -6
  123. data/spec/models/inline_response20021_spec.rb +2 -2
  124. data/spec/models/inline_response20023_spec.rb +6 -0
  125. data/spec/models/inline_response20027_spec.rb +1 -1
  126. data/spec/models/inline_response20028_spec.rb +0 -6
  127. data/spec/models/inline_response2002_spec.rb +1 -1
  128. data/spec/models/inline_response20030_spec.rb +6 -0
  129. data/spec/models/inline_response20037_spec.rb +0 -6
  130. data/spec/models/inline_response20038_spec.rb +6 -0
  131. data/spec/models/inline_response20040_spec.rb +47 -0
  132. data/spec/models/inline_response2007_spec.rb +1 -1
  133. data/spec/models/new_outgoing_integration_webhook_spec.rb +47 -0
  134. data/spec/models/outgoing_integration_configuration_spec.rb +6 -0
  135. data/spec/models/outgoing_integration_webhook_template_spec.rb +10 -0
  136. data/spec/models/reopen_session_response_spec.rb +41 -0
  137. data/spec/models/strikethrough_custom_effect_per_item_props_spec.rb +53 -0
  138. metadata +18 -2
@@ -21,13 +21,13 @@ module TalonOne
21
21
  # Name / reason for the point addition.
22
22
  attr_accessor :name
23
23
 
24
- # The duration after which the added loyalty points should expire. The time format is an integer followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. If passed, `validUntil` should be omitted.
24
+ # The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks and months. Signifies the end of the day, week, or month. If passed, `validUntil` should be omitted.
25
25
  attr_accessor :validity_duration
26
26
 
27
27
  # Date and time when points should expire. The value should be provided in RFC 3339 format. If passed, `validityDuration` should be omitted.
28
28
  attr_accessor :valid_until
29
29
 
30
- # The amount of time before the points are considered valid. The time format is an integer followed by one letter indicating the time unit, like '30s', '40m', '1h', '5D', '7W', or 10M'. These rounding suffixes are also supported: - '_D' for rounding down. Can be used as a suffix after 'D', and signifies the start of the day. - '_U' for rounding up. Can be used as a suffix after 'D', 'W', and 'M', and signifies the end of the day, week, and month. If passed, `pendingUntil` should be omitted.
30
+ # The amount of time before the points are considered valid. The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks and months. Signifies the end of the day, week, or month.
31
31
  attr_accessor :pending_duration
32
32
 
33
33
  # Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, `pendingDuration` should be omitted.
@@ -27,7 +27,7 @@ module TalonOne
27
27
  # The time this entity was last modified.
28
28
  attr_accessor :modified
29
29
 
30
- # The IDs of the applications that are related to this entity.
30
+ # The IDs of the Applications that are related to this entity.
31
31
  attr_accessor :application_ids
32
32
 
33
33
  # Indicates if this effect is per item or not.
@@ -30,7 +30,7 @@ module TalonOne
30
30
  def self.openapi_types
31
31
  {
32
32
  :'has_more' => :'Boolean',
33
- :'data' => :'Array<LedgerTransactionLogEntryIntegrationAPI>'
33
+ :'data' => :'Array<CardLedgerTransactionLogEntryIntegrationAPI>'
34
34
  }
35
35
  end
36
36
 
@@ -14,14 +14,14 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class InlineResponse20010
17
- attr_accessor :total_result_size
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
- :'total_result_size' => :'totalResultSize',
24
+ :'has_more' => :'hasMore',
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
- :'total_result_size' => :'Integer',
33
- :'data' => :'Array<LoyaltyProgram>'
32
+ :'has_more' => :'Boolean',
33
+ :'data' => :'Array<CampaignTemplate>'
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?(:'total_result_size')
59
- self.total_result_size = attributes[:'total_result_size']
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 @total_result_size.nil?
74
- invalid_properties.push('invalid value for "total_result_size", total_result_size cannot be nil.')
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 @total_result_size.nil?
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
- total_result_size == o.total_result_size &&
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
- [total_result_size, data].hash
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 InlineResponse20011
17
- attr_accessor :has_more
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
- :'has_more' => :'hasMore',
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
- :'has_more' => :'Boolean',
33
- :'data' => :'Array<LoyaltyProgramTransaction>'
32
+ :'total_result_size' => :'Integer',
33
+ :'data' => :'Array<LoyaltyProgram>'
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?(:'has_more')
59
- self.has_more = attributes[:'has_more']
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 @has_more.nil?
74
- invalid_properties.push('invalid value for "has_more", has_more cannot be nil.')
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 @has_more.nil?
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
- has_more == o.has_more &&
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
- [has_more, data].hash
110
+ [total_result_size, data].hash
111
111
  end
112
112
 
113
113
  # Builds the object from hash
@@ -30,7 +30,7 @@ module TalonOne
30
30
  def self.openapi_types
31
31
  {
32
32
  :'has_more' => :'Boolean',
33
- :'data' => :'Array<LoyaltyCard>'
33
+ :'data' => :'Array<LoyaltyProgramTransaction>'
34
34
  }
35
35
  end
36
36
 
@@ -14,10 +14,8 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class InlineResponse20013
17
- # true means there is more data in the source collection to request..
18
17
  attr_accessor :has_more
19
18
 
20
- # List of loyalty card transaction logs.
21
19
  attr_accessor :data
22
20
 
23
21
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -32,7 +30,7 @@ module TalonOne
32
30
  def self.openapi_types
33
31
  {
34
32
  :'has_more' => :'Boolean',
35
- :'data' => :'Array<CardLedgerTransactionLogEntry>'
33
+ :'data' => :'Array<LoyaltyCard>'
36
34
  }
37
35
  end
38
36
 
@@ -14,17 +14,16 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class InlineResponse20014
17
+ # true means there is more data in the source collection to request..
17
18
  attr_accessor :has_more
18
19
 
19
- attr_accessor :total_result_size
20
-
20
+ # List of loyalty card transaction logs.
21
21
  attr_accessor :data
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
26
  :'has_more' => :'hasMore',
27
- :'total_result_size' => :'totalResultSize',
28
27
  :'data' => :'data'
29
28
  }
30
29
  end
@@ -33,8 +32,7 @@ module TalonOne
33
32
  def self.openapi_types
34
33
  {
35
34
  :'has_more' => :'Boolean',
36
- :'total_result_size' => :'Integer',
37
- :'data' => :'Array<CollectionWithoutPayload>'
35
+ :'data' => :'Array<CardLedgerTransactionLogEntry>'
38
36
  }
39
37
  end
40
38
 
@@ -63,10 +61,6 @@ module TalonOne
63
61
  self.has_more = attributes[:'has_more']
64
62
  end
65
63
 
66
- if attributes.key?(:'total_result_size')
67
- self.total_result_size = attributes[:'total_result_size']
68
- end
69
-
70
64
  if attributes.key?(:'data')
71
65
  if (value = attributes[:'data']).is_a?(Array)
72
66
  self.data = value
@@ -78,6 +72,10 @@ module TalonOne
78
72
  # @return Array for valid properties with the reasons
79
73
  def list_invalid_properties
80
74
  invalid_properties = Array.new
75
+ if @has_more.nil?
76
+ invalid_properties.push('invalid value for "has_more", has_more cannot be nil.')
77
+ end
78
+
81
79
  if @data.nil?
82
80
  invalid_properties.push('invalid value for "data", data cannot be nil.')
83
81
  end
@@ -88,6 +86,7 @@ module TalonOne
88
86
  # Check to see if the all the properties in the model are valid
89
87
  # @return true if the model is valid
90
88
  def valid?
89
+ return false if @has_more.nil?
91
90
  return false if @data.nil?
92
91
  true
93
92
  end
@@ -98,7 +97,6 @@ module TalonOne
98
97
  return true if self.equal?(o)
99
98
  self.class == o.class &&
100
99
  has_more == o.has_more &&
101
- total_result_size == o.total_result_size &&
102
100
  data == o.data
103
101
  end
104
102
 
@@ -111,7 +109,7 @@ module TalonOne
111
109
  # Calculates hash code according to all attributes.
112
110
  # @return [Integer] Hash code
113
111
  def hash
114
- [has_more, total_result_size, data].hash
112
+ [has_more, data].hash
115
113
  end
116
114
 
117
115
  # Builds the object from hash
@@ -16,12 +16,15 @@ module TalonOne
16
16
  class InlineResponse20015
17
17
  attr_accessor :has_more
18
18
 
19
+ attr_accessor :total_result_size
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
  :'has_more' => :'hasMore',
27
+ :'total_result_size' => :'totalResultSize',
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
  :'has_more' => :'Boolean',
33
- :'data' => :'Array<CollectionItem>'
36
+ :'total_result_size' => :'Integer',
37
+ :'data' => :'Array<CollectionWithoutPayload>'
34
38
  }
35
39
  end
36
40
 
@@ -59,6 +63,10 @@ module TalonOne
59
63
  self.has_more = attributes[:'has_more']
60
64
  end
61
65
 
66
+ if attributes.key?(:'total_result_size')
67
+ self.total_result_size = attributes[:'total_result_size']
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 @has_more.nil?
74
- invalid_properties.push('invalid value for "has_more", has_more 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 @has_more.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
  has_more == o.has_more &&
101
+ total_result_size == o.total_result_size &&
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
- [has_more, data].hash
114
+ [has_more, total_result_size, data].hash
111
115
  end
112
116
 
113
117
  # Builds the object from hash
@@ -16,15 +16,12 @@ module TalonOne
16
16
  class InlineResponse20016
17
17
  attr_accessor :has_more
18
18
 
19
- attr_accessor :total_result_size
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
  :'has_more' => :'hasMore',
27
- :'total_result_size' => :'totalResultSize',
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
  :'has_more' => :'Boolean',
36
- :'total_result_size' => :'Integer',
37
- :'data' => :'Array<Collection>'
33
+ :'data' => :'Array<CollectionItem>'
38
34
  }
39
35
  end
40
36
 
@@ -63,10 +59,6 @@ module TalonOne
63
59
  self.has_more = attributes[:'has_more']
64
60
  end
65
61
 
66
- if attributes.key?(:'total_result_size')
67
- self.total_result_size = attributes[:'total_result_size']
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 @has_more.nil?
74
+ invalid_properties.push('invalid value for "has_more", has_more 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 @has_more.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
  has_more == o.has_more &&
101
- total_result_size == o.total_result_size &&
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
- [has_more, total_result_size, data].hash
110
+ [has_more, data].hash
115
111
  end
116
112
 
117
113
  # Builds the object from hash
@@ -16,12 +16,15 @@ module TalonOne
16
16
  class InlineResponse20017
17
17
  attr_accessor :has_more
18
18
 
19
+ attr_accessor :total_result_size
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
  :'has_more' => :'hasMore',
27
+ :'total_result_size' => :'totalResultSize',
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
  :'has_more' => :'Boolean',
33
- :'data' => :'Array<AccessLogEntry>'
36
+ :'total_result_size' => :'Integer',
37
+ :'data' => :'Array<Collection>'
34
38
  }
35
39
  end
36
40
 
@@ -59,6 +63,10 @@ module TalonOne
59
63
  self.has_more = attributes[:'has_more']
60
64
  end
61
65
 
66
+ if attributes.key?(:'total_result_size')
67
+ self.total_result_size = attributes[:'total_result_size']
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 @has_more.nil?
74
- invalid_properties.push('invalid value for "has_more", has_more 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 @has_more.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
  has_more == o.has_more &&
101
+ total_result_size == o.total_result_size &&
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
- [has_more, data].hash
114
+ [has_more, total_result_size, data].hash
111
115
  end
112
116
 
113
117
  # Builds the object from hash
@@ -14,14 +14,14 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class InlineResponse20018
17
- attr_accessor :total_result_size
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
- :'total_result_size' => :'totalResultSize',
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
- :'total_result_size' => :'Integer',
32
+ :'has_more' => :'Boolean',
33
33
  :'data' => :'Array<AccessLogEntry>'
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?(:'total_result_size')
59
- self.total_result_size = attributes[:'total_result_size']
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 @total_result_size.nil?
74
- invalid_properties.push('invalid value for "total_result_size", total_result_size cannot be nil.')
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 @total_result_size.nil?
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
- total_result_size == o.total_result_size &&
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
- [total_result_size, data].hash
110
+ [has_more, data].hash
111
111
  end
112
112
 
113
113
  # 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<CampaignAnalytics>'
33
+ :'data' => :'Array<AccessLogEntry>'
34
34
  }
35
35
  end
36
36
 
@@ -14,14 +14,14 @@ require 'date'
14
14
 
15
15
  module TalonOne
16
16
  class InlineResponse2002
17
- attr_accessor :total_result_size
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
- :'total_result_size' => :'totalResultSize',
24
+ :'has_more' => :'hasMore',
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
- :'total_result_size' => :'Integer',
33
- :'data' => :'Array<Application>'
32
+ :'has_more' => :'Boolean',
33
+ :'data' => :'Array<LedgerTransactionLogEntryIntegrationAPI>'
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?(:'total_result_size')
59
- self.total_result_size = attributes[:'total_result_size']
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 @total_result_size.nil?
74
- invalid_properties.push('invalid value for "total_result_size", total_result_size cannot be nil.')
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 @total_result_size.nil?
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
- total_result_size == o.total_result_size &&
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
- [total_result_size, data].hash
110
+ [has_more, data].hash
111
111
  end
112
112
 
113
113
  # Builds the object from hash