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
@@ -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
@@ -18,6 +18,29 @@ module Peddler
18
18
  def to_h: () -> { description: String?, value: String? }
19
19
  end
20
20
 
21
+ class CarrierDetailsContext < Data
22
+ def self.new: (?address: String?, ?context_type: String?, ?federal_tax_id: String?, ?name: String?, ?region_code: String?, ?region_tax_id: String?, ?vehicle_license_plate: String?, ?vehicle_registration_region_code: String?) -> Peddler::APIs::Invoices20240619::CarrierDetailsContext
23
+ | (String?, String?, String?, String?, String?, String?, String?, String?) -> Peddler::APIs::Invoices20240619::CarrierDetailsContext
24
+ def self.[]: (?address: String?, ?context_type: String?, ?federal_tax_id: String?, ?name: String?, ?region_code: String?, ?region_tax_id: String?, ?vehicle_license_plate: String?, ?vehicle_registration_region_code: String?) -> Peddler::APIs::Invoices20240619::CarrierDetailsContext
25
+ | (String?, String?, String?, String?, String?, String?, String?, String?) -> Peddler::APIs::Invoices20240619::CarrierDetailsContext
26
+
27
+ def self.members: () -> [ :address, :context_type, :federal_tax_id, :name, :region_code, :region_tax_id, :vehicle_license_plate, :vehicle_registration_region_code ]
28
+
29
+ def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Invoices20240619::CarrierDetailsContext
30
+
31
+ attr_reader address: String?
32
+ attr_reader context_type: String?
33
+ attr_reader federal_tax_id: String?
34
+ attr_reader name: String?
35
+ attr_reader region_code: String?
36
+ attr_reader region_tax_id: String?
37
+ attr_reader vehicle_license_plate: String?
38
+ attr_reader vehicle_registration_region_code: String?
39
+
40
+ def members: () -> [ :address, :context_type, :federal_tax_id, :name, :region_code, :region_tax_id, :vehicle_license_plate, :vehicle_registration_region_code ]
41
+ def to_h: () -> { address: String?, context_type: String?, federal_tax_id: String?, name: String?, region_code: String?, region_tax_id: String?, vehicle_license_plate: String?, vehicle_registration_region_code: String? }
42
+ end
43
+
21
44
  class Error < Data
22
45
  def self.new: (code: String?, message: String?, ?details: String?) -> Peddler::APIs::Invoices20240619::Error
23
46
  | (String?, String?, String?) -> Peddler::APIs::Invoices20240619::Error
@@ -212,6 +235,61 @@ module Peddler
212
235
  def to_h: () -> { invoices: Array[Peddler::APIs::Invoices20240619::Invoice]?, next_token: String? }
213
236
  end
214
237
 
238
+ class GovernmentInvoiceRequest < Data
239
+ def self.new: (invoice_type: String?, marketplace_id: String?, shipment_id: String?, transaction_type: String?, ?contexts: Array[Peddler::APIs::Invoices20240619::CarrierDetailsContext]?, ?inbound_plan_id: String?) -> Peddler::APIs::Invoices20240619::GovernmentInvoiceRequest
240
+ | (String?, String?, String?, String?, Array[Peddler::APIs::Invoices20240619::CarrierDetailsContext]?, String?) -> Peddler::APIs::Invoices20240619::GovernmentInvoiceRequest
241
+ def self.[]: (invoice_type: String?, marketplace_id: String?, shipment_id: String?, transaction_type: String?, ?contexts: Array[Peddler::APIs::Invoices20240619::CarrierDetailsContext]?, ?inbound_plan_id: String?) -> Peddler::APIs::Invoices20240619::GovernmentInvoiceRequest
242
+ | (String?, String?, String?, String?, Array[Peddler::APIs::Invoices20240619::CarrierDetailsContext]?, String?) -> Peddler::APIs::Invoices20240619::GovernmentInvoiceRequest
243
+
244
+ def self.members: () -> [ :invoice_type, :marketplace_id, :shipment_id, :transaction_type, :contexts, :inbound_plan_id ]
245
+
246
+ def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Invoices20240619::GovernmentInvoiceRequest
247
+
248
+ attr_reader contexts: Array[Peddler::APIs::Invoices20240619::CarrierDetailsContext]?
249
+ attr_reader inbound_plan_id: String?
250
+ attr_reader invoice_type: String?
251
+ attr_reader marketplace_id: String?
252
+ attr_reader shipment_id: String?
253
+ attr_reader transaction_type: String?
254
+
255
+ def members: () -> [ :invoice_type, :marketplace_id, :shipment_id, :transaction_type, :contexts, :inbound_plan_id ]
256
+ def to_h: () -> { invoice_type: String?, marketplace_id: String?, shipment_id: String?, transaction_type: String?, contexts: Array[Peddler::APIs::Invoices20240619::CarrierDetailsContext]?, inbound_plan_id: String? }
257
+ end
258
+
259
+ class GovernmentInvoiceStatusResponse < Data
260
+ def self.new: (?invoice_errors: Array[Peddler::APIs::Invoices20240619::InvoiceError]?, ?invoice_external_document_id: String?, ?status: String?) -> Peddler::APIs::Invoices20240619::GovernmentInvoiceStatusResponse
261
+ | (Array[Peddler::APIs::Invoices20240619::InvoiceError]?, String?, String?) -> Peddler::APIs::Invoices20240619::GovernmentInvoiceStatusResponse
262
+ def self.[]: (?invoice_errors: Array[Peddler::APIs::Invoices20240619::InvoiceError]?, ?invoice_external_document_id: String?, ?status: String?) -> Peddler::APIs::Invoices20240619::GovernmentInvoiceStatusResponse
263
+ | (Array[Peddler::APIs::Invoices20240619::InvoiceError]?, String?, String?) -> Peddler::APIs::Invoices20240619::GovernmentInvoiceStatusResponse
264
+
265
+ def self.members: () -> [ :invoice_errors, :invoice_external_document_id, :status ]
266
+
267
+ def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Invoices20240619::GovernmentInvoiceStatusResponse
268
+
269
+ attr_reader invoice_errors: Array[Peddler::APIs::Invoices20240619::InvoiceError]?
270
+ attr_reader invoice_external_document_id: String?
271
+ attr_reader status: String?
272
+
273
+ def members: () -> [ :invoice_errors, :invoice_external_document_id, :status ]
274
+ def to_h: () -> { invoice_errors: Array[Peddler::APIs::Invoices20240619::InvoiceError]?, invoice_external_document_id: String?, status: String? }
275
+ end
276
+
277
+ class GovtInvoiceDocumentResponse < Data
278
+ def self.new: (?invoice_document: Peddler::APIs::Invoices20240619::InvoiceDocument?) -> Peddler::APIs::Invoices20240619::GovtInvoiceDocumentResponse
279
+ | (Peddler::APIs::Invoices20240619::InvoiceDocument?) -> Peddler::APIs::Invoices20240619::GovtInvoiceDocumentResponse
280
+ def self.[]: (?invoice_document: Peddler::APIs::Invoices20240619::InvoiceDocument?) -> Peddler::APIs::Invoices20240619::GovtInvoiceDocumentResponse
281
+ | (Peddler::APIs::Invoices20240619::InvoiceDocument?) -> Peddler::APIs::Invoices20240619::GovtInvoiceDocumentResponse
282
+
283
+ def self.members: () -> [ :invoice_document ]
284
+
285
+ def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Invoices20240619::GovtInvoiceDocumentResponse
286
+
287
+ attr_reader invoice_document: Peddler::APIs::Invoices20240619::InvoiceDocument?
288
+
289
+ def members: () -> [ :invoice_document ]
290
+ def to_h: () -> { invoice_document: Peddler::APIs::Invoices20240619::InvoiceDocument? }
291
+ end
292
+
215
293
  class Invoice < Data
216
294
  def self.new: (?date: Time?, ?error_code: String?, ?external_invoice_id: String?, ?gov_response: String?, ?id: String?, ?invoice_type: String?, ?series: String?, ?status: String?, ?transaction_ids: Array[Peddler::APIs::Invoices20240619::TransactionIdentifier]?, ?transaction_type: String?) -> Peddler::APIs::Invoices20240619::Invoice
217
295
  | (Time?, String?, String?, String?, String?, String?, String?, String?, Array[Peddler::APIs::Invoices20240619::TransactionIdentifier]?, String?) -> Peddler::APIs::Invoices20240619::Invoice
@@ -237,6 +315,39 @@ module Peddler
237
315
  def to_h: () -> { date: Time?, error_code: String?, external_invoice_id: String?, gov_response: String?, id: String?, invoice_type: String?, series: String?, status: String?, transaction_ids: Array[Peddler::APIs::Invoices20240619::TransactionIdentifier]?, transaction_type: String? }
238
316
  end
239
317
 
318
+ class InvoiceDocument < Data
319
+ def self.new: (?invoice_document_url: String?) -> Peddler::APIs::Invoices20240619::InvoiceDocument
320
+ | (String?) -> Peddler::APIs::Invoices20240619::InvoiceDocument
321
+ def self.[]: (?invoice_document_url: String?) -> Peddler::APIs::Invoices20240619::InvoiceDocument
322
+ | (String?) -> Peddler::APIs::Invoices20240619::InvoiceDocument
323
+
324
+ def self.members: () -> [ :invoice_document_url ]
325
+
326
+ def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Invoices20240619::InvoiceDocument
327
+
328
+ attr_reader invoice_document_url: String?
329
+
330
+ def members: () -> [ :invoice_document_url ]
331
+ def to_h: () -> { invoice_document_url: String? }
332
+ end
333
+
334
+ class InvoiceError < Data
335
+ def self.new: (?description: String?, ?error_code: String?) -> Peddler::APIs::Invoices20240619::InvoiceError
336
+ | (String?, String?) -> Peddler::APIs::Invoices20240619::InvoiceError
337
+ def self.[]: (?description: String?, ?error_code: String?) -> Peddler::APIs::Invoices20240619::InvoiceError
338
+ | (String?, String?) -> Peddler::APIs::Invoices20240619::InvoiceError
339
+
340
+ def self.members: () -> [ :description, :error_code ]
341
+
342
+ def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Invoices20240619::InvoiceError
343
+
344
+ attr_reader description: String?
345
+ attr_reader error_code: String?
346
+
347
+ def members: () -> [ :description, :error_code ]
348
+ def to_h: () -> { description: String?, error_code: String? }
349
+ end
350
+
240
351
  class InvoicesAttributes < Data
241
352
  def self.new: (?invoice_status_options: Array[Peddler::APIs::Invoices20240619::AttributeOption]?, ?invoice_type_options: Array[Peddler::APIs::Invoices20240619::AttributeOption]?, ?transaction_identifier_name_options: Array[Peddler::APIs::Invoices20240619::AttributeOption]?, ?transaction_type_options: Array[Peddler::APIs::Invoices20240619::AttributeOption]?) -> Peddler::APIs::Invoices20240619::InvoicesAttributes
242
353
  | (Array[Peddler::APIs::Invoices20240619::AttributeOption]?, Array[Peddler::APIs::Invoices20240619::AttributeOption]?, Array[Peddler::APIs::Invoices20240619::AttributeOption]?, Array[Peddler::APIs::Invoices20240619::AttributeOption]?) -> Peddler::APIs::Invoices20240619::InvoicesAttributes
@@ -290,8 +401,12 @@ module Peddler
290
401
  def to_h: () -> { id: String?, name: String? }
291
402
  end
292
403
 
404
+ def create_government_invoice: (Hash[untyped, untyped], ?rate_limit: Float) -> Peddler::Response
293
405
  def create_invoices_export: (Hash[untyped, untyped], ?rate_limit: Float) -> Peddler::Response
294
406
 
407
+ def get_government_invoice_document: (String, String, String, String, ?inbound_plan_id: String?, ?file_format: String?, ?rate_limit: Float) -> Peddler::Response
408
+ def get_government_invoice_status: (String, String, String, String, ?inbound_plan_id: String?, ?rate_limit: Float) -> Peddler::Response
409
+
295
410
  def get_invoice: (String, String, ?rate_limit: Float) -> Peddler::Response
296
411
  def get_invoices: (String, ?transaction_identifier_name: String?, ?page_size: Integer?, ?date_end: String?, ?transaction_type: String?, ?transaction_identifier_id: String?, ?date_start: String?, ?series: String?, ?next_token: String?, ?sort_order: String?, ?invoice_type: String?, ?statuses: Array[String]?, ?external_invoice_id: String?, ?sort_by: String?, ?rate_limit: Float) -> Peddler::Response
297
412
  def get_invoices_attributes: (String, ?rate_limit: Float) -> Peddler::Response