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,95 @@
|
|
|
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
|
+
# UpdateWalmartFundedIncentivesEnrollmentForSpecificItemsRequest Model.
|
|
8
|
+
class UpdateWalmartFundedIncentivesEnrollmentForSpecificItemsRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [ProgramActionFeedHeader]
|
|
14
|
+
attr_accessor :program_action_feed_header
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Array[ProgramAction]]
|
|
18
|
+
attr_accessor :program_action
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['program_action_feed_header'] = 'ProgramActionFeedHeader'
|
|
24
|
+
@_hash['program_action'] = 'ProgramAction'
|
|
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(program_action_feed_header:, program_action:,
|
|
39
|
+
additional_properties: nil)
|
|
40
|
+
# Add additional model properties to the instance
|
|
41
|
+
additional_properties = {} if additional_properties.nil?
|
|
42
|
+
|
|
43
|
+
@program_action_feed_header = program_action_feed_header
|
|
44
|
+
@program_action = program_action
|
|
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
|
+
if hash['ProgramActionFeedHeader']
|
|
54
|
+
program_action_feed_header = ProgramActionFeedHeader.from_hash(hash['ProgramActionFeedHeader'])
|
|
55
|
+
end
|
|
56
|
+
# Parameter is an array, so we need to iterate through it
|
|
57
|
+
program_action = nil
|
|
58
|
+
unless hash['ProgramAction'].nil?
|
|
59
|
+
program_action = []
|
|
60
|
+
hash['ProgramAction'].each do |structure|
|
|
61
|
+
program_action << (ProgramAction.from_hash(structure) if structure)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
program_action = nil unless hash.key?('ProgramAction')
|
|
66
|
+
|
|
67
|
+
# Create a new hash for additional properties, removing known properties.
|
|
68
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
69
|
+
|
|
70
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
71
|
+
new_hash, proc { |value| value }
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
# Create object from extracted values.
|
|
75
|
+
UpdateWalmartFundedIncentivesEnrollmentForSpecificItemsRequest.new(program_action_feed_header: program_action_feed_header,
|
|
76
|
+
program_action: program_action,
|
|
77
|
+
additional_properties: additional_properties)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a human-readable string representation of the object.
|
|
81
|
+
def to_s
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} program_action_feed_header: #{@program_action_feed_header}, program_action:"\
|
|
84
|
+
" #{@program_action}, additional_properties: #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
88
|
+
def inspect
|
|
89
|
+
class_name = self.class.name.split('::').last
|
|
90
|
+
"<#{class_name} program_action_feed_header: #{@program_action_feed_header.inspect},"\
|
|
91
|
+
" program_action: #{@program_action.inspect}, additional_properties:"\
|
|
92
|
+
" #{@additional_properties}>"
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
# Value Model.
|
|
8
|
+
class Value < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :access_token
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :token_type
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Integer]
|
|
22
|
+
attr_accessor :expires_in
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['access_token'] = 'access_token'
|
|
28
|
+
@_hash['token_type'] = 'token_type'
|
|
29
|
+
@_hash['expires_in'] = 'expires_in'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
[]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for nullable fields
|
|
39
|
+
def self.nullables
|
|
40
|
+
[]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def initialize(access_token:, token_type:, expires_in:,
|
|
44
|
+
additional_properties: nil)
|
|
45
|
+
# Add additional model properties to the instance
|
|
46
|
+
additional_properties = {} if additional_properties.nil?
|
|
47
|
+
|
|
48
|
+
@access_token = access_token
|
|
49
|
+
@token_type = token_type
|
|
50
|
+
@expires_in = expires_in
|
|
51
|
+
@additional_properties = additional_properties
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Creates an instance of the object from a hash.
|
|
55
|
+
def self.from_hash(hash)
|
|
56
|
+
return nil unless hash
|
|
57
|
+
|
|
58
|
+
# Extract variables from the hash.
|
|
59
|
+
access_token = hash.key?('access_token') ? hash['access_token'] : nil
|
|
60
|
+
token_type = hash.key?('token_type') ? hash['token_type'] : nil
|
|
61
|
+
expires_in = hash.key?('expires_in') ? hash['expires_in'] : nil
|
|
62
|
+
|
|
63
|
+
# Create a new hash for additional properties, removing known properties.
|
|
64
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
65
|
+
|
|
66
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
67
|
+
new_hash, proc { |value| value }
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
# Create object from extracted values.
|
|
71
|
+
Value.new(access_token: access_token,
|
|
72
|
+
token_type: token_type,
|
|
73
|
+
expires_in: expires_in,
|
|
74
|
+
additional_properties: additional_properties)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Provides a human-readable string representation of the object.
|
|
78
|
+
def to_s
|
|
79
|
+
class_name = self.class.name.split('::').last
|
|
80
|
+
"<#{class_name} access_token: #{@access_token}, token_type: #{@token_type}, expires_in:"\
|
|
81
|
+
" #{@expires_in}, additional_properties: #{@additional_properties}>"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
85
|
+
def inspect
|
|
86
|
+
class_name = self.class.name.split('::').last
|
|
87
|
+
"<#{class_name} access_token: #{@access_token.inspect}, token_type: #{@token_type.inspect},"\
|
|
88
|
+
" expires_in: #{@expires_in.inspect}, additional_properties: #{@additional_properties}>"
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
# Value1 Model.
|
|
8
|
+
class Value1 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :access_token
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :refresh_token
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :token_type
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [Integer]
|
|
26
|
+
attr_accessor :expires_in
|
|
27
|
+
|
|
28
|
+
# A mapping from model property names to API property names.
|
|
29
|
+
def self.names
|
|
30
|
+
@_hash = {} if @_hash.nil?
|
|
31
|
+
@_hash['access_token'] = 'access_token'
|
|
32
|
+
@_hash['refresh_token'] = 'refresh_token'
|
|
33
|
+
@_hash['token_type'] = 'token_type'
|
|
34
|
+
@_hash['expires_in'] = 'expires_in'
|
|
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(access_token:, refresh_token:, token_type:, expires_in:,
|
|
49
|
+
additional_properties: nil)
|
|
50
|
+
# Add additional model properties to the instance
|
|
51
|
+
additional_properties = {} if additional_properties.nil?
|
|
52
|
+
|
|
53
|
+
@access_token = access_token
|
|
54
|
+
@refresh_token = refresh_token
|
|
55
|
+
@token_type = token_type
|
|
56
|
+
@expires_in = expires_in
|
|
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
|
+
access_token = hash.key?('access_token') ? hash['access_token'] : nil
|
|
66
|
+
refresh_token = hash.key?('refresh_token') ? hash['refresh_token'] : nil
|
|
67
|
+
token_type = hash.key?('token_type') ? hash['token_type'] : nil
|
|
68
|
+
expires_in = hash.key?('expires_in') ? hash['expires_in'] : nil
|
|
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
|
+
Value1.new(access_token: access_token,
|
|
79
|
+
refresh_token: refresh_token,
|
|
80
|
+
token_type: token_type,
|
|
81
|
+
expires_in: expires_in,
|
|
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} access_token: #{@access_token}, refresh_token: #{@refresh_token},"\
|
|
89
|
+
" token_type: #{@token_type}, expires_in: #{@expires_in}, additional_properties:"\
|
|
90
|
+
" #{@additional_properties}>"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
94
|
+
def inspect
|
|
95
|
+
class_name = self.class.name.split('::').last
|
|
96
|
+
"<#{class_name} access_token: #{@access_token.inspect}, refresh_token:"\
|
|
97
|
+
" #{@refresh_token.inspect}, token_type: #{@token_type.inspect}, expires_in:"\
|
|
98
|
+
" #{@expires_in.inspect}, additional_properties: #{@additional_properties}>"
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
# WalmartFundedIncentivesEnrollment Model.
|
|
8
|
+
class WalmartFundedIncentivesEnrollment < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :walmart_funded_incentives_enrollment
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['walmart_funded_incentives_enrollment'] =
|
|
20
|
+
'walmartFundedIncentivesEnrollment'
|
|
21
|
+
@_hash
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# An array for optional fields
|
|
25
|
+
def self.optionals
|
|
26
|
+
[]
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# An array for nullable fields
|
|
30
|
+
def self.nullables
|
|
31
|
+
[]
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def initialize(walmart_funded_incentives_enrollment:,
|
|
35
|
+
additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@walmart_funded_incentives_enrollment = walmart_funded_incentives_enrollment
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
walmart_funded_incentives_enrollment =
|
|
49
|
+
hash.key?('walmartFundedIncentivesEnrollment') ? hash['walmartFundedIncentivesEnrollment'] : nil
|
|
50
|
+
|
|
51
|
+
# Create a new hash for additional properties, removing known properties.
|
|
52
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
53
|
+
|
|
54
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
55
|
+
new_hash, proc { |value| value }
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
# Create object from extracted values.
|
|
59
|
+
WalmartFundedIncentivesEnrollment.new(walmart_funded_incentives_enrollment: walmart_funded_incentives_enrollment,
|
|
60
|
+
additional_properties: additional_properties)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Provides a human-readable string representation of the object.
|
|
64
|
+
def to_s
|
|
65
|
+
class_name = self.class.name.split('::').last
|
|
66
|
+
"<#{class_name} walmart_funded_incentives_enrollment:"\
|
|
67
|
+
" #{@walmart_funded_incentives_enrollment}, additional_properties:"\
|
|
68
|
+
" #{@additional_properties}>"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
72
|
+
def inspect
|
|
73
|
+
class_name = self.class.name.split('::').last
|
|
74
|
+
"<#{class_name} walmart_funded_incentives_enrollment:"\
|
|
75
|
+
" #{@walmart_funded_incentives_enrollment.inspect}, additional_properties:"\
|
|
76
|
+
" #{@additional_properties}>"
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
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
|
+
# Xml1 Model.
|
|
8
|
+
class Xml1 < 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
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['feed_id'] = 'feedId'
|
|
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(feed_id:, additional_properties: nil)
|
|
34
|
+
# Add additional model properties to the instance
|
|
35
|
+
additional_properties = {} if additional_properties.nil?
|
|
36
|
+
|
|
37
|
+
@feed_id = feed_id
|
|
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
|
+
feed_id = hash.key?('feedId') ? hash['feedId'] : 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
|
+
Xml1.new(feed_id: feed_id,
|
|
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} feed_id: #{@feed_id}, 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} feed_id: #{@feed_id.inspect}, additional_properties:"\
|
|
70
|
+
" #{@additional_properties}>"
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# walmart_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module WalmartApIs
|
|
8
|
+
# A utility that supports dateTime conversion to different formats
|
|
9
|
+
class DateTimeHelper < CoreLibrary::DateTimeHelper
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
# A utility to allow users to set the content-type for files
|
|
8
|
+
class FileWrapper < CoreLibrary::FileWrapper
|
|
9
|
+
# The constructor.
|
|
10
|
+
# @param [File] file The file to be sent in the request.
|
|
11
|
+
# @param [string] content_type The content type of the provided file.
|
|
12
|
+
def initialize(file, content_type: 'application/octet-stream')
|
|
13
|
+
super
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Provides a human-readable string representation of the object.
|
|
17
|
+
def to_s
|
|
18
|
+
class_name = self.class.name.split('::').last
|
|
19
|
+
"<#{class_name} file: #{@file}, content_type: #{@content_type}>"
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
23
|
+
def to_inspect
|
|
24
|
+
class_name = self.class.name.split('::').last
|
|
25
|
+
"<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# walmart_ap_is
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
require 'json'
|
|
8
|
+
|
|
9
|
+
require 'apimatic_core_interfaces'
|
|
10
|
+
require 'apimatic_core'
|
|
11
|
+
require 'apimatic_faraday_client_adapter'
|
|
12
|
+
|
|
13
|
+
require_relative 'walmart_ap_is/api_helper'
|
|
14
|
+
require_relative 'walmart_ap_is/client'
|
|
15
|
+
|
|
16
|
+
# Utilities
|
|
17
|
+
require_relative 'walmart_ap_is/utilities/file_wrapper'
|
|
18
|
+
require_relative 'walmart_ap_is/utilities/date_time_helper'
|
|
19
|
+
|
|
20
|
+
# Http
|
|
21
|
+
require_relative 'walmart_ap_is/http/api_response'
|
|
22
|
+
require_relative 'walmart_ap_is/http/http_call_back'
|
|
23
|
+
require_relative 'walmart_ap_is/http/http_method_enum'
|
|
24
|
+
require_relative 'walmart_ap_is/http/http_request'
|
|
25
|
+
require_relative 'walmart_ap_is/http/http_response'
|
|
26
|
+
require_relative 'walmart_ap_is/http/proxy_settings'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# Logger
|
|
30
|
+
require_relative 'walmart_ap_is/logging/configuration/api_logging_configuration'
|
|
31
|
+
require_relative 'walmart_ap_is/logging/sdk_logger'
|
|
32
|
+
require_relative 'walmart_ap_is/http/auth/basic_auth'
|
|
33
|
+
|
|
34
|
+
# Models
|
|
35
|
+
require_relative 'walmart_ap_is/models/base_model'
|
|
36
|
+
require_relative 'walmart_ap_is/models/update_repricer_strategy_request'
|
|
37
|
+
require_relative 'walmart_ap_is/models/strategy'
|
|
38
|
+
require_relative 'walmart_ap_is/models/successful_operation'
|
|
39
|
+
require_relative 'walmart_ap_is/models/successful_operation1'
|
|
40
|
+
require_relative 'walmart_ap_is/models/create_repricer_strategy_request'
|
|
41
|
+
require_relative 'walmart_ap_is/models/successful_operation3'
|
|
42
|
+
require_relative 'walmart_ap_is/models/strategy_collection'
|
|
43
|
+
require_relative 'walmart_ap_is/models/successful_operation4'
|
|
44
|
+
require_relative 'walmart_ap_is/models/successful_operation5'
|
|
45
|
+
require_relative 'walmart_ap_is/models/page_context'
|
|
46
|
+
require_relative 'walmart_ap_is/models/item'
|
|
47
|
+
require_relative 'walmart_ap_is/models/get_pricing_insights_request'
|
|
48
|
+
require_relative 'walmart_ap_is/models/filter'
|
|
49
|
+
require_relative 'walmart_ap_is/models/search_criteria'
|
|
50
|
+
require_relative 'walmart_ap_is/models/sort'
|
|
51
|
+
require_relative 'walmart_ap_is/models/successful_operation6'
|
|
52
|
+
require_relative 'walmart_ap_is/models/pricing_insights_response_list'
|
|
53
|
+
require_relative 'walmart_ap_is/models/update_pricing_for_a_single_item_request'
|
|
54
|
+
require_relative 'walmart_ap_is/models/pricing'
|
|
55
|
+
require_relative 'walmart_ap_is/models/current_price'
|
|
56
|
+
require_relative 'walmart_ap_is/models/successful_operation7'
|
|
57
|
+
require_relative 'walmart_ap_is/models/item_price_response'
|
|
58
|
+
require_relative 'walmart_ap_is/models/' \
|
|
59
|
+
'assign_unassign_items_to_from_repricer_strategy_request'
|
|
60
|
+
require_relative 'walmart_ap_is/models/item_feed_header'
|
|
61
|
+
require_relative 'walmart_ap_is/models/item1'
|
|
62
|
+
require_relative 'walmart_ap_is/models/strategy5'
|
|
63
|
+
require_relative 'walmart_ap_is/models/successful_operation8'
|
|
64
|
+
require_relative 'walmart_ap_is/models/json1'
|
|
65
|
+
require_relative 'walmart_ap_is/models/xml1'
|
|
66
|
+
require_relative 'walmart_ap_is/models/' \
|
|
67
|
+
'update_pricing_for_multiple_items_in_bulk_new_request'
|
|
68
|
+
require_relative 'walmart_ap_is/models/mp_item_feed_header'
|
|
69
|
+
require_relative 'walmart_ap_is/models/mp_item'
|
|
70
|
+
require_relative 'walmart_ap_is/models/promo_discount'
|
|
71
|
+
require_relative 'walmart_ap_is/models/' \
|
|
72
|
+
'update_walmart_funded' \
|
|
73
|
+
'_incentives_enrollment_for_specific_items_request'
|
|
74
|
+
require_relative 'walmart_ap_is/models/program_action_feed_header'
|
|
75
|
+
require_relative 'walmart_ap_is/models/program_action'
|
|
76
|
+
require_relative 'walmart_ap_is/models/item_identifiers'
|
|
77
|
+
require_relative 'walmart_ap_is/models/programs'
|
|
78
|
+
require_relative 'walmart_ap_is/models/walmart_funded_incentives_enrollment'
|
|
79
|
+
require_relative 'walmart_ap_is/models/' \
|
|
80
|
+
'update_reduced_referral_fee_incentives_enrollment_request'
|
|
81
|
+
require_relative 'walmart_ap_is/models/program_action1'
|
|
82
|
+
require_relative 'walmart_ap_is/models/programs1'
|
|
83
|
+
require_relative 'walmart_ap_is/models/incentives_enrollment'
|
|
84
|
+
require_relative 'walmart_ap_is/models/successful_operation11'
|
|
85
|
+
require_relative 'walmart_ap_is/models/set_up_cap_sku_all_legacy_request'
|
|
86
|
+
require_relative 'walmart_ap_is/models/successful_operation12'
|
|
87
|
+
require_relative 'walmart_ap_is/models/status_info'
|
|
88
|
+
require_relative 'walmart_ap_is/models/successful_operation2'
|
|
89
|
+
require_relative 'walmart_ap_is/models/scopes'
|
|
90
|
+
require_relative 'walmart_ap_is/models/token_api_client_credentials'
|
|
91
|
+
require_relative 'walmart_ap_is/models/client_credentials_res'
|
|
92
|
+
require_relative 'walmart_ap_is/models/value'
|
|
93
|
+
require_relative 'walmart_ap_is/models/token_api_res'
|
|
94
|
+
require_relative 'walmart_ap_is/models/value1'
|
|
95
|
+
require_relative 'walmart_ap_is/models/refresh_token_res'
|
|
96
|
+
require_relative 'walmart_ap_is/models/token_api_authorization_code'
|
|
97
|
+
require_relative 'walmart_ap_is/models/token_api_refresh_token'
|
|
98
|
+
|
|
99
|
+
# Exceptions
|
|
100
|
+
require_relative 'walmart_ap_is/exceptions/api_exception'
|
|
101
|
+
|
|
102
|
+
require_relative 'walmart_ap_is/configuration'
|
|
103
|
+
|
|
104
|
+
# Controllers
|
|
105
|
+
require_relative 'walmart_ap_is/apis/base_api'
|
|
106
|
+
require_relative 'walmart_ap_is/apis/m_strategy_collection_id_api'
|
|
107
|
+
require_relative 'walmart_ap_is/apis/strategy_api'
|
|
108
|
+
require_relative 'walmart_ap_is/apis/strategies_api'
|
|
109
|
+
require_relative 'walmart_ap_is/apis/wfpreference_api'
|
|
110
|
+
require_relative 'walmart_ap_is/apis/incentives_api'
|
|
111
|
+
require_relative 'walmart_ap_is/apis/get_pricing_insights_api'
|
|
112
|
+
require_relative 'walmart_ap_is/apis/price_api'
|
|
113
|
+
require_relative 'walmart_ap_is/apis/repricer_feeds_api'
|
|
114
|
+
require_relative 'walmart_ap_is/apis/feeds_api'
|
|
115
|
+
require_relative 'walmart_ap_is/apis/feeds_feed_type_price_and_promotion_api'
|
|
116
|
+
require_relative 'walmart_ap_is/apis/' \
|
|
117
|
+
'feeds_feed_type_walmart_funded_incentives_enrollment_api'
|
|
118
|
+
require_relative 'walmart_ap_is/apis/feeds_feed_type_incentive_enrollment_api'
|
|
119
|
+
require_relative 'walmart_ap_is/apis/cppreference_api'
|
|
120
|
+
require_relative 'walmart_ap_is/apis/detail_api'
|
|
121
|
+
require_relative 'walmart_ap_is/apis/token_api'
|
|
122
|
+
require_relative 'walmart_ap_is/apis/misc_api'
|