@stripe-sdk/core 1.0.0 → 1.0.2
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 +88 -261
- package/dist/client/index.d.mts +0 -4
- package/dist/client/index.d.ts +0 -4
- package/dist/client/index.js +70 -11
- package/dist/client/index.mjs +71 -12
- package/dist/{index-D8rM_YD4.d.mts → index-BKDJf1Hz.d.mts} +1 -27
- package/dist/{index-D8rM_YD4.d.ts → index-BKDJf1Hz.d.ts} +1 -27
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +601 -231
- package/dist/index.mjs +602 -232
- package/dist/next/index.d.mts +55 -32
- package/dist/next/index.d.ts +55 -32
- package/dist/next/index.js +362 -143
- package/dist/next/index.mjs +362 -143
- package/dist/server/index.d.mts +61 -21
- package/dist/server/index.d.ts +61 -21
- package/dist/server/index.js +546 -237
- package/dist/server/index.mjs +546 -237
- package/dist/server/webhooks/index.d.mts +1 -1
- package/dist/server/webhooks/index.d.ts +1 -1
- package/dist/server/webhooks/index.js +19 -7
- package/dist/server/webhooks/index.mjs +19 -7
- package/package.json +8 -5
- package/dist/client/index.js.map +0 -1
- package/dist/client/index.mjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/next/index.js.map +0 -1
- package/dist/next/index.mjs.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/index.mjs.map +0 -1
- package/dist/server/webhooks/index.js.map +0 -1
- package/dist/server/webhooks/index.mjs.map +0 -1
package/dist/server/index.d.mts
CHANGED
|
@@ -1,38 +1,58 @@
|
|
|
1
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-
|
|
3
|
-
export { A as createNextWebhookHandler, B as createPagesWebhookHandler, D as createWebhookHandler } from '../index-
|
|
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-BKDJf1Hz.mjs';
|
|
3
|
+
export { A as createNextWebhookHandler, B as createPagesWebhookHandler, D as createWebhookHandler } from '../index-BKDJf1Hz.mjs';
|
|
4
4
|
|
|
5
5
|
declare function initStripe(config: StripeSDKConfig): Stripe__default;
|
|
6
6
|
declare function getStripe(): Stripe__default;
|
|
7
|
-
declare function getConfig(): StripeSDKConfig
|
|
7
|
+
declare function getConfig(): Omit<StripeSDKConfig, 'secretKey'>;
|
|
8
8
|
|
|
9
|
-
declare function createPaymentIntent(input: CreatePaymentIntentInput
|
|
9
|
+
declare function createPaymentIntent(input: CreatePaymentIntentInput, options?: {
|
|
10
|
+
idempotencyKey?: string;
|
|
11
|
+
}): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
10
12
|
declare function retrievePaymentIntent(paymentIntentId: string): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
11
13
|
declare function confirmPaymentIntent(input: ConfirmPaymentInput): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
12
14
|
declare function cancelPaymentIntent(paymentIntentId: string): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
13
15
|
declare function listPaymentIntents(input?: PaginationInput & {
|
|
14
16
|
customerId?: string;
|
|
15
17
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.PaymentIntent>>>;
|
|
16
|
-
declare function createCheckoutSession(input: CreateCheckoutSessionInput
|
|
18
|
+
declare function createCheckoutSession(input: CreateCheckoutSessionInput, options?: {
|
|
19
|
+
idempotencyKey?: string;
|
|
20
|
+
}): Promise<SDKResult<Stripe__default.Checkout.Session>>;
|
|
17
21
|
declare function retrieveCheckoutSession(sessionId: string): Promise<SDKResult<Stripe__default.Checkout.Session>>;
|
|
18
22
|
declare function listCheckoutSessions(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Checkout.Session>>>;
|
|
19
|
-
declare function createPaymentLink(input: CreatePaymentLinkInput
|
|
23
|
+
declare function createPaymentLink(input: CreatePaymentLinkInput, options?: {
|
|
24
|
+
idempotencyKey?: string;
|
|
25
|
+
}): Promise<SDKResult<Stripe__default.PaymentLink>>;
|
|
20
26
|
declare function retrievePaymentLink(paymentLinkId: string): Promise<SDKResult<Stripe__default.PaymentLink>>;
|
|
21
|
-
declare function createSetupIntent(input: CreateSetupIntentInput
|
|
27
|
+
declare function createSetupIntent(input: CreateSetupIntentInput, options?: {
|
|
28
|
+
idempotencyKey?: string;
|
|
29
|
+
}): Promise<SDKResult<Stripe__default.SetupIntent>>;
|
|
22
30
|
declare function retrieveSetupIntent(setupIntentId: string): Promise<SDKResult<Stripe__default.SetupIntent>>;
|
|
23
31
|
declare function listPaymentMethods(customerId: string, type?: Stripe__default.PaymentMethodListParams.Type): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.PaymentMethod>>>;
|
|
24
32
|
declare function attachPaymentMethod(paymentMethodId: string, customerId: string): Promise<SDKResult<Stripe__default.PaymentMethod>>;
|
|
25
33
|
declare function detachPaymentMethod(paymentMethodId: string): Promise<SDKResult<Stripe__default.PaymentMethod>>;
|
|
26
34
|
|
|
27
|
-
declare function createCustomer(input: CreateCustomerInput
|
|
35
|
+
declare function createCustomer(input: CreateCustomerInput, options?: {
|
|
36
|
+
idempotencyKey?: string;
|
|
37
|
+
}): Promise<SDKResult<Stripe__default.Customer>>;
|
|
28
38
|
declare function retrieveCustomer(customerId: string): Promise<SDKResult<Stripe__default.Customer>>;
|
|
29
39
|
declare function updateCustomer(input: UpdateCustomerInput): Promise<SDKResult<Stripe__default.Customer>>;
|
|
30
40
|
declare function deleteCustomer(customerId: string): Promise<SDKResult<Stripe__default.DeletedCustomer>>;
|
|
31
41
|
declare function listCustomers(input?: ListCustomersInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Customer>>>;
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
interface SearchCustomersInput {
|
|
43
|
+
email?: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
phone?: string;
|
|
46
|
+
limit?: number;
|
|
47
|
+
}
|
|
48
|
+
declare function searchCustomers(input: SearchCustomersInput): Promise<SDKResult<Stripe__default.ApiSearchResult<Stripe__default.Customer>>>;
|
|
49
|
+
declare function createPortalSession(input: CreatePortalSessionInput, options?: {
|
|
50
|
+
idempotencyKey?: string;
|
|
51
|
+
}): Promise<SDKResult<Stripe__default.BillingPortal.Session>>;
|
|
34
52
|
|
|
35
|
-
declare function createSubscription(input: CreateSubscriptionInput
|
|
53
|
+
declare function createSubscription(input: CreateSubscriptionInput, options?: {
|
|
54
|
+
idempotencyKey?: string;
|
|
55
|
+
}): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
36
56
|
declare function retrieveSubscription(subscriptionId: string): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
37
57
|
declare function updateSubscription(input: UpdateSubscriptionInput): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
38
58
|
declare function cancelSubscription(input: CancelSubscriptionInput): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
@@ -42,14 +62,18 @@ declare function listSubscriptions(input?: PaginationInput & {
|
|
|
42
62
|
status?: Stripe__default.SubscriptionListParams.Status;
|
|
43
63
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Subscription>>>;
|
|
44
64
|
|
|
45
|
-
declare function createProduct(input: CreateProductInput
|
|
65
|
+
declare function createProduct(input: CreateProductInput, options?: {
|
|
66
|
+
idempotencyKey?: string;
|
|
67
|
+
}): Promise<SDKResult<Stripe__default.Product>>;
|
|
46
68
|
declare function retrieveProduct(productId: string): Promise<SDKResult<Stripe__default.Product>>;
|
|
47
69
|
declare function updateProduct(input: UpdateProductInput): Promise<SDKResult<Stripe__default.Product>>;
|
|
48
70
|
declare function archiveProduct(productId: string): Promise<SDKResult<Stripe__default.Product>>;
|
|
49
71
|
declare function listProducts(input?: PaginationInput & {
|
|
50
72
|
active?: boolean;
|
|
51
73
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Product>>>;
|
|
52
|
-
declare function createPrice(input: CreatePriceInput
|
|
74
|
+
declare function createPrice(input: CreatePriceInput, options?: {
|
|
75
|
+
idempotencyKey?: string;
|
|
76
|
+
}): Promise<SDKResult<Stripe__default.Price>>;
|
|
53
77
|
declare function retrievePrice(priceId: string): Promise<SDKResult<Stripe__default.Price>>;
|
|
54
78
|
declare function listPrices(input?: PaginationInput & {
|
|
55
79
|
productId?: string;
|
|
@@ -58,7 +82,9 @@ declare function listPrices(input?: PaginationInput & {
|
|
|
58
82
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Price>>>;
|
|
59
83
|
declare function archivePrice(priceId: string): Promise<SDKResult<Stripe__default.Price>>;
|
|
60
84
|
|
|
61
|
-
declare function createInvoice(input: CreateInvoiceInput
|
|
85
|
+
declare function createInvoice(input: CreateInvoiceInput, options?: {
|
|
86
|
+
idempotencyKey?: string;
|
|
87
|
+
}): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
62
88
|
declare function retrieveInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
63
89
|
declare function finalizeInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
64
90
|
declare function sendInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
@@ -69,9 +95,13 @@ declare function listInvoices(input?: PaginationInput & {
|
|
|
69
95
|
status?: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void';
|
|
70
96
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Invoice>>>;
|
|
71
97
|
declare function getUpcomingInvoice(customerId: string, subscriptionId?: string): Promise<SDKResult<Stripe__default.UpcomingInvoice>>;
|
|
72
|
-
declare function createInvoiceItem(input: CreateInvoiceItemInput
|
|
98
|
+
declare function createInvoiceItem(input: CreateInvoiceItemInput, options?: {
|
|
99
|
+
idempotencyKey?: string;
|
|
100
|
+
}): Promise<SDKResult<Stripe__default.InvoiceItem>>;
|
|
73
101
|
|
|
74
|
-
declare function createRefund(input: CreateRefundInput
|
|
102
|
+
declare function createRefund(input: CreateRefundInput, options?: {
|
|
103
|
+
idempotencyKey?: string;
|
|
104
|
+
}): Promise<SDKResult<Stripe__default.Refund>>;
|
|
75
105
|
declare function retrieveRefund(refundId: string): Promise<SDKResult<Stripe__default.Refund>>;
|
|
76
106
|
declare function listRefunds(input?: PaginationInput & {
|
|
77
107
|
paymentIntentId?: string;
|
|
@@ -82,16 +112,22 @@ declare function updateDispute(input: UpdateDisputeInput): Promise<SDKResult<Str
|
|
|
82
112
|
declare function closeDispute(disputeId: string): Promise<SDKResult<Stripe__default.Dispute>>;
|
|
83
113
|
declare function listDisputes(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Dispute>>>;
|
|
84
114
|
|
|
85
|
-
declare function createConnectAccount(input: CreateConnectAccountInput
|
|
115
|
+
declare function createConnectAccount(input: CreateConnectAccountInput, options?: {
|
|
116
|
+
idempotencyKey?: string;
|
|
117
|
+
}): Promise<SDKResult<Stripe__default.Account>>;
|
|
86
118
|
declare function retrieveConnectAccount(accountId: string): Promise<SDKResult<Stripe__default.Account>>;
|
|
87
119
|
declare function deleteConnectAccount(accountId: string): Promise<SDKResult<Stripe__default.DeletedAccount>>;
|
|
88
120
|
declare function listConnectAccounts(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Account>>>;
|
|
89
121
|
declare function createAccountLink(input: CreateAccountLinkInput): Promise<SDKResult<Stripe__default.AccountLink>>;
|
|
90
|
-
declare function createTransfer(input: CreateTransferInput
|
|
122
|
+
declare function createTransfer(input: CreateTransferInput, options?: {
|
|
123
|
+
idempotencyKey?: string;
|
|
124
|
+
}): Promise<SDKResult<Stripe__default.Transfer>>;
|
|
91
125
|
declare function listTransfers(input?: PaginationInput & {
|
|
92
126
|
destinationAccountId?: string;
|
|
93
127
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Transfer>>>;
|
|
94
|
-
declare function createPayout(amount: number, currency: string, metadata?: Record<string, string
|
|
128
|
+
declare function createPayout(amount: number, currency: string, metadata?: Record<string, string>, options?: {
|
|
129
|
+
idempotencyKey?: string;
|
|
130
|
+
}): Promise<SDKResult<Stripe__default.Payout>>;
|
|
95
131
|
declare function listPayouts(input?: PaginationInput & {
|
|
96
132
|
status?: 'paid' | 'pending' | 'in_transit' | 'canceled' | 'failed';
|
|
97
133
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Payout>>>;
|
|
@@ -100,11 +136,15 @@ declare function listBalanceTransactions(input?: PaginationInput & {
|
|
|
100
136
|
type?: 'charge' | 'refund' | 'adjustment' | 'application_fee' | 'transfer' | 'payout' | 'stripe_fee';
|
|
101
137
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.BalanceTransaction>>>;
|
|
102
138
|
|
|
103
|
-
declare function createCoupon(input: CreateCouponInput
|
|
139
|
+
declare function createCoupon(input: CreateCouponInput, options?: {
|
|
140
|
+
idempotencyKey?: string;
|
|
141
|
+
}): Promise<SDKResult<Stripe__default.Coupon>>;
|
|
104
142
|
declare function retrieveCoupon(couponId: string): Promise<SDKResult<Stripe__default.Coupon>>;
|
|
105
143
|
declare function deleteCoupon(couponId: string): Promise<SDKResult<Stripe__default.DeletedCoupon>>;
|
|
106
144
|
declare function listCoupons(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Coupon>>>;
|
|
107
|
-
declare function createPromotionCode(input: CreatePromotionCodeInput
|
|
145
|
+
declare function createPromotionCode(input: CreatePromotionCodeInput, options?: {
|
|
146
|
+
idempotencyKey?: string;
|
|
147
|
+
}): Promise<SDKResult<Stripe__default.PromotionCode>>;
|
|
108
148
|
declare function retrievePromotionCode(promotionCodeId: string): Promise<SDKResult<Stripe__default.PromotionCode>>;
|
|
109
149
|
declare function listPromotionCodes(input?: PaginationInput & {
|
|
110
150
|
couponId?: string;
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,38 +1,58 @@
|
|
|
1
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-
|
|
3
|
-
export { A as createNextWebhookHandler, B as createPagesWebhookHandler, D as createWebhookHandler } from '../index-
|
|
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-BKDJf1Hz.js';
|
|
3
|
+
export { A as createNextWebhookHandler, B as createPagesWebhookHandler, D as createWebhookHandler } from '../index-BKDJf1Hz.js';
|
|
4
4
|
|
|
5
5
|
declare function initStripe(config: StripeSDKConfig): Stripe__default;
|
|
6
6
|
declare function getStripe(): Stripe__default;
|
|
7
|
-
declare function getConfig(): StripeSDKConfig
|
|
7
|
+
declare function getConfig(): Omit<StripeSDKConfig, 'secretKey'>;
|
|
8
8
|
|
|
9
|
-
declare function createPaymentIntent(input: CreatePaymentIntentInput
|
|
9
|
+
declare function createPaymentIntent(input: CreatePaymentIntentInput, options?: {
|
|
10
|
+
idempotencyKey?: string;
|
|
11
|
+
}): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
10
12
|
declare function retrievePaymentIntent(paymentIntentId: string): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
11
13
|
declare function confirmPaymentIntent(input: ConfirmPaymentInput): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
12
14
|
declare function cancelPaymentIntent(paymentIntentId: string): Promise<SDKResult<Stripe__default.PaymentIntent>>;
|
|
13
15
|
declare function listPaymentIntents(input?: PaginationInput & {
|
|
14
16
|
customerId?: string;
|
|
15
17
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.PaymentIntent>>>;
|
|
16
|
-
declare function createCheckoutSession(input: CreateCheckoutSessionInput
|
|
18
|
+
declare function createCheckoutSession(input: CreateCheckoutSessionInput, options?: {
|
|
19
|
+
idempotencyKey?: string;
|
|
20
|
+
}): Promise<SDKResult<Stripe__default.Checkout.Session>>;
|
|
17
21
|
declare function retrieveCheckoutSession(sessionId: string): Promise<SDKResult<Stripe__default.Checkout.Session>>;
|
|
18
22
|
declare function listCheckoutSessions(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Checkout.Session>>>;
|
|
19
|
-
declare function createPaymentLink(input: CreatePaymentLinkInput
|
|
23
|
+
declare function createPaymentLink(input: CreatePaymentLinkInput, options?: {
|
|
24
|
+
idempotencyKey?: string;
|
|
25
|
+
}): Promise<SDKResult<Stripe__default.PaymentLink>>;
|
|
20
26
|
declare function retrievePaymentLink(paymentLinkId: string): Promise<SDKResult<Stripe__default.PaymentLink>>;
|
|
21
|
-
declare function createSetupIntent(input: CreateSetupIntentInput
|
|
27
|
+
declare function createSetupIntent(input: CreateSetupIntentInput, options?: {
|
|
28
|
+
idempotencyKey?: string;
|
|
29
|
+
}): Promise<SDKResult<Stripe__default.SetupIntent>>;
|
|
22
30
|
declare function retrieveSetupIntent(setupIntentId: string): Promise<SDKResult<Stripe__default.SetupIntent>>;
|
|
23
31
|
declare function listPaymentMethods(customerId: string, type?: Stripe__default.PaymentMethodListParams.Type): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.PaymentMethod>>>;
|
|
24
32
|
declare function attachPaymentMethod(paymentMethodId: string, customerId: string): Promise<SDKResult<Stripe__default.PaymentMethod>>;
|
|
25
33
|
declare function detachPaymentMethod(paymentMethodId: string): Promise<SDKResult<Stripe__default.PaymentMethod>>;
|
|
26
34
|
|
|
27
|
-
declare function createCustomer(input: CreateCustomerInput
|
|
35
|
+
declare function createCustomer(input: CreateCustomerInput, options?: {
|
|
36
|
+
idempotencyKey?: string;
|
|
37
|
+
}): Promise<SDKResult<Stripe__default.Customer>>;
|
|
28
38
|
declare function retrieveCustomer(customerId: string): Promise<SDKResult<Stripe__default.Customer>>;
|
|
29
39
|
declare function updateCustomer(input: UpdateCustomerInput): Promise<SDKResult<Stripe__default.Customer>>;
|
|
30
40
|
declare function deleteCustomer(customerId: string): Promise<SDKResult<Stripe__default.DeletedCustomer>>;
|
|
31
41
|
declare function listCustomers(input?: ListCustomersInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Customer>>>;
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
interface SearchCustomersInput {
|
|
43
|
+
email?: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
phone?: string;
|
|
46
|
+
limit?: number;
|
|
47
|
+
}
|
|
48
|
+
declare function searchCustomers(input: SearchCustomersInput): Promise<SDKResult<Stripe__default.ApiSearchResult<Stripe__default.Customer>>>;
|
|
49
|
+
declare function createPortalSession(input: CreatePortalSessionInput, options?: {
|
|
50
|
+
idempotencyKey?: string;
|
|
51
|
+
}): Promise<SDKResult<Stripe__default.BillingPortal.Session>>;
|
|
34
52
|
|
|
35
|
-
declare function createSubscription(input: CreateSubscriptionInput
|
|
53
|
+
declare function createSubscription(input: CreateSubscriptionInput, options?: {
|
|
54
|
+
idempotencyKey?: string;
|
|
55
|
+
}): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
36
56
|
declare function retrieveSubscription(subscriptionId: string): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
37
57
|
declare function updateSubscription(input: UpdateSubscriptionInput): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
38
58
|
declare function cancelSubscription(input: CancelSubscriptionInput): Promise<SDKResult<Stripe__default.Subscription>>;
|
|
@@ -42,14 +62,18 @@ declare function listSubscriptions(input?: PaginationInput & {
|
|
|
42
62
|
status?: Stripe__default.SubscriptionListParams.Status;
|
|
43
63
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Subscription>>>;
|
|
44
64
|
|
|
45
|
-
declare function createProduct(input: CreateProductInput
|
|
65
|
+
declare function createProduct(input: CreateProductInput, options?: {
|
|
66
|
+
idempotencyKey?: string;
|
|
67
|
+
}): Promise<SDKResult<Stripe__default.Product>>;
|
|
46
68
|
declare function retrieveProduct(productId: string): Promise<SDKResult<Stripe__default.Product>>;
|
|
47
69
|
declare function updateProduct(input: UpdateProductInput): Promise<SDKResult<Stripe__default.Product>>;
|
|
48
70
|
declare function archiveProduct(productId: string): Promise<SDKResult<Stripe__default.Product>>;
|
|
49
71
|
declare function listProducts(input?: PaginationInput & {
|
|
50
72
|
active?: boolean;
|
|
51
73
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Product>>>;
|
|
52
|
-
declare function createPrice(input: CreatePriceInput
|
|
74
|
+
declare function createPrice(input: CreatePriceInput, options?: {
|
|
75
|
+
idempotencyKey?: string;
|
|
76
|
+
}): Promise<SDKResult<Stripe__default.Price>>;
|
|
53
77
|
declare function retrievePrice(priceId: string): Promise<SDKResult<Stripe__default.Price>>;
|
|
54
78
|
declare function listPrices(input?: PaginationInput & {
|
|
55
79
|
productId?: string;
|
|
@@ -58,7 +82,9 @@ declare function listPrices(input?: PaginationInput & {
|
|
|
58
82
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Price>>>;
|
|
59
83
|
declare function archivePrice(priceId: string): Promise<SDKResult<Stripe__default.Price>>;
|
|
60
84
|
|
|
61
|
-
declare function createInvoice(input: CreateInvoiceInput
|
|
85
|
+
declare function createInvoice(input: CreateInvoiceInput, options?: {
|
|
86
|
+
idempotencyKey?: string;
|
|
87
|
+
}): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
62
88
|
declare function retrieveInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
63
89
|
declare function finalizeInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
64
90
|
declare function sendInvoice(invoiceId: string): Promise<SDKResult<Stripe__default.Invoice>>;
|
|
@@ -69,9 +95,13 @@ declare function listInvoices(input?: PaginationInput & {
|
|
|
69
95
|
status?: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void';
|
|
70
96
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Invoice>>>;
|
|
71
97
|
declare function getUpcomingInvoice(customerId: string, subscriptionId?: string): Promise<SDKResult<Stripe__default.UpcomingInvoice>>;
|
|
72
|
-
declare function createInvoiceItem(input: CreateInvoiceItemInput
|
|
98
|
+
declare function createInvoiceItem(input: CreateInvoiceItemInput, options?: {
|
|
99
|
+
idempotencyKey?: string;
|
|
100
|
+
}): Promise<SDKResult<Stripe__default.InvoiceItem>>;
|
|
73
101
|
|
|
74
|
-
declare function createRefund(input: CreateRefundInput
|
|
102
|
+
declare function createRefund(input: CreateRefundInput, options?: {
|
|
103
|
+
idempotencyKey?: string;
|
|
104
|
+
}): Promise<SDKResult<Stripe__default.Refund>>;
|
|
75
105
|
declare function retrieveRefund(refundId: string): Promise<SDKResult<Stripe__default.Refund>>;
|
|
76
106
|
declare function listRefunds(input?: PaginationInput & {
|
|
77
107
|
paymentIntentId?: string;
|
|
@@ -82,16 +112,22 @@ declare function updateDispute(input: UpdateDisputeInput): Promise<SDKResult<Str
|
|
|
82
112
|
declare function closeDispute(disputeId: string): Promise<SDKResult<Stripe__default.Dispute>>;
|
|
83
113
|
declare function listDisputes(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Dispute>>>;
|
|
84
114
|
|
|
85
|
-
declare function createConnectAccount(input: CreateConnectAccountInput
|
|
115
|
+
declare function createConnectAccount(input: CreateConnectAccountInput, options?: {
|
|
116
|
+
idempotencyKey?: string;
|
|
117
|
+
}): Promise<SDKResult<Stripe__default.Account>>;
|
|
86
118
|
declare function retrieveConnectAccount(accountId: string): Promise<SDKResult<Stripe__default.Account>>;
|
|
87
119
|
declare function deleteConnectAccount(accountId: string): Promise<SDKResult<Stripe__default.DeletedAccount>>;
|
|
88
120
|
declare function listConnectAccounts(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Account>>>;
|
|
89
121
|
declare function createAccountLink(input: CreateAccountLinkInput): Promise<SDKResult<Stripe__default.AccountLink>>;
|
|
90
|
-
declare function createTransfer(input: CreateTransferInput
|
|
122
|
+
declare function createTransfer(input: CreateTransferInput, options?: {
|
|
123
|
+
idempotencyKey?: string;
|
|
124
|
+
}): Promise<SDKResult<Stripe__default.Transfer>>;
|
|
91
125
|
declare function listTransfers(input?: PaginationInput & {
|
|
92
126
|
destinationAccountId?: string;
|
|
93
127
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Transfer>>>;
|
|
94
|
-
declare function createPayout(amount: number, currency: string, metadata?: Record<string, string
|
|
128
|
+
declare function createPayout(amount: number, currency: string, metadata?: Record<string, string>, options?: {
|
|
129
|
+
idempotencyKey?: string;
|
|
130
|
+
}): Promise<SDKResult<Stripe__default.Payout>>;
|
|
95
131
|
declare function listPayouts(input?: PaginationInput & {
|
|
96
132
|
status?: 'paid' | 'pending' | 'in_transit' | 'canceled' | 'failed';
|
|
97
133
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Payout>>>;
|
|
@@ -100,11 +136,15 @@ declare function listBalanceTransactions(input?: PaginationInput & {
|
|
|
100
136
|
type?: 'charge' | 'refund' | 'adjustment' | 'application_fee' | 'transfer' | 'payout' | 'stripe_fee';
|
|
101
137
|
}): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.BalanceTransaction>>>;
|
|
102
138
|
|
|
103
|
-
declare function createCoupon(input: CreateCouponInput
|
|
139
|
+
declare function createCoupon(input: CreateCouponInput, options?: {
|
|
140
|
+
idempotencyKey?: string;
|
|
141
|
+
}): Promise<SDKResult<Stripe__default.Coupon>>;
|
|
104
142
|
declare function retrieveCoupon(couponId: string): Promise<SDKResult<Stripe__default.Coupon>>;
|
|
105
143
|
declare function deleteCoupon(couponId: string): Promise<SDKResult<Stripe__default.DeletedCoupon>>;
|
|
106
144
|
declare function listCoupons(input?: PaginationInput): Promise<SDKResult<Stripe__default.ApiList<Stripe__default.Coupon>>>;
|
|
107
|
-
declare function createPromotionCode(input: CreatePromotionCodeInput
|
|
145
|
+
declare function createPromotionCode(input: CreatePromotionCodeInput, options?: {
|
|
146
|
+
idempotencyKey?: string;
|
|
147
|
+
}): Promise<SDKResult<Stripe__default.PromotionCode>>;
|
|
108
148
|
declare function retrievePromotionCode(promotionCodeId: string): Promise<SDKResult<Stripe__default.PromotionCode>>;
|
|
109
149
|
declare function listPromotionCodes(input?: PaginationInput & {
|
|
110
150
|
couponId?: string;
|