-
Notifications
You must be signed in to change notification settings - Fork 719
/
ValueListItemsResource.d.ts
96 lines (83 loc) · 2.79 KB
/
ValueListItemsResource.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
// File generated from our OpenAPI spec
declare module 'stripe' {
namespace Stripe {
namespace Radar {
interface ValueListItemCreateParams {
/**
* The value of the item (whose type must match the type of the parent value list).
*/
value: string;
/**
* The identifier of the value list which the created item will be added to.
*/
value_list: string;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
interface ValueListItemRetrieveParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
interface ValueListItemListParams extends PaginationParams {
/**
* Identifier for the parent value list this item belongs to.
*/
value_list: string;
created?: Stripe.RangeQueryParam | number;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Return items belonging to the parent list whose value matches the specified value (using an "is like" match).
*/
value?: string;
}
interface ValueListItemDeleteParams {}
class ValueListItemsResource {
/**
* Creates a new ValueListItem object, which is added to the specified parent value list.
*/
create(
params: ValueListItemCreateParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Radar.ValueListItem>>;
/**
* Retrieves a ValueListItem object.
*/
retrieve(
id: string,
params?: ValueListItemRetrieveParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Radar.ValueListItem>>;
retrieve(
id: string,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Radar.ValueListItem>>;
/**
* Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
*/
list(
params: ValueListItemListParams,
options?: RequestOptions
): ApiListPromise<Stripe.Radar.ValueListItem>;
/**
* Deletes a ValueListItem object, removing it from its parent value list.
*/
del(
id: string,
params?: ValueListItemDeleteParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Radar.DeletedValueListItem>>;
del(
id: string,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Radar.DeletedValueListItem>>;
}
}
}
}