Skip to content

Conversation

@abhishek-potbhare
Copy link
Contributor

@abhishek-potbhare abhishek-potbhare commented Apr 24, 2025

Version change for muffin_man
updating documentation in README.md and CHANGELOG.md
Ticket:
https://app.clickup.com/t/2323726/DIST-20437

Changes also done through the below pr:
#98

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 corrects the query parameter name from PostedBefore to postedBefore for the Finances API endpoints. Key changes include:

  • Updating the stub method in spec/support/finances/stub_finances.rb to conditionally append the postedBefore parameter.
  • Updating tests in spec/muffin_man/finances/v20240619_spec.rb to pass the additional posted_before argument.
  • Bumping the version and updating documentation in README.md and CHANGELOG.md.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
spec/support/finances/stub_finances.rb Modified stub definition to include posted_before in the URL when provided.
spec/muffin_man/finances/v20240619_spec.rb Updated test cases to supply posted_before to match the modified stub.
lib/muffin_man/version.rb Bumped version to 2.4.14 reflecting the new changes.
README.md Documented the addition of Finances API v2024-06-19 support.
CHANGELOG.md Logged changes for version 2.4.14, including the query parameter fix.

@abhishek-potbhare abhishek-potbhare changed the title [DIST-20437] correct query params from PostedBefore to postedBefore [DIST-20437] correct query params of Finances API v2024-06-19 sp-api Apr 24, 2025
def stub_list_financial_transactions(posted_after:)
stub_request(:get, "https://#{hostname}/finances/2024-06-19/transactions?postedAfter=#{posted_after}")
def stub_list_financial_transactions(posted_after:, posted_before: nil)
# stub_request(:get, "https://#{hostname}/finances/2024-06-19/transactions?postedAfter=#{posted_after}")
Copy link
Contributor

Choose a reason for hiding this comment

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

✂️

@abhishek-potbhare abhishek-potbhare changed the title [DIST-20437] correct query params of Finances API v2024-06-19 sp-api [DIST-20437] Fixed query params of Finances API v2024-06-19 Apr 24, 2025
@abhishek-potbhare abhishek-potbhare force-pushed the DIST-20437_Amzn-Financial-Transactions-Correct-Query-Parameters-for-amazon-sp-api branch from f819533 to 490465c Compare April 24, 2025 12:16
@abhishek-potbhare abhishek-potbhare changed the title [DIST-20437] Fixed query params of Finances API v2024-06-19 [DIST-20437] Version change for muffin_man Apr 24, 2025
@abhishek-potbhare abhishek-potbhare merged commit 8b5753f into master Apr 28, 2025
7 checks passed
@abhishek-potbhare abhishek-potbhare deleted the DIST-20437_Amzn-Financial-Transactions-Correct-Query-Parameters-for-amazon-sp-api branch April 28, 2025 22:37
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.

4 participants