ui/formatMoney.tsx
+ const total = useMemo(() => sum(items), [items]);
types/ConfirmModal.css
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
workers/customer.ts
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
emails/currency.md
- <button className="btn btn-link" onClick={close}>
components/orders/useCapture.json
if (!order) throw new NotFoundError(id);
});
lib/RefundToast.ts
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
utils/OrderTimeline.spec.ts
+ logger.info("refund.requested", { orderId });
api/invoice.tsx
}
+ const total = useMemo(() => sum(items), [items]);
test/OrderSummary.tsx
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
admin/pages/auditLog.css
- const total = items.reduce((a, b) => a + b.price, 0);
i18n/shipping.ts
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
server/routes/orders.md
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
});
store/RefundHistory.json
+ "refund.title": "Refund this order",
components/checkout/notifications.ts
+ status: "pending",
+ logger.info("refund.requested", { orderId });
hooks/payment.spec.ts
+ padding: var(--space-3) var(--space-4);
}
+ const total = useMemo(() => sum(items), [items]);
styles/OrderActions.tsx
- console.log("refund", orderId);
ui/reasons.tsx
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
types/StatusBadge.css
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
workers/ledger.ts
return <Money value={amount} currency={currency} />;
emails/useRefund.md
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
components/orders/featureFlags.json
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
+ logger.info("refund.requested", { orderId });
lib/tax.ts
- "refund.title": "Issue refund",
utils/refund.spec.ts
+ const reason = form.watch("reason");
- console.log("refund", orderId);
api/Money.tsx
});
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
test/session.tsx
+ type RefundState = "idle" | "submitting" | "done";
admin/pages/RefundForm.css
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
i18n/permissions.ts
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
server/routes/RefundDialog.md
+ export function formatAmount(value: number) {
store/webhooks.json
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
components/checkout/cart.ts
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
- console.log("refund", orderId);
hooks/formatMoney.spec.ts
if (!order) throw new NotFoundError(id);
styles/ConfirmModal.tsx
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
ui/customer.tsx
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
types/currency.css
}
workers/useCapture.ts
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
emails/RefundToast.md
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
components/orders/OrderTimeline.json
+ if (value == null) return "";
lib/invoice.ts
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
utils/OrderSummary.spec.ts
+ "refund.title": "Refund this order",
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
api/auditLog.tsx
+ status: "pending",
test/shipping.tsx
+ padding: var(--space-3) var(--space-4);
}
admin/pages/orders.css
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
i18n/RefundHistory.ts
+ await queue.add("email.refund", { orderId });
server/routes/notifications.md
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
store/payment.json
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
components/checkout/OrderActions.ts
- import { format } from "../lib/legacy-format";
hooks/reasons.spec.ts
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
styles/StatusBadge.tsx
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
}
ui/ledger.tsx
+ const reason = form.watch("reason");
types/useRefund.css
});
+ await queue.add("email.refund", { orderId });
workers/featureFlags.ts
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
emails/tax.md
- // TODO: tidy this up
components/orders/refund.json
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
lib/Money.ts
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
utils/session.spec.ts
+ import { format } from "@/lib/format";
api/RefundForm.tsx
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
test/permissions.tsx
if (!order) throw new NotFoundError(id);
});
+ await queue.add("email.refund", { orderId });
admin/pages/RefundDialog.css
- padding: 12px 16px;
i18n/webhooks.ts
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
server/routes/cart.md
}
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
store/formatMoney.json
+ it("shows the refund reason", async () => {
components/checkout/ConfirmModal.ts
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
hooks/customer.spec.ts
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
styles/currency.tsx
const order = await orders.retrieve(id);
ui/useCapture.tsx
+ "refund.title": "Refund this order",
- padding: 12px 16px;
types/RefundToast.css
+ status: "pending",
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
workers/OrderTimeline.ts
+ padding: var(--space-3) var(--space-4);
emails/invoice.md
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
components/orders/OrderSummary.json
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
lib/auditLog.ts
expect(screen.getByRole("dialog")).toBeVisible();
utils/shipping.spec.ts
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
api/orders.tsx
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
- padding: 12px 16px;
test/RefundHistory.tsx
+ <Button variant="ghost" onClick={close}>Cancel</Button>
admin/pages/notifications.css
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
i18n/payment.ts
+ const reason = form.watch("reason");
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
server/routes/OrderActions.md
});
store/reasons.json
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
components/checkout/StatusBadge.ts
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
hooks/ledger.spec.ts
+ const total = useMemo(() => sum(items), [items]);
styles/useRefund.tsx
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
ui/featureFlags.tsx
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
types/tax.css
- <button className="btn btn-link" onClick={close}>
workers/refund.ts
if (!order) throw new NotFoundError(id);
});
emails/Money.md
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
components/orders/session.json
+ logger.info("refund.requested", { orderId });
lib/RefundForm.ts
}
+ const total = useMemo(() => sum(items), [items]);
utils/permissions.spec.ts
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
api/RefundDialog.tsx
- const total = items.reduce((a, b) => a + b.price, 0);
test/webhooks.tsx
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
admin/pages/cart.css
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
});
i18n/formatMoney.ts
+ "refund.title": "Refund this order",
server/routes/ConfirmModal.md
+ status: "pending",
+ logger.info("refund.requested", { orderId });
store/customer.json
+ padding: var(--space-3) var(--space-4);
}
+ const total = useMemo(() => sum(items), [items]);
components/checkout/currency.ts
- console.log("refund", orderId);
hooks/useCapture.spec.ts
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
styles/RefundToast.tsx
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
ui/OrderTimeline.tsx
return <Money value={amount} currency={currency} />;
types/invoice.css
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
workers/OrderSummary.ts
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
+ logger.info("refund.requested", { orderId });
emails/auditLog.md
- "refund.title": "Issue refund",
components/orders/shipping.json
+ const reason = form.watch("reason");
- console.log("refund", orderId);
lib/orders.ts
});
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
utils/RefundHistory.spec.ts
+ type RefundState = "idle" | "submitting" | "done";
api/notifications.tsx
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
test/payment.tsx
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
admin/pages/OrderActions.css
+ export function formatAmount(value: number) {
i18n/reasons.ts
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
server/routes/StatusBadge.md
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
- console.log("refund", orderId);
store/ledger.json
if (!order) throw new NotFoundError(id);
components/checkout/useRefund.ts
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
hooks/featureFlags.spec.ts
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
styles/tax.tsx
}
ui/refund.tsx
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
types/Money.css
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
workers/session.ts
+ if (value == null) return "";
emails/RefundForm.md
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
components/orders/permissions.json
+ "refund.title": "Refund this order",
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
lib/RefundDialog.ts
+ status: "pending",
utils/webhooks.spec.ts
+ padding: var(--space-3) var(--space-4);
}
api/cart.tsx
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
test/formatMoney.tsx
+ await queue.add("email.refund", { orderId });
admin/pages/ConfirmModal.css
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
i18n/customer.ts
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
server/routes/currency.md
- import { format } from "../lib/legacy-format";
store/useCapture.json
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
components/checkout/RefundToast.ts
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
}
hooks/OrderTimeline.spec.ts
+ const reason = form.watch("reason");
styles/invoice.tsx
});
+ await queue.add("email.refund", { orderId });
ui/OrderSummary.tsx
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
types/auditLog.css
- // TODO: tidy this up
workers/shipping.ts
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
emails/orders.md
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
components/orders/RefundHistory.json
+ import { format } from "@/lib/format";
lib/notifications.ts
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
utils/payment.spec.ts
if (!order) throw new NotFoundError(id);
});
+ await queue.add("email.refund", { orderId });
api/OrderActions.tsx
- padding: 12px 16px;
test/reasons.tsx
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
admin/pages/StatusBadge.css
}
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
i18n/ledger.ts
+ it("shows the refund reason", async () => {
server/routes/useRefund.md
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
store/featureFlags.json
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
components/checkout/tax.ts
const order = await orders.retrieve(id);
hooks/refund.spec.ts
+ "refund.title": "Refund this order",
- padding: 12px 16px;
styles/Money.tsx
+ status: "pending",
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
ui/session.tsx
+ padding: var(--space-3) var(--space-4);
types/RefundForm.css
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
workers/permissions.ts
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
emails/RefundDialog.md
expect(screen.getByRole("dialog")).toBeVisible();
components/orders/webhooks.json
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
lib/cart.ts
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
- padding: 12px 16px;
utils/formatMoney.spec.ts
+ <Button variant="ghost" onClick={close}>Cancel</Button>
api/ConfirmModal.tsx
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
test/customer.tsx
+ const reason = form.watch("reason");
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
admin/pages/currency.css
});
i18n/useCapture.ts
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
server/routes/RefundToast.md
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
store/OrderTimeline.json
+ const total = useMemo(() => sum(items), [items]);
components/checkout/invoice.ts
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
hooks/OrderSummary.spec.ts
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
styles/auditLog.tsx
- <button className="btn btn-link" onClick={close}>
ui/shipping.tsx
if (!order) throw new NotFoundError(id);
});
types/orders.css
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
workers/RefundHistory.ts
+ logger.info("refund.requested", { orderId });
emails/notifications.md
}
+ const total = useMemo(() => sum(items), [items]);
components/orders/payment.json
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
lib/OrderActions.ts
- const total = items.reduce((a, b) => a + b.price, 0);
utils/reasons.spec.ts
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
api/StatusBadge.tsx
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
});
test/ledger.tsx
+ "refund.title": "Refund this order",
admin/pages/useRefund.css
+ status: "pending",
+ logger.info("refund.requested", { orderId });
i18n/featureFlags.ts
+ padding: var(--space-3) var(--space-4);
}
+ const total = useMemo(() => sum(items), [items]);
server/routes/tax.md
- console.log("refund", orderId);
store/refund.json
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
components/checkout/Money.ts
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
hooks/session.spec.ts
return <Money value={amount} currency={currency} />;
styles/RefundForm.tsx
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
ui/permissions.tsx
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
+ logger.info("refund.requested", { orderId });
types/RefundDialog.css
- "refund.title": "Issue refund",
workers/webhooks.ts
+ const reason = form.watch("reason");
- console.log("refund", orderId);
emails/cart.md
});
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
components/orders/formatMoney.json
+ type RefundState = "idle" | "submitting" | "done";
lib/ConfirmModal.ts
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
utils/customer.spec.ts
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
api/currency.tsx
+ export function formatAmount(value: number) {
test/useCapture.tsx
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
admin/pages/RefundToast.css
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
- console.log("refund", orderId);
i18n/OrderTimeline.ts
if (!order) throw new NotFoundError(id);
server/routes/invoice.md
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
store/OrderSummary.json
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
components/checkout/auditLog.ts
}
hooks/shipping.spec.ts
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
styles/orders.tsx
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
ui/RefundHistory.tsx
+ if (value == null) return "";
types/notifications.css
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
workers/payment.ts
+ "refund.title": "Refund this order",
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
emails/OrderActions.md
+ status: "pending",
components/orders/reasons.json
+ padding: var(--space-3) var(--space-4);
}
lib/StatusBadge.ts
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
utils/ledger.spec.ts
+ await queue.add("email.refund", { orderId });
api/useRefund.tsx
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
test/featureFlags.tsx
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
admin/pages/tax.css
- import { format } from "../lib/legacy-format";
i18n/refund.ts
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
server/routes/Money.md
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
}
store/session.json
+ const reason = form.watch("reason");
components/checkout/RefundForm.ts
});
+ await queue.add("email.refund", { orderId });
hooks/permissions.spec.ts
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
styles/RefundDialog.tsx
- // TODO: tidy this up
ui/webhooks.tsx
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
types/cart.css
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
workers/formatMoney.ts
+ import { format } from "@/lib/format";
emails/ConfirmModal.md
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
components/orders/customer.json
if (!order) throw new NotFoundError(id);
});
+ await queue.add("email.refund", { orderId });
lib/currency.ts
- padding: 12px 16px;
utils/useCapture.spec.ts
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
api/RefundToast.tsx
}
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
test/OrderTimeline.tsx
+ it("shows the refund reason", async () => {
admin/pages/invoice.css
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
i18n/OrderSummary.ts
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
server/routes/auditLog.md
const order = await orders.retrieve(id);
store/shipping.json
+ "refund.title": "Refund this order",
- padding: 12px 16px;
components/checkout/orders.ts
+ status: "pending",
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
hooks/RefundHistory.spec.ts
+ padding: var(--space-3) var(--space-4);
styles/notifications.tsx
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
ui/payment.tsx
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
types/OrderActions.css
expect(screen.getByRole("dialog")).toBeVisible();
workers/reasons.ts
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
emails/StatusBadge.md
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
- padding: 12px 16px;
components/orders/ledger.json
+ <Button variant="ghost" onClick={close}>Cancel</Button>
lib/useRefund.ts
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
utils/featureFlags.spec.ts
+ const reason = form.watch("reason");
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
api/tax.tsx
});
test/refund.tsx
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
admin/pages/Money.css
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
i18n/session.ts
+ const total = useMemo(() => sum(items), [items]);
server/routes/RefundForm.md
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
store/permissions.json
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
components/checkout/RefundDialog.ts
- <button className="btn btn-link" onClick={close}>
hooks/webhooks.spec.ts
if (!order) throw new NotFoundError(id);
});
styles/cart.tsx
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
ui/formatMoney.tsx
+ logger.info("refund.requested", { orderId });
types/ConfirmModal.css
}
+ const total = useMemo(() => sum(items), [items]);
workers/customer.ts
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
emails/currency.md
- const total = items.reduce((a, b) => a + b.price, 0);
components/orders/useCapture.json
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
lib/RefundToast.ts
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
});
utils/OrderTimeline.spec.ts
+ "refund.title": "Refund this order",
api/invoice.tsx
+ status: "pending",
+ logger.info("refund.requested", { orderId });
test/OrderSummary.tsx
+ padding: var(--space-3) var(--space-4);
}
+ const total = useMemo(() => sum(items), [items]);
admin/pages/auditLog.css
- console.log("refund", orderId);
i18n/shipping.ts
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
server/routes/orders.md
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
store/RefundHistory.json
return <Money value={amount} currency={currency} />;
components/checkout/notifications.ts
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
hooks/payment.spec.ts
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
+ logger.info("refund.requested", { orderId });
styles/OrderActions.tsx
- "refund.title": "Issue refund",
ui/reasons.tsx
+ const reason = form.watch("reason");
- console.log("refund", orderId);
types/StatusBadge.css
});
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
workers/ledger.ts
+ type RefundState = "idle" | "submitting" | "done";
emails/useRefund.md
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
components/orders/featureFlags.json
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
lib/tax.ts
+ export function formatAmount(value: number) {
utils/refund.spec.ts
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
api/Money.tsx
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
- console.log("refund", orderId);
test/session.tsx
if (!order) throw new NotFoundError(id);
admin/pages/RefundForm.css
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
i18n/permissions.ts
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
server/routes/RefundDialog.md
}
store/webhooks.json
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
components/checkout/cart.ts
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
hooks/formatMoney.spec.ts
+ if (value == null) return "";
styles/ConfirmModal.tsx
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
ui/customer.tsx
+ "refund.title": "Refund this order",
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
types/currency.css
+ status: "pending",
workers/useCapture.ts
+ padding: var(--space-3) var(--space-4);
}
emails/RefundToast.md
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
components/orders/OrderTimeline.json
+ await queue.add("email.refund", { orderId });
lib/invoice.ts
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
utils/OrderSummary.spec.ts
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
api/auditLog.tsx
- import { format } from "../lib/legacy-format";
test/shipping.tsx
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
admin/pages/orders.css
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
}
i18n/RefundHistory.ts
+ const reason = form.watch("reason");
server/routes/notifications.md
});
+ await queue.add("email.refund", { orderId });
store/payment.json
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
components/checkout/OrderActions.ts
- // TODO: tidy this up
hooks/reasons.spec.ts
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
styles/StatusBadge.tsx
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
ui/ledger.tsx
+ import { format } from "@/lib/format";
types/useRefund.css
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
workers/featureFlags.ts
if (!order) throw new NotFoundError(id);
});
+ await queue.add("email.refund", { orderId });
emails/tax.md
- padding: 12px 16px;
components/orders/refund.json
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
lib/Money.ts
}
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
utils/session.spec.ts
+ it("shows the refund reason", async () => {
api/RefundForm.tsx
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
test/permissions.tsx
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
admin/pages/RefundDialog.css
const order = await orders.retrieve(id);
i18n/webhooks.ts
+ "refund.title": "Refund this order",
- padding: 12px 16px;
server/routes/cart.md
+ status: "pending",
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
store/formatMoney.json
+ padding: var(--space-3) var(--space-4);
components/checkout/ConfirmModal.ts
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
hooks/customer.spec.ts
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
styles/currency.tsx
expect(screen.getByRole("dialog")).toBeVisible();
ui/useCapture.tsx
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
types/RefundToast.css
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
- padding: 12px 16px;
workers/OrderTimeline.ts
+ <Button variant="ghost" onClick={close}>Cancel</Button>
emails/invoice.md
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
components/orders/OrderSummary.json
+ const reason = form.watch("reason");
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
lib/auditLog.ts
});
utils/shipping.spec.ts
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
api/orders.tsx
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
test/RefundHistory.tsx
+ const total = useMemo(() => sum(items), [items]);
admin/pages/notifications.css
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
i18n/payment.ts
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
server/routes/OrderActions.md
- <button className="btn btn-link" onClick={close}>
store/reasons.json
if (!order) throw new NotFoundError(id);
});
components/checkout/StatusBadge.ts
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
hooks/ledger.spec.ts
+ logger.info("refund.requested", { orderId });
styles/useRefund.tsx
}
+ const total = useMemo(() => sum(items), [items]);
ui/featureFlags.tsx
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
types/tax.css
- const total = items.reduce((a, b) => a + b.price, 0);
workers/refund.ts
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
emails/Money.md
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
});
components/orders/session.json
+ "refund.title": "Refund this order",
lib/RefundForm.ts
+ status: "pending",
+ logger.info("refund.requested", { orderId });
utils/permissions.spec.ts
+ padding: var(--space-3) var(--space-4);
}
+ const total = useMemo(() => sum(items), [items]);
api/RefundDialog.tsx
- console.log("refund", orderId);
test/webhooks.tsx
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
admin/pages/cart.css
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
i18n/formatMoney.ts
return <Money value={amount} currency={currency} />;
server/routes/ConfirmModal.md
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
store/customer.json
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
+ logger.info("refund.requested", { orderId });
components/checkout/currency.ts
- "refund.title": "Issue refund",
hooks/useCapture.spec.ts
+ const reason = form.watch("reason");
- console.log("refund", orderId);
styles/RefundToast.tsx
});
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
ui/OrderTimeline.tsx
+ type RefundState = "idle" | "submitting" | "done";
types/invoice.css
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
workers/OrderSummary.ts
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
emails/auditLog.md
+ export function formatAmount(value: number) {
components/orders/shipping.json
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
lib/orders.ts
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
- console.log("refund", orderId);
utils/RefundHistory.spec.ts
if (!order) throw new NotFoundError(id);
api/notifications.tsx
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
test/payment.tsx
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
admin/pages/OrderActions.css
}
i18n/reasons.ts
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
server/routes/StatusBadge.md
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
store/ledger.json
+ if (value == null) return "";
components/checkout/useRefund.ts
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
hooks/featureFlags.spec.ts
+ "refund.title": "Refund this order",
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
styles/tax.tsx
+ status: "pending",
ui/refund.tsx
+ padding: var(--space-3) var(--space-4);
}
types/Money.css
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
workers/session.ts
+ await queue.add("email.refund", { orderId });
emails/RefundForm.md
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
components/orders/permissions.json
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
lib/RefundDialog.ts
- import { format } from "../lib/legacy-format";
utils/webhooks.spec.ts
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
api/cart.tsx
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
}
test/formatMoney.tsx
+ const reason = form.watch("reason");
admin/pages/ConfirmModal.css
});
+ await queue.add("email.refund", { orderId });
i18n/customer.ts
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
server/routes/currency.md
- // TODO: tidy this up
store/useCapture.json
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
components/checkout/RefundToast.ts
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
+ status: "pending",
hooks/OrderTimeline.spec.ts
+ import { format } from "@/lib/format";
styles/invoice.tsx
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
ui/OrderSummary.tsx
if (!order) throw new NotFoundError(id);
});
+ await queue.add("email.refund", { orderId });
types/auditLog.css
- padding: 12px 16px;
workers/shipping.ts
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
emails/orders.md
}
+ const total = useMemo(() => sum(items), [items]);
- import { format } from "../lib/legacy-format";
components/orders/RefundHistory.json
+ it("shows the refund reason", async () => {
lib/notifications.ts
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
utils/payment.spec.ts
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
+ const reason = form.watch("reason");
api/OrderActions.tsx
const order = await orders.retrieve(id);
test/reasons.tsx
+ "refund.title": "Refund this order",
- padding: 12px 16px;
admin/pages/StatusBadge.css
+ status: "pending",
+ logger.info("refund.requested", { orderId });
- // TODO: tidy this up
i18n/ledger.ts
+ padding: var(--space-3) var(--space-4);
server/routes/useRefund.md
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
store/featureFlags.json
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
+ import { format } from "@/lib/format";
components/checkout/tax.ts
expect(screen.getByRole("dialog")).toBeVisible();
hooks/refund.spec.ts
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
styles/Money.tsx
- import { format } from "../lib/legacy-format";
+ "refund.title": "Refund this order",
- padding: 12px 16px;
ui/session.tsx
+ <Button variant="ghost" onClick={close}>Cancel</Button>
types/RefundForm.css
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
workers/permissions.ts
+ const reason = form.watch("reason");
- console.log("refund", orderId);
+ it("shows the refund reason", async () => {
emails/RefundDialog.md
});
components/orders/webhooks.json
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
lib/cart.ts
- // TODO: tidy this up
return <Money value={amount} currency={currency} />;
const order = await orders.retrieve(id);
utils/formatMoney.spec.ts
+ const total = useMemo(() => sum(items), [items]);
api/ConfirmModal.tsx
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
test/customer.tsx
+ import { format } from "@/lib/format";
- "refund.title": "Issue refund",
+ padding: var(--space-3) var(--space-4);
admin/pages/currency.css
- <button className="btn btn-link" onClick={close}>
i18n/useCapture.ts
if (!order) throw new NotFoundError(id);
});
server/routes/RefundToast.md
- padding: 12px 16px;
+ type RefundState = "idle" | "submitting" | "done";
expect(screen.getByRole("dialog")).toBeVisible();
store/OrderTimeline.json
+ logger.info("refund.requested", { orderId });
components/checkout/invoice.ts
}
+ const total = useMemo(() => sum(items), [items]);
hooks/OrderSummary.spec.ts
+ it("shows the refund reason", async () => {
+ export function formatAmount(value: number) {
+ <Button variant="ghost" onClick={close}>Cancel</Button>
styles/auditLog.tsx
- const total = items.reduce((a, b) => a + b.price, 0);
ui/shipping.tsx
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
types/orders.css
const order = await orders.retrieve(id);
if (!order) throw new NotFoundError(id);
});
workers/RefundHistory.ts
+ "refund.title": "Refund this order",
emails/notifications.md
+ status: "pending",
+ logger.info("refund.requested", { orderId });
components/orders/payment.json
+ padding: var(--space-3) var(--space-4);
}
+ const total = useMemo(() => sum(items), [items]);
lib/OrderActions.ts
- console.log("refund", orderId);
utils/reasons.spec.ts
+ await queue.add("email.refund", { orderId });
- const total = items.reduce((a, b) => a + b.price, 0);
api/StatusBadge.tsx
expect(screen.getByRole("dialog")).toBeVisible();
+ if (value == null) return "";
- <button className="btn btn-link" onClick={close}>
payment/payment-module.ts
const amount = input.amount;
+ if (!amount) amount = captured⊥ breaks Law 2
return this.recordRefund_(payment, amount);
ui/RefundDialog.tsx
const order = await orders.retrieve(id);
+ const reason = form.watch("reason");
}
return <Money value={amount} currency={currency} />;
ui/refund.tsx
+ padding: var(--space-3) var(--space-4);
- // TODO: tidy this up
+ if (value == null) return "";
- "refund.title": "Issue refund",
ui/StatusBadge.tsx
expect(screen.getByRole("dialog")).toBeVisible();
+ import { format } from "@/lib/format";
+ status: "pending",