source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/traffic.rb | Ruby | mit | 308 | main | 853 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# Traffic metric group. A null value for a given metric means that the metric is not available.
Traffic = Structure.new do
# @return [Strin... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/product_availability.rb | Ruby | mit | 308 | main | 3,061 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# Product availability metric group. A null value for a given metric means that the metric is not available.
ProductAvailability = Structure.new do... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/manufacturing_view.rb | Ruby | mit | 308 | main | 1,282 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# The manufacturing view provides metrics about products manufactured by the Vendor for the given time period,
# including both totals (aggregate a... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/costs.rb | Ruby | mit | 308 | main | 2,136 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# Costs metric group. A null value for a given metric means that the metric is not available.
Costs = Structure.new do
# @return [Amount] T... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/manufacturing_view_metrics.rb | Ruby | mit | 308 | main | 1,313 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# Metrics broken down by metric groups, e.g., Product availability, Orders, Costs, Customer satisfaction.
ManufacturingViewMetrics = Structure.new ... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/units_with_value.rb | Ruby | mit | 308 | main | 465 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# Number of units with their corresponding monetary value.
UnitsWithValue = Structure.new do
# @return [String] Number of units.
at... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/group_by_attributes.rb | Ruby | mit | 308 | main | 4,268 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# Group by attributes, essentially catalog attributes, some of which can be null, e.g., group by brand.
GroupByAttributes = Structure.new do
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/shipped_orders.rb | Ruby | mit | 308 | main | 941 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# Shipped orders metric group. A null value for a given metric means that the metric is not available.
ShippedOrders = Structure.new do
# @... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/orders.rb | Ruby | mit | 308 | main | 1,238 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# Orders metric group. A null value for a given metric means that the metric is not available.
Orders = Structure.new do
# @return [Amount]... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/manufacturing_view_metrics_grouped_by.rb | Ruby | mit | 308 | main | 728 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# Manufacturing view metrics grouped by the selected "group by" attributes, e.g., brand, ASIN.
ManufacturingViewMetricsGroupedBy = Structure.new do... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/vendor_analytics20240930/forecasted_demand_weekly.rb | Ruby | mit | 308 | main | 935 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module VendorAnalytics20240930
# Forecasted customer demand by week. A null value for a given metric means that the metric is not available.
ForecastedDemandWeekly = Structure.ne... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/mfn_per_unit_cost.rb | Ruby | mit | 308 | main | 1,022 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The item level per unit cost provided by the seller and applicable to Merchant Fulfilled Network (MFN) products.
# Fields in this type will be null if ... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/fee.rb | Ruby | mit | 308 | main | 2,878 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# A fee applied to a given product in the seller's account within a given date range. Fee information can be found
# [here](https://sellercentral.amazon.... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/economics_property.rb | Ruby | mit | 308 | main | 522 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The properties used in economics calculation.
EconomicsProperty = Structure.new do
# @return [String] Property name
attribute?(:propert... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/fba_per_unit_cost.rb | Ruby | mit | 308 | main | 713 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The item level per unit cost provided by the seller and applicable to Fulfillment by Amazon (FBA) products.
# Fields in this type will be null if not p... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/fee_component.rb | Ruby | mit | 308 | main | 988 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The fee component data applied to a given product in the seller's account within a given date range. It's
# breakdown of parent fee.
FeeComponent... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/aggregated_detail.rb | Ruby | mit | 308 | main | 2,386 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The aggregated transaction detail for the seller's account aggregated by transaction event type and transaction
# type, for example: charge and "fbaFul... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/per_unit_cost.rb | Ruby | mit | 308 | main | 1,415 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The item level per unit cost provided by seller. Fields in this type will be null if not provided by the seller.
PerUnitCost = Structure.new do
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/net_proceeds.rb | Ruby | mit | 308 | main | 972 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The net proceeds for a given product in the seller's account for a given time range. These fields are calculated
# as sales.netProductSales - sum of fe... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/fee_summary.rb | Ruby | mit | 308 | main | 663 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The fees data summary for the seller's account aggregated by transaction event type: charge.
FeeSummary = Structure.new do
# @return [Fee] Char... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/economics.rb | Ruby | mit | 308 | main | 3,351 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The seller economics data for a given product in the seller's account.
Economics = Structure.new do
# @return [Array<AdSummary>] The advertisin... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/analytics_economics20240315.rb | Ruby | mit | 308 | main | 1,869 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# A root type for seller economics queries version 2024_03_15.
AnalyticsEconomics20240315 = Structure.new do
# @return [Array<Economics>] A query... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/sales.rb | Ruby | mit | 308 | main | 2,132 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The sales data for a given product in the seller's account within a given date range.
Sales = Structure.new do
# @return [Amount] The average p... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/ad_summary.rb | Ruby | mit | 308 | main | 640 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# The advertisements spend data summary for the seller's account aggregated by transaction event type: charge.
AdSummary = Structure.new do
# @re... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/economics20240315/amount.rb | Ruby | mit | 308 | main | 517 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module Economics20240315
# Monetary amount with the corresponding currency code.
Amount = Structure.new do
# @return [Float] The amount.
attribute?(:amount, Float... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20231115/by_date_sales.rb | Ruby | mit | 308 | main | 5,599 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20231115
# The sales data for the seller's account aggregated by date.
ByDateSales = Structure.new do
# @return [Amount] The average ordered product... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20231115/by_asin_sales.rb | Ruby | mit | 308 | main | 1,788 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20231115
# The sales data for the seller's account aggregated by ASIN.
ByASINSales = Structure.new do
# @return [Amount] The amount of ordered produ... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20231115/analytics_salesandtraffic20231115.rb | Ruby | mit | 308 | main | 847 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
require "time"
module Peddler
module DataKiosk
module SalesAndTraffic20231115
# A root type for Analytics Sales and Traffic queries version 2023_11_15.
AnalyticsSalesandtraffic20231115 = Structure.new do
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20231115/amount.rb | Ruby | mit | 308 | main | 523 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20231115
# Monetary amount with the corresponding currency code.
Amount = Structure.new do
# @return [Float] The amount.
attribute?(:amount,... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20231115/sales_and_traffic_by_asin.rb | Ruby | mit | 308 | main | 2,029 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20231115
# The sales and traffic data for the seller's account aggregated by ASIN.
SalesAndTrafficByASIN = Structure.new do
# @return [String] The A... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20231115/by_asin_traffic.rb | Ruby | mit | 308 | main | 10,708 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20231115
# The traffic data for the seller's account aggregated by ASIN.
ByASINTraffic = Structure.new do
# @return [String] Browser page views are ... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20231115/by_date_traffic.rb | Ruby | mit | 308 | main | 8,163 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20231115
# The traffic data for the seller's account aggregated by date.
ByDateTraffic = Structure.new do
# @return [String] The average number of o... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20231115/sales_and_traffic_by_date.rb | Ruby | mit | 308 | main | 1,044 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
require "time"
module Peddler
module DataKiosk
module SalesAndTraffic20231115
# The sales and traffic data for the seller's account aggregated by date.
SalesAndTrafficByDate = Structure.new do
# @return... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20240424/amount.rb | Ruby | mit | 308 | main | 523 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20240424
# Monetary amount with the corresponding currency code.
Amount = Structure.new do
# @return [Float] The amount.
attribute?(:amount,... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20240424/analytics_salesandtraffic20240424.rb | Ruby | mit | 308 | main | 1,216 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
require "time"
module Peddler
module DataKiosk
module SalesAndTraffic20240424
# A root type for Analytics Sales and Traffic queries version 2024_04_24.
AnalyticsSalesandtraffic20240424 = Structure.new do
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20240424/sales_and_traffic_trends.rb | Ruby | mit | 308 | main | 2,190 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20240424
SalesAndTrafficTrends = Structure.new do
# @return [String] Indicates the ASIN level at which the data is aggregated. Currently only CHILD is sup... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20240424/sales_and_traffic_by_date.rb | Ruby | mit | 308 | main | 1,044 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
require "time"
module Peddler
module DataKiosk
module SalesAndTraffic20240424
# The sales and traffic data for the seller's account aggregated by date.
SalesAndTrafficByDate = Structure.new do
# @return... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20240424/by_date_traffic.rb | Ruby | mit | 308 | main | 9,155 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20240424
# The traffic data for the seller's account aggregated by date.
ByDateTraffic = Structure.new do
# @return [String] The average number of o... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20240424/by_asin_sales.rb | Ruby | mit | 308 | main | 4,235 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20240424
# The sales data for the seller's account aggregated by ASIN.
ByASINSales = Structure.new do
# @return [Amount] The amount of ordered produ... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20240424/by_date_sales.rb | Ruby | mit | 308 | main | 7,845 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20240424
# The sales data for the seller's account aggregated by date.
ByDateSales = Structure.new do
# @return [Amount] The average ordered product... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20240424/by_asin_traffic.rb | Ruby | mit | 308 | main | 10,708 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20240424
# The traffic data for the seller's account aggregated by ASIN.
ByASINTraffic = Structure.new do
# @return [String] Browser page views are ... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | lib/peddler/data_kiosk/sales_and_traffic20240424/sales_and_traffic_by_asin.rb | Ruby | mit | 308 | main | 2,029 | # frozen_string_literal: true
# This file is generated. Do not edit.
require "structure"
module Peddler
module DataKiosk
module SalesAndTraffic20240424
# The sales and traffic data for the seller's account aggregated by ASIN.
SalesAndTrafficByASIN = Structure.new do
# @return [String] The A... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler_test.rb | Ruby | mit | 308 | main | 428 | # frozen_string_literal: true
require "helper"
class PeddlerTest < Minitest::Test
def test_entrypoint
refute_empty(Peddler::APIs.constants)
end
def test_convenience_methods
assert_equal(Peddler::APIs::FBAInventoryV1, Peddler.fba_inventory_v1)
assert_equal(Peddler::APIs::Reports20210630, Peddler.rep... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/helper.rb | Ruby | mit | 308 | main | 311 | # frozen_string_literal: true
require_relative "support/silence_warnings"
require "minitest/autorun"
require "minitest/mock"
require "peddler"
require_relative "support/configurable"
require_relative "support/recordable"
require_relative "support/fixture_helpers"
require_relative "support/feature_helpers" |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/endpoint_test.rb | Ruby | mit | 308 | main | 1,026 | # frozen_string_literal: true
require "helper"
module Peddler
class EndpointTest < Minitest::Test
def setup
@endpoint = Endpoint.all.sample
end
def test_selling_region
assert(@endpoint.selling_region)
end
def test_host
assert(@endpoint.host)
end
def test_production
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/lwa_test.rb | Ruby | mit | 308 | main | 1,989 | # frozen_string_literal: true
require "helper"
module Peddler
class LWATest < Minitest::Test
include Configurable, Recordable
def test_request
response = LWA.request(client_id:, client_secret:, refresh_token: refresh_token)
parsed = response.parse
assert_instance_of(Peddler::LWAToken, pa... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/api_test.rb | Ruby | mit | 308 | main | 3,651 | # frozen_string_literal: true
require "helper"
module Peddler
class APITest < Minitest::Test
include Recordable
def setup
@api = API.new("eu-west-1", "access_token")
super
end
def test_endpoint_uri
assert_kind_of(URI::HTTPS, @api.endpoint_uri)
end
def test_sandbox
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/response_test.rb | Ruby | mit | 308 | main | 5,965 | # frozen_string_literal: true
require "helper"
module Peddler
class ResponseTest < Minitest::Test
def test_parse
wrapper = Response.new(response)
assert_equal(payload, wrapper.parse)
end
def test_to_h
wrapper = Response.new(response)
assert_equal(payload, wrapper.to_h)
end... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/error_test.rb | Ruby | mit | 308 | main | 4,186 | # frozen_string_literal: true
require "helper"
module Peddler
class ErrorTest < Minitest::Test
def test_invalid_input
response = mock_http_response(
body: '{"errors":[{"code":"InvalidInput","message":"InvalidInput"}]}',
status: 400,
)
error = Error.build(response)
assert... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/money_test.rb | Ruby | mit | 308 | main | 1,562 | # frozen_string_literal: true
require "helper"
module Peddler
class MoneyTest < Minitest::Test
def test_parse_with_string_amount
amount_hash = { "Amount" => "99.99", "CurrencyCode" => "USD" }
money = Money.parse(amount_hash)
assert_equal("99.99", money.amount)
assert_equal("USD", money.... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/acronyms_test.rb | Ruby | mit | 308 | main | 1,143 | # frozen_string_literal: true
require "helper"
module Peddler
class AcronymsTest < Minitest::Test
def test_applies_single_acronyms
assert_equal("B2BAnyOfferChanged", Acronyms.apply("B2bAnyOfferChanged"))
assert_equal("TestAPIV1", Acronyms.apply("TestApiV1"))
end
def test_applies_end_acronym... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/marketplace_test.rb | Ruby | mit | 308 | main | 1,285 | # frozen_string_literal: true
require "helper"
module Peddler
class MarketplaceTest < Minitest::Test
def setup
@marketplace = Marketplace.find(country_code)
end
def test_id
assert(@marketplace.id)
end
def test_country_code
assert(@marketplace.country_code)
end
def te... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/types_integration_test.rb | Ruby | mit | 308 | main | 14,747 | # frozen_string_literal: true
require "helper"
module Peddler
class TypesIntegrationTest < Minitest::Test
def test_orders_response_parsing
result = parse_orders_response
assert_instance_of(APIs::OrdersV0::GetOrdersResponse, result)
assert_instance_of(APIs::OrdersV0::OrdersList, result.payload... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/data_kiosk/sales_and_traffic_20240424_test.rb | Ruby | mit | 308 | main | 2,786 | # frozen_string_literal: true
require "helper"
module Peddler
module DataKiosk
class SalesAndTraffic20240424Test < Minitest::Test
include FeatureHelpers
def test_sales_and_traffic_by_date_query
query = <<~GRAPHQL
query {
analytics_salesAndTraffic_2024_04_24 {
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/data_kiosk/sales_and_traffic_by_asin_20240424_test.rb | Ruby | mit | 308 | main | 2,937 | # frozen_string_literal: true
require "helper"
module Peddler
module DataKiosk
class SalesAndTrafficByAsin20240424Test < Minitest::Test
include FeatureHelpers
def test_sales_and_traffic_by_asin_query
query = <<~GRAPHQL
query {
analytics_salesAndTraffic_2024_04_24 {
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/data_kiosk/economics_20240315_test.rb | Ruby | mit | 308 | main | 5,077 | # frozen_string_literal: true
require "helper"
module Peddler
module DataKiosk
class Economics20240315Test < Minitest::Test
include FeatureHelpers
def test_economics_query
query = <<~GRAPHQL
query {
analytics_economics_2024_03_15 {
economics(
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/reports/vendor_real_time_inventory_test.rb | Ruby | mit | 308 | main | 898 | # frozen_string_literal: true
require "helper"
module Peddler
module Reports
class VendorRealTimeInventoryTest < Minitest::Test
include FixtureHelpers
def setup
@fixture_data = load_fixture("reports/vendor_real_time_inventory.json")
end
def test_report_parsing
report = ... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/data_kiosk_2023_11_15_test.rb | Ruby | mit | 308 | main | 801 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class DataKiosk20231115Test < Minitest::Test
include FeatureHelpers
def test_get_queries
api.sandbox.get_queries(page_size: 1, processing_statuses: ["DONE", "IN_PROGRESS"])
end
def test_create_query
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/product_type_definitions_2020_09_01_test.rb | Ruby | mit | 308 | main | 618 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class ProductTypeDefinitions20200901Test < Minitest::Test
include FeatureHelpers
def test_get_definitions_product_type
res = api.get_definitions_product_type(
"PRODUCT",
Marketplace.id("UK"),
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/listings_restrictions_2021_08_01_test.rb | Ruby | mit | 308 | main | 462 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class ListingsRestrictions20210801Test < Minitest::Test
include FeatureHelpers
def test_get_listings_restrictions
res = api.get_listings_restrictions(
"188864544X",
"A34PPN1ZLYCOGT",
Mark... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/catalog_items_2022_04_01_test.rb | Ruby | mit | 308 | main | 878 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class CatalogItems20220401Test < Minitest::Test
include FeatureHelpers
def test_search_catalog_items
res = api.search_catalog_items(
Marketplace.ids("UK"),
identifiers: "188864544X",
iden... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/sales_v1_test.rb | Ruby | mit | 308 | main | 378 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class SalesV1Test < Minitest::Test
include FeatureHelpers
def test_get_order_metrics
res = api.get_order_metrics(["A1805IZSGTT6HS"], "2025-05-01T00:00:00-00:00--2025-06-01T00:00:00-00:00", "Total")
assert_pre... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/shipping_v1_test.rb | Ruby | mit | 308 | main | 1,319 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class ShippingV1Test < Minitest::Test
include FeatureHelpers
def test_create_shipment
res = api.sandbox.create_shipment({ "clientReferenceId" => "TEST_CASE_200" })
assert_predicate(res.status, :success?)
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/catalog_items_v0_test.rb | Ruby | mit | 308 | main | 355 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class CatalogItemsV0Test < Minitest::Test
include FeatureHelpers
def test_list_catalog_categories
res = api.sandbox.list_catalog_categories("TEST_CASE_200", asin: "asin_200")
assert_predicate(res.status, :suc... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/listings_items_2021_08_01_test.rb | Ruby | mit | 308 | main | 2,770 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class ListingsItems20210801Test < Minitest::Test
include FeatureHelpers
def test_put_listings_item
body = {
productType: "PRODUCT",
requirements: "LISTING_OFFER_ONLY",
attributes: {
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/notifications_v1_test.rb | Ruby | mit | 308 | main | 1,458 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class NotificationsV1Test < Minitest::Test
include FeatureHelpers
def test_get_destinations
res = api(grantless: true).sandbox.get_destinations
assert_predicate(res.status, :ok?)
end
def test_cre... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/product_pricing_2022_05_01_test.rb | Ruby | mit | 308 | main | 2,543 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class ProductPricing20220501Test < Minitest::Test
include FeatureHelpers
def test_get_featured_offer_expected_price_batch
payload = {
"requests" => [
{
"marketplaceId" => "MARKETPLA... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/fba_inbound_eligibility_v1_test.rb | Ruby | mit | 308 | main | 367 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class FBAInboundEligibilityV1Test < Minitest::Test
include FeatureHelpers
def test_get_item_eligibility_preview
res = api.sandbox.get_item_eligibility_preview("TEST_CASE_200", "INBOUND")
assert_predicate(res.... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/sellers_v1_test.rb | Ruby | mit | 308 | main | 316 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class SellersV1Test < Minitest::Test
include FeatureHelpers
def test_get_marketplace_participations
res = api.get_marketplace_participations
assert_predicate(res.status, :ok?)
end
end
end
end |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/product_pricing_v0_test.rb | Ruby | mit | 308 | main | 5,029 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class ProductPricingV0Test < Minitest::Test
include FeatureHelpers
def test_get_pricing
res = api.sandbox.get_pricing("ATVPDKIKX0DER", "Asin")
assert_predicate(res.status, :success?)
end
def test... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/orders_v0_test.rb | Ruby | mit | 308 | main | 3,429 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class OrdersV0Test < Minitest::Test
def test_order_boolean_predicates
data = {
"AmazonOrderId" => "123",
"PurchaseDate" => "2025-01-01",
"LastUpdateDate" => "2025-01-01",
"OrderStatus"... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/product_fees_v0_test.rb | Ruby | mit | 308 | main | 1,904 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class ProductFeesV0Test < Minitest::Test
include FeatureHelpers
def test_get_my_fees_estimate_for_sku
payload = {
"FeesEstimateRequest": {
"MarketplaceId": "ATVPDKIKX0DER",
"IsAmazonF... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/supply_sources_2020_07_01_test.rb | Ruby | mit | 308 | main | 1,131 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class SupplySources20200701Test < Minitest::Test
include FeatureHelpers
def test_get_supply_sources
res = api.sandbox.get_supply_sources
assert_predicate(res.status, :success?)
end
def test_creat... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/reports_2021_06_30_test.rb | Ruby | mit | 308 | main | 1,857 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class Reports20210630Test < Minitest::Test
include FeatureHelpers
def test_get_reports
res = api.sandbox.get_reports(
report_types: ["FEE_DISCOUNTS_REPORT", "GET_AFN_INVENTORY_DATA"],
processing_st... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/customer_feedback_2024_06_01_test.rb | Ruby | mit | 308 | main | 1,509 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class CustomerFeedback20240601Test < Minitest::Test
include FeatureHelpers
def test_get_item_review_topics
res = api.sandbox.get_item_review_topics("B08PD3JNPF", "ATVPDKIKX0DER", "MENTIONS")
assert_predicate(... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/feeds_2021_06_30_test.rb | Ruby | mit | 308 | main | 941 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class Feeds20210630Test < Minitest::Test
include FeatureHelpers
def test_get_feeds
res = api.sandbox.get_feeds(
feed_types: ["POST_PRODUCT_DATA"],
page_size: 10,
processing_statuses: ["CA... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/tokens_2021_03_01_test.rb | Ruby | mit | 308 | main | 568 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class Tokens20210301Test < Minitest::Test
include FeatureHelpers
def test_create_restricted_data_token
res = api.sandbox.create_restricted_data_token({
"value" => {
"targetApplication" => "amzn1.... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/fulfillment_inbound_v0_test.rb | Ruby | mit | 308 | main | 1,247 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class FulfillmentInboundV0Test < Minitest::Test
include FeatureHelpers
def test_get_prep_instructions
res = api.sandbox.get_prep_instructions("US", asin_list: ["ASIN1"])
assert_predicate(res.status, :success?... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/finances_v0_test.rb | Ruby | mit | 308 | main | 3,483 | # frozen_string_literal: true
require "helper"
require "structure"
module Peddler
module APIs
class FinancesV0Test < Minitest::Test
def test_charge_component_money_field
data = {
"ChargeType" => "Principal",
"ChargeAmount" => {
"CurrencyCode" => "EUR",
"... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/fulfillment_inbound_2024_03_20_test.rb | Ruby | mit | 308 | main | 12,320 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class FulfillmentInbound20240320Test < Minitest::Test
include FeatureHelpers
def test_list_inbound_plans
res = api.sandbox.list_inbound_plans(status: "ACTIVE", sort_by: "LAST_UPDATED_TIME", sort_order: "ASC", page_siz... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/apis/replenishment_2022_11_07_test.rb | Ruby | mit | 308 | main | 599 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class Replenishment20221107Test < Minitest::Test
include FeatureHelpers
def test_get_selling_partner_metrics
res = api.sandbox.get_selling_partner_metrics
assert_predicate(res.status, :success?)
end
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/b2b_any_offer_changed_test.rb | Ruby | mit | 308 | main | 603 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/notification-type-values.md
require "helper"
module Peddler
module Notifications
class B2BAnyOfferChangedTest < Minitest::Test
include FixtureHelpers
def setup
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/any_offer_changed_test.rb | Ruby | mit | 308 | main | 511 | # frozen_string_literal: true
# Fixture extracted from a real notification payload.
require "helper"
module Peddler
module Notifications
class AnyOfferChangedTest < Minitest::Test
include FixtureHelpers
def setup
@payload = load_fixture("notifications/any_offer_changed.json")
end
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/fee_promotion_test.rb | Ruby | mit | 308 | main | 690 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/notification-type-values.md
#
# Note: Fixed property name from "PromotionInformations" to "PromotionInformation"
# to match the actual schema.
require "helper"
module Peddler
module... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/fba_outbound_shipment_status_test.rb | Ruby | mit | 308 | main | 631 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/notification-type-values.md
require "helper"
module Peddler
module Notifications
class FBAOutboundShipmentStatusTest < Minitest::Test
include FixtureHelpers
def set... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/feed_processing_finished_test.rb | Ruby | mit | 308 | main | 631 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/notification-type-values.md
require "helper"
module Peddler
module Notifications
class FeedProcessingFinishedTest < Minitest::Test
include FixtureHelpers
def setup
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/fba_inventory_availability_change_test.rb | Ruby | mit | 308 | main | 652 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/notification-type-values.md
require "helper"
module Peddler
module Notifications
class FBAInventoryAvailabilityChangeTest < Minitest::Test
include FixtureHelpers
de... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/report_processing_finished_test.rb | Ruby | mit | 308 | main | 625 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/notification-type-values.md
require "helper"
module Peddler
module Notifications
class ReportProcessingFinishedTest < Minitest::Test
include FixtureHelpers
def setu... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/detail_page_traffic_event_test.rb | Ruby | mit | 308 | main | 751 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/notification-type-values.md
#
# Note: Fixed property name from "detailPageTrafficEventNotifications" to "detailPageTrafficEvents"
# to match the actual schema.
require "helper"
module... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/order_change_test.rb | Ruby | mit | 308 | main | 594 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/tutorial-subscribe-to-order-change-notification.md
require "helper"
module Peddler
module Notifications
class OrderChangeTest < Minitest::Test
include FixtureHelpers
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/listings_item_status_change_test.rb | Ruby | mit | 308 | main | 627 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/notification-type-values.md
require "helper"
module Peddler
module Notifications
class ListingsItemStatusChangeTest < Minitest::Test
include FixtureHelpers
def setu... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/branded_item_content_change_test.rb | Ruby | mit | 308 | main | 627 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/notification-type-values.md
require "helper"
module Peddler
module Notifications
class BrandedItemContentChangeTest < Minitest::Test
include FixtureHelpers
def setu... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/notifications/data_kiosk_query_processing_finished_test.rb | Ruby | mit | 308 | main | 660 | # frozen_string_literal: true
# Fixture extracted from Amazon's online documentation.
# https://developer-docs.amazon.com/sp-api/docs/data-kiosk-notification.md
require "helper"
module Peddler
module Notifications
class DataKioskQueryProcessingFinishedTest < Minitest::Test
include FixtureHelpers
d... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/feeds/listings_feed_processing_report_schema_test.rb | Ruby | mit | 308 | main | 2,085 | # frozen_string_literal: true
require "helper"
module Peddler
module Feeds
class ListingsFeedProcessingReportSchemaTest < Minitest::Test
include FixtureHelpers
def setup
@data = load_fixture("feeds/listings_feed_processing_report_with_optional_fields.json")
end
def test_parses_... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/errors/quota_exceeded_test.rb | Ruby | mit | 308 | main | 544 | # frozen_string_literal: true
require "helper"
module Peddler
module Errors
class QuotaExceededTest < Minitest::Test
include FeatureHelpers
# I depleted quota before recording this test.
def test_quota_exceeded
error = assert_raises(Peddler::Errors::QuotaExceeded) do
api.get... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/errors/not_found_test.rb | Ruby | mit | 308 | main | 436 | # frozen_string_literal: true
require "helper"
module Peddler
module Errors
class NotFoundTest < Minitest::Test
include FeatureHelpers
def test_not_found
error = assert_raises(Peddler::Errors::NotFound) do
api.get_report("1234567")
end
assert_equal(404, error.respo... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/helpers/reports_2021_06_30_test.rb | Ruby | mit | 308 | main | 1,493 | # frozen_string_literal: true
require "helper"
require "csv"
module Peddler
module Helpers
class Reports20210630Test < Minitest::Test
extend Forwardable
include FeatureHelpers
include Reports20210630
def_delegators :api, :get_report_document, :parser
def test_download_report_docu... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/helpers/data_kiosk_2023_11_15_test.rb | Ruby | mit | 308 | main | 343 | # frozen_string_literal: true
require "helper"
module Peddler
module APIs
class DataKiosk20231115HelperTest < Minitest::Test
def test_download_query_document_method_exists
api = Peddler.data_kiosk.new("us-east-1", "test-access-token")
assert_respond_to(api, :download_query_document)
... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/peddler/helpers/feeds_2021_06_30_test.rb | Ruby | mit | 308 | main | 2,677 | # frozen_string_literal: true
require "helper"
module Peddler
module Helpers
class Feeds20210630Test < Minitest::Test
extend Forwardable
include FeatureHelpers
include Feeds20210630
def_delegators :api, :parser
def test_upload_feed_document
url = "https://tortuga-prod-eu.... |
github | lineofflight/peddler | https://github.com/lineofflight/peddler | test/support/configurable.rb | Ruby | mit | 308 | main | 482 | # frozen_string_literal: true
module Configurable
def aws_region
config[:aws_region]
end
def client_id
config[:client_id]
end
def client_secret
config[:client_secret]
end
def refresh_token
config[:refresh_token]
end
def config
["config.json", "config.example.json"].each do |pa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.