@coursebuilder/core
Version:
Core package for Course Builder
33 lines (31 loc) • 1.22 kB
JavaScript
import {
__name
} from "./chunk-VLQXSCFN.js";
// src/inngest/stripe/event-customer-subscription-created.ts
var STRIPE_CUSTOMER_SUBSCRIPTION_CREATED_EVENT = "stripe/customer-subscription-created";
var stripeCustomerSubscriptionCreatedConfig = {
id: "stripe-customer-subscription-created",
name: "Stripe Customer Subscription Created"
};
var stripeCustomerSubscriptionCreatedTrigger = {
event: STRIPE_CUSTOMER_SUBSCRIPTION_CREATED_EVENT
};
var stripeCustomerSubscriptionCreatedHandler = /* @__PURE__ */ __name(async ({ event, step, db }) => {
const subscription = event.data.stripeEvent.data.object;
if (subscription.status !== "active" && subscription.status !== "trialing") {
return;
}
}, "stripeCustomerSubscriptionCreatedHandler");
var stripeCustomerSubscriptionCreated = {
config: stripeCustomerSubscriptionCreatedConfig,
trigger: stripeCustomerSubscriptionCreatedTrigger,
handler: stripeCustomerSubscriptionCreatedHandler
};
export {
STRIPE_CUSTOMER_SUBSCRIPTION_CREATED_EVENT,
stripeCustomerSubscriptionCreatedConfig,
stripeCustomerSubscriptionCreatedTrigger,
stripeCustomerSubscriptionCreatedHandler,
stripeCustomerSubscriptionCreated
};
//# sourceMappingURL=chunk-OAIKPGKY.js.map