open_monetization_pull_request
Open the Last Price integration code (the files generate_monetization_code writes) as a pull request in one of the workspace's own GitHub repositories, through the installed Last Price GitHub App. Commits to a new branch (last-price/billing-setup unless branch is given) and opens a pull request against base or the default branch; never merges, and refuses a branch that exists. Early access. Needs a Last Price credential with billing write scope and the App installed (get_github_app_connection). Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Branch to open the pull request against; the default branch when absent. | |
| title | No | Pull request title. | |
| branch | No | New branch for the commit; last-price/billing-setup when absent. | |
| agent_id | No | One of your agents, filled into the code. | |
| payments | No | Include billing through Stripe (default true). | |
| customers | No | Include creating customers at sign-up (default true). | |
| framework | Yes | ||
| event_name | No | The billable event the example records, like chat.completed. | |
| repository | Yes | owner/name, like acme/agent-app; must be a repository the installation can use. |