peddler 5.2.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/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/messaging_v1.rb +0 -20
- data/lib/peddler/apis/orders_v0/order_item.rb +0 -3
- data/lib/peddler/apis/orders_v0.rb +0 -12
- data/lib/peddler/apis/product_pricing_v0/get_offers_result.rb +3 -3
- data/lib/peddler/apis/vendor_shipments_v1.rb +0 -12
- data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_asin_sales.rb +21 -0
- data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_date_sales.rb +12 -0
- data/lib/peddler/data_kiosk/sales_and_traffic20240424.json +120 -0
- 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/sig/peddler/apis/messaging_v1.rbs +0 -34
- data/sig/peddler/apis/orders_v0.rbs +7 -151
- data/sig/peddler/apis/product_pricing_v0.rbs +7 -7
- data/sig/peddler/apis/vendor_shipments_v1.rbs +0 -85
- data/sig/peddler/data_kiosk/sales_and_traffic20240424.rbs +23 -14
- data/sig/peddler/notifications/b2b_any_offer_changed.rbs +58 -38
- metadata +2 -16
- 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/apis/orders_v0/export_info.rb +0 -23
- data/lib/peddler/apis/orders_v0/fulfillment_instructions.rb +0 -20
- data/lib/peddler/apis/orders_v0/fulfillment_location.rb +0 -17
- data/lib/peddler/apis/orders_v0/fulfillment_plan.rb +0 -41
- data/lib/peddler/apis/orders_v0/fulfillment_plan_item.rb +0 -20
- data/lib/peddler/apis/orders_v0/fulfillment_plan_shipping_constraints.rb +0 -20
- data/lib/peddler/apis/orders_v0/get_order_fulfillment_instructions_response.rb +0 -21
- data/lib/peddler/apis/orders_v0/shipping_instructions.rb +0 -23
- data/lib/peddler/apis/vendor_shipments_v1/packed_quantity.rb +0 -25
- data/lib/peddler/apis/vendor_shipments_v1/purchase_order_item_details.rb +0 -18
- data/lib/peddler/apis/vendor_shipments_v1/submit_shipment_confirmation_request.rb +0 -17
- data/lib/peddler/apis/vendor_shipments_v1/submit_shipment_confirmation_response.rb +0 -20
- data/lib/peddler/apis/vendor_shipments_v1/submit_shipment_confirmation_result.rb +0 -17
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is generated. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "structure"
|
|
6
|
-
|
|
7
|
-
module Peddler
|
|
8
|
-
module APIs
|
|
9
|
-
class OrdersV0
|
|
10
|
-
# A collection of order items that are to be fulfilled from the same location with the same shipping, pickup, and
|
|
11
|
-
# service instructions.
|
|
12
|
-
FulfillmentPlan = Structure.new do
|
|
13
|
-
# @return [String] Time when the fulfillment plan was created in [ISO
|
|
14
|
-
# 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
15
|
-
attribute(:creation_date, String, from: "CreationDate")
|
|
16
|
-
|
|
17
|
-
# @return [String] Unique identifier for a fulfillment plan.
|
|
18
|
-
attribute(:fulfillment_plan_id, String, from: "FulfillmentPlanId")
|
|
19
|
-
|
|
20
|
-
# @return [Array<FulfillmentPlanItem>] The details of the order items that are included in the fulfillment plan.
|
|
21
|
-
attribute(:fulfillment_plan_items, [FulfillmentPlanItem], from: "FulfillmentPlanItems")
|
|
22
|
-
|
|
23
|
-
# @return [String] The fulfillment plan status.
|
|
24
|
-
attribute(:fulfillment_plan_status, String, from: "FulfillmentPlanStatus")
|
|
25
|
-
|
|
26
|
-
# @return [String] Type of fulfillment
|
|
27
|
-
attribute(:fulfillment_type, String, from: "FulfillmentType")
|
|
28
|
-
|
|
29
|
-
# @return [String] The time when the fulfillment plan's status was last updated in [ISO
|
|
30
|
-
# 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
31
|
-
attribute(:last_status_update_date, String, from: "LastStatusUpdateDate")
|
|
32
|
-
|
|
33
|
-
# @return [FulfillmentLocation] Represents the location where the plan is fulfilled.
|
|
34
|
-
attribute?(:fulfillment_location, FulfillmentLocation, from: "FulfillmentLocation")
|
|
35
|
-
|
|
36
|
-
# @return [ShippingInstructions] The shipping-related information for a delivery.
|
|
37
|
-
attribute?(:shipping_instructions, ShippingInstructions, from: "ShippingInstructions")
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is generated. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "structure"
|
|
6
|
-
|
|
7
|
-
module Peddler
|
|
8
|
-
module APIs
|
|
9
|
-
class OrdersV0
|
|
10
|
-
# The order items associated with this fulfillment plan.
|
|
11
|
-
FulfillmentPlanItem = Structure.new do
|
|
12
|
-
# @return [Measurement] Measurement information for the order item.
|
|
13
|
-
attribute(:measurement, Measurement, from: "Measurement")
|
|
14
|
-
|
|
15
|
-
# @return [String] An Amazon-defined associated order item's order item identifier.
|
|
16
|
-
attribute(:order_item_id, String, from: "OrderItemId")
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is generated. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "structure"
|
|
6
|
-
|
|
7
|
-
module Peddler
|
|
8
|
-
module APIs
|
|
9
|
-
class OrdersV0
|
|
10
|
-
# Delivery constraints applicable to this order.
|
|
11
|
-
FulfillmentPlanShippingConstraints = Structure.new do
|
|
12
|
-
# @return [String] Indicates if the line item needs to be delivered by pallet.
|
|
13
|
-
attribute?(:pallet_delivery, String, from: "PalletDelivery")
|
|
14
|
-
|
|
15
|
-
# @return [String] Indicates that the recipient of the line item needs to sign to confirm its delivery.
|
|
16
|
-
attribute?(:signature_confirmation, String, from: "SignatureConfirmation")
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is generated. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "structure"
|
|
6
|
-
|
|
7
|
-
module Peddler
|
|
8
|
-
module APIs
|
|
9
|
-
class OrdersV0
|
|
10
|
-
# The response schema for the `getOrderFulfillmentInstructions` operation.
|
|
11
|
-
GetOrderFulfillmentInstructionsResponse = Structure.new do
|
|
12
|
-
# @return [Array<Error>] One or more unexpected errors occurred during the `getOrderFulfillmentInstructions`
|
|
13
|
-
# operation.
|
|
14
|
-
attribute?(:errors, [Error])
|
|
15
|
-
|
|
16
|
-
# @return [FulfillmentInstructions] The payload for the `getOrderFulfillmentInstructions` operation.
|
|
17
|
-
attribute?(:payload, FulfillmentInstructions)
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is generated. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "structure"
|
|
6
|
-
|
|
7
|
-
module Peddler
|
|
8
|
-
module APIs
|
|
9
|
-
class OrdersV0
|
|
10
|
-
# The shipping-related information of a delivery.
|
|
11
|
-
ShippingInstructions = Structure.new do
|
|
12
|
-
# @return [String] The name of the carrier that delivers the package.
|
|
13
|
-
attribute?(:carrier_code, String, from: "CarrierCode")
|
|
14
|
-
|
|
15
|
-
# @return [FulfillmentPlanShippingConstraints] Models constraints around shipping
|
|
16
|
-
attribute?(:shipping_constraints, FulfillmentPlanShippingConstraints, from: "ShippingConstraints")
|
|
17
|
-
|
|
18
|
-
# @return [String] The ship method that is used for the order.
|
|
19
|
-
attribute?(:shipping_method, String, from: "ShippingMethod")
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is generated. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "structure"
|
|
6
|
-
|
|
7
|
-
module Peddler
|
|
8
|
-
module APIs
|
|
9
|
-
class VendorShipmentsV1
|
|
10
|
-
# Details of item quantity.
|
|
11
|
-
PackedQuantity = Structure.new do
|
|
12
|
-
# @return [Integer] Amount of units shipped for a specific item at a shipment level. If the item is present only
|
|
13
|
-
# in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet
|
|
14
|
-
# level.
|
|
15
|
-
attribute(:amount, Integer)
|
|
16
|
-
|
|
17
|
-
# @return [String] Unit of measure for the shipped quantity.
|
|
18
|
-
attribute(:unit_of_measure, String, from: "unitOfMeasure")
|
|
19
|
-
|
|
20
|
-
# @return [Integer] The case size, in the event that we ordered using cases. Otherwise, 1.
|
|
21
|
-
attribute?(:unit_size, Integer, from: "unitSize")
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is generated. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "structure"
|
|
6
|
-
|
|
7
|
-
module Peddler
|
|
8
|
-
module APIs
|
|
9
|
-
class VendorShipmentsV1
|
|
10
|
-
# Item details for be provided for every item in shipment at either the item or carton or pallet level, whichever
|
|
11
|
-
# is appropriate.
|
|
12
|
-
PurchaseOrderItemDetails = Structure.new do
|
|
13
|
-
# @return [Money] Maximum retail price of the item being shipped.
|
|
14
|
-
attribute?(:maximum_retail_price, Money, from: "maximumRetailPrice")
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is generated. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "structure"
|
|
6
|
-
|
|
7
|
-
module Peddler
|
|
8
|
-
module APIs
|
|
9
|
-
class VendorShipmentsV1
|
|
10
|
-
# The request schema for the SubmitShipmentConfirmation operation.
|
|
11
|
-
SubmitShipmentConfirmationRequest = Structure.new do
|
|
12
|
-
# @return [ShipmentConfirmation] One shipment confirmation.
|
|
13
|
-
attribute(:shipment_confirmation, ShipmentConfirmation, from: "shipmentConfirmation")
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is generated. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "structure"
|
|
6
|
-
|
|
7
|
-
module Peddler
|
|
8
|
-
module APIs
|
|
9
|
-
class VendorShipmentsV1
|
|
10
|
-
# The response schema for the SubmitShipmentConfirmation operation.
|
|
11
|
-
SubmitShipmentConfirmationResponse = Structure.new do
|
|
12
|
-
# @return [Array<Error>]
|
|
13
|
-
attribute?(:errors, [Error])
|
|
14
|
-
|
|
15
|
-
# @return [SubmitShipmentConfirmationResult] The response payload for the SubmitShipmentConfirmation operation.
|
|
16
|
-
attribute?(:payload, SubmitShipmentConfirmationResult)
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# This file is generated. Do not edit.
|
|
4
|
-
|
|
5
|
-
require "structure"
|
|
6
|
-
|
|
7
|
-
module Peddler
|
|
8
|
-
module APIs
|
|
9
|
-
class VendorShipmentsV1
|
|
10
|
-
# Result payload for successful ASN submission.
|
|
11
|
-
SubmitShipmentConfirmationResult = Structure.new do
|
|
12
|
-
# @return [String] Success message for the operation SubmitShipmentConfirmation
|
|
13
|
-
attribute?(:message, String)
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|