@tokenoftrust/storefront-runner 7.6.0 → 7.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@
2
2
  import type { APIContext } from "astro";
3
3
  import { cartProposalConfirm } from "@/lib/checkout/proposal/proposalRoutes";
4
4
  import { pageUrlForm } from "@/lib/content/seo/urlForm";
5
+ import { carrierPolicyForTenant } from "@/lib/fulfillment/readiness";
5
6
  import { withBase } from "@/lib/publication/shared/basePath";
6
7
 
7
8
  export const prerender = false;
@@ -9,4 +10,8 @@ export const prerender = false;
9
10
  const productPagePath = (context: APIContext, handle: string): string =>
10
11
  withBase(context.locals.basePath ?? "", pageUrlForm(`/products/${handle}`, context.locals.tenant.seo));
11
12
 
12
- export const POST = (context: APIContext): Promise<Response> => cartProposalConfirm(context, { productPagePath });
13
+ const adultSignatureRequired = (context: APIContext): boolean =>
14
+ carrierPolicyForTenant(context.locals.tenant).adultSignatureRequired;
15
+
16
+ export const POST = (context: APIContext): Promise<Response> =>
17
+ cartProposalConfirm(context, { productPagePath, adultSignatureRequired });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "7.6.0",
3
+ "version": "7.6.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
6
6
  "packageManager": "pnpm@11.9.0",
@@ -140,6 +140,8 @@ export interface CheckoutOrderDetailResponse {
140
140
  export interface CheckoutOrderListFilters {
141
141
  queue?: string;
142
142
  status?: string;
143
+ /** Optional redeemed coupon code filter (case-insensitive). */
144
+ coupon?: string;
143
145
  /** ISO datetime lower bound. */
144
146
  from?: string;
145
147
  /** ISO datetime upper bound. */