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.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +176 -0
- data/bin/console +15 -0
- data/lib/walmart_ap_is/api_helper.rb +10 -0
- data/lib/walmart_ap_is/apis/base_api.rb +67 -0
- data/lib/walmart_ap_is/apis/cppreference_api.rb +60 -0
- data/lib/walmart_ap_is/apis/detail_api.rb +58 -0
- data/lib/walmart_ap_is/apis/feeds_api.rb +79 -0
- data/lib/walmart_ap_is/apis/feeds_feed_type_incentive_enrollment_api.rb +66 -0
- data/lib/walmart_ap_is/apis/feeds_feed_type_price_and_promotion_api.rb +86 -0
- data/lib/walmart_ap_is/apis/feeds_feed_type_walmart_funded_incentives_enrollment_api.rb +75 -0
- data/lib/walmart_ap_is/apis/get_pricing_insights_api.rb +60 -0
- data/lib/walmart_ap_is/apis/incentives_api.rb +93 -0
- data/lib/walmart_ap_is/apis/m_strategy_collection_id_api.rb +118 -0
- data/lib/walmart_ap_is/apis/misc_api.rb +23 -0
- data/lib/walmart_ap_is/apis/price_api.rb +63 -0
- data/lib/walmart_ap_is/apis/repricer_feeds_api.rb +64 -0
- data/lib/walmart_ap_is/apis/strategies_api.rb +56 -0
- data/lib/walmart_ap_is/apis/strategy_api.rb +63 -0
- data/lib/walmart_ap_is/apis/token_api.rb +98 -0
- data/lib/walmart_ap_is/apis/wfpreference_api.rb +68 -0
- data/lib/walmart_ap_is/client.rb +163 -0
- data/lib/walmart_ap_is/configuration.rb +165 -0
- data/lib/walmart_ap_is/exceptions/api_exception.rb +21 -0
- data/lib/walmart_ap_is/http/api_response.rb +19 -0
- data/lib/walmart_ap_is/http/auth/basic_auth.rb +62 -0
- data/lib/walmart_ap_is/http/http_call_back.rb +10 -0
- data/lib/walmart_ap_is/http/http_method_enum.rb +10 -0
- data/lib/walmart_ap_is/http/http_request.rb +10 -0
- data/lib/walmart_ap_is/http/http_response.rb +10 -0
- data/lib/walmart_ap_is/http/proxy_settings.rb +22 -0
- data/lib/walmart_ap_is/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/walmart_ap_is/logging/sdk_logger.rb +17 -0
- data/lib/walmart_ap_is/models/assign_unassign_items_to_from_repricer_strategy_request.rb +92 -0
- data/lib/walmart_ap_is/models/base_model.rb +110 -0
- data/lib/walmart_ap_is/models/client_credentials_res.rb +82 -0
- data/lib/walmart_ap_is/models/create_repricer_strategy_request.rb +149 -0
- data/lib/walmart_ap_is/models/current_price.rb +82 -0
- data/lib/walmart_ap_is/models/filter.rb +90 -0
- data/lib/walmart_ap_is/models/get_pricing_insights_request.rb +109 -0
- data/lib/walmart_ap_is/models/incentives_enrollment.rb +95 -0
- data/lib/walmart_ap_is/models/item.rb +239 -0
- data/lib/walmart_ap_is/models/item1.rb +73 -0
- data/lib/walmart_ap_is/models/item_feed_header.rb +119 -0
- data/lib/walmart_ap_is/models/item_identifiers.rb +72 -0
- data/lib/walmart_ap_is/models/item_price_response.rb +90 -0
- data/lib/walmart_ap_is/models/json1.rb +73 -0
- data/lib/walmart_ap_is/models/mp_item.rb +74 -0
- data/lib/walmart_ap_is/models/mp_item_feed_header.rb +91 -0
- data/lib/walmart_ap_is/models/page_context.rb +102 -0
- data/lib/walmart_ap_is/models/pricing.rb +84 -0
- data/lib/walmart_ap_is/models/pricing_insights_response_list.rb +328 -0
- data/lib/walmart_ap_is/models/program_action.rb +83 -0
- data/lib/walmart_ap_is/models/program_action1.rb +83 -0
- data/lib/walmart_ap_is/models/program_action_feed_header.rb +147 -0
- data/lib/walmart_ap_is/models/programs.rb +80 -0
- data/lib/walmart_ap_is/models/programs1.rb +75 -0
- data/lib/walmart_ap_is/models/promo_discount.rb +90 -0
- data/lib/walmart_ap_is/models/refresh_token_res.rb +82 -0
- data/lib/walmart_ap_is/models/scopes.rb +142 -0
- data/lib/walmart_ap_is/models/search_criteria.rb +82 -0
- data/lib/walmart_ap_is/models/set_up_cap_sku_all_legacy_request.rb +85 -0
- data/lib/walmart_ap_is/models/sort.rb +82 -0
- data/lib/walmart_ap_is/models/status_info.rb +85 -0
- data/lib/walmart_ap_is/models/strategy.rb +94 -0
- data/lib/walmart_ap_is/models/strategy5.rb +106 -0
- data/lib/walmart_ap_is/models/strategy_collection.rb +169 -0
- data/lib/walmart_ap_is/models/successful_operation.rb +159 -0
- data/lib/walmart_ap_is/models/successful_operation1.rb +73 -0
- data/lib/walmart_ap_is/models/successful_operation11.rb +82 -0
- data/lib/walmart_ap_is/models/successful_operation12.rb +82 -0
- data/lib/walmart_ap_is/models/successful_operation2.rb +100 -0
- data/lib/walmart_ap_is/models/successful_operation3.rb +92 -0
- data/lib/walmart_ap_is/models/successful_operation4.rb +84 -0
- data/lib/walmart_ap_is/models/successful_operation5.rb +91 -0
- data/lib/walmart_ap_is/models/successful_operation6.rb +93 -0
- data/lib/walmart_ap_is/models/successful_operation7.rb +75 -0
- data/lib/walmart_ap_is/models/successful_operation8.rb +73 -0
- data/lib/walmart_ap_is/models/token_api_authorization_code.rb +122 -0
- data/lib/walmart_ap_is/models/token_api_client_credentials.rb +122 -0
- data/lib/walmart_ap_is/models/token_api_refresh_token.rb +122 -0
- data/lib/walmart_ap_is/models/token_api_res.rb +82 -0
- data/lib/walmart_ap_is/models/update_pricing_for_a_single_item_request.rb +91 -0
- data/lib/walmart_ap_is/models/update_pricing_for_multiple_items_in_bulk_new_request.rb +92 -0
- data/lib/walmart_ap_is/models/update_reduced_referral_fee_incentives_enrollment_request.rb +95 -0
- data/lib/walmart_ap_is/models/update_repricer_strategy_request.rb +149 -0
- data/lib/walmart_ap_is/models/update_walmart_funded_incentives_enrollment_for_specific_items_request.rb +95 -0
- data/lib/walmart_ap_is/models/value.rb +91 -0
- data/lib/walmart_ap_is/models/value1.rb +101 -0
- data/lib/walmart_ap_is/models/walmart_funded_incentives_enrollment.rb +79 -0
- data/lib/walmart_ap_is/models/xml1.rb +73 -0
- data/lib/walmart_ap_is/utilities/date_time_helper.rb +11 -0
- data/lib/walmart_ap_is/utilities/file_wrapper.rb +28 -0
- data/lib/walmart_ap_is.rb +122 -0
- metadata +179 -0
|
@@ -0,0 +1,159 @@
|
|
|
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
|
+
# SuccessfulOperation Model.
|
|
8
|
+
class SuccessfulOperation < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :repricer_strategy
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :strategy_collection_id
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [TrueClass | FalseClass]
|
|
22
|
+
attr_accessor :enabled
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [TrueClass | FalseClass]
|
|
26
|
+
attr_accessor :enable_repricer_for_promotion
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [TrueClass | FalseClass]
|
|
30
|
+
attr_accessor :restore_seller_price_without_target
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [TrueClass | FalseClass]
|
|
34
|
+
attr_accessor :enable_buybox_meet_external
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [TrueClass | FalseClass]
|
|
38
|
+
attr_accessor :compare_with3p_offer_only
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [Array[Strategy]]
|
|
42
|
+
attr_accessor :strategies
|
|
43
|
+
|
|
44
|
+
# A mapping from model property names to API property names.
|
|
45
|
+
def self.names
|
|
46
|
+
@_hash = {} if @_hash.nil?
|
|
47
|
+
@_hash['repricer_strategy'] = 'repricerStrategy'
|
|
48
|
+
@_hash['strategy_collection_id'] = 'strategyCollectionId'
|
|
49
|
+
@_hash['enabled'] = 'enabled'
|
|
50
|
+
@_hash['enable_repricer_for_promotion'] = 'enableRepricerForPromotion'
|
|
51
|
+
@_hash['restore_seller_price_without_target'] =
|
|
52
|
+
'restoreSellerPriceWithoutTarget'
|
|
53
|
+
@_hash['enable_buybox_meet_external'] = 'enableBuyboxMeetExternal'
|
|
54
|
+
@_hash['compare_with3p_offer_only'] = 'compareWith3pOfferOnly'
|
|
55
|
+
@_hash['strategies'] = 'strategies'
|
|
56
|
+
@_hash
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# An array for optional fields
|
|
60
|
+
def self.optionals
|
|
61
|
+
[]
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# An array for nullable fields
|
|
65
|
+
def self.nullables
|
|
66
|
+
[]
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def initialize(repricer_strategy:, strategy_collection_id:, enabled:,
|
|
70
|
+
enable_repricer_for_promotion:,
|
|
71
|
+
restore_seller_price_without_target:,
|
|
72
|
+
enable_buybox_meet_external:, compare_with3p_offer_only:,
|
|
73
|
+
strategies:, additional_properties: nil)
|
|
74
|
+
# Add additional model properties to the instance
|
|
75
|
+
additional_properties = {} if additional_properties.nil?
|
|
76
|
+
|
|
77
|
+
@repricer_strategy = repricer_strategy
|
|
78
|
+
@strategy_collection_id = strategy_collection_id
|
|
79
|
+
@enabled = enabled
|
|
80
|
+
@enable_repricer_for_promotion = enable_repricer_for_promotion
|
|
81
|
+
@restore_seller_price_without_target = restore_seller_price_without_target
|
|
82
|
+
@enable_buybox_meet_external = enable_buybox_meet_external
|
|
83
|
+
@compare_with3p_offer_only = compare_with3p_offer_only
|
|
84
|
+
@strategies = strategies
|
|
85
|
+
@additional_properties = additional_properties
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Creates an instance of the object from a hash.
|
|
89
|
+
def self.from_hash(hash)
|
|
90
|
+
return nil unless hash
|
|
91
|
+
|
|
92
|
+
# Extract variables from the hash.
|
|
93
|
+
repricer_strategy =
|
|
94
|
+
hash.key?('repricerStrategy') ? hash['repricerStrategy'] : nil
|
|
95
|
+
strategy_collection_id =
|
|
96
|
+
hash.key?('strategyCollectionId') ? hash['strategyCollectionId'] : nil
|
|
97
|
+
enabled = hash.key?('enabled') ? hash['enabled'] : nil
|
|
98
|
+
enable_repricer_for_promotion =
|
|
99
|
+
hash.key?('enableRepricerForPromotion') ? hash['enableRepricerForPromotion'] : nil
|
|
100
|
+
restore_seller_price_without_target =
|
|
101
|
+
hash.key?('restoreSellerPriceWithoutTarget') ? hash['restoreSellerPriceWithoutTarget'] : nil
|
|
102
|
+
enable_buybox_meet_external =
|
|
103
|
+
hash.key?('enableBuyboxMeetExternal') ? hash['enableBuyboxMeetExternal'] : nil
|
|
104
|
+
compare_with3p_offer_only =
|
|
105
|
+
hash.key?('compareWith3pOfferOnly') ? hash['compareWith3pOfferOnly'] : nil
|
|
106
|
+
# Parameter is an array, so we need to iterate through it
|
|
107
|
+
strategies = nil
|
|
108
|
+
unless hash['strategies'].nil?
|
|
109
|
+
strategies = []
|
|
110
|
+
hash['strategies'].each do |structure|
|
|
111
|
+
strategies << (Strategy.from_hash(structure) if structure)
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
strategies = nil unless hash.key?('strategies')
|
|
116
|
+
|
|
117
|
+
# Create a new hash for additional properties, removing known properties.
|
|
118
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
119
|
+
|
|
120
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
121
|
+
new_hash, proc { |value| value }
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
# Create object from extracted values.
|
|
125
|
+
SuccessfulOperation.new(repricer_strategy: repricer_strategy,
|
|
126
|
+
strategy_collection_id: strategy_collection_id,
|
|
127
|
+
enabled: enabled,
|
|
128
|
+
enable_repricer_for_promotion: enable_repricer_for_promotion,
|
|
129
|
+
restore_seller_price_without_target: restore_seller_price_without_target,
|
|
130
|
+
enable_buybox_meet_external: enable_buybox_meet_external,
|
|
131
|
+
compare_with3p_offer_only: compare_with3p_offer_only,
|
|
132
|
+
strategies: strategies,
|
|
133
|
+
additional_properties: additional_properties)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Provides a human-readable string representation of the object.
|
|
137
|
+
def to_s
|
|
138
|
+
class_name = self.class.name.split('::').last
|
|
139
|
+
"<#{class_name} repricer_strategy: #{@repricer_strategy}, strategy_collection_id:"\
|
|
140
|
+
" #{@strategy_collection_id}, enabled: #{@enabled}, enable_repricer_for_promotion:"\
|
|
141
|
+
" #{@enable_repricer_for_promotion}, restore_seller_price_without_target:"\
|
|
142
|
+
" #{@restore_seller_price_without_target}, enable_buybox_meet_external:"\
|
|
143
|
+
" #{@enable_buybox_meet_external}, compare_with3p_offer_only: #{@compare_with3p_offer_only},"\
|
|
144
|
+
" strategies: #{@strategies}, additional_properties: #{@additional_properties}>"
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
148
|
+
def inspect
|
|
149
|
+
class_name = self.class.name.split('::').last
|
|
150
|
+
"<#{class_name} repricer_strategy: #{@repricer_strategy.inspect}, strategy_collection_id:"\
|
|
151
|
+
" #{@strategy_collection_id.inspect}, enabled: #{@enabled.inspect},"\
|
|
152
|
+
" enable_repricer_for_promotion: #{@enable_repricer_for_promotion.inspect},"\
|
|
153
|
+
" restore_seller_price_without_target: #{@restore_seller_price_without_target.inspect},"\
|
|
154
|
+
" enable_buybox_meet_external: #{@enable_buybox_meet_external.inspect},"\
|
|
155
|
+
" compare_with3p_offer_only: #{@compare_with3p_offer_only.inspect}, strategies:"\
|
|
156
|
+
" #{@strategies.inspect}, additional_properties: #{@additional_properties}>"
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
# SuccessfulOperation1 Model.
|
|
8
|
+
class SuccessfulOperation1 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :message
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['message'] = 'message'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
[]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for nullable fields
|
|
29
|
+
def self.nullables
|
|
30
|
+
[]
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def initialize(message:, additional_properties: nil)
|
|
34
|
+
# Add additional model properties to the instance
|
|
35
|
+
additional_properties = {} if additional_properties.nil?
|
|
36
|
+
|
|
37
|
+
@message = message
|
|
38
|
+
@additional_properties = additional_properties
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Creates an instance of the object from a hash.
|
|
42
|
+
def self.from_hash(hash)
|
|
43
|
+
return nil unless hash
|
|
44
|
+
|
|
45
|
+
# Extract variables from the hash.
|
|
46
|
+
message = hash.key?('message') ? hash['message'] : nil
|
|
47
|
+
|
|
48
|
+
# Create a new hash for additional properties, removing known properties.
|
|
49
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
50
|
+
|
|
51
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
52
|
+
new_hash, proc { |value| value }
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
# Create object from extracted values.
|
|
56
|
+
SuccessfulOperation1.new(message: message,
|
|
57
|
+
additional_properties: additional_properties)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Provides a human-readable string representation of the object.
|
|
61
|
+
def to_s
|
|
62
|
+
class_name = self.class.name.split('::').last
|
|
63
|
+
"<#{class_name} message: #{@message}, additional_properties: #{@additional_properties}>"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
67
|
+
def inspect
|
|
68
|
+
class_name = self.class.name.split('::').last
|
|
69
|
+
"<#{class_name} message: #{@message.inspect}, additional_properties:"\
|
|
70
|
+
" #{@additional_properties}>"
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
# SuccessfulOperation11 Model.
|
|
8
|
+
class SuccessfulOperation11 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :feed_id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :message
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['feed_id'] = 'feedId'
|
|
24
|
+
@_hash['message'] = 'message'
|
|
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(feed_id:, message:, additional_properties: nil)
|
|
39
|
+
# Add additional model properties to the instance
|
|
40
|
+
additional_properties = {} if additional_properties.nil?
|
|
41
|
+
|
|
42
|
+
@feed_id = feed_id
|
|
43
|
+
@message = message
|
|
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
|
+
feed_id = hash.key?('feedId') ? hash['feedId'] : nil
|
|
53
|
+
message = hash.key?('message') ? hash['message'] : nil
|
|
54
|
+
|
|
55
|
+
# Create a new hash for additional properties, removing known properties.
|
|
56
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
57
|
+
|
|
58
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
59
|
+
new_hash, proc { |value| value }
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
# Create object from extracted values.
|
|
63
|
+
SuccessfulOperation11.new(feed_id: feed_id,
|
|
64
|
+
message: message,
|
|
65
|
+
additional_properties: additional_properties)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a human-readable string representation of the object.
|
|
69
|
+
def to_s
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} feed_id: #{@feed_id}, message: #{@message}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
76
|
+
def inspect
|
|
77
|
+
class_name = self.class.name.split('::').last
|
|
78
|
+
"<#{class_name} feed_id: #{@feed_id.inspect}, message: #{@message.inspect},"\
|
|
79
|
+
" additional_properties: #{@additional_properties}>"
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
# SuccessfulOperation12 Model.
|
|
8
|
+
class SuccessfulOperation12 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :mart_id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [StatusInfo]
|
|
18
|
+
attr_accessor :status_info
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['mart_id'] = 'martId'
|
|
24
|
+
@_hash['status_info'] = 'statusInfo'
|
|
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(mart_id:, status_info:, additional_properties: nil)
|
|
39
|
+
# Add additional model properties to the instance
|
|
40
|
+
additional_properties = {} if additional_properties.nil?
|
|
41
|
+
|
|
42
|
+
@mart_id = mart_id
|
|
43
|
+
@status_info = status_info
|
|
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
|
+
mart_id = hash.key?('martId') ? hash['martId'] : nil
|
|
53
|
+
status_info = StatusInfo.from_hash(hash['statusInfo']) if hash['statusInfo']
|
|
54
|
+
|
|
55
|
+
# Create a new hash for additional properties, removing known properties.
|
|
56
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
57
|
+
|
|
58
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
59
|
+
new_hash, proc { |value| value }
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
# Create object from extracted values.
|
|
63
|
+
SuccessfulOperation12.new(mart_id: mart_id,
|
|
64
|
+
status_info: status_info,
|
|
65
|
+
additional_properties: additional_properties)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a human-readable string representation of the object.
|
|
69
|
+
def to_s
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} mart_id: #{@mart_id}, status_info: #{@status_info}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
76
|
+
def inspect
|
|
77
|
+
class_name = self.class.name.split('::').last
|
|
78
|
+
"<#{class_name} mart_id: #{@mart_id.inspect}, status_info: #{@status_info.inspect},"\
|
|
79
|
+
" additional_properties: #{@additional_properties}>"
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
# SuccessfulOperation2 Model.
|
|
8
|
+
class SuccessfulOperation2 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :expire_at
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :issued_at
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [TrueClass | FalseClass]
|
|
22
|
+
attr_accessor :is_valid
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [Scopes]
|
|
26
|
+
attr_accessor :scopes
|
|
27
|
+
|
|
28
|
+
# A mapping from model property names to API property names.
|
|
29
|
+
def self.names
|
|
30
|
+
@_hash = {} if @_hash.nil?
|
|
31
|
+
@_hash['expire_at'] = 'expire_at'
|
|
32
|
+
@_hash['issued_at'] = 'issued_at'
|
|
33
|
+
@_hash['is_valid'] = 'is_valid'
|
|
34
|
+
@_hash['scopes'] = 'scopes'
|
|
35
|
+
@_hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for optional fields
|
|
39
|
+
def self.optionals
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# An array for nullable fields
|
|
44
|
+
def self.nullables
|
|
45
|
+
[]
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def initialize(expire_at:, issued_at:, is_valid:, scopes:,
|
|
49
|
+
additional_properties: nil)
|
|
50
|
+
# Add additional model properties to the instance
|
|
51
|
+
additional_properties = {} if additional_properties.nil?
|
|
52
|
+
|
|
53
|
+
@expire_at = expire_at
|
|
54
|
+
@issued_at = issued_at
|
|
55
|
+
@is_valid = is_valid
|
|
56
|
+
@scopes = scopes
|
|
57
|
+
@additional_properties = additional_properties
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Creates an instance of the object from a hash.
|
|
61
|
+
def self.from_hash(hash)
|
|
62
|
+
return nil unless hash
|
|
63
|
+
|
|
64
|
+
# Extract variables from the hash.
|
|
65
|
+
expire_at = hash.key?('expire_at') ? hash['expire_at'] : nil
|
|
66
|
+
issued_at = hash.key?('issued_at') ? hash['issued_at'] : nil
|
|
67
|
+
is_valid = hash.key?('is_valid') ? hash['is_valid'] : nil
|
|
68
|
+
scopes = Scopes.from_hash(hash['scopes']) if hash['scopes']
|
|
69
|
+
|
|
70
|
+
# Create a new hash for additional properties, removing known properties.
|
|
71
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
72
|
+
|
|
73
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
74
|
+
new_hash, proc { |value| value }
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
# Create object from extracted values.
|
|
78
|
+
SuccessfulOperation2.new(expire_at: expire_at,
|
|
79
|
+
issued_at: issued_at,
|
|
80
|
+
is_valid: is_valid,
|
|
81
|
+
scopes: scopes,
|
|
82
|
+
additional_properties: additional_properties)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Provides a human-readable string representation of the object.
|
|
86
|
+
def to_s
|
|
87
|
+
class_name = self.class.name.split('::').last
|
|
88
|
+
"<#{class_name} expire_at: #{@expire_at}, issued_at: #{@issued_at}, is_valid: #{@is_valid},"\
|
|
89
|
+
" scopes: #{@scopes}, additional_properties: #{@additional_properties}>"
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
93
|
+
def inspect
|
|
94
|
+
class_name = self.class.name.split('::').last
|
|
95
|
+
"<#{class_name} expire_at: #{@expire_at.inspect}, issued_at: #{@issued_at.inspect},"\
|
|
96
|
+
" is_valid: #{@is_valid.inspect}, scopes: #{@scopes.inspect}, additional_properties:"\
|
|
97
|
+
" #{@additional_properties}>"
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
# SuccessfulOperation3 Model.
|
|
8
|
+
class SuccessfulOperation3 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :total_elements
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Array[StrategyCollection]]
|
|
18
|
+
attr_accessor :strategy_collections
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['total_elements'] = 'totalElements'
|
|
24
|
+
@_hash['strategy_collections'] = 'strategyCollections'
|
|
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(total_elements:, strategy_collections:,
|
|
39
|
+
additional_properties: nil)
|
|
40
|
+
# Add additional model properties to the instance
|
|
41
|
+
additional_properties = {} if additional_properties.nil?
|
|
42
|
+
|
|
43
|
+
@total_elements = total_elements
|
|
44
|
+
@strategy_collections = strategy_collections
|
|
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
|
+
total_elements = hash.key?('totalElements') ? hash['totalElements'] : nil
|
|
54
|
+
# Parameter is an array, so we need to iterate through it
|
|
55
|
+
strategy_collections = nil
|
|
56
|
+
unless hash['strategyCollections'].nil?
|
|
57
|
+
strategy_collections = []
|
|
58
|
+
hash['strategyCollections'].each do |structure|
|
|
59
|
+
strategy_collections << (StrategyCollection.from_hash(structure) if structure)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
strategy_collections = nil unless hash.key?('strategyCollections')
|
|
64
|
+
|
|
65
|
+
# Create a new hash for additional properties, removing known properties.
|
|
66
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
67
|
+
|
|
68
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
69
|
+
new_hash, proc { |value| value }
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
# Create object from extracted values.
|
|
73
|
+
SuccessfulOperation3.new(total_elements: total_elements,
|
|
74
|
+
strategy_collections: strategy_collections,
|
|
75
|
+
additional_properties: additional_properties)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Provides a human-readable string representation of the object.
|
|
79
|
+
def to_s
|
|
80
|
+
class_name = self.class.name.split('::').last
|
|
81
|
+
"<#{class_name} total_elements: #{@total_elements}, strategy_collections:"\
|
|
82
|
+
" #{@strategy_collections}, additional_properties: #{@additional_properties}>"
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
86
|
+
def inspect
|
|
87
|
+
class_name = self.class.name.split('::').last
|
|
88
|
+
"<#{class_name} total_elements: #{@total_elements.inspect}, strategy_collections:"\
|
|
89
|
+
" #{@strategy_collections.inspect}, additional_properties: #{@additional_properties}>"
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -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
|
+
# SuccessfulOperation4 Model.
|
|
8
|
+
class SuccessfulOperation4 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [TrueClass | FalseClass]
|
|
14
|
+
attr_accessor :auto_enroll_enabled
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :is_disabled
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['auto_enroll_enabled'] = 'autoEnrollEnabled'
|
|
24
|
+
@_hash['is_disabled'] = 'isDisabled'
|
|
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(auto_enroll_enabled:, is_disabled:,
|
|
39
|
+
additional_properties: nil)
|
|
40
|
+
# Add additional model properties to the instance
|
|
41
|
+
additional_properties = {} if additional_properties.nil?
|
|
42
|
+
|
|
43
|
+
@auto_enroll_enabled = auto_enroll_enabled
|
|
44
|
+
@is_disabled = is_disabled
|
|
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
|
+
auto_enroll_enabled =
|
|
54
|
+
hash.key?('autoEnrollEnabled') ? hash['autoEnrollEnabled'] : nil
|
|
55
|
+
is_disabled = hash.key?('isDisabled') ? hash['isDisabled'] : nil
|
|
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
|
+
SuccessfulOperation4.new(auto_enroll_enabled: auto_enroll_enabled,
|
|
66
|
+
is_disabled: is_disabled,
|
|
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} auto_enroll_enabled: #{@auto_enroll_enabled}, is_disabled: #{@is_disabled},"\
|
|
74
|
+
" 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} auto_enroll_enabled: #{@auto_enroll_enabled.inspect}, is_disabled:"\
|
|
81
|
+
" #{@is_disabled.inspect}, additional_properties: #{@additional_properties}>"
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|