peddler 5.3.1 → 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.
- checksums.yaml +4 -4
- data/README.md +74 -11
- data/lib/peddler/api.rb +30 -6
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/order_attribute.rb +20 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_execution_error.rb +24 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_listing.rb +24 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_order.rb +60 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_order_creation_data.rb +23 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_order_reference.rb +18 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/outbound_shipment.rb +43 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09/shipment_label_page_types.rb +20 -0
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09.rb +100 -0
- data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/address.rb +4 -1
- data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/distance.rb +20 -0
- data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/geocodes.rb +23 -0
- data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/handover_location.rb +23 -0
- data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/ship_label_metadata.rb +4 -0
- data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/shipment_info.rb +3 -0
- data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/shipping_options.rb +4 -0
- data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11.rb +1 -1
- data/lib/peddler/apis/feeds_2021_06_30.rb +8 -2
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/amount.rb +2 -2
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/delivery_document.rb +2 -2
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/delivery_information.rb +2 -1
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/delivery_preferences.rb +1 -1
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/delivery_window.rb +3 -4
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/drop_off_location.rb +9 -7
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/feature_settings.rb +5 -1
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/feature_sku.rb +1 -1
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/fulfillment_order.rb +2 -2
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/fulfillment_preview_shipment.rb +6 -6
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/fulfillment_shipment_package.rb +3 -4
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/get_feature_inventory_response.rb +1 -1
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/get_feature_sku_result.rb +12 -3
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/origin.rb +2 -1
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01/tracking_event.rb +1 -2
- data/lib/peddler/apis/listings_restrictions_2021_08_01/restriction_list.rb +1 -1
- data/lib/peddler/apis/listings_restrictions_2021_08_01.rb +4 -1
- data/lib/peddler/apis/notifications_v1/aggregation_filter.rb +2 -2
- data/lib/peddler/apis/notifications_v1/destination.rb +1 -1
- data/lib/peddler/apis/notifications_v1/event_bridge_resource.rb +2 -2
- data/lib/peddler/apis/notifications_v1/event_filter.rb +6 -6
- data/lib/peddler/apis/notifications_v1/marketplace_filter.rb +1 -1
- data/lib/peddler/apis/notifications_v1/marketplace_ids.rb +2 -2
- data/lib/peddler/apis/notifications_v1/order_change_type_filter.rb +2 -1
- data/lib/peddler/apis/notifications_v1/order_change_types.rb +2 -2
- data/lib/peddler/apis/notifications_v1/processing_directive.rb +18 -7
- data/lib/peddler/apis/notifications_v1/send_test_notification_request.rb +20 -0
- data/lib/peddler/apis/notifications_v1/send_test_notification_response.rb +20 -0
- data/lib/peddler/apis/notifications_v1/test_notification.rb +22 -0
- data/lib/peddler/apis/notifications_v1.rb +45 -17
- data/lib/peddler/apis/orders_2026_01_01/associated_order_item.rb +27 -0
- data/lib/peddler/apis/orders_2026_01_01/fulfillment_order.rb +19 -0
- data/lib/peddler/apis/orders_2026_01_01/item_packing.rb +3 -0
- data/lib/peddler/apis/orders_2026_01_01/item_picking.rb +1 -1
- data/lib/peddler/apis/orders_2026_01_01/item_proceeds_breakdown.rb +5 -5
- data/lib/peddler/apis/orders_2026_01_01/item_proceeds_detailed_breakdown.rb +1 -1
- data/lib/peddler/apis/orders_2026_01_01/item_tax.rb +20 -0
- data/lib/peddler/apis/orders_2026_01_01/item_tax_calculation_breakdown.rb +21 -0
- data/lib/peddler/apis/orders_2026_01_01/item_tax_collection.rb +24 -0
- data/lib/peddler/apis/orders_2026_01_01/order.rb +13 -1
- data/lib/peddler/apis/orders_2026_01_01/order_item.rb +7 -0
- data/lib/peddler/apis/orders_2026_01_01/order_payment.rb +17 -0
- data/lib/peddler/apis/orders_2026_01_01/order_proceeds.rb +5 -0
- data/lib/peddler/apis/orders_2026_01_01/order_proceeds_breakdown.rb +30 -0
- data/lib/peddler/apis/orders_2026_01_01/order_tax.rb +20 -0
- data/lib/peddler/apis/orders_2026_01_01/order_tax_invoicing.rb +34 -0
- data/lib/peddler/apis/orders_2026_01_01/order_tax_registration.rb +39 -0
- data/lib/peddler/apis/orders_2026_01_01/package_status.rb +4 -3
- data/lib/peddler/apis/orders_2026_01_01/pagination.rb +5 -5
- data/lib/peddler/apis/orders_2026_01_01/payment_execution.rb +39 -0
- data/lib/peddler/apis/orders_2026_01_01/search_orders_response.rb +10 -11
- data/lib/peddler/apis/orders_2026_01_01/serial_number_requirement.rb +19 -0
- data/lib/peddler/apis/orders_2026_01_01/tax_registration_attribute.rb +22 -0
- data/lib/peddler/apis/orders_2026_01_01.rb +15 -13
- data/lib/peddler/apis/orders_v0/address.rb +3 -3
- data/lib/peddler/apis/orders_v0/address_extended_fields.rb +9 -2
- data/lib/peddler/apis/orders_v0/approved_alternative_details.rb +20 -0
- data/lib/peddler/apis/orders_v0/approved_attribute.rb +23 -0
- data/lib/peddler/apis/orders_v0/buyer_info.rb +3 -0
- data/lib/peddler/apis/orders_v0/geo_coordinates.rb +20 -0
- data/lib/peddler/apis/orders_v0/interim_status_detail.rb +24 -0
- data/lib/peddler/apis/orders_v0/order_buyer_info.rb +3 -0
- data/lib/peddler/apis/orders_v0/regulated_order_verification_status.rb +5 -0
- data/lib/peddler/apis/orders_v0/valid_interim_status_code.rb +21 -0
- data/lib/peddler/apis/orders_v0/valid_verification_detail.rb +2 -1
- data/lib/peddler/apis/orders_v0/verification_details.rb +8 -0
- data/lib/peddler/apis/orders_v0.rb +6 -2
- data/lib/peddler/apis/product_pricing_2022_05_01/competitive_summary_response_body.rb +3 -0
- data/lib/peddler/apis/product_pricing_2022_05_01/item.rb +17 -0
- data/lib/peddler/apis/product_pricing_2022_05_01/points.rb +1 -1
- data/lib/peddler/apis/product_pricing_2022_05_01/similar_items.rb +17 -0
- data/lib/peddler/apis/product_type_definitions_2020_09_01/error_list.rb +1 -1
- data/lib/peddler/apis/product_type_definitions_2020_09_01/product_type.rb +1 -1
- data/lib/peddler/apis/product_type_definitions_2020_09_01/product_type_list.rb +1 -1
- data/lib/peddler/apis/product_type_definitions_2020_09_01/schema_link.rb +2 -1
- data/lib/peddler/apis/product_type_definitions_2020_09_01.rb +12 -8
- data/lib/peddler/apis/replenishment_2022_11_07/deliveries_condition.rb +22 -0
- data/lib/peddler/apis/replenishment_2022_11_07/forecast_deliveries.rb +26 -0
- data/lib/peddler/apis/replenishment_2022_11_07/get_selling_partner_metrics_request.rb +8 -3
- data/lib/peddler/apis/replenishment_2022_11_07/get_selling_partner_metrics_request_filters.rb +48 -0
- data/lib/peddler/apis/replenishment_2022_11_07/get_selling_partner_metrics_response_metric.rb +14 -10
- data/lib/peddler/apis/replenishment_2022_11_07/list_offer_metrics_request.rb +2 -2
- data/lib/peddler/apis/replenishment_2022_11_07/list_offer_metrics_request_filters.rb +17 -4
- data/lib/peddler/apis/replenishment_2022_11_07/list_offer_metrics_response_offer.rb +37 -23
- data/lib/peddler/apis/replenishment_2022_11_07/list_offers_request.rb +2 -2
- data/lib/peddler/apis/replenishment_2022_11_07/list_offers_request_filters.rb +7 -3
- data/lib/peddler/apis/replenishment_2022_11_07/list_offers_response_offer.rb +27 -1
- data/lib/peddler/apis/replenishment_2022_11_07/offer_program_configuration.rb +1 -1
- data/lib/peddler/apis/replenishment_2022_11_07/time_interval.rb +10 -6
- data/lib/peddler/apis/reports_2021_06_30.rb +8 -2
- data/lib/peddler/apis/seller_wallet_2024_03_01/balance.rb +6 -6
- data/lib/peddler/apis/seller_wallet_2024_03_01/balance_listing.rb +2 -2
- data/lib/peddler/apis/seller_wallet_2024_03_01/bank_account.rb +5 -5
- data/lib/peddler/apis/seller_wallet_2024_03_01/bank_account_listing.rb +2 -2
- data/lib/peddler/apis/seller_wallet_2024_03_01/delete_transfer_schedule.rb +3 -2
- data/lib/peddler/apis/seller_wallet_2024_03_01/fee.rb +4 -7
- data/lib/peddler/apis/seller_wallet_2024_03_01/fx_rate_details.rb +6 -6
- data/lib/peddler/apis/seller_wallet_2024_03_01/payee_contact_information.rb +5 -5
- data/lib/peddler/apis/seller_wallet_2024_03_01/payment_preference.rb +2 -3
- data/lib/peddler/apis/seller_wallet_2024_03_01/schedule_expression.rb +4 -5
- data/lib/peddler/apis/seller_wallet_2024_03_01/transaction.rb +13 -14
- data/lib/peddler/apis/seller_wallet_2024_03_01/transaction_account.rb +8 -8
- data/lib/peddler/apis/seller_wallet_2024_03_01/transaction_initiation_request.rb +8 -7
- data/lib/peddler/apis/seller_wallet_2024_03_01/transaction_instrument_details.rb +6 -7
- data/lib/peddler/apis/seller_wallet_2024_03_01/transaction_listing.rb +6 -5
- data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_rate_preview.rb +4 -3
- data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_schedule.rb +11 -12
- data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_schedule_failures.rb +3 -3
- data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_schedule_information.rb +5 -6
- data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_schedule_listing.rb +6 -5
- data/lib/peddler/apis/seller_wallet_2024_03_01/transfer_schedule_request.rb +11 -13
- data/lib/peddler/apis/seller_wallet_2024_03_01.rb +30 -28
- data/lib/peddler/apis/services_v1/associated_item.rb +3 -0
- data/lib/peddler/apis/services_v1/linked_asset.rb +24 -0
- data/lib/peddler/apis/services_v1/money_amount.rb +20 -0
- data/lib/peddler/apis/services_v1/payment.rb +20 -0
- data/lib/peddler/apis/services_v1/service_job.rb +9 -0
- data/lib/peddler/apis/services_v1.rb +11 -5
- data/lib/peddler/apis/shipment_invoicing_v0/payment_information.rb +6 -6
- data/lib/peddler/apis/shipment_invoicing_v0/payment_information_list.rb +1 -1
- data/lib/peddler/apis/uploads_2020_11_01.rb +1 -1
- data/lib/peddler/data_kiosk/economics20240315.json +6 -6
- data/lib/peddler/data_kiosk/sales_and_traffic20231115.json +6 -6
- data/lib/peddler/data_kiosk/sales_and_traffic20240424.json +6 -6
- data/lib/peddler/data_kiosk/vendor_analytics20240930.json +6 -6
- data/lib/peddler/errors.rb +1 -0
- data/lib/peddler/notifications/order_change/notification.rb +4 -3
- data/lib/peddler/notifications/order_change/order_change_notification.rb +2 -2
- data/lib/peddler/notifications/order_change/order_change_trigger.rb +4 -4
- data/lib/peddler/notifications/order_change/order_item.rb +7 -7
- data/lib/peddler/notifications/order_change/summary.rb +17 -17
- data/lib/peddler/version.rb +1 -1
- data/sig/peddler/api.rbs +3 -1
- data/sig/peddler/apis/amazon_warehousing_and_distribution_2024_05_09.rbs +167 -0
- data/sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs +85 -28
- data/sig/peddler/apis/feeds_2021_06_30.rbs +1 -1
- data/sig/peddler/apis/fulfillment_outbound_2020_07_01.rbs +11 -8
- data/sig/peddler/apis/listings_restrictions_2021_08_01.rbs +1 -1
- data/sig/peddler/apis/notifications_v1.rbs +61 -7
- data/sig/peddler/apis/orders_2026_01_01.rbs +272 -39
- data/sig/peddler/apis/orders_v0.rbs +115 -36
- data/sig/peddler/apis/product_pricing_2022_05_01.rbs +40 -7
- data/sig/peddler/apis/product_type_definitions_2020_09_01.rbs +1 -1
- data/sig/peddler/apis/replenishment_2022_11_07.rbs +117 -42
- data/sig/peddler/apis/reports_2021_06_30.rbs +1 -1
- data/sig/peddler/apis/services_v1.rbs +71 -15
- data/sig/peddler/errors.rbs +3 -0
- metadata +51 -5
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated. Do not edit.
|
|
4
|
+
|
|
5
|
+
require "structure"
|
|
6
|
+
|
|
7
|
+
module Peddler
|
|
8
|
+
module APIs
|
|
9
|
+
class Replenishment20221107
|
|
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
|
+
GetSellingPartnerMetricsRequestFilters = Structure.new do
|
|
13
|
+
# @return [Array<String>] A list of Amazon Standard Identification Numbers (ASINs) to filter by. ASIN filter is
|
|
14
|
+
# supported for these metrics: SHIPPED_SUBSCRIPTION_UNITS, TOTAL_SUBSCRIPTIONS_REVENUE, ACTIVE_SUBSCRIPTIONS,
|
|
15
|
+
# NOT_DELIVERED_DUE_TO_OOS, LOST_REVENUE_DUE_TO_OOS, COUPONS_REVENUE_PENETRATION,
|
|
16
|
+
# SHARE_OF_COUPON_SUBSCRIPTIONS and REVENUE_PENETRATION.
|
|
17
|
+
attribute?(:asins, [String])
|
|
18
|
+
|
|
19
|
+
# @return [Array<String>] [Applicable only for US marketplace] A list of brand names to filter by. Brand name
|
|
20
|
+
# filter is supported for these metrics: SHIPPED_SUBSCRIPTION_UNITS, TOTAL_SUBSCRIPTIONS_REVENUE,
|
|
21
|
+
# ACTIVE_SUBSCRIPTIONS, NOT_DELIVERED_DUE_TO_OOS, LOST_REVENUE_DUE_TO_OOS, COUPONS_REVENUE_PENETRATION,
|
|
22
|
+
# SHARE_OF_COUPON_SUBSCRIPTIONS, REVENUE_PENETRATION, SUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REVENUE,
|
|
23
|
+
# SUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REORDERS, REVENUE_BY_DELIVERIES, SUBSCRIBER_RETENTION,
|
|
24
|
+
# REVENUE_PENETRATION_BY_SELLER_FUNDING, SUBSCRIBER_LIFETIME_VALUE_BY_CUSTOMER_SEGMENT and
|
|
25
|
+
# SIGNUP_CONVERSION_BY_SELLER_FUNDING.
|
|
26
|
+
attribute?(:brand_names, [String], from: "brandNames")
|
|
27
|
+
|
|
28
|
+
# @return [Array<FulfillmentChannelType>] [Applicable only for Sellers] The fulfillment channel types to filter
|
|
29
|
+
# by. Fulfillment channel type filter is supported for these metrics: SHIPPED_SUBSCRIPTION_UNITS,
|
|
30
|
+
# TOTAL_SUBSCRIPTIONS_REVENUE, ACTIVE_SUBSCRIPTIONS, NOT_DELIVERED_DUE_TO_OOS, LOST_REVENUE_DUE_TO_OOS,
|
|
31
|
+
# COUPONS_REVENUE_PENETRATION, SHARE_OF_COUPON_SUBSCRIPTIONS and REVENUE_PENETRATION.
|
|
32
|
+
attribute?(:fulfillment_channel_types, Array, from: "fulfillmentChannelTypes")
|
|
33
|
+
|
|
34
|
+
# @return [Array<String>] [Applicable only for Vendors] A list of product group names to filter by. Product
|
|
35
|
+
# group filter is supported for these metrics: SHIPPED_SUBSCRIPTION_UNITS, TOTAL_SUBSCRIPTIONS_REVENUE,
|
|
36
|
+
# ACTIVE_SUBSCRIPTIONS, NOT_DELIVERED_DUE_TO_OOS, LOST_REVENUE_DUE_TO_OOS, COUPONS_REVENUE_PENETRATION,
|
|
37
|
+
# SHARE_OF_COUPON_SUBSCRIPTIONS and REVENUE_PENETRATION.
|
|
38
|
+
attribute?(:product_groups, [String], from: "productGroups")
|
|
39
|
+
|
|
40
|
+
# @return [Array<String>] [Applicable only for Sellers] A list of SKUs to filter by. SKU filter is supported for
|
|
41
|
+
# these metrics: SHIPPED_SUBSCRIPTION_UNITS, TOTAL_SUBSCRIPTIONS_REVENUE, ACTIVE_SUBSCRIPTIONS,
|
|
42
|
+
# NOT_DELIVERED_DUE_TO_OOS, LOST_REVENUE_DUE_TO_OOS, COUPONS_REVENUE_PENETRATION,
|
|
43
|
+
# SHARE_OF_COUPON_SUBSCRIPTIONS and REVENUE_PENETRATION.
|
|
44
|
+
attribute?(:skus, [String])
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
data/lib/peddler/apis/replenishment_2022_11_07/get_selling_partner_metrics_response_metric.rb
CHANGED
|
@@ -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")
|
|
@@ -93,7 +97,7 @@ module Peddler
|
|
|
93
97
|
# 5% or above seller-funded discount over the last 12 months. Applicable to `PERFORMANCE` `timePeriodType`.
|
|
94
98
|
attribute?(:revenue_penetration_for5_plus_percent_seller_funding, Float, from: "revenuePenetrationFor5PlusPercentSellerFunding")
|
|
95
99
|
|
|
96
|
-
# @return [Float] The percentage of new subscriptions
|
|
100
|
+
# @return [Float] The percentage of new subscriptions from coupons. Applicable to `PERFORMANCE`
|
|
97
101
|
# `timePeriodType`.
|
|
98
102
|
attribute?(:share_of_coupon_subscriptions, Float, from: "shareOfCouponSubscriptions")
|
|
99
103
|
|
|
@@ -101,20 +105,20 @@ module Peddler
|
|
|
101
105
|
# `PERFORMANCE` and `FORECAST` `timePeriodType`.
|
|
102
106
|
attribute?(:shipped_subscription_units, Float, from: "shippedSubscriptionUnits")
|
|
103
107
|
|
|
104
|
-
# @return [Float] Percentage of subscriptions
|
|
105
|
-
#
|
|
108
|
+
# @return [Float] Percentage of subscriptions from offers with 0% seller-funded discount out of the total number
|
|
109
|
+
# of new orders placed over the past 12 months.
|
|
106
110
|
attribute?(:signup_conversion_for0_percent_seller_funding, Float, from: "signupConversionFor0PercentSellerFunding")
|
|
107
111
|
|
|
108
|
-
# @return [Float] [Applicable only for Sellers] Percentage of subscriptions
|
|
109
|
-
#
|
|
112
|
+
# @return [Float] [Applicable only for Sellers] Percentage of subscriptions from offers with 10% seller-funded
|
|
113
|
+
# discount out of the total number of new orders placed over the past 12 months.
|
|
110
114
|
attribute?(:signup_conversion_for10_percent_seller_funding, Float, from: "signupConversionFor10PercentSellerFunding")
|
|
111
115
|
|
|
112
|
-
# @return [Float] [Applicable only for Sellers] Percentage of subscriptions
|
|
113
|
-
#
|
|
116
|
+
# @return [Float] [Applicable only for Sellers] Percentage of subscriptions from offers with 5% seller-funded
|
|
117
|
+
# discount out of the total number of new orders placed over the past 12 months.
|
|
114
118
|
attribute?(:signup_conversion_for5_percent_seller_funding, Float, from: "signupConversionFor5PercentSellerFunding")
|
|
115
119
|
|
|
116
|
-
# @return [Float] [Applicable only for Vendors] Percentage of subscriptions
|
|
117
|
-
# seller-funded discount out of the total number of new orders placed over the past 12 months
|
|
120
|
+
# @return [Float] [Applicable only for Vendors] Percentage of subscriptions from offers with 5% or above
|
|
121
|
+
# seller-funded discount out of the total number of new orders placed over the past 12 months.
|
|
118
122
|
attribute?(:signup_conversion_for5_plus_percent_seller_funding, Float, from: "signupConversionFor5PlusPercentSellerFunding")
|
|
119
123
|
|
|
120
124
|
# @return [Float] The average reorders per subscriber of the program over a period of 12 months. Applicable to
|
|
@@ -10,8 +10,8 @@ module Peddler
|
|
|
10
10
|
# The request body for the `listOfferMetrics` operation.
|
|
11
11
|
ListOfferMetricsRequest = Structure.new do
|
|
12
12
|
# @return [ListOfferMetricsRequestFilters] Use these parameters to filter results. Any result must match all
|
|
13
|
-
# provided parameters. For
|
|
14
|
-
#
|
|
13
|
+
# provided parameters. For parameters that accept multiple values (arrays), the API returns results that match
|
|
14
|
+
# at least one value in the array.
|
|
15
15
|
attribute(:filters, ListOfferMetricsRequestFilters, null: false)
|
|
16
16
|
|
|
17
17
|
# @return [ListOfferMetricsRequestPagination] Use these parameters to paginate through the response.
|
|
@@ -8,11 +8,11 @@ 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
|
|
12
|
-
#
|
|
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
|
-
# 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")
|
|
@@ -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
|
|
@@ -10,68 +10,82 @@ 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
|
|
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
|
+
# @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
|
-
# Applicable to `
|
|
24
|
+
# Applicable to `PERFORMANCE` `timePeriodType`.
|
|
22
25
|
attribute?(:coupons_revenue_penetration, Float, from: "couponsRevenuePenetration")
|
|
23
26
|
|
|
24
27
|
# @return [String] The currency code in ISO 4217 format.
|
|
25
28
|
attribute?(:currency_code, String, from: "currencyCode")
|
|
26
29
|
|
|
30
|
+
# @return [String] The fulfillment channel type of an offer. This property is only supported for sellers and not
|
|
31
|
+
# for vendors.
|
|
32
|
+
attribute?(:fulfillment_channel_type, String, from: "fulfillmentChannelType")
|
|
33
|
+
|
|
27
34
|
# @return [Float] The revenue that would have been generated had there not been out of stock. Applicable to
|
|
28
|
-
# `
|
|
35
|
+
# `PERFORMANCE` `timePeriodType`.
|
|
29
36
|
attribute?(:lost_revenue_due_to_oos, Float, from: "lostRevenueDueToOOS")
|
|
30
37
|
|
|
31
|
-
# @return [Float] The forecasted shipped subscription units for the next 30 days. Applicable to FORECAST
|
|
32
|
-
# timePeriodType
|
|
38
|
+
# @return [Float] The forecasted shipped subscription units for the next 30 days. Applicable to `FORECAST`
|
|
39
|
+
# `timePeriodType`.
|
|
33
40
|
attribute?(:next30_day_shipped_subscription_units, Float, from: "next30DayShippedSubscriptionUnits")
|
|
34
41
|
|
|
35
|
-
# @return [Float] The forecasted total subscription revenue for the next 30 days. Applicable to FORECAST
|
|
36
|
-
# timePeriodType
|
|
42
|
+
# @return [Float] The forecasted total subscription revenue for the next 30 days. Applicable to `FORECAST`
|
|
43
|
+
# `timePeriodType`.
|
|
37
44
|
attribute?(:next30_day_total_subscriptions_revenue, Float, from: "next30DayTotalSubscriptionsRevenue")
|
|
38
45
|
|
|
39
|
-
# @return [Float] The forecasted shipped subscription units for the next 60 days. Applicable to FORECAST
|
|
40
|
-
# timePeriodType
|
|
46
|
+
# @return [Float] The forecasted shipped subscription units for the next 60 days. Applicable to `FORECAST`
|
|
47
|
+
# `timePeriodType`.
|
|
41
48
|
attribute?(:next60_day_shipped_subscription_units, Float, from: "next60DayShippedSubscriptionUnits")
|
|
42
49
|
|
|
43
|
-
# @return [Float] The forecasted total subscription revenue for the next 60 days. Applicable to FORECAST
|
|
44
|
-
# timePeriodType
|
|
50
|
+
# @return [Float] The forecasted total subscription revenue for the next 60 days. Applicable to `FORECAST`
|
|
51
|
+
# `timePeriodType`.
|
|
45
52
|
attribute?(:next60_day_total_subscriptions_revenue, Float, from: "next60DayTotalSubscriptionsRevenue")
|
|
46
53
|
|
|
47
|
-
# @return [Float] The forecasted shipped subscription units for the next 90 days. Applicable to FORECAST
|
|
48
|
-
# timePeriodType
|
|
54
|
+
# @return [Float] The forecasted shipped subscription units for the next 90 days. Applicable to `FORECAST`
|
|
55
|
+
# `timePeriodType`.
|
|
49
56
|
attribute?(:next90_day_shipped_subscription_units, Float, from: "next90DayShippedSubscriptionUnits")
|
|
50
57
|
|
|
51
|
-
# @return [Float] The forecasted total subscription revenue for the next 90 days. Applicable to FORECAST
|
|
52
|
-
# timePeriodType
|
|
58
|
+
# @return [Float] The forecasted total subscription revenue for the next 90 days. Applicable to `FORECAST`
|
|
59
|
+
# `timePeriodType`.
|
|
53
60
|
attribute?(:next90_day_total_subscriptions_revenue, Float, from: "next90DayTotalSubscriptionsRevenue")
|
|
54
61
|
|
|
55
62
|
# @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 `
|
|
63
|
+
# time due to being out of stock. Applicable to `PERFORMANCE` `timePeriodType`.
|
|
57
64
|
attribute?(:not_delivered_due_to_oos, Float, from: "notDeliveredDueToOOS")
|
|
58
65
|
|
|
59
|
-
# @return [
|
|
60
|
-
#
|
|
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
|
+
|
|
70
|
+
# @return [Float] The percentage of total program revenue out of total product revenue. Applicable to
|
|
71
|
+
# `PERFORMANCE` `timePeriodType`.
|
|
61
72
|
attribute?(:revenue_penetration, Float, from: "revenuePenetration")
|
|
62
73
|
|
|
63
|
-
# @return [Float] The percentage of new subscriptions
|
|
74
|
+
# @return [Float] The percentage of new subscriptions from coupons. Applicable to `PERFORMANCE`
|
|
64
75
|
# `timePeriodType`.
|
|
65
76
|
attribute?(:share_of_coupon_subscriptions, Float, from: "shareOfCouponSubscriptions")
|
|
66
77
|
|
|
67
|
-
# @return [Float] The number of units shipped to the subscribers over a period of time. Applicable to
|
|
68
|
-
# `timePeriodType`.
|
|
78
|
+
# @return [Float] The number of units shipped to the subscribers over a period of time. Applicable to
|
|
79
|
+
# `PERFORMANCE` `timePeriodType`.
|
|
69
80
|
attribute?(:shipped_subscription_units, Float, from: "shippedSubscriptionUnits")
|
|
70
81
|
|
|
82
|
+
# @return [String] The SKU. This property is only supported for sellers and not for vendors.
|
|
83
|
+
attribute?(:sku, String)
|
|
84
|
+
|
|
71
85
|
# @return [TimeInterval] A time interval used to compute metrics.
|
|
72
86
|
attribute?(:time_interval, TimeInterval, from: "timeInterval")
|
|
73
87
|
|
|
74
|
-
# @return [Float] The revenue generated from subscriptions over a period of time. Applicable to `
|
|
88
|
+
# @return [Float] The revenue generated from subscriptions over a period of time. Applicable to `PERFORMANCE`
|
|
75
89
|
# `timePeriodType`.
|
|
76
90
|
attribute?(:total_subscriptions_revenue, Float, from: "totalSubscriptionsRevenue")
|
|
77
91
|
end
|
|
@@ -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
|
|
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,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
|
|
11
|
-
#
|
|
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
|
-
# 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
|
|
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.
|
|
@@ -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
|
|
12
|
-
#
|
|
13
|
-
#
|
|
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 `
|
|
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`.
|
|
@@ -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
|
-
#
|
|
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
|
|
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
|
|
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]
|
|
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
|
-
#
|
|
10
|
+
# A list of balances in the seller account.
|
|
11
11
|
BalanceListing = Structure.new do
|
|
12
|
-
# @return [Array<Balance>]
|
|
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
|
|
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]
|
|
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]
|
|
20
|
-
#
|
|
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]
|
|
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
|
-
#
|
|
10
|
+
# A list of bank accounts.
|
|
11
11
|
BankAccountListing = Structure.new do
|
|
12
|
-
# @return [Array<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
|
-
#
|
|
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.
|
|
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
|
-
#
|
|
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]
|
|
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]
|
|
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]
|
|
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
|
|
10
|
+
# Foreign exchange rate details.
|
|
11
11
|
FxRateDetails = Structure.new do
|
|
12
|
-
# @return [Float]
|
|
12
|
+
# @return [Float] The market foreign exchange rate.
|
|
13
13
|
attribute(:base_rate, Float, null: false, from: "baseRate")
|
|
14
14
|
|
|
15
|
-
# @return [Float]
|
|
16
|
-
# fees
|
|
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]
|
|
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]
|
|
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.
|