peddler 5.1.0 → 5.3.0
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 +4 -4
- data/README.md +2 -3
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/distribution_ineligible_reason.rb +24 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/distribution_product.rb +24 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_shipment_summary.rb +30 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/replenishment_order.rb +48 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/replenishment_order_creation_data.rb +21 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/replenishment_order_listing.rb +24 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/replenishment_order_reference.rb +18 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/replenishment_preferences.rb +17 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09.rb +70 -0
- data/lib/peddler/apis/finances_2024_06_19.rb +4 -4
- data/lib/peddler/apis/fulfillment_inbound_2024_03_20/item.rb +2 -1
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/drop_off_location.rb +2 -0
- data/lib/peddler/apis/invoices_2024_06_19/carrier_details_context.rb +38 -0
- data/lib/peddler/apis/invoices_2024_06_19/government_invoice_request.rb +36 -0
- data/lib/peddler/apis/invoices_2024_06_19/government_invoice_status_response.rb +23 -0
- data/lib/peddler/apis/invoices_2024_06_19/govt_invoice_document_response.rb +17 -0
- data/lib/peddler/apis/invoices_2024_06_19/invoice_document.rb +18 -0
- data/lib/peddler/apis/invoices_2024_06_19/invoice_error.rb +20 -0
- data/lib/peddler/apis/invoices_2024_06_19.rb +66 -0
- data/lib/peddler/apis/messaging_v1.rb +0 -20
- data/lib/peddler/apis/orders_2026_01_01/address_extended_fields.rb +29 -0
- data/lib/peddler/apis/orders_2026_01_01/alias.rb +22 -0
- data/lib/peddler/apis/orders_2026_01_01/associated_order.rb +22 -0
- data/lib/peddler/apis/orders_2026_01_01/business_hour.rb +22 -0
- data/lib/peddler/apis/orders_2026_01_01/buyer.rb +28 -0
- data/lib/peddler/apis/orders_2026_01_01/customer_address.rb +66 -0
- data/lib/peddler/apis/orders_2026_01_01/date_time_range.rb +23 -0
- data/lib/peddler/apis/orders_2026_01_01/delivery_preference.rb +28 -0
- data/lib/peddler/apis/orders_2026_01_01/error.rb +23 -0
- data/lib/peddler/apis/orders_2026_01_01/error_list.rb +17 -0
- data/lib/peddler/apis/orders_2026_01_01/exception_date.rb +25 -0
- data/lib/peddler/apis/orders_2026_01_01/get_order_response.rb +17 -0
- data/lib/peddler/apis/orders_2026_01_01/gift_option.rb +20 -0
- data/lib/peddler/apis/orders_2026_01_01/hour_minute.rb +20 -0
- data/lib/peddler/apis/orders_2026_01_01/item_cancellation.rb +17 -0
- data/lib/peddler/apis/orders_2026_01_01/item_cancellation_request.rb +22 -0
- data/lib/peddler/apis/orders_2026_01_01/item_condition.rb +30 -0
- data/lib/peddler/apis/orders_2026_01_01/item_customization.rb +17 -0
- data/lib/peddler/apis/orders_2026_01_01/item_expense.rb +17 -0
- data/lib/peddler/apis/orders_2026_01_01/item_fulfillment.rb +29 -0
- data/lib/peddler/apis/orders_2026_01_01/item_international_shipping.rb +19 -0
- data/lib/peddler/apis/orders_2026_01_01/item_packing.rb +17 -0
- data/lib/peddler/apis/orders_2026_01_01/item_picking.rb +18 -0
- data/lib/peddler/apis/orders_2026_01_01/item_points_cost.rb +18 -0
- data/lib/peddler/apis/orders_2026_01_01/item_price.rb +24 -0
- data/lib/peddler/apis/orders_2026_01_01/item_proceeds.rb +20 -0
- data/lib/peddler/apis/orders_2026_01_01/item_proceeds_breakdown.rb +25 -0
- data/lib/peddler/apis/orders_2026_01_01/item_proceeds_detailed_breakdown.rb +23 -0
- data/lib/peddler/apis/orders_2026_01_01/item_product.rb +36 -0
- data/lib/peddler/apis/orders_2026_01_01/item_promotion.rb +17 -0
- data/lib/peddler/apis/orders_2026_01_01/item_promotion_breakdown.rb +17 -0
- data/lib/peddler/apis/orders_2026_01_01/item_shipping.rb +24 -0
- data/lib/peddler/apis/orders_2026_01_01/item_shipping_constraints.rb +30 -0
- data/lib/peddler/apis/orders_2026_01_01/item_substitution_option.rb +30 -0
- data/lib/peddler/apis/orders_2026_01_01/item_substitution_preference.rb +21 -0
- data/lib/peddler/apis/orders_2026_01_01/measurement.rb +21 -0
- data/lib/peddler/apis/orders_2026_01_01/merchant_address.rb +44 -0
- data/lib/peddler/apis/orders_2026_01_01/order.rb +63 -0
- data/lib/peddler/apis/orders_2026_01_01/order_fulfillment.rb +37 -0
- data/lib/peddler/apis/orders_2026_01_01/order_item.rb +48 -0
- data/lib/peddler/apis/orders_2026_01_01/order_package.rb +47 -0
- data/lib/peddler/apis/orders_2026_01_01/order_proceeds.rb +17 -0
- data/lib/peddler/apis/orders_2026_01_01/package_item.rb +23 -0
- data/lib/peddler/apis/orders_2026_01_01/package_status.rb +32 -0
- data/lib/peddler/apis/orders_2026_01_01/pagination.rb +22 -0
- data/lib/peddler/apis/orders_2026_01_01/points_granted.rb +20 -0
- data/lib/peddler/apis/orders_2026_01_01/preferred_delivery_time.rb +21 -0
- data/lib/peddler/apis/orders_2026_01_01/recipient.rb +21 -0
- data/lib/peddler/apis/orders_2026_01_01/sales_channel.rb +26 -0
- data/lib/peddler/apis/orders_2026_01_01/search_orders_response.rb +35 -0
- data/lib/peddler/apis/orders_2026_01_01/time_window.rb +20 -0
- data/lib/peddler/apis/orders_2026_01_01.rb +93 -0
- data/lib/peddler/apis/orders_v0.rb +2 -2
- data/lib/peddler/apis/product_pricing_v0/get_offers_result.rb +3 -3
- data/lib/peddler/apis/vendor_shipments_v1/item_details.rb +16 -0
- data/lib/peddler/apis/vendor_shipments_v1/package_item_details.rb +0 -16
- data/lib/peddler/apis/vendor_shipments_v1/regulation_references.rb +9 -11
- data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_asin_sales.rb +37 -0
- data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_date_sales.rb +40 -8
- data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_date_traffic.rb +19 -6
- data/lib/peddler/data_kiosk/sales_and_traffic20240424.json +273 -13
- data/lib/peddler/notifications/any_offer_changed/notification.rb +3 -3
- data/lib/peddler/notifications/b2b_any_offer_changed/b2b_any_offer_changed_notification.rb +6 -6
- data/lib/peddler/notifications/b2b_any_offer_changed/buy_box_price.rb +12 -9
- data/lib/peddler/notifications/b2b_any_offer_changed/lowest_price.rb +11 -8
- data/lib/peddler/notifications/b2b_any_offer_changed/notification.rb +10 -13
- data/lib/peddler/notifications/b2b_any_offer_changed/notification_metadata.rb +8 -8
- data/lib/peddler/notifications/b2b_any_offer_changed/offer.rb +25 -23
- data/lib/peddler/notifications/b2b_any_offer_changed/offer_change_trigger.rb +9 -9
- data/lib/peddler/notifications/b2b_any_offer_changed/offer_count.rb +4 -4
- data/lib/peddler/notifications/b2b_any_offer_changed/payload.rb +2 -2
- data/lib/peddler/notifications/b2b_any_offer_changed/points.rb +16 -0
- data/lib/peddler/notifications/b2b_any_offer_changed/prime_information.rb +4 -4
- data/lib/peddler/notifications/b2b_any_offer_changed/quantity_discount_price_type.rb +3 -3
- data/lib/peddler/notifications/b2b_any_offer_changed/seller_feedback_rating.rb +4 -4
- data/lib/peddler/notifications/b2b_any_offer_changed/shipping_time.rb +9 -9
- data/lib/peddler/notifications/b2b_any_offer_changed/ships_from.rb +4 -1
- data/lib/peddler/notifications/b2b_any_offer_changed/summary.rb +8 -8
- data/lib/peddler/version.rb +1 -1
- data/lib/peddler.rb +2 -1
- data/sig/peddler/apis/amazon_warehousing_and_distribution_2024_05_09.rbs +153 -0
- data/sig/peddler/apis/invoices_2024_06_19.rbs +115 -0
- data/sig/peddler/apis/messaging_v1.rbs +0 -34
- data/sig/peddler/apis/orders_2026_01_01.rbs +940 -0
- data/sig/peddler/apis/product_pricing_v0.rbs +7 -7
- data/sig/peddler/apis/vendor_shipments_v1.rbs +18 -18
- data/sig/peddler/data_kiosk/sales_and_traffic20240424.rbs +41 -21
- data/sig/peddler/notifications/any_offer_changed.rbs +7 -7
- data/sig/peddler/notifications/b2b_any_offer_changed.rbs +58 -38
- data/sig/peddler.rbs +3 -1
- metadata +69 -12
- data/lib/peddler/apis/messaging_v1/create_amazon_motors_request.rb +0 -19
- data/lib/peddler/apis/messaging_v1/create_amazon_motors_response.rb +0 -17
- data/lib/peddler/notifications/mfn_order_status_change/notification.rb +0 -32
- data/lib/peddler/notifications/mfn_order_status_change/payload.rb +0 -17
- data/lib/peddler/notifications/mfn_order_status_change.rb +0 -18
- data/lib/peddler/notifications/order_status_change/notification.rb +0 -32
- data/lib/peddler/notifications/order_status_change/order_status_change_notification.rb +0 -48
- data/lib/peddler/notifications/order_status_change/payload.rb +0 -17
- data/lib/peddler/notifications/order_status_change.rb +0 -18
- data/sig/peddler/notifications/mfn_order_status_change.rbs +0 -44
- data/sig/peddler/notifications/order_status_change.rbs +0 -70
|
@@ -3,52 +3,54 @@
|
|
|
3
3
|
# This file is generated. Do not edit.
|
|
4
4
|
|
|
5
5
|
require "structure"
|
|
6
|
-
require "time"
|
|
7
6
|
|
|
8
7
|
module Peddler
|
|
9
8
|
module Notifications
|
|
10
9
|
module B2BAnyOfferChanged
|
|
11
10
|
Offer = Structure.new do
|
|
12
|
-
# @return [:boolean]
|
|
13
|
-
attribute(:fulfilled_by_amazon, :boolean, from: "
|
|
11
|
+
# @return [:boolean] Indicates whether the offer is fulfilled by Amazon
|
|
12
|
+
attribute(:fulfilled_by_amazon, :boolean, from: "IsFulfilledByAmazon")
|
|
14
13
|
|
|
15
14
|
# @return [Money]
|
|
16
|
-
attribute(:listing_price, Money, from: "
|
|
15
|
+
attribute(:listing_price, Money, from: "ListingPrice")
|
|
17
16
|
|
|
18
|
-
# @return [String] The seller identifier for the offer
|
|
19
|
-
attribute(:seller_id, String, from: "
|
|
17
|
+
# @return [String] The seller identifier for the offer
|
|
18
|
+
attribute(:seller_id, String, from: "SellerId")
|
|
20
19
|
|
|
21
20
|
# @return [Money]
|
|
22
|
-
attribute(:shipping, Money)
|
|
21
|
+
attribute(:shipping, Money, from: "Shipping")
|
|
23
22
|
|
|
24
|
-
# @return [
|
|
25
|
-
attribute(:shipping_time,
|
|
23
|
+
# @return [Hash]
|
|
24
|
+
attribute(:shipping_time, Hash, from: "ShippingTime")
|
|
26
25
|
|
|
27
|
-
# @return [String] The subcondition of the item
|
|
28
|
-
attribute(:sub_condition, String, from: "
|
|
26
|
+
# @return [String] The subcondition of the item
|
|
27
|
+
attribute(:sub_condition, String, from: "SubCondition")
|
|
29
28
|
|
|
30
|
-
# @return [String] Information about the condition of the item
|
|
31
|
-
attribute?(:condition_notes, String, from: "
|
|
29
|
+
# @return [String] Information about the condition of the item
|
|
30
|
+
attribute?(:condition_notes, String, from: "ConditionNotes")
|
|
32
31
|
|
|
33
|
-
# @return [:boolean]
|
|
34
|
-
# any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime
|
|
35
|
-
attribute?(:buy_box_winner, :boolean, from: "
|
|
32
|
+
# @return [:boolean] Indicates whether the offer is currently in the Buy Box. There can be up to two Buy Box
|
|
33
|
+
# winners at any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime
|
|
34
|
+
attribute?(:buy_box_winner, :boolean, from: "IsBuyBoxWinner")
|
|
36
35
|
|
|
37
|
-
# @return [:boolean]
|
|
38
|
-
attribute?(:featured_merchant, :boolean, from: "
|
|
36
|
+
# @return [:boolean] Indicates whether the seller of the item is eligible to win the Buy Box
|
|
37
|
+
attribute?(:featured_merchant, :boolean, from: "IsFeaturedMerchant")
|
|
38
|
+
|
|
39
|
+
# @return [Points]
|
|
40
|
+
attribute?(:points, Points, from: "Points")
|
|
39
41
|
|
|
40
42
|
# @return [PrimeInformation]
|
|
41
|
-
attribute?(:prime_information, PrimeInformation, from: "
|
|
43
|
+
attribute?(:prime_information, PrimeInformation, from: "PrimeInformation")
|
|
42
44
|
|
|
43
45
|
# @return [Array<QuantityDiscountPriceType>] Contains a list of pricing information that includes special
|
|
44
|
-
# pricing when buying in bulk
|
|
45
|
-
attribute?(:quantity_discount_price, [QuantityDiscountPriceType], from: "
|
|
46
|
+
# pricing when buying in bulk
|
|
47
|
+
attribute?(:quantity_discount_price, [QuantityDiscountPriceType], from: "QuantityDiscountPrice")
|
|
46
48
|
|
|
47
49
|
# @return [SellerFeedbackRating]
|
|
48
|
-
attribute?(:seller_feedback_rating, SellerFeedbackRating, from: "
|
|
50
|
+
attribute?(:seller_feedback_rating, SellerFeedbackRating, from: "SellerFeedbackRating")
|
|
49
51
|
|
|
50
52
|
# @return [ShipsFrom]
|
|
51
|
-
attribute?(:ships_from, ShipsFrom, from: "
|
|
53
|
+
attribute?(:ships_from, ShipsFrom, from: "ShipsFrom")
|
|
52
54
|
end
|
|
53
55
|
end
|
|
54
56
|
end
|
|
@@ -7,19 +7,19 @@ require "structure"
|
|
|
7
7
|
module Peddler
|
|
8
8
|
module Notifications
|
|
9
9
|
module B2BAnyOfferChanged
|
|
10
|
-
# The event that caused the notification to be sent
|
|
10
|
+
# The event that caused the notification to be sent
|
|
11
11
|
OfferChangeTrigger = Structure.new do
|
|
12
|
-
# @return [String] The
|
|
13
|
-
attribute(:asin, String)
|
|
12
|
+
# @return [String] The asin for the item that had an offer change
|
|
13
|
+
attribute(:asin, String, from: "ASIN")
|
|
14
14
|
|
|
15
|
-
# @return [String] The condition of the item that had an offer change
|
|
16
|
-
attribute(:item_condition, String, from: "
|
|
15
|
+
# @return [String] The condition of the item that had an offer change
|
|
16
|
+
attribute(:item_condition, String, from: "ItemCondition")
|
|
17
17
|
|
|
18
|
-
# @return [String] The marketplace identifier of the item that had an offer change
|
|
19
|
-
attribute(:marketplace_id, String, from: "
|
|
18
|
+
# @return [String] The marketplace identifier of the item that had an offer change
|
|
19
|
+
attribute(:marketplace_id, String, from: "MarketplaceId")
|
|
20
20
|
|
|
21
|
-
# @return [String] The update time for the offer that caused this notification
|
|
22
|
-
attribute(:time_of_offer_change, String, from: "
|
|
21
|
+
# @return [String] The update time for the offer that caused this notification
|
|
22
|
+
attribute(:time_of_offer_change, String, from: "TimeOfOfferChange")
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
end
|
|
@@ -9,13 +9,13 @@ module Peddler
|
|
|
9
9
|
module B2BAnyOfferChanged
|
|
10
10
|
OfferCount = Structure.new do
|
|
11
11
|
# @return [String]
|
|
12
|
-
attribute(:condition, String)
|
|
12
|
+
attribute(:condition, String, from: "Condition")
|
|
13
13
|
|
|
14
14
|
# @return [String]
|
|
15
|
-
attribute(:fulfillment_channel, String, from: "
|
|
15
|
+
attribute(:fulfillment_channel, String, from: "FulfillmentChannel")
|
|
16
16
|
|
|
17
|
-
# @return [Integer] The total number of offers for the specified condition and fulfillment channel
|
|
18
|
-
attribute?(:offer_count, Integer, from: "
|
|
17
|
+
# @return [Integer] The total number of offers for the specified condition and fulfillment channel
|
|
18
|
+
attribute?(:offer_count, Integer, from: "OfferCount")
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
end
|
|
@@ -7,10 +7,10 @@ require "structure"
|
|
|
7
7
|
module Peddler
|
|
8
8
|
module Notifications
|
|
9
9
|
module B2BAnyOfferChanged
|
|
10
|
-
# Notification payload
|
|
10
|
+
# Notification payload data
|
|
11
11
|
Payload = Structure.new do
|
|
12
12
|
# @return [B2BAnyOfferChangedNotification]
|
|
13
|
-
attribute(:b2b_any_offer_changed_notification, B2BAnyOfferChangedNotification, from: "
|
|
13
|
+
attribute(:b2b_any_offer_changed_notification, B2BAnyOfferChangedNotification, from: "B2BAnyOfferChangedNotification")
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated. Do not edit.
|
|
4
|
+
|
|
5
|
+
require "structure"
|
|
6
|
+
|
|
7
|
+
module Peddler
|
|
8
|
+
module Notifications
|
|
9
|
+
module B2BAnyOfferChanged
|
|
10
|
+
Points = Structure.new do
|
|
11
|
+
# @return [Integer] The number of Amazon Points offered with the purchase of an item
|
|
12
|
+
attribute(:points_number, Integer, from: "PointsNumber")
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -9,11 +9,11 @@ module Peddler
|
|
|
9
9
|
module B2BAnyOfferChanged
|
|
10
10
|
PrimeInformation = Structure.new do
|
|
11
11
|
# @return [:boolean] Indicates whether the offer is an Amazon Prime offer throughout the entire marketplace
|
|
12
|
-
# where it is listed
|
|
13
|
-
attribute?(:
|
|
12
|
+
# where it is listed
|
|
13
|
+
attribute?(:national_prime, :boolean, from: "IsNationalPrime")
|
|
14
14
|
|
|
15
|
-
# @return [:boolean] Indicates whether the offer is an Amazon Prime offer
|
|
16
|
-
attribute?(:
|
|
15
|
+
# @return [:boolean] Indicates whether the offer is an Amazon Prime offer
|
|
16
|
+
attribute?(:prime, :boolean, from: "IsPrime")
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
@@ -10,13 +10,13 @@ module Peddler
|
|
|
10
10
|
# Contains pricing information that includes special pricing when buying in bulk.
|
|
11
11
|
QuantityDiscountPriceType = Structure.new do
|
|
12
12
|
# @return [Money] The price at this quantity tier.
|
|
13
|
-
attribute(:listing_price, Money, from: "
|
|
13
|
+
attribute(:listing_price, Money, from: "ListingPrice")
|
|
14
14
|
|
|
15
15
|
# @return [String] Indicates the type of quantity discount this price applies to.
|
|
16
|
-
attribute(:quantity_discount_type, String, from: "
|
|
16
|
+
attribute(:quantity_discount_type, String, from: "QuantityDiscountType")
|
|
17
17
|
|
|
18
18
|
# @return [Integer] Indicates at what quantity this price becomes active.
|
|
19
|
-
attribute(:quantity_tier, Integer, from: "
|
|
19
|
+
attribute(:quantity_tier, Integer, from: "QuantityTier")
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
end
|
|
@@ -8,11 +8,11 @@ module Peddler
|
|
|
8
8
|
module Notifications
|
|
9
9
|
module B2BAnyOfferChanged
|
|
10
10
|
SellerFeedbackRating = Structure.new do
|
|
11
|
-
# @return [Integer] The count of feedback received about the seller
|
|
12
|
-
attribute(:feedback_count, Integer, from: "
|
|
11
|
+
# @return [Integer] The count of feedback received about the seller
|
|
12
|
+
attribute(:feedback_count, Integer, from: "FeedbackCount")
|
|
13
13
|
|
|
14
|
-
# @return [Float] The percentage of positive feedback for the seller in the past 365 days
|
|
15
|
-
attribute?(:seller_positive_feedback_rating, Float, from: "
|
|
14
|
+
# @return [Float] The percentage of positive feedback for the seller in the past 365 days
|
|
15
|
+
attribute?(:seller_positive_feedback_rating, Float, from: "SellerPositiveFeedbackRating")
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
end
|
|
@@ -8,21 +8,21 @@ module Peddler
|
|
|
8
8
|
module Notifications
|
|
9
9
|
module B2BAnyOfferChanged
|
|
10
10
|
ShippingTime = Structure.new do
|
|
11
|
-
# @return [String] Indicates whether the item is available for shipping now, or on a known or unknown date in
|
|
12
|
-
# the future
|
|
13
|
-
attribute?(:availability_type, String, from: "
|
|
11
|
+
# @return [String] Indicates whether the item is available for shipping now, or on a known or an unknown date in
|
|
12
|
+
# the future
|
|
13
|
+
attribute?(:availability_type, String, from: "AvailabilityType")
|
|
14
14
|
|
|
15
15
|
# @return [String] The date when the item will be available for shipping. Only displayed for items that are not
|
|
16
|
-
# currently available for shipping
|
|
17
|
-
attribute?(:available_date, String, from: "
|
|
16
|
+
# currently available for shipping
|
|
17
|
+
attribute?(:available_date, String, from: "AvailableDate")
|
|
18
18
|
|
|
19
19
|
# @return [Integer] The maximum time, in hours, that the item will likely be shipped after the order has been
|
|
20
|
-
# placed
|
|
21
|
-
attribute?(:maximum_hours, Integer, from: "
|
|
20
|
+
# placed
|
|
21
|
+
attribute?(:maximum_hours, Integer, from: "MaximumHours")
|
|
22
22
|
|
|
23
23
|
# @return [Integer] The minimum time, in hours, that the item will likely be shipped after the order has been
|
|
24
|
-
# placed
|
|
25
|
-
attribute?(:minimum_hours, Integer, from: "
|
|
24
|
+
# placed
|
|
25
|
+
attribute?(:minimum_hours, Integer, from: "MinimumHours")
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -9,7 +9,10 @@ module Peddler
|
|
|
9
9
|
module B2BAnyOfferChanged
|
|
10
10
|
ShipsFrom = Structure.new do
|
|
11
11
|
# @return [String]
|
|
12
|
-
attribute?(:country, String)
|
|
12
|
+
attribute?(:country, String, from: "Country")
|
|
13
|
+
|
|
14
|
+
# @return [String]
|
|
15
|
+
attribute?(:state, String, from: "State")
|
|
13
16
|
end
|
|
14
17
|
end
|
|
15
18
|
end
|
|
@@ -9,20 +9,20 @@ module Peddler
|
|
|
9
9
|
module B2BAnyOfferChanged
|
|
10
10
|
Summary = Structure.new do
|
|
11
11
|
# @return [Array<OfferCount>] A list that contains the total number of B2B offers that are eligible for the Buy
|
|
12
|
-
# Box for the given conditions and fulfillment channels
|
|
13
|
-
attribute(:buy_box_eligible_offers, [OfferCount], from: "
|
|
12
|
+
# Box for the given conditions and fulfillment channels
|
|
13
|
+
attribute(:buy_box_eligible_offers, [OfferCount], from: "BuyBoxEligibleOffers")
|
|
14
14
|
|
|
15
15
|
# @return [Array<LowestPrice>] A list that contains the lowest prices of the item for the given conditions,
|
|
16
|
-
# fulfillment channels, quantity tiers, and discount types
|
|
17
|
-
attribute(:lowest_prices, [LowestPrice], from: "
|
|
16
|
+
# fulfillment channels, quantity tiers, and discount types
|
|
17
|
+
attribute(:lowest_prices, [LowestPrice], from: "LowestPrices")
|
|
18
18
|
|
|
19
19
|
# @return [Array<OfferCount>] A list that contains the total number of B2B offers for the item for the given
|
|
20
|
-
# conditions and fulfillment channels
|
|
21
|
-
attribute(:number_of_offers, [OfferCount], from: "
|
|
20
|
+
# conditions and fulfillment channels
|
|
21
|
+
attribute(:number_of_offers, [OfferCount], from: "NumberOfOffers")
|
|
22
22
|
|
|
23
23
|
# @return [Array<BuyBoxPrice>] A list that contains the Buy Box price of the item for the given conditions,
|
|
24
|
-
# quantity tiers, and discount types
|
|
25
|
-
attribute?(:buy_box_prices, [BuyBoxPrice], from: "
|
|
24
|
+
# quantity tiers, and discount types
|
|
25
|
+
attribute?(:buy_box_prices, [BuyBoxPrice], from: "BuyBoxPrices")
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
data/lib/peddler/version.rb
CHANGED
data/lib/peddler.rb
CHANGED
|
@@ -45,6 +45,7 @@ module Peddler
|
|
|
45
45
|
def messaging_v1 = APIs::MessagingV1
|
|
46
46
|
def notifications_v1 = APIs::NotificationsV1
|
|
47
47
|
def orders_v0 = APIs::OrdersV0
|
|
48
|
+
def orders_2026_01_01 = APIs::Orders20260101
|
|
48
49
|
def product_fees_v0 = APIs::ProductFeesV0
|
|
49
50
|
def product_pricing_v0 = APIs::ProductPricingV0
|
|
50
51
|
def product_pricing_2022_05_01 = APIs::ProductPricing20220501
|
|
@@ -102,7 +103,7 @@ module Peddler
|
|
|
102
103
|
alias_method :merchant_fulfillment, :merchant_fulfillment_v0
|
|
103
104
|
alias_method :messaging, :messaging_v1
|
|
104
105
|
alias_method :notifications, :notifications_v1
|
|
105
|
-
alias_method :orders, :
|
|
106
|
+
alias_method :orders, :orders_2026_01_01
|
|
106
107
|
alias_method :product_fees, :product_fees_v0
|
|
107
108
|
alias_method :product_pricing, :product_pricing_2022_05_01
|
|
108
109
|
alias_method :product_type_definitions, :product_type_definitions_2020_09_01
|
|
@@ -62,6 +62,24 @@ module Peddler
|
|
|
62
62
|
def to_h: () -> { destination_address: Peddler::APIs::AmazonWarehousingAndDistribution20240509::Address?, destination_region: String?, shipment_id: String? }
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
+
class DistributionIneligibleReason < Data
|
|
66
|
+
def self.new: (failure_code: String?, failure_reasons: Array[String]?, ?sku: String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason
|
|
67
|
+
| (String?, Array[String]?, String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason
|
|
68
|
+
def self.[]: (failure_code: String?, failure_reasons: Array[String]?, ?sku: String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason
|
|
69
|
+
| (String?, Array[String]?, String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason
|
|
70
|
+
|
|
71
|
+
def self.members: () -> [ :failure_code, :failure_reasons, :sku ]
|
|
72
|
+
|
|
73
|
+
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason
|
|
74
|
+
|
|
75
|
+
attr_reader failure_code: String?
|
|
76
|
+
attr_reader failure_reasons: Array[String]?
|
|
77
|
+
attr_reader sku: String?
|
|
78
|
+
|
|
79
|
+
def members: () -> [ :failure_code, :failure_reasons, :sku ]
|
|
80
|
+
def to_h: () -> { failure_code: String?, failure_reasons: Array[String]?, sku: String? }
|
|
81
|
+
end
|
|
82
|
+
|
|
65
83
|
class DistributionPackage < Data
|
|
66
84
|
def self.new: (contents: Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionPackageContents?, measurements: Peddler::APIs::AmazonWarehousingAndDistribution20240509::MeasurementData?, type: String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionPackage
|
|
67
85
|
| (Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionPackageContents?, Peddler::APIs::AmazonWarehousingAndDistribution20240509::MeasurementData?, String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionPackage
|
|
@@ -114,6 +132,24 @@ module Peddler
|
|
|
114
132
|
def to_h: () -> { count: Integer?, distribution_package: untyped }
|
|
115
133
|
end
|
|
116
134
|
|
|
135
|
+
class DistributionProduct < Data
|
|
136
|
+
def self.new: (quantity: Integer?, sku: String?, ?attributes: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ProductAttribute]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct
|
|
137
|
+
| (Integer?, String?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ProductAttribute]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct
|
|
138
|
+
def self.[]: (quantity: Integer?, sku: String?, ?attributes: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ProductAttribute]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct
|
|
139
|
+
| (Integer?, String?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ProductAttribute]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct
|
|
140
|
+
|
|
141
|
+
def self.members: () -> [ :quantity, :sku, :attributes ]
|
|
142
|
+
|
|
143
|
+
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct
|
|
144
|
+
|
|
145
|
+
attr_reader attributes: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ProductAttribute]?
|
|
146
|
+
attr_reader quantity: Integer?
|
|
147
|
+
attr_reader sku: String?
|
|
148
|
+
|
|
149
|
+
def members: () -> [ :quantity, :sku, :attributes ]
|
|
150
|
+
def to_h: () -> { quantity: Integer?, sku: String?, attributes: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ProductAttribute]? }
|
|
151
|
+
end
|
|
152
|
+
|
|
117
153
|
class Error < Data
|
|
118
154
|
def self.new: (code: String?, message: String?, ?details: String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::Error
|
|
119
155
|
| (String?, String?, String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::Error
|
|
@@ -434,6 +470,26 @@ module Peddler
|
|
|
434
470
|
def to_h: () -> { code: String?, description: String? }
|
|
435
471
|
end
|
|
436
472
|
|
|
473
|
+
class OutboundShipmentSummary < Data
|
|
474
|
+
def self.new: (order_id: String?, shipment_id: String?, shipment_status: String?, ?created_at: Time?, ?updated_at: Time?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary
|
|
475
|
+
| (String?, String?, String?, Time?, Time?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary
|
|
476
|
+
def self.[]: (order_id: String?, shipment_id: String?, shipment_status: String?, ?created_at: Time?, ?updated_at: Time?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary
|
|
477
|
+
| (String?, String?, String?, Time?, Time?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary
|
|
478
|
+
|
|
479
|
+
def self.members: () -> [ :order_id, :shipment_id, :shipment_status, :created_at, :updated_at ]
|
|
480
|
+
|
|
481
|
+
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary
|
|
482
|
+
|
|
483
|
+
attr_reader created_at: Time?
|
|
484
|
+
attr_reader order_id: String?
|
|
485
|
+
attr_reader shipment_id: String?
|
|
486
|
+
attr_reader shipment_status: String?
|
|
487
|
+
attr_reader updated_at: Time?
|
|
488
|
+
|
|
489
|
+
def members: () -> [ :order_id, :shipment_id, :shipment_status, :created_at, :updated_at ]
|
|
490
|
+
def to_h: () -> { order_id: String?, shipment_id: String?, shipment_status: String?, created_at: Time?, updated_at: Time? }
|
|
491
|
+
end
|
|
492
|
+
|
|
437
493
|
class PackageDimensions < Data
|
|
438
494
|
def self.new: (height: Float?, length: Float?, unit_of_measurement: String?, width: Float?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::PackageDimensions
|
|
439
495
|
| (Float?, Float?, String?, Float?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::PackageDimensions
|
|
@@ -560,6 +616,97 @@ module Peddler
|
|
|
560
616
|
def to_h: () -> { quantity: Integer?, sku: String?, attributes: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ProductAttribute]?, expiration: Time?, prep_details: Peddler::APIs::AmazonWarehousingAndDistribution20240509::PrepDetails? }
|
|
561
617
|
end
|
|
562
618
|
|
|
619
|
+
class ReplenishmentOrder < Data
|
|
620
|
+
def self.new: (order_id: String?, outbound_shipments: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary]?, status: String?, ?confirmed_on: Time?, ?created_at: Time?, ?distribution_ineligible_reasons: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason]?, ?eligible_products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, ?products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, ?shipped_products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, ?updated_at: Time?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder
|
|
621
|
+
| (String?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary]?, String?, Time?, Time?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason]?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, Time?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder
|
|
622
|
+
def self.[]: (order_id: String?, outbound_shipments: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary]?, status: String?, ?confirmed_on: Time?, ?created_at: Time?, ?distribution_ineligible_reasons: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason]?, ?eligible_products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, ?products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, ?shipped_products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, ?updated_at: Time?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder
|
|
623
|
+
| (String?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary]?, String?, Time?, Time?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason]?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, Time?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder
|
|
624
|
+
|
|
625
|
+
def self.members: () -> [ :order_id, :outbound_shipments, :status, :confirmed_on, :created_at, :distribution_ineligible_reasons, :eligible_products, :products, :shipped_products, :updated_at ]
|
|
626
|
+
|
|
627
|
+
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder
|
|
628
|
+
|
|
629
|
+
attr_reader confirmed_on: Time?
|
|
630
|
+
attr_reader created_at: Time?
|
|
631
|
+
attr_reader distribution_ineligible_reasons: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason]?
|
|
632
|
+
attr_reader eligible_products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?
|
|
633
|
+
attr_reader order_id: String?
|
|
634
|
+
attr_reader outbound_shipments: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary]?
|
|
635
|
+
attr_reader products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?
|
|
636
|
+
attr_reader shipped_products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?
|
|
637
|
+
attr_reader status: String?
|
|
638
|
+
attr_reader updated_at: Time?
|
|
639
|
+
|
|
640
|
+
def members: () -> [ :order_id, :outbound_shipments, :status, :confirmed_on, :created_at, :distribution_ineligible_reasons, :eligible_products, :products, :shipped_products, :updated_at ]
|
|
641
|
+
def to_h: () -> { order_id: String?, outbound_shipments: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::OutboundShipmentSummary]?, status: String?, confirmed_on: Time?, created_at: Time?, distribution_ineligible_reasons: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionIneligibleReason]?, eligible_products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, shipped_products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?, updated_at: Time? }
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
class ReplenishmentOrderCreationData < Data
|
|
645
|
+
def self.new: (?preferences: Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences?, ?products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderCreationData
|
|
646
|
+
| (Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderCreationData
|
|
647
|
+
def self.[]: (?preferences: Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences?, ?products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderCreationData
|
|
648
|
+
| (Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderCreationData
|
|
649
|
+
|
|
650
|
+
def self.members: () -> [ :preferences, :products ]
|
|
651
|
+
|
|
652
|
+
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderCreationData
|
|
653
|
+
|
|
654
|
+
attr_reader preferences: Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences?
|
|
655
|
+
attr_reader products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]?
|
|
656
|
+
|
|
657
|
+
def members: () -> [ :preferences, :products ]
|
|
658
|
+
def to_h: () -> { preferences: Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences?, products: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionProduct]? }
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
class ReplenishmentOrderListing < Data
|
|
662
|
+
def self.new: (?next_token: String?, ?orders: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderListing
|
|
663
|
+
| (String?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderListing
|
|
664
|
+
def self.[]: (?next_token: String?, ?orders: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderListing
|
|
665
|
+
| (String?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderListing
|
|
666
|
+
|
|
667
|
+
def self.members: () -> [ :next_token, :orders ]
|
|
668
|
+
|
|
669
|
+
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderListing
|
|
670
|
+
|
|
671
|
+
attr_reader next_token: String?
|
|
672
|
+
attr_reader orders: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder]?
|
|
673
|
+
|
|
674
|
+
def members: () -> [ :next_token, :orders ]
|
|
675
|
+
def to_h: () -> { next_token: String?, orders: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrder]? }
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
class ReplenishmentOrderReference < Data
|
|
679
|
+
def self.new: (order_id: String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderReference
|
|
680
|
+
| (String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderReference
|
|
681
|
+
def self.[]: (order_id: String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderReference
|
|
682
|
+
| (String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderReference
|
|
683
|
+
|
|
684
|
+
def self.members: () -> [ :order_id ]
|
|
685
|
+
|
|
686
|
+
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentOrderReference
|
|
687
|
+
|
|
688
|
+
attr_reader order_id: String?
|
|
689
|
+
|
|
690
|
+
def members: () -> [ :order_id ]
|
|
691
|
+
def to_h: () -> { order_id: String? }
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
class ReplenishmentPreferences < Data
|
|
695
|
+
def self.new: (?confirmation: String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences
|
|
696
|
+
| (String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences
|
|
697
|
+
def self.[]: (?confirmation: String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences
|
|
698
|
+
| (String?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences
|
|
699
|
+
|
|
700
|
+
def self.members: () -> [ :confirmation ]
|
|
701
|
+
|
|
702
|
+
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::ReplenishmentPreferences
|
|
703
|
+
|
|
704
|
+
attr_reader confirmation: String?
|
|
705
|
+
|
|
706
|
+
def members: () -> [ :confirmation ]
|
|
707
|
+
def to_h: () -> { confirmation: String? }
|
|
708
|
+
end
|
|
709
|
+
|
|
563
710
|
class SKUEligibility < Data
|
|
564
711
|
def self.new: (package_quantity: Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionPackageQuantity?, status: String?, ?ineligibility_reasons: Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::SKUIneligibilityReason]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::SKUEligibility
|
|
565
712
|
| (Peddler::APIs::AmazonWarehousingAndDistribution20240509::DistributionPackageQuantity?, String?, Array[Peddler::APIs::AmazonWarehousingAndDistribution20240509::SKUIneligibilityReason]?) -> Peddler::APIs::AmazonWarehousingAndDistribution20240509::SKUEligibility
|
|
@@ -684,14 +831,20 @@ module Peddler
|
|
|
684
831
|
|
|
685
832
|
def check_inbound_eligibility: (Hash[untyped, untyped], ?rate_limit: Float) -> Peddler::Response
|
|
686
833
|
def confirm_inbound: (String, ?rate_limit: Float) -> Peddler::Response
|
|
834
|
+
|
|
835
|
+
def confirm_replenishment_order: (String) -> Peddler::Response
|
|
687
836
|
def create_inbound: (Hash[untyped, untyped], ?rate_limit: Float) -> Peddler::Response
|
|
837
|
+
|
|
838
|
+
def create_replenishment_order: (Hash[untyped, untyped]) -> Peddler::Response
|
|
688
839
|
def get_inbound: (String, ?rate_limit: Float) -> Peddler::Response
|
|
689
840
|
|
|
690
841
|
def get_inbound_shipment: (String, ?sku_quantities: String?, ?rate_limit: Float) -> Peddler::Response
|
|
691
842
|
def get_inbound_shipment_labels: (String, ?page_type: String?, ?format_type: String?, ?rate_limit: Float) -> Peddler::Response
|
|
692
843
|
|
|
844
|
+
def get_replenishment_order: (String) -> Peddler::Response
|
|
693
845
|
def list_inbound_shipments: (?sort_by: String?, ?sort_order: String?, ?shipment_status: String?, ?updated_after: String?, ?updated_before: String?, ?max_results: Integer?, ?next_token: String?, ?rate_limit: Float) -> Peddler::Response
|
|
694
846
|
def list_inventory: (?sku: String?, ?sort_order: String?, ?details: String?, ?next_token: String?, ?max_results: Integer?, ?rate_limit: Float) -> Peddler::Response
|
|
847
|
+
def list_replenishment_orders: (?updated_after: String?, ?updated_before: String?, ?sort_order: String?, ?max_results: Integer?, ?next_token: String?) -> Peddler::Response
|
|
695
848
|
def update_inbound: (String, Hash[untyped, untyped], ?rate_limit: Float) -> Peddler::Response
|
|
696
849
|
|
|
697
850
|
def update_inbound_shipment_transport_details: (String, Hash[untyped, untyped], ?rate_limit: Float) -> Peddler::Response
|