peddler 5.4.0 → 5.5.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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -1
  3. data/lib/peddler/api.rb +28 -4
  4. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/order_attribute.rb +20 -0
  5. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_execution_error.rb +24 -0
  6. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_listing.rb +24 -0
  7. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_order.rb +60 -0
  8. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_order_creation_data.rb +23 -0
  9. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_order_reference.rb +18 -0
  10. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_shipment.rb +43 -0
  11. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/shipment_label_page_types.rb +20 -0
  12. data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09.rb +100 -0
  13. data/lib/peddler/apis/listings_restrictions_2021_08_01/restriction_list.rb +1 -1
  14. data/lib/peddler/apis/listings_restrictions_2021_08_01.rb +4 -1
  15. data/lib/peddler/apis/notifications_v1/aggregation_filter.rb +2 -2
  16. data/lib/peddler/apis/notifications_v1/destination.rb +1 -1
  17. data/lib/peddler/apis/notifications_v1/event_bridge_resource.rb +2 -2
  18. data/lib/peddler/apis/notifications_v1/event_filter.rb +6 -6
  19. data/lib/peddler/apis/notifications_v1/marketplace_filter.rb +1 -1
  20. data/lib/peddler/apis/notifications_v1/marketplace_ids.rb +2 -2
  21. data/lib/peddler/apis/notifications_v1/order_change_type_filter.rb +2 -1
  22. data/lib/peddler/apis/notifications_v1/order_change_types.rb +2 -2
  23. data/lib/peddler/apis/notifications_v1/processing_directive.rb +18 -7
  24. data/lib/peddler/apis/notifications_v1/send_test_notification_request.rb +20 -0
  25. data/lib/peddler/apis/notifications_v1/send_test_notification_response.rb +20 -0
  26. data/lib/peddler/apis/notifications_v1/test_notification.rb +22 -0
  27. data/lib/peddler/apis/notifications_v1.rb +45 -17
  28. data/lib/peddler/apis/orders_2026_01_01/fulfillment_order.rb +19 -0
  29. data/lib/peddler/apis/orders_2026_01_01/item_proceeds_breakdown.rb +5 -5
  30. data/lib/peddler/apis/orders_2026_01_01/order.rb +5 -0
  31. data/lib/peddler/apis/orders_2026_01_01/order_proceeds.rb +5 -0
  32. data/lib/peddler/apis/orders_2026_01_01/order_proceeds_breakdown.rb +30 -0
  33. data/lib/peddler/apis/orders_v0/approved_alternative_details.rb +20 -0
  34. data/lib/peddler/apis/orders_v0/approved_attribute.rb +23 -0
  35. data/lib/peddler/apis/orders_v0/interim_status_detail.rb +24 -0
  36. data/lib/peddler/apis/orders_v0/regulated_order_verification_status.rb +5 -0
  37. data/lib/peddler/apis/orders_v0/valid_interim_status_code.rb +21 -0
  38. data/lib/peddler/apis/orders_v0/valid_verification_detail.rb +2 -1
  39. data/lib/peddler/apis/orders_v0/verification_details.rb +8 -0
  40. data/lib/peddler/apis/product_type_definitions_2020_09_01/error_list.rb +1 -1
  41. data/lib/peddler/apis/product_type_definitions_2020_09_01/product_type.rb +1 -1
  42. data/lib/peddler/apis/product_type_definitions_2020_09_01/product_type_list.rb +1 -1
  43. data/lib/peddler/apis/product_type_definitions_2020_09_01/schema_link.rb +2 -1
  44. data/lib/peddler/apis/product_type_definitions_2020_09_01.rb +12 -8
  45. data/lib/peddler/apis/replenishment_2022_11_07/get_selling_partner_metrics_request.rb +5 -0
  46. data/lib/peddler/apis/replenishment_2022_11_07/get_selling_partner_metrics_request_filters.rb +48 -0
  47. data/lib/peddler/apis/replenishment_2022_11_07/get_selling_partner_metrics_response_metric.rb +9 -9
  48. data/lib/peddler/apis/replenishment_2022_11_07/list_offer_metrics_request.rb +2 -2
  49. data/lib/peddler/apis/replenishment_2022_11_07/list_offer_metrics_request_filters.rb +16 -3
  50. data/lib/peddler/apis/replenishment_2022_11_07/list_offer_metrics_response_offer.rb +8 -1
  51. data/lib/peddler/apis/replenishment_2022_11_07/list_offers_request.rb +2 -2
  52. data/lib/peddler/apis/replenishment_2022_11_07/list_offers_request_filters.rb +2 -2
  53. data/lib/peddler/apis/replenishment_2022_11_07/time_interval.rb +10 -6
  54. data/lib/peddler/apis/services_v1/associated_item.rb +3 -0
  55. data/lib/peddler/apis/services_v1/linked_asset.rb +24 -0
  56. data/lib/peddler/apis/services_v1/service_job.rb +6 -0
  57. data/lib/peddler/apis/services_v1.rb +10 -4
  58. data/lib/peddler/apis/uploads_2020_11_01.rb +1 -1
  59. data/lib/peddler/notifications/order_change/notification.rb +4 -3
  60. data/lib/peddler/notifications/order_change/order_change_notification.rb +2 -2
  61. data/lib/peddler/notifications/order_change/order_change_trigger.rb +4 -4
  62. data/lib/peddler/notifications/order_change/order_item.rb +7 -7
  63. data/lib/peddler/notifications/order_change/summary.rb +17 -17
  64. data/lib/peddler/version.rb +1 -1
  65. data/sig/peddler/api.rbs +2 -0
  66. data/sig/peddler/apis/amazon_warehousing_and_distribution_2024_05_09.rbs +167 -0
  67. data/sig/peddler/apis/listings_restrictions_2021_08_01.rbs +1 -1
  68. data/sig/peddler/apis/notifications_v1.rbs +61 -7
  69. data/sig/peddler/apis/orders_2026_01_01.rbs +59 -23
  70. data/sig/peddler/apis/orders_v0.rbs +73 -14
  71. data/sig/peddler/apis/product_type_definitions_2020_09_01.rbs +1 -1
  72. data/sig/peddler/apis/replenishment_2022_11_07.rbs +48 -21
  73. data/sig/peddler/apis/services_v1.rbs +36 -15
  74. metadata +21 -2
@@ -8,8 +8,8 @@ require "time"
8
8
  module Peddler
9
9
  module APIs
10
10
  class Replenishment20221107
11
- # Use these parameters to filter results. Any result must match all provided parameters. For any parameter that is
12
- # an array, the result must match at least one element in the provided array.
11
+ # Use these parameters to filter results. Any result must match all provided parameters. For parameters that
12
+ # accept multiple values (arrays), the API returns results that match at least one value in the array.
13
13
  ListOfferMetricsRequestFilters = Structure.new do
14
14
  # @return [String] The marketplace identifier. The supported marketplaces for both sellers and vendors are US,
15
15
  # CA, ES, UK, FR, IT, IN, DE, and JP. The supported marketplaces for vendors only are BR, AU, MX, AE, and NL.
@@ -29,8 +29,21 @@ module Peddler
29
29
  # @return [String]
30
30
  attribute?(:aggregation_frequency, String, from: "aggregationFrequency")
31
31
 
32
- # @return [Array<String>] A list of Amazon Standard Identification Numbers (ASINs).
32
+ # @return [Array<String>] A list of Amazon Standard Identification Numbers (ASINs) to filter by.
33
33
  attribute?(:asins, [String])
34
+
35
+ # @return [Array<String>] [Applicable only for US marketplace] A list of brand names to filter by.
36
+ attribute?(:brand_names, [String], from: "brandNames")
37
+
38
+ # @return [Array<FulfillmentChannelType>] [Applicable only for Sellers] The fulfillment channel types to filter
39
+ # by.
40
+ attribute?(:fulfillment_channel_types, Array, from: "fulfillmentChannelTypes")
41
+
42
+ # @return [Array<String>] [Applicable only for Vendors] A list of product group names to filter by.
43
+ attribute?(:product_groups, [String], from: "productGroups")
44
+
45
+ # @return [Array<String>] [Applicable only for Sellers] A list of SKUs to filter by.
46
+ attribute?(:skus, [String])
34
47
  end
35
48
  end
36
49
  end
@@ -17,6 +17,9 @@ module Peddler
17
17
  # @return [String] The Amazon Standard Identification Number (ASIN).
18
18
  attribute?(:asin, String)
19
19
 
20
+ # @return [String] The brand name associated with the offer.
21
+ attribute?(:brand_name, String, from: "brandName")
22
+
20
23
  # @return [Float] The percentage of revenue from ASINs with coupons out of total revenue from all ASINs.
21
24
  # Applicable to `PERFORMANCE` `timePeriodType`.
22
25
  attribute?(:coupons_revenue_penetration, Float, from: "couponsRevenuePenetration")
@@ -60,11 +63,15 @@ module Peddler
60
63
  # time due to being out of stock. Applicable to `PERFORMANCE` `timePeriodType`.
61
64
  attribute?(:not_delivered_due_to_oos, Float, from: "notDeliveredDueToOOS")
62
65
 
66
+ # @return [String] The product group associated with the offer. This property is only supported for vendors and
67
+ # not for sellers.
68
+ attribute?(:product_group, String, from: "productGroup")
69
+
63
70
  # @return [Float] The percentage of total program revenue out of total product revenue. Applicable to
64
71
  # `PERFORMANCE` `timePeriodType`.
65
72
  attribute?(:revenue_penetration, Float, from: "revenuePenetration")
66
73
 
67
- # @return [Float] The percentage of new subscriptions acquired through coupons. Applicable to `PERFORMANCE`
74
+ # @return [Float] The percentage of new subscriptions from coupons. Applicable to `PERFORMANCE`
68
75
  # `timePeriodType`.
69
76
  attribute?(:share_of_coupon_subscriptions, Float, from: "shareOfCouponSubscriptions")
70
77
 
@@ -10,8 +10,8 @@ module Peddler
10
10
  # The request body for the `listOffers` operation.
11
11
  ListOffersRequest = Structure.new do
12
12
  # @return [ListOffersRequestFilters] Use these parameters to filter results. Any result must match all provided
13
- # parameters. For any parameter that is an array, the result must match at least one element in the provided
14
- # array.
13
+ # parameters. For parameters that accept multiple values (arrays), the API returns results that match at least
14
+ # one value in the array.
15
15
  attribute(:filters, ListOffersRequestFilters, null: false)
16
16
 
17
17
  # @return [ListOffersRequestPagination] Use these parameters to paginate through the response.
@@ -7,8 +7,8 @@ require "structure"
7
7
  module Peddler
8
8
  module APIs
9
9
  class Replenishment20221107
10
- # Use these parameters to filter results. Any result must match all provided parameters. For any parameter that is
11
- # an array, the result must match at least one element in the provided array.
10
+ # Use these parameters to filter results. Any result must match all provided parameters. For parameters that
11
+ # accept multiple values (arrays), the API returns results that match at least one value in the array.
12
12
  ListOffersRequestFilters = Structure.new do
13
13
  # @return [String] The marketplace identifier. The supported marketplaces for both sellers and vendors are US,
14
14
  # CA, ES, UK, FR, IT, IN, DE, and JP. The supported marketplaces for vendors only are BR, AU, MX, AE, and NL.
@@ -8,20 +8,23 @@ require "time"
8
8
  module Peddler
9
9
  module APIs
10
10
  class Replenishment20221107
11
- # A date-time interval in ISO 8601 format which is used to compute metrics. Only the date is required, but you
12
- # must pass the complete date and time value. For example, November 11, 2022 should be passed as
13
- # "2022-11-11T00:00:00Z". Note that only data for the trailing 2 years is supported.
11
+ # A date-time interval in ISO 8601 format used to compute metrics. Only the date is required, but you must pass
12
+ # the complete date and time value. For example, November 11, 2022 should be passed as "2022-11-11T00:00:00Z".
13
+ # Note that only data for the trailing 2 years is supported.
14
14
  #
15
- # **Note**: The `listOfferMetrics` operation only supports a time interval which covers a single unit of the
15
+ # **Note**: * The `listOfferMetrics` operation only supports a time interval which covers a single unit of the
16
16
  # aggregation frequency. For example, for a MONTH aggregation frequency, the duration of the interval between the
17
17
  # startDate and endDate can not be more than 1 month.
18
+ # * For the `getSellingPartnerMetrics` operation with DAY aggregation frequency, the time interval cannot exceed
19
+ # 31 days.
18
20
  TimeInterval = Structure.new do
19
21
  # @return [Time] When this object is used as a request parameter, the specified `endDate` is adjusted based on
20
22
  # the aggregation frequency.
21
23
  #
24
+ # * For `DAY` the metric is computed up to the specific day indicated by the `endDate`.
22
25
  # * For `WEEK` the metric is computed up to the last day of the week (Sunday, based on ISO 8601) that contains
23
26
  # the `endDate`.
24
- # * For `MONTH`, the metric is computed up to the last day that contains the `endDate`.
27
+ # * For `MONTH`, the metric is computed up to the last day of the month that contains the `endDate`.
25
28
  # * For `QUARTER` the metric is computed up to the last day of the quarter that contains the `endDate`.
26
29
  # * For `YEAR` the metric is computed up to the last day of the year that contains the `endDate`.
27
30
  # Note: The end date may be adjusted to a lower value based on the data available in our system.
@@ -30,7 +33,8 @@ module Peddler
30
33
  # @return [Time] When this object is used as a request parameter, the specified `startDate` is adjusted based on
31
34
  # the aggregation frequency.
32
35
  #
33
- # * For `WEEK` the metric is computed from the first day of the week (Sunday, based on ISO 8601) that contains
36
+ # * For `DAY` the metric is computed from the specific day indicated by the `startDate`.
37
+ # * For `WEEK` the metric is computed from the first day of the week (Monday, based on ISO 8601) that contains
34
38
  # the `startDate`.
35
39
  # * For `MONTH` the metric is computed from the first day of the month that contains the `startDate`.
36
40
  # * For `QUARTER` the metric is computed from the first day of the quarter that contains the `startDate`.
@@ -21,6 +21,9 @@ module Peddler
21
21
  # @return [String] The status of the item.
22
22
  attribute?(:item_status, String, from: "itemStatus")
23
23
 
24
+ # @return [Array<LinkedAsset>] A list of customer-owned assets on which the service must be performed.
25
+ attribute?(:linked_assets, [LinkedAsset], from: "linkedAssets")
26
+
24
27
  # @return [String] The Amazon-defined identifier for an order placed by the buyer in 3-7-7 format.
25
28
  attribute?(:order_id, String, from: "orderId")
26
29
 
@@ -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 ServicesV1
10
+ # Information about an asset linked to an associated item, such as vehicle information for Ship-to-Store orders.
11
+ LinkedAsset = Structure.new do
12
+ # @return [Hash] Additional attributes of the linked asset, such as vehicle make, model, year, and engine
13
+ # details.
14
+ attribute?(:additional_attributes, Hash, from: "additionalAttributes")
15
+
16
+ # @return [String] The name of the linked asset. For example: `2024 Polaris Slingshot SLR AutoDrive`.
17
+ attribute?(:asset_name, String, from: "assetName")
18
+
19
+ # @return [String] The type of the linked asset. For example: `VEHICLE`.
20
+ attribute?(:asset_type, String, from: "assetType")
21
+ end
22
+ end
23
+ end
24
+ end
@@ -32,6 +32,9 @@ module Peddler
32
32
  # buyer selected appointment windows when creating the order.
33
33
  attribute?(:preferred_appointment_times, [AppointmentTime], from: "preferredAppointmentTimes")
34
34
 
35
+ # @return [Array<String>] A list of associated product order IDs for the service job.
36
+ attribute?(:product_order_ids, [String], from: "productOrderIds")
37
+
35
38
  # @return [ScopeOfWork] The scope of work for the order.
36
39
  attribute?(:scope_of_work, ScopeOfWork, from: "scopeOfWork")
37
40
 
@@ -55,6 +58,9 @@ module Peddler
55
58
 
56
59
  # @return [String] The Amazon-defined identifier for the region scope.
57
60
  attribute?(:store_id, String, from: "storeId")
61
+
62
+ # @return [Array<String>] A list of associated product tracking IDs for the service job.
63
+ attribute?(:tracking_ids, [String], from: "trackingIds")
58
64
  end
59
65
  end
60
66
  end
@@ -57,6 +57,10 @@ module Peddler
57
57
  # @note This operation can make a static sandbox call.
58
58
  # @param service_order_ids [Array<String>] List of service order ids for the query you want to perform.Max values
59
59
  # supported 20.
60
+ # @param product_order_ids [Array<String>] A list of up to 20 associated product order IDs. You can use these IDs
61
+ # to query service jobs.
62
+ # @param tracking_ids [Array<String>] A list of up to 20 associated product tracking IDs. You can use these IDs to
63
+ # query service jobs.
60
64
  # @param service_job_status [Array<String>] A list of one or more job status by which to filter the list of jobs.
61
65
  # @param page_token [String] String returned in the response of your previous request.
62
66
  # @param page_size [Integer] A non-negative integer that indicates the maximum number of jobs to return in the
@@ -87,13 +91,15 @@ module Peddler
87
91
  # is 50.
88
92
  # @param rate_limit [Float] Requests per second
89
93
  # @return [Peddler::Response] The API response
90
- def get_service_jobs(marketplace_ids, service_order_ids: nil, service_job_status: nil, page_token: nil,
91
- page_size: 20, sort_field: nil, sort_order: nil, created_after: nil, created_before: nil,
92
- last_updated_after: nil, last_updated_before: nil, schedule_start_date: nil, schedule_end_date: nil, asins: nil,
93
- required_skills: nil, store_ids: nil, rate_limit: 10.0)
94
+ def get_service_jobs(marketplace_ids, service_order_ids: nil, product_order_ids: nil, tracking_ids: nil,
95
+ service_job_status: nil, page_token: nil, page_size: 20, sort_field: nil, sort_order: nil, created_after: nil,
96
+ created_before: nil, last_updated_after: nil, last_updated_before: nil, schedule_start_date: nil,
97
+ schedule_end_date: nil, asins: nil, required_skills: nil, store_ids: nil, rate_limit: 10.0)
94
98
  path = "/service/v1/serviceJobs"
95
99
  params = {
96
100
  "serviceOrderIds" => stringify_array(service_order_ids),
101
+ "productOrderIds" => stringify_array(product_order_ids),
102
+ "trackingIds" => stringify_array(tracking_ids),
97
103
  "serviceJobStatus" => stringify_array(service_job_status),
98
104
  "pageToken" => page_token,
99
105
  "pageSize" => page_size,
@@ -26,7 +26,7 @@ module Peddler
26
26
  # create an upload destination for an Aplus content document, the `{resource}` would be
27
27
  # `aplus/2020-11-01/contentDocuments` and the path would be
28
28
  # `/uploads/2020-11-01/uploadDestinations/aplus/2020-11-01/contentDocuments`.
29
- # @param content_type [String] The content type of the file you upload.
29
+ # @param content_type [String] The content type of the file you upload. This parameter is required for A+ content.
30
30
  # @param rate_limit [Float] Requests per second
31
31
  # @return [Peddler::Response] The API response
32
32
  def create_upload_destination_for_resource(marketplace_ids, content_md5, resource, content_type: nil,
@@ -9,20 +9,21 @@ module Peddler
9
9
  module OrderChange
10
10
  # The notification response schema that comprises the entire JSON document for ORDER_CHANGE notification.
11
11
  Notification = Structure.new do
12
- # @return [String] The time when this notification was published, in ISO-8601 date/time format.
12
+ # @return [String] The time when this notification was published, presented in ISO-8601 date/time format.
13
13
  attribute(:event_time, String, null: false, from: "EventTime")
14
14
 
15
15
  # @return [Hash] The notification metadata.
16
16
  attribute(:notification_metadata, Hash, null: false, from: "NotificationMetadata")
17
17
 
18
18
  # @return [String] The type of this notification, used to differentiate different notifications. Combined with
19
- # payload version, this controls the structure of the payload object.
19
+ # payload version controls the structure of payload object.
20
20
  attribute(:notification_type, String, null: false, from: "NotificationType")
21
21
 
22
22
  # @return [String] The notification version.
23
23
  attribute(:notification_version, String, null: false, from: "NotificationVersion")
24
24
 
25
- # @return [Payload] The payload for the ORDER_CHANGE notification.
25
+ # @return [Payload] The payload for this ORDER_CHANGE notification. It's unique for different event type and
26
+ # will provide more in-depth information about this notification.
26
27
  attribute(:payload, Payload, null: false, from: "Payload")
27
28
 
28
29
  # @return [String] The payload version of the notification.
@@ -18,8 +18,8 @@ module Peddler
18
18
  # @return [OrderChangeTrigger]
19
19
  attribute(:order_change_trigger, OrderChangeTrigger, null: false, from: "OrderChangeTrigger")
20
20
 
21
- # @return [String] The type of order change that caused the notification to be sent. Possible values are
22
- # BuyerRequestedChange and OrderStatusChange.
21
+ # @return [String] Change type of this notification. The possible values include BuyerRequestedChange,
22
+ # DeliveryTipChange, OrderStatusChange.
23
23
  attribute(:order_change_type, String, null: false, from: "OrderChangeType")
24
24
 
25
25
  # @return [String] The selling partner identifier.
@@ -7,13 +7,13 @@ require "structure"
7
7
  module Peddler
8
8
  module Notifications
9
9
  module OrderChange
10
- # Details about what caused this ORDER_CHANGE notification to be sent.
10
+ # Details about what triggered this ORDER_CHANGE notification.
11
11
  OrderChangeTrigger = Structure.new do
12
- # @return [String] The reason this ORDER_CHANGE notification was sent.
12
+ # @return [String] The reason for this ORDER_CHANGE notification.
13
13
  attribute(:change_reason, String, null: false, from: "ChangeReason")
14
14
 
15
- # @return [String] The time of the change that caused this notification, in ISO-8601 date/time format. Will be
16
- # null when there is no related timestamp.
15
+ # @return [String] The timestamp for the change that caused this notification, presented in ISO-8601 date/time
16
+ # format. It will be null when there is no related timestamp.
17
17
  attribute(:time_of_order_change, String, from: "TimeOfOrderChange")
18
18
  end
19
19
  end
@@ -15,24 +15,24 @@ module Peddler
15
15
  # @return [Integer] The number of items in the order.
16
16
  attribute(:quantity, Integer, null: false, from: "Quantity")
17
17
 
18
- # @return [String] The seller-specific SKU for an item.
18
+ # @return [String] The seller-specific SKU identifier for an item.
19
19
  attribute(:seller_sku, String, null: false, from: "SellerSKU")
20
20
 
21
- # @return [String] The unique identifier of the supply source. Will be null when there is no related
21
+ # @return [String] The unique identifier of the supply source. It will be null when there is no related
22
22
  # information.
23
23
  attribute(:supply_source_id, String, from: "SupplySourceId")
24
24
 
25
- # @return [:boolean] True when the buyer has requested cancelation.
25
+ # @return [:boolean] Information about whether or not a buyer requested cancellation. When true, the buyer has
26
+ # requested cancellation.
26
27
  attribute?(:buyer_requested_cancel, :boolean, from: "IsBuyerRequestedCancel")
27
28
 
28
- # @return [String] The start of the time period during which you have committed to fulfill the order.
29
+ # @return [String] The start of the time period within which you have committed to fulfill the order item.
29
30
  attribute?(:item_earliest_delivery_date, String, from: "ItemEarliestDeliveryDate")
30
31
 
31
- # @return [String] The end of the time period during which you have committed to fulfill the order.
32
+ # @return [String] The end of the time period within which you have committed to fulfill the order item.
32
33
  attribute?(:item_latest_delivery_date, String, from: "ItemLatestDeliveryDate")
33
34
 
34
- # @return [String] The current status of the order item. This field Will have a non-null value when items'
35
- # statuses are different.
35
+ # @return [String] The current status of the order item. Will display it when items' status are different.
36
36
  attribute?(:order_item_status, String, from: "OrderItemStatus")
37
37
 
38
38
  # @return [Integer] The number of items shipped.
@@ -7,7 +7,7 @@ require "structure"
7
7
  module Peddler
8
8
  module Notifications
9
9
  module OrderChange
10
- # Information about the order and order items that had the change.
10
+ # Information about order and order items that had the change.
11
11
  Summary = Structure.new do
12
12
  # @return [String] The destination postal code. It will be null when there is no related information.
13
13
  attribute(:destination_postal_code, String, from: "DestinationPostalCode")
@@ -19,7 +19,7 @@ module Peddler
19
19
  attribute(:marketplace_id, String, null: false, from: "MarketplaceId")
20
20
 
21
21
  # @return [Array<OrderItem>] Information about order items included in this order. For OrderItemLevel
22
- # notifications, one payload includes one item, while for OrderLevel notifications, one payload includes all
22
+ # notification, one payload include one item, while for OrderLevel notification, one payload include all
23
23
  # items.
24
24
  attribute(:order_items, [OrderItem], null: false, from: "OrderItems")
25
25
 
@@ -29,20 +29,20 @@ module Peddler
29
29
  # @return [String] The type of the order.
30
30
  attribute(:order_type, String, null: false, from: "OrderType")
31
31
 
32
- # @return [String] The purchase date of the order, in ISO-8601 date/time format. It will be null when there is
33
- # no related information.
32
+ # @return [String] The purchase date of the order, presented in ISO-8601 date/time format. It will be null when
33
+ # there is no related information.
34
34
  attribute(:purchase_date, String, from: "PurchaseDate")
35
35
 
36
- # @return [String] The end of the time period during which you must notify the seller of possible cancellation,
37
- # in ISO-8601 date/time format.
36
+ # @return [String] The end of the time period which you cancel notify for the order, presented in ISO-8601
37
+ # date/time format.
38
38
  attribute?(:cancel_notify_date, String, from: "CancelNotifyDate")
39
39
 
40
- # @return [String] The start of the time period during which you committed to fulfill the order, in ISO-8601
41
- # date/time format. Returned only for seller-fulfilled orders.
40
+ # @return [String] The start of the time period within which you have committed to fulfill the order, presented
41
+ # in ISO-8601 date/time format. Returned only for seller-fulfilled orders.
42
42
  attribute?(:earliest_delivery_date, String, from: "EarliestDeliveryDate")
43
43
 
44
- # @return [String] The start of the time period during which you committed to ship the order, in ISO-8601
45
- # date/time format.
44
+ # @return [String] The start of the time period within which you have committed to ship the order, presented in
45
+ # ISO-8601 date/time format.
46
46
  attribute?(:earliest_ship_date, String, from: "EarliestShipDate")
47
47
 
48
48
  # @return [String] The status of the Amazon Easy Ship order. This property is included only for Amazon Easy Ship
@@ -52,13 +52,13 @@ module Peddler
52
52
  # @return [String] The status of the electronic invoice.
53
53
  attribute?(:electronic_invoice_status, String, from: "ElectronicInvoiceStatus")
54
54
 
55
- # @return [String] The end of the time period during which you committed to fulfill the order, in ISO-8601
56
- # date/time format. Returned only for seller-fulfilled orders that do not have a PendingAvailability, Pending,
57
- # or Canceled status.
55
+ # @return [String] The end of the time period within which you have committed to fulfill the order, presented in
56
+ # ISO-8601 date/time format. Returned only for seller-fulfilled orders that do not have a PendingAvailability,
57
+ # Pending, or Canceled status.
58
58
  attribute?(:latest_delivery_date, String, from: "LatestDeliveryDate")
59
59
 
60
- # @return [String] The end of the time period during which you committed to ship the order, in ISO-8601
61
- # date/time format.
60
+ # @return [String] The end of the time period within which you have committed to ship the order, presented in
61
+ # ISO-8601 date/time format.
62
62
  attribute?(:latest_ship_date, String, from: "LatestShipDate")
63
63
 
64
64
  # @return [Integer] The number of items shipped.
@@ -67,10 +67,10 @@ module Peddler
67
67
  # @return [Integer] The number of items unshipped.
68
68
  attribute?(:number_of_items_unshipped, Integer, from: "NumberOfItemsUnshipped")
69
69
 
70
- # @return [Array<String>] The order programs in which this order participates.
70
+ # @return [Array<String>] The order programs, if any, in which this order participates.
71
71
  attribute?(:order_programs, [String], from: "OrderPrograms")
72
72
 
73
- # @return [Array<String>] The shipping programs in which this order participates.
73
+ # @return [Array<String>] The shipping programs, if any, in which this order participates.
74
74
  attribute?(:shipping_programs, [String], from: "ShippingPrograms")
75
75
  end
76
76
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Peddler
4
- VERSION = "5.4.0"
4
+ VERSION = "5.5.0"
5
5
  end
data/sig/peddler/api.rbs CHANGED
@@ -6,6 +6,8 @@ module Peddler
6
6
  class MustSandbox < StandardError
7
7
  end
8
8
 
9
+ TRANSIENT_STATUSES: Array[Integer]
10
+
9
11
  @access_token: String
10
12
  @endpoint: Endpoint
11
13
  @http: HTTP::Client