import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Order, Order$Outbound } from "./order.js"; /** * Sent when a new order is created. * * @remarks * * A new order is created when: * * * A customer purchases a one-time product. In this case, `billing_reason` is set to `purchase`. * * A customer starts a subscription. In this case, `billing_reason` is set to `subscription_create`. * * A subscription is renewed. In this case, `billing_reason` is set to `subscription_cycle`. * * A subscription is upgraded or downgraded with an immediate proration invoice. In this case, `billing_reason` is set to `subscription_update`. * * > [!WARNING] * > The order might not be paid yet, so the `status` field might be `pending`. * * **Discord & Slack support:** Full */ export type WebhookOrderCreatedPayload = { type: "order.created"; timestamp: Date; data: Order; }; /** @internal */ export declare const WebhookOrderCreatedPayload$inboundSchema: z.ZodMiniType; /** @internal */ export type WebhookOrderCreatedPayload$Outbound = { type: "order.created"; timestamp: string; data: Order$Outbound; }; /** @internal */ export declare const WebhookOrderCreatedPayload$outboundSchema: z.ZodMiniType; export declare function webhookOrderCreatedPayloadToJSON(webhookOrderCreatedPayload: WebhookOrderCreatedPayload): string; export declare function webhookOrderCreatedPayloadFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=webhookordercreatedpayload.d.ts.map