Skip to content

Add missing endpoints for activation, deletion, tags, carriers, and order info#13

Open
0ln wants to merge 7 commits intoshaiu:devfrom
0ln:feat/missing-api-endpoints
Open

Add missing endpoints for activation, deletion, tags, carriers, and order info#13
0ln wants to merge 7 commits intoshaiu:devfrom
0ln:feat/missing-api-endpoints

Conversation

@0ln
Copy link
Copy Markdown

@0ln 0ln commented Jan 7, 2026

Describe what the PR does:

  • Adds new Profile methods: activate_package, delete_package, set_tag_type, set_carrier, track_info_by_id, order_info_by_id, save_order_info.
  • Adds fixtures/tests for new endpoints, including error/empty cases, and encryption utilities (to achieve 100% coverage).
  • Updates README usage examples for the new methods.
  • Tests: script/test (34 passed, 99% coverage 35 passed, 100% coverage).

Does this fix a specific issue?

N/A

Checklist:

  • Confirm that one or more new tests are written for the new functionality.
  • Run tests and ensure everything passes (with 100% test coverage).
  • Update README.md with any new documentation.
  • Add yourself to AUTHORS.md.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @0ln, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the package management capabilities of the API by integrating new endpoints for activating, deleting, and modifying package details. It also provides functionality to retrieve and update order-specific information, making the system more robust and feature-rich for users managing their tracked items.

Highlights

  • New Profile Methods: Introduced several new asynchronous methods to the Profile class, including activate_package, delete_package, set_tag_type, set_carrier, track_info_by_id, order_info_by_id, and save_order_info.
  • Comprehensive Testing: Added new test fixtures and extensive unit tests for all new endpoints, covering successful operations, handling of non-existent packages, and various error/empty response scenarios.
  • Documentation Update: Updated the README.md file with clear usage examples for the newly implemented package management methods.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively adds several new endpoints for package management, including activation, deletion, and order information handling. The changes are comprehensive, with new tests for each endpoint and updated documentation. My review includes suggestions to improve code maintainability by reducing duplication in both the core logic and the test suite, and a minor refactoring for more idiomatic Python.

Comment thread pyseventeentrack/profile.py Outdated
Comment thread pyseventeentrack/profile.py Outdated
Comment thread pyseventeentrack/profile.py Outdated
Comment thread tests/test_profile.py Outdated
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.

1 participant