Uh oh!
There was an error while loading. Please reload this page.
add missing resources and tests, bump version - #71
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds several missing API resources to the Method client (teams, secrets, managed accounts, forwarding requests, manual connect, and new simulate sub-resources), expands the integration test suite to cover them, updates some webhook/report/account type literals, and bumps the package version to 3.0.0.
Changes:
- Add new resources: Teams (including MLE public keys), Secrets, Managed Accounts (+ transactions), Forwarding Requests, Entity Manual Connect, and Simulate endpoints (verification session amounts + payment via instrument).
- Add integration tests for the new resources and extend existing entity/account tests.
- Update webhook event literals/status typing, report type literals, account subscription type literals, and add account payment instrument delete support; bump version to 3.0.0.
Reviewed changes
Copilot reviewed 22 out of 26 changed files in this pull request and generated 20 comments.
Show a summary per file
| File | Description |
|---|---|
| test/resources/Team_test.py | Adds integration tests for teams and teams.public_keys. |
| test/resources/Secret_test.py | Adds integration tests for secrets CRUD-ish flow. |
| test/resources/ManagedAccount_test.py | Adds integration tests for managed_accounts list/retrieve and transactions list. |
| test/resources/ForwardingRequest_test.py | Adds integration tests for forwarding_requests create/retrieve. |
| test/resources/Entity_test.py | Adds manual connect integration tests (and import). |
| test/resources/Account_test.py | Skips 3 async retrieval tests; adds payment instrument delete test. |
| setup.py | Bumps package version from 2.1.1 to 3.0.0. |
| method/resources/Webhook.py | Adds webhook type literals and introduces WebhookStatusLiterals; changes webhook status typing. |
| method/resources/Teams/Team.py | Adds Team resource + MLE public key sub-resource. |
| method/resources/Teams/init.py | Package init file for Teams resources. |
| method/resources/Simulate/VerificationAmounts.py | Adds simulate verification-session amounts endpoint wrapper. |
| method/resources/Simulate/Payments.py | Adds simulate.payments.payment_instruments sub-resource. |
| method/resources/Simulate/PaymentInstruments.py | Adds simulate “create payment via payment instrument” wrapper. |
| method/resources/Simulate/Accounts.py | Adds simulate.accounts(...).verification_sessions. |
| method/resources/Secrets/Secret.py | Adds Secrets resource wrapper. |
| method/resources/Secrets/init.py | Package init file for Secrets resources. |
| method/resources/Report.py | Extends report type literals. |
| method/resources/ManagedAccounts/ManagedAccount.py | Adds Managed Accounts resource + transactions sub-resource. |
| method/resources/ManagedAccounts/init.py | Package init file for ManagedAccounts resources. |
| method/resources/ForwardingRequests/ForwardingRequest.py | Adds Forwarding Requests resource wrapper. |
| method/resources/ForwardingRequests/init.py | Package init file for ForwardingRequests resources. |
| method/resources/Entities/ManualConnect.py | Adds Entity manual connect resource wrapper + create opts typing. |
| method/resources/Entities/Entity.py | Wires manual_connect into entity sub-resources. |
| method/resources/Accounts/Types.py | Extends account subscription type literals. |
| method/resources/Accounts/PaymentInstruments.py | Adds delete operation for account payment instruments. |
| method/method.py | Wires new top-level resources into the Method client. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
No description provided.