peddler 5.3.1 → 5.4.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/README.md +55 -11
  3. data/lib/peddler/api.rb +3 -3
  4. data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/address.rb +4 -1
  5. data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/distance.rb +20 -0
  6. data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/geocodes.rb +23 -0
  7. data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/handover_location.rb +23 -0
  8. data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/ship_label_metadata.rb +4 -0
  9. data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/shipment_info.rb +3 -0
  10. data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/shipping_options.rb +4 -0
  11. data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11.rb +1 -1
  12. data/lib/peddler/apis/feeds_2021_06_30.rb +8 -2
  13. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/amount.rb +2 -2
  14. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/delivery_document.rb +2 -2
  15. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/delivery_information.rb +2 -1
  16. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/delivery_preferences.rb +1 -1
  17. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/delivery_window.rb +3 -4
  18. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/drop_off_location.rb +9 -7
  19. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/feature_settings.rb +5 -1
  20. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/feature_sku.rb +1 -1
  21. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/fulfillment_order.rb +2 -2
  22. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/fulfillment_preview_shipment.rb +6 -6
  23. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/fulfillment_shipment_package.rb +3 -4
  24. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/get_feature_inventory_response.rb +1 -1
  25. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/get_feature_sku_result.rb +12 -3
  26. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/origin.rb +2 -1
  27. data/lib/peddler/apis/fulfillment_outbound_2020_07_01/tracking_event.rb +1 -2
  28. data/lib/peddler/apis/orders_2026_01_01/associated_order_item.rb +27 -0
  29. data/lib/peddler/apis/orders_2026_01_01/item_packing.rb +3 -0
  30. data/lib/peddler/apis/orders_2026_01_01/item_picking.rb +1 -1
  31. data/lib/peddler/apis/orders_2026_01_01/item_proceeds_detailed_breakdown.rb +1 -1
  32. data/lib/peddler/apis/orders_2026_01_01/item_tax.rb +20 -0
  33. data/lib/peddler/apis/orders_2026_01_01/item_tax_calculation_breakdown.rb +21 -0
  34. data/lib/peddler/apis/orders_2026_01_01/item_tax_collection.rb +24 -0
  35. data/lib/peddler/apis/orders_2026_01_01/order.rb +8 -1
  36. data/lib/peddler/apis/orders_2026_01_01/order_item.rb +7 -0
  37. data/lib/peddler/apis/orders_2026_01_01/order_payment.rb +17 -0
  38. data/lib/peddler/apis/orders_2026_01_01/order_tax.rb +20 -0
  39. data/lib/peddler/apis/orders_2026_01_01/order_tax_invoicing.rb +34 -0
  40. data/lib/peddler/apis/orders_2026_01_01/order_tax_registration.rb +39 -0
  41. data/lib/peddler/apis/orders_2026_01_01/package_status.rb +4 -3
  42. data/lib/peddler/apis/orders_2026_01_01/pagination.rb +5 -5
  43. data/lib/peddler/apis/orders_2026_01_01/payment_execution.rb +39 -0
  44. data/lib/peddler/apis/orders_2026_01_01/search_orders_response.rb +10 -11
  45. data/lib/peddler/apis/orders_2026_01_01/serial_number_requirement.rb +19 -0
  46. data/lib/peddler/apis/orders_2026_01_01/tax_registration_attribute.rb +22 -0
  47. data/lib/peddler/apis/orders_2026_01_01.rb +15 -13
  48. data/lib/peddler/apis/orders_v0/address.rb +3 -3
  49. data/lib/peddler/apis/orders_v0/address_extended_fields.rb +9 -2
  50. data/lib/peddler/apis/orders_v0/buyer_info.rb +3 -0
  51. data/lib/peddler/apis/orders_v0/geo_coordinates.rb +20 -0
  52. data/lib/peddler/apis/orders_v0/order_buyer_info.rb +3 -0
  53. data/lib/peddler/apis/orders_v0.rb +6 -2
  54. data/lib/peddler/apis/product_pricing_2022_05_01/competitive_summary_response_body.rb +3 -0
  55. data/lib/peddler/apis/product_pricing_2022_05_01/item.rb +17 -0
  56. data/lib/peddler/apis/product_pricing_2022_05_01/points.rb +1 -1
  57. data/lib/peddler/apis/product_pricing_2022_05_01/similar_items.rb +17 -0
  58. data/lib/peddler/apis/replenishment_2022_11_07/deliveries_condition.rb +22 -0
  59. data/lib/peddler/apis/replenishment_2022_11_07/forecast_deliveries.rb +26 -0
  60. data/lib/peddler/apis/replenishment_2022_11_07/get_selling_partner_metrics_request.rb +3 -3
  61. data/lib/peddler/apis/replenishment_2022_11_07/get_selling_partner_metrics_response_metric.rb +5 -1
  62. data/lib/peddler/apis/replenishment_2022_11_07/list_offer_metrics_request_filters.rb +1 -1
  63. data/lib/peddler/apis/replenishment_2022_11_07/list_offer_metrics_response_offer.rb +30 -23
  64. data/lib/peddler/apis/replenishment_2022_11_07/list_offers_request_filters.rb +7 -3
  65. data/lib/peddler/apis/replenishment_2022_11_07/list_offers_response_offer.rb +27 -1
  66. data/lib/peddler/apis/replenishment_2022_11_07/offer_program_configuration.rb +1 -1
  67. data/lib/peddler/apis/replenishment_2022_11_07/time_interval.rb +1 -1
  68. data/lib/peddler/apis/reports_2021_06_30.rb +8 -2
  69. data/lib/peddler/apis/seller_wallet_2024_03_01/balance.rb +6 -6
  70. data/lib/peddler/apis/seller_wallet_2024_03_01/balance_listing.rb +2 -2
  71. data/lib/peddler/apis/seller_wallet_2024_03_01/bank_account.rb +5 -5
  72. data/lib/peddler/apis/seller_wallet_2024_03_01/bank_account_listing.rb +2 -2
  73. data/lib/peddler/apis/seller_wallet_2024_03_01/delete_transfer_schedule.rb +3 -2
  74. data/lib/peddler/apis/seller_wallet_2024_03_01/fee.rb +4 -7
  75. data/lib/peddler/apis/seller_wallet_2024_03_01/fx_rate_details.rb +6 -6
  76. data/lib/peddler/apis/seller_wallet_2024_03_01/payee_contact_information.rb +5 -5
  77. data/lib/peddler/apis/seller_wallet_2024_03_01/payment_preference.rb +2 -3
  78. data/lib/peddler/apis/seller_wallet_2024_03_01/schedule_expression.rb +4 -5
  79. data/lib/peddler/apis/seller_wallet_2024_03_01/transaction.rb +13 -14
  80. data/lib/peddler/apis/seller_wallet_2024_03_01/transaction_account.rb +8 -8
  81. data/lib/peddler/apis/seller_wallet_2024_03_01/transaction_initiation_request.rb +8 -7
  82. data/lib/peddler/apis/seller_wallet_2024_03_01/transaction_instrument_details.rb +6 -7
  83. data/lib/peddler/apis/seller_wallet_2024_03_01/transaction_listing.rb +6 -5
  84. data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_rate_preview.rb +4 -3
  85. data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_schedule.rb +11 -12
  86. data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_schedule_failures.rb +3 -3
  87. data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_schedule_information.rb +5 -6
  88. data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_schedule_listing.rb +6 -5
  89. data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_schedule_request.rb +11 -13
  90. data/lib/peddler/apis/seller_wallet_2024_03_01.rb +30 -28
  91. data/lib/peddler/apis/services_v1/money_amount.rb +20 -0
  92. data/lib/peddler/apis/services_v1/payment.rb +20 -0
  93. data/lib/peddler/apis/services_v1/service_job.rb +3 -0
  94. data/lib/peddler/apis/services_v1.rb +1 -1
  95. data/lib/peddler/apis/shipment_invoicing_v0/payment_information.rb +6 -6
  96. data/lib/peddler/apis/shipment_invoicing_v0/payment_information_list.rb +1 -1
  97. data/lib/peddler/data_kiosk/economics20240315.json +6 -6
  98. data/lib/peddler/data_kiosk/sales_and_traffic20231115.json +6 -6
  99. data/lib/peddler/data_kiosk/sales_and_traffic20240424.json +6 -6
  100. data/lib/peddler/data_kiosk/vendor_analytics20240930.json +6 -6
  101. data/lib/peddler/errors.rb +1 -0
  102. data/lib/peddler/version.rb +1 -1
  103. data/sig/peddler/api.rbs +1 -1
  104. data/sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs +85 -28
  105. data/sig/peddler/apis/feeds_2021_06_30.rbs +1 -1
  106. data/sig/peddler/apis/fulfillment_outbound_2020_07_01.rbs +11 -8
  107. data/sig/peddler/apis/orders_2026_01_01.rbs +220 -23
  108. data/sig/peddler/apis/orders_v0.rbs +42 -22
  109. data/sig/peddler/apis/product_pricing_2022_05_01.rbs +40 -7
  110. data/sig/peddler/apis/replenishment_2022_11_07.rbs +76 -28
  111. data/sig/peddler/apis/reports_2021_06_30.rbs +1 -1
  112. data/sig/peddler/apis/services_v1.rbs +42 -7
  113. data/sig/peddler/errors.rbs +3 -0
  114. metadata +32 -5
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is generated. Do not edit.
4
+
5
+ require "structure"
6
+
7
+ module Peddler
8
+ module APIs
9
+ class Replenishment20221107
10
+ # An object which contains the projected subscriber demand for the offer over different time horizons.
11
+ ForecastDeliveries = Structure.new do
12
+ # @return [Integer] The projected number of subscriber deliveries in the next 15 days.
13
+ attribute?(:next15_days_deliveries, Integer, from: "next15DaysDeliveries")
14
+
15
+ # @return [Integer] The projected number of subscriber deliveries in the next 30 days.
16
+ attribute?(:next30_days_deliveries, Integer, from: "next30DaysDeliveries")
17
+
18
+ # @return [Integer] The projected number of subscriber deliveries in the next 60 days.
19
+ attribute?(:next60_days_deliveries, Integer, from: "next60DaysDeliveries")
20
+
21
+ # @return [Integer] The projected number of subscriber deliveries in the next 90 days.
22
+ attribute?(:next90_days_deliveries, Integer, from: "next90DaysDeliveries")
23
+ end
24
+ end
25
+ end
26
+ end
@@ -11,7 +11,7 @@ module Peddler
11
11
  # The request body for the `getSellingPartnerMetrics` operation.
12
12
  GetSellingPartnerMetricsRequest = Structure.new do
13
13
  # @return [String] The marketplace identifier. The supported marketplaces for both sellers and vendors are US,
14
- # CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL.
14
+ # CA, ES, UK, FR, IT, IN, DE, and JP. The supported marketplaces for vendors only are BR, AU, MX, AE, and NL.
15
15
  # Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the
16
16
  # identifier for the marketplace.
17
17
  attribute(:marketplace_id, String, null: false, from: "marketplaceId")
@@ -28,8 +28,8 @@ module Peddler
28
28
  # @return [String]
29
29
  attribute?(:aggregation_frequency, String, from: "aggregationFrequency")
30
30
 
31
- # @return [Array<Metric>] The list of metrics requested. If no metric value is provided, data for all of the
32
- # metrics will be returned.
31
+ # @return [Array<Metric>] The list of metrics requested. If no metric value is provided, data for all metrics
32
+ # will be returned.
33
33
  attribute?(:metrics, Array)
34
34
  end
35
35
  end
@@ -58,7 +58,7 @@ module Peddler
58
58
  attribute?(:non_subscriber_average_revenue, Float, from: "nonSubscriberAverageRevenue")
59
59
 
60
60
  # @return [Float] Total revenue from customers who have made purchases from your catalog but have never
61
- # subscribed to any products
61
+ # subscribed to any products.
62
62
  attribute?(:non_subscriber_life_time_value_from_otp, Float, from: "nonSubscriberLifeTimeValueFromOTP")
63
63
 
64
64
  # @return [Float] The percentage of items that were not shipped out of the total shipped units over a period of
@@ -77,6 +77,10 @@ module Peddler
77
77
  # 12 months. Applicable to `PERFORMANCE` `timePeriodType`.
78
78
  attribute?(:revenue_from_subscriptions_with_multiple_deliveries, Float, from: "revenueFromSubscriptionsWithMultipleDeliveries")
79
79
 
80
+ # @return [Float] The percentage of total program revenue out of total product revenue over a period of time.
81
+ # Applicable to `PERFORMANCE` `timePeriodType`.
82
+ attribute?(:revenue_penetration, Float, from: "revenuePenetration")
83
+
80
84
  # @return [Float] The percentage of subscription revenue generated by offers with 0% seller-funded discount over
81
85
  # the last 12 months. Applicable to `PERFORMANCE` `timePeriodType`.
82
86
  attribute?(:revenue_penetration_for0_percent_seller_funding, Float, from: "revenuePenetrationFor0PercentSellerFunding")
@@ -12,7 +12,7 @@ module Peddler
12
12
  # an array, the result must match at least one element in the provided 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
- # CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL.
15
+ # CA, ES, UK, FR, IT, IN, DE, and JP. The supported marketplaces for vendors only are BR, AU, MX, AE, and NL.
16
16
  # Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the
17
17
  # identifier for the marketplace.
18
18
  attribute(:marketplace_id, String, null: false, from: "marketplaceId")
@@ -10,68 +10,75 @@ module Peddler
10
10
  class Replenishment20221107
11
11
  # An object which contains offer metrics.
12
12
  ListOfferMetricsResponseOffer = Structure.new do
13
- # @return [Float] The number of active subscriptions present at the end of the period. Applicable to `FORECAST`
14
- # `timePeriodType`.
13
+ # @return [Float] The number of active subscriptions present at the end of the period. Applicable to
14
+ # `PERFORMANCE` `timePeriodType`.
15
15
  attribute?(:active_subscriptions, Float, from: "activeSubscriptions")
16
16
 
17
17
  # @return [String] The Amazon Standard Identification Number (ASIN).
18
18
  attribute?(:asin, String)
19
19
 
20
20
  # @return [Float] The percentage of revenue from ASINs with coupons out of total revenue from all ASINs.
21
- # Applicable to `FORECAST` `timePeriodType`.
21
+ # Applicable to `PERFORMANCE` `timePeriodType`.
22
22
  attribute?(:coupons_revenue_penetration, Float, from: "couponsRevenuePenetration")
23
23
 
24
24
  # @return [String] The currency code in ISO 4217 format.
25
25
  attribute?(:currency_code, String, from: "currencyCode")
26
26
 
27
+ # @return [String] The fulfillment channel type of an offer. This property is only supported for sellers and not
28
+ # for vendors.
29
+ attribute?(:fulfillment_channel_type, String, from: "fulfillmentChannelType")
30
+
27
31
  # @return [Float] The revenue that would have been generated had there not been out of stock. Applicable to
28
- # `FORECAST` `timePeriodType`.
32
+ # `PERFORMANCE` `timePeriodType`.
29
33
  attribute?(:lost_revenue_due_to_oos, Float, from: "lostRevenueDueToOOS")
30
34
 
31
- # @return [Float] The forecasted shipped subscription units for the next 30 days. Applicable to FORECAST
32
- # timePeriodType.
35
+ # @return [Float] The forecasted shipped subscription units for the next 30 days. Applicable to `FORECAST`
36
+ # `timePeriodType`.
33
37
  attribute?(:next30_day_shipped_subscription_units, Float, from: "next30DayShippedSubscriptionUnits")
34
38
 
35
- # @return [Float] The forecasted total subscription revenue for the next 30 days. Applicable to FORECAST
36
- # timePeriodType.
39
+ # @return [Float] The forecasted total subscription revenue for the next 30 days. Applicable to `FORECAST`
40
+ # `timePeriodType`.
37
41
  attribute?(:next30_day_total_subscriptions_revenue, Float, from: "next30DayTotalSubscriptionsRevenue")
38
42
 
39
- # @return [Float] The forecasted shipped subscription units for the next 60 days. Applicable to FORECAST
40
- # timePeriodType.
43
+ # @return [Float] The forecasted shipped subscription units for the next 60 days. Applicable to `FORECAST`
44
+ # `timePeriodType`.
41
45
  attribute?(:next60_day_shipped_subscription_units, Float, from: "next60DayShippedSubscriptionUnits")
42
46
 
43
- # @return [Float] The forecasted total subscription revenue for the next 60 days. Applicable to FORECAST
44
- # timePeriodType.
47
+ # @return [Float] The forecasted total subscription revenue for the next 60 days. Applicable to `FORECAST`
48
+ # `timePeriodType`.
45
49
  attribute?(:next60_day_total_subscriptions_revenue, Float, from: "next60DayTotalSubscriptionsRevenue")
46
50
 
47
- # @return [Float] The forecasted shipped subscription units for the next 90 days. Applicable to FORECAST
48
- # timePeriodType.
51
+ # @return [Float] The forecasted shipped subscription units for the next 90 days. Applicable to `FORECAST`
52
+ # `timePeriodType`.
49
53
  attribute?(:next90_day_shipped_subscription_units, Float, from: "next90DayShippedSubscriptionUnits")
50
54
 
51
- # @return [Float] The forecasted total subscription revenue for the next 90 days. Applicable to FORECAST
52
- # timePeriodType.
55
+ # @return [Float] The forecasted total subscription revenue for the next 90 days. Applicable to `FORECAST`
56
+ # `timePeriodType`.
53
57
  attribute?(:next90_day_total_subscriptions_revenue, Float, from: "next90DayTotalSubscriptionsRevenue")
54
58
 
55
59
  # @return [Float] The percentage of items that were not shipped out of the total shipped units over a period of
56
- # time due to being out of stock. Applicable to `FORECAST` `timePeriodType`.
60
+ # time due to being out of stock. Applicable to `PERFORMANCE` `timePeriodType`.
57
61
  attribute?(:not_delivered_due_to_oos, Float, from: "notDeliveredDueToOOS")
58
62
 
59
- # @return [Float] The percentage of total program revenue out of total product revenue. Applicable to `FORECAST`
60
- # `timePeriodType`.
63
+ # @return [Float] The percentage of total program revenue out of total product revenue. Applicable to
64
+ # `PERFORMANCE` `timePeriodType`.
61
65
  attribute?(:revenue_penetration, Float, from: "revenuePenetration")
62
66
 
63
- # @return [Float] The percentage of new subscriptions acquired through coupons. Applicable to `FORECAST`
67
+ # @return [Float] The percentage of new subscriptions acquired through coupons. Applicable to `PERFORMANCE`
64
68
  # `timePeriodType`.
65
69
  attribute?(:share_of_coupon_subscriptions, Float, from: "shareOfCouponSubscriptions")
66
70
 
67
- # @return [Float] The number of units shipped to the subscribers over a period of time. Applicable to `FORECAST`
68
- # `timePeriodType`.
71
+ # @return [Float] The number of units shipped to the subscribers over a period of time. Applicable to
72
+ # `PERFORMANCE` `timePeriodType`.
69
73
  attribute?(:shipped_subscription_units, Float, from: "shippedSubscriptionUnits")
70
74
 
75
+ # @return [String] The SKU. This property is only supported for sellers and not for vendors.
76
+ attribute?(:sku, String)
77
+
71
78
  # @return [TimeInterval] A time interval used to compute metrics.
72
79
  attribute?(:time_interval, TimeInterval, from: "timeInterval")
73
80
 
74
- # @return [Float] The revenue generated from subscriptions over a period of time. Applicable to `FORECAST`
81
+ # @return [Float] The revenue generated from subscriptions over a period of time. Applicable to `PERFORMANCE`
75
82
  # `timePeriodType`.
76
83
  attribute?(:total_subscriptions_revenue, Float, from: "totalSubscriptionsRevenue")
77
84
  end
@@ -7,11 +7,11 @@ 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 of the provided parameters. For any parameter
11
- # that is 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 any parameter that is
11
+ # an array, the result must match at least one element in the provided 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
- # CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL.
14
+ # CA, ES, UK, FR, IT, IN, DE, and JP. The supported marketplaces for vendors only are BR, AU, MX, AE, and NL.
15
15
  # Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the
16
16
  # identifier for the marketplace.
17
17
  attribute(:marketplace_id, String, null: false, from: "marketplaceId")
@@ -22,6 +22,10 @@ module Peddler
22
22
  # @return [Array<String>] A list of Amazon Standard Identification Numbers (ASINs).
23
23
  attribute?(:asins, [String])
24
24
 
25
+ # @return [Array<String>] A list of delivery condition types to filter the results by. Results are filtered to
26
+ # only include offers with the specified delivery conditions.
27
+ attribute?(:deliveries_conditions, [String], from: "deliveriesConditions")
28
+
25
29
  # @return [Array<EligibilityStatus>] A list of eligibilities associated with an offer.
26
30
  attribute?(:eligibilities, Array)
27
31
 
@@ -12,11 +12,25 @@ module Peddler
12
12
  # @return [String] The Amazon Standard Identification Number (ASIN).
13
13
  attribute?(:asin, String)
14
14
 
15
+ # @return [Array<DeliveriesCondition>] A list of delivery conditions for the offer, indicating the health of
16
+ # upcoming deliveries. Each condition describes the quantity of upcoming deliveries associated with a
17
+ # particular delivery condition type.
18
+ attribute?(:deliveries_conditions, [DeliveriesCondition], from: "deliveriesConditions")
19
+
15
20
  # @return [String] The offer eligibility status.
16
21
  attribute?(:eligibility, String)
17
22
 
23
+ # @return [ForecastDeliveries] The projected subscriber demand for the offer over different time horizons.
24
+ attribute?(:forecast_deliveries, ForecastDeliveries, from: "forecastDeliveries")
25
+
26
+ # @return [String] The fulfillment network identifier type for the offer, indicating how the offer is fulfilled.
27
+ attribute?(:fulfillment_network_id_type, String, from: "fulfillmentNetworkIDType")
28
+
29
+ # @return [Integer] The available inventory count for the offer.
30
+ attribute?(:inventory, Integer)
31
+
18
32
  # @return [String] The marketplace identifier. The supported marketplaces for both sellers and vendors are US,
19
- # CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL.
33
+ # CA, ES, UK, FR, IT, IN, DE, and JP. The supported marketplaces for vendors only are BR, AU, MX, AE, and NL.
20
34
  # Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the
21
35
  # identifier for the marketplace.
22
36
  attribute?(:marketplace_id, String, from: "marketplaceId")
@@ -24,12 +38,24 @@ module Peddler
24
38
  # @return [OfferProgramConfiguration]
25
39
  attribute?(:offer_program_configuration, OfferProgramConfiguration, from: "offerProgramConfiguration")
26
40
 
41
+ # @return [Float] The current price of the offer. This is the listed price amount for the item.
42
+ attribute?(:price, Float)
43
+
44
+ # @return [String] The currency code in ISO 4217 format for the price. For example, `USD` for US dollars.
45
+ attribute?(:price_currency_code, String, from: "priceCurrencyCode")
46
+
27
47
  # @return [String] The replenishment program for the offer.
28
48
  attribute?(:program_type, String, from: "programType")
29
49
 
30
50
  # @return [String] The SKU. This property is only supported for sellers and not for vendors.
31
51
  attribute?(:sku, String)
32
52
 
53
+ # @return [String] The stock risk level of the offer, indicating the risk of the offer going out of stock.
54
+ attribute?(:stock_risk, String, from: "stockRisk")
55
+
56
+ # @return [Integer] The number of active subscriptions for the offer.
57
+ attribute?(:subscriptions, Integer)
58
+
33
59
  # @return [Array<String>] A list of vendor codes associated with the offer.
34
60
  attribute?(:vendor_codes, [String], from: "vendorCodes")
35
61
  end
@@ -10,7 +10,7 @@ module Peddler
10
10
  # The offer program configuration contains a set of program properties for an offer.
11
11
  OfferProgramConfiguration = Structure.new do
12
12
  # @return [String] Determines whether the offer was automatically or manually enrolled in the program. This
13
- # property is only supported for sellers and not vendors.
13
+ # property is only supported for sellers, not for vendors.
14
14
  attribute?(:enrollment_method, String, from: "enrollmentMethod")
15
15
 
16
16
  # @return [OfferProgramConfigurationPreferences] An object which contains the preferences applied to the offer.
@@ -10,7 +10,7 @@ module Peddler
10
10
  class Replenishment20221107
11
11
  # A date-time interval in ISO 8601 format which is used to compute metrics. Only the date is required, but you
12
12
  # must pass the complete date and time value. For example, November 11, 2022 should be passed as
13
- # "2022-11-07T00:00:00Z". Note that only data for the trailing 2 years is supported.
13
+ # "2022-11-11T00:00:00Z". Note that only data for the trailing 2 years is supported.
14
14
  #
15
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
@@ -147,12 +147,18 @@ module Peddler
147
147
  #
148
148
  # @note This operation can make a static sandbox call.
149
149
  # @param report_document_id [String] The identifier for the report document.
150
+ # @param enable_content_encoding_url_header [Boolean] When `true`, the Content-Encoding header on the returned URL
151
+ # is set to `gzip` instead of the default `identity` when `compressionAlgorithm` is `GZIP`. This allows
152
+ # automatic decompression by HTTP clients.
150
153
  # @param rate_limit [Float] Requests per second
151
154
  # @return [Peddler::Response] The API response
152
- def get_report_document(report_document_id, rate_limit: 0.0167)
155
+ def get_report_document(report_document_id, enable_content_encoding_url_header: nil, rate_limit: 0.0167)
153
156
  path = "/reports/2021-06-30/documents/#{percent_encode(report_document_id)}"
157
+ params = {
158
+ "enableContentEncodingUrlHeader" => enable_content_encoding_url_header,
159
+ }.compact
154
160
  parser = -> { ReportDocument }
155
- get(path, rate_limit:, parser:)
161
+ get(path, params:, rate_limit:, parser:)
156
162
  end
157
163
  end
158
164
  end
@@ -8,21 +8,21 @@ require "time"
8
8
  module Peddler
9
9
  module APIs
10
10
  class SellerWallet20240301
11
- # Specifies the balance amount in the Amazon SW bank account
11
+ # The balance amount in the Amazon Seller Wallet bank account.
12
12
  Balance = Structure.new do
13
- # @return [String] The unique identifier provided by Amazon to identify the account
13
+ # @return [String] The unique identifier provided by Amazon to identify the account.
14
14
  attribute(:account_id, String, null: false, from: "accountId")
15
15
 
16
- # @return [Float] The balance amount in number format
16
+ # @return [Float] The balance amount in number format.
17
17
  attribute(:balance_amount, Float, null: false, from: "balanceAmount")
18
18
 
19
- # @return [String] The Amazon SW bank account currency code in ISO 4217 format
19
+ # @return [String] The Amazon Seller Wallet bank account currency code in ISO 4217 format.
20
20
  attribute(:balance_currency, String, null: false, from: "balanceCurrency")
21
21
 
22
- # @return [Time] The last update date on the account balance
22
+ # @return [Time] The date of the most recent account balance update.
23
23
  attribute(:last_update_date, Time, null: false, from: "lastUpdateDate")
24
24
 
25
- # @return [String] Type of the balance
25
+ # @return [String] The type of balance.
26
26
  attribute?(:balance_type, String, from: "balanceType")
27
27
  end
28
28
  end
@@ -7,9 +7,9 @@ require "structure"
7
7
  module Peddler
8
8
  module APIs
9
9
  class SellerWallet20240301
10
- # Struct that holds list of balances on the seller account.
10
+ # A list of balances in the seller account.
11
11
  BalanceListing = Structure.new do
12
- # @return [Array<Balance>] Collection that holds list of balances on the account
12
+ # @return [Array<Balance>] A list of balances in the seller account.
13
13
  attribute?(:balances, [Balance])
14
14
  end
15
15
  end
@@ -10,14 +10,14 @@ module Peddler
10
10
  # Details of an Amazon Seller Wallet bank account. This account is used to hold the money that a Seller Wallet
11
11
  # customer earns by selling items.
12
12
  BankAccount = Structure.new do
13
- # @return [String] The two digit country code, in ISO 3166 format.
13
+ # @return [String] The two-digit country code in ISO 3166 format.
14
14
  attribute(:account_country_code, String, null: false, from: "accountCountryCode")
15
15
 
16
- # @return [String] BankAccount currency code in ISO 4217 format
16
+ # @return [String] Bank account currency code in ISO 4217 format.
17
17
  attribute(:account_currency, String, null: false, from: "accountCurrency")
18
18
 
19
- # @return [String] Last 3 digit of the bank account number, for all Amazon Seller Wallet account the value will
20
- # be three consecutive 0's
19
+ # @return [String] The last 3 digit of the bank account number. This value is three consecutive zeros for Amazon
20
+ # Seller Wallet accounts.
21
21
  attribute(:bank_account_number_tail, String, null: false, from: "bankAccountNumberTail")
22
22
 
23
23
  # @return [String] Type of ownership of the bank account. This value is `SELF` for Amazon Seller Wallet
@@ -35,7 +35,7 @@ module Peddler
35
35
  # is required.
36
36
  attribute?(:account_id, String, from: "accountId")
37
37
 
38
- # @return [String] Bank account holder compliance status
38
+ # @return [String] The compliance status of the bank account holder.
39
39
  attribute?(:bank_account_holder_status, String, from: "bankAccountHolderStatus")
40
40
 
41
41
  # @return [String] The format in which the bank account number is provided for `THIRD_PARTY` transaction
@@ -7,9 +7,9 @@ require "structure"
7
7
  module Peddler
8
8
  module APIs
9
9
  class SellerWallet20240301
10
- # Struct that holds collection of accounts.
10
+ # A list of bank accounts.
11
11
  BankAccountListing = Structure.new do
12
- # @return [Array<BankAccount>] Collection that holds BankAccount
12
+ # @return [Array<BankAccount>] A list of bank accounts.
13
13
  attribute(:accounts, [BankAccount], null: false)
14
14
  end
15
15
  end
@@ -7,9 +7,10 @@ require "structure"
7
7
  module Peddler
8
8
  module APIs
9
9
  class SellerWallet20240301
10
- # Response returned when the schedule transfer's delete request is successful.
10
+ # The response returned when the schedule transfer's delete request is successful.
11
11
  DeleteTransferSchedule = Structure.new do
12
- # @return [String] A success code that specifies the delete operation was successful. eg:HTTP 200.
12
+ # @return [String] A success code that specifies that the delete operation was successful. For example, HTTP
13
+ # 200.
13
14
  attribute(:code, String, null: false)
14
15
 
15
16
  # @return [String] A message that describes the success condition of the delete schedule transaction.
@@ -7,21 +7,18 @@ require "structure"
7
7
  module Peddler
8
8
  module APIs
9
9
  class SellerWallet20240301
10
- # If the fees is in baseAmount (sourceAccount) currency, effectiveRate = (baseAmount -
11
- # sum(fees.feeAmount.currencyAmount)) * baseRate) / baseAmount. If the fees is in transferAmount
12
- # (destinationAccount) currency, effectiveRate = (( baseAmount * baseRate ) - sum(fees.feeAmount.currencyAmount ))
13
- # / baseAmount
10
+ # Details of the fee.
14
11
  Fee = Structure.new do
15
- # @return [Money] Displays actual value of the fee in numeric format.
12
+ # @return [Money] The actual value of the fee in numeric format.
16
13
  attribute(:fee_amount, Money, null: false, from: "feeAmount")
17
14
 
18
- # @return [String] Unique identifier assigned to the Fee.
15
+ # @return [String] The unique identifier assigned to the fee.
19
16
  attribute(:fee_id, String, null: false, from: "feeId")
20
17
 
21
18
  # @return [String] The value of the fee in percentage format.
22
19
  attribute(:fee_rate_value, String, null: false, from: "feeRateValue")
23
20
 
24
- # @return [String] Displays type of the Fee.
21
+ # @return [String] The type of the fee.
25
22
  attribute(:fee_type, String, null: false, from: "feeType")
26
23
  end
27
24
  end
@@ -7,19 +7,19 @@ require "structure"
7
7
  module Peddler
8
8
  module APIs
9
9
  class SellerWallet20240301
10
- # Foreign exchange rate details displayed when transfer preview is requested.
10
+ # Foreign exchange rate details.
11
11
  FxRateDetails = Structure.new do
12
- # @return [Float] This is the rate that will be market foreign exchange rate. For example: 1USD -> 86.0 INR.
12
+ # @return [Float] The market foreign exchange rate.
13
13
  attribute(:base_rate, Float, null: false, from: "baseRate")
14
14
 
15
- # @return [Float] Displays the foreign exchange rate which will be all rates and fees baked in (i.e; markup
16
- # fees), example: market fx rate and international transaction fee.
15
+ # @return [Float] The total rate applied to the money transfer. This includes all exchange rates, markups, and
16
+ # fees.
17
17
  attribute(:effective_fx_rate, Float, null: false, from: "effectiveFxRate")
18
18
 
19
- # @return [String] Unique identifier assigned to the fees/foreign exchange Rate of a transaction.
19
+ # @return [String] The unique identifier assigned to the fees / foreign exchange rate of a transaction.
20
20
  attribute(:fx_rate_id, String, null: false, from: "fxRateId")
21
21
 
22
- # @return [String] Rate Direction can refer to the way final amount is calculated.
22
+ # @return [String] Whether the customer is buying or selling the source currency.
23
23
  attribute(:rate_direction, String, null: false, from: "rateDirection")
24
24
  end
25
25
  end
@@ -10,10 +10,10 @@ module Peddler
10
10
  # The contact information of the payee. This field is required when the request `bankAccountOwnershipType` is
11
11
  # `THIRD_PARTY`. The contact information is used for payee verification and registration purposes.
12
12
  PayeeContactInformation = Structure.new do
13
- # @return [String] Address Line 1 of the public address
13
+ # @return [String] Address Line 1 of the public address.
14
14
  attribute(:address_line1, String, null: false, from: "addressLine1")
15
15
 
16
- # @return [String] City name of the public address
16
+ # @return [String] City name of the public address.
17
17
  attribute(:city, String, null: false)
18
18
 
19
19
  # @return [String] The two digit country code, in ISO 3166 format.
@@ -34,16 +34,16 @@ module Peddler
34
34
  # @return [String] Valid phone number of the payee.
35
35
  attribute(:phone_number, String, null: false, from: "phoneNumber")
36
36
 
37
- # @return [String] Postal code of the public address
37
+ # @return [String] Postal code of the public address.
38
38
  attribute(:postal_code, String, null: false, from: "postalCode")
39
39
 
40
40
  # @return [String] State name of the public address. This is the state or region for China-based addresses.
41
41
  attribute(:state, String, null: false)
42
42
 
43
- # @return [String] Address Line 2 of the public address
43
+ # @return [String] Address Line 2 of the public address.
44
44
  attribute?(:address_line2, String, from: "addressLine2")
45
45
 
46
- # @return [String] Country name of the public address
46
+ # @return [String] Country name of the public address.
47
47
  attribute?(:country, String)
48
48
 
49
49
  # @return [String] Middle name of the payee. There is a 50 character limit.
@@ -7,10 +7,9 @@ require "structure"
7
7
  module Peddler
8
8
  module APIs
9
9
  class SellerWallet20240301
10
- # Payment preference type in which transfer is being scheduled
10
+ # The type of payment preference in which the transfer is being scheduled.
11
11
  PaymentPreference = Structure.new do
12
- # @return [String] Specifies the preferred payment type for the scheduled transaction eg:PERCENTAGE of certain
13
- # total amount in account
12
+ # @return [String] The preferred payment type for the scheduled transaction. Can be `PERCENTAGE` or `AMOUNT`.
14
13
  attribute(:payment_preference_payment_type, String, null: false, from: "paymentPreferencePaymentType")
15
14
 
16
15
  # @return [Float] The value of the payment preference.
@@ -7,14 +7,13 @@ require "structure"
7
7
  module Peddler
8
8
  module APIs
9
9
  class SellerWallet20240301
10
- # Parameters containing information of the expression that defines when the schedule runs. The following formats
11
- # are supported.
10
+ # The configuration of the schedule.
12
11
  ScheduleExpression = Structure.new do
13
- # @return [String] Field to specify type of the scheduled transfer
12
+ # @return [String] The type of the scheduled transfer.
14
13
  attribute(:schedule_expression_type, String, null: false, from: "scheduleExpressionType")
15
14
 
16
- # @return [String] Field to specify recurrence of the scheduled transfer. Recurring frequency is mandatory if
17
- # scheduleExpressionType is set as RECURRING otherwise it should be empty field.
15
+ # @return [String] How often the scheduled transfer happens. This field is required if `scheduleExpressionType`
16
+ # is `RECURRING`; otherwise it should be empty.
18
17
  attribute?(:recurring_frequency, String, from: "recurringFrequency")
19
18
  end
20
19
  end
@@ -14,20 +14,20 @@ module Peddler
14
14
  # debited.
15
15
  attribute(:account_id, String, null: false, from: "accountId")
16
16
 
17
- # @return [Time] The last update date on the transaction
17
+ # @return [Time] The date of the most recent account balance update.
18
18
  attribute(:last_update_date, Time, null: false, from: "lastUpdateDate")
19
19
 
20
20
  # @return [String] A description of the transaction that the requester provides when they initiate the
21
21
  # transaction.
22
22
  attribute(:transaction_description, String, null: false, from: "transactionDescription")
23
23
 
24
- # @return [TransactionAccount] Destination bank account details in the transaction
24
+ # @return [TransactionAccount] The destination bank account details in the transaction.
25
25
  attribute(:transaction_destination_account, TransactionAccount, null: false, from: "transactionDestinationAccount")
26
26
 
27
- # @return [String] The unique identifier provided by Amazon to the transaction
27
+ # @return [String] The unique identifier provided by Amazon to the transaction.
28
28
  attribute(:transaction_id, String, null: false, from: "transactionId")
29
29
 
30
- # @return [Money] Specifies the amount for which the transfer was initiated
30
+ # @return [Money] The amount for which the transfer was initiated.
31
31
  attribute(:transaction_request_amount, Money, null: false, from: "transactionRequestAmount")
32
32
 
33
33
  # @return [Time] The date when the transaction was initiated.
@@ -37,33 +37,32 @@ module Peddler
37
37
  # the customer used to start the transaction.
38
38
  attribute(:transaction_requester_source, String, null: false, from: "transactionRequesterSource")
39
39
 
40
- # @return [String] Execution Status of the transaction
40
+ # @return [String] The status of the transaction.
41
41
  attribute(:transaction_status, String, null: false, from: "transactionStatus")
42
42
 
43
- # @return [String] Type of the transaction
43
+ # @return [String] The type of the transaction.
44
44
  attribute(:transaction_type, String, null: false, from: "transactionType")
45
45
 
46
46
  # @return [TransferRatePreview] The fees and rates that apply to the transaction, as applicable.
47
47
  attribute(:transfer_rate_details, TransferRatePreview, null: false, from: "transferRateDetails")
48
48
 
49
- # @return [Time] Expected completion date of a transaction, for existing active Payees (Trusted Beneficiaries)
50
- # it will be 24 hours but for new destination bank accounts the value could go up to 5 days
49
+ # @return [Time] The expected completion date of the transaction.
51
50
  attribute?(:expected_completion_date, Time, from: "expectedCompletionDate")
52
51
 
53
- # @return [String] Amazon SW customer who requested the transaction
52
+ # @return [String] The Amazon Seller Wallet customer who requested the transaction.
54
53
  attribute?(:requester_name, String, from: "requesterName")
55
54
 
56
- # @return [Time] Transaction completion date
55
+ # @return [Time] The transaction's completion date.
57
56
  attribute?(:transaction_actual_completion_date, Time, from: "transactionActualCompletionDate")
58
57
 
59
- # @return [String] Description in case the transaction fails before completion
58
+ # @return [String] The reason the transaction failed, if applicable.
60
59
  attribute?(:transaction_failure_reason, String, from: "transactionFailureReason")
61
60
 
62
- # @return [Money] Specifies the amount of completed transaction in the destination account currency, this will
63
- # be populated only for international transactions
61
+ # @return [Money] The amount of completed transaction in the destination account currency. This value is only
62
+ # populated for international transactions
64
63
  attribute?(:transaction_final_amount, Money, from: "transactionFinalAmount")
65
64
 
66
- # @return [TransactionAccount] Source bank account details in the transaction
65
+ # @return [TransactionAccount] The source bank account details in the transaction.
67
66
  attribute?(:transaction_source_account, TransactionAccount, from: "transactionSourceAccount")
68
67
  end
69
68
  end