import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { CreditGrantResponse } from "./credit-grant-response.js"; import { InvoiceResponse } from "./invoice-response.js"; import { ProrationDetails } from "./proration-details.js"; import { SDKValidationError } from "./sdk-validation-error.js"; import { SubscriptionChangeType } from "./subscription-change-type.js"; import { SubscriptionSummary } from "./subscription-summary.js"; /** * Response after successfully executing a subscription plan change */ export type SubscriptionChangeExecuteResponse = { changeType?: SubscriptionChangeType | undefined; /** * credit_grants contains any credit grants created for proration credits */ creditGrants?: Array | undefined; /** * effective_date is when the change took effect */ effectiveDate?: Date | undefined; invoice?: InvoiceResponse | undefined; /** * is_scheduled indicates if the change was scheduled or executed immediately */ isScheduled?: boolean | undefined; /** * metadata from the request */ metadata?: { [k: string]: string; } | undefined; newSubscription?: SubscriptionSummary | undefined; oldSubscription?: SubscriptionSummary | undefined; prorationApplied?: ProrationDetails | undefined; /** * schedule_id is the ID of the created schedule (only if is_scheduled=true) */ scheduleId?: string | undefined; /** * scheduled_at is when the change will execute (only if is_scheduled=true) */ scheduledAt?: Date | undefined; }; /** @internal */ export declare const SubscriptionChangeExecuteResponse$inboundSchema: z.ZodMiniType; export declare function subscriptionChangeExecuteResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=subscription-change-execute-response.d.ts.map