Skip to content

Commit

Permalink
Merge pull request #636 from stripe/add-chg-outcome-risk-score-fld
Browse files Browse the repository at this point in the history
Add RiskScore field to ChargeOutcome struct
  • Loading branch information
brandur-stripe authored Jul 27, 2018
2 parents a3c2b5a + d2df233 commit 3f85622
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,13 @@ type ChargeOutcomeRule struct {
Predicate string `json:"predicate"`
}

// Outcome is the charge's outcome that details whether a payment
// ChargeOutcome is the charge's outcome that details whether a payment
// was accepted and why.
type ChargeOutcome struct {
NetworkStatus string `json:"network_status"`
Reason string `json:"reason"`
RiskLevel string `json:"risk_level"`
RiskScore int64 `json:"risk_score"`
Rule *ChargeOutcomeRule `json:"rule"`
SellerMessage string `json:"seller_message"`
Type string `json:"type"`
Expand Down

0 comments on commit 3f85622

Please sign in to comment.