-
Notifications
You must be signed in to change notification settings - Fork 719
/
ValueLists.d.ts
98 lines (83 loc) · 2.58 KB
/
ValueLists.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
// File generated from our OpenAPI spec
declare module 'stripe' {
namespace Stripe {
namespace Radar {
/**
* Value lists allow you to group values together which can then be referenced in rules.
*
* Related guide: [Default Stripe Lists](https://stripe.com/docs/radar/lists#managing-list-items).
*/
interface ValueList {
/**
* Unique identifier for the object.
*/
id: string;
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'radar.value_list';
/**
* The name of the value list for use in rules.
*/
alias: string;
/**
* Time at which the object was created. Measured in seconds since the Unix epoch.
*/
created: number;
/**
* The name or email address of the user who created this value list.
*/
created_by: string;
deleted?: void;
/**
* The type of items in the value list. One of `card_fingerprint`, `card_bin`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, or `customer_id`.
*/
item_type: ValueList.ItemType;
/**
* List of items contained within this value list.
*/
list_items: ApiList<Stripe.Radar.ValueListItem>;
/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
*/
livemode: boolean;
/**
* 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.
*/
metadata: Stripe.Metadata;
/**
* The name of the value list.
*/
name: string;
}
namespace ValueList {
type ItemType =
| 'card_bin'
| 'card_fingerprint'
| 'case_sensitive_string'
| 'country'
| 'customer_id'
| 'email'
| 'ip_address'
| 'string';
}
/**
* The DeletedValueList object.
*/
interface DeletedValueList {
/**
* Unique identifier for the object.
*/
id: string;
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'radar.value_list';
/**
* Always true for a deleted object
*/
deleted: true;
}
}
}
}