23 lines
557 B
TypeScript
23 lines
557 B
TypeScript
import { AttachBranch } from "./AttachBranch.js";
|
|
|
|
export enum ProrationBehavior {
|
|
Immediately = "immediately",
|
|
NextBilling = "next_billing",
|
|
None = "none",
|
|
}
|
|
|
|
export interface AttachConfig {
|
|
onlyCheckout: boolean;
|
|
invoiceCheckout: boolean;
|
|
carryUsage: boolean; // Whether to carry over existing usages
|
|
branch: AttachBranch;
|
|
proration: ProrationBehavior;
|
|
disableTrial: boolean;
|
|
invoiceOnly: boolean;
|
|
disableMerge: boolean;
|
|
sameIntervals: boolean;
|
|
carryTrial: boolean;
|
|
finalizeInvoice: boolean;
|
|
requirePaymentMethod: boolean;
|
|
}
|