Uh oh!
There was an error while loading. Please reload this page.
chore: add report schedules/types, account attributes, preauth apis - #19
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Method API OpenAPI spec to the 2026-03-30 target version and introduces new endpoints/schemas for PreauthSignals assessments, report schedules, and Opal session event listing, along with a small schema enhancement for forwarding requests.
Changes:
- Add
/preauthand/preauth/{preauthId}endpoints plus Preauth schemas. - Add
/report_schedulesCRUD endpoints plus report schedule schemas; refactor reporttypeinto a sharedReportType. - Add
/opal/eventsendpoint and Opal event schemas; extend forwarding requests withupdated_at.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates documented target API version. |
| openapi/openapi.yaml | Registers new tags and mounts new Preauth/Report Schedules/Opal Events paths. |
| openapi/paths/preauth.yaml | Adds Preauth list/create/retrieve endpoints. |
| openapi/components/schemas/preauth.yaml | Introduces Preauth resource + request/response schemas. |
| openapi/paths/report_schedules.yaml | Adds report schedule list/create/retrieve/update/delete endpoints. |
| openapi/components/schemas/report_schedule.yaml | Introduces report schedule resource + request/response schemas. |
| openapi/paths/opal.yaml | Adds Opal session events endpoint. |
| openapi/components/schemas/report.yaml | Extracts and expands ReportType, reusing it via $ref. |
| openapi/paths/account_attributes.yaml | Enhances create description and adds optional request body. |
| openapi/components/schemas/account.yaml | Adds AccountAttributeCreateRequest schema. |
| openapi/components/schemas/forwarding_request.yaml | Adds required updated_at field to forwarding requests. |
| manifests/operation-ids.json | Adds operation IDs for new endpoints. |
| manifests/mounted-routes.json | Adds mounted routes for new endpoints. |
| latest/openapi.bundled.yaml | Updates bundled spec output to include new endpoints/schemas. |
| latest/openapi.bundled.json | Updates bundled spec output (JSON) to include new endpoints/schemas. |
| .mcp.json | Adds MCP server configuration for MethodFi docs. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+182
to
+198
| PreauthCreateRequest: | ||
| type: object | ||
| description: >- | ||
| Request to compute a PreauthSignals assessment. Exactly one of `account_id` or `card` | ||
| must be provided; supplying both returns a `400` error. | ||
| properties: | ||
| account_id: | ||
| type: string | ||
| description: The ID of an authenticated Method Account to assess. | ||
| pattern: ^acc_\w+$ | ||
| example: acc_4m9amk4KFiaQX | ||
| card: | ||
| $ref: '#/PreauthCard' | ||
| purchase: | ||
| $ref: '#/PreauthPurchase' | ||
| metadata: | ||
| $ref: common.yaml#/Metadata |
ossiggy
approved these changes
Aug 13, 2026
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.