walmart-apimatic-sdk 0.0.1

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.
Files changed (96) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +176 -0
  4. data/bin/console +15 -0
  5. data/lib/walmart_ap_is/api_helper.rb +10 -0
  6. data/lib/walmart_ap_is/apis/base_api.rb +67 -0
  7. data/lib/walmart_ap_is/apis/cppreference_api.rb +60 -0
  8. data/lib/walmart_ap_is/apis/detail_api.rb +58 -0
  9. data/lib/walmart_ap_is/apis/feeds_api.rb +79 -0
  10. data/lib/walmart_ap_is/apis/feeds_feed_type_incentive_enrollment_api.rb +66 -0
  11. data/lib/walmart_ap_is/apis/feeds_feed_type_price_and_promotion_api.rb +86 -0
  12. data/lib/walmart_ap_is/apis/feeds_feed_type_walmart_funded_incentives_enrollment_api.rb +75 -0
  13. data/lib/walmart_ap_is/apis/get_pricing_insights_api.rb +60 -0
  14. data/lib/walmart_ap_is/apis/incentives_api.rb +93 -0
  15. data/lib/walmart_ap_is/apis/m_strategy_collection_id_api.rb +118 -0
  16. data/lib/walmart_ap_is/apis/misc_api.rb +23 -0
  17. data/lib/walmart_ap_is/apis/price_api.rb +63 -0
  18. data/lib/walmart_ap_is/apis/repricer_feeds_api.rb +64 -0
  19. data/lib/walmart_ap_is/apis/strategies_api.rb +56 -0
  20. data/lib/walmart_ap_is/apis/strategy_api.rb +63 -0
  21. data/lib/walmart_ap_is/apis/token_api.rb +98 -0
  22. data/lib/walmart_ap_is/apis/wfpreference_api.rb +68 -0
  23. data/lib/walmart_ap_is/client.rb +163 -0
  24. data/lib/walmart_ap_is/configuration.rb +165 -0
  25. data/lib/walmart_ap_is/exceptions/api_exception.rb +21 -0
  26. data/lib/walmart_ap_is/http/api_response.rb +19 -0
  27. data/lib/walmart_ap_is/http/auth/basic_auth.rb +62 -0
  28. data/lib/walmart_ap_is/http/http_call_back.rb +10 -0
  29. data/lib/walmart_ap_is/http/http_method_enum.rb +10 -0
  30. data/lib/walmart_ap_is/http/http_request.rb +10 -0
  31. data/lib/walmart_ap_is/http/http_response.rb +10 -0
  32. data/lib/walmart_ap_is/http/proxy_settings.rb +22 -0
  33. data/lib/walmart_ap_is/logging/configuration/api_logging_configuration.rb +186 -0
  34. data/lib/walmart_ap_is/logging/sdk_logger.rb +17 -0
  35. data/lib/walmart_ap_is/models/assign_unassign_items_to_from_repricer_strategy_request.rb +92 -0
  36. data/lib/walmart_ap_is/models/base_model.rb +110 -0
  37. data/lib/walmart_ap_is/models/client_credentials_res.rb +82 -0
  38. data/lib/walmart_ap_is/models/create_repricer_strategy_request.rb +149 -0
  39. data/lib/walmart_ap_is/models/current_price.rb +82 -0
  40. data/lib/walmart_ap_is/models/filter.rb +90 -0
  41. data/lib/walmart_ap_is/models/get_pricing_insights_request.rb +109 -0
  42. data/lib/walmart_ap_is/models/incentives_enrollment.rb +95 -0
  43. data/lib/walmart_ap_is/models/item.rb +239 -0
  44. data/lib/walmart_ap_is/models/item1.rb +73 -0
  45. data/lib/walmart_ap_is/models/item_feed_header.rb +119 -0
  46. data/lib/walmart_ap_is/models/item_identifiers.rb +72 -0
  47. data/lib/walmart_ap_is/models/item_price_response.rb +90 -0
  48. data/lib/walmart_ap_is/models/json1.rb +73 -0
  49. data/lib/walmart_ap_is/models/mp_item.rb +74 -0
  50. data/lib/walmart_ap_is/models/mp_item_feed_header.rb +91 -0
  51. data/lib/walmart_ap_is/models/page_context.rb +102 -0
  52. data/lib/walmart_ap_is/models/pricing.rb +84 -0
  53. data/lib/walmart_ap_is/models/pricing_insights_response_list.rb +328 -0
  54. data/lib/walmart_ap_is/models/program_action.rb +83 -0
  55. data/lib/walmart_ap_is/models/program_action1.rb +83 -0
  56. data/lib/walmart_ap_is/models/program_action_feed_header.rb +147 -0
  57. data/lib/walmart_ap_is/models/programs.rb +80 -0
  58. data/lib/walmart_ap_is/models/programs1.rb +75 -0
  59. data/lib/walmart_ap_is/models/promo_discount.rb +90 -0
  60. data/lib/walmart_ap_is/models/refresh_token_res.rb +82 -0
  61. data/lib/walmart_ap_is/models/scopes.rb +142 -0
  62. data/lib/walmart_ap_is/models/search_criteria.rb +82 -0
  63. data/lib/walmart_ap_is/models/set_up_cap_sku_all_legacy_request.rb +85 -0
  64. data/lib/walmart_ap_is/models/sort.rb +82 -0
  65. data/lib/walmart_ap_is/models/status_info.rb +85 -0
  66. data/lib/walmart_ap_is/models/strategy.rb +94 -0
  67. data/lib/walmart_ap_is/models/strategy5.rb +106 -0
  68. data/lib/walmart_ap_is/models/strategy_collection.rb +169 -0
  69. data/lib/walmart_ap_is/models/successful_operation.rb +159 -0
  70. data/lib/walmart_ap_is/models/successful_operation1.rb +73 -0
  71. data/lib/walmart_ap_is/models/successful_operation11.rb +82 -0
  72. data/lib/walmart_ap_is/models/successful_operation12.rb +82 -0
  73. data/lib/walmart_ap_is/models/successful_operation2.rb +100 -0
  74. data/lib/walmart_ap_is/models/successful_operation3.rb +92 -0
  75. data/lib/walmart_ap_is/models/successful_operation4.rb +84 -0
  76. data/lib/walmart_ap_is/models/successful_operation5.rb +91 -0
  77. data/lib/walmart_ap_is/models/successful_operation6.rb +93 -0
  78. data/lib/walmart_ap_is/models/successful_operation7.rb +75 -0
  79. data/lib/walmart_ap_is/models/successful_operation8.rb +73 -0
  80. data/lib/walmart_ap_is/models/token_api_authorization_code.rb +122 -0
  81. data/lib/walmart_ap_is/models/token_api_client_credentials.rb +122 -0
  82. data/lib/walmart_ap_is/models/token_api_refresh_token.rb +122 -0
  83. data/lib/walmart_ap_is/models/token_api_res.rb +82 -0
  84. data/lib/walmart_ap_is/models/update_pricing_for_a_single_item_request.rb +91 -0
  85. data/lib/walmart_ap_is/models/update_pricing_for_multiple_items_in_bulk_new_request.rb +92 -0
  86. data/lib/walmart_ap_is/models/update_reduced_referral_fee_incentives_enrollment_request.rb +95 -0
  87. data/lib/walmart_ap_is/models/update_repricer_strategy_request.rb +149 -0
  88. data/lib/walmart_ap_is/models/update_walmart_funded_incentives_enrollment_for_specific_items_request.rb +95 -0
  89. data/lib/walmart_ap_is/models/value.rb +91 -0
  90. data/lib/walmart_ap_is/models/value1.rb +101 -0
  91. data/lib/walmart_ap_is/models/walmart_funded_incentives_enrollment.rb +79 -0
  92. data/lib/walmart_ap_is/models/xml1.rb +73 -0
  93. data/lib/walmart_ap_is/utilities/date_time_helper.rb +11 -0
  94. data/lib/walmart_ap_is/utilities/file_wrapper.rb +28 -0
  95. data/lib/walmart_ap_is.rb +122 -0
  96. metadata +179 -0
@@ -0,0 +1,84 @@
1
+ # walmart_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module WalmartApIs
7
+ # Pricing Model.
8
+ class Pricing < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :current_price_type
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [CurrentPrice]
18
+ attr_accessor :current_price
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['current_price_type'] = 'currentPriceType'
24
+ @_hash['current_price'] = 'currentPrice'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ []
31
+ end
32
+
33
+ # An array for nullable fields
34
+ def self.nullables
35
+ []
36
+ end
37
+
38
+ def initialize(current_price_type:, current_price:,
39
+ additional_properties: nil)
40
+ # Add additional model properties to the instance
41
+ additional_properties = {} if additional_properties.nil?
42
+
43
+ @current_price_type = current_price_type
44
+ @current_price = current_price
45
+ @additional_properties = additional_properties
46
+ end
47
+
48
+ # Creates an instance of the object from a hash.
49
+ def self.from_hash(hash)
50
+ return nil unless hash
51
+
52
+ # Extract variables from the hash.
53
+ current_price_type =
54
+ hash.key?('currentPriceType') ? hash['currentPriceType'] : nil
55
+ current_price = CurrentPrice.from_hash(hash['currentPrice']) if hash['currentPrice']
56
+
57
+ # Create a new hash for additional properties, removing known properties.
58
+ new_hash = hash.reject { |k, _| names.value?(k) }
59
+
60
+ additional_properties = APIHelper.get_additional_properties(
61
+ new_hash, proc { |value| value }
62
+ )
63
+
64
+ # Create object from extracted values.
65
+ Pricing.new(current_price_type: current_price_type,
66
+ current_price: current_price,
67
+ additional_properties: additional_properties)
68
+ end
69
+
70
+ # Provides a human-readable string representation of the object.
71
+ def to_s
72
+ class_name = self.class.name.split('::').last
73
+ "<#{class_name} current_price_type: #{@current_price_type}, current_price:"\
74
+ " #{@current_price}, additional_properties: #{@additional_properties}>"
75
+ end
76
+
77
+ # Provides a debugging-friendly string with detailed object information.
78
+ def inspect
79
+ class_name = self.class.name.split('::').last
80
+ "<#{class_name} current_price_type: #{@current_price_type.inspect}, current_price:"\
81
+ " #{@current_price.inspect}, additional_properties: #{@additional_properties}>"
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,328 @@
1
+ # walmart_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module WalmartApIs
7
+ # PricingInsightsResponseList Model.
8
+ class PricingInsightsResponseList < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :item_name
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :sku
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [Integer]
22
+ attr_accessor :current_price
23
+
24
+ # TODO: Write general description for this method
25
+ # @return [Float]
26
+ attr_accessor :buy_box_base_price
27
+
28
+ # TODO: Write general description for this method
29
+ # @return [Float]
30
+ attr_accessor :buy_box_total_price
31
+
32
+ # TODO: Write general description for this method
33
+ # @return [String]
34
+ attr_accessor :buy_box_win_rate
35
+
36
+ # TODO: Write general description for this method
37
+ # @return [Float]
38
+ attr_accessor :competitor_price
39
+
40
+ # TODO: Write general description for this method
41
+ # @return [Integer]
42
+ attr_accessor :comparison_price
43
+
44
+ # TODO: Write general description for this method
45
+ # @return [String]
46
+ attr_accessor :fulfillment
47
+
48
+ # TODO: Write general description for this method
49
+ # @return [String]
50
+ attr_accessor :inventory_count
51
+
52
+ # TODO: Write general description for this method
53
+ # @return [String]
54
+ attr_accessor :repricer_strategy_type
55
+
56
+ # TODO: Write general description for this method
57
+ # @return [String]
58
+ attr_accessor :repricer_strategy_name
59
+
60
+ # TODO: Write general description for this method
61
+ # @return [String]
62
+ attr_accessor :repricer_status
63
+
64
+ # TODO: Write general description for this method
65
+ # @return [String]
66
+ attr_accessor :repricer_min_price
67
+
68
+ # TODO: Write general description for this method
69
+ # @return [String]
70
+ attr_accessor :repricer_max_price
71
+
72
+ # TODO: Write general description for this method
73
+ # @return [Integer]
74
+ attr_accessor :price_competitive_score
75
+
76
+ # TODO: Write general description for this method
77
+ # @return [String]
78
+ attr_accessor :promo_status
79
+
80
+ # TODO: Write general description for this method
81
+ # @return [String]
82
+ attr_accessor :potential_gmv_lift
83
+
84
+ # TODO: Write general description for this method
85
+ # @return [Integer]
86
+ attr_accessor :gmv30
87
+
88
+ # TODO: Write general description for this method
89
+ # @return [TrueClass | FalseClass]
90
+ attr_accessor :in_demand
91
+
92
+ # TODO: Write general description for this method
93
+ # @return [String]
94
+ attr_accessor :price_differential
95
+
96
+ # TODO: Write general description for this method
97
+ # @return [String]
98
+ attr_accessor :traffic
99
+
100
+ # TODO: Write general description for this method
101
+ # @return [TrueClass | FalseClass]
102
+ attr_accessor :price_competitive
103
+
104
+ # TODO: Write general description for this method
105
+ # @return [String]
106
+ attr_accessor :reduced_referral_status
107
+
108
+ # TODO: Write general description for this method
109
+ # @return [String]
110
+ attr_accessor :walmart_funded_status
111
+
112
+ # A mapping from model property names to API property names.
113
+ def self.names
114
+ @_hash = {} if @_hash.nil?
115
+ @_hash['item_name'] = 'itemName'
116
+ @_hash['sku'] = 'sku'
117
+ @_hash['current_price'] = 'currentPrice'
118
+ @_hash['buy_box_base_price'] = 'buyBoxBasePrice'
119
+ @_hash['buy_box_total_price'] = 'buyBoxTotalPrice'
120
+ @_hash['buy_box_win_rate'] = 'buyBoxWinRate'
121
+ @_hash['competitor_price'] = 'competitorPrice'
122
+ @_hash['comparison_price'] = 'comparisonPrice'
123
+ @_hash['fulfillment'] = 'fulfillment'
124
+ @_hash['inventory_count'] = 'inventoryCount'
125
+ @_hash['repricer_strategy_type'] = 'repricerStrategyType'
126
+ @_hash['repricer_strategy_name'] = 'repricerStrategyName'
127
+ @_hash['repricer_status'] = 'repricerStatus'
128
+ @_hash['repricer_min_price'] = 'repricerMinPrice'
129
+ @_hash['repricer_max_price'] = 'repricerMaxPrice'
130
+ @_hash['price_competitive_score'] = 'priceCompetitiveScore'
131
+ @_hash['promo_status'] = 'promoStatus'
132
+ @_hash['potential_gmv_lift'] = 'potentialGmvLift'
133
+ @_hash['gmv30'] = 'gmv30'
134
+ @_hash['in_demand'] = 'inDemand'
135
+ @_hash['price_differential'] = 'priceDifferential'
136
+ @_hash['traffic'] = 'traffic'
137
+ @_hash['price_competitive'] = 'priceCompetitive'
138
+ @_hash['reduced_referral_status'] = 'reducedReferralStatus'
139
+ @_hash['walmart_funded_status'] = 'walmartFundedStatus'
140
+ @_hash
141
+ end
142
+
143
+ # An array for optional fields
144
+ def self.optionals
145
+ []
146
+ end
147
+
148
+ # An array for nullable fields
149
+ def self.nullables
150
+ %w[
151
+ inventory_count
152
+ repricer_strategy_type
153
+ repricer_strategy_name
154
+ repricer_status
155
+ repricer_min_price
156
+ repricer_max_price
157
+ promo_status
158
+ potential_gmv_lift
159
+ price_differential
160
+ traffic
161
+ reduced_referral_status
162
+ ]
163
+ end
164
+
165
+ def initialize(item_name:, sku:, current_price:, buy_box_base_price:,
166
+ buy_box_total_price:, buy_box_win_rate:, competitor_price:,
167
+ comparison_price:, fulfillment:, inventory_count:,
168
+ repricer_strategy_type:, repricer_strategy_name:,
169
+ repricer_status:, repricer_min_price:, repricer_max_price:,
170
+ price_competitive_score:, promo_status:, potential_gmv_lift:,
171
+ gmv30:, in_demand:, price_differential:, traffic:,
172
+ price_competitive:, reduced_referral_status:,
173
+ walmart_funded_status:, additional_properties: nil)
174
+ # Add additional model properties to the instance
175
+ additional_properties = {} if additional_properties.nil?
176
+
177
+ @item_name = item_name
178
+ @sku = sku
179
+ @current_price = current_price
180
+ @buy_box_base_price = buy_box_base_price
181
+ @buy_box_total_price = buy_box_total_price
182
+ @buy_box_win_rate = buy_box_win_rate
183
+ @competitor_price = competitor_price
184
+ @comparison_price = comparison_price
185
+ @fulfillment = fulfillment
186
+ @inventory_count = inventory_count
187
+ @repricer_strategy_type = repricer_strategy_type
188
+ @repricer_strategy_name = repricer_strategy_name
189
+ @repricer_status = repricer_status
190
+ @repricer_min_price = repricer_min_price
191
+ @repricer_max_price = repricer_max_price
192
+ @price_competitive_score = price_competitive_score
193
+ @promo_status = promo_status
194
+ @potential_gmv_lift = potential_gmv_lift
195
+ @gmv30 = gmv30
196
+ @in_demand = in_demand
197
+ @price_differential = price_differential
198
+ @traffic = traffic
199
+ @price_competitive = price_competitive
200
+ @reduced_referral_status = reduced_referral_status
201
+ @walmart_funded_status = walmart_funded_status
202
+ @additional_properties = additional_properties
203
+ end
204
+
205
+ # Creates an instance of the object from a hash.
206
+ def self.from_hash(hash)
207
+ return nil unless hash
208
+
209
+ # Extract variables from the hash.
210
+ item_name = hash.key?('itemName') ? hash['itemName'] : nil
211
+ sku = hash.key?('sku') ? hash['sku'] : nil
212
+ current_price = hash.key?('currentPrice') ? hash['currentPrice'] : nil
213
+ buy_box_base_price =
214
+ hash.key?('buyBoxBasePrice') ? hash['buyBoxBasePrice'] : nil
215
+ buy_box_total_price =
216
+ hash.key?('buyBoxTotalPrice') ? hash['buyBoxTotalPrice'] : nil
217
+ buy_box_win_rate =
218
+ hash.key?('buyBoxWinRate') ? hash['buyBoxWinRate'] : nil
219
+ competitor_price =
220
+ hash.key?('competitorPrice') ? hash['competitorPrice'] : nil
221
+ comparison_price =
222
+ hash.key?('comparisonPrice') ? hash['comparisonPrice'] : nil
223
+ fulfillment = hash.key?('fulfillment') ? hash['fulfillment'] : nil
224
+ inventory_count =
225
+ hash.key?('inventoryCount') ? hash['inventoryCount'] : nil
226
+ repricer_strategy_type =
227
+ hash.key?('repricerStrategyType') ? hash['repricerStrategyType'] : nil
228
+ repricer_strategy_name =
229
+ hash.key?('repricerStrategyName') ? hash['repricerStrategyName'] : nil
230
+ repricer_status =
231
+ hash.key?('repricerStatus') ? hash['repricerStatus'] : nil
232
+ repricer_min_price =
233
+ hash.key?('repricerMinPrice') ? hash['repricerMinPrice'] : nil
234
+ repricer_max_price =
235
+ hash.key?('repricerMaxPrice') ? hash['repricerMaxPrice'] : nil
236
+ price_competitive_score =
237
+ hash.key?('priceCompetitiveScore') ? hash['priceCompetitiveScore'] : nil
238
+ promo_status = hash.key?('promoStatus') ? hash['promoStatus'] : nil
239
+ potential_gmv_lift =
240
+ hash.key?('potentialGmvLift') ? hash['potentialGmvLift'] : nil
241
+ gmv30 = hash.key?('gmv30') ? hash['gmv30'] : nil
242
+ in_demand = hash.key?('inDemand') ? hash['inDemand'] : nil
243
+ price_differential =
244
+ hash.key?('priceDifferential') ? hash['priceDifferential'] : nil
245
+ traffic = hash.key?('traffic') ? hash['traffic'] : nil
246
+ price_competitive =
247
+ hash.key?('priceCompetitive') ? hash['priceCompetitive'] : nil
248
+ reduced_referral_status =
249
+ hash.key?('reducedReferralStatus') ? hash['reducedReferralStatus'] : nil
250
+ walmart_funded_status =
251
+ hash.key?('walmartFundedStatus') ? hash['walmartFundedStatus'] : nil
252
+
253
+ # Create a new hash for additional properties, removing known properties.
254
+ new_hash = hash.reject { |k, _| names.value?(k) }
255
+
256
+ additional_properties = APIHelper.get_additional_properties(
257
+ new_hash, proc { |value| value }
258
+ )
259
+
260
+ # Create object from extracted values.
261
+ PricingInsightsResponseList.new(item_name: item_name,
262
+ sku: sku,
263
+ current_price: current_price,
264
+ buy_box_base_price: buy_box_base_price,
265
+ buy_box_total_price: buy_box_total_price,
266
+ buy_box_win_rate: buy_box_win_rate,
267
+ competitor_price: competitor_price,
268
+ comparison_price: comparison_price,
269
+ fulfillment: fulfillment,
270
+ inventory_count: inventory_count,
271
+ repricer_strategy_type: repricer_strategy_type,
272
+ repricer_strategy_name: repricer_strategy_name,
273
+ repricer_status: repricer_status,
274
+ repricer_min_price: repricer_min_price,
275
+ repricer_max_price: repricer_max_price,
276
+ price_competitive_score: price_competitive_score,
277
+ promo_status: promo_status,
278
+ potential_gmv_lift: potential_gmv_lift,
279
+ gmv30: gmv30,
280
+ in_demand: in_demand,
281
+ price_differential: price_differential,
282
+ traffic: traffic,
283
+ price_competitive: price_competitive,
284
+ reduced_referral_status: reduced_referral_status,
285
+ walmart_funded_status: walmart_funded_status,
286
+ additional_properties: additional_properties)
287
+ end
288
+
289
+ # Provides a human-readable string representation of the object.
290
+ def to_s
291
+ class_name = self.class.name.split('::').last
292
+ "<#{class_name} item_name: #{@item_name}, sku: #{@sku}, current_price: #{@current_price},"\
293
+ " buy_box_base_price: #{@buy_box_base_price}, buy_box_total_price: #{@buy_box_total_price},"\
294
+ " buy_box_win_rate: #{@buy_box_win_rate}, competitor_price: #{@competitor_price},"\
295
+ " comparison_price: #{@comparison_price}, fulfillment: #{@fulfillment}, inventory_count:"\
296
+ " #{@inventory_count}, repricer_strategy_type: #{@repricer_strategy_type},"\
297
+ " repricer_strategy_name: #{@repricer_strategy_name}, repricer_status: #{@repricer_status},"\
298
+ " repricer_min_price: #{@repricer_min_price}, repricer_max_price: #{@repricer_max_price},"\
299
+ " price_competitive_score: #{@price_competitive_score}, promo_status: #{@promo_status},"\
300
+ " potential_gmv_lift: #{@potential_gmv_lift}, gmv30: #{@gmv30}, in_demand: #{@in_demand},"\
301
+ " price_differential: #{@price_differential}, traffic: #{@traffic}, price_competitive:"\
302
+ " #{@price_competitive}, reduced_referral_status: #{@reduced_referral_status},"\
303
+ " walmart_funded_status: #{@walmart_funded_status}, additional_properties:"\
304
+ " #{@additional_properties}>"
305
+ end
306
+
307
+ # Provides a debugging-friendly string with detailed object information.
308
+ def inspect
309
+ class_name = self.class.name.split('::').last
310
+ "<#{class_name} item_name: #{@item_name.inspect}, sku: #{@sku.inspect}, current_price:"\
311
+ " #{@current_price.inspect}, buy_box_base_price: #{@buy_box_base_price.inspect},"\
312
+ " buy_box_total_price: #{@buy_box_total_price.inspect}, buy_box_win_rate:"\
313
+ " #{@buy_box_win_rate.inspect}, competitor_price: #{@competitor_price.inspect},"\
314
+ " comparison_price: #{@comparison_price.inspect}, fulfillment: #{@fulfillment.inspect},"\
315
+ " inventory_count: #{@inventory_count.inspect}, repricer_strategy_type:"\
316
+ " #{@repricer_strategy_type.inspect}, repricer_strategy_name:"\
317
+ " #{@repricer_strategy_name.inspect}, repricer_status: #{@repricer_status.inspect},"\
318
+ " repricer_min_price: #{@repricer_min_price.inspect}, repricer_max_price:"\
319
+ " #{@repricer_max_price.inspect}, price_competitive_score:"\
320
+ " #{@price_competitive_score.inspect}, promo_status: #{@promo_status.inspect},"\
321
+ " potential_gmv_lift: #{@potential_gmv_lift.inspect}, gmv30: #{@gmv30.inspect}, in_demand:"\
322
+ " #{@in_demand.inspect}, price_differential: #{@price_differential.inspect}, traffic:"\
323
+ " #{@traffic.inspect}, price_competitive: #{@price_competitive.inspect},"\
324
+ " reduced_referral_status: #{@reduced_referral_status.inspect}, walmart_funded_status:"\
325
+ " #{@walmart_funded_status.inspect}, additional_properties: #{@additional_properties}>"
326
+ end
327
+ end
328
+ end
@@ -0,0 +1,83 @@
1
+ # walmart_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module WalmartApIs
7
+ # ProgramAction Model.
8
+ class ProgramAction < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [ItemIdentifiers]
14
+ attr_accessor :item_identifiers
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [Programs]
18
+ attr_accessor :programs
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['item_identifiers'] = 'ItemIdentifiers'
24
+ @_hash['programs'] = 'Programs'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ []
31
+ end
32
+
33
+ # An array for nullable fields
34
+ def self.nullables
35
+ []
36
+ end
37
+
38
+ def initialize(item_identifiers:, programs:, additional_properties: nil)
39
+ # Add additional model properties to the instance
40
+ additional_properties = {} if additional_properties.nil?
41
+
42
+ @item_identifiers = item_identifiers
43
+ @programs = programs
44
+ @additional_properties = additional_properties
45
+ end
46
+
47
+ # Creates an instance of the object from a hash.
48
+ def self.from_hash(hash)
49
+ return nil unless hash
50
+
51
+ # Extract variables from the hash.
52
+ item_identifiers = ItemIdentifiers.from_hash(hash['ItemIdentifiers']) if
53
+ hash['ItemIdentifiers']
54
+ programs = Programs.from_hash(hash['Programs']) if hash['Programs']
55
+
56
+ # Create a new hash for additional properties, removing known properties.
57
+ new_hash = hash.reject { |k, _| names.value?(k) }
58
+
59
+ additional_properties = APIHelper.get_additional_properties(
60
+ new_hash, proc { |value| value }
61
+ )
62
+
63
+ # Create object from extracted values.
64
+ ProgramAction.new(item_identifiers: item_identifiers,
65
+ programs: programs,
66
+ additional_properties: additional_properties)
67
+ end
68
+
69
+ # Provides a human-readable string representation of the object.
70
+ def to_s
71
+ class_name = self.class.name.split('::').last
72
+ "<#{class_name} item_identifiers: #{@item_identifiers}, programs: #{@programs},"\
73
+ " additional_properties: #{@additional_properties}>"
74
+ end
75
+
76
+ # Provides a debugging-friendly string with detailed object information.
77
+ def inspect
78
+ class_name = self.class.name.split('::').last
79
+ "<#{class_name} item_identifiers: #{@item_identifiers.inspect}, programs:"\
80
+ " #{@programs.inspect}, additional_properties: #{@additional_properties}>"
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,83 @@
1
+ # walmart_ap_is
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module WalmartApIs
7
+ # ProgramAction1 Model.
8
+ class ProgramAction1 < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [ItemIdentifiers]
14
+ attr_accessor :item_identifiers
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [Programs1]
18
+ attr_accessor :programs
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['item_identifiers'] = 'ItemIdentifiers'
24
+ @_hash['programs'] = 'Programs'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ []
31
+ end
32
+
33
+ # An array for nullable fields
34
+ def self.nullables
35
+ []
36
+ end
37
+
38
+ def initialize(item_identifiers:, programs:, additional_properties: nil)
39
+ # Add additional model properties to the instance
40
+ additional_properties = {} if additional_properties.nil?
41
+
42
+ @item_identifiers = item_identifiers
43
+ @programs = programs
44
+ @additional_properties = additional_properties
45
+ end
46
+
47
+ # Creates an instance of the object from a hash.
48
+ def self.from_hash(hash)
49
+ return nil unless hash
50
+
51
+ # Extract variables from the hash.
52
+ item_identifiers = ItemIdentifiers.from_hash(hash['ItemIdentifiers']) if
53
+ hash['ItemIdentifiers']
54
+ programs = Programs1.from_hash(hash['Programs']) if hash['Programs']
55
+
56
+ # Create a new hash for additional properties, removing known properties.
57
+ new_hash = hash.reject { |k, _| names.value?(k) }
58
+
59
+ additional_properties = APIHelper.get_additional_properties(
60
+ new_hash, proc { |value| value }
61
+ )
62
+
63
+ # Create object from extracted values.
64
+ ProgramAction1.new(item_identifiers: item_identifiers,
65
+ programs: programs,
66
+ additional_properties: additional_properties)
67
+ end
68
+
69
+ # Provides a human-readable string representation of the object.
70
+ def to_s
71
+ class_name = self.class.name.split('::').last
72
+ "<#{class_name} item_identifiers: #{@item_identifiers}, programs: #{@programs},"\
73
+ " additional_properties: #{@additional_properties}>"
74
+ end
75
+
76
+ # Provides a debugging-friendly string with detailed object information.
77
+ def inspect
78
+ class_name = self.class.name.split('::').last
79
+ "<#{class_name} item_identifiers: #{@item_identifiers.inspect}, programs:"\
80
+ " #{@programs.inspect}, additional_properties: #{@additional_properties}>"
81
+ end
82
+ end
83
+ end