Skip to content

Commit

Permalink
API Updates (#1568)
Browse files Browse the repository at this point in the history
Codegen for openapi v206
  • Loading branch information
pakrym-stripe authored Nov 7, 2022
1 parent cc5caeb commit e798ad7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v205
v206
3 changes: 3 additions & 0 deletions issuing_authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const (
IssuingAuthorizationRequestHistoryReasonVerificationFailed IssuingAuthorizationRequestHistoryReason = "verification_failed"
IssuingAuthorizationRequestHistoryReasonWebhookApproved IssuingAuthorizationRequestHistoryReason = "webhook_approved"
IssuingAuthorizationRequestHistoryReasonWebhookDeclined IssuingAuthorizationRequestHistoryReason = "webhook_declined"
IssuingAuthorizationRequestHistoryReasonWebhookError IssuingAuthorizationRequestHistoryReason = "webhook_error"
IssuingAuthorizationRequestHistoryReasonWebhookTimeout IssuingAuthorizationRequestHistoryReason = "webhook_timeout"
)

Expand Down Expand Up @@ -168,6 +169,8 @@ type IssuingAuthorizationRequestHistory struct {
MerchantCurrency Currency `json:"merchant_currency"`
// The reason for the approval or decline.
Reason IssuingAuthorizationRequestHistoryReason `json:"reason"`
// If approve/decline decision is directly responsed to the webhook with json payload and if the response is invalid (e.g., parsing errors), we surface the detailed message via this field.
ReasonMessage string `json:"reason_message"`
}

// [Treasury](https://stripe.com/docs/api/treasury) details related to this authorization if it was created on a [FinancialAccount](https://stripe.com/docs/api/treasury/financial_accounts).
Expand Down

0 comments on commit e798ad7

Please sign in to comment.