@stacksjs/payments 0.64.6 → 0.67.0
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/drivers/stripe.d.ts +42 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -4
- package/package.json +11 -18
- package/dist/index.js.map +0 -175
- package/src/drivers/stripe.ts +0 -116
- package/src/index.ts +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import Stripe from "stripe";
|
|
2
|
+
export interface PaymentIntent {
|
|
3
|
+
create: (params: Stripe.PaymentIntentCreateParams) => Promise<Stripe.Response<Stripe.PaymentIntent>>;
|
|
4
|
+
retrieve: (stripeId: string) => Promise<Stripe.Response<Stripe.PaymentIntent>>;
|
|
5
|
+
update: (stripeId: string, params: Stripe.PaymentIntentCreateParams) => Promise<Stripe.Response<Stripe.PaymentIntent>>;
|
|
6
|
+
cancel: (stripeId: string) => Promise<Stripe.Response<Stripe.PaymentIntent>>;
|
|
7
|
+
}
|
|
8
|
+
export declare const paymentIntent: PaymentIntent;
|
|
9
|
+
export interface Balance {
|
|
10
|
+
retrieve: () => Promise<Stripe.Response<Stripe.Balance>>;
|
|
11
|
+
}
|
|
12
|
+
export declare const balance: Balance;
|
|
13
|
+
export interface Customer {
|
|
14
|
+
create: (params: Stripe.CustomerCreateParams) => Promise<Stripe.Response<Stripe.Customer>>;
|
|
15
|
+
update: (stripeId: string, params: Stripe.CustomerCreateParams) => Promise<Stripe.Response<Stripe.Customer>>;
|
|
16
|
+
retrieve: (stripeId: string) => Promise<Stripe.Response<Stripe.Customer | Stripe.DeletedCustomer>>;
|
|
17
|
+
}
|
|
18
|
+
export declare const customer: Customer;
|
|
19
|
+
export interface Charge {
|
|
20
|
+
create: (params: Stripe.ChargeCreateParams) => Promise<Stripe.Response<Stripe.Charge>>;
|
|
21
|
+
update: (stripeId: string, params: Stripe.ChargeCreateParams) => Promise<Stripe.Response<Stripe.Charge>>;
|
|
22
|
+
capture: (stripeId: string) => Promise<Stripe.Response<Stripe.Charge>>;
|
|
23
|
+
retrieve: (stripeId: string) => Promise<Stripe.Response<Stripe.Charge>>;
|
|
24
|
+
}
|
|
25
|
+
export declare const charge: Charge;
|
|
26
|
+
export interface BalanceTransactions {
|
|
27
|
+
retrieve: (stripeId: string) => Promise<Stripe.Response<Stripe.BalanceTransaction>>;
|
|
28
|
+
list: (limit: number) => Promise<Stripe.Response<Stripe.ApiList<Stripe.BalanceTransaction>>>;
|
|
29
|
+
}
|
|
30
|
+
export declare const balanceTransactions: BalanceTransactions;
|
|
31
|
+
export interface Dispute {
|
|
32
|
+
retrieve: (stripeId: string) => Promise<Stripe.Response<Stripe.Dispute>>;
|
|
33
|
+
update: (stripeId: string, params: Stripe.DisputeUpdateParams) => Promise<Stripe.Response<Stripe.Dispute>>;
|
|
34
|
+
close: (stripeId: string) => Promise<Stripe.Response<Stripe.Dispute>>;
|
|
35
|
+
list: (limit: number) => Promise<Stripe.Response<Stripe.ApiList<Stripe.Dispute>>>;
|
|
36
|
+
}
|
|
37
|
+
export declare const dispute: Dispute;
|
|
38
|
+
export interface PaymentEvents {
|
|
39
|
+
retrieve: (stripeId: string) => Promise<Stripe.Response<Stripe.Event>>;
|
|
40
|
+
list: (limit: number) => Promise<Stripe.Response<Stripe.ApiList<Stripe.Event>>>;
|
|
41
|
+
}
|
|
42
|
+
export declare const events: PaymentEvents;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as stripe from "./drivers/stripe";
|