Skip to content

Conversation

@robertdbailey
Copy link

No description provided.

Copilot AI review requested due to automatic review settings September 11, 2025 23:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for Amazon's Replenishment API version 2022-11-07, which enables sellers to manage subscription offers and retrieve related business metrics.

  • Implemented three main API operations: list_offers, list_offer_metrics, and get_selling_partner_metrics
  • Added comprehensive test coverage with mock data for various scenarios including filters and forecast metrics
  • Created supporting test fixtures with realistic JSON response data

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
lib/muffin_man.rb Added require statement for the new replenishment module
lib/muffin_man/replenishment/v20221107.rb Main implementation of the Replenishment API client with three endpoint methods
spec/muffin_man/replenishment/v20221107_spec.rb Test suite covering all three API operations with various parameter combinations
spec/support/sp_api_helpers.rb Added stub methods for mocking replenishment API endpoints in tests
spec/support/replenishment/*.json Test fixture files containing mock API responses for different scenarios

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

# @return [Hash] Request body
def build_search_request_body(marketplace_ids, params, allowed_params)
marketplace_ids = Array(marketplace_ids)

Copy link

Copilot AI Sep 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the trailing whitespace after marketplace_ids = Array(marketplace_ids).

Suggested change

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants