///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
import { SecretConfig } from "../types/secret-config.js";
import { StoreDatabaseRaw } from "../../../features/store/backend/database/types/schema.js";
import { PrepareRoleManager } from "../../../features/auth/aspects/permissions/interactions/types.js";
export declare function configureStripe({ config, storeDatabaseRaw, prepareRoleManager, }: {
config: SecretConfig;
storeDatabaseRaw: StoreDatabaseRaw;
prepareRoleManager: PrepareRoleManager;
}): Promise<{
stripe: import("stripe").Stripe;
stripeLiaison: {
accounts: {
create(params: import("stripe").Stripe.AccountCreateParams): Promise>;
retrieve(id: string): Promise>;
createLoginLink(id: string): Promise>;
};
accountLinks: {
create(params: import("stripe").Stripe.AccountLinkCreateParams): Promise>;
};
account(stripeAccount: string): {
billingPortal: {
create(params: import("stripe").Stripe.BillingPortal.SessionCreateParams): Promise>;
};
customers: {
create(params: import("stripe").Stripe.CustomerCreateParams): Promise>;
retrieve(id: string): Promise>;
update(id: string, params: import("stripe").Stripe.CustomerUpdateParams): Promise>;
listPaymentMethods(customer: string, params: import("stripe").Stripe.CustomerListPaymentMethodsParams): Promise>>;
};
products: {
create(params: import("stripe").Stripe.ProductCreateParams): Promise>;
retrieve(id: string): Promise>;
update(id: string, params: import("stripe").Stripe.ProductUpdateParams): Promise>;
};
prices: {
list(params: import("stripe").Stripe.PriceListParams): Promise>>;
create(params: import("stripe").Stripe.PriceCreateParams): Promise>;
retrieve(id: string): Promise>;
update(id: string, params: import("stripe").Stripe.PriceUpdateParams): Promise>;
};
paymentMethods: {
create(params: import("stripe").Stripe.PaymentMethodCreateParams): Promise>;
retrieve(id: string): Promise>;
detach(id: string): Promise>;
};
setupIntents: {
retrieve(id: string): Promise>;
create(params: import("stripe").Stripe.SetupIntentCreateParams): Promise>;
};
paymentIntents: {
retrieve(id: string): Promise>;
create(params: import("stripe").Stripe.PaymentIntentCreateParams): Promise>;
};
subscriptions: {
list(params: import("stripe").Stripe.SubscriptionListParams): Promise>>;
create(params: import("stripe").Stripe.SubscriptionCreateParams): Promise>;
retrieve(id: string): Promise>;
update(id: string, params: import("stripe").Stripe.SubscriptionUpdateParams): Promise>;
};
subscriptionItems: {
del(id: string, params: import("stripe").Stripe.SubscriptionItemDeleteParams): Promise>;
};
checkout: {
sessions: {
create(params: import("stripe").Stripe.Checkout.SessionCreateParams): Promise>;
};
};
};
};
stripeWebhooks: {
"account.updated": (event: import("stripe").Stripe.Event) => Promise;
"customer.subscription.updated": (event: import("stripe").Stripe.Event) => Promise;
"invoice.paid": (event: import("stripe").Stripe.Event) => Promise;
};
mockStripeOperations: {
linkStripeAccount(stripeAccountId: string): Promise;
linkStripeAccountThatIsIncomplete(stripeAccountId: string): Promise;
checkoutSubscriptionTier(stripeAccountId: string, stripeSessionId: string): Promise;
createNewDefaultPaymentMethod({ stripeAccountId, customer, isFailing, }: {
stripeAccountId: string;
customer: string;
isFailing: boolean;
}): Promise>;
removeAllPaymentMethods(customer: string): Promise;
wipeAll: {
customers(): Promise;
products(): Promise;
};
};
}>;