@stacksjs/payments 0.75.528 → 0.75.535
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billable/portal.d.ts +0 -8
- package/dist/connect/financials.d.ts +1 -3
- package/dist/connect/index.d.ts +1 -2
- package/dist/connect/invoice-purchase.d.ts +1 -3
- package/dist/driver/adyen.d.ts +1 -0
- package/dist/driver/lemonsqueezy.d.ts +1 -0
- package/dist/driver/paddle.d.ts +1 -0
- package/dist/driver/stripe.d.ts +1 -0
- package/dist/payment.d.ts +0 -13
- package/package.json +8 -8
|
@@ -21,14 +21,6 @@ export declare function portalConfigurationParams(portal: SaasPortal, appName?:
|
|
|
21
21
|
export declare function portalConfigurationMatches(live: Stripe.BillingPortal.Configuration, params: Stripe.BillingPortal.ConfigurationCreateParams): boolean;
|
|
22
22
|
/** This app's portal configuration, if `stripe:setup` has made one. */
|
|
23
23
|
export declare function findManagedPortalConfiguration(appName?: string, client?: Pick<Stripe, 'billingPortal'>): Promise<Stripe.BillingPortal.Configuration | undefined>;
|
|
24
|
-
/**
|
|
25
|
-
* @defaultValue
|
|
26
|
-
* ```ts
|
|
27
|
-
* {
|
|
28
|
-
* createSession: (customerId: string, options?: BillingPortalOptions) => Promise<Stripe.BillingPortal.Session>
|
|
29
|
-
* }
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
24
|
export declare const manageBillingPortal: {
|
|
33
25
|
/**
|
|
34
26
|
* A one-time link into the portal for `customerId`. Send the customer to
|
|
@@ -35,6 +35,4 @@ export declare interface DirectChargeFeeAmounts {
|
|
|
35
35
|
}
|
|
36
36
|
/** Stripe creates application fees/balance transactions asynchronously. Retry
|
|
37
37
|
* through the caller's durable queue; absence must never mean a zero fee. */
|
|
38
|
-
export declare class DirectChargeFinancialsPendingError extends Error {
|
|
39
|
-
|
|
40
|
-
}
|
|
38
|
+
export declare class DirectChargeFinancialsPendingError extends Error {}
|
package/dist/connect/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { asAccount, connectedCustomer, directCheckout, directCheckoutPaymentData, directCheckoutSubscriptionData, directPaymentIntentParams, directSubscriptionParams, manageDirectSubscription } from './direct';
|
|
2
1
|
import { checkoutLineItemsTotal, destinationCheckoutPaymentData, destinationCheckoutSubscriptionData, destinationFeeCents, destinationFeePercent, destinationPaymentIntentParams, destinationSubscriptionParams, splitFee } from './destination';
|
|
3
2
|
import { collectDirectInvoice } from './invoice-collection';
|
|
4
3
|
import { completeDirectInvoicePurchase, directInvoicePurchaseMetadata } from './invoice-purchase';
|
|
4
|
+
import { connectedCustomer, directCheckout, directCheckoutPaymentData, directCheckoutSubscriptionData, directPaymentIntentParams, directSubscriptionParams, manageDirectSubscription } from './direct';
|
|
5
5
|
import { connectRefund, connectRefundParams, isDestinationCharge } from './refund';
|
|
6
6
|
import { creditDirectInvoiceRefund } from './invoice-credit';
|
|
7
7
|
import { directChargeFeeAmounts, directChargeFinancials } from './financials';
|
|
@@ -33,7 +33,6 @@ export declare const connect: {
|
|
|
33
33
|
subscriptionParams: typeof destinationSubscriptionParams;
|
|
34
34
|
lineItemsTotal: typeof checkoutLineItemsTotal;
|
|
35
35
|
splitFee: typeof splitFee;
|
|
36
|
-
asAccount: typeof asAccount;
|
|
37
36
|
customer: typeof connectedCustomer;
|
|
38
37
|
directCheckout: typeof directCheckout;
|
|
39
38
|
directChargeFinancials: typeof directChargeFinancials;
|
|
@@ -22,7 +22,5 @@ export declare interface DirectInvoicePurchaseOptions extends Pick<DirectInvoice
|
|
|
22
22
|
declare type PurchaseClient = Pick<Stripe, 'setupIntents' | 'prices' | 'paymentMethods' | 'invoices' | 'invoiceItems' | 'subscriptionSchedules' | 'subscriptions' | 'invoicePayments' | 'paymentIntents'>;
|
|
23
23
|
/** The quote expired without a bound purchase or an unbound provider resource
|
|
24
24
|
* that could be an interrupted purchase. Original local IDs still need review. */
|
|
25
|
-
export declare class DirectInvoicePurchaseExpiredError extends Error {
|
|
26
|
-
|
|
27
|
-
}
|
|
25
|
+
export declare class DirectInvoicePurchaseExpiredError extends Error {}
|
|
28
26
|
export {};
|
package/dist/driver/adyen.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ declare interface SubscriptionAttributes {
|
|
|
51
51
|
ends_at?: string | null
|
|
52
52
|
}
|
|
53
53
|
export declare class LemonSqueezyDriver implements PaymentDriver {
|
|
54
|
+
/** @defaultValue 'lemonsqueezy' */
|
|
54
55
|
readonly name: string;
|
|
55
56
|
readonly capabilities: unknown;
|
|
56
57
|
private config;
|
package/dist/driver/paddle.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare interface PaddleSubscription {
|
|
|
60
60
|
items?: Array<{ price?: PaddlePrice, quantity?: number }>
|
|
61
61
|
}
|
|
62
62
|
export declare class PaddleDriver implements PaymentDriver {
|
|
63
|
+
/** @defaultValue 'paddle' */
|
|
63
64
|
readonly name: string;
|
|
64
65
|
readonly capabilities: unknown;
|
|
65
66
|
private config;
|
package/dist/driver/stripe.d.ts
CHANGED
package/dist/payment.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { connect } from './connect/index';
|
|
2
1
|
import { manageCoupon, managePriceExtended, manageProduct } from './billable/product';
|
|
3
2
|
import { manageCustomer } from './billable/customer';
|
|
4
3
|
import { manageInvoice } from './billable/invoice';
|
|
@@ -6,7 +5,6 @@ import { managePaymentMethod } from './billable/payment-method';
|
|
|
6
5
|
import { manageSubscription } from './billable/subscription';
|
|
7
6
|
import { manageWebhook, onCharge, onCheckout, onInvoice, onPaymentIntent, onSubscription, processWebhook } from './billable/webhook';
|
|
8
7
|
import { paymentDriver } from './driver/index';
|
|
9
|
-
import { stripe } from './drivers/stripe';
|
|
10
8
|
import type { ChargeOptions, CheckoutRequest, CheckoutSession, CreatePaymentOptions, Customer, Money, Payer, PaymentResult, RefundOptions, RefundResult, StoredPaymentMethod, SubscriptionSummary } from './driver/index';
|
|
11
9
|
import type { UserModel } from '@stacksjs/orm';
|
|
12
10
|
import type Stripe from 'stripe';
|
|
@@ -140,35 +138,26 @@ export declare const Payment: {
|
|
|
140
138
|
* `acknowledgeWebhook`).
|
|
141
139
|
*/
|
|
142
140
|
driver: typeof paymentDriver;
|
|
143
|
-
charge: typeof charge;
|
|
144
141
|
createPayment: typeof createPayment;
|
|
145
142
|
refund: typeof refund;
|
|
146
143
|
checkout: typeof checkout;
|
|
147
144
|
subscriptionCheckout: typeof subscriptionCheckout;
|
|
148
|
-
subscribe: typeof subscribe;
|
|
149
145
|
cancelSubscription: typeof cancelSubscription;
|
|
150
146
|
subscriptions: typeof subscriptions;
|
|
151
147
|
hasActiveSubscription: typeof hasActiveSubscription;
|
|
152
148
|
changeSubscription: typeof changeSubscription;
|
|
153
|
-
getOrCreateCustomer: typeof getOrCreateCustomer;
|
|
154
149
|
updateCustomer: typeof updateCustomer;
|
|
155
150
|
deleteCustomer: typeof deleteCustomer;
|
|
156
|
-
paymentMethods: typeof paymentMethods;
|
|
157
151
|
addPaymentMethod: typeof addPaymentMethod;
|
|
158
152
|
setDefaultPaymentMethod: typeof setDefaultPaymentMethod;
|
|
159
153
|
removePaymentMethod: typeof removePaymentMethod;
|
|
160
154
|
createSetupIntent: typeof createSetupIntent;
|
|
161
|
-
getInvoices: typeof getInvoices;
|
|
162
155
|
createInvoice: typeof createInvoice;
|
|
163
156
|
payInvoice: typeof payInvoice;
|
|
164
|
-
createProduct: typeof createProduct;
|
|
165
157
|
getPrice: typeof getPrice;
|
|
166
158
|
listProducts: typeof listProducts;
|
|
167
|
-
billingPortal: typeof billingPortal;
|
|
168
|
-
createCoupon: typeof createCoupon;
|
|
169
159
|
createPromoCode: typeof createPromoCode;
|
|
170
160
|
validatePromoCode: typeof validatePromoCode;
|
|
171
|
-
formatAmount: typeof formatAmount;
|
|
172
161
|
minorUnitExponent: typeof minorUnitExponent;
|
|
173
162
|
toCents: typeof toCents;
|
|
174
163
|
toDollars: typeof toDollars;
|
|
@@ -179,8 +168,6 @@ export declare const Payment: {
|
|
|
179
168
|
onCheckout: typeof onCheckout;
|
|
180
169
|
onCharge: typeof onCharge;
|
|
181
170
|
processWebhook: typeof processWebhook;
|
|
182
|
-
connect: typeof connect;
|
|
183
|
-
stripe: typeof stripe;
|
|
184
171
|
customer: typeof manageCustomer;
|
|
185
172
|
subscription: typeof manageSubscription;
|
|
186
173
|
invoice: typeof manageInvoice;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/payments",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.535",
|
|
6
6
|
"description": "The Stacks payments package. Currently supporting Stripe.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"prepublishOnly": "bun run build"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@stacksjs/config": "0.75.
|
|
64
|
-
"@stacksjs/database": "0.75.
|
|
65
|
-
"@stacksjs/error-handling": "0.75.
|
|
66
|
-
"@stacksjs/logging": "0.75.
|
|
67
|
-
"@stacksjs/orm": "0.75.
|
|
68
|
-
"@stacksjs/types": "0.75.
|
|
63
|
+
"@stacksjs/config": "0.75.535",
|
|
64
|
+
"@stacksjs/database": "0.75.535",
|
|
65
|
+
"@stacksjs/error-handling": "0.75.535",
|
|
66
|
+
"@stacksjs/logging": "0.75.535",
|
|
67
|
+
"@stacksjs/orm": "0.75.535",
|
|
68
|
+
"@stacksjs/types": "0.75.535"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@stripe/stripe-js": "^10.0.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@stacksjs/utils": "0.75.
|
|
83
|
+
"@stacksjs/utils": "0.75.535",
|
|
84
84
|
"@stripe/stripe-js": "^10.0.0",
|
|
85
85
|
"better-dx": "^0.2.24",
|
|
86
86
|
"stripe": "23.0.0"
|