Initial project import
This commit is contained in:
63
node_modules/stripe/cjs/resources/EphemeralKeys.d.ts
generated
vendored
Normal file
63
node_modules/stripe/cjs/resources/EphemeralKeys.d.ts
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
import { RequestOptions, Response } from '../lib.js';
|
||||
export declare class EphemeralKeyResource extends StripeResource {
|
||||
/**
|
||||
* Invalidates a short-lived API key for a given resource.
|
||||
*/
|
||||
del(id: string, params?: EphemeralKeyDeleteParams, options?: RequestOptions): Promise<Response<EphemeralKey>>;
|
||||
create(params?: EphemeralKeyCreateParams, options?: RequestOptions): Promise<Response<EphemeralKey>>;
|
||||
}
|
||||
export interface EphemeralKey {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'ephemeral_key';
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* Time at which the key will expire. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
expires: number;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* The key's secret. You can use this value to make authorized requests to the Stripe API.
|
||||
*/
|
||||
secret?: string;
|
||||
}
|
||||
export interface EphemeralKeyCreateParams {
|
||||
/**
|
||||
* The ID of the Customer you'd like to modify using the resulting ephemeral key.
|
||||
*/
|
||||
customer?: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* The ID of the Issuing Card you'd like to access using the resulting ephemeral key.
|
||||
*/
|
||||
issuing_card?: string;
|
||||
/**
|
||||
* A single-use token, created by Stripe.js, used for creating ephemeral keys for Issuing Cards without exchanging sensitive information.
|
||||
*/
|
||||
nonce?: string;
|
||||
/**
|
||||
* The ID of the Identity VerificationSession you'd like to access using the resulting ephemeral key
|
||||
*/
|
||||
verification_session?: string;
|
||||
}
|
||||
export interface EphemeralKeyDeleteParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
Reference in New Issue
Block a user