-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add billing api helper to remix package for updating a usage billing …
…plan's capped amount (#1691) * initial commit: remix redirect wrapper and test * run pnpm build-docs * add changeset * change SUBSCRIPTION_LINE_ITEM_ID example to real example + pnpm build-docs
- Loading branch information
Showing
11 changed files
with
775 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
'@shopify/shopify-app-remix': minor | ||
--- | ||
|
||
Adds API to update the capped amount for a usage billing plan. | ||
|
||
A new billing helper function has been added to update the capped amount for a usage billing plan. This function redirects to a confirmation page where the merchant can confirm the update. | ||
|
||
```ts | ||
await billing.updateUsageCappedAmount({ | ||
subscriptionLineItemId: "gid://shopify/AppSubscriptionLineItem/12345?v=1&index=1", | ||
cappedAmount: { | ||
amount: 10, | ||
currencyCode: "USD" | ||
}, | ||
}); | ||
``` | ||
|
||
Learn more about [App Billing](https://shopify.dev/docs/apps/launch/billing/subscription-billing). |
194 changes: 190 additions & 4 deletions
194
packages/apps/shopify-app-remix/docs/generated/generated_docs_data.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.