Initial project import
This commit is contained in:
414
node_modules/stripe/cjs/resources/Identity/VerificationReports.d.ts
generated
vendored
Normal file
414
node_modules/stripe/cjs/resources/Identity/VerificationReports.d.ts
generated
vendored
Normal file
@@ -0,0 +1,414 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { PaginationParams, RangeQueryParam, Address } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class VerificationReportResource extends StripeResource {
|
||||
/**
|
||||
* List all verification reports.
|
||||
*/
|
||||
list(params?: Identity.VerificationReportListParams, options?: RequestOptions): ApiListPromise<VerificationReport>;
|
||||
/**
|
||||
* Retrieves an existing VerificationReport
|
||||
*/
|
||||
retrieve(id: string, params?: Identity.VerificationReportRetrieveParams, options?: RequestOptions): Promise<Response<VerificationReport>>;
|
||||
}
|
||||
export interface VerificationReport {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'identity.verification_report';
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
client_reference_id: string | null;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* Result from a document check
|
||||
*/
|
||||
document?: Identity.VerificationReport.Document;
|
||||
/**
|
||||
* Result from a email check
|
||||
*/
|
||||
email?: Identity.VerificationReport.Email;
|
||||
/**
|
||||
* Result from an id_number check
|
||||
*/
|
||||
id_number?: Identity.VerificationReport.IdNumber;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
options?: Identity.VerificationReport.Options;
|
||||
/**
|
||||
* Result from a phone check
|
||||
*/
|
||||
phone?: Identity.VerificationReport.Phone;
|
||||
/**
|
||||
* Result from a selfie check
|
||||
*/
|
||||
selfie?: Identity.VerificationReport.Selfie;
|
||||
/**
|
||||
* Type of report.
|
||||
*/
|
||||
type: Identity.VerificationReport.Type;
|
||||
/**
|
||||
* The configuration token of a verification flow from the dashboard.
|
||||
*/
|
||||
verification_flow?: string;
|
||||
/**
|
||||
* ID of the VerificationSession that created this report.
|
||||
*/
|
||||
verification_session: string | null;
|
||||
}
|
||||
export declare namespace Identity {
|
||||
namespace VerificationReport {
|
||||
interface Document {
|
||||
/**
|
||||
* Address as it appears in the document.
|
||||
*/
|
||||
address: Address | null;
|
||||
/**
|
||||
* Date of birth as it appears in the document.
|
||||
*/
|
||||
dob?: Document.Dob | null;
|
||||
/**
|
||||
* Details on the verification error. Present when status is `unverified`.
|
||||
*/
|
||||
error: Document.Error | null;
|
||||
/**
|
||||
* Expiration date of the document.
|
||||
*/
|
||||
expiration_date?: Document.ExpirationDate | null;
|
||||
/**
|
||||
* Array of [File](https://docs.stripe.com/api/files) ids containing images for this document.
|
||||
*/
|
||||
files: Array<string> | null;
|
||||
/**
|
||||
* First name as it appears in the document.
|
||||
*/
|
||||
first_name: string | null;
|
||||
/**
|
||||
* Issued date of the document.
|
||||
*/
|
||||
issued_date: Document.IssuedDate | null;
|
||||
/**
|
||||
* Issuing country of the document.
|
||||
*/
|
||||
issuing_country: string | null;
|
||||
/**
|
||||
* Last name as it appears in the document.
|
||||
*/
|
||||
last_name: string | null;
|
||||
/**
|
||||
* Document ID number.
|
||||
*/
|
||||
number?: string | null;
|
||||
/**
|
||||
* Sex of the person in the document.
|
||||
*/
|
||||
sex?: Document.Sex | null;
|
||||
/**
|
||||
* Status of this `document` check.
|
||||
*/
|
||||
status: Document.Status;
|
||||
/**
|
||||
* Type of the document.
|
||||
*/
|
||||
type: Document.Type | null;
|
||||
/**
|
||||
* Place of birth as it appears in the document.
|
||||
*/
|
||||
unparsed_place_of_birth?: string | null;
|
||||
/**
|
||||
* Sex as it appears in the document.
|
||||
*/
|
||||
unparsed_sex?: string | null;
|
||||
}
|
||||
interface Email {
|
||||
/**
|
||||
* Email to be verified.
|
||||
*/
|
||||
email: string | null;
|
||||
/**
|
||||
* Details on the verification error. Present when status is `unverified`.
|
||||
*/
|
||||
error: Email.Error | null;
|
||||
/**
|
||||
* Status of this `email` check.
|
||||
*/
|
||||
status: Email.Status;
|
||||
}
|
||||
interface IdNumber {
|
||||
/**
|
||||
* Date of birth.
|
||||
*/
|
||||
dob?: IdNumber.Dob | null;
|
||||
/**
|
||||
* Details on the verification error. Present when status is `unverified`.
|
||||
*/
|
||||
error: IdNumber.Error | null;
|
||||
/**
|
||||
* First name.
|
||||
*/
|
||||
first_name: string | null;
|
||||
/**
|
||||
* ID number. When `id_number_type` is `us_ssn`, only the last 4 digits are present.
|
||||
*/
|
||||
id_number?: string | null;
|
||||
/**
|
||||
* Type of ID number.
|
||||
*/
|
||||
id_number_type: IdNumber.IdNumberType | null;
|
||||
/**
|
||||
* Last name.
|
||||
*/
|
||||
last_name: string | null;
|
||||
/**
|
||||
* Status of this `id_number` check.
|
||||
*/
|
||||
status: IdNumber.Status;
|
||||
}
|
||||
interface Options {
|
||||
document?: Options.Document;
|
||||
id_number?: Options.IdNumber;
|
||||
}
|
||||
interface Phone {
|
||||
/**
|
||||
* Details on the verification error. Present when status is `unverified`.
|
||||
*/
|
||||
error: Phone.Error | null;
|
||||
/**
|
||||
* Phone to be verified.
|
||||
*/
|
||||
phone: string | null;
|
||||
/**
|
||||
* Status of this `phone` check.
|
||||
*/
|
||||
status: Phone.Status;
|
||||
}
|
||||
interface Selfie {
|
||||
/**
|
||||
* ID of the [File](https://docs.stripe.com/api/files) holding the image of the identity document used in this check.
|
||||
*/
|
||||
document: string | null;
|
||||
/**
|
||||
* Details on the verification error. Present when status is `unverified`.
|
||||
*/
|
||||
error: Selfie.Error | null;
|
||||
/**
|
||||
* ID of the [File](https://docs.stripe.com/api/files) holding the image of the selfie used in this check.
|
||||
*/
|
||||
selfie: string | null;
|
||||
/**
|
||||
* Status of this `selfie` check.
|
||||
*/
|
||||
status: Selfie.Status;
|
||||
}
|
||||
type Type = 'document' | 'id_number' | 'verification_flow';
|
||||
namespace Document {
|
||||
interface Dob {
|
||||
/**
|
||||
* Numerical day between 1 and 31.
|
||||
*/
|
||||
day: number | null;
|
||||
/**
|
||||
* Numerical month between 1 and 12.
|
||||
*/
|
||||
month: number | null;
|
||||
/**
|
||||
* The four-digit year.
|
||||
*/
|
||||
year: number | null;
|
||||
}
|
||||
interface Error {
|
||||
/**
|
||||
* A short machine-readable string giving the reason for the verification failure.
|
||||
*/
|
||||
code: Error.Code | null;
|
||||
/**
|
||||
* A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
||||
*/
|
||||
reason: string | null;
|
||||
}
|
||||
interface ExpirationDate {
|
||||
/**
|
||||
* Numerical day between 1 and 31.
|
||||
*/
|
||||
day: number | null;
|
||||
/**
|
||||
* Numerical month between 1 and 12.
|
||||
*/
|
||||
month: number | null;
|
||||
/**
|
||||
* The four-digit year.
|
||||
*/
|
||||
year: number | null;
|
||||
}
|
||||
interface IssuedDate {
|
||||
/**
|
||||
* Numerical day between 1 and 31.
|
||||
*/
|
||||
day: number | null;
|
||||
/**
|
||||
* Numerical month between 1 and 12.
|
||||
*/
|
||||
month: number | null;
|
||||
/**
|
||||
* The four-digit year.
|
||||
*/
|
||||
year: number | null;
|
||||
}
|
||||
type Sex = '[redacted]' | 'female' | 'male' | 'unknown';
|
||||
type Status = 'unverified' | 'verified';
|
||||
type Type = 'driving_license' | 'id_card' | 'passport';
|
||||
namespace Error {
|
||||
type Code = 'document_expired' | 'document_type_not_supported' | 'document_unverified_other';
|
||||
}
|
||||
}
|
||||
namespace Email {
|
||||
interface Error {
|
||||
/**
|
||||
* A short machine-readable string giving the reason for the verification failure.
|
||||
*/
|
||||
code: Error.Code | null;
|
||||
/**
|
||||
* A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
||||
*/
|
||||
reason: string | null;
|
||||
}
|
||||
type Status = 'unverified' | 'verified';
|
||||
namespace Error {
|
||||
type Code = 'email_unverified_other' | 'email_verification_declined';
|
||||
}
|
||||
}
|
||||
namespace IdNumber {
|
||||
interface Dob {
|
||||
/**
|
||||
* Numerical day between 1 and 31.
|
||||
*/
|
||||
day: number | null;
|
||||
/**
|
||||
* Numerical month between 1 and 12.
|
||||
*/
|
||||
month: number | null;
|
||||
/**
|
||||
* The four-digit year.
|
||||
*/
|
||||
year: number | null;
|
||||
}
|
||||
interface Error {
|
||||
/**
|
||||
* A short machine-readable string giving the reason for the verification failure.
|
||||
*/
|
||||
code: Error.Code | null;
|
||||
/**
|
||||
* A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
||||
*/
|
||||
reason: string | null;
|
||||
}
|
||||
type IdNumberType = 'br_cpf' | 'sg_nric' | 'us_ssn';
|
||||
type Status = 'unverified' | 'verified';
|
||||
namespace Error {
|
||||
type Code = 'id_number_insufficient_document_data' | 'id_number_mismatch' | 'id_number_unverified_other';
|
||||
}
|
||||
}
|
||||
namespace Options {
|
||||
interface Document {
|
||||
/**
|
||||
* Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
|
||||
*/
|
||||
allowed_types?: Array<Document.AllowedType>;
|
||||
/**
|
||||
* Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
|
||||
*/
|
||||
require_id_number?: boolean;
|
||||
/**
|
||||
* Disable image uploads, identity document images have to be captured using the device's camera.
|
||||
*/
|
||||
require_live_capture?: boolean;
|
||||
/**
|
||||
* Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://docs.stripe.com/identity/selfie).
|
||||
*/
|
||||
require_matching_selfie?: boolean;
|
||||
}
|
||||
interface IdNumber {
|
||||
}
|
||||
namespace Document {
|
||||
type AllowedType = 'driving_license' | 'id_card' | 'passport';
|
||||
}
|
||||
}
|
||||
namespace Phone {
|
||||
interface Error {
|
||||
/**
|
||||
* A short machine-readable string giving the reason for the verification failure.
|
||||
*/
|
||||
code: Error.Code | null;
|
||||
/**
|
||||
* A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
||||
*/
|
||||
reason: string | null;
|
||||
}
|
||||
type Status = 'unverified' | 'verified';
|
||||
namespace Error {
|
||||
type Code = 'phone_unverified_other' | 'phone_verification_declined';
|
||||
}
|
||||
}
|
||||
namespace Selfie {
|
||||
interface Error {
|
||||
/**
|
||||
* A short machine-readable string giving the reason for the verification failure.
|
||||
*/
|
||||
code: Error.Code | null;
|
||||
/**
|
||||
* A human-readable message giving the reason for the failure. These messages can be shown to your users.
|
||||
*/
|
||||
reason: string | null;
|
||||
}
|
||||
type Status = 'unverified' | 'verified';
|
||||
namespace Error {
|
||||
type Code = 'selfie_document_missing_photo' | 'selfie_face_mismatch' | 'selfie_manipulated' | 'selfie_unverified_other';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Identity {
|
||||
interface VerificationReportRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Identity {
|
||||
interface VerificationReportListParams extends PaginationParams {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
client_reference_id?: string;
|
||||
/**
|
||||
* Only return VerificationReports that were created during the given date interval.
|
||||
*/
|
||||
created?: RangeQueryParam | number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Only return VerificationReports of this type
|
||||
*/
|
||||
type?: VerificationReportListParams.Type;
|
||||
/**
|
||||
* Only return VerificationReports created by this VerificationSession ID. It is allowed to provide a VerificationIntent ID.
|
||||
*/
|
||||
verification_session?: string;
|
||||
}
|
||||
namespace VerificationReportListParams {
|
||||
type Type = 'document' | 'id_number';
|
||||
}
|
||||
}
|
||||
23
node_modules/stripe/cjs/resources/Identity/VerificationReports.js
generated
vendored
Normal file
23
node_modules/stripe/cjs/resources/Identity/VerificationReports.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.VerificationReportResource = void 0;
|
||||
const StripeResource_js_1 = require("../../StripeResource.js");
|
||||
class VerificationReportResource extends StripeResource_js_1.StripeResource {
|
||||
/**
|
||||
* List all verification reports.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/identity/verification_reports', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves an existing VerificationReport
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/identity/verification_reports/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
exports.VerificationReportResource = VerificationReportResource;
|
||||
//# sourceMappingURL=VerificationReports.js.map
|
||||
1
node_modules/stripe/cjs/resources/Identity/VerificationReports.js.map
generated
vendored
Normal file
1
node_modules/stripe/cjs/resources/Identity/VerificationReports.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"VerificationReports.js","sourceRoot":"","sources":["../../../src/resources/Identity/VerificationReports.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAIvD,MAAa,0BAA2B,SAAQ,kCAAc;IAC5D;;OAEG;IACH,IAAI,CACF,MAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,mCAAmC,EACnC,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAkD,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,qCAAqC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC7D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AAjCD,gEAiCC"}
|
||||
532
node_modules/stripe/cjs/resources/Identity/VerificationSessions.d.ts
generated
vendored
Normal file
532
node_modules/stripe/cjs/resources/Identity/VerificationSessions.d.ts
generated
vendored
Normal file
@@ -0,0 +1,532 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { VerificationReport } from './VerificationReports.js';
|
||||
import { MetadataParam, Emptyable, PaginationParams, RangeQueryParam, Metadata, Address } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class VerificationSessionResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of VerificationSessions
|
||||
*/
|
||||
list(params?: Identity.VerificationSessionListParams, options?: RequestOptions): ApiListPromise<VerificationSession>;
|
||||
/**
|
||||
* Creates a VerificationSession object.
|
||||
*
|
||||
* After the VerificationSession is created, display a verification modal using the session client_secret or send your users to the session's url.
|
||||
*
|
||||
* If your API key is in test mode, verification checks won't actually process, though everything else will occur as if in live mode.
|
||||
*
|
||||
* Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents)
|
||||
*/
|
||||
create(params?: Identity.VerificationSessionCreateParams, options?: RequestOptions): Promise<Response<VerificationSession>>;
|
||||
/**
|
||||
* Retrieves the details of a VerificationSession that was previously created.
|
||||
*
|
||||
* When the session status is requires_input, you can use this method to retrieve a valid
|
||||
* client_secret or url to allow re-submission.
|
||||
*/
|
||||
retrieve(id: string, params?: Identity.VerificationSessionRetrieveParams, options?: RequestOptions): Promise<Response<VerificationSession>>;
|
||||
/**
|
||||
* Updates a VerificationSession object.
|
||||
*
|
||||
* When the session status is requires_input, you can use this method to update the
|
||||
* verification check and options.
|
||||
*/
|
||||
update(id: string, params?: Identity.VerificationSessionUpdateParams, options?: RequestOptions): Promise<Response<VerificationSession>>;
|
||||
/**
|
||||
* A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).
|
||||
*
|
||||
* Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
|
||||
*/
|
||||
cancel(id: string, params?: Identity.VerificationSessionCancelParams, options?: RequestOptions): Promise<Response<VerificationSession>>;
|
||||
/**
|
||||
* Redact a VerificationSession to remove all collected information from Stripe. This will redact
|
||||
* the VerificationSession and all objects related to it, including VerificationReports, Events,
|
||||
* request logs, etc.
|
||||
*
|
||||
* A VerificationSession object can be redacted when it is in requires_input or verified
|
||||
* [status](https://docs.stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
||||
* state will automatically cancel it.
|
||||
*
|
||||
* The redaction process may take up to four days. When the redaction process is in progress, the
|
||||
* VerificationSession's redaction.status field will be set to processing; when the process is
|
||||
* finished, it will change to redacted and an identity.verification_session.redacted event
|
||||
* will be emitted.
|
||||
*
|
||||
* Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the
|
||||
* fields that contain personal data will be replaced by the string [redacted] or a similar
|
||||
* placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
|
||||
* used for any purpose.
|
||||
*
|
||||
* [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact).
|
||||
*/
|
||||
redact(id: string, params?: Identity.VerificationSessionRedactParams, options?: RequestOptions): Promise<Response<VerificationSession>>;
|
||||
}
|
||||
export interface VerificationSession {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'identity.verification_session';
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
client_reference_id: string | null;
|
||||
/**
|
||||
* The short-lived client secret used by Stripe.js to [show a verification modal](https://docs.stripe.com/js/identity/modal) inside your app. This client secret expires after 24 hours and can only be used once. Don't store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on [passing the client secret to the frontend](https://docs.stripe.com/identity/verification-sessions#client-secret) to learn more.
|
||||
*/
|
||||
client_secret: string | null;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* If present, this property tells you the last error encountered when processing the verification.
|
||||
*/
|
||||
last_error: Identity.VerificationSession.LastError | null;
|
||||
/**
|
||||
* ID of the most recent VerificationReport. [Learn more about accessing detailed verification results.](https://docs.stripe.com/identity/verification-sessions#results)
|
||||
*/
|
||||
last_verification_report: string | VerificationReport | null;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
*/
|
||||
metadata: Metadata;
|
||||
/**
|
||||
* A set of options for the session's verification checks.
|
||||
*/
|
||||
options: Identity.VerificationSession.Options | null;
|
||||
/**
|
||||
* Details provided about the user being verified. These details may be shown to the user.
|
||||
*/
|
||||
provided_details?: Identity.VerificationSession.ProvidedDetails | null;
|
||||
/**
|
||||
* Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
|
||||
*/
|
||||
redaction: Identity.VerificationSession.Redaction | null;
|
||||
/**
|
||||
* Customer ID
|
||||
*/
|
||||
related_customer: string | null;
|
||||
/**
|
||||
* The ID of the Account representing a customer.
|
||||
*/
|
||||
related_customer_account: string | null;
|
||||
related_person?: Identity.VerificationSession.RelatedPerson;
|
||||
/**
|
||||
* Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://docs.stripe.com/identity/how-sessions-work).
|
||||
*/
|
||||
status: Identity.VerificationSession.Status;
|
||||
/**
|
||||
* The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed.
|
||||
*/
|
||||
type: Identity.VerificationSession.Type;
|
||||
/**
|
||||
* The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don't store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on [verifying identity documents](https://docs.stripe.com/identity/verify-identity-documents?platform=web&type=redirect) to learn how to redirect users to Stripe.
|
||||
*/
|
||||
url: string | null;
|
||||
/**
|
||||
* The configuration token of a verification flow from the dashboard.
|
||||
*/
|
||||
verification_flow?: string;
|
||||
/**
|
||||
* The user's verified data.
|
||||
*/
|
||||
verified_outputs?: Identity.VerificationSession.VerifiedOutputs | null;
|
||||
}
|
||||
export declare namespace Identity {
|
||||
namespace VerificationSession {
|
||||
interface LastError {
|
||||
/**
|
||||
* A short machine-readable string giving the reason for the verification or user-session failure.
|
||||
*/
|
||||
code: LastError.Code | null;
|
||||
/**
|
||||
* A message that explains the reason for verification or user-session failure.
|
||||
*/
|
||||
reason: string | null;
|
||||
}
|
||||
interface Options {
|
||||
document?: Options.Document;
|
||||
email?: Options.Email;
|
||||
id_number?: Options.IdNumber;
|
||||
matching?: Options.Matching;
|
||||
phone?: Options.Phone;
|
||||
}
|
||||
interface ProvidedDetails {
|
||||
/**
|
||||
* Email of user being verified
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* Phone number of user being verified
|
||||
*/
|
||||
phone?: string;
|
||||
}
|
||||
interface Redaction {
|
||||
/**
|
||||
* Indicates whether this object and its related objects have been redacted or not.
|
||||
*/
|
||||
status: Redaction.Status;
|
||||
}
|
||||
interface RelatedPerson {
|
||||
/**
|
||||
* Token referencing the associated Account of the related Person resource.
|
||||
*/
|
||||
account: string;
|
||||
/**
|
||||
* Token referencing the related Person resource.
|
||||
*/
|
||||
person: string;
|
||||
}
|
||||
type Status = 'canceled' | 'processing' | 'requires_input' | 'verified';
|
||||
type Type = 'document' | 'id_number' | 'verification_flow';
|
||||
interface VerifiedOutputs {
|
||||
/**
|
||||
* The user's verified address.
|
||||
*/
|
||||
address: Address | null;
|
||||
/**
|
||||
* The user's verified date of birth.
|
||||
*/
|
||||
dob?: VerifiedOutputs.Dob | null;
|
||||
/**
|
||||
* The user's verified email address
|
||||
*/
|
||||
email: string | null;
|
||||
/**
|
||||
* The user's verified first name.
|
||||
*/
|
||||
first_name: string | null;
|
||||
/**
|
||||
* The user's verified id number.
|
||||
*/
|
||||
id_number?: string | null;
|
||||
/**
|
||||
* The user's verified id number type.
|
||||
*/
|
||||
id_number_type: VerifiedOutputs.IdNumberType | null;
|
||||
/**
|
||||
* The user's verified last name.
|
||||
*/
|
||||
last_name: string | null;
|
||||
/**
|
||||
* The user's verified phone number
|
||||
*/
|
||||
phone: string | null;
|
||||
/**
|
||||
* The user's verified sex.
|
||||
*/
|
||||
sex?: VerifiedOutputs.Sex | null;
|
||||
/**
|
||||
* The user's verified place of birth as it appears in the document.
|
||||
*/
|
||||
unparsed_place_of_birth?: string | null;
|
||||
/**
|
||||
* The user's verified sex as it appears in the document.
|
||||
*/
|
||||
unparsed_sex?: string | null;
|
||||
}
|
||||
namespace LastError {
|
||||
type Code = 'abandoned' | 'consent_declined' | 'country_not_supported' | 'device_not_supported' | 'document_expired' | 'document_type_not_supported' | 'document_unverified_other' | 'email_unverified_other' | 'email_verification_declined' | 'id_number_insufficient_document_data' | 'id_number_mismatch' | 'id_number_unverified_other' | 'phone_unverified_other' | 'phone_verification_declined' | 'selfie_document_missing_photo' | 'selfie_face_mismatch' | 'selfie_manipulated' | 'selfie_unverified_other' | 'under_supported_age';
|
||||
}
|
||||
namespace Options {
|
||||
interface Document {
|
||||
/**
|
||||
* Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
|
||||
*/
|
||||
allowed_types?: Array<Document.AllowedType>;
|
||||
/**
|
||||
* Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
|
||||
*/
|
||||
require_id_number?: boolean;
|
||||
/**
|
||||
* Disable image uploads, identity document images have to be captured using the device's camera.
|
||||
*/
|
||||
require_live_capture?: boolean;
|
||||
/**
|
||||
* Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://docs.stripe.com/identity/selfie).
|
||||
*/
|
||||
require_matching_selfie?: boolean;
|
||||
}
|
||||
interface Email {
|
||||
/**
|
||||
* Request one time password verification of `provided_details.email`.
|
||||
*/
|
||||
require_verification?: boolean;
|
||||
}
|
||||
interface IdNumber {
|
||||
}
|
||||
interface Matching {
|
||||
/**
|
||||
* Strictness of the DOB matching policy to apply.
|
||||
*/
|
||||
dob?: Matching.Dob;
|
||||
/**
|
||||
* Strictness of the name matching policy to apply.
|
||||
*/
|
||||
name?: Matching.Name;
|
||||
}
|
||||
interface Phone {
|
||||
/**
|
||||
* Request one time password verification of `provided_details.phone`.
|
||||
*/
|
||||
require_verification?: boolean;
|
||||
}
|
||||
namespace Document {
|
||||
type AllowedType = 'driving_license' | 'id_card' | 'passport';
|
||||
}
|
||||
namespace Matching {
|
||||
type Dob = 'none' | 'similar';
|
||||
type Name = 'none' | 'similar';
|
||||
}
|
||||
}
|
||||
namespace Redaction {
|
||||
type Status = 'processing' | 'redacted';
|
||||
}
|
||||
namespace VerifiedOutputs {
|
||||
interface Dob {
|
||||
/**
|
||||
* Numerical day between 1 and 31.
|
||||
*/
|
||||
day: number | null;
|
||||
/**
|
||||
* Numerical month between 1 and 12.
|
||||
*/
|
||||
month: number | null;
|
||||
/**
|
||||
* The four-digit year.
|
||||
*/
|
||||
year: number | null;
|
||||
}
|
||||
type IdNumberType = 'br_cpf' | 'sg_nric' | 'us_ssn';
|
||||
type Sex = '[redacted]' | 'female' | 'male' | 'unknown';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Identity {
|
||||
interface VerificationSessionCreateParams {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
client_reference_id?: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
||||
*/
|
||||
metadata?: MetadataParam;
|
||||
/**
|
||||
* A set of options for the session's verification checks.
|
||||
*/
|
||||
options?: VerificationSessionCreateParams.Options;
|
||||
/**
|
||||
* Details provided about the user being verified. These details might be shown to the user.
|
||||
*/
|
||||
provided_details?: VerificationSessionCreateParams.ProvidedDetails;
|
||||
/**
|
||||
* Customer ID
|
||||
*/
|
||||
related_customer?: string;
|
||||
/**
|
||||
* The ID of the Account representing a customer.
|
||||
*/
|
||||
related_customer_account?: string;
|
||||
/**
|
||||
* Tokens referencing a Person resource and its associated account.
|
||||
*/
|
||||
related_person?: VerificationSessionCreateParams.RelatedPerson;
|
||||
/**
|
||||
* The URL that the user will be redirected to upon completing the verification flow.
|
||||
*/
|
||||
return_url?: string;
|
||||
/**
|
||||
* The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. You must provide a `type` if not passing `verification_flow`.
|
||||
*/
|
||||
type?: VerificationSessionCreateParams.Type;
|
||||
/**
|
||||
* The ID of a verification flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows.
|
||||
*/
|
||||
verification_flow?: string;
|
||||
}
|
||||
namespace VerificationSessionCreateParams {
|
||||
interface Options {
|
||||
/**
|
||||
* Options that apply to the [document check](https://docs.stripe.com/identity/verification-checks?type=document).
|
||||
*/
|
||||
document?: Emptyable<Options.Document>;
|
||||
}
|
||||
interface ProvidedDetails {
|
||||
/**
|
||||
* Email of user being verified
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* Phone number of user being verified
|
||||
*/
|
||||
phone?: string;
|
||||
}
|
||||
interface RelatedPerson {
|
||||
/**
|
||||
* A token representing a connected account. If provided, the person parameter is also required and must be associated with the account.
|
||||
*/
|
||||
account: string;
|
||||
/**
|
||||
* A token referencing a Person resource that this verification is being used to verify.
|
||||
*/
|
||||
person: string;
|
||||
}
|
||||
type Type = 'document' | 'id_number';
|
||||
namespace Options {
|
||||
interface Document {
|
||||
/**
|
||||
* Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
|
||||
*/
|
||||
allowed_types?: Array<Document.AllowedType>;
|
||||
/**
|
||||
* Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
|
||||
*/
|
||||
require_id_number?: boolean;
|
||||
/**
|
||||
* Disable image uploads, identity document images have to be captured using the device's camera.
|
||||
*/
|
||||
require_live_capture?: boolean;
|
||||
/**
|
||||
* Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://docs.stripe.com/identity/selfie).
|
||||
*/
|
||||
require_matching_selfie?: boolean;
|
||||
}
|
||||
namespace Document {
|
||||
type AllowedType = 'driving_license' | 'id_card' | 'passport';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Identity {
|
||||
interface VerificationSessionRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Identity {
|
||||
interface VerificationSessionUpdateParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
||||
*/
|
||||
metadata?: MetadataParam;
|
||||
/**
|
||||
* A set of options for the session's verification checks.
|
||||
*/
|
||||
options?: VerificationSessionUpdateParams.Options;
|
||||
/**
|
||||
* Details provided about the user being verified. These details may be shown to the user.
|
||||
*/
|
||||
provided_details?: VerificationSessionUpdateParams.ProvidedDetails;
|
||||
/**
|
||||
* The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed.
|
||||
*/
|
||||
type?: VerificationSessionUpdateParams.Type;
|
||||
}
|
||||
namespace VerificationSessionUpdateParams {
|
||||
interface Options {
|
||||
/**
|
||||
* Options that apply to the [document check](https://docs.stripe.com/identity/verification-checks?type=document).
|
||||
*/
|
||||
document?: Emptyable<Options.Document>;
|
||||
}
|
||||
interface ProvidedDetails {
|
||||
/**
|
||||
* Email of user being verified
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* Phone number of user being verified
|
||||
*/
|
||||
phone?: string;
|
||||
}
|
||||
type Type = 'document' | 'id_number';
|
||||
namespace Options {
|
||||
interface Document {
|
||||
/**
|
||||
* Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
|
||||
*/
|
||||
allowed_types?: Array<Document.AllowedType>;
|
||||
/**
|
||||
* Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document's extracted name and date of birth.
|
||||
*/
|
||||
require_id_number?: boolean;
|
||||
/**
|
||||
* Disable image uploads, identity document images have to be captured using the device's camera.
|
||||
*/
|
||||
require_live_capture?: boolean;
|
||||
/**
|
||||
* Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://docs.stripe.com/identity/selfie).
|
||||
*/
|
||||
require_matching_selfie?: boolean;
|
||||
}
|
||||
namespace Document {
|
||||
type AllowedType = 'driving_license' | 'id_card' | 'passport';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Identity {
|
||||
interface VerificationSessionListParams extends PaginationParams {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
client_reference_id?: string;
|
||||
/**
|
||||
* Only return VerificationSessions that were created during the given date interval.
|
||||
*/
|
||||
created?: RangeQueryParam | number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Customer ID
|
||||
*/
|
||||
related_customer?: string;
|
||||
/**
|
||||
* The ID of the Account representing a customer.
|
||||
*/
|
||||
related_customer_account?: string;
|
||||
/**
|
||||
* Only return VerificationSessions with this status. [Learn more about the lifecycle of sessions](https://docs.stripe.com/identity/how-sessions-work).
|
||||
*/
|
||||
status?: VerificationSessionListParams.Status;
|
||||
}
|
||||
namespace VerificationSessionListParams {
|
||||
type Status = 'canceled' | 'processing' | 'requires_input' | 'verified';
|
||||
}
|
||||
}
|
||||
export declare namespace Identity {
|
||||
interface VerificationSessionCancelParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Identity {
|
||||
interface VerificationSessionRedactParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
79
node_modules/stripe/cjs/resources/Identity/VerificationSessions.js
generated
vendored
Normal file
79
node_modules/stripe/cjs/resources/Identity/VerificationSessions.js
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.VerificationSessionResource = void 0;
|
||||
const StripeResource_js_1 = require("../../StripeResource.js");
|
||||
class VerificationSessionResource extends StripeResource_js_1.StripeResource {
|
||||
/**
|
||||
* Returns a list of VerificationSessions
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/identity/verification_sessions', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a VerificationSession object.
|
||||
*
|
||||
* After the VerificationSession is created, display a verification modal using the session client_secret or send your users to the session's url.
|
||||
*
|
||||
* If your API key is in test mode, verification checks won't actually process, though everything else will occur as if in live mode.
|
||||
*
|
||||
* Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents)
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/identity/verification_sessions', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves the details of a VerificationSession that was previously created.
|
||||
*
|
||||
* When the session status is requires_input, you can use this method to retrieve a valid
|
||||
* client_secret or url to allow re-submission.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/identity/verification_sessions/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates a VerificationSession object.
|
||||
*
|
||||
* When the session status is requires_input, you can use this method to update the
|
||||
* verification check and options.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/identity/verification_sessions/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).
|
||||
*
|
||||
* Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
|
||||
*/
|
||||
cancel(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/identity/verification_sessions/${encodeURIComponent(id)}/cancel`, params, options);
|
||||
}
|
||||
/**
|
||||
* Redact a VerificationSession to remove all collected information from Stripe. This will redact
|
||||
* the VerificationSession and all objects related to it, including VerificationReports, Events,
|
||||
* request logs, etc.
|
||||
*
|
||||
* A VerificationSession object can be redacted when it is in requires_input or verified
|
||||
* [status](https://docs.stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
||||
* state will automatically cancel it.
|
||||
*
|
||||
* The redaction process may take up to four days. When the redaction process is in progress, the
|
||||
* VerificationSession's redaction.status field will be set to processing; when the process is
|
||||
* finished, it will change to redacted and an identity.verification_session.redacted event
|
||||
* will be emitted.
|
||||
*
|
||||
* Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the
|
||||
* fields that contain personal data will be replaced by the string [redacted] or a similar
|
||||
* placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
|
||||
* used for any purpose.
|
||||
*
|
||||
* [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact).
|
||||
*/
|
||||
redact(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/identity/verification_sessions/${encodeURIComponent(id)}/redact`, params, options);
|
||||
}
|
||||
}
|
||||
exports.VerificationSessionResource = VerificationSessionResource;
|
||||
//# sourceMappingURL=VerificationSessions.js.map
|
||||
1
node_modules/stripe/cjs/resources/Identity/VerificationSessions.js.map
generated
vendored
Normal file
1
node_modules/stripe/cjs/resources/Identity/VerificationSessions.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"VerificationSessions.js","sourceRoot":"","sources":["../../../src/resources/Identity/VerificationSessions.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAYvD,MAAa,2BAA4B,SAAQ,kCAAc;IAC7D;;OAEG;IACH,IAAI,CACF,MAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,oCAAoC,EACpC,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;;;;;;;OAQG;IACH,MAAM,CACJ,MAAiD,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,oCAAoC,EACpC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;OAKG;IACH,QAAQ,CACN,EAAU,EACV,MAAmD,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,sCAAsC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;OAKG;IACH,MAAM,CACJ,EAAU,EACV,MAAiD,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sCAAsC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,MAAiD,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sCAAsC,kBAAkB,CAAC,EAAE,CAAC,SAAS,EACrE,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,EAAU,EACV,MAAiD,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sCAAsC,kBAAkB,CAAC,EAAE,CAAC,SAAS,EACrE,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AA5HD,kEA4HC"}
|
||||
23
node_modules/stripe/cjs/resources/Identity/index.d.ts
generated
vendored
Normal file
23
node_modules/stripe/cjs/resources/Identity/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import { Stripe } from '../../stripe.core.js';
|
||||
import { Identity as IdentityNamespace0, VerificationReport, VerificationReportResource } from './VerificationReports.js';
|
||||
import { Identity as IdentityNamespace1, VerificationSession, VerificationSessionResource } from './VerificationSessions.js';
|
||||
export { VerificationReport } from './VerificationReports.js';
|
||||
export { VerificationSession } from './VerificationSessions.js';
|
||||
export declare class Identity {
|
||||
private readonly stripe;
|
||||
verificationReports: VerificationReportResource;
|
||||
verificationSessions: VerificationSessionResource;
|
||||
constructor(stripe: Stripe);
|
||||
}
|
||||
export declare namespace Identity {
|
||||
export import VerificationReportListParams = IdentityNamespace0.VerificationReportListParams;
|
||||
export import VerificationReportRetrieveParams = IdentityNamespace0.VerificationReportRetrieveParams;
|
||||
export { VerificationReport };
|
||||
export import VerificationSessionListParams = IdentityNamespace1.VerificationSessionListParams;
|
||||
export import VerificationSessionCreateParams = IdentityNamespace1.VerificationSessionCreateParams;
|
||||
export import VerificationSessionRetrieveParams = IdentityNamespace1.VerificationSessionRetrieveParams;
|
||||
export import VerificationSessionUpdateParams = IdentityNamespace1.VerificationSessionUpdateParams;
|
||||
export import VerificationSessionCancelParams = IdentityNamespace1.VerificationSessionCancelParams;
|
||||
export import VerificationSessionRedactParams = IdentityNamespace1.VerificationSessionRedactParams;
|
||||
export { VerificationSession };
|
||||
}
|
||||
15
node_modules/stripe/cjs/resources/Identity/index.js
generated
vendored
Normal file
15
node_modules/stripe/cjs/resources/Identity/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Identity = void 0;
|
||||
const VerificationReports_js_1 = require("./VerificationReports.js");
|
||||
const VerificationSessions_js_1 = require("./VerificationSessions.js");
|
||||
class Identity {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.verificationReports = new VerificationReports_js_1.VerificationReportResource(stripe);
|
||||
this.verificationSessions = new VerificationSessions_js_1.VerificationSessionResource(stripe);
|
||||
}
|
||||
}
|
||||
exports.Identity = Identity;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/cjs/resources/Identity/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/cjs/resources/Identity/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Identity/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,qEAIkC;AAClC,uEAImC;AAKnC,MAAa,QAAQ;IAInB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,mBAAmB,GAAG,IAAI,mDAA0B,CAAC,MAAM,CAAC,CAAC;QAClE,IAAI,CAAC,oBAAoB,GAAG,IAAI,qDAA2B,CAAC,MAAM,CAAC,CAAC;IACtE,CAAC;CACF;AARD,4BAQC"}
|
||||
Reference in New Issue
Block a user