Files
cfw-autumn/packages/openapi/v2.1/contracts/attachContract.ts
2026-02-16 17:45:45 +00:00

14 lines
443 B
TypeScript

import { AttachParamsV0Schema } from "@api/billing/attachV2/attachParamsV0.js";
import { BillingResponseSchema } from "@api/billing/common/billingResponse.js";
import { oc } from "@orpc/contract";
export const attachContract = oc
.route({
method: "POST",
path: "/v1/attach",
operationId: "attach",
tags: ["billing"],
})
.input(AttachParamsV0Schema.omit({ customer_id: true, customer_data: true }))
.output(BillingResponseSchema);