Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/features/billing/stripe-event-factories.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const createStripeCustomerSubscriptionCreatedEventFactory: Factory<
},
customer_balance: null,
konbini: null,
payto: null,
sepa_debit: null,
us_bank_account: null,
},
Expand Down
8 changes: 8 additions & 0 deletions app/features/billing/stripe-factories.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export const createStripeCustomerPortalSessionFactory: Factory<
// realistic created timestamp within last 10 days
created = Math.floor(faker.date.recent({ days: 10 }).getTime() / 1000),
customer = createStripeCustomerFactory().id,
customer_account = null,
flow = null,
livemode = false,
locale = null,
Expand All @@ -132,6 +133,7 @@ export const createStripeCustomerPortalSessionFactory: Factory<
configuration,
created,
customer,
customer_account,
flow,
id,
livemode,
Expand Down Expand Up @@ -263,6 +265,7 @@ export const createStripeSubscriptionFactory: Factory<Stripe.Subscription> = ({
collection_method = "charge_automatically",
currency = "usd",
customer = createStripeCustomerFactory().id,
customer_account = null,
days_until_due = null,
default_payment_method = null,
default_source = null,
Expand Down Expand Up @@ -335,6 +338,7 @@ export const createStripeSubscriptionFactory: Factory<Stripe.Subscription> = ({
created,
currency,
customer,
customer_account,
days_until_due,
default_payment_method,
default_source,
Expand Down Expand Up @@ -426,6 +430,7 @@ export const createStripeCheckoutSessionFactory: Factory<
tax_exempt: "none" as Stripe.Checkout.Session.CustomerDetails.TaxExempt,
tax_ids: [],
},
customer_account = null,
customer_email = null,
discounts = [],
expires_at = created + 86_400, // 24 hours from creation
Expand Down Expand Up @@ -503,6 +508,7 @@ export const createStripeCheckoutSessionFactory: Factory<
custom_fields,
custom_text,
customer,
customer_account,
customer_creation,
customer_details,
customer_email,
Expand Down Expand Up @@ -626,6 +632,7 @@ export const createStripeSubscriptionScheduleFactory: Factory<
start_date: Math.floor(faker.date.recent().getTime() / 1000),
},
customer = createStripeCustomerFactory().id,
customer_account = null,
default_settings = {
application_fee_percent: null,
automatic_tax: {
Expand Down Expand Up @@ -668,6 +675,7 @@ export const createStripeSubscriptionScheduleFactory: Factory<
created,
current_phase,
customer,
customer_account,
default_settings,
end_behavior,
id,
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
"assist": {
"actions": {
"source": {
Expand Down
Loading