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,75 @@
|
|
|
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
|
+
# FeedsFeedTypeWalmartFundedIncentivesEnrollmentApi
|
|
8
|
+
class FeedsFeedTypeWalmartFundedIncentivesEnrollmentApi < BaseApi
|
|
9
|
+
# Updates the enrollment status of specific items in the Walmart-funded
|
|
10
|
+
# incentives program. By default, all items are auto-enrolled in
|
|
11
|
+
# Walmart-funded incentives, meaning that eligible items are automatically
|
|
12
|
+
# included in this program to benefit from price reductions funded by
|
|
13
|
+
# Walmart.
|
|
14
|
+
# You have the flexibility to modify the enrollment status for specific
|
|
15
|
+
# items using this API: <ul><li>Opt-Out - Use this option to opt-out of
|
|
16
|
+
# Walmart-funded incentives for specific items for which you do not want to
|
|
17
|
+
# lower the price.</li> <li>Opt-in - Use this option to opt-in items that
|
|
18
|
+
# were previously opted-out from Walmart-funded incentives. For instance,
|
|
19
|
+
# you can re-enroll items in Walmart-funded incentives programs at any time
|
|
20
|
+
# depending on your business needs.</li></ul>
|
|
21
|
+
# For more information and usage examples, refer to the <a
|
|
22
|
+
# href="https://developer.walmart.com/us-marketplace/docs/manage-enrollment-
|
|
23
|
+
# specific-items-in-walmart-funded-incentives">Pricing API Guide</a>.
|
|
24
|
+
# @param [String] feed_type Required parameter: TODO: type description
|
|
25
|
+
# here
|
|
26
|
+
# @param [String] wm_sec_access_token Required parameter: Access token
|
|
27
|
+
# obtained from the Token API. This is required for authenticating requests
|
|
28
|
+
# to Walmart Marketplace APIs.
|
|
29
|
+
# @param [String] wm_consumer_channel_type Required parameter: A unique ID
|
|
30
|
+
# to track the consumer request by channel. Use the Consumer Channel Type
|
|
31
|
+
# received during onboarding.
|
|
32
|
+
# @param [String] wm_qos_correlation_id Required parameter: A unique ID that
|
|
33
|
+
# identifies each API call and is used to track and debug issues. Use a
|
|
34
|
+
# randomly generated GUID for this ID.
|
|
35
|
+
# @param [String] wm_svc_name Required parameter: Specifies the name of the
|
|
36
|
+
# Walmart service being called.
|
|
37
|
+
# @param [String] accept Required parameter: TODO: type description here
|
|
38
|
+
# @param [UpdateWalmartFundedIncentivesEnrollmentForSpecificItemsRequest]
|
|
39
|
+
# body Required parameter: TODO: type description here
|
|
40
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
41
|
+
def update_walmart_funded_incentives_enrollment_for_specific_items(feed_type,
|
|
42
|
+
wm_sec_access_token,
|
|
43
|
+
wm_consumer_channel_type,
|
|
44
|
+
wm_qos_correlation_id,
|
|
45
|
+
wm_svc_name,
|
|
46
|
+
accept,
|
|
47
|
+
body)
|
|
48
|
+
@api_call
|
|
49
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
50
|
+
'/feeds',
|
|
51
|
+
Server::SERVER_1)
|
|
52
|
+
.query_param(new_parameter(feed_type, key: 'feedType')
|
|
53
|
+
.is_required(true))
|
|
54
|
+
.header_param(new_parameter(wm_sec_access_token, key: 'WM_SEC.ACCESS_TOKEN')
|
|
55
|
+
.is_required(true))
|
|
56
|
+
.header_param(new_parameter(wm_consumer_channel_type, key: 'WM_CONSUMER.CHANNEL.TYPE')
|
|
57
|
+
.is_required(true))
|
|
58
|
+
.header_param(new_parameter(wm_qos_correlation_id, key: 'WM_QOS.CORRELATION_ID')
|
|
59
|
+
.is_required(true))
|
|
60
|
+
.header_param(new_parameter(wm_svc_name, key: 'WM_SVC.NAME')
|
|
61
|
+
.is_required(true))
|
|
62
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
63
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
64
|
+
.is_required(true))
|
|
65
|
+
.body_param(new_parameter(body)
|
|
66
|
+
.is_required(true))
|
|
67
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end))
|
|
68
|
+
.response(new_response_handler
|
|
69
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
70
|
+
.deserialize_into(SuccessfulOperation8.method(:from_hash))
|
|
71
|
+
.is_api_response(true))
|
|
72
|
+
.execute
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
# GetPricingInsightsApi
|
|
8
|
+
class GetPricingInsightsApi < BaseApi
|
|
9
|
+
# Retrieve pricing insights with filters, sorting, and pagination.Use this
|
|
10
|
+
# API to get comprehensive pricing insights for your items on Walmart
|
|
11
|
+
# Marketplace. You can query your catalog for various pricing attributes,
|
|
12
|
+
# including current price, Buy Box pricing information, competitive pricing
|
|
13
|
+
# information, repricer details, and more.
|
|
14
|
+
# @param [String] wm_sec_access_token Required parameter: Access token
|
|
15
|
+
# obtained from the Token API. This is required for authenticating requests
|
|
16
|
+
# to Walmart Marketplace APIs.
|
|
17
|
+
# @param [String] wm_consumer_channel_type Required parameter: A unique ID
|
|
18
|
+
# to identify the consumer request by channel. Use the Consumer Channel Type
|
|
19
|
+
# received during onboarding.
|
|
20
|
+
# @param [String] wm_qos_correlation_id Required parameter: A unique ID that
|
|
21
|
+
# identifies each API call and is used to track and debug issues. Use a
|
|
22
|
+
# randomly generated GUID for this ID.
|
|
23
|
+
# @param [String] wm_svc_name Required parameter: Specifies the name of the
|
|
24
|
+
# Walmart service being called.
|
|
25
|
+
# @param [String] accept Required parameter: TODO: type description here
|
|
26
|
+
# @param [GetPricingInsightsRequest] body Required parameter: TODO: type
|
|
27
|
+
# description here
|
|
28
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
29
|
+
def get_pricing_insights(wm_sec_access_token,
|
|
30
|
+
wm_consumer_channel_type,
|
|
31
|
+
wm_qos_correlation_id,
|
|
32
|
+
wm_svc_name,
|
|
33
|
+
accept,
|
|
34
|
+
body)
|
|
35
|
+
@api_call
|
|
36
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
37
|
+
'/price/getPricingInsights',
|
|
38
|
+
Server::SERVER_1)
|
|
39
|
+
.header_param(new_parameter(wm_sec_access_token, key: 'WM_SEC.ACCESS_TOKEN')
|
|
40
|
+
.is_required(true))
|
|
41
|
+
.header_param(new_parameter(wm_consumer_channel_type, key: 'WM_CONSUMER.CHANNEL.TYPE')
|
|
42
|
+
.is_required(true))
|
|
43
|
+
.header_param(new_parameter(wm_qos_correlation_id, key: 'WM_QOS.CORRELATION_ID')
|
|
44
|
+
.is_required(true))
|
|
45
|
+
.header_param(new_parameter(wm_svc_name, key: 'WM_SVC.NAME')
|
|
46
|
+
.is_required(true))
|
|
47
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
48
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
49
|
+
.is_required(true))
|
|
50
|
+
.body_param(new_parameter(body)
|
|
51
|
+
.is_required(true))
|
|
52
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end))
|
|
53
|
+
.response(new_response_handler
|
|
54
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
55
|
+
.deserialize_into(SuccessfulOperation6.method(:from_hash))
|
|
56
|
+
.is_api_response(true))
|
|
57
|
+
.execute
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
# IncentivesApi
|
|
8
|
+
class IncentivesApi < BaseApi
|
|
9
|
+
# Retrieves a comprehensive list of all price incentives available for items
|
|
10
|
+
# in your catalog.
|
|
11
|
+
# The response includes detailed information such as Item ID, Product Name,
|
|
12
|
+
# Product URL, SKU ID, Target Price, current Price, Incentive Type,
|
|
13
|
+
# Incentive Status, Base referral fee, Reduced Referral Fee, Enrollment
|
|
14
|
+
# Type, Inventory count, Enrollment Date (epoch Timestamp), Expiration date
|
|
15
|
+
# (epoch timestamp), Start date (epoch timestamp), and Incentive ID.
|
|
16
|
+
# For Walmart-funded items, the Target Price, Expiration Date, Start Date,
|
|
17
|
+
# Incentive ID, Reduced Referral Fee, and Enrollment Type will not be
|
|
18
|
+
# displayed (null values). Additionally, Enrollment Type and Date will not
|
|
19
|
+
# be shown for items eligible for Reduced Referral Fee incentives.
|
|
20
|
+
# For more information and usage examples, refer to the <a
|
|
21
|
+
# href="https://developer.walmart.com/us-marketplace/docs/retrieve-price-inc
|
|
22
|
+
# entives-data">Pricing API Guide</a>.
|
|
23
|
+
# @param [Integer] limit Required parameter: Specifies the number of items
|
|
24
|
+
# to return. Allowed range is 1 to 200. Default is 25.
|
|
25
|
+
# @param [Integer] offset Required parameter: Specifies the offset of item
|
|
26
|
+
# list to be returned. Minimum offset value is 0.
|
|
27
|
+
# @param [String] sort_by Required parameter: Specifies the sort criteria
|
|
28
|
+
# for items.
|
|
29
|
+
# @param [String] sort_order Required parameter: Specifies the sort order
|
|
30
|
+
# for given sort criteria.
|
|
31
|
+
# @param [String] incentive_type Required parameter: Specifies the incentive
|
|
32
|
+
# type to filter the incentive items.
|
|
33
|
+
# @param [String] incentive_status Required parameter: Specifies the
|
|
34
|
+
# incentive status to retrieve items with `ELIGIBLE` or `ENROLLED`
|
|
35
|
+
# incentives.
|
|
36
|
+
# @param [String] wm_sec_access_token Required parameter: Access token
|
|
37
|
+
# obtained from the Token API. This is required for authenticating requests
|
|
38
|
+
# to Walmart Marketplace APIs.
|
|
39
|
+
# @param [String] wm_consumer_channel_type Required parameter: A unique ID
|
|
40
|
+
# to track the consumer request by channel. Use the Consumer Channel Type
|
|
41
|
+
# received during onboarding.
|
|
42
|
+
# @param [String] wm_qos_correlation_id Required parameter: A unique ID that
|
|
43
|
+
# identifies each API call and is used to track and debug issues. Use a
|
|
44
|
+
# randomly generated GUID for this ID.
|
|
45
|
+
# @param [String] wm_svc_name Required parameter: Specifies the name of the
|
|
46
|
+
# Walmart service being called.
|
|
47
|
+
# @param [String] accept Required parameter: TODO: type description here
|
|
48
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
49
|
+
def retrieve_price_incentives_data(limit,
|
|
50
|
+
offset,
|
|
51
|
+
sort_by,
|
|
52
|
+
sort_order,
|
|
53
|
+
incentive_type,
|
|
54
|
+
incentive_status,
|
|
55
|
+
wm_sec_access_token,
|
|
56
|
+
wm_consumer_channel_type,
|
|
57
|
+
wm_qos_correlation_id,
|
|
58
|
+
wm_svc_name,
|
|
59
|
+
accept)
|
|
60
|
+
@api_call
|
|
61
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
62
|
+
'/price/incentives',
|
|
63
|
+
Server::SERVER_1)
|
|
64
|
+
.query_param(new_parameter(limit, key: 'limit')
|
|
65
|
+
.is_required(true))
|
|
66
|
+
.query_param(new_parameter(offset, key: 'offset')
|
|
67
|
+
.is_required(true))
|
|
68
|
+
.query_param(new_parameter(sort_by, key: 'sortBy')
|
|
69
|
+
.is_required(true))
|
|
70
|
+
.query_param(new_parameter(sort_order, key: 'sortOrder')
|
|
71
|
+
.is_required(true))
|
|
72
|
+
.query_param(new_parameter(incentive_type, key: 'incentiveType')
|
|
73
|
+
.is_required(true))
|
|
74
|
+
.query_param(new_parameter(incentive_status, key: 'incentiveStatus')
|
|
75
|
+
.is_required(true))
|
|
76
|
+
.header_param(new_parameter(wm_sec_access_token, key: 'WM_SEC.ACCESS_TOKEN')
|
|
77
|
+
.is_required(true))
|
|
78
|
+
.header_param(new_parameter(wm_consumer_channel_type, key: 'WM_CONSUMER.CHANNEL.TYPE')
|
|
79
|
+
.is_required(true))
|
|
80
|
+
.header_param(new_parameter(wm_qos_correlation_id, key: 'WM_QOS.CORRELATION_ID')
|
|
81
|
+
.is_required(true))
|
|
82
|
+
.header_param(new_parameter(wm_svc_name, key: 'WM_SVC.NAME')
|
|
83
|
+
.is_required(true))
|
|
84
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
85
|
+
.is_required(true)))
|
|
86
|
+
.response(new_response_handler
|
|
87
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
88
|
+
.deserialize_into(SuccessfulOperation5.method(:from_hash))
|
|
89
|
+
.is_api_response(true))
|
|
90
|
+
.execute
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
# MStrategyCollectionIdApi
|
|
8
|
+
class MStrategyCollectionIdApi < BaseApi
|
|
9
|
+
# Updates an existing repricer strategy. Use this API to modify and update a
|
|
10
|
+
# repricer strategy rule, name, amount, and unit for a given strategy.
|
|
11
|
+
# For more information and usage examples, refer to the <a
|
|
12
|
+
# href="https://developer.walmart.com/us-marketplace/docs/update-repricer-st
|
|
13
|
+
# rategy">Pricing API Guide</a>.
|
|
14
|
+
# @param [String] strategy_collection_id Required parameter: The unique ID
|
|
15
|
+
# of the repricer strategy. This strategy collection ID is used to identify
|
|
16
|
+
# the specific repricer strategy that should be updated.
|
|
17
|
+
# @param [String] wm_sec_access_token Required parameter: Access token
|
|
18
|
+
# obtained from the Token API. This is required for authenticating requests
|
|
19
|
+
# to Walmart Marketplace APIs.
|
|
20
|
+
# @param [String] wm_consumer_channel_type Required parameter: A unique ID
|
|
21
|
+
# to track the consumer request by channel. Use the Consumer Channel Type
|
|
22
|
+
# received during onboarding.
|
|
23
|
+
# @param [String] wm_qos_correlation_id Required parameter: A unique ID that
|
|
24
|
+
# identifies each API call and is used to track and debug issues. Use a
|
|
25
|
+
# randomly generated GUID for this ID.
|
|
26
|
+
# @param [String] wm_svc_name Required parameter: Specifies the name of the
|
|
27
|
+
# Walmart service being called.
|
|
28
|
+
# @param [String] accept Required parameter: TODO: type description here
|
|
29
|
+
# @param [UpdateRepricerStrategyRequest] body Required parameter: TODO: type
|
|
30
|
+
# description here
|
|
31
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
32
|
+
def update_repricer_strategy(strategy_collection_id,
|
|
33
|
+
wm_sec_access_token,
|
|
34
|
+
wm_consumer_channel_type,
|
|
35
|
+
wm_qos_correlation_id,
|
|
36
|
+
wm_svc_name,
|
|
37
|
+
accept,
|
|
38
|
+
body)
|
|
39
|
+
@api_call
|
|
40
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
41
|
+
'/repricer/strategy/{strategyCollectionId}',
|
|
42
|
+
Server::SERVER_1)
|
|
43
|
+
.template_param(new_parameter(strategy_collection_id, key: 'strategyCollectionId')
|
|
44
|
+
.is_required(true)
|
|
45
|
+
.should_encode(true))
|
|
46
|
+
.header_param(new_parameter(wm_sec_access_token, key: 'WM_SEC.ACCESS_TOKEN')
|
|
47
|
+
.is_required(true))
|
|
48
|
+
.header_param(new_parameter(wm_consumer_channel_type, key: 'WM_CONSUMER.CHANNEL.TYPE')
|
|
49
|
+
.is_required(true))
|
|
50
|
+
.header_param(new_parameter(wm_qos_correlation_id, key: 'WM_QOS.CORRELATION_ID')
|
|
51
|
+
.is_required(true))
|
|
52
|
+
.header_param(new_parameter(wm_svc_name, key: 'WM_SVC.NAME')
|
|
53
|
+
.is_required(true))
|
|
54
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
55
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
56
|
+
.is_required(true))
|
|
57
|
+
.body_param(new_parameter(body)
|
|
58
|
+
.is_required(true))
|
|
59
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end))
|
|
60
|
+
.response(new_response_handler
|
|
61
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
62
|
+
.deserialize_into(SuccessfulOperation.method(:from_hash))
|
|
63
|
+
.is_api_response(true))
|
|
64
|
+
.execute
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Deletes a repricer strategy. Use this API to delete an existing repricer
|
|
68
|
+
# strategy and its corresponding details from the system.
|
|
69
|
+
# For more information and usage examples, refer to the <a
|
|
70
|
+
# href="https://developer.walmart.com/us-marketplace/docs/delete-repricer-st
|
|
71
|
+
# rategy">Pricing API Guide</a>.
|
|
72
|
+
# @param [String] strategy_collection_id Required parameter: The unique ID
|
|
73
|
+
# of the repricer strategy. This strategy collection ID is used to identify
|
|
74
|
+
# the specific repricer strategy that should be deleted.
|
|
75
|
+
# @param [String] wm_sec_access_token Required parameter: Access token
|
|
76
|
+
# obtained from the Token API. This is required for authenticating requests
|
|
77
|
+
# to Walmart Marketplace APIs.
|
|
78
|
+
# @param [String] wm_consumer_channel_type Required parameter: A unique ID
|
|
79
|
+
# to track the consumer request by channel. Use the Consumer Channel Type
|
|
80
|
+
# received during onboarding.
|
|
81
|
+
# @param [String] wm_qos_correlation_id Required parameter: A unique ID that
|
|
82
|
+
# identifies each API call and is used to track and debug issues. Use a
|
|
83
|
+
# randomly generated GUID for this ID.
|
|
84
|
+
# @param [String] wm_svc_name Required parameter: Specifies the name of the
|
|
85
|
+
# Walmart service being called.
|
|
86
|
+
# @param [String] accept Required parameter: TODO: type description here
|
|
87
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
88
|
+
def delete_repricer_strategy(strategy_collection_id,
|
|
89
|
+
wm_sec_access_token,
|
|
90
|
+
wm_consumer_channel_type,
|
|
91
|
+
wm_qos_correlation_id,
|
|
92
|
+
wm_svc_name,
|
|
93
|
+
accept)
|
|
94
|
+
@api_call
|
|
95
|
+
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
96
|
+
'/repricer/strategy/{strategyCollectionId}',
|
|
97
|
+
Server::SERVER_1)
|
|
98
|
+
.template_param(new_parameter(strategy_collection_id, key: 'strategyCollectionId')
|
|
99
|
+
.is_required(true)
|
|
100
|
+
.should_encode(true))
|
|
101
|
+
.header_param(new_parameter(wm_sec_access_token, key: 'WM_SEC.ACCESS_TOKEN')
|
|
102
|
+
.is_required(true))
|
|
103
|
+
.header_param(new_parameter(wm_consumer_channel_type, key: 'WM_CONSUMER.CHANNEL.TYPE')
|
|
104
|
+
.is_required(true))
|
|
105
|
+
.header_param(new_parameter(wm_qos_correlation_id, key: 'WM_QOS.CORRELATION_ID')
|
|
106
|
+
.is_required(true))
|
|
107
|
+
.header_param(new_parameter(wm_svc_name, key: 'WM_SVC.NAME')
|
|
108
|
+
.is_required(true))
|
|
109
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
110
|
+
.is_required(true)))
|
|
111
|
+
.response(new_response_handler
|
|
112
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
113
|
+
.deserialize_into(SuccessfulOperation1.method(:from_hash))
|
|
114
|
+
.is_api_response(true))
|
|
115
|
+
.execute
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
# MiscApi
|
|
8
|
+
class MiscApi < BaseApi
|
|
9
|
+
# TODO: type endpoint description here
|
|
10
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
11
|
+
def new_request
|
|
12
|
+
@api_call
|
|
13
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
14
|
+
'/',
|
|
15
|
+
Server::SERVER_1)
|
|
16
|
+
.auth(Single.new('basic')))
|
|
17
|
+
.response(new_response_handler
|
|
18
|
+
.is_response_void(true)
|
|
19
|
+
.is_api_response(true))
|
|
20
|
+
.execute
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
# PriceApi
|
|
8
|
+
class PriceApi < BaseApi
|
|
9
|
+
# Updates the price of an item listed on Walmart Marketplace. Use this API
|
|
10
|
+
# to change the price of a single item. If you want to update pricing for
|
|
11
|
+
# multiple items, we recommend using the <a
|
|
12
|
+
# href="https://developer.walmart.com/us-marketplace/reference/priceandpromo
|
|
13
|
+
# tionbulkuploads">Update pricing for multiple items in bulk</a> API.
|
|
14
|
+
# For more information and usage examples, refer to the <a
|
|
15
|
+
# href="https://developer.walmart.com/us-marketplace/docs/update-pricing-for
|
|
16
|
+
# -a-single-item">Pricing API Guide</a>.
|
|
17
|
+
# @param [String] wm_sec_access_token Required parameter: Access token
|
|
18
|
+
# obtained from the Token API. This is required for authenticating requests
|
|
19
|
+
# to Walmart Marketplace APIs.
|
|
20
|
+
# @param [String] wm_consumer_channel_type Required parameter: A unique ID
|
|
21
|
+
# to track the consumer request by channel. Use the Consumer Channel Type
|
|
22
|
+
# received during onboarding.
|
|
23
|
+
# @param [String] wm_qos_correlation_id Required parameter: A unique ID that
|
|
24
|
+
# identifies each API call and is used to track and debug issues. Use a
|
|
25
|
+
# randomly generated GUID for this ID
|
|
26
|
+
# @param [String] wm_svc_name Required parameter: Specifies the name of the
|
|
27
|
+
# Walmart service being called.
|
|
28
|
+
# @param [String] accept Required parameter: TODO: type description here
|
|
29
|
+
# @param [UpdatePricingForASingleItemRequest] body Required parameter: TODO:
|
|
30
|
+
# type description here
|
|
31
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
32
|
+
def update_pricing_for_a_single_item(wm_sec_access_token,
|
|
33
|
+
wm_consumer_channel_type,
|
|
34
|
+
wm_qos_correlation_id,
|
|
35
|
+
wm_svc_name,
|
|
36
|
+
accept,
|
|
37
|
+
body)
|
|
38
|
+
@api_call
|
|
39
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
40
|
+
'/price',
|
|
41
|
+
Server::SERVER_1)
|
|
42
|
+
.header_param(new_parameter(wm_sec_access_token, key: 'WM_SEC.ACCESS_TOKEN')
|
|
43
|
+
.is_required(true))
|
|
44
|
+
.header_param(new_parameter(wm_consumer_channel_type, key: 'WM_CONSUMER.CHANNEL.TYPE')
|
|
45
|
+
.is_required(true))
|
|
46
|
+
.header_param(new_parameter(wm_qos_correlation_id, key: 'WM_QOS.CORRELATION_ID')
|
|
47
|
+
.is_required(true))
|
|
48
|
+
.header_param(new_parameter(wm_svc_name, key: 'WM_SVC.NAME')
|
|
49
|
+
.is_required(true))
|
|
50
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
51
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
52
|
+
.is_required(true))
|
|
53
|
+
.body_param(new_parameter(body)
|
|
54
|
+
.is_required(true))
|
|
55
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end))
|
|
56
|
+
.response(new_response_handler
|
|
57
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
58
|
+
.deserialize_into(SuccessfulOperation7.method(:from_hash))
|
|
59
|
+
.is_api_response(true))
|
|
60
|
+
.execute
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
# RepricerFeedsApi
|
|
8
|
+
class RepricerFeedsApi < BaseApi
|
|
9
|
+
# Adds or removes one or more items from a repricer strategy. Use this API
|
|
10
|
+
# to assign or unassign repricer strategies for items listed in Walmart
|
|
11
|
+
# Marketplace.
|
|
12
|
+
# In one feed you can update up to 10,000 items in bulk. To ensure optimal
|
|
13
|
+
# feed processing time, we recommend sending no more than 1000 items in one
|
|
14
|
+
# feed and keeping the feed sizes below 10 MB.
|
|
15
|
+
# For more information and usage examples, refer to the <a
|
|
16
|
+
# href="https://developer.walmart.com/us-marketplace/docs/assign-unassign-it
|
|
17
|
+
# ems-to-repricer">Pricing API Guide</a>.
|
|
18
|
+
# @param [String] wm_sec_access_token Required parameter: Access token
|
|
19
|
+
# obtained from the Token API. This is required for authenticating requests
|
|
20
|
+
# to Walmart Marketplace APIs.
|
|
21
|
+
# @param [String] wm_consumer_channel_type Required parameter: A unique ID
|
|
22
|
+
# to track the consumer request by channel. Use the Consumer Channel Type
|
|
23
|
+
# received during onboarding.
|
|
24
|
+
# @param [String] wm_qos_correlation_id Required parameter: A unique ID that
|
|
25
|
+
# identifies each API call and is used to track and debug issues. Use a
|
|
26
|
+
# randomly generated GUID for this ID.
|
|
27
|
+
# @param [String] wm_svc_name Required parameter: Specifies the name of the
|
|
28
|
+
# Walmart service being called.
|
|
29
|
+
# @param [String] accept Required parameter: TODO: type description here
|
|
30
|
+
# @param [AssignUnassignItemsToFromRepricerStrategyRequest] body Required
|
|
31
|
+
# parameter: TODO: type description here
|
|
32
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
33
|
+
def assign_unassign_items_to_from_repricer_strategy(wm_sec_access_token,
|
|
34
|
+
wm_consumer_channel_type,
|
|
35
|
+
wm_qos_correlation_id,
|
|
36
|
+
wm_svc_name,
|
|
37
|
+
accept,
|
|
38
|
+
body)
|
|
39
|
+
@api_call
|
|
40
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
41
|
+
'/repricerFeeds',
|
|
42
|
+
Server::SERVER_1)
|
|
43
|
+
.header_param(new_parameter(wm_sec_access_token, key: 'WM_SEC.ACCESS_TOKEN')
|
|
44
|
+
.is_required(true))
|
|
45
|
+
.header_param(new_parameter(wm_consumer_channel_type, key: 'WM_CONSUMER.CHANNEL.TYPE')
|
|
46
|
+
.is_required(true))
|
|
47
|
+
.header_param(new_parameter(wm_qos_correlation_id, key: 'WM_QOS.CORRELATION_ID')
|
|
48
|
+
.is_required(true))
|
|
49
|
+
.header_param(new_parameter(wm_svc_name, key: 'WM_SVC.NAME')
|
|
50
|
+
.is_required(true))
|
|
51
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
52
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
53
|
+
.is_required(true))
|
|
54
|
+
.body_param(new_parameter(body)
|
|
55
|
+
.is_required(true))
|
|
56
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end))
|
|
57
|
+
.response(new_response_handler
|
|
58
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
59
|
+
.deserialize_into(SuccessfulOperation8.method(:from_hash))
|
|
60
|
+
.is_api_response(true))
|
|
61
|
+
.execute
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
# StrategiesApi
|
|
8
|
+
class StrategiesApi < BaseApi
|
|
9
|
+
# Retrieves the details of a specific repricer strategy that was previously
|
|
10
|
+
# created for items in Walmart Marketplace.
|
|
11
|
+
# Use this API to view the list of strategies used and details about the
|
|
12
|
+
# strategy including the strategy collection name, status, assigned items
|
|
13
|
+
# count, and strategy type.
|
|
14
|
+
# For more information and usage examples, refer to the <a
|
|
15
|
+
# href="https://developer.walmart.com/us-marketplace/docs/get-repricer-strat
|
|
16
|
+
# egy">Pricing API Guide</a>.
|
|
17
|
+
# @param [String] wm_sec_access_token Required parameter: Access token
|
|
18
|
+
# obtained from the Token API. This is required for authenticating requests
|
|
19
|
+
# to Walmart Marketplace APIs.
|
|
20
|
+
# @param [String] wm_consumer_channel_type Required parameter: A unique ID
|
|
21
|
+
# to track the consumer request by channel. Use the Consumer Channel Type
|
|
22
|
+
# received during onboarding.
|
|
23
|
+
# @param [String] wm_qos_correlation_id Required parameter: A unique ID that
|
|
24
|
+
# identifies each API call and is used to track and debug issues. Use a
|
|
25
|
+
# randomly generated GUID for this ID.
|
|
26
|
+
# @param [String] wm_svc_name Required parameter: Specifies the name of the
|
|
27
|
+
# Walmart service being called.
|
|
28
|
+
# @param [String] accept Required parameter: TODO: type description here
|
|
29
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
30
|
+
def retrieve_repricer_strategy_details(wm_sec_access_token,
|
|
31
|
+
wm_consumer_channel_type,
|
|
32
|
+
wm_qos_correlation_id,
|
|
33
|
+
wm_svc_name,
|
|
34
|
+
accept)
|
|
35
|
+
@api_call
|
|
36
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
37
|
+
'/repricer/strategies',
|
|
38
|
+
Server::SERVER_1)
|
|
39
|
+
.header_param(new_parameter(wm_sec_access_token, key: 'WM_SEC.ACCESS_TOKEN')
|
|
40
|
+
.is_required(true))
|
|
41
|
+
.header_param(new_parameter(wm_consumer_channel_type, key: 'WM_CONSUMER.CHANNEL.TYPE')
|
|
42
|
+
.is_required(true))
|
|
43
|
+
.header_param(new_parameter(wm_qos_correlation_id, key: 'WM_QOS.CORRELATION_ID')
|
|
44
|
+
.is_required(true))
|
|
45
|
+
.header_param(new_parameter(wm_svc_name, key: 'WM_SVC.NAME')
|
|
46
|
+
.is_required(true))
|
|
47
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
48
|
+
.is_required(true)))
|
|
49
|
+
.response(new_response_handler
|
|
50
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
51
|
+
.deserialize_into(SuccessfulOperation3.method(:from_hash))
|
|
52
|
+
.is_api_response(true))
|
|
53
|
+
.execute
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
# StrategyApi
|
|
8
|
+
class StrategyApi < BaseApi
|
|
9
|
+
# Creates a new repricing strategy on Walmart Marketplace. A repricer
|
|
10
|
+
# strategy defines how item prices should be automatically adjusted based on
|
|
11
|
+
# competitor pricing, buy box position, or other rules.
|
|
12
|
+
# Use this API when onboarding new pricing logic or launching a dynamic
|
|
13
|
+
# pricing strategy that responds to market conditions automatically.
|
|
14
|
+
# For more information and usage examples, refer to the <a
|
|
15
|
+
# href="https://developer.walmart.com/us-marketplace/docs/create-new-reprice
|
|
16
|
+
# r-strategy">Pricing API Guide</a>.
|
|
17
|
+
# @param [String] wm_sec_access_token Required parameter: Access token
|
|
18
|
+
# obtained from the Token API. This is required for authenticating requests
|
|
19
|
+
# to Walmart Marketplace APIs.
|
|
20
|
+
# @param [String] wm_consumer_channel_type Required parameter: A unique ID
|
|
21
|
+
# to track the consumer request by channel. Use the Consumer Channel Type
|
|
22
|
+
# received during onboarding.
|
|
23
|
+
# @param [String] wm_qos_correlation_id Required parameter: A unique ID that
|
|
24
|
+
# identifies each API call and is used to track and debug issues. Use a
|
|
25
|
+
# randomly generated GUID for this ID.
|
|
26
|
+
# @param [String] wm_svc_name Required parameter: Specifies the name of the
|
|
27
|
+
# Walmart service being called.
|
|
28
|
+
# @param [String] accept Required parameter: TODO: type description here
|
|
29
|
+
# @param [CreateRepricerStrategyRequest] body Required parameter: TODO: type
|
|
30
|
+
# description here
|
|
31
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
32
|
+
def create_repricer_strategy(wm_sec_access_token,
|
|
33
|
+
wm_consumer_channel_type,
|
|
34
|
+
wm_qos_correlation_id,
|
|
35
|
+
wm_svc_name,
|
|
36
|
+
accept,
|
|
37
|
+
body)
|
|
38
|
+
@api_call
|
|
39
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
40
|
+
'/repricer/strategy',
|
|
41
|
+
Server::SERVER_1)
|
|
42
|
+
.header_param(new_parameter(wm_sec_access_token, key: 'WM_SEC.ACCESS_TOKEN')
|
|
43
|
+
.is_required(true))
|
|
44
|
+
.header_param(new_parameter(wm_consumer_channel_type, key: 'WM_CONSUMER.CHANNEL.TYPE')
|
|
45
|
+
.is_required(true))
|
|
46
|
+
.header_param(new_parameter(wm_qos_correlation_id, key: 'WM_QOS.CORRELATION_ID')
|
|
47
|
+
.is_required(true))
|
|
48
|
+
.header_param(new_parameter(wm_svc_name, key: 'WM_SVC.NAME')
|
|
49
|
+
.is_required(true))
|
|
50
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
51
|
+
.header_param(new_parameter(accept, key: 'Accept')
|
|
52
|
+
.is_required(true))
|
|
53
|
+
.body_param(new_parameter(body)
|
|
54
|
+
.is_required(true))
|
|
55
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end))
|
|
56
|
+
.response(new_response_handler
|
|
57
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
58
|
+
.deserialize_into(SuccessfulOperation.method(:from_hash))
|
|
59
|
+
.is_api_response(true))
|
|
60
|
+
.execute
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|