The best way to control Claude Code, Codex and more from any computer or phone

main
ts 11 lines 354 Bytes
Raw
1 import * as Domain from "@alchemy.run/domain";
2 import * as Schema from "effect/Schema";
3 import { Cents } from "../Money.ts";
4
5 /** The external payment processor. */
6 export class Payments extends Domain.ExternalSystem("Payments", {
7 refund: {
8 args: { settlementId: Schema.String, amount: Cents },
9 success: { refundId: Schema.String },
10 },
11 }) {}