peddler 5.0.0 → 5.1.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 +6 -6
- data/lib/peddler/acronyms.rb +1 -0
- data/lib/peddler/api.rb +35 -62
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09.rb +11 -11
- data/lib/peddler/apis/aplus_content_2020_11_01.rb +10 -10
- data/lib/peddler/apis/application_integrations_2024_04_01.rb +3 -3
- data/lib/peddler/apis/application_management_2023_11_30.rb +1 -1
- data/lib/peddler/apis/catalog_items_2020_12_01.rb +2 -2
- data/lib/peddler/apis/catalog_items_2022_04_01.rb +2 -2
- data/lib/peddler/apis/catalog_items_v0.rb +1 -1
- data/lib/peddler/apis/data_kiosk_2023_11_15.rb +5 -5
- data/lib/peddler/apis/delivery_by_amazon_2022_07_01/error.rb +23 -0
- data/lib/peddler/apis/delivery_by_amazon_2022_07_01/error_list.rb +18 -0
- data/lib/peddler/apis/delivery_by_amazon_2022_07_01/get_invoice_status_response.rb +26 -0
- data/lib/peddler/apis/delivery_by_amazon_2022_07_01/submit_invoice_request.rb +31 -0
- data/lib/peddler/apis/delivery_by_amazon_2022_07_01/submit_invoice_response.rb +17 -0
- data/lib/peddler/apis/delivery_by_amazon_2022_07_01.rb +59 -0
- data/lib/peddler/apis/easy_ship_2022_03_23.rb +5 -5
- data/lib/peddler/apis/external_fulfillment_shipments_2024_09_11/shipment.rb +3 -0
- data/lib/peddler/apis/fba_inbound_eligibility_v1.rb +1 -1
- data/lib/peddler/apis/fba_inventory_v1.rb +1 -1
- data/lib/peddler/apis/feeds_2021_06_30.rb +6 -6
- data/lib/peddler/apis/finances_2024_06_19/amazon_pay_context.rb +2 -2
- data/lib/peddler/apis/finances_2024_06_19/breakdown.rb +3 -4
- data/lib/peddler/apis/finances_2024_06_19/context.rb +11 -11
- data/lib/peddler/apis/finances_2024_06_19/contexts.rb +1 -1
- data/lib/peddler/apis/finances_2024_06_19/deferred_context.rb +1 -1
- data/lib/peddler/apis/finances_2024_06_19/error.rb +1 -1
- data/lib/peddler/apis/finances_2024_06_19/error_list.rb +1 -1
- data/lib/peddler/apis/finances_2024_06_19/item.rb +3 -3
- data/lib/peddler/apis/finances_2024_06_19/item_related_identifier.rb +1 -1
- data/lib/peddler/apis/finances_2024_06_19/item_related_identifiers.rb +1 -1
- data/lib/peddler/apis/finances_2024_06_19/items.rb +1 -1
- data/lib/peddler/apis/finances_2024_06_19/marketplace_details.rb +2 -3
- data/lib/peddler/apis/finances_2024_06_19/payments_context.rb +5 -5
- data/lib/peddler/apis/finances_2024_06_19/product_context.rb +4 -4
- data/lib/peddler/apis/finances_2024_06_19/related_identifier.rb +2 -2
- data/lib/peddler/apis/finances_2024_06_19/selling_partner_metadata.rb +3 -3
- data/lib/peddler/apis/finances_2024_06_19/time_range_context.rb +3 -3
- data/lib/peddler/apis/finances_2024_06_19/transaction.rb +8 -10
- data/lib/peddler/apis/finances_2024_06_19/transactions.rb +1 -1
- data/lib/peddler/apis/finances_2024_06_19/transactions_payload.rb +4 -2
- data/lib/peddler/apis/finances_2024_06_19.rb +24 -13
- data/lib/peddler/apis/finances_v0/adhoc_disbursement_event.rb +1 -3
- data/lib/peddler/apis/finances_v0/adjustment_event.rb +11 -18
- data/lib/peddler/apis/finances_v0/adjustment_item.rb +3 -3
- data/lib/peddler/apis/finances_v0/affordability_expense_event.rb +6 -7
- data/lib/peddler/apis/finances_v0/capacity_reservation_billing_event.rb +1 -1
- data/lib/peddler/apis/finances_v0/charge_component.rb +37 -35
- data/lib/peddler/apis/finances_v0/charge_refund_event.rb +2 -6
- data/lib/peddler/apis/finances_v0/coupon_payment_event.rb +1 -1
- data/lib/peddler/apis/finances_v0/debt_recovery_event.rb +1 -5
- data/lib/peddler/apis/finances_v0/debt_recovery_item.rb +4 -4
- data/lib/peddler/apis/finances_v0/direct_payment.rb +7 -7
- data/lib/peddler/apis/finances_v0/ebt_refund_reimbursement_only_event.rb +23 -0
- data/lib/peddler/apis/finances_v0/ebt_refund_reimbursement_only_event_list.rb +18 -0
- data/lib/peddler/apis/finances_v0/failed_adhoc_disbursement_event.rb +3 -9
- data/lib/peddler/apis/finances_v0/failed_adhoc_disbursement_event_list.rb +1 -1
- data/lib/peddler/apis/finances_v0/fba_liquidation_event.rb +1 -1
- data/lib/peddler/apis/finances_v0/financial_event_group.rb +5 -7
- data/lib/peddler/apis/finances_v0/financial_events.rb +4 -1
- data/lib/peddler/apis/finances_v0/list_financial_event_groups_payload.rb +1 -1
- data/lib/peddler/apis/finances_v0/list_financial_event_groups_response.rb +3 -3
- data/lib/peddler/apis/finances_v0/list_financial_events_payload.rb +1 -1
- data/lib/peddler/apis/finances_v0/list_financial_events_response.rb +3 -3
- data/lib/peddler/apis/finances_v0/loan_servicing_event.rb +3 -3
- data/lib/peddler/apis/finances_v0/network_commingling_transaction_event.rb +3 -3
- data/lib/peddler/apis/finances_v0/pay_with_amazon_event.rb +5 -5
- data/lib/peddler/apis/finances_v0/product_ads_payment_event.rb +4 -4
- data/lib/peddler/apis/finances_v0/removal_shipment_adjustment_event.rb +2 -2
- data/lib/peddler/apis/finances_v0/removal_shipment_adjustment_event_list.rb +1 -1
- data/lib/peddler/apis/finances_v0/removal_shipment_event.rb +2 -2
- data/lib/peddler/apis/finances_v0/removal_shipment_item.rb +5 -6
- data/lib/peddler/apis/finances_v0/removal_shipment_item_adjustment.rb +8 -9
- data/lib/peddler/apis/finances_v0/removal_shipment_item_list.rb +1 -1
- data/lib/peddler/apis/finances_v0/rental_transaction_event.rb +17 -16
- data/lib/peddler/apis/finances_v0/retrocharge_event.rb +2 -2
- data/lib/peddler/apis/finances_v0/retrocharge_event_list.rb +1 -1
- data/lib/peddler/apis/finances_v0/safet_reimbursement_event_list.rb +1 -1
- data/lib/peddler/apis/finances_v0/safet_reimbursement_item_list.rb +1 -1
- data/lib/peddler/apis/finances_v0/seller_deal_payment_event.rb +2 -2
- data/lib/peddler/apis/finances_v0/seller_review_enrollment_payment_event.rb +1 -1
- data/lib/peddler/apis/finances_v0/solution_provider_credit_event.rb +1 -1
- data/lib/peddler/apis/finances_v0/solution_provider_credit_event_list.rb +1 -1
- data/lib/peddler/apis/finances_v0/tax_withheld_component.rb +2 -3
- data/lib/peddler/apis/finances_v0/tax_withholding_event.rb +1 -1
- data/lib/peddler/apis/finances_v0/tax_withholding_event_list.rb +1 -1
- data/lib/peddler/apis/finances_v0/tax_withholding_period.rb +1 -1
- data/lib/peddler/apis/finances_v0/value_added_service_charge_event.rb +1 -3
- data/lib/peddler/apis/finances_v0.rb +60 -47
- data/lib/peddler/apis/fulfillment_inbound_2024_03_20/delivery_window_option.rb +2 -1
- data/lib/peddler/apis/fulfillment_inbound_2024_03_20/selected_delivery_window.rb +2 -1
- data/lib/peddler/apis/fulfillment_inbound_2024_03_20.rb +90 -142
- data/lib/peddler/apis/fulfillment_inbound_v0.rb +6 -6
- data/lib/peddler/apis/fulfillment_outbound_2020_07_01.rb +14 -17
- data/lib/peddler/apis/invoices_2024_06_19.rb +7 -7
- data/lib/peddler/apis/listings_items_2020_09_01.rb +3 -3
- data/lib/peddler/apis/listings_items_2021_08_01.rb +5 -5
- data/lib/peddler/apis/listings_restrictions_2021_08_01.rb +1 -1
- data/lib/peddler/apis/merchant_fulfillment_v0.rb +5 -5
- data/lib/peddler/apis/messaging_v1.rb +11 -11
- data/lib/peddler/apis/notifications_v1.rb +8 -8
- data/lib/peddler/apis/orders_v0/buyer_info.rb +0 -3
- data/lib/peddler/apis/orders_v0/order_buyer_info.rb +0 -3
- data/lib/peddler/apis/orders_v0.rb +12 -15
- data/lib/peddler/apis/product_fees_v0.rb +3 -3
- data/lib/peddler/apis/product_pricing_2022_05_01.rb +2 -2
- data/lib/peddler/apis/product_pricing_v0.rb +6 -6
- data/lib/peddler/apis/product_type_definitions_2020_09_01.rb +2 -2
- data/lib/peddler/apis/replenishment_2022_11_07/get_selling_partner_metrics_response_metric.rb +66 -22
- data/lib/peddler/apis/replenishment_2022_11_07/list_offer_metrics_response_offer.rb +13 -13
- data/lib/peddler/apis/replenishment_2022_11_07.rb +3 -3
- data/lib/peddler/apis/reports_2021_06_30.rb +9 -9
- data/lib/peddler/apis/sales_v1.rb +1 -1
- data/lib/peddler/apis/seller_wallet_2024_03_01/bank_account.rb +23 -18
- data/lib/peddler/apis/seller_wallet_2024_03_01/payee_contact_information.rb +54 -0
- data/lib/peddler/apis/seller_wallet_2024_03_01/transaction.rb +7 -3
- data/lib/peddler/apis/seller_wallet_2024_03_01/transaction_initiation_request.rb +3 -3
- data/lib/peddler/apis/seller_wallet_2024_03_01.rb +7 -2
- data/lib/peddler/apis/sellers_v1.rb +2 -2
- data/lib/peddler/apis/services_v1.rb +17 -17
- data/lib/peddler/apis/shipment_invoicing_v0.rb +3 -3
- data/lib/peddler/apis/shipping_v1.rb +9 -9
- data/lib/peddler/apis/shipping_v2.rb +19 -19
- data/lib/peddler/apis/solicitations_v1.rb +2 -2
- data/lib/peddler/apis/tokens_2021_03_01.rb +1 -1
- data/lib/peddler/apis/transfers_2024_06_01.rb +2 -2
- data/lib/peddler/apis/uploads_2020_11_01.rb +1 -1
- data/lib/peddler/apis/vendor_direct_fulfillment_inventory_v1.rb +1 -1
- data/lib/peddler/apis/vendor_direct_fulfillment_orders_2021_12_28.rb +3 -3
- data/lib/peddler/apis/vendor_direct_fulfillment_orders_v1.rb +3 -3
- data/lib/peddler/apis/vendor_direct_fulfillment_payments_v1.rb +1 -1
- data/lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb +11 -11
- data/lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb +9 -9
- data/lib/peddler/apis/vendor_direct_fulfillment_transactions_2021_12_28.rb +1 -1
- data/lib/peddler/apis/vendor_direct_fulfillment_transactions_v1.rb +1 -1
- data/lib/peddler/apis/vendor_invoices_v1.rb +1 -1
- data/lib/peddler/apis/vendor_orders_v1.rb +4 -4
- data/lib/peddler/apis/vendor_shipments_v1/package_item_details.rb +16 -0
- data/lib/peddler/apis/vendor_shipments_v1/regulation_references.rb +32 -0
- data/lib/peddler/apis/vendor_shipments_v1.rb +5 -5
- data/lib/peddler/apis/vendor_transaction_status_v1.rb +1 -1
- data/lib/peddler/data_kiosk/economics20240315/analytics_economics20240315.rb +5 -0
- data/lib/peddler/data_kiosk/economics20240315.json +340 -7
- data/lib/peddler/data_kiosk/vendor_analytics20240930/traffic.rb +5 -0
- data/lib/peddler/data_kiosk/vendor_analytics20240930.json +12 -0
- data/lib/peddler/response.rb +1 -1
- data/lib/peddler/version.rb +1 -1
- data/lib/peddler.rb +2 -0
- data/sig/peddler/api.rbs +13 -23
- data/sig/peddler/apis/delivery_by_amazon_2022_07_01.rbs +85 -0
- data/sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs +8 -7
- data/sig/peddler/apis/finances_2024_06_19.rbs +1 -1
- data/sig/peddler/apis/finances_v0.rbs +30 -7
- data/sig/peddler/apis/fulfillment_inbound_2024_03_20.rbs +45 -45
- data/sig/peddler/apis/fulfillment_outbound_2020_07_01.rbs +1 -1
- data/sig/peddler/apis/orders_v0.rbs +15 -17
- data/sig/peddler/apis/replenishment_2022_11_07.rbs +18 -7
- data/sig/peddler/apis/seller_wallet_2024_03_01.rbs +49 -42
- data/sig/peddler/apis/vendor_shipments_v1.rbs +30 -41
- data/sig/peddler/data_kiosk/economics20240315.rbs +8 -7
- data/sig/peddler/data_kiosk/vendor_analytics20240930.rbs +8 -7
- data/sig/peddler.rbs +4 -0
- metadata +13 -5
- data/lib/peddler/apis/seller_wallet_2024_03_01/account_holder_address.rb +0 -36
- data/lib/peddler/apis/vendor_shipments_v1/packed_quantity.rb +0 -25
- data/lib/peddler/apis/vendor_shipments_v1/purchase_order_item_details.rb +0 -18
|
@@ -39,7 +39,7 @@ module Peddler
|
|
|
39
39
|
"ASINList" => stringify_array(asin_list),
|
|
40
40
|
}.compact
|
|
41
41
|
parser = -> { GetPrepInstructionsResponse }
|
|
42
|
-
|
|
42
|
+
get(path, params:, rate_limit:, parser:)
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
# Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center.
|
|
@@ -81,7 +81,7 @@ module Peddler
|
|
|
81
81
|
"PageStartIndex" => page_start_index,
|
|
82
82
|
}.compact
|
|
83
83
|
parser = -> { GetLabelsResponse }
|
|
84
|
-
|
|
84
|
+
get(path, params:, rate_limit:, parser:)
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
# Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading
|
|
@@ -96,7 +96,7 @@ module Peddler
|
|
|
96
96
|
def get_bill_of_lading(shipment_id, rate_limit: 2.0)
|
|
97
97
|
path = "/fba/inbound/v0/shipments/#{percent_encode(shipment_id)}/billOfLading"
|
|
98
98
|
parser = -> { GetBillOfLadingResponse }
|
|
99
|
-
|
|
99
|
+
get(path, rate_limit:, parser:)
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
# Returns a list of inbound shipments based on criteria that you specify.
|
|
@@ -133,7 +133,7 @@ module Peddler
|
|
|
133
133
|
"MarketplaceId" => marketplace_id,
|
|
134
134
|
}.compact
|
|
135
135
|
parser = -> { GetShipmentsResponse }
|
|
136
|
-
|
|
136
|
+
get(path, params:, rate_limit:, parser:)
|
|
137
137
|
end
|
|
138
138
|
|
|
139
139
|
# Returns a list of items in a specified inbound shipment.
|
|
@@ -149,7 +149,7 @@ module Peddler
|
|
|
149
149
|
"MarketplaceId" => marketplace_id,
|
|
150
150
|
}.compact
|
|
151
151
|
parser = -> { GetShipmentItemsResponse }
|
|
152
|
-
|
|
152
|
+
get(path, params:, rate_limit:, parser:)
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
# Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified
|
|
@@ -179,7 +179,7 @@ module Peddler
|
|
|
179
179
|
"MarketplaceId" => marketplace_id,
|
|
180
180
|
}.compact
|
|
181
181
|
parser = -> { GetShipmentItemsResponse }
|
|
182
|
-
|
|
182
|
+
get(path, params:, rate_limit:, parser:)
|
|
183
183
|
end
|
|
184
184
|
end
|
|
185
185
|
end
|
|
@@ -21,7 +21,7 @@ module Peddler
|
|
|
21
21
|
def get_fulfillment_preview(body, rate_limit: 2.0)
|
|
22
22
|
path = "/fba/outbound/2020-07-01/fulfillmentOrders/preview"
|
|
23
23
|
parser = -> { GetFulfillmentPreviewResponse }
|
|
24
|
-
|
|
24
|
+
post(path, body:, rate_limit:, parser:)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
# Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that
|
|
@@ -34,7 +34,7 @@ module Peddler
|
|
|
34
34
|
def delivery_offers(body, rate_limit: 5.0)
|
|
35
35
|
path = "/fba/outbound/2020-07-01/deliveryOffers"
|
|
36
36
|
parser = -> { GetDeliveryOffersResponse }
|
|
37
|
-
|
|
37
|
+
post(path, body:, rate_limit:, parser:)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
# Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the
|
|
@@ -54,7 +54,7 @@ module Peddler
|
|
|
54
54
|
"nextToken" => next_token,
|
|
55
55
|
}.compact
|
|
56
56
|
parser = -> { ListAllFulfillmentOrdersResponse }
|
|
57
|
-
|
|
57
|
+
get(path, params:, rate_limit:, parser:)
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Requests that Amazon ship items from the seller's inventory in Amazon's fulfillment network to a destination
|
|
@@ -67,7 +67,7 @@ module Peddler
|
|
|
67
67
|
def create_fulfillment_order(body, rate_limit: 2.0)
|
|
68
68
|
path = "/fba/outbound/2020-07-01/fulfillmentOrders"
|
|
69
69
|
parser = -> { CreateFulfillmentOrderResponse }
|
|
70
|
-
|
|
70
|
+
post(path, body:, rate_limit:, parser:)
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
# Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment
|
|
@@ -76,18 +76,15 @@ module Peddler
|
|
|
76
76
|
# @note This operation can make a dynamic sandbox call.
|
|
77
77
|
# @param package_number [Integer] The unencrypted package identifier. You can obtain this value from the
|
|
78
78
|
# `getFulfillmentOrder` operation.
|
|
79
|
-
# @param amazon_fulfillment_tracking_number [String] The Amazon fulfillment tracking number. You can obtain this
|
|
80
|
-
# value from the `getFulfillmentOrder` operation.
|
|
81
79
|
# @param rate_limit [Float] Requests per second
|
|
82
80
|
# @return [Peddler::Response] The API response
|
|
83
|
-
def get_package_tracking_details(package_number
|
|
81
|
+
def get_package_tracking_details(package_number, rate_limit: 2.0)
|
|
84
82
|
path = "/fba/outbound/2020-07-01/tracking"
|
|
85
83
|
params = {
|
|
86
84
|
"packageNumber" => package_number,
|
|
87
|
-
"amazonFulfillmentTrackingNumber" => amazon_fulfillment_tracking_number,
|
|
88
85
|
}.compact
|
|
89
86
|
parser = -> { GetPackageTrackingDetailsResponse }
|
|
90
|
-
|
|
87
|
+
get(path, params:, rate_limit:, parser:)
|
|
91
88
|
end
|
|
92
89
|
|
|
93
90
|
# Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation
|
|
@@ -114,7 +111,7 @@ module Peddler
|
|
|
114
111
|
"language" => language,
|
|
115
112
|
}.compact
|
|
116
113
|
parser = -> { ListReturnReasonCodesResponse }
|
|
117
|
-
|
|
114
|
+
get(path, params:, rate_limit:, parser:)
|
|
118
115
|
end
|
|
119
116
|
|
|
120
117
|
# Creates a fulfillment return.
|
|
@@ -129,7 +126,7 @@ module Peddler
|
|
|
129
126
|
def create_fulfillment_return(body, seller_fulfillment_order_id, rate_limit: 2.0)
|
|
130
127
|
path = "/fba/outbound/2020-07-01/fulfillmentOrders/#{percent_encode(seller_fulfillment_order_id)}/return"
|
|
131
128
|
parser = -> { CreateFulfillmentReturnResponse }
|
|
132
|
-
|
|
129
|
+
put(path, body:, rate_limit:, parser:)
|
|
133
130
|
end
|
|
134
131
|
|
|
135
132
|
# Returns the fulfillment order indicated by the specified order identifier.
|
|
@@ -142,7 +139,7 @@ module Peddler
|
|
|
142
139
|
def get_fulfillment_order(seller_fulfillment_order_id, rate_limit: 2.0)
|
|
143
140
|
path = "/fba/outbound/2020-07-01/fulfillmentOrders/#{percent_encode(seller_fulfillment_order_id)}"
|
|
144
141
|
parser = -> { GetFulfillmentOrderResponse }
|
|
145
|
-
|
|
142
|
+
get(path, rate_limit:, parser:)
|
|
146
143
|
end
|
|
147
144
|
|
|
148
145
|
# Updates and/or requests shipment for a fulfillment order with an order hold on it.
|
|
@@ -156,7 +153,7 @@ module Peddler
|
|
|
156
153
|
def update_fulfillment_order(body, seller_fulfillment_order_id, rate_limit: 2.0)
|
|
157
154
|
path = "/fba/outbound/2020-07-01/fulfillmentOrders/#{percent_encode(seller_fulfillment_order_id)}"
|
|
158
155
|
parser = -> { UpdateFulfillmentOrderResponse }
|
|
159
|
-
|
|
156
|
+
put(path, body:, rate_limit:, parser:)
|
|
160
157
|
end
|
|
161
158
|
|
|
162
159
|
# Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order
|
|
@@ -170,7 +167,7 @@ module Peddler
|
|
|
170
167
|
def cancel_fulfillment_order(seller_fulfillment_order_id, rate_limit: 2.0)
|
|
171
168
|
path = "/fba/outbound/2020-07-01/fulfillmentOrders/#{percent_encode(seller_fulfillment_order_id)}/cancel"
|
|
172
169
|
parser = -> { CancelFulfillmentOrderResponse }
|
|
173
|
-
|
|
170
|
+
put(path, rate_limit:, parser:)
|
|
174
171
|
end
|
|
175
172
|
|
|
176
173
|
# Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only
|
|
@@ -205,7 +202,7 @@ module Peddler
|
|
|
205
202
|
"marketplaceId" => marketplace_id,
|
|
206
203
|
}.compact
|
|
207
204
|
parser = -> { GetFeaturesResponse }
|
|
208
|
-
|
|
205
|
+
get(path, params:, rate_limit:, parser:)
|
|
209
206
|
end
|
|
210
207
|
|
|
211
208
|
# Returns a list of inventory items that are eligible for the fulfillment feature you specify.
|
|
@@ -229,7 +226,7 @@ module Peddler
|
|
|
229
226
|
"queryStartDate" => query_start_date,
|
|
230
227
|
}.compact
|
|
231
228
|
parser = -> { GetFeatureInventoryResponse }
|
|
232
|
-
|
|
229
|
+
get(path, params:, rate_limit:, parser:)
|
|
233
230
|
end
|
|
234
231
|
|
|
235
232
|
# Returns the number of items with the `sellerSku` you specify that can have orders fulfilled using the specified
|
|
@@ -250,7 +247,7 @@ module Peddler
|
|
|
250
247
|
"marketplaceId" => marketplace_id,
|
|
251
248
|
}.compact
|
|
252
249
|
parser = -> { GetFeatureSKUResponse }
|
|
253
|
-
|
|
250
|
+
get(path, params:, rate_limit:, parser:)
|
|
254
251
|
end
|
|
255
252
|
end
|
|
256
253
|
end
|
|
@@ -23,7 +23,7 @@ module Peddler
|
|
|
23
23
|
"marketplaceId" => marketplace_id,
|
|
24
24
|
}.compact
|
|
25
25
|
parser = -> { GetInvoicesAttributesResponse }
|
|
26
|
-
|
|
26
|
+
get(path, params:, rate_limit:, parser:)
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# Returns the invoice document's ID and URL. Use the URL to download the ZIP file, which contains the invoices
|
|
@@ -36,7 +36,7 @@ module Peddler
|
|
|
36
36
|
def get_invoices_document(invoices_document_id, rate_limit: 0.0167)
|
|
37
37
|
path = "/tax/invoices/2024-06-19/documents/#{percent_encode(invoices_document_id)}"
|
|
38
38
|
parser = -> { GetInvoicesDocumentResponse }
|
|
39
|
-
|
|
39
|
+
get(path, rate_limit:, parser:)
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
# Creates an invoice export request.
|
|
@@ -48,7 +48,7 @@ module Peddler
|
|
|
48
48
|
def create_invoices_export(body, rate_limit: 0.167)
|
|
49
49
|
path = "/tax/invoices/2024-06-19/exports"
|
|
50
50
|
parser = -> { ExportInvoicesResponse }
|
|
51
|
-
|
|
51
|
+
post(path, body:, rate_limit:, parser:)
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# Returns invoice exports details for exports that match the filters that you specify.
|
|
@@ -81,7 +81,7 @@ module Peddler
|
|
|
81
81
|
"status" => status,
|
|
82
82
|
}.compact
|
|
83
83
|
parser = -> { GetInvoicesExportsResponse }
|
|
84
|
-
|
|
84
|
+
get(path, params:, rate_limit:, parser:)
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
# Returns invoice export details (including the `exportDocumentId`, if available) for the export that you specify.
|
|
@@ -93,7 +93,7 @@ module Peddler
|
|
|
93
93
|
def get_invoices_export(export_id, rate_limit: 2.0)
|
|
94
94
|
path = "/tax/invoices/2024-06-19/exports/#{percent_encode(export_id)}"
|
|
95
95
|
parser = -> { GetInvoicesExportResponse }
|
|
96
|
-
|
|
96
|
+
get(path, rate_limit:, parser:)
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
# Returns invoice details for the invoices that match the filters that you specify.
|
|
@@ -151,7 +151,7 @@ module Peddler
|
|
|
151
151
|
"sortBy" => sort_by,
|
|
152
152
|
}.compact
|
|
153
153
|
parser = -> { GetInvoicesResponse }
|
|
154
|
-
|
|
154
|
+
get(path, params:, rate_limit:, parser:)
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
# Returns invoice data for the specified invoice. This operation returns only a subset of the invoices data; refer
|
|
@@ -169,7 +169,7 @@ module Peddler
|
|
|
169
169
|
"marketplaceId" => marketplace_id,
|
|
170
170
|
}.compact
|
|
171
171
|
parser = -> { GetInvoiceResponse }
|
|
172
|
-
|
|
172
|
+
get(path, params:, rate_limit:, parser:)
|
|
173
173
|
end
|
|
174
174
|
end
|
|
175
175
|
end
|
|
@@ -38,7 +38,7 @@ module Peddler
|
|
|
38
38
|
"issueLocale" => issue_locale,
|
|
39
39
|
}.compact
|
|
40
40
|
parser = -> { ListingsItemSubmissionResponse }
|
|
41
|
-
|
|
41
|
+
delete(path, params:, rate_limit:, parser:)
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
# Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be
|
|
@@ -65,7 +65,7 @@ module Peddler
|
|
|
65
65
|
"issueLocale" => issue_locale,
|
|
66
66
|
}.compact
|
|
67
67
|
parser = -> { ListingsItemSubmissionResponse }
|
|
68
|
-
|
|
68
|
+
patch(path, body:, params:, rate_limit:, parser:)
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
# Creates a new or fully-updates an existing listings item for a selling partner.
|
|
@@ -91,7 +91,7 @@ module Peddler
|
|
|
91
91
|
"issueLocale" => issue_locale,
|
|
92
92
|
}.compact
|
|
93
93
|
parser = -> { ListingsItemSubmissionResponse }
|
|
94
|
-
|
|
94
|
+
put(path, body:, params:, rate_limit:, parser:)
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
97
|
end
|
|
@@ -33,7 +33,7 @@ module Peddler
|
|
|
33
33
|
"issueLocale" => issue_locale,
|
|
34
34
|
}.compact
|
|
35
35
|
parser = -> { ListingsItemSubmissionResponse }
|
|
36
|
-
|
|
36
|
+
delete(path, params:, rate_limit:, parser:)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
# Returns details about a listings item for a selling partner.
|
|
@@ -58,7 +58,7 @@ module Peddler
|
|
|
58
58
|
"includedData" => stringify_array(included_data),
|
|
59
59
|
}.compact
|
|
60
60
|
parser = -> { Item }
|
|
61
|
-
|
|
61
|
+
get(path, params:, rate_limit:, parser:)
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
# Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be
|
|
@@ -87,7 +87,7 @@ module Peddler
|
|
|
87
87
|
"issueLocale" => issue_locale,
|
|
88
88
|
}.compact
|
|
89
89
|
parser = -> { ListingsItemSubmissionResponse }
|
|
90
|
-
|
|
90
|
+
patch(path, body:, params:, rate_limit:, parser:)
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# Creates a new or fully-updates an existing listings item for a selling partner.
|
|
@@ -115,7 +115,7 @@ module Peddler
|
|
|
115
115
|
"issueLocale" => issue_locale,
|
|
116
116
|
}.compact
|
|
117
117
|
parser = -> { ListingsItemSubmissionResponse }
|
|
118
|
-
|
|
118
|
+
put(path, body:, params:, rate_limit:, parser:)
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
# Search for and return a list of selling partner listings items and their respective details.
|
|
@@ -190,7 +190,7 @@ module Peddler
|
|
|
190
190
|
"pageToken" => page_token,
|
|
191
191
|
}.compact
|
|
192
192
|
parser = -> { ItemSearchResults }
|
|
193
|
-
|
|
193
|
+
get(path, params:, rate_limit:, parser:)
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
196
|
end
|
|
@@ -20,7 +20,7 @@ module Peddler
|
|
|
20
20
|
def get_eligible_shipment_services(body, rate_limit: 6.0)
|
|
21
21
|
path = "/mfn/v0/eligibleShippingServices"
|
|
22
22
|
parser = -> { GetEligibleShipmentServicesResponse }
|
|
23
|
-
|
|
23
|
+
post(path, body:, rate_limit:, parser:)
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
# Returns the shipment information for an existing shipment.
|
|
@@ -32,7 +32,7 @@ module Peddler
|
|
|
32
32
|
def get_shipment(shipment_id, rate_limit: 1.0)
|
|
33
33
|
path = "/mfn/v0/shipments/#{percent_encode(shipment_id)}"
|
|
34
34
|
parser = -> { GetShipmentResponse }
|
|
35
|
-
|
|
35
|
+
get(path, rate_limit:, parser:)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
# Cancel the shipment indicated by the specified shipment identifier.
|
|
@@ -44,7 +44,7 @@ module Peddler
|
|
|
44
44
|
def cancel_shipment(shipment_id, rate_limit: 1.0)
|
|
45
45
|
path = "/mfn/v0/shipments/#{percent_encode(shipment_id)}"
|
|
46
46
|
parser = -> { CancelShipmentResponse }
|
|
47
|
-
|
|
47
|
+
delete(path, rate_limit:, parser:)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
# Create a shipment with the information provided.
|
|
@@ -56,7 +56,7 @@ module Peddler
|
|
|
56
56
|
def create_shipment(body, rate_limit: 2.0)
|
|
57
57
|
path = "/mfn/v0/shipments"
|
|
58
58
|
parser = -> { CreateShipmentResponse }
|
|
59
|
-
|
|
59
|
+
post(path, body:, rate_limit:, parser:)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
# Gets a list of additional seller inputs required for a ship method. This is generally used for international
|
|
@@ -69,7 +69,7 @@ module Peddler
|
|
|
69
69
|
def get_additional_seller_inputs(body, rate_limit: 1.0)
|
|
70
70
|
path = "/mfn/v0/additionalSellerInputs"
|
|
71
71
|
parser = -> { GetAdditionalSellerInputsResponse }
|
|
72
|
-
|
|
72
|
+
post(path, body:, rate_limit:, parser:)
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
end
|
|
@@ -30,7 +30,7 @@ module Peddler
|
|
|
30
30
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
31
31
|
}.compact
|
|
32
32
|
parser = -> { GetMessagingActionsForOrderResponse }
|
|
33
|
-
|
|
33
|
+
get(path, params:, rate_limit:, parser:)
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
# Sends a message asking a buyer to provide or verify customization details such as name spelling, images,
|
|
@@ -50,7 +50,7 @@ module Peddler
|
|
|
50
50
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
51
51
|
}.compact
|
|
52
52
|
parser = -> { CreateConfirmCustomizationDetailsResponse }
|
|
53
|
-
|
|
53
|
+
post(path, body:, params:, rate_limit:, parser:)
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
# Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery.
|
|
@@ -69,7 +69,7 @@ module Peddler
|
|
|
69
69
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
70
70
|
}.compact
|
|
71
71
|
parser = -> { CreateConfirmDeliveryDetailsResponse }
|
|
72
|
-
|
|
72
|
+
post(path, body:, params:, rate_limit:, parser:)
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
# Sends a critical message that contains documents that a seller is legally obligated to provide to the buyer.
|
|
@@ -89,7 +89,7 @@ module Peddler
|
|
|
89
89
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
90
90
|
}.compact
|
|
91
91
|
parser = -> { CreateLegalDisclosureResponse }
|
|
92
|
-
|
|
92
|
+
post(path, body:, params:, rate_limit:, parser:)
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
# Sends a message to ask a buyer an order-related question prior to shipping their order.
|
|
@@ -108,7 +108,7 @@ module Peddler
|
|
|
108
108
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
109
109
|
}.compact
|
|
110
110
|
parser = -> { CreateConfirmOrderDetailsResponse }
|
|
111
|
-
|
|
111
|
+
post(path, body:, params:, rate_limit:, parser:)
|
|
112
112
|
end
|
|
113
113
|
|
|
114
114
|
# Sends a message to contact a Home Service customer to arrange a service call or to gather information prior to a
|
|
@@ -128,7 +128,7 @@ module Peddler
|
|
|
128
128
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
129
129
|
}.compact
|
|
130
130
|
parser = -> { CreateConfirmServiceDetailsResponse }
|
|
131
|
-
|
|
131
|
+
post(path, body:, params:, rate_limit:, parser:)
|
|
132
132
|
end
|
|
133
133
|
|
|
134
134
|
# Sends a message to a buyer to provide details about an Amazon Motors order. This message can only be sent by
|
|
@@ -148,7 +148,7 @@ module Peddler
|
|
|
148
148
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
149
149
|
}.compact
|
|
150
150
|
parser = -> { CreateAmazonMotorsResponse }
|
|
151
|
-
|
|
151
|
+
post(path, body:, params:, rate_limit:, parser:)
|
|
152
152
|
end
|
|
153
153
|
|
|
154
154
|
# Sends a message to a buyer to provide details about warranty information on a purchase in their order.
|
|
@@ -167,7 +167,7 @@ module Peddler
|
|
|
167
167
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
168
168
|
}.compact
|
|
169
169
|
parser = -> { CreateWarrantyResponse }
|
|
170
|
-
|
|
170
|
+
post(path, body:, params:, rate_limit:, parser:)
|
|
171
171
|
end
|
|
172
172
|
|
|
173
173
|
# Returns a response containing attributes related to an order. This includes buyer preferences.
|
|
@@ -185,7 +185,7 @@ module Peddler
|
|
|
185
185
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
186
186
|
}.compact
|
|
187
187
|
parser = -> { GetAttributesResponse }
|
|
188
|
-
|
|
188
|
+
get(path, params:, rate_limit:, parser:)
|
|
189
189
|
end
|
|
190
190
|
|
|
191
191
|
# Sends a buyer a message to share a digital access key that is required to utilize digital content in their
|
|
@@ -205,7 +205,7 @@ module Peddler
|
|
|
205
205
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
206
206
|
}.compact
|
|
207
207
|
parser = -> { CreateDigitalAccessKeyResponse }
|
|
208
|
-
|
|
208
|
+
post(path, body:, params:, rate_limit:, parser:)
|
|
209
209
|
end
|
|
210
210
|
|
|
211
211
|
# Sends a critical message to a buyer that an unexpected problem was encountered affecting the completion of the
|
|
@@ -225,7 +225,7 @@ module Peddler
|
|
|
225
225
|
"marketplaceIds" => stringify_array(marketplace_ids),
|
|
226
226
|
}.compact
|
|
227
227
|
parser = -> { CreateUnexpectedProblemResponse }
|
|
228
|
-
|
|
228
|
+
post(path, body:, params:, rate_limit:, parser:)
|
|
229
229
|
end
|
|
230
230
|
|
|
231
231
|
# Sends a message providing the buyer an invoice
|
|
@@ -32,7 +32,7 @@ module Peddler
|
|
|
32
32
|
"payloadVersion" => payload_version,
|
|
33
33
|
}.compact
|
|
34
34
|
parser = -> { GetSubscriptionResponse }
|
|
35
|
-
|
|
35
|
+
get(path, params:, rate_limit:, parser:)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
# Creates a subscription for the specified notification type to be delivered to the specified destination. Before
|
|
@@ -49,7 +49,7 @@ module Peddler
|
|
|
49
49
|
def create_subscription(body, notification_type, rate_limit: 1.0)
|
|
50
50
|
path = "/notifications/v1/subscriptions/#{percent_encode(notification_type)}"
|
|
51
51
|
parser = -> { CreateSubscriptionResponse }
|
|
52
|
-
|
|
52
|
+
post(path, body:, rate_limit:, parser:)
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
# Returns information about a subscription for the specified notification type. The `getSubscriptionById`
|
|
@@ -65,7 +65,7 @@ module Peddler
|
|
|
65
65
|
def get_subscription_by_id(subscription_id, notification_type, rate_limit: 1.0)
|
|
66
66
|
path = "/notifications/v1/subscriptions/#{percent_encode(notification_type)}/#{percent_encode(subscription_id)}"
|
|
67
67
|
parser = -> { GetSubscriptionByIdResponse }
|
|
68
|
-
|
|
68
|
+
get(path, rate_limit:, parser:)
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
# Deletes the subscription indicated by the subscription identifier and notification type that you specify. The
|
|
@@ -83,7 +83,7 @@ module Peddler
|
|
|
83
83
|
def delete_subscription_by_id(subscription_id, notification_type, rate_limit: 1.0)
|
|
84
84
|
path = "/notifications/v1/subscriptions/#{percent_encode(notification_type)}/#{percent_encode(subscription_id)}"
|
|
85
85
|
parser = -> { DeleteSubscriptionByIdResponse }
|
|
86
|
-
|
|
86
|
+
delete(path, rate_limit:, parser:)
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
# Returns information about all destinations. The `getDestinations` operation is grantless. For more information,
|
|
@@ -95,7 +95,7 @@ module Peddler
|
|
|
95
95
|
def get_destinations(rate_limit: 1.0)
|
|
96
96
|
path = "/notifications/v1/destinations"
|
|
97
97
|
parser = -> { GetDestinationsResponse }
|
|
98
|
-
|
|
98
|
+
get(path, rate_limit:, parser:)
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
# Creates a destination resource to receive notifications. The `createDestination` operation is grantless. For
|
|
@@ -109,7 +109,7 @@ module Peddler
|
|
|
109
109
|
def create_destination(body, rate_limit: 1.0)
|
|
110
110
|
path = "/notifications/v1/destinations"
|
|
111
111
|
parser = -> { CreateDestinationResponse }
|
|
112
|
-
|
|
112
|
+
post(path, body:, rate_limit:, parser:)
|
|
113
113
|
end
|
|
114
114
|
|
|
115
115
|
# Returns information about the destination that you specify. The `getDestination` operation is grantless. For
|
|
@@ -123,7 +123,7 @@ module Peddler
|
|
|
123
123
|
def get_destination(destination_id, rate_limit: 1.0)
|
|
124
124
|
path = "/notifications/v1/destinations/#{percent_encode(destination_id)}"
|
|
125
125
|
parser = -> { GetDestinationResponse }
|
|
126
|
-
|
|
126
|
+
get(path, rate_limit:, parser:)
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
# Deletes the destination that you specify. The `deleteDestination` operation is grantless. For more information,
|
|
@@ -136,7 +136,7 @@ module Peddler
|
|
|
136
136
|
def delete_destination(destination_id, rate_limit: 1.0)
|
|
137
137
|
path = "/notifications/v1/destinations/#{percent_encode(destination_id)}"
|
|
138
138
|
parser = -> { DeleteDestinationResponse }
|
|
139
|
-
|
|
139
|
+
delete(path, rate_limit:, parser:)
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
142
|
end
|
|
@@ -14,9 +14,6 @@ module Peddler
|
|
|
14
14
|
# **Note**: This attribute is only available in the Brazil marketplace.
|
|
15
15
|
attribute?(:buyer_county, String, from: "BuyerCounty")
|
|
16
16
|
|
|
17
|
-
# @return [String] The anonymized email address of the buyer.
|
|
18
|
-
attribute?(:buyer_email, String, from: "BuyerEmail")
|
|
19
|
-
|
|
20
17
|
# @return [String] The buyer name or the recipient name.
|
|
21
18
|
attribute?(:buyer_name, String, from: "BuyerName")
|
|
22
19
|
|
|
@@ -17,9 +17,6 @@ module Peddler
|
|
|
17
17
|
# **Note**: This attribute is only available in the Brazil marketplace.
|
|
18
18
|
attribute?(:buyer_county, String, from: "BuyerCounty")
|
|
19
19
|
|
|
20
|
-
# @return [String] The anonymized email address of the buyer.
|
|
21
|
-
attribute?(:buyer_email, String, from: "BuyerEmail")
|
|
22
|
-
|
|
23
20
|
# @return [String] The buyer name or the recipient name.
|
|
24
21
|
attribute?(:buyer_name, String, from: "BuyerName")
|
|
25
22
|
|