Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
Compare
Choose a tag to compare
@shopify-github-actions-access shopify-github-actions-access released this 29 Nov 14:06
· 544 commits to main since this release
e65ccc9

Minor Changes

  • bf0664b: Line Item Billing

    Now with the future flag unstable_lineItemBilling you can specify multiple line items in a single billing request. This will allow you to create a single billing request for a subscription with both recurring and usage based app billing.

    You will define the new billingConfig as follows.

    const shopify = shopifyApp({
      billing: {
        MultipleLineItems: {
          replacementBehavior: BillingReplacementBehavior.ApplyImmediately,
          trialDays: 7,
          lineItems: [
            {
              interval: BillingInterval.Usage,
              amount: 30,
              currencyCode: "USD",
              terms: "per 1000 emails",
            },
            {
              interval: BillingInterval.Every30Days,
              amount: 30,
              currencyCode: "USD",
              discount: {
                durationLimitInIntervals: 3,
                value: {
                  amount: 10,
                },
              },
            },
          ],
        },
      },
      futures: {
        unstable_lineItemBilling: true,
      },
    });
  • eae5a4a: Introduce token exchange API for fetching access tokens. This feature is currently unstable and is hidden behind the unstable_tokenExchange future flag.