Skip to content

Commit

Permalink
Update generated code for v1007
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed May 2, 2024
1 parent 791d769 commit e2a00a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1006
v1007
12 changes: 10 additions & 2 deletions dispute.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ type DisputePaymentMethodDetailsType string

// List of values that DisputePaymentMethodDetailsType can take
const (
DisputePaymentMethodDetailsTypeCard DisputePaymentMethodDetailsType = "card"
DisputePaymentMethodDetailsTypeCard DisputePaymentMethodDetailsType = "card"
DisputePaymentMethodDetailsTypePaypal DisputePaymentMethodDetailsType = "paypal"
)

// Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://stripe.com/docs/disputes/categories).
Expand Down Expand Up @@ -394,8 +395,15 @@ type DisputePaymentMethodDetailsCard struct {
// The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.
NetworkReasonCode string `json:"network_reason_code"`
}
type DisputePaymentMethodDetailsPaypal struct {
// The ID of the dispute in PayPal.
CaseID string `json:"case_id"`
// The reason for the dispute as defined by PayPal
ReasonCode string `json:"reason_code"`
}
type DisputePaymentMethodDetails struct {
Card *DisputePaymentMethodDetailsCard `json:"card"`
Card *DisputePaymentMethodDetailsCard `json:"card"`
Paypal *DisputePaymentMethodDetailsPaypal `json:"paypal"`
// Payment method type.
Type DisputePaymentMethodDetailsType `json:"type"`
}
Expand Down

0 comments on commit e2a00a5

Please sign in to comment.