peddler 5.1.0 → 5.2.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/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/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/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/export_info.rb +23 -0
- data/lib/peddler/apis/orders_v0/fulfillment_instructions.rb +20 -0
- data/lib/peddler/apis/orders_v0/fulfillment_location.rb +17 -0
- data/lib/peddler/apis/orders_v0/fulfillment_plan.rb +41 -0
- data/lib/peddler/apis/orders_v0/fulfillment_plan_item.rb +20 -0
- data/lib/peddler/apis/orders_v0/fulfillment_plan_shipping_constraints.rb +20 -0
- data/lib/peddler/apis/orders_v0/get_order_fulfillment_instructions_response.rb +21 -0
- data/lib/peddler/apis/orders_v0/order_item.rb +3 -0
- data/lib/peddler/apis/orders_v0/shipping_instructions.rb +23 -0
- data/lib/peddler/apis/orders_v0.rb +14 -2
- 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/packed_quantity.rb +25 -0
- data/lib/peddler/apis/vendor_shipments_v1/purchase_order_item_details.rb +18 -0
- data/lib/peddler/apis/vendor_shipments_v1/regulation_references.rb +9 -11
- data/lib/peddler/apis/vendor_shipments_v1/submit_shipment_confirmation_request.rb +17 -0
- data/lib/peddler/apis/vendor_shipments_v1/submit_shipment_confirmation_response.rb +20 -0
- data/lib/peddler/apis/vendor_shipments_v1/submit_shipment_confirmation_result.rb +17 -0
- data/lib/peddler/apis/vendor_shipments_v1.rb +12 -0
- data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_asin_sales.rb +16 -0
- data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_date_sales.rb +28 -8
- data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_date_traffic.rb +19 -6
- data/lib/peddler/data_kiosk/sales_and_traffic20240424.json +153 -13
- data/lib/peddler/notifications/any_offer_changed/notification.rb +3 -3
- 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/orders_2026_01_01.rbs +940 -0
- data/sig/peddler/apis/orders_v0.rbs +151 -7
- data/sig/peddler/apis/vendor_shipments_v1.rbs +103 -18
- data/sig/peddler/data_kiosk/sales_and_traffic20240424.rbs +32 -21
- data/sig/peddler/notifications/any_offer_changed.rbs +7 -7
- data/sig/peddler.rbs +3 -1
- metadata +81 -10
- 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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated. Do not edit.
|
|
4
|
+
|
|
5
|
+
require "structure"
|
|
6
|
+
require "time"
|
|
7
|
+
|
|
8
|
+
module Peddler
|
|
9
|
+
module APIs
|
|
10
|
+
class Orders20260101
|
|
11
|
+
# Information related to the shipping and delivery process for an order item.
|
|
12
|
+
ItemShipping = Structure.new do
|
|
13
|
+
# @return [ItemInternationalShipping] Additional information needed for cross-border delivery of this item.
|
|
14
|
+
attribute?(:international_shipping, ItemInternationalShipping, from: "internationalShipping")
|
|
15
|
+
|
|
16
|
+
# @return [DateTimeRange] When this item is expected to be delivered to the customer.
|
|
17
|
+
attribute?(:scheduled_delivery_window, DateTimeRange, from: "scheduledDeliveryWindow")
|
|
18
|
+
|
|
19
|
+
# @return [ItemShippingConstraints] Special shipping requirements and restrictions that apply to this item.
|
|
20
|
+
attribute?(:shipping_constraints, ItemShippingConstraints, from: "shippingConstraints")
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Special shipping requirements and restrictions that must be observed when shipping an order item.
|
|
11
|
+
ItemShippingConstraints = Structure.new do
|
|
12
|
+
# @return [String] Payment must be collected from the customer at the time of delivery.
|
|
13
|
+
attribute?(:cash_on_delivery, String, from: "cashOnDelivery")
|
|
14
|
+
|
|
15
|
+
# @return [String] The line item must be delivered by pallet.
|
|
16
|
+
attribute?(:pallet_delivery, String, from: "palletDelivery")
|
|
17
|
+
|
|
18
|
+
# @return [String] The carrier must confirm that the recipient is of the legal age to receive the line item upon
|
|
19
|
+
# delivery.
|
|
20
|
+
attribute?(:recipient_age_verification, String, from: "recipientAgeVerification")
|
|
21
|
+
|
|
22
|
+
# @return [String] The person receiving the line item must be the same as the intended recipient of the order.
|
|
23
|
+
attribute?(:recipient_identity_verification, String, from: "recipientIdentityVerification")
|
|
24
|
+
|
|
25
|
+
# @return [String] The recipient of the line item must sign to confirm its delivery.
|
|
26
|
+
attribute?(:signature_confirmation, String, from: "signatureConfirmation")
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Alternative product that can be substituted for an original order item when it becomes unavailable during
|
|
11
|
+
# fulfillment.
|
|
12
|
+
ItemSubstitutionOption = Structure.new do
|
|
13
|
+
# @return [String] Amazon Standard Identification Number of the substitute product.
|
|
14
|
+
attribute?(:asin, String)
|
|
15
|
+
|
|
16
|
+
# @return [Measurement] Unit of measure and quantity specifications for the substitute product.
|
|
17
|
+
attribute?(:measurement, Measurement)
|
|
18
|
+
|
|
19
|
+
# @return [Integer] Number of units of the substitute item to be selected if substitution occurs.
|
|
20
|
+
attribute?(:quantity_ordered, Integer, from: "quantityOrdered")
|
|
21
|
+
|
|
22
|
+
# @return [String] The item's seller stock keeping unit (SKU).
|
|
23
|
+
attribute?(:seller_sku, String, from: "sellerSku")
|
|
24
|
+
|
|
25
|
+
# @return [String] Product name or title of the substitute item as displayed to customers.
|
|
26
|
+
attribute?(:title, String)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Substitution preference for an order item when it becomes unavailable during fulfillment.
|
|
11
|
+
ItemSubstitutionPreference = Structure.new do
|
|
12
|
+
# @return [String] Source and nature of the substitution preferences for this item.
|
|
13
|
+
attribute(:substitution_type, String, from: "substitutionType")
|
|
14
|
+
|
|
15
|
+
# @return [Array<ItemSubstitutionOption>] List of alternative products that can be substituted for the original
|
|
16
|
+
# item if it becomes unavailable.
|
|
17
|
+
attribute?(:substitution_options, [ItemSubstitutionOption], from: "substitutionOptions")
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Specifies the unit of measure and quantity for items that are sold by weight, volume, length, or other
|
|
11
|
+
# measurements rather than simple count.
|
|
12
|
+
Measurement = Structure.new do
|
|
13
|
+
# @return [String] The specific unit of measurement used to quantify this item.
|
|
14
|
+
attribute(:unit, String)
|
|
15
|
+
|
|
16
|
+
# @return [Float] The numerical quantity or amount being measured in the specified unit.
|
|
17
|
+
attribute(:value, Float)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# The physical address of the merchant.
|
|
11
|
+
MerchantAddress = Structure.new do
|
|
12
|
+
# @return [String] The primary street address of the merchant's location.
|
|
13
|
+
attribute?(:address_line1, String, from: "addressLine1")
|
|
14
|
+
|
|
15
|
+
# @return [String] Additional address information.
|
|
16
|
+
attribute?(:address_line2, String, from: "addressLine2")
|
|
17
|
+
|
|
18
|
+
# @return [String] Additional address information.
|
|
19
|
+
attribute?(:address_line3, String, from: "addressLine3")
|
|
20
|
+
|
|
21
|
+
# @return [String] The city of the address.
|
|
22
|
+
attribute?(:city, String)
|
|
23
|
+
|
|
24
|
+
# @return [String] The two-letter country code for the address, in ISO 3166-1 format.
|
|
25
|
+
attribute?(:country_code, String, from: "countryCode")
|
|
26
|
+
|
|
27
|
+
# @return [String] The district or county of the address.
|
|
28
|
+
attribute?(:district_or_county, String, from: "districtOrCounty")
|
|
29
|
+
|
|
30
|
+
# @return [String] The municipality of the address.
|
|
31
|
+
attribute?(:municipality, String)
|
|
32
|
+
|
|
33
|
+
# @return [String] The name of the business or facility at this address.
|
|
34
|
+
attribute?(:name, String)
|
|
35
|
+
|
|
36
|
+
# @return [String] The postal code or ZIP code of the address.
|
|
37
|
+
attribute?(:postal_code, String, from: "postalCode")
|
|
38
|
+
|
|
39
|
+
# @return [String] The state, province, or region of the address.
|
|
40
|
+
attribute?(:state_or_region, String, from: "stateOrRegion")
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated. Do not edit.
|
|
4
|
+
|
|
5
|
+
require "structure"
|
|
6
|
+
require "time"
|
|
7
|
+
|
|
8
|
+
module Peddler
|
|
9
|
+
module APIs
|
|
10
|
+
class Orders20260101
|
|
11
|
+
# Comprehensive information about a customer order.
|
|
12
|
+
Order = Structure.new do
|
|
13
|
+
# @return [Time] The time when the customer placed the order. In [ISO
|
|
14
|
+
# 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
15
|
+
attribute(:created_time, Time, from: "createdTime")
|
|
16
|
+
|
|
17
|
+
# @return [Time] The most recent time when any aspect of this order was modified by Amazon or the seller. In
|
|
18
|
+
# [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
19
|
+
attribute(:last_updated_time, Time, from: "lastUpdatedTime")
|
|
20
|
+
|
|
21
|
+
# @return [String] An Amazon-defined order identifier.
|
|
22
|
+
attribute(:order_id, String, from: "orderId")
|
|
23
|
+
|
|
24
|
+
# @return [Array<OrderItem>] The list of all order items included in this order.
|
|
25
|
+
attribute(:order_items, [OrderItem], from: "orderItems")
|
|
26
|
+
|
|
27
|
+
# @return [SalesChannel] Information about where this order was placed.
|
|
28
|
+
attribute(:sales_channel, SalesChannel, from: "salesChannel")
|
|
29
|
+
|
|
30
|
+
# @return [Array<AssociatedOrder>] Other orders that have a direct relationship to this order, such as
|
|
31
|
+
# replacement or exchange orders.
|
|
32
|
+
attribute?(:associated_orders, [AssociatedOrder], from: "associatedOrders")
|
|
33
|
+
|
|
34
|
+
# @return [Buyer] Information about the customer who purchased this order.
|
|
35
|
+
attribute?(:buyer, Buyer)
|
|
36
|
+
|
|
37
|
+
# @return [OrderFulfillment] Information about how this order is being processed and shipped.
|
|
38
|
+
attribute?(:fulfillment, OrderFulfillment)
|
|
39
|
+
|
|
40
|
+
# @return [Array<Alias>] Alternative identifiers that can be used to reference this order, such as
|
|
41
|
+
# seller-defined order numbers.
|
|
42
|
+
attribute?(:order_aliases, [Alias], from: "orderAliases")
|
|
43
|
+
|
|
44
|
+
# @return [Array<OrderPackage>] Shipping packages created for this order, including tracking information.
|
|
45
|
+
# **Note:** Only available for merchant-fulfilled (FBM) orders.
|
|
46
|
+
attribute?(:packages, [OrderPackage])
|
|
47
|
+
|
|
48
|
+
# @return [OrderProceeds] Financial information about this order.
|
|
49
|
+
attribute?(:proceeds, OrderProceeds)
|
|
50
|
+
|
|
51
|
+
# @return [Array<String>] Special programs associated with this order that may affect fulfillment or customer
|
|
52
|
+
# experience.
|
|
53
|
+
#
|
|
54
|
+
# **Possible values**: `AMAZON_BAZAAR`, `AMAZON_BUSINESS`, `AMAZON_EASY_SHIP`, `AMAZON_HAUL`,
|
|
55
|
+
# `DELIVERY_BY_AMAZON`, `FBM_SHIP_PLUS`, `IN_STORE_PICK_UP`, `PREMIUM`, `PREORDER`, `PRIME`
|
|
56
|
+
attribute?(:programs, [String])
|
|
57
|
+
|
|
58
|
+
# @return [Recipient] Information about the person or location where this order should be delivered.
|
|
59
|
+
attribute?(:recipient, Recipient)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated. Do not edit.
|
|
4
|
+
|
|
5
|
+
require "structure"
|
|
6
|
+
require "time"
|
|
7
|
+
|
|
8
|
+
module Peddler
|
|
9
|
+
module APIs
|
|
10
|
+
class Orders20260101
|
|
11
|
+
# Information about how the order is being processed, packed, and shipped to the customer.
|
|
12
|
+
OrderFulfillment = Structure.new do
|
|
13
|
+
# @return [String] The current status of the order in the fulfillment process, from pending to handover to
|
|
14
|
+
# carrier.
|
|
15
|
+
attribute(:fulfillment_status, String, from: "fulfillmentStatus")
|
|
16
|
+
|
|
17
|
+
# @return [DateTimeRange] The promised time period within which the order should be delivered to the customer.
|
|
18
|
+
attribute?(:deliver_by_window, DateTimeRange, from: "deliverByWindow")
|
|
19
|
+
|
|
20
|
+
# @return [String] Specifies whether Amazon or the merchant is responsible for fulfilling this order.
|
|
21
|
+
#
|
|
22
|
+
# **Possible values**: `AMAZON`, `MERCHANT`.
|
|
23
|
+
attribute?(:fulfilled_by, String, from: "fulfilledBy")
|
|
24
|
+
|
|
25
|
+
# @return [String] The category of the shipping speed option selected by the customer at checkout.
|
|
26
|
+
#
|
|
27
|
+
# **Possible values**: `EXPEDITED`, `FREE_ECONOMY`, `NEXT_DAY`, `PRIORITY`, `SAME_DAY`, `SECOND_DAY`,
|
|
28
|
+
# `SCHEDULED`, `STANDARD`.
|
|
29
|
+
attribute?(:fulfillment_service_level, String, from: "fulfillmentServiceLevel")
|
|
30
|
+
|
|
31
|
+
# @return [DateTimeRange] The promised time period within which the order must be shipped to meet the customer's
|
|
32
|
+
# delivery expectations.
|
|
33
|
+
attribute?(:ship_by_window, DateTimeRange, from: "shipByWindow")
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Information about a single product within an order.
|
|
11
|
+
OrderItem = Structure.new do
|
|
12
|
+
# @return [String] A unique identifier for this specific item within the order.
|
|
13
|
+
attribute(:order_item_id, String, from: "orderItemId")
|
|
14
|
+
|
|
15
|
+
# @return [ItemProduct] Information about the product being ordered.
|
|
16
|
+
attribute(:product, ItemProduct)
|
|
17
|
+
|
|
18
|
+
# @return [Integer] The number of units of this item that the customer ordered.
|
|
19
|
+
attribute(:quantity_ordered, Integer, from: "quantityOrdered")
|
|
20
|
+
|
|
21
|
+
# @return [ItemCancellation] The cancellation information of the order item.
|
|
22
|
+
attribute?(:cancellation, ItemCancellation)
|
|
23
|
+
|
|
24
|
+
# @return [ItemExpense] The expense information related to this specific item.
|
|
25
|
+
attribute?(:expense, ItemExpense)
|
|
26
|
+
|
|
27
|
+
# @return [ItemFulfillment] Information about how the order item should be processed, packed, and shipped to the
|
|
28
|
+
# customer.
|
|
29
|
+
attribute?(:fulfillment, ItemFulfillment)
|
|
30
|
+
|
|
31
|
+
# @return [Measurement] The unit of measure and value for items sold by weight, volume, or other measurements
|
|
32
|
+
# rather than simple count.
|
|
33
|
+
attribute?(:measurement, Measurement)
|
|
34
|
+
|
|
35
|
+
# @return [ItemProceeds] The money that the seller receives from the sale of this specific item.
|
|
36
|
+
attribute?(:proceeds, ItemProceeds)
|
|
37
|
+
|
|
38
|
+
# @return [Array<String>] Special programs that apply specifically to this item within the order.
|
|
39
|
+
#
|
|
40
|
+
# **Possible values**: `TRANSPARENCY`, `SUBSCRIBE_AND_SAVE`
|
|
41
|
+
attribute?(:programs, [String])
|
|
42
|
+
|
|
43
|
+
# @return [ItemPromotion] Details about any discounts, coupons, or promotional offers applied to this item.
|
|
44
|
+
attribute?(:promotion, ItemPromotion)
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated. Do not edit.
|
|
4
|
+
|
|
5
|
+
require "structure"
|
|
6
|
+
require "time"
|
|
7
|
+
|
|
8
|
+
module Peddler
|
|
9
|
+
module APIs
|
|
10
|
+
class Orders20260101
|
|
11
|
+
# Information about a physical shipping package, including tracking details. **Note:** Only available for
|
|
12
|
+
# merchant-fulfilled (FBM) orders.
|
|
13
|
+
OrderPackage = Structure.new do
|
|
14
|
+
# @return [String] A unique identifier for this package within the context of the order.
|
|
15
|
+
attribute(:package_reference_id, String, from: "packageReferenceId")
|
|
16
|
+
|
|
17
|
+
# @return [String] The carrier responsible for transporting this package to the customer.
|
|
18
|
+
attribute?(:carrier, String)
|
|
19
|
+
|
|
20
|
+
# @return [Time] The exact time when this shipping package was created and prepared for shipment. In [ISO
|
|
21
|
+
# 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
22
|
+
attribute?(:created_time, Time, from: "createdTime")
|
|
23
|
+
|
|
24
|
+
# @return [Array<PackageItem>] A list of all order items included in this specific package.
|
|
25
|
+
attribute?(:package_items, [PackageItem], from: "packageItems")
|
|
26
|
+
|
|
27
|
+
# @return [PackageStatus] The current status of this package.
|
|
28
|
+
attribute?(:package_status, PackageStatus, from: "packageStatus")
|
|
29
|
+
|
|
30
|
+
# @return [MerchantAddress] The physical address from which this package was shipped, typically the merchant's
|
|
31
|
+
# warehouse or fulfillment center.
|
|
32
|
+
attribute?(:ship_from_address, MerchantAddress, from: "shipFromAddress")
|
|
33
|
+
|
|
34
|
+
# @return [Time] The exact time when this package was handed over to the carrier and began its journey to the
|
|
35
|
+
# customer. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
36
|
+
attribute?(:ship_time, Time, from: "shipTime")
|
|
37
|
+
|
|
38
|
+
# @return [String] The specific shipping method or service used for delivering this package.
|
|
39
|
+
attribute?(:shipping_service, String, from: "shippingService")
|
|
40
|
+
|
|
41
|
+
# @return [String] The carrier-provided tracking number that customers can use to monitor the package's delivery
|
|
42
|
+
# progress.
|
|
43
|
+
attribute?(:tracking_number, String, from: "trackingNumber")
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# The money that the seller receives from the sale of the order.
|
|
11
|
+
OrderProceeds = Structure.new do
|
|
12
|
+
# @return [Money] The total amount that the seller receives from the sale of the order.
|
|
13
|
+
attribute?(:grand_total, Money, from: "grandTotal")
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Individual order item contained within a shipping package.
|
|
11
|
+
PackageItem = Structure.new do
|
|
12
|
+
# @return [String] Unique identifier of the order item included in this package.
|
|
13
|
+
attribute(:order_item_id, String, from: "orderItemId")
|
|
14
|
+
|
|
15
|
+
# @return [Integer] Number of units of this item included in the package shipment.
|
|
16
|
+
attribute(:quantity, Integer)
|
|
17
|
+
|
|
18
|
+
# @return [Array<String>] The transparency codes associated with this item for product authentication.
|
|
19
|
+
attribute?(:transparency_codes, [String], from: "transparencyCodes")
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Current status and detailed tracking information for a shipping package throughout the delivery process.
|
|
11
|
+
PackageStatus = Structure.new do
|
|
12
|
+
# @return [String] Primary status classification of the package in the shipping workflow.
|
|
13
|
+
attribute(:status, String)
|
|
14
|
+
|
|
15
|
+
# @return [String] Granular status information providing specific details about the package's current location
|
|
16
|
+
# and handling stage.
|
|
17
|
+
#
|
|
18
|
+
# **Possible values:** - `PENDING_SCHEDULE` (Package awaiting pickup scheduling) - `PENDING_PICK_UP` (Package
|
|
19
|
+
# ready for carrier collection from seller) - `PENDING_DROP_OFF` (Package awaiting seller delivery to carrier)
|
|
20
|
+
# - `LABEL_CANCELLED` (Shipping label canceled by seller) - `PICKED_UP` (Package collected by carrier from
|
|
21
|
+
# seller location) - `DROPPED_OFF` (Package delivered to carrier by seller) - `AT_ORIGIN_FC` (Package at
|
|
22
|
+
# originating fulfillment center) - `AT_DESTINATION_FC` (Package at destination fulfillment center) -
|
|
23
|
+
# `DELIVERED` (Package successfully delivered to recipient) - `REJECTED_BY_BUYER` (Package refused by intended
|
|
24
|
+
# recipient) - `UNDELIVERABLE` (Package cannot be delivered due to address or access issues) -
|
|
25
|
+
# `RETURNING_TO_SELLER` (Package in transit back to seller) - `RETURNED_TO_SELLER` (Package successfully
|
|
26
|
+
# returned to seller) - `LOST` (Package location unknown or confirmed lost) - `OUT_FOR_DELIVERY` (Package on
|
|
27
|
+
# delivery vehicle for final delivery) - `DAMAGED` (Package damaged during transit)
|
|
28
|
+
attribute?(:detailed_status, String, from: "detailedStatus")
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# When a request has results that are not included in the response, pagination occurs. This means the results are
|
|
11
|
+
# divided into individual pages. To retrieve a different page, you must pass the token value as the
|
|
12
|
+
# `paginationToken` query parameter in the subsequent request. All other parameters must be provided with the same
|
|
13
|
+
# values that were provided with the request that generated this token, with the exception of `maxResultsPerPage`
|
|
14
|
+
# and `includedData`, which can be modified between calls. The token will expire after 24 hours. When there are no
|
|
15
|
+
# other pages to fetch, the `pagination` field will be absent from the response.
|
|
16
|
+
Pagination = Structure.new do
|
|
17
|
+
# @return [String] A token that can be used to fetch the next page of results.
|
|
18
|
+
attribute?(:next_token, String, from: "nextToken")
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Information about Amazon Points awarded with an item purchase.
|
|
11
|
+
PointsGranted = Structure.new do
|
|
12
|
+
# @return [Money] Cash equivalent value of the awarded Amazon Points.
|
|
13
|
+
attribute?(:points_monetary_value, Money, from: "pointsMonetaryValue")
|
|
14
|
+
|
|
15
|
+
# @return [Integer] Total number of Amazon Points granted to the customer's account for this item purchase.
|
|
16
|
+
attribute?(:points_number, Integer, from: "pointsNumber")
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated. Do not edit.
|
|
4
|
+
|
|
5
|
+
require "structure"
|
|
6
|
+
require "time"
|
|
7
|
+
|
|
8
|
+
module Peddler
|
|
9
|
+
module APIs
|
|
10
|
+
class Orders20260101
|
|
11
|
+
# Customer-specified time preferences for when deliveries should be attempted at the destination address.
|
|
12
|
+
PreferredDeliveryTime = Structure.new do
|
|
13
|
+
# @return [Array<BusinessHour>] Business hours when the business is open for deliveries.
|
|
14
|
+
attribute?(:business_hours, [BusinessHour], from: "businessHours")
|
|
15
|
+
|
|
16
|
+
# @return [Array<ExceptionDate>] Specific dates within the next 30 days when normal business hours do not apply.
|
|
17
|
+
attribute?(:exception_dates, [ExceptionDate], from: "exceptionDates")
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Information about the recipient to whom the order should be delivered.
|
|
11
|
+
Recipient = Structure.new do
|
|
12
|
+
# @return [CustomerAddress] The address where the order should be delivered to the customer.
|
|
13
|
+
attribute?(:delivery_address, CustomerAddress, from: "deliveryAddress")
|
|
14
|
+
|
|
15
|
+
# @return [DeliveryPreference] Special instructions and preferences that the customer specifies for how the
|
|
16
|
+
# order should be delivered.
|
|
17
|
+
attribute?(:delivery_preference, DeliveryPreference, from: "deliveryPreference")
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Information about where the customer placed this order.
|
|
11
|
+
SalesChannel = Structure.new do
|
|
12
|
+
# @return [String] The name of the sales platform or channel where the customer placed this order.
|
|
13
|
+
#
|
|
14
|
+
# **Possible values**: `AMAZON`, `NON_AMAZON`
|
|
15
|
+
attribute(:channel_name, String, from: "channelName")
|
|
16
|
+
|
|
17
|
+
# @return [String] The unique identifier for the specific marketplace within the sales channel where this order
|
|
18
|
+
# was placed.
|
|
19
|
+
attribute?(:marketplace_id, String, from: "marketplaceId")
|
|
20
|
+
|
|
21
|
+
# @return [String] The human-readable name of the marketplace where this order was placed.
|
|
22
|
+
attribute?(:marketplace_name, String, from: "marketplaceName")
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated. Do not edit.
|
|
4
|
+
|
|
5
|
+
require "structure"
|
|
6
|
+
require "time"
|
|
7
|
+
|
|
8
|
+
module Peddler
|
|
9
|
+
module APIs
|
|
10
|
+
class Orders20260101
|
|
11
|
+
# A list of orders.
|
|
12
|
+
SearchOrdersResponse = Structure.new do
|
|
13
|
+
# @return [Array<Order>] An array containing all orders that match the search criteria.
|
|
14
|
+
attribute(:orders, [Order])
|
|
15
|
+
|
|
16
|
+
# @return [Time] Only orders placed before the specified time are returned. The date must be in
|
|
17
|
+
# {https://developer-docs.amazon.com/sp-api/docs/iso-8601 ISO 8601} format.
|
|
18
|
+
attribute?(:created_before, Time, from: "createdBefore")
|
|
19
|
+
|
|
20
|
+
# @return [Time] Only orders updated before the specified time are returned. The date must be in
|
|
21
|
+
# {https://developer-docs.amazon.com/sp-api/docs/iso-8601 ISO 8601} format.
|
|
22
|
+
attribute?(:last_updated_before, Time, from: "lastUpdatedBefore")
|
|
23
|
+
|
|
24
|
+
# @return [Pagination] When a request has results that are not included in the response, pagination occurs. This
|
|
25
|
+
# means the results are divided into individual pages. To retrieve a different page, you must pass the token
|
|
26
|
+
# value as the `paginationToken` query parameter in the subsequent request. All other parameters must be
|
|
27
|
+
# provided with the same values that were provided with the request that generated this token, with the
|
|
28
|
+
# exception of `maxResultsPerPage` and `includedData`, which can be modified between calls. The token will
|
|
29
|
+
# expire after 24 hours. When there are no other pages to fetch, the `pagination` field will be absent from
|
|
30
|
+
# the response.
|
|
31
|
+
attribute?(:pagination, Pagination)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
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 Orders20260101
|
|
10
|
+
# Specific time interval defining the start and end times.
|
|
11
|
+
TimeWindow = Structure.new do
|
|
12
|
+
# @return [HourMinute] The end of the time window.
|
|
13
|
+
attribute?(:end_time, HourMinute, from: "endTime")
|
|
14
|
+
|
|
15
|
+
# @return [HourMinute] The beginning of the time window.
|
|
16
|
+
attribute?(:start_time, HourMinute, from: "startTime")
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|