Skip to content

Commit

Permalink
Add Refund typings for Stripe (#407)
Browse files Browse the repository at this point in the history
Also, adding `application` to Event.
  • Loading branch information
munaz2-stripe authored Feb 29, 2024
1 parent 38e22d7 commit 7a3a648
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/stripe/all/stripe.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@ module Stripe
class Event < APIResource
extend T::Sig

sig { returns(String) }
def account; end

sig { returns(String) }
def type; end

Expand Down Expand Up @@ -589,6 +592,17 @@ module Stripe
def last4; end
end

class Refund < APIResource
sig {returns(T.nilable(String))}
def failure_reason; end

sig {returns(T.nilable(String))}
def payment_intent; end

sig {returns(T.nilable(String))}
def status; end
end

class StripeError
extend T::Sig

Expand Down

0 comments on commit 7a3a648

Please sign in to comment.