Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for actionable and has_liability_shift on IssuerFraudRecord #742

Merged
merged 1 commit into from
Jan 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions issuerfraudrecord.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ 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"`
IssuerFraudType IssuerFraudType `json:"fraud_type"`
ID string `json:"id"`
Livemode bool `json:"livemode"`
PostDate int64 `json:"post_date"`
Actionable bool `json:"actionable"`
Charge *Charge `json:"charge"`
Created int64 `json:"created"`
FraudType IssuerFraudType `json:"fraud_type"`
HasLiabilityShift bool `json:"has_liability_shift"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the nit, but off-by-one error on alphabetization: should be above IssuerFraudType.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

damn nice catch. Order was correct but property should be named FraudType. Fixed!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

damn nice catch. Order was correct but property should be named FraudType. Fixed!

Oops! Yep, totally right.

ID string `json:"id"`
Livemode bool `json:"livemode"`
PostDate int64 `json:"post_date"`
}