forked from stripe/stripe-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileLinksResource.d.ts
114 lines (98 loc) · 3.64 KB
/
FileLinksResource.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// File generated from our OpenAPI spec
declare module 'stripe' {
namespace Stripe {
interface FileLinkCreateParams {
/**
* The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
*/
file: string;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* The link isn't usable after this future timestamp.
*/
expires_at?: number;
/**
* Set of [key-value pairs](https://stripe.com/docs/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?: Stripe.Emptyable<Stripe.MetadataParam>;
}
interface FileLinkRetrieveParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
interface FileLinkUpdateParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately.
*/
expires_at?: Stripe.Emptyable<'now' | number>;
/**
* Set of [key-value pairs](https://stripe.com/docs/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?: Stripe.Emptyable<Stripe.MetadataParam>;
}
interface FileLinkListParams extends PaginationParams {
/**
* Only return links that were created during the given date interval.
*/
created?: Stripe.RangeQueryParam | number;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Filter links by their expiration status. By default, Stripe returns all links.
*/
expired?: boolean;
/**
* Only return links for the given file.
*/
file?: string;
}
class FileLinksResource {
/**
* Creates a new file link object.
*/
create(
params: FileLinkCreateParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.FileLink>>;
/**
* Retrieves the file link with the given ID.
*/
retrieve(
id: string,
params?: FileLinkRetrieveParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.FileLink>>;
retrieve(
id: string,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.FileLink>>;
/**
* Updates an existing file link object. Expired links can no longer be updated.
*/
update(
id: string,
params?: FileLinkUpdateParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.FileLink>>;
/**
* Returns a list of file links.
*/
list(
params?: FileLinkListParams,
options?: RequestOptions
): ApiListPromise<Stripe.FileLink>;
list(options?: RequestOptions): ApiListPromise<Stripe.FileLink>;
}
}
}