@stripe-sdk/core 1.0.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/README.md +700 -0
- package/dist/client/index.d.mts +198 -0
- package/dist/client/index.d.ts +198 -0
- package/dist/client/index.js +517 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/index.mjs +506 -0
- package/dist/client/index.mjs.map +1 -0
- package/dist/index-D8rM_YD4.d.mts +375 -0
- package/dist/index-D8rM_YD4.d.ts +375 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1800 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1708 -0
- package/dist/index.mjs.map +1 -0
- package/dist/next/index.d.mts +65 -0
- package/dist/next/index.d.ts +65 -0
- package/dist/next/index.js +450 -0
- package/dist/next/index.js.map +1 -0
- package/dist/next/index.mjs +443 -0
- package/dist/next/index.mjs.map +1 -0
- package/dist/server/index.d.mts +115 -0
- package/dist/server/index.d.ts +115 -0
- package/dist/server/index.js +1290 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +1208 -0
- package/dist/server/index.mjs.map +1 -0
- package/dist/server/webhooks/index.d.mts +2 -0
- package/dist/server/webhooks/index.d.ts +2 -0
- package/dist/server/webhooks/index.js +156 -0
- package/dist/server/webhooks/index.js.map +1 -0
- package/dist/server/webhooks/index.mjs +152 -0
- package/dist/server/webhooks/index.mjs.map +1 -0
- package/package.json +109 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import Stripe__default from 'stripe';
|
|
2
|
+
import { u as StripeSDKConfig, t as SDKResult, a as ConfirmPaymentInput, c as CreateCheckoutSessionInput, i as CreatePaymentIntentInput, j as CreatePaymentLinkInput, p as CreateSetupIntentInput, P as PaginationInput, f as CreateCustomerInput, k as CreatePortalSessionInput, L as ListCustomersInput, U as UpdateCustomerInput, C as CancelSubscriptionInput, q as CreateSubscriptionInput, x as UpdateSubscriptionInput, l as CreatePriceInput, m as CreateProductInput, w as UpdateProductInput, g as CreateInvoiceInput, h as CreateInvoiceItemInput, o as CreateRefundInput, v as UpdateDisputeInput, b as CreateAccountLinkInput, d as CreateConnectAccountInput, r as CreateTransferInput, e as CreateCouponInput, n as CreatePromotionCodeInput } from '../index-D8rM_YD4.mjs';
|
|
3
|
+
export { A as createNextWebhookHandler, B as createPagesWebhookHandler, D as createWebhookHandler } from '../index-D8rM_YD4.mjs';
|
|
4
|
+
|
|
5
|
+
declare function initStripe(config: StripeSDKConfig): Stripe__default;
|
|
6
|
+
declare function getStripe(): Stripe__default;
|
|
7
|
+
declare function getConfig(): StripeSDKConfig;
|
|
8
|
+
|
|
9
|
+
declare function createPaymentIntent(input: CreatePaymentIntentInput): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
10
|
+
declare function retrievePaymentIntent(paymentIntentId: string): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
11
|
+
declare function confirmPaymentIntent(input: ConfirmPaymentInput): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
12
|
+
declare function cancelPaymentIntent(paymentIntentId: string): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
13
|
+
declare function listPaymentIntents(input?: PaginationInput & {
|
|
14
|
+
customerId?: string;
|
|
15
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.PaymentIntent>>>;
|
|
16
|
+
declare function createCheckoutSession(input: CreateCheckoutSessionInput): Promise<SDKResult<Stripe__default.Checkout.Session>>;
|
|
17
|
+
declare function retrieveCheckoutSession(sessionId: string): Promise<SDKResult<Stripe__default.Checkout.Session>>;
|
|
18
|
+
declare function listCheckoutSessions(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Checkout.Session>>>;
|
|
19
|
+
declare function createPaymentLink(input: CreatePaymentLinkInput): Promise<SDKResult<Stripe__default.PaymentLink>>;
|
|
20
|
+
declare function retrievePaymentLink(paymentLinkId: string): Promise<SDKResult<Stripe__default.PaymentLink>>;
|
|
21
|
+
declare function createSetupIntent(input: CreateSetupIntentInput): Promise<SDKResult<Stripe__default.SetupIntent>>;
|
|
22
|
+
declare function retrieveSetupIntent(setupIntentId: string): Promise<SDKResult<Stripe__default.SetupIntent>>;
|
|
23
|
+
declare function listPaymentMethods(customerId: string, type?: Stripe__default.PaymentMethodListParams.Type): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.PaymentMethod>>>;
|
|
24
|
+
declare function attachPaymentMethod(paymentMethodId: string, customerId: string): Promise<SDKResult<Stripe__default.PaymentMethod>>;
|
|
25
|
+
declare function detachPaymentMethod(paymentMethodId: string): Promise<SDKResult<Stripe__default.PaymentMethod>>;
|
|
26
|
+
|
|
27
|
+
declare function createCustomer(input: CreateCustomerInput): Promise<SDKResult<Stripe__default.Customer>>;
|
|
28
|
+
declare function retrieveCustomer(customerId: string): Promise<SDKResult<Stripe__default.Customer>>;
|
|
29
|
+
declare function updateCustomer(input: UpdateCustomerInput): Promise<SDKResult<Stripe__default.Customer>>;
|
|
30
|
+
declare function deleteCustomer(customerId: string): Promise<SDKResult<Stripe__default.DeletedCustomer>>;
|
|
31
|
+
declare function listCustomers(input?: ListCustomersInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Customer>>>;
|
|
32
|
+
declare function searchCustomers(query: string, limit?: number): Promise<SDKResult<Stripe__default.ApiSearchResult<Stripe__default.Customer>>>;
|
|
33
|
+
declare function createPortalSession(input: CreatePortalSessionInput): Promise<SDKResult<Stripe__default.BillingPortal.Session>>;
|
|
34
|
+
|
|
35
|
+
declare function createSubscription(input: CreateSubscriptionInput): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
36
|
+
declare function retrieveSubscription(subscriptionId: string): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
37
|
+
declare function updateSubscription(input: UpdateSubscriptionInput): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
38
|
+
declare function cancelSubscription(input: CancelSubscriptionInput): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
39
|
+
declare function resumeSubscription(subscriptionId: string): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
40
|
+
declare function listSubscriptions(input?: PaginationInput & {
|
|
41
|
+
customerId?: string;
|
|
42
|
+
status?: Stripe__default.SubscriptionListParams.Status;
|
|
43
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Subscription>>>;
|
|
44
|
+
|
|
45
|
+
declare function createProduct(input: CreateProductInput): Promise<SDKResult<Stripe__default.Product>>;
|
|
46
|
+
declare function retrieveProduct(productId: string): Promise<SDKResult<Stripe__default.Product>>;
|
|
47
|
+
declare function updateProduct(input: UpdateProductInput): Promise<SDKResult<Stripe__default.Product>>;
|
|
48
|
+
declare function archiveProduct(productId: string): Promise<SDKResult<Stripe__default.Product>>;
|
|
49
|
+
declare function listProducts(input?: PaginationInput & {
|
|
50
|
+
active?: boolean;
|
|
51
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Product>>>;
|
|
52
|
+
declare function createPrice(input: CreatePriceInput): Promise<SDKResult<Stripe__default.Price>>;
|
|
53
|
+
declare function retrievePrice(priceId: string): Promise<SDKResult<Stripe__default.Price>>;
|
|
54
|
+
declare function listPrices(input?: PaginationInput & {
|
|
55
|
+
productId?: string;
|
|
56
|
+
active?: boolean;
|
|
57
|
+
type?: 'one_time' | 'recurring';
|
|
58
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Price>>>;
|
|
59
|
+
declare function archivePrice(priceId: string): Promise<SDKResult<Stripe__default.Price>>;
|
|
60
|
+
|
|
61
|
+
declare function createInvoice(input: CreateInvoiceInput): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
62
|
+
declare function retrieveInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
63
|
+
declare function finalizeInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
64
|
+
declare function sendInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
65
|
+
declare function payInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
66
|
+
declare function voidInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
67
|
+
declare function listInvoices(input?: PaginationInput & {
|
|
68
|
+
customerId?: string;
|
|
69
|
+
status?: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void';
|
|
70
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Invoice>>>;
|
|
71
|
+
declare function getUpcomingInvoice(customerId: string, subscriptionId?: string): Promise<SDKResult<Stripe__default.UpcomingInvoice>>;
|
|
72
|
+
declare function createInvoiceItem(input: CreateInvoiceItemInput): Promise<SDKResult<Stripe__default.InvoiceItem>>;
|
|
73
|
+
|
|
74
|
+
declare function createRefund(input: CreateRefundInput): Promise<SDKResult<Stripe__default.Refund>>;
|
|
75
|
+
declare function retrieveRefund(refundId: string): Promise<SDKResult<Stripe__default.Refund>>;
|
|
76
|
+
declare function listRefunds(input?: PaginationInput & {
|
|
77
|
+
paymentIntentId?: string;
|
|
78
|
+
chargeId?: string;
|
|
79
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Refund>>>;
|
|
80
|
+
declare function retrieveDispute(disputeId: string): Promise<SDKResult<Stripe__default.Dispute>>;
|
|
81
|
+
declare function updateDispute(input: UpdateDisputeInput): Promise<SDKResult<Stripe__default.Dispute>>;
|
|
82
|
+
declare function closeDispute(disputeId: string): Promise<SDKResult<Stripe__default.Dispute>>;
|
|
83
|
+
declare function listDisputes(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Dispute>>>;
|
|
84
|
+
|
|
85
|
+
declare function createConnectAccount(input: CreateConnectAccountInput): Promise<SDKResult<Stripe__default.Account>>;
|
|
86
|
+
declare function retrieveConnectAccount(accountId: string): Promise<SDKResult<Stripe__default.Account>>;
|
|
87
|
+
declare function deleteConnectAccount(accountId: string): Promise<SDKResult<Stripe__default.DeletedAccount>>;
|
|
88
|
+
declare function listConnectAccounts(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Account>>>;
|
|
89
|
+
declare function createAccountLink(input: CreateAccountLinkInput): Promise<SDKResult<Stripe__default.AccountLink>>;
|
|
90
|
+
declare function createTransfer(input: CreateTransferInput): Promise<SDKResult<Stripe__default.Transfer>>;
|
|
91
|
+
declare function listTransfers(input?: PaginationInput & {
|
|
92
|
+
destinationAccountId?: string;
|
|
93
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Transfer>>>;
|
|
94
|
+
declare function createPayout(amount: number, currency: string, metadata?: Record<string, string>): Promise<SDKResult<Stripe__default.Payout>>;
|
|
95
|
+
declare function listPayouts(input?: PaginationInput & {
|
|
96
|
+
status?: 'paid' | 'pending' | 'in_transit' | 'canceled' | 'failed';
|
|
97
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Payout>>>;
|
|
98
|
+
declare function getBalance(): Promise<SDKResult<Stripe__default.Balance>>;
|
|
99
|
+
declare function listBalanceTransactions(input?: PaginationInput & {
|
|
100
|
+
type?: 'charge' | 'refund' | 'adjustment' | 'application_fee' | 'transfer' | 'payout' | 'stripe_fee';
|
|
101
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.BalanceTransaction>>>;
|
|
102
|
+
|
|
103
|
+
declare function createCoupon(input: CreateCouponInput): Promise<SDKResult<Stripe__default.Coupon>>;
|
|
104
|
+
declare function retrieveCoupon(couponId: string): Promise<SDKResult<Stripe__default.Coupon>>;
|
|
105
|
+
declare function deleteCoupon(couponId: string): Promise<SDKResult<Stripe__default.DeletedCoupon>>;
|
|
106
|
+
declare function listCoupons(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Coupon>>>;
|
|
107
|
+
declare function createPromotionCode(input: CreatePromotionCodeInput): Promise<SDKResult<Stripe__default.PromotionCode>>;
|
|
108
|
+
declare function retrievePromotionCode(promotionCodeId: string): Promise<SDKResult<Stripe__default.PromotionCode>>;
|
|
109
|
+
declare function listPromotionCodes(input?: PaginationInput & {
|
|
110
|
+
couponId?: string;
|
|
111
|
+
active?: boolean;
|
|
112
|
+
code?: string;
|
|
113
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.PromotionCode>>>;
|
|
114
|
+
|
|
115
|
+
export { archivePrice, archiveProduct, attachPaymentMethod, cancelPaymentIntent, cancelSubscription, closeDispute, confirmPaymentIntent, createAccountLink, createCheckoutSession, createConnectAccount, createCoupon, createCustomer, createInvoice, createInvoiceItem, createPaymentIntent, createPaymentLink, createPayout, createPortalSession, createPrice, createProduct, createPromotionCode, createRefund, createSetupIntent, createSubscription, createTransfer, deleteConnectAccount, deleteCoupon, deleteCustomer, detachPaymentMethod, finalizeInvoice, getBalance, getConfig, getStripe, getUpcomingInvoice, initStripe, listBalanceTransactions, listCheckoutSessions, listConnectAccounts, listCoupons, listCustomers, listDisputes, listInvoices, listPaymentIntents, listPaymentMethods, listPayouts, listPrices, listProducts, listPromotionCodes, listRefunds, listSubscriptions, listTransfers, payInvoice, resumeSubscription, retrieveCheckoutSession, retrieveConnectAccount, retrieveCoupon, retrieveCustomer, retrieveDispute, retrieveInvoice, retrievePaymentIntent, retrievePaymentLink, retrievePrice, retrieveProduct, retrievePromotionCode, retrieveRefund, retrieveSetupIntent, retrieveSubscription, searchCustomers, sendInvoice, updateCustomer, updateDispute, updateProduct, updateSubscription, voidInvoice };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import Stripe__default from 'stripe';
|
|
2
|
+
import { u as StripeSDKConfig, t as SDKResult, a as ConfirmPaymentInput, c as CreateCheckoutSessionInput, i as CreatePaymentIntentInput, j as CreatePaymentLinkInput, p as CreateSetupIntentInput, P as PaginationInput, f as CreateCustomerInput, k as CreatePortalSessionInput, L as ListCustomersInput, U as UpdateCustomerInput, C as CancelSubscriptionInput, q as CreateSubscriptionInput, x as UpdateSubscriptionInput, l as CreatePriceInput, m as CreateProductInput, w as UpdateProductInput, g as CreateInvoiceInput, h as CreateInvoiceItemInput, o as CreateRefundInput, v as UpdateDisputeInput, b as CreateAccountLinkInput, d as CreateConnectAccountInput, r as CreateTransferInput, e as CreateCouponInput, n as CreatePromotionCodeInput } from '../index-D8rM_YD4.js';
|
|
3
|
+
export { A as createNextWebhookHandler, B as createPagesWebhookHandler, D as createWebhookHandler } from '../index-D8rM_YD4.js';
|
|
4
|
+
|
|
5
|
+
declare function initStripe(config: StripeSDKConfig): Stripe__default;
|
|
6
|
+
declare function getStripe(): Stripe__default;
|
|
7
|
+
declare function getConfig(): StripeSDKConfig;
|
|
8
|
+
|
|
9
|
+
declare function createPaymentIntent(input: CreatePaymentIntentInput): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
10
|
+
declare function retrievePaymentIntent(paymentIntentId: string): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
11
|
+
declare function confirmPaymentIntent(input: ConfirmPaymentInput): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
12
|
+
declare function cancelPaymentIntent(paymentIntentId: string): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
13
|
+
declare function listPaymentIntents(input?: PaginationInput & {
|
|
14
|
+
customerId?: string;
|
|
15
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.PaymentIntent>>>;
|
|
16
|
+
declare function createCheckoutSession(input: CreateCheckoutSessionInput): Promise<SDKResult<Stripe__default.Checkout.Session>>;
|
|
17
|
+
declare function retrieveCheckoutSession(sessionId: string): Promise<SDKResult<Stripe__default.Checkout.Session>>;
|
|
18
|
+
declare function listCheckoutSessions(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Checkout.Session>>>;
|
|
19
|
+
declare function createPaymentLink(input: CreatePaymentLinkInput): Promise<SDKResult<Stripe__default.PaymentLink>>;
|
|
20
|
+
declare function retrievePaymentLink(paymentLinkId: string): Promise<SDKResult<Stripe__default.PaymentLink>>;
|
|
21
|
+
declare function createSetupIntent(input: CreateSetupIntentInput): Promise<SDKResult<Stripe__default.SetupIntent>>;
|
|
22
|
+
declare function retrieveSetupIntent(setupIntentId: string): Promise<SDKResult<Stripe__default.SetupIntent>>;
|
|
23
|
+
declare function listPaymentMethods(customerId: string, type?: Stripe__default.PaymentMethodListParams.Type): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.PaymentMethod>>>;
|
|
24
|
+
declare function attachPaymentMethod(paymentMethodId: string, customerId: string): Promise<SDKResult<Stripe__default.PaymentMethod>>;
|
|
25
|
+
declare function detachPaymentMethod(paymentMethodId: string): Promise<SDKResult<Stripe__default.PaymentMethod>>;
|
|
26
|
+
|
|
27
|
+
declare function createCustomer(input: CreateCustomerInput): Promise<SDKResult<Stripe__default.Customer>>;
|
|
28
|
+
declare function retrieveCustomer(customerId: string): Promise<SDKResult<Stripe__default.Customer>>;
|
|
29
|
+
declare function updateCustomer(input: UpdateCustomerInput): Promise<SDKResult<Stripe__default.Customer>>;
|
|
30
|
+
declare function deleteCustomer(customerId: string): Promise<SDKResult<Stripe__default.DeletedCustomer>>;
|
|
31
|
+
declare function listCustomers(input?: ListCustomersInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Customer>>>;
|
|
32
|
+
declare function searchCustomers(query: string, limit?: number): Promise<SDKResult<Stripe__default.ApiSearchResult<Stripe__default.Customer>>>;
|
|
33
|
+
declare function createPortalSession(input: CreatePortalSessionInput): Promise<SDKResult<Stripe__default.BillingPortal.Session>>;
|
|
34
|
+
|
|
35
|
+
declare function createSubscription(input: CreateSubscriptionInput): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
36
|
+
declare function retrieveSubscription(subscriptionId: string): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
37
|
+
declare function updateSubscription(input: UpdateSubscriptionInput): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
38
|
+
declare function cancelSubscription(input: CancelSubscriptionInput): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
39
|
+
declare function resumeSubscription(subscriptionId: string): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
40
|
+
declare function listSubscriptions(input?: PaginationInput & {
|
|
41
|
+
customerId?: string;
|
|
42
|
+
status?: Stripe__default.SubscriptionListParams.Status;
|
|
43
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Subscription>>>;
|
|
44
|
+
|
|
45
|
+
declare function createProduct(input: CreateProductInput): Promise<SDKResult<Stripe__default.Product>>;
|
|
46
|
+
declare function retrieveProduct(productId: string): Promise<SDKResult<Stripe__default.Product>>;
|
|
47
|
+
declare function updateProduct(input: UpdateProductInput): Promise<SDKResult<Stripe__default.Product>>;
|
|
48
|
+
declare function archiveProduct(productId: string): Promise<SDKResult<Stripe__default.Product>>;
|
|
49
|
+
declare function listProducts(input?: PaginationInput & {
|
|
50
|
+
active?: boolean;
|
|
51
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Product>>>;
|
|
52
|
+
declare function createPrice(input: CreatePriceInput): Promise<SDKResult<Stripe__default.Price>>;
|
|
53
|
+
declare function retrievePrice(priceId: string): Promise<SDKResult<Stripe__default.Price>>;
|
|
54
|
+
declare function listPrices(input?: PaginationInput & {
|
|
55
|
+
productId?: string;
|
|
56
|
+
active?: boolean;
|
|
57
|
+
type?: 'one_time' | 'recurring';
|
|
58
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Price>>>;
|
|
59
|
+
declare function archivePrice(priceId: string): Promise<SDKResult<Stripe__default.Price>>;
|
|
60
|
+
|
|
61
|
+
declare function createInvoice(input: CreateInvoiceInput): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
62
|
+
declare function retrieveInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
63
|
+
declare function finalizeInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
64
|
+
declare function sendInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
65
|
+
declare function payInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
66
|
+
declare function voidInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
67
|
+
declare function listInvoices(input?: PaginationInput & {
|
|
68
|
+
customerId?: string;
|
|
69
|
+
status?: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void';
|
|
70
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Invoice>>>;
|
|
71
|
+
declare function getUpcomingInvoice(customerId: string, subscriptionId?: string): Promise<SDKResult<Stripe__default.UpcomingInvoice>>;
|
|
72
|
+
declare function createInvoiceItem(input: CreateInvoiceItemInput): Promise<SDKResult<Stripe__default.InvoiceItem>>;
|
|
73
|
+
|
|
74
|
+
declare function createRefund(input: CreateRefundInput): Promise<SDKResult<Stripe__default.Refund>>;
|
|
75
|
+
declare function retrieveRefund(refundId: string): Promise<SDKResult<Stripe__default.Refund>>;
|
|
76
|
+
declare function listRefunds(input?: PaginationInput & {
|
|
77
|
+
paymentIntentId?: string;
|
|
78
|
+
chargeId?: string;
|
|
79
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Refund>>>;
|
|
80
|
+
declare function retrieveDispute(disputeId: string): Promise<SDKResult<Stripe__default.Dispute>>;
|
|
81
|
+
declare function updateDispute(input: UpdateDisputeInput): Promise<SDKResult<Stripe__default.Dispute>>;
|
|
82
|
+
declare function closeDispute(disputeId: string): Promise<SDKResult<Stripe__default.Dispute>>;
|
|
83
|
+
declare function listDisputes(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Dispute>>>;
|
|
84
|
+
|
|
85
|
+
declare function createConnectAccount(input: CreateConnectAccountInput): Promise<SDKResult<Stripe__default.Account>>;
|
|
86
|
+
declare function retrieveConnectAccount(accountId: string): Promise<SDKResult<Stripe__default.Account>>;
|
|
87
|
+
declare function deleteConnectAccount(accountId: string): Promise<SDKResult<Stripe__default.DeletedAccount>>;
|
|
88
|
+
declare function listConnectAccounts(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Account>>>;
|
|
89
|
+
declare function createAccountLink(input: CreateAccountLinkInput): Promise<SDKResult<Stripe__default.AccountLink>>;
|
|
90
|
+
declare function createTransfer(input: CreateTransferInput): Promise<SDKResult<Stripe__default.Transfer>>;
|
|
91
|
+
declare function listTransfers(input?: PaginationInput & {
|
|
92
|
+
destinationAccountId?: string;
|
|
93
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Transfer>>>;
|
|
94
|
+
declare function createPayout(amount: number, currency: string, metadata?: Record<string, string>): Promise<SDKResult<Stripe__default.Payout>>;
|
|
95
|
+
declare function listPayouts(input?: PaginationInput & {
|
|
96
|
+
status?: 'paid' | 'pending' | 'in_transit' | 'canceled' | 'failed';
|
|
97
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Payout>>>;
|
|
98
|
+
declare function getBalance(): Promise<SDKResult<Stripe__default.Balance>>;
|
|
99
|
+
declare function listBalanceTransactions(input?: PaginationInput & {
|
|
100
|
+
type?: 'charge' | 'refund' | 'adjustment' | 'application_fee' | 'transfer' | 'payout' | 'stripe_fee';
|
|
101
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.BalanceTransaction>>>;
|
|
102
|
+
|
|
103
|
+
declare function createCoupon(input: CreateCouponInput): Promise<SDKResult<Stripe__default.Coupon>>;
|
|
104
|
+
declare function retrieveCoupon(couponId: string): Promise<SDKResult<Stripe__default.Coupon>>;
|
|
105
|
+
declare function deleteCoupon(couponId: string): Promise<SDKResult<Stripe__default.DeletedCoupon>>;
|
|
106
|
+
declare function listCoupons(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Coupon>>>;
|
|
107
|
+
declare function createPromotionCode(input: CreatePromotionCodeInput): Promise<SDKResult<Stripe__default.PromotionCode>>;
|
|
108
|
+
declare function retrievePromotionCode(promotionCodeId: string): Promise<SDKResult<Stripe__default.PromotionCode>>;
|
|
109
|
+
declare function listPromotionCodes(input?: PaginationInput & {
|
|
110
|
+
couponId?: string;
|
|
111
|
+
active?: boolean;
|
|
112
|
+
code?: string;
|
|
113
|
+
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.PromotionCode>>>;
|
|
114
|
+
|
|
115
|
+
export { archivePrice, archiveProduct, attachPaymentMethod, cancelPaymentIntent, cancelSubscription, closeDispute, confirmPaymentIntent, createAccountLink, createCheckoutSession, createConnectAccount, createCoupon, createCustomer, createInvoice, createInvoiceItem, createPaymentIntent, createPaymentLink, createPayout, createPortalSession, createPrice, createProduct, createPromotionCode, createRefund, createSetupIntent, createSubscription, createTransfer, deleteConnectAccount, deleteCoupon, deleteCustomer, detachPaymentMethod, finalizeInvoice, getBalance, getConfig, getStripe, getUpcomingInvoice, initStripe, listBalanceTransactions, listCheckoutSessions, listConnectAccounts, listCoupons, listCustomers, listDisputes, listInvoices, listPaymentIntents, listPaymentMethods, listPayouts, listPrices, listProducts, listPromotionCodes, listRefunds, listSubscriptions, listTransfers, payInvoice, resumeSubscription, retrieveCheckoutSession, retrieveConnectAccount, retrieveCoupon, retrieveCustomer, retrieveDispute, retrieveInvoice, retrievePaymentIntent, retrievePaymentLink, retrievePrice, retrieveProduct, retrievePromotionCode, retrieveRefund, retrieveSetupIntent, retrieveSubscription, searchCustomers, sendInvoice, updateCustomer, updateDispute, updateProduct, updateSubscription, voidInvoice };
|