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.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/distribution_ineligible_reason.rb +24 -0
  3. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/distribution_product.rb +24 -0
  4. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_shipment_summary.rb +30 -0
  5. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/replenishment_order.rb +48 -0
  6. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/replenishment_order_creation_data.rb +21 -0
  7. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/replenishment_order_listing.rb +24 -0
  8. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/replenishment_order_reference.rb +18 -0
  9. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/replenishment_preferences.rb +17 -0
  10. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09.rb +70 -0
  11. data/lib/peddler/apis/finances_2024_06_19.rb +4 -4
  12. data/lib/peddler/apis/invoices_2024_06_19/carrier_details_context.rb +38 -0
  13. data/lib/peddler/apis/invoices_2024_06_19/government_invoice_request.rb +36 -0
  14. data/lib/peddler/apis/invoices_2024_06_19/government_invoice_status_response.rb +23 -0
  15. data/lib/peddler/apis/invoices_2024_06_19/govt_invoice_document_response.rb +17 -0
  16. data/lib/peddler/apis/invoices_2024_06_19/invoice_document.rb +18 -0
  17. data/lib/peddler/apis/invoices_2024_06_19/invoice_error.rb +20 -0
  18. data/lib/peddler/apis/invoices_2024_06_19.rb +66 -0
  19. data/lib/peddler/apis/orders_2026_01_01/address_extended_fields.rb +29 -0
  20. data/lib/peddler/apis/orders_2026_01_01/alias.rb +22 -0
  21. data/lib/peddler/apis/orders_2026_01_01/associated_order.rb +22 -0
  22. data/lib/peddler/apis/orders_2026_01_01/business_hour.rb +22 -0
  23. data/lib/peddler/apis/orders_2026_01_01/buyer.rb +28 -0
  24. data/lib/peddler/apis/orders_2026_01_01/customer_address.rb +66 -0
  25. data/lib/peddler/apis/orders_2026_01_01/date_time_range.rb +23 -0
  26. data/lib/peddler/apis/orders_2026_01_01/delivery_preference.rb +28 -0
  27. data/lib/peddler/apis/orders_2026_01_01/error.rb +23 -0
  28. data/lib/peddler/apis/orders_2026_01_01/error_list.rb +17 -0
  29. data/lib/peddler/apis/orders_2026_01_01/exception_date.rb +25 -0
  30. data/lib/peddler/apis/orders_2026_01_01/get_order_response.rb +17 -0
  31. data/lib/peddler/apis/orders_2026_01_01/gift_option.rb +20 -0
  32. data/lib/peddler/apis/orders_2026_01_01/hour_minute.rb +20 -0
  33. data/lib/peddler/apis/orders_2026_01_01/item_cancellation.rb +17 -0
  34. data/lib/peddler/apis/orders_2026_01_01/item_cancellation_request.rb +22 -0
  35. data/lib/peddler/apis/orders_2026_01_01/item_condition.rb +30 -0
  36. data/lib/peddler/apis/orders_2026_01_01/item_customization.rb +17 -0
  37. data/lib/peddler/apis/orders_2026_01_01/item_expense.rb +17 -0
  38. data/lib/peddler/apis/orders_2026_01_01/item_fulfillment.rb +29 -0
  39. data/lib/peddler/apis/orders_2026_01_01/item_international_shipping.rb +19 -0
  40. data/lib/peddler/apis/orders_2026_01_01/item_packing.rb +17 -0
  41. data/lib/peddler/apis/orders_2026_01_01/item_picking.rb +18 -0
  42. data/lib/peddler/apis/orders_2026_01_01/item_points_cost.rb +18 -0
  43. data/lib/peddler/apis/orders_2026_01_01/item_price.rb +24 -0
  44. data/lib/peddler/apis/orders_2026_01_01/item_proceeds.rb +20 -0
  45. data/lib/peddler/apis/orders_2026_01_01/item_proceeds_breakdown.rb +25 -0
  46. data/lib/peddler/apis/orders_2026_01_01/item_proceeds_detailed_breakdown.rb +23 -0
  47. data/lib/peddler/apis/orders_2026_01_01/item_product.rb +36 -0
  48. data/lib/peddler/apis/orders_2026_01_01/item_promotion.rb +17 -0
  49. data/lib/peddler/apis/orders_2026_01_01/item_promotion_breakdown.rb +17 -0
  50. data/lib/peddler/apis/orders_2026_01_01/item_shipping.rb +24 -0
  51. data/lib/peddler/apis/orders_2026_01_01/item_shipping_constraints.rb +30 -0
  52. data/lib/peddler/apis/orders_2026_01_01/item_substitution_option.rb +30 -0
  53. data/lib/peddler/apis/orders_2026_01_01/item_substitution_preference.rb +21 -0
  54. data/lib/peddler/apis/orders_2026_01_01/measurement.rb +21 -0
  55. data/lib/peddler/apis/orders_2026_01_01/merchant_address.rb +44 -0
  56. data/lib/peddler/apis/orders_2026_01_01/order.rb +63 -0
  57. data/lib/peddler/apis/orders_2026_01_01/order_fulfillment.rb +37 -0
  58. data/lib/peddler/apis/orders_2026_01_01/order_item.rb +48 -0
  59. data/lib/peddler/apis/orders_2026_01_01/order_package.rb +47 -0
  60. data/lib/peddler/apis/orders_2026_01_01/order_proceeds.rb +17 -0
  61. data/lib/peddler/apis/orders_2026_01_01/package_item.rb +23 -0
  62. data/lib/peddler/apis/orders_2026_01_01/package_status.rb +32 -0
  63. data/lib/peddler/apis/orders_2026_01_01/pagination.rb +22 -0
  64. data/lib/peddler/apis/orders_2026_01_01/points_granted.rb +20 -0
  65. data/lib/peddler/apis/orders_2026_01_01/preferred_delivery_time.rb +21 -0
  66. data/lib/peddler/apis/orders_2026_01_01/recipient.rb +21 -0
  67. data/lib/peddler/apis/orders_2026_01_01/sales_channel.rb +26 -0
  68. data/lib/peddler/apis/orders_2026_01_01/search_orders_response.rb +35 -0
  69. data/lib/peddler/apis/orders_2026_01_01/time_window.rb +20 -0
  70. data/lib/peddler/apis/orders_2026_01_01.rb +93 -0
  71. data/lib/peddler/apis/orders_v0/export_info.rb +23 -0
  72. data/lib/peddler/apis/orders_v0/fulfillment_instructions.rb +20 -0
  73. data/lib/peddler/apis/orders_v0/fulfillment_location.rb +17 -0
  74. data/lib/peddler/apis/orders_v0/fulfillment_plan.rb +41 -0
  75. data/lib/peddler/apis/orders_v0/fulfillment_plan_item.rb +20 -0
  76. data/lib/peddler/apis/orders_v0/fulfillment_plan_shipping_constraints.rb +20 -0
  77. data/lib/peddler/apis/orders_v0/get_order_fulfillment_instructions_response.rb +21 -0
  78. data/lib/peddler/apis/orders_v0/order_item.rb +3 -0
  79. data/lib/peddler/apis/orders_v0/shipping_instructions.rb +23 -0
  80. data/lib/peddler/apis/orders_v0.rb +14 -2
  81. data/lib/peddler/apis/vendor_shipments_v1/item_details.rb +16 -0
  82. data/lib/peddler/apis/vendor_shipments_v1/package_item_details.rb +0 -16
  83. data/lib/peddler/apis/vendor_shipments_v1/packed_quantity.rb +25 -0
  84. data/lib/peddler/apis/vendor_shipments_v1/purchase_order_item_details.rb +18 -0
  85. data/lib/peddler/apis/vendor_shipments_v1/regulation_references.rb +9 -11
  86. data/lib/peddler/apis/vendor_shipments_v1/submit_shipment_confirmation_request.rb +17 -0
  87. data/lib/peddler/apis/vendor_shipments_v1/submit_shipment_confirmation_response.rb +20 -0
  88. data/lib/peddler/apis/vendor_shipments_v1/submit_shipment_confirmation_result.rb +17 -0
  89. data/lib/peddler/apis/vendor_shipments_v1.rb +12 -0
  90. data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_asin_sales.rb +16 -0
  91. data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_date_sales.rb +28 -8
  92. data/lib/peddler/data_kiosk/sales_and_traffic20240424/by_date_traffic.rb +19 -6
  93. data/lib/peddler/data_kiosk/sales_and_traffic20240424.json +153 -13
  94. data/lib/peddler/notifications/any_offer_changed/notification.rb +3 -3
  95. data/lib/peddler/version.rb +1 -1
  96. data/lib/peddler.rb +2 -1
  97. data/sig/peddler/apis/amazon_warehousing_and_distribution_2024_05_09.rbs +153 -0
  98. data/sig/peddler/apis/invoices_2024_06_19.rbs +115 -0
  99. data/sig/peddler/apis/orders_2026_01_01.rbs +940 -0
  100. data/sig/peddler/apis/orders_v0.rbs +151 -7
  101. data/sig/peddler/apis/vendor_shipments_v1.rbs +103 -18
  102. data/sig/peddler/data_kiosk/sales_and_traffic20240424.rbs +32 -21
  103. data/sig/peddler/notifications/any_offer_changed.rbs +7 -7
  104. data/sig/peddler.rbs +3 -1
  105. metadata +81 -10
  106. data/lib/peddler/notifications/mfn_order_status_change/notification.rb +0 -32
  107. data/lib/peddler/notifications/mfn_order_status_change/payload.rb +0 -17
  108. data/lib/peddler/notifications/mfn_order_status_change.rb +0 -18
  109. data/lib/peddler/notifications/order_status_change/notification.rb +0 -32
  110. data/lib/peddler/notifications/order_status_change/order_status_change_notification.rb +0 -48
  111. data/lib/peddler/notifications/order_status_change/payload.rb +0 -17
  112. data/lib/peddler/notifications/order_status_change.rb +0 -18
  113. data/sig/peddler/notifications/mfn_order_status_change.rbs +0 -44
  114. data/sig/peddler/notifications/order_status_change.rbs +0 -70
@@ -0,0 +1,28 @@
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 customer who purchased the order.
11
+ Buyer = Structure.new do
12
+ # @return [String] The name of the company or organization for a business order.
13
+ attribute?(:buyer_company_name, String, from: "buyerCompanyName")
14
+
15
+ # @return [String] The anonymized email address of the buyer. **Note:** Only available for merchant-fulfilled
16
+ # (FBM) orders.
17
+ attribute?(:buyer_email, String, from: "buyerEmail")
18
+
19
+ # @return [String] The full name of the customer who placed the order.
20
+ attribute?(:buyer_name, String, from: "buyerName")
21
+
22
+ # @return [String] The purchase order (PO) number entered by the buyer at checkout. Only returned for orders
23
+ # where the buyer entered a PO number at checkout.
24
+ attribute?(:buyer_purchase_order_number, String, from: "buyerPurchaseOrderNumber")
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,66 @@
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 customer.
11
+ CustomerAddress = Structure.new do
12
+ # @return [String] The primary street address.
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 type of location.
22
+ #
23
+ # **Possible values**: `RESIDENTIAL`, `COMMERCIAL`, `PICKUP_POINT`
24
+ attribute?(:address_type, String, from: "addressType")
25
+
26
+ # @return [String] The city of the address.
27
+ attribute?(:city, String)
28
+
29
+ # @return [String] The name of the business or organization at this address.
30
+ attribute?(:company_name, String, from: "companyName")
31
+
32
+ # @return [String] The two-letter country code identifying the country of the address, in ISO 3166-1 format.
33
+ attribute?(:country_code, String, from: "countryCode")
34
+
35
+ # @return [String] The district or county of the address.
36
+ attribute?(:district_or_county, String, from: "districtOrCounty")
37
+
38
+ # @return [AddressExtendedFields] Additional address components specific to certain countries that provide more
39
+ # detailed location information.
40
+ #
41
+ # **Note**: Only available with Brazil shipping addresses.
42
+ attribute?(:extended_fields, AddressExtendedFields, from: "extendedFields")
43
+
44
+ # @return [String] The municipality of the address.
45
+ attribute?(:municipality, String)
46
+
47
+ # @return [String] The full name of the person who will receive the delivery at this address.
48
+ attribute?(:name, String)
49
+
50
+ # @return [String] The contact phone number for delivery coordination and customer communication.
51
+ #
52
+ # **Note**: The buyer phone number will be suppressed in some cases, including but not limited to:
53
+ #
54
+ # - All FBA (Fulfillment by Amazon) orders.
55
+ # - Shipped FBM (Fulfilled by the merchant) orders when current date is past the latest delivery date.
56
+ attribute?(:phone, String)
57
+
58
+ # @return [String] The postal code, ZIP code, or equivalent mailing code of the address.
59
+ attribute?(:postal_code, String, from: "postalCode")
60
+
61
+ # @return [String] The state, province, or region of the address.
62
+ attribute?(:state_or_region, String, from: "stateOrRegion")
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,23 @@
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 time period with start and end boundaries.
12
+ DateTimeRange = Structure.new do
13
+ # @return [Time] The beginning of the time period, in [ISO
14
+ # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
15
+ attribute?(:earliest_date_time, Time, from: "earliestDateTime")
16
+
17
+ # @return [Time] The end of the time period, in [ISO
18
+ # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
19
+ attribute?(:latest_date_time, Time, from: "latestDateTime")
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,28 @@
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
+ # Contains all delivery instructions that the customer provides for the shipping address.
12
+ DeliveryPreference = Structure.new do
13
+ # @return [String] Building instructions, nearby landmark, or navigation instructions.
14
+ attribute?(:address_instruction, String, from: "addressInstruction")
15
+
16
+ # @return [Array<PreferredDeliveryCapability>] A list of miscellaneous delivery capabilities associated with the
17
+ # shipping address.
18
+ attribute?(:delivery_capabilities, Array, from: "deliveryCapabilities")
19
+
20
+ # @return [PreferredDeliveryTime] Business hours and days when the delivery is preferred.
21
+ attribute?(:delivery_time, PreferredDeliveryTime, from: "deliveryTime")
22
+
23
+ # @return [String] The drop-off location selected by the customer.
24
+ attribute?(:drop_off_location, String, from: "dropOffLocation")
25
+ end
26
+ end
27
+ end
28
+ 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
+ # Error response returned when the request is unsuccessful.
11
+ Error = Structure.new do
12
+ # @return [String] An error code that identifies the type of error that occurred.
13
+ attribute(:code, String)
14
+
15
+ # @return [String] A message that describes the error condition.
16
+ attribute(:message, String)
17
+
18
+ # @return [String] Additional details that can help the caller understand or fix the issue.
19
+ attribute?(:details, String)
20
+ end
21
+ end
22
+ end
23
+ 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
+ # A list of error responses returned when a request is unsuccessful.
11
+ ErrorList = Structure.new do
12
+ # @return [Array<Error>] A list of errors.
13
+ attribute(:errors, [Error])
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,25 @@
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
+ # Special dates when normal business hours are modified or suspended, requiring different delivery scheduling.
12
+ ExceptionDate = Structure.new do
13
+ # @return [Date] Specific calendar date when normal operating hours do not apply. In [ISO
14
+ # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format at day granularity.
15
+ attribute?(:exception_date, Date, from: "exceptionDate")
16
+
17
+ # @return [String] Operational status of the business on the specified exception date.
18
+ attribute?(:exception_date_type, String, from: "exceptionDateType")
19
+
20
+ # @return [Array<TimeWindow>] Alternative operating hours that apply specifically to this exception date.
21
+ attribute?(:time_windows, [TimeWindow], from: "timeWindows")
22
+ end
23
+ end
24
+ end
25
+ 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
+ # Order details.
11
+ GetOrderResponse = Structure.new do
12
+ # @return [Order] All available information about the requested order.
13
+ attribute(:order, Order)
14
+ end
15
+ end
16
+ end
17
+ 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
+ # Gift wrapping and personalization options selected by the customer for an order item.
11
+ GiftOption = Structure.new do
12
+ # @return [String] Personal message from the buyer to be included with the gift-wrapped item.
13
+ attribute?(:gift_message, String, from: "giftMessage")
14
+
15
+ # @return [String] Type or quality level of gift wrapping service selected by the customer.
16
+ attribute?(:gift_wrap_level, String, from: "giftWrapLevel")
17
+ end
18
+ end
19
+ end
20
+ 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
+ # The time when the business opens or closes.
11
+ HourMinute = Structure.new do
12
+ # @return [Integer] The hour when the business opens or closes, in 24-hour format (0-23).
13
+ attribute?(:hour, Integer)
14
+
15
+ # @return [Integer] The minute when the business opens or closes.
16
+ attribute?(:minute, Integer)
17
+ end
18
+ end
19
+ end
20
+ 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 cancellation information of the order item.
11
+ ItemCancellation = Structure.new do
12
+ # @return [ItemCancellationRequest] Details of the cancellation request submitted for this order item.
13
+ attribute?(:cancellation_request, ItemCancellationRequest, from: "cancellationRequest")
14
+ end
15
+ end
16
+ end
17
+ 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
+ # Detailed information about a cancellation request submitted for a specific order item.
11
+ ItemCancellationRequest = Structure.new do
12
+ # @return [String] Explanation provided for why the cancellation was requested.
13
+ attribute?(:cancel_reason, String, from: "cancelReason")
14
+
15
+ # @return [String] Entity that initiated the cancellation request for this item.
16
+ #
17
+ # **Possible values**: `BUYER`
18
+ attribute?(:requester, String)
19
+ end
20
+ end
21
+ end
22
+ 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
+ # Detailed information about the physical condition and quality state of the item being sold.
11
+ ItemCondition = Structure.new do
12
+ # @return [String] Additional details provided by the seller to describe the specific condition of this
13
+ # particular item.
14
+ attribute?(:condition_note, String, from: "conditionNote")
15
+
16
+ # @return [String] A more specific condition classification that provides additional detail about the item's
17
+ # quality within the main condition type.
18
+ #
19
+ # **Possible values**: `NEW`, `MINT`, `VERY_GOOD`, `GOOD`, `ACCEPTABLE`, `POOR`, `CLUB`, `OEM`, `WARRANTY`,
20
+ # `REFURBISHED_WARRANTY`, `REFURBISHED`, `OPEN_BOX`, `ANY`, `OTHER`.
21
+ attribute?(:condition_subtype, String, from: "conditionSubtype")
22
+
23
+ # @return [String] The primary condition category that broadly describes the item's state.
24
+ #
25
+ # **Possible values**: `NEW`, `USED`, `COLLECTIBLE`, `REFURBISHED`, `PREORDER`, `CLUB`.
26
+ attribute?(:condition_type, String, from: "conditionType")
27
+ end
28
+ end
29
+ end
30
+ 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
+ # Information about any personalization, customization, or special modifications applied to this order item.
11
+ ItemCustomization = Structure.new do
12
+ # @return [String] The URL of the customized data for custom orders from the Amazon Custom program.
13
+ attribute?(:customized_url, String, from: "customizedUrl")
14
+ end
15
+ end
16
+ end
17
+ 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 expense information related to this specific item.
11
+ ItemExpense = Structure.new do
12
+ # @return [ItemPointsCost] The cost of points.
13
+ attribute?(:points_cost, ItemPointsCost, from: "pointsCost")
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,29 @@
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 how the order item should be processed, packed, and shipped to the customer.
11
+ ItemFulfillment = Structure.new do
12
+ # @return [ItemPacking] Information related to the packaging process for this item.
13
+ attribute?(:packing, ItemPacking)
14
+
15
+ # @return [ItemPicking] Information related to the warehouse picking process for this item.
16
+ attribute?(:picking, ItemPicking)
17
+
18
+ # @return [Integer] The number of units of this item that have been successfully processed and shipped.
19
+ attribute?(:quantity_fulfilled, Integer, from: "quantityFulfilled")
20
+
21
+ # @return [Integer] The number of units of this item that remain to be processed and shipped.
22
+ attribute?(:quantity_unfulfilled, Integer, from: "quantityUnfulfilled")
23
+
24
+ # @return [ItemShipping] Information related to the shipping and delivery process for this item.
25
+ attribute?(:shipping, ItemShipping)
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,19 @@
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
+ # Additional requirements needed for cross-border shipping of an order item.
11
+ ItemInternationalShipping = Structure.new do
12
+ # @return [String] Import One-Stop Shop registration number required for EU VAT compliance when shipping from
13
+ # outside the European Union. Sellers shipping to the EU from outside the EU must provide this IOSS number to
14
+ # their carrier when Amazon has collected the VAT on the sale.
15
+ attribute?(:ioss_number, String, from: "iossNumber")
16
+ end
17
+ end
18
+ end
19
+ 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
+ # Information related to the packaging process for an order item.
11
+ ItemPacking = Structure.new do
12
+ # @return [GiftOption] Gift wrapping and messaging specified for this item.
13
+ attribute?(:gift_option, GiftOption, from: "giftOption")
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,18 @@
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 related to the warehouse picking process for an order item.
11
+ ItemPicking = Structure.new do
12
+ # @return [ItemSubstitutionPreference] Substitution preference for an order item when it becomes unavailable
13
+ # during fulfillment
14
+ attribute?(:substitution_preference, ItemSubstitutionPreference, from: "substitutionPreference")
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
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 granted with the purchase of an item, including both quantity and monetary
11
+ # equivalent value.
12
+ ItemPointsCost = Structure.new do
13
+ # @return [PointsGranted] Details of the Amazon Points granted, including count and monetary value.
14
+ attribute?(:points_granted, PointsGranted, from: "pointsGranted")
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,24 @@
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
+ # Pricing information for the order item.
11
+ ItemPrice = Structure.new do
12
+ # @return [String] Indicates that the selling price is a special price that is only available for Amazon
13
+ # Business orders. For more information about the Amazon Business Seller Program, refer to the [Amazon
14
+ # Business website](https://www.amazon.com/b2b/info/amazon-business).
15
+ #
16
+ # **Possible value**: `BUSINESS_PRICE`
17
+ attribute?(:price_designation, String, from: "priceDesignation")
18
+
19
+ # @return [Money] The price charged for a single unit of this product, before any quantity-based calculations.
20
+ attribute?(:unit_price, Money, from: "unitPrice")
21
+ end
22
+ end
23
+ end
24
+ 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
+ # The money that the seller receives from the sale of this specific item.
11
+ ItemProceeds = Structure.new do
12
+ # @return [Array<ItemProceedsBreakdown>] The breakdown of proceeds.
13
+ attribute?(:breakdowns, [ItemProceedsBreakdown])
14
+
15
+ # @return [Money] The total monetary amount for this order item.
16
+ attribute?(:proceeds_total, Money, from: "proceedsTotal")
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,25 @@
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
+ # Detailed proceeds breakdown for a specific order item.
11
+ ItemProceedsBreakdown = Structure.new do
12
+ # @return [Array<ItemProceedsDetailedBreakdown>] Further granular breakdown of the subtotal.
13
+ attribute?(:detailed_breakdowns, [ItemProceedsDetailedBreakdown], from: "detailedBreakdowns")
14
+
15
+ # @return [Money] Monetary amount for the proceeds breakdown.
16
+ attribute?(:subtotal, Money)
17
+
18
+ # @return [String] Category classification of the proceeds breakdown.
19
+ #
20
+ # **Possible values**: `ITEM`, `SHIPPING`, `GIFT_WRAP`, `COD_FEE`, `OTHER`, `TAX`, `DISCOUNT`
21
+ attribute?(:type, String)
22
+ end
23
+ end
24
+ end
25
+ 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
+ # Further granular breakdown of the subtotal of the proceeds breakdown, only available for TAX and DISCOUNT
11
+ # proceeds type.
12
+ ItemProceedsDetailedBreakdown = Structure.new do
13
+ # @return [String] Specific classification of the further granular breakdown.
14
+ #
15
+ # **Possible values**: `ITEM`, `SHIPPING`, `GIFT_WRAP`, `COD_FEE`, `OTHER`, `DISCOUNT`
16
+ attribute?(:subtype, String)
17
+
18
+ # @return [Money] Monetary amount for the further granular breakdown.
19
+ attribute?(:value, Money)
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,36 @@
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
+ # Product information for an order item.
11
+ ItemProduct = Structure.new do
12
+ # @return [String] The Amazon Standard Identification Number (ASIN) of the item.
13
+ attribute?(:asin, String)
14
+
15
+ # @return [ItemCondition] Information about the physical condition and quality of the item being sold.
16
+ attribute?(:condition, ItemCondition)
17
+
18
+ # @return [ItemCustomization] Information about any personalization or customization applied to this product.
19
+ attribute?(:customization, ItemCustomization)
20
+
21
+ # @return [ItemPrice] Pricing information for this product.
22
+ attribute?(:price, ItemPrice)
23
+
24
+ # @return [String] The item's seller stock keeping unit (SKU).
25
+ attribute?(:seller_sku, String, from: "sellerSku")
26
+
27
+ # @return [Array<String>] Unique serial numbers for products that require individual tracking, typically
28
+ # provided for FBA orders.
29
+ attribute?(:serial_numbers, [String], from: "serialNumbers")
30
+
31
+ # @return [String] The product name or title as displayed to customers in the marketplace.
32
+ attribute?(:title, String)
33
+ end
34
+ end
35
+ end
36
+ 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
+ # Details about any discounts, coupons, or promotional offers applied to this item.
11
+ ItemPromotion = Structure.new do
12
+ # @return [Array<ItemPromotionBreakdown>] A list of promotions applied to the order item.
13
+ attribute?(:breakdowns, [ItemPromotionBreakdown])
14
+ end
15
+ end
16
+ end
17
+ 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
+ # Detailed information about a specific promotional offer applied to an order item.
11
+ ItemPromotionBreakdown = Structure.new do
12
+ # @return [String] Unique identifier for the promotion applied to this item.
13
+ attribute?(:promotion_id, String, from: "promotionId")
14
+ end
15
+ end
16
+ end
17
+ end