From c647c601e28f0d46959b772a837420c810744d71 Mon Sep 17 00:00:00 2001 From: Matt DuVall Date: Tue, 8 May 2018 16:43:42 -0700 Subject: [PATCH] Address review feedback --- issuerfraudrecord.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/issuerfraudrecord.go b/issuerfraudrecord.go index 031f14fe7b..6dd883087c 100644 --- a/issuerfraudrecord.go +++ b/issuerfraudrecord.go @@ -1,16 +1,16 @@ package stripe -// FraudType are strings that map to the fraud label category from the issuer. -type FraudType string +// IssuerFraudType are strings that map to the fraud label category from the issuer. +type IssuerFraudType string const ( - CardNeverReceived FraudType = "card_never_received" - FraudulentCardApplication FraudType = "fraudulent_card_application" - MadeWithCounterfeitCard FraudType = "made_with_counterfeit_card" - MadeWithLostCard FraudType = "made_with_lost_card" - MadeWithStolenCard FraudType = "made_with_stolen_card" - Misc FraudType = "misc" - UnauthorizedUseOfCard FraudType = "unauthorized_use_of_card" + IssuerFraudTypeCardNeverReceived IssuerFraudType = "card_never_received" + IssuerFraudTypeFraudulentCardApplication IssuerFraudType = "fraudulent_card_application" + IssuerFraudTypeMadeWithCounterfeitCard IssuerFraudType = "made_with_counterfeit_card" + IssuerFraudTypeMadeWithLostCard IssuerFraudType = "made_with_lost_card" + IssuerFraudTypeMadeWithStolenCard IssuerFraudType = "made_with_stolen_card" + IssuerFraudTypeMisc IssuerFraudType = "misc" + IssuerFraudTypeUnauthorizedUseOfCard IssuerFraudType = "unauthorized_use_of_card" ) // IssuerFraudRecordListParams is the set of parameters that can be used when @@ -31,10 +31,10 @@ type IssuerFraudRecordList struct { // IssuerFraudRecord is the resource representing an issuer fraud record. For // more details see https://stripe.com/docs/api#issuer_fraud_records. type IssuerFraudRecord struct { - Charge *Charge `json:"charge"` - Created int64 `json:"created"` - FraudType FraudType `json:"fraud_type"` - ID string `json:"id"` - Live bool `json:"livemode"` - PostDate int64 `json:"post_date"` + Charge *Charge `json:"charge"` + Created int64 `json:"created"` + IssuerFraudType IssuerFraudType `json:"fraud_type"` + ID string `json:"id"` + Live bool `json:"livemode"` + PostDate int64 `json:"post_date"` }