@stacksjs/payments 0.75.519 → 0.75.522
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/payment-method.d.ts +1 -0
- package/dist/billable/subscription.d.ts +1 -0
- package/dist/billable/transaction.d.ts +1 -0
- package/dist/billable/webhook.d.ts +0 -1
- package/dist/connect/direct.d.ts +1 -0
- package/dist/connect/invoice-purchase.d.ts +1 -0
- package/dist/driver/adyen.d.ts +6 -0
- package/dist/driver/lemonsqueezy.d.ts +10 -0
- package/dist/driver/paddle.d.ts +8 -0
- package/dist/driver/stripe.d.ts +3 -0
- package/dist/drivers/stripe.d.ts +1 -0
- package/dist/terminal.d.ts +0 -1
- package/package.json +8 -8
|
@@ -127,7 +127,6 @@ export declare function getCharge(event: Stripe.Event): Stripe.Charge | null;
|
|
|
127
127
|
* Extract customer from event
|
|
128
128
|
*/
|
|
129
129
|
export declare function getCustomer(event: Stripe.Event): Stripe.Customer | null;
|
|
130
|
-
declare const handlers: Map<WebhookEventType, WebhookHandler[]>;
|
|
131
130
|
export declare const manageWebhook: {
|
|
132
131
|
onWebhookEvent: typeof onWebhookEvent;
|
|
133
132
|
registerWebhookHandlers: typeof registerWebhookHandlers;
|
package/dist/connect/direct.d.ts
CHANGED
|
@@ -135,3 +135,4 @@ export type DirectSubscriptionFields = Pick<Stripe.SubscriptionCreateParams, 'ap
|
|
|
135
135
|
declare type CustomerClient = Pick<Stripe, 'customers'>;
|
|
136
136
|
/** Connect needs a payer identity, independent of an application's ORM traits. */
|
|
137
137
|
export type ConnectPayer = Pick<UserModel, 'id'> & { email?: string | null, name?: string | null }
|
|
138
|
+
export {};
|
package/dist/driver/adyen.d.ts
CHANGED
|
@@ -48,9 +48,14 @@ declare interface NotificationItem {
|
|
|
48
48
|
export declare class AdyenDriver implements PaymentDriver {
|
|
49
49
|
readonly name: string;
|
|
50
50
|
readonly capabilities: unknown;
|
|
51
|
+
private config;
|
|
52
|
+
private fetch;
|
|
51
53
|
constructor(config: AdyenConfig, options?: { fetch?: typeof fetch });
|
|
52
54
|
get baseUrl(): string;
|
|
53
55
|
shopperReference(payer: Payer): string;
|
|
56
|
+
private request;
|
|
57
|
+
private assertReturnUrl;
|
|
58
|
+
private amount;
|
|
54
59
|
customer(payer: Payer): Promise<Customer>;
|
|
55
60
|
charge(payer: Payer, amount: Money, paymentMethod: string, options?: ChargeOptions): Promise<PaymentResult>;
|
|
56
61
|
createPayment(payer: Payer, amount: Money, options?: CreatePaymentOptions): Promise<PaymentResult>;
|
|
@@ -64,3 +69,4 @@ export declare class AdyenDriver implements PaymentDriver {
|
|
|
64
69
|
verifyWebhook(request: WebhookRequest): Promise<PaymentEvent[]>;
|
|
65
70
|
acknowledgeWebhook(): Response;
|
|
66
71
|
}
|
|
72
|
+
export {};
|
|
@@ -53,7 +53,15 @@ declare interface SubscriptionAttributes {
|
|
|
53
53
|
export declare class LemonSqueezyDriver implements PaymentDriver {
|
|
54
54
|
readonly name: string;
|
|
55
55
|
readonly capabilities: unknown;
|
|
56
|
+
private config;
|
|
57
|
+
private fetch;
|
|
58
|
+
private storeCurrency;
|
|
56
59
|
constructor(config: LemonSqueezyConfig, options?: { fetch?: typeof fetch });
|
|
60
|
+
private request;
|
|
61
|
+
private list;
|
|
62
|
+
private store;
|
|
63
|
+
private assertReturnUrl;
|
|
64
|
+
private currency;
|
|
57
65
|
customer(payer: Payer): Promise<Customer>;
|
|
58
66
|
charge(): Promise<PaymentResult>;
|
|
59
67
|
createPayment(): Promise<PaymentResult>;
|
|
@@ -65,5 +73,7 @@ export declare class LemonSqueezyDriver implements PaymentDriver {
|
|
|
65
73
|
cancelSubscription(subscriptionId: string, options?: { atPeriodEnd?: boolean }): Promise<SubscriptionSummary>;
|
|
66
74
|
subscriptions(payer: Payer): Promise<SubscriptionSummary[]>;
|
|
67
75
|
verifyWebhook(request: WebhookRequest): Promise<PaymentEvent[]>;
|
|
76
|
+
private translate;
|
|
68
77
|
acknowledgeWebhook(): Response;
|
|
69
78
|
}
|
|
79
|
+
export {};
|
package/dist/driver/paddle.d.ts
CHANGED
|
@@ -62,10 +62,16 @@ declare interface PaddleSubscription {
|
|
|
62
62
|
export declare class PaddleDriver implements PaymentDriver {
|
|
63
63
|
readonly name: string;
|
|
64
64
|
readonly capabilities: unknown;
|
|
65
|
+
private config;
|
|
66
|
+
private fetch;
|
|
67
|
+
private now;
|
|
65
68
|
constructor(config: PaddleConfig, options?: { fetch?: typeof fetch, now?: () => number });
|
|
66
69
|
get environment(): 'sandbox' | 'live';
|
|
67
70
|
get clientToken(): string | undefined;
|
|
68
71
|
get baseUrl(): string;
|
|
72
|
+
private request;
|
|
73
|
+
private assertReturnUrl;
|
|
74
|
+
private pricedLine;
|
|
69
75
|
customer(payer: Payer): Promise<Customer>;
|
|
70
76
|
charge(): Promise<PaymentResult>;
|
|
71
77
|
createPayment(payer: Payer, amount: Money, options?: CreatePaymentOptions): Promise<PaymentResult>;
|
|
@@ -78,5 +84,7 @@ export declare class PaddleDriver implements PaymentDriver {
|
|
|
78
84
|
cancelSubscription(subscriptionId: string, options?: { atPeriodEnd?: boolean }): Promise<SubscriptionSummary>;
|
|
79
85
|
subscriptions(payer: Payer): Promise<SubscriptionSummary[]>;
|
|
80
86
|
verifyWebhook(request: WebhookRequest): Promise<PaymentEvent[]>;
|
|
87
|
+
private translate;
|
|
81
88
|
acknowledgeWebhook(): Response;
|
|
82
89
|
}
|
|
90
|
+
export {};
|
package/dist/driver/stripe.d.ts
CHANGED
|
@@ -50,6 +50,9 @@ export declare interface StripeDriverOptions {
|
|
|
50
50
|
export declare class StripeDriver implements PaymentDriver {
|
|
51
51
|
readonly name: string;
|
|
52
52
|
readonly capabilities: unknown;
|
|
53
|
+
private ops;
|
|
54
|
+
private webhookSecret;
|
|
55
|
+
private webhookTolerance;
|
|
53
56
|
constructor(options: StripeDriverOptions);
|
|
54
57
|
customer(payer: Payer): Promise<Customer>;
|
|
55
58
|
charge(payer: Payer, amount: Money, paymentMethod: string, options?: ChargeOptions): Promise<PaymentResult>;
|
package/dist/drivers/stripe.d.ts
CHANGED
package/dist/terminal.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ export declare function isTestKey(secretKey: string | null | undefined): boolean
|
|
|
28
28
|
* older `payment_method_types` is refused since 2026-09-30.endive).
|
|
29
29
|
*/
|
|
30
30
|
export declare const STRIPE_TERMINAL_API_VERSION: '2026-09-30.endive';
|
|
31
|
-
declare const path: (value: string) => string;
|
|
32
31
|
/** Registration codes Stripe accepts for a simulated reader in test mode. */
|
|
33
32
|
export declare const SIMULATED_READER_CODES: readonly ['simulated-wpe', 'simulated-s700', 'simulated-s710', 'simulated-v660p', 'simulated-wp3'];
|
|
34
33
|
export declare interface StripeRestOptions {
|
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.522",
|
|
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.522",
|
|
64
|
+
"@stacksjs/database": "0.75.522",
|
|
65
|
+
"@stacksjs/error-handling": "0.75.522",
|
|
66
|
+
"@stacksjs/logging": "0.75.522",
|
|
67
|
+
"@stacksjs/orm": "0.75.522",
|
|
68
|
+
"@stacksjs/types": "0.75.522"
|
|
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.522",
|
|
84
84
|
"@stripe/stripe-js": "^10.0.0",
|
|
85
85
|
"better-dx": "^0.2.24",
|
|
86
86
|
"stripe": "23.0.0"
|