-
Notifications
You must be signed in to change notification settings - Fork 459
/
radar_earlyfraudwarning.go
60 lines (53 loc) · 2.7 KB
/
radar_earlyfraudwarning.go
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
//
//
// File generated from our OpenAPI spec
//
//
package stripe
// RadarEarlyFraudWarningFraudType are strings that map to the type of fraud labelled by the issuer.
type RadarEarlyFraudWarningFraudType string
// List of values that RadarEarlyFraudWarningFraudType can take.
const (
RadarEarlyFraudWarningFraudTypeCardNeverReceived RadarEarlyFraudWarningFraudType = "card_never_received"
RadarEarlyFraudWarningFraudTypeFraudulentCardApplication RadarEarlyFraudWarningFraudType = "fraudulent_card_application"
RadarEarlyFraudWarningFraudTypeMadeWithCounterfeitCard RadarEarlyFraudWarningFraudType = "made_with_counterfeit_card"
RadarEarlyFraudWarningFraudTypeMadeWithLostCard RadarEarlyFraudWarningFraudType = "made_with_lost_card"
RadarEarlyFraudWarningFraudTypeMadeWithStolenCard RadarEarlyFraudWarningFraudType = "made_with_stolen_card"
RadarEarlyFraudWarningFraudTypeMisc RadarEarlyFraudWarningFraudType = "misc"
RadarEarlyFraudWarningFraudTypeUnauthorizedUseOfCard RadarEarlyFraudWarningFraudType = "unauthorized_use_of_card"
)
// RadarEarlyFraudWarningParams is the set of parameters that can be used when
// retrieving early fraud warnings. For more details see
// https://stripe.com/docs/api/early_fraud_warnings/retrieve.
type RadarEarlyFraudWarningParams struct {
Params `form:"*"`
}
// RadarEarlyFraudWarningListParams is the set of parameters that can be used when
// listing early fraud warnings. For more details see
// https://stripe.com/docs/api/early_fraud_warnings/list.
type RadarEarlyFraudWarningListParams struct {
ListParams `form:"*"`
Charge *string `form:"charge"`
PaymentIntent *string `form:"payment_intent"`
}
// RadarEarlyFraudWarning is the resource representing an early fraud warning. For
// more details see https://stripe.com/docs/api/early_fraud_warnings/object.
type RadarEarlyFraudWarning struct {
APIResource
Actionable bool `json:"actionable"`
Charge *Charge `json:"charge"`
Created int64 `json:"created"`
FraudType RadarEarlyFraudWarningFraudType `json:"fraud_type"`
ID string `json:"id"`
Livemode bool `json:"livemode"`
Object string `json:"object"`
PaymentIntent *PaymentIntent `json:"payment_intent"`
}
// RadarEarlyFraudWarningList is a list of early fraud warnings as retrieved from a
// list endpoint.
type RadarEarlyFraudWarningList struct {
APIResource
ListMeta
// TODO: rename `Values` to `Data` in a future major version for consistency with other List structs
Values []*RadarEarlyFraudWarning `json:"data"`
}