ultracart_api 3.4.0 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,240 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class RtgSummaryResponse
17
+ attr_accessor :gateways
18
+
19
+ attr_accessor :info_message
20
+
21
+ attr_accessor :migration_rtg_code
22
+
23
+ attr_accessor :migration_single_gateway_name
24
+
25
+ attr_accessor :show_delay_auto_orders
26
+
27
+ attr_accessor :show_migration
28
+
29
+ attr_accessor :warning
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'gateways' => :'gateways',
35
+ :'info_message' => :'info_message',
36
+ :'migration_rtg_code' => :'migration_rtg_code',
37
+ :'migration_single_gateway_name' => :'migration_single_gateway_name',
38
+ :'show_delay_auto_orders' => :'show_delay_auto_orders',
39
+ :'show_migration' => :'show_migration',
40
+ :'warning' => :'warning'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.swagger_types
46
+ {
47
+ :'gateways' => :'Array<RtgSummaryGateway>',
48
+ :'info_message' => :'String',
49
+ :'migration_rtg_code' => :'String',
50
+ :'migration_single_gateway_name' => :'String',
51
+ :'show_delay_auto_orders' => :'BOOLEAN',
52
+ :'show_migration' => :'BOOLEAN',
53
+ :'warning' => :'String'
54
+ }
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ return unless attributes.is_a?(Hash)
61
+
62
+ # convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
64
+
65
+ if attributes.has_key?(:'gateways')
66
+ if (value = attributes[:'gateways']).is_a?(Array)
67
+ self.gateways = value
68
+ end
69
+ end
70
+
71
+ if attributes.has_key?(:'info_message')
72
+ self.info_message = attributes[:'info_message']
73
+ end
74
+
75
+ if attributes.has_key?(:'migration_rtg_code')
76
+ self.migration_rtg_code = attributes[:'migration_rtg_code']
77
+ end
78
+
79
+ if attributes.has_key?(:'migration_single_gateway_name')
80
+ self.migration_single_gateway_name = attributes[:'migration_single_gateway_name']
81
+ end
82
+
83
+ if attributes.has_key?(:'show_delay_auto_orders')
84
+ self.show_delay_auto_orders = attributes[:'show_delay_auto_orders']
85
+ end
86
+
87
+ if attributes.has_key?(:'show_migration')
88
+ self.show_migration = attributes[:'show_migration']
89
+ end
90
+
91
+ if attributes.has_key?(:'warning')
92
+ self.warning = attributes[:'warning']
93
+ end
94
+ end
95
+
96
+ # Show invalid properties with the reasons. Usually used together with valid?
97
+ # @return Array for valid properties with the reasons
98
+ def list_invalid_properties
99
+ invalid_properties = Array.new
100
+ invalid_properties
101
+ end
102
+
103
+ # Check to see if the all the properties in the model are valid
104
+ # @return true if the model is valid
105
+ def valid?
106
+ true
107
+ end
108
+
109
+ # Checks equality by comparing each attribute.
110
+ # @param [Object] Object to be compared
111
+ def ==(o)
112
+ return true if self.equal?(o)
113
+ self.class == o.class &&
114
+ gateways == o.gateways &&
115
+ info_message == o.info_message &&
116
+ migration_rtg_code == o.migration_rtg_code &&
117
+ migration_single_gateway_name == o.migration_single_gateway_name &&
118
+ show_delay_auto_orders == o.show_delay_auto_orders &&
119
+ show_migration == o.show_migration &&
120
+ warning == o.warning
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Fixnum] Hash code
131
+ def hash
132
+ [gateways, info_message, migration_rtg_code, migration_single_gateway_name, show_delay_auto_orders, show_migration, warning].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ self.class.swagger_types.each_pair do |key, type|
141
+ if type =~ /\AArray<(.*)>/i
142
+ # check to ensure the input is an array given that the attribute
143
+ # is documented as an array but the input is not
144
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
145
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
146
+ end
147
+ elsif !attributes[self.class.attribute_map[key]].nil?
148
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
149
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ # Deserializes the data based on type
156
+ # @param string type Data type
157
+ # @param string value Value to be deserialized
158
+ # @return [Object] Deserialized data
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :DateTime
162
+ DateTime.parse(value)
163
+ when :Date
164
+ Date.parse(value)
165
+ when :String
166
+ value.to_s
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :BOOLEAN
172
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else # model
192
+ temp_model = UltracartClient.const_get(type).new
193
+ temp_model.build_from_hash(value)
194
+ end
195
+ end
196
+
197
+ # Returns the string representation of the object
198
+ # @return [String] String presentation of the object
199
+ def to_s
200
+ to_hash.to_s
201
+ end
202
+
203
+ # to_body is an alias to to_hash (backward compatibility)
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_body
206
+ to_hash
207
+ end
208
+
209
+ # Returns the object in the form of hash
210
+ # @return [Hash] Returns the object in the form of hash
211
+ def to_hash
212
+ hash = {}
213
+ self.class.attribute_map.each_pair do |attr, param|
214
+ value = self.send(attr)
215
+ next if value.nil?
216
+ hash[param] = _to_hash(value)
217
+ end
218
+ hash
219
+ end
220
+
221
+ # Outputs non-array value in the form of hash
222
+ # For object, use to_hash. Otherwise, just return the value
223
+ # @param [Object] value Any valid value
224
+ # @return [Hash] Returns the value in the form of hash
225
+ def _to_hash(value)
226
+ if value.is_a?(Array)
227
+ value.compact.map { |v| _to_hash(v) }
228
+ elsif value.is_a?(Hash)
229
+ {}.tap do |hash|
230
+ value.each { |k, v| hash[k] = _to_hash(v) }
231
+ end
232
+ elsif value.respond_to? :to_hash
233
+ value.to_hash
234
+ else
235
+ value
236
+ end
237
+ end
238
+
239
+ end
240
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.4.0'
14
+ VERSION = '3.4.4'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-29 00:00:00.000000000 Z
11
+ date: 2021-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -528,6 +528,9 @@ files:
528
528
  - docs/IntegrationLogQueryRequest.md
529
529
  - docs/IntegrationLogQueryResponse.md
530
530
  - docs/IntegrationLogResponse.md
531
+ - docs/IntegrationLogSummary.md
532
+ - docs/IntegrationLogSummaryQueryRequest.md
533
+ - docs/IntegrationLogSummaryQueryResponse.md
531
534
  - docs/Item.md
532
535
  - docs/ItemAccounting.md
533
536
  - docs/ItemAmember.md
@@ -710,9 +713,13 @@ files:
710
713
  - docs/ResponseMetadata.md
711
714
  - docs/ResultSet.md
712
715
  - docs/RotatingTransactionGateway.md
716
+ - docs/RotatingTransactionGatewayResponse.md
717
+ - docs/RotatingTransactionGatewaysResponse.md
713
718
  - docs/RtgCurrency.md
714
719
  - docs/RtgDayOfMonthRestriction.md
715
720
  - docs/RtgDayOfWeekRestriction.md
721
+ - docs/RtgSummaryGateway.md
722
+ - docs/RtgSummaryResponse.md
716
723
  - docs/RtgThemeRestriction.md
717
724
  - docs/ScreenRecording.md
718
725
  - docs/ScreenRecordingAdPlatform.md
@@ -1173,6 +1180,9 @@ files:
1173
1180
  - lib/ultracart_api/models/integration_log_query_request.rb
1174
1181
  - lib/ultracart_api/models/integration_log_query_response.rb
1175
1182
  - lib/ultracart_api/models/integration_log_response.rb
1183
+ - lib/ultracart_api/models/integration_log_summary.rb
1184
+ - lib/ultracart_api/models/integration_log_summary_query_request.rb
1185
+ - lib/ultracart_api/models/integration_log_summary_query_response.rb
1176
1186
  - lib/ultracart_api/models/item.rb
1177
1187
  - lib/ultracart_api/models/item_accounting.rb
1178
1188
  - lib/ultracart_api/models/item_amember.rb
@@ -1352,9 +1362,13 @@ files:
1352
1362
  - lib/ultracart_api/models/response_metadata.rb
1353
1363
  - lib/ultracart_api/models/result_set.rb
1354
1364
  - lib/ultracart_api/models/rotating_transaction_gateway.rb
1365
+ - lib/ultracart_api/models/rotating_transaction_gateway_response.rb
1366
+ - lib/ultracart_api/models/rotating_transaction_gateways_response.rb
1355
1367
  - lib/ultracart_api/models/rtg_currency.rb
1356
1368
  - lib/ultracart_api/models/rtg_day_of_month_restriction.rb
1357
1369
  - lib/ultracart_api/models/rtg_day_of_week_restriction.rb
1370
+ - lib/ultracart_api/models/rtg_summary_gateway.rb
1371
+ - lib/ultracart_api/models/rtg_summary_response.rb
1358
1372
  - lib/ultracart_api/models/rtg_theme_restriction.rb
1359
1373
  - lib/ultracart_api/models/screen_recording.rb
1360
1374
  - lib/ultracart_api/models/screen_recording_ad_platform.rb