stripe 19.2.0-alpha.2 → 19.2.0-alpha.3
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/CHANGELOG.md +7 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js +28 -0
- package/cjs/resources/Identity/BlocklistEntries.js +25 -0
- package/cjs/resources.js +7 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/DelegatedCheckout/RequestedSessions.js +25 -0
- package/esm/resources/Identity/BlocklistEntries.js +22 -0
- package/esm/resources.js +6 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/DelegatedCheckout/RequestedSessions.d.ts +43 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +108 -0
- package/types/Identity/BlocklistEntries.d.ts +78 -0
- package/types/Identity/BlocklistEntriesResource.d.ts +146 -0
- package/types/Identity/VerificationReports.d.ts +10 -0
- package/types/Identity/VerificationReportsResource.d.ts +5 -0
- package/types/index.d.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 19.2.0-alpha.3 - 2025-10-17
|
|
4
|
+
* [#2463](https://github.com/stripe/stripe-node/pull/2463) Update generated code for private-preview
|
|
5
|
+
* Add support for new resources `DelegatedCheckout.RequestedSession` and `Identity.BlocklistEntry`
|
|
6
|
+
* Add support for `confirm`, `create`, `expire`, `retrieve`, and `update` methods on resource `DelegatedCheckout.RequestedSession`
|
|
7
|
+
* Add support for `create`, `disable`, `list`, and `retrieve` methods on resource `Identity.BlocklistEntry`
|
|
8
|
+
* Add support for `blocked_by_entry` on `Identity.VerificationReport.document`, `Identity.VerificationReport.selfie`, and `Identity.VerificationReportListParams`
|
|
9
|
+
|
|
3
10
|
## 19.2.0-alpha.2 - 2025-10-09
|
|
4
11
|
* [#2457](https://github.com/stripe/stripe-node/pull/2457) Update generated code for private-preview
|
|
5
12
|
* Add support for new resource `PaymentMethodBalance`
|
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v2080
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
19.2.0-alpha.
|
|
1
|
+
19.2.0-alpha.3
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RequestedSessions = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.RequestedSessions = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
create: stripeMethod({
|
|
9
|
+
method: 'POST',
|
|
10
|
+
fullPath: '/v1/delegated_checkout/requested_sessions',
|
|
11
|
+
}),
|
|
12
|
+
retrieve: stripeMethod({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}',
|
|
15
|
+
}),
|
|
16
|
+
update: stripeMethod({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}',
|
|
19
|
+
}),
|
|
20
|
+
confirm: stripeMethod({
|
|
21
|
+
method: 'POST',
|
|
22
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}/confirm',
|
|
23
|
+
}),
|
|
24
|
+
expire: stripeMethod({
|
|
25
|
+
method: 'POST',
|
|
26
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}/expire',
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.BlocklistEntries = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.BlocklistEntries = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
create: stripeMethod({
|
|
9
|
+
method: 'POST',
|
|
10
|
+
fullPath: '/v1/identity/blocklist_entries',
|
|
11
|
+
}),
|
|
12
|
+
retrieve: stripeMethod({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
fullPath: '/v1/identity/blocklist_entries/{id}',
|
|
15
|
+
}),
|
|
16
|
+
list: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
fullPath: '/v1/identity/blocklist_entries',
|
|
19
|
+
methodType: 'list',
|
|
20
|
+
}),
|
|
21
|
+
disable: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
fullPath: '/v1/identity/blocklist_entries/{id}/disable',
|
|
24
|
+
}),
|
|
25
|
+
});
|
package/cjs/resources.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentRecords = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.PaymentAttemptRecords = exports.Orders = exports.OAuth = exports.Margins = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoicePayments = exports.InvoiceItems = exports.FxQuotes = exports.Files = exports.FileLinks = exports.ExternalAccounts = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.BalanceSettings = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
|
|
5
|
-
exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Privacy = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = void 0;
|
|
5
|
+
exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Privacy = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.DelegatedCheckout = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = void 0;
|
|
6
6
|
const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
|
|
7
7
|
const AccountLinks_js_1 = require("./resources/V2/Core/AccountLinks.js");
|
|
8
8
|
const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
|
|
@@ -15,6 +15,7 @@ const Authorizations_js_1 = require("./resources/Issuing/Authorizations.js");
|
|
|
15
15
|
const Authorizations_js_2 = require("./resources/TestHelpers/Issuing/Authorizations.js");
|
|
16
16
|
const AutomaticRules_js_1 = require("./resources/V2/Tax/AutomaticRules.js");
|
|
17
17
|
const BillSettings_js_1 = require("./resources/V2/Billing/BillSettings.js");
|
|
18
|
+
const BlocklistEntries_js_1 = require("./resources/Identity/BlocklistEntries.js");
|
|
18
19
|
const Cadences_js_1 = require("./resources/V2/Billing/Cadences.js");
|
|
19
20
|
const Calculations_js_1 = require("./resources/Tax/Calculations.js");
|
|
20
21
|
const Cardholders_js_1 = require("./resources/Issuing/Cardholders.js");
|
|
@@ -106,6 +107,7 @@ const Refunds_js_1 = require("./resources/TestHelpers/Refunds.js");
|
|
|
106
107
|
const Registrations_js_1 = require("./resources/Tax/Registrations.js");
|
|
107
108
|
const ReportRuns_js_1 = require("./resources/Reporting/ReportRuns.js");
|
|
108
109
|
const ReportTypes_js_1 = require("./resources/Reporting/ReportTypes.js");
|
|
110
|
+
const RequestedSessions_js_1 = require("./resources/DelegatedCheckout/RequestedSessions.js");
|
|
109
111
|
const Requests_js_1 = require("./resources/Forwarding/Requests.js");
|
|
110
112
|
const ScheduledQueryRuns_js_1 = require("./resources/Sigma/ScheduledQueryRuns.js");
|
|
111
113
|
const Secrets_js_1 = require("./resources/Apps/Secrets.js");
|
|
@@ -284,6 +286,9 @@ exports.Climate = (0, ResourceNamespace_js_1.resourceNamespace)('climate', {
|
|
|
284
286
|
Products: Products_js_1.Products,
|
|
285
287
|
Suppliers: Suppliers_js_1.Suppliers,
|
|
286
288
|
});
|
|
289
|
+
exports.DelegatedCheckout = (0, ResourceNamespace_js_1.resourceNamespace)('delegatedCheckout', {
|
|
290
|
+
RequestedSessions: RequestedSessions_js_1.RequestedSessions,
|
|
291
|
+
});
|
|
287
292
|
exports.Entitlements = (0, ResourceNamespace_js_1.resourceNamespace)('entitlements', {
|
|
288
293
|
ActiveEntitlements: ActiveEntitlements_js_1.ActiveEntitlements,
|
|
289
294
|
Features: Features_js_1.Features,
|
|
@@ -298,6 +303,7 @@ exports.Forwarding = (0, ResourceNamespace_js_1.resourceNamespace)('forwarding',
|
|
|
298
303
|
Requests: Requests_js_1.Requests,
|
|
299
304
|
});
|
|
300
305
|
exports.Identity = (0, ResourceNamespace_js_1.resourceNamespace)('identity', {
|
|
306
|
+
BlocklistEntries: BlocklistEntries_js_1.BlocklistEntries,
|
|
301
307
|
VerificationReports: VerificationReports_js_1.VerificationReports,
|
|
302
308
|
VerificationSessions: VerificationSessions_js_1.VerificationSessions,
|
|
303
309
|
});
|
package/cjs/stripe.core.js
CHANGED
|
@@ -37,7 +37,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
37
37
|
];
|
|
38
38
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
39
39
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
40
|
-
Stripe.PACKAGE_VERSION = '19.2.0-alpha.
|
|
40
|
+
Stripe.PACKAGE_VERSION = '19.2.0-alpha.3';
|
|
41
41
|
Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
|
|
42
42
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
43
43
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const RequestedSessions = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({
|
|
6
|
+
method: 'POST',
|
|
7
|
+
fullPath: '/v1/delegated_checkout/requested_sessions',
|
|
8
|
+
}),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}',
|
|
12
|
+
}),
|
|
13
|
+
update: stripeMethod({
|
|
14
|
+
method: 'POST',
|
|
15
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}',
|
|
16
|
+
}),
|
|
17
|
+
confirm: stripeMethod({
|
|
18
|
+
method: 'POST',
|
|
19
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}/confirm',
|
|
20
|
+
}),
|
|
21
|
+
expire: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}/expire',
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const BlocklistEntries = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({
|
|
6
|
+
method: 'POST',
|
|
7
|
+
fullPath: '/v1/identity/blocklist_entries',
|
|
8
|
+
}),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/identity/blocklist_entries/{id}',
|
|
12
|
+
}),
|
|
13
|
+
list: stripeMethod({
|
|
14
|
+
method: 'GET',
|
|
15
|
+
fullPath: '/v1/identity/blocklist_entries',
|
|
16
|
+
methodType: 'list',
|
|
17
|
+
}),
|
|
18
|
+
disable: stripeMethod({
|
|
19
|
+
method: 'POST',
|
|
20
|
+
fullPath: '/v1/identity/blocklist_entries/{id}/disable',
|
|
21
|
+
}),
|
|
22
|
+
});
|
package/esm/resources.js
CHANGED
|
@@ -11,6 +11,7 @@ import { Authorizations as IssuingAuthorizations } from './resources/Issuing/Aut
|
|
|
11
11
|
import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
|
|
12
12
|
import { AutomaticRules as V2TaxAutomaticRules } from './resources/V2/Tax/AutomaticRules.js';
|
|
13
13
|
import { BillSettings as V2BillingBillSettings } from './resources/V2/Billing/BillSettings.js';
|
|
14
|
+
import { BlocklistEntries as IdentityBlocklistEntries } from './resources/Identity/BlocklistEntries.js';
|
|
14
15
|
import { Cadences as V2BillingCadences } from './resources/V2/Billing/Cadences.js';
|
|
15
16
|
import { Calculations as TaxCalculations } from './resources/Tax/Calculations.js';
|
|
16
17
|
import { Cardholders as IssuingCardholders } from './resources/Issuing/Cardholders.js';
|
|
@@ -102,6 +103,7 @@ import { Refunds as TestHelpersRefunds } from './resources/TestHelpers/Refunds.j
|
|
|
102
103
|
import { Registrations as TaxRegistrations } from './resources/Tax/Registrations.js';
|
|
103
104
|
import { ReportRuns as ReportingReportRuns } from './resources/Reporting/ReportRuns.js';
|
|
104
105
|
import { ReportTypes as ReportingReportTypes } from './resources/Reporting/ReportTypes.js';
|
|
106
|
+
import { RequestedSessions as DelegatedCheckoutRequestedSessions } from './resources/DelegatedCheckout/RequestedSessions.js';
|
|
105
107
|
import { Requests as ForwardingRequests } from './resources/Forwarding/Requests.js';
|
|
106
108
|
import { ScheduledQueryRuns as SigmaScheduledQueryRuns } from './resources/Sigma/ScheduledQueryRuns.js';
|
|
107
109
|
import { Secrets as AppsSecrets } from './resources/Apps/Secrets.js';
|
|
@@ -218,6 +220,9 @@ export const Climate = resourceNamespace('climate', {
|
|
|
218
220
|
Products: ClimateProducts,
|
|
219
221
|
Suppliers: ClimateSuppliers,
|
|
220
222
|
});
|
|
223
|
+
export const DelegatedCheckout = resourceNamespace('delegatedCheckout', {
|
|
224
|
+
RequestedSessions: DelegatedCheckoutRequestedSessions,
|
|
225
|
+
});
|
|
221
226
|
export const Entitlements = resourceNamespace('entitlements', {
|
|
222
227
|
ActiveEntitlements: EntitlementsActiveEntitlements,
|
|
223
228
|
Features: EntitlementsFeatures,
|
|
@@ -232,6 +237,7 @@ export const Forwarding = resourceNamespace('forwarding', {
|
|
|
232
237
|
Requests: ForwardingRequests,
|
|
233
238
|
});
|
|
234
239
|
export const Identity = resourceNamespace('identity', {
|
|
240
|
+
BlocklistEntries: IdentityBlocklistEntries,
|
|
235
241
|
VerificationReports: IdentityVerificationReports,
|
|
236
242
|
VerificationSessions: IdentityVerificationSessions,
|
|
237
243
|
});
|
package/esm/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '19.2.0-alpha.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '19.2.0-alpha.3';
|
|
38
38
|
Stripe.API_VERSION = ApiVersion;
|
|
39
39
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
40
40
|
Stripe.StripeResource = StripeResource;
|
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace DelegatedCheckout {
|
|
6
|
+
/**
|
|
7
|
+
* A requested session is a session that has been requested by a customer.
|
|
8
|
+
*/
|
|
9
|
+
interface RequestedSession {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'delegated_checkout.requested_session';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
22
|
+
*/
|
|
23
|
+
currency: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The customer for this requested session.
|
|
27
|
+
*/
|
|
28
|
+
customer: string | null;
|
|
29
|
+
|
|
30
|
+
fulfillment_details: RequestedSession.FulfillmentDetails | null;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
34
|
+
*/
|
|
35
|
+
livemode: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
namespace RequestedSession {
|
|
39
|
+
interface FulfillmentDetails {}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace DelegatedCheckout {
|
|
6
|
+
interface RequestedSessionCreateParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface RequestedSessionRetrieveParams {
|
|
14
|
+
/**
|
|
15
|
+
* Specifies which fields in the response should be expanded.
|
|
16
|
+
*/
|
|
17
|
+
expand?: Array<string>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface RequestedSessionUpdateParams {
|
|
21
|
+
/**
|
|
22
|
+
* Specifies which fields in the response should be expanded.
|
|
23
|
+
*/
|
|
24
|
+
expand?: Array<string>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface RequestedSessionConfirmParams {
|
|
28
|
+
/**
|
|
29
|
+
* Specifies which fields in the response should be expanded.
|
|
30
|
+
*/
|
|
31
|
+
expand?: Array<string>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The PaymentMethod to use with the requested session.
|
|
35
|
+
*/
|
|
36
|
+
payment_method?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface RequestedSessionExpireParams {
|
|
40
|
+
/**
|
|
41
|
+
* Specifies which fields in the response should be expanded.
|
|
42
|
+
*/
|
|
43
|
+
expand?: Array<string>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
class RequestedSessionsResource {
|
|
47
|
+
/**
|
|
48
|
+
* Creates a requested session
|
|
49
|
+
*/
|
|
50
|
+
create(
|
|
51
|
+
params?: RequestedSessionCreateParams,
|
|
52
|
+
options?: RequestOptions
|
|
53
|
+
): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
|
|
54
|
+
create(
|
|
55
|
+
options?: RequestOptions
|
|
56
|
+
): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves a requested session
|
|
60
|
+
*/
|
|
61
|
+
retrieve(
|
|
62
|
+
id: string,
|
|
63
|
+
params?: RequestedSessionRetrieveParams,
|
|
64
|
+
options?: RequestOptions
|
|
65
|
+
): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
|
|
66
|
+
retrieve(
|
|
67
|
+
id: string,
|
|
68
|
+
options?: RequestOptions
|
|
69
|
+
): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Updates a requested session
|
|
73
|
+
*/
|
|
74
|
+
update(
|
|
75
|
+
id: string,
|
|
76
|
+
params?: RequestedSessionUpdateParams,
|
|
77
|
+
options?: RequestOptions
|
|
78
|
+
): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Confirms a requested session
|
|
82
|
+
*/
|
|
83
|
+
confirm(
|
|
84
|
+
id: string,
|
|
85
|
+
params?: RequestedSessionConfirmParams,
|
|
86
|
+
options?: RequestOptions
|
|
87
|
+
): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
|
|
88
|
+
confirm(
|
|
89
|
+
id: string,
|
|
90
|
+
options?: RequestOptions
|
|
91
|
+
): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Expires a requested session
|
|
95
|
+
*/
|
|
96
|
+
expire(
|
|
97
|
+
id: string,
|
|
98
|
+
params?: RequestedSessionExpireParams,
|
|
99
|
+
options?: RequestOptions
|
|
100
|
+
): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
|
|
101
|
+
expire(
|
|
102
|
+
id: string,
|
|
103
|
+
options?: RequestOptions
|
|
104
|
+
): Promise<Stripe.Response<Stripe.DelegatedCheckout.RequestedSession>>;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Identity {
|
|
6
|
+
/**
|
|
7
|
+
* A BlocklistEntry represents an entry in our identity verification blocklist.
|
|
8
|
+
* It helps prevent fraudulent users from repeatedly attempting verification with similar information.
|
|
9
|
+
* When you create a BlocklistEntry, we store data from a specified VerificationReport,
|
|
10
|
+
* such as document details or facial biometrics.
|
|
11
|
+
* This allows us to compare future verification attempts against these entries.
|
|
12
|
+
* If a match is found, we categorize the new verification as unverified.
|
|
13
|
+
*
|
|
14
|
+
* To learn more, see [Identity Verification Blocklist](https://stripe.com/docs/identity/review-tools#block-list)
|
|
15
|
+
*/
|
|
16
|
+
interface BlocklistEntry {
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier for the object.
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
24
|
+
*/
|
|
25
|
+
object: 'identity.blocklist_entry';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
29
|
+
*/
|
|
30
|
+
created: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Time at which you disabled the BlocklistEntry. Measured in seconds since the Unix epoch.
|
|
34
|
+
*/
|
|
35
|
+
disabled_at: number | null;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Time at which the BlocklistEntry expires. Measured in seconds since the Unix epoch.
|
|
39
|
+
*/
|
|
40
|
+
expires_at: number | null;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
44
|
+
*/
|
|
45
|
+
livemode: boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The current status of the BlocklistEntry.
|
|
49
|
+
*/
|
|
50
|
+
status: BlocklistEntry.Status;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The type of BlocklistEntry.
|
|
54
|
+
*/
|
|
55
|
+
type: BlocklistEntry.Type;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The verification report the BlocklistEntry was created from.
|
|
59
|
+
*/
|
|
60
|
+
verification_report: string | Stripe.Identity.VerificationReport | null;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The verification session the BlocklistEntry was created from.
|
|
64
|
+
*/
|
|
65
|
+
verification_session:
|
|
66
|
+
| string
|
|
67
|
+
| Stripe.Identity.VerificationSession
|
|
68
|
+
| null;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
namespace BlocklistEntry {
|
|
72
|
+
type Status = 'active' | 'disabled' | 'redacted';
|
|
73
|
+
|
|
74
|
+
type Type = 'document' | 'selfie';
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Identity {
|
|
6
|
+
interface BlocklistEntryCreateParams {
|
|
7
|
+
/**
|
|
8
|
+
* The type of blocklist entry to be created.
|
|
9
|
+
*/
|
|
10
|
+
entry_type: BlocklistEntryCreateParams.EntryType;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The identifier of the VerificationReport to create the BlocklistEntry from.
|
|
14
|
+
*/
|
|
15
|
+
verification_report: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* When true, the created BlocklistEntry will be used to retroactively unverify matching verifications.
|
|
19
|
+
*/
|
|
20
|
+
check_existing_verifications?: boolean;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Specifies which fields in the response should be expanded.
|
|
24
|
+
*/
|
|
25
|
+
expand?: Array<string>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
namespace BlocklistEntryCreateParams {
|
|
29
|
+
type EntryType = 'document' | 'selfie';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface BlocklistEntryRetrieveParams {
|
|
33
|
+
/**
|
|
34
|
+
* Specifies which fields in the response should be expanded.
|
|
35
|
+
*/
|
|
36
|
+
expand?: Array<string>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface BlocklistEntryListParams extends PaginationParams {
|
|
40
|
+
/**
|
|
41
|
+
* Only return BlocklistEntries that were created during the given date interval.
|
|
42
|
+
*/
|
|
43
|
+
created?: Stripe.RangeQueryParam | number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Specifies which fields in the response should be expanded.
|
|
47
|
+
*/
|
|
48
|
+
expand?: Array<string>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Only return blocklist entries with the specified status.
|
|
52
|
+
*/
|
|
53
|
+
status?: BlocklistEntryListParams.Status;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Only return blocklist entries of the specified type.
|
|
57
|
+
*/
|
|
58
|
+
type?: BlocklistEntryListParams.Type;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Only return blocklist entries created from this verification report.
|
|
62
|
+
*/
|
|
63
|
+
verification_report?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
namespace BlocklistEntryListParams {
|
|
67
|
+
type Status = 'active' | 'disabled' | 'redacted';
|
|
68
|
+
|
|
69
|
+
type Type = 'document' | 'selfie';
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface BlocklistEntryDisableParams {
|
|
73
|
+
/**
|
|
74
|
+
* Specifies which fields in the response should be expanded.
|
|
75
|
+
*/
|
|
76
|
+
expand?: Array<string>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
class BlocklistEntriesResource {
|
|
80
|
+
/**
|
|
81
|
+
* Creates a BlocklistEntry object from a verification report.
|
|
82
|
+
*
|
|
83
|
+
* A blocklist entry prevents future identity verifications that match the same identity information.
|
|
84
|
+
* You can create blocklist entries from verification reports that contain document extracted data
|
|
85
|
+
* or a selfie.
|
|
86
|
+
*
|
|
87
|
+
* Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#add-a-blocklist-entry)
|
|
88
|
+
*/
|
|
89
|
+
create(
|
|
90
|
+
params: BlocklistEntryCreateParams,
|
|
91
|
+
options?: RequestOptions
|
|
92
|
+
): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Retrieves a BlocklistEntry object by its identifier.
|
|
96
|
+
*
|
|
97
|
+
* Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#block-list)
|
|
98
|
+
*/
|
|
99
|
+
retrieve(
|
|
100
|
+
id: string,
|
|
101
|
+
params?: BlocklistEntryRetrieveParams,
|
|
102
|
+
options?: RequestOptions
|
|
103
|
+
): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
|
|
104
|
+
retrieve(
|
|
105
|
+
id: string,
|
|
106
|
+
options?: RequestOptions
|
|
107
|
+
): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Returns a list of BlocklistEntry objects associated with your account.
|
|
111
|
+
*
|
|
112
|
+
* The blocklist entries are returned sorted by creation date, with the most recently created
|
|
113
|
+
* entries appearing first.
|
|
114
|
+
*
|
|
115
|
+
* Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#block-list)
|
|
116
|
+
*/
|
|
117
|
+
list(
|
|
118
|
+
params?: BlocklistEntryListParams,
|
|
119
|
+
options?: RequestOptions
|
|
120
|
+
): ApiListPromise<Stripe.Identity.BlocklistEntry>;
|
|
121
|
+
list(
|
|
122
|
+
options?: RequestOptions
|
|
123
|
+
): ApiListPromise<Stripe.Identity.BlocklistEntry>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Disables a BlocklistEntry object.
|
|
127
|
+
*
|
|
128
|
+
* After a BlocklistEntry is disabled, it will no longer block future verifications that match
|
|
129
|
+
* the same information. This action is irreversible. To re-enable it, a new BlocklistEntry
|
|
130
|
+
* must be created using the same verification report.
|
|
131
|
+
*
|
|
132
|
+
* Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#disable-a-blocklist-entry)
|
|
133
|
+
*/
|
|
134
|
+
disable(
|
|
135
|
+
id: string,
|
|
136
|
+
params?: BlocklistEntryDisableParams,
|
|
137
|
+
options?: RequestOptions
|
|
138
|
+
): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
|
|
139
|
+
disable(
|
|
140
|
+
id: string,
|
|
141
|
+
options?: RequestOptions
|
|
142
|
+
): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -161,6 +161,11 @@ declare module 'stripe' {
|
|
|
161
161
|
* Sex as it appears in the document.
|
|
162
162
|
*/
|
|
163
163
|
unparsed_sex?: string | null;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* If document was not verified due to extracted data being on the blocklist, this is the token of the BlocklistEntry that blocked it
|
|
167
|
+
*/
|
|
168
|
+
blocked_by_entry?: string | Stripe.Identity.BlocklistEntry | null;
|
|
164
169
|
}
|
|
165
170
|
|
|
166
171
|
namespace Document {
|
|
@@ -454,6 +459,11 @@ declare module 'stripe' {
|
|
|
454
459
|
* Status of this `selfie` check.
|
|
455
460
|
*/
|
|
456
461
|
status: Selfie.Status;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* If selfie was not verified due to being on the blocklist, this is the token of the BlocklistEntry that blocked it
|
|
465
|
+
*/
|
|
466
|
+
blocked_by_entry?: string | Stripe.Identity.BlocklistEntry | null;
|
|
457
467
|
}
|
|
458
468
|
|
|
459
469
|
namespace Selfie {
|
|
@@ -11,6 +11,11 @@ declare module 'stripe' {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
interface VerificationReportListParams extends PaginationParams {
|
|
14
|
+
/**
|
|
15
|
+
* Only return VerificationReports that were blocked by this BlocklistEntry id.
|
|
16
|
+
*/
|
|
17
|
+
blocked_by_entry?: string;
|
|
18
|
+
|
|
14
19
|
/**
|
|
15
20
|
* A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
|
|
16
21
|
*/
|
package/types/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
///<reference path='./CreditNotesResource.d.ts' />
|
|
45
45
|
///<reference path='./CustomerSessionsResource.d.ts' />
|
|
46
46
|
///<reference path='./CustomersResource.d.ts' />
|
|
47
|
+
///<reference path='./DelegatedCheckout/RequestedSessionsResource.d.ts' />
|
|
47
48
|
///<reference path='./DisputesResource.d.ts' />
|
|
48
49
|
///<reference path='./Entitlements/ActiveEntitlementsResource.d.ts' />
|
|
49
50
|
///<reference path='./Entitlements/FeaturesResource.d.ts' />
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
///<reference path='./FinancialConnections/TransactionsResource.d.ts' />
|
|
60
61
|
///<reference path='./Forwarding/RequestsResource.d.ts' />
|
|
61
62
|
///<reference path='./FxQuotesResource.d.ts' />
|
|
63
|
+
///<reference path='./Identity/BlocklistEntriesResource.d.ts' />
|
|
62
64
|
///<reference path='./Identity/VerificationReportsResource.d.ts' />
|
|
63
65
|
///<reference path='./Identity/VerificationSessionsResource.d.ts' />
|
|
64
66
|
///<reference path='./InvoiceItemsResource.d.ts' />
|
|
@@ -253,6 +255,7 @@
|
|
|
253
255
|
///<reference path='./CustomerSessions.d.ts' />
|
|
254
256
|
///<reference path='./CustomerSources.d.ts' />
|
|
255
257
|
///<reference path='./Customers.d.ts' />
|
|
258
|
+
///<reference path='./DelegatedCheckout/RequestedSessions.d.ts' />
|
|
256
259
|
///<reference path='./Discounts.d.ts' />
|
|
257
260
|
///<reference path='./Disputes.d.ts' />
|
|
258
261
|
///<reference path='./Entitlements/ActiveEntitlementSummaries.d.ts' />
|
|
@@ -275,6 +278,7 @@
|
|
|
275
278
|
///<reference path='./Forwarding/Requests.d.ts' />
|
|
276
279
|
///<reference path='./FundingInstructions.d.ts' />
|
|
277
280
|
///<reference path='./FxQuotes.d.ts' />
|
|
281
|
+
///<reference path='./Identity/BlocklistEntries.d.ts' />
|
|
278
282
|
///<reference path='./Identity/VerificationReports.d.ts' />
|
|
279
283
|
///<reference path='./Identity/VerificationSessions.d.ts' />
|
|
280
284
|
///<reference path='./InvoiceItems.d.ts' />
|
|
@@ -540,6 +544,9 @@ declare module 'stripe' {
|
|
|
540
544
|
products: Stripe.Climate.ProductsResource;
|
|
541
545
|
suppliers: Stripe.Climate.SuppliersResource;
|
|
542
546
|
};
|
|
547
|
+
delegatedCheckout: {
|
|
548
|
+
requestedSessions: Stripe.DelegatedCheckout.RequestedSessionsResource;
|
|
549
|
+
};
|
|
543
550
|
entitlements: {
|
|
544
551
|
activeEntitlements: Stripe.Entitlements.ActiveEntitlementsResource;
|
|
545
552
|
features: Stripe.Entitlements.FeaturesResource;
|
|
@@ -554,6 +561,7 @@ declare module 'stripe' {
|
|
|
554
561
|
requests: Stripe.Forwarding.RequestsResource;
|
|
555
562
|
};
|
|
556
563
|
identity: {
|
|
564
|
+
blocklistEntries: Stripe.Identity.BlocklistEntriesResource;
|
|
557
565
|
verificationReports: Stripe.Identity.VerificationReportsResource;
|
|
558
566
|
verificationSessions: Stripe.Identity.VerificationSessionsResource;
|
|
559
567
|
};
|