Skip to content

Commit

Permalink
Add search params
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe committed Dec 17, 2024
1 parent 4e55c82 commit 7cb7a32
Showing 7 changed files with 30 additions and 16 deletions.
6 changes: 4 additions & 2 deletions rbi/stripe/resources/charge.rbi
Original file line number Diff line number Diff line change
@@ -3459,11 +3459,13 @@ module Stripe
}
def self.list(params = {}, opts = {}); end

sig { params(params: T.untyped, opts: T.untyped).returns(Stripe::SearchResultObject) }
sig {
params(params: T.any(::Stripe::Charge::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search(params = {}, opts = {}); end

sig {
params(params: T.untyped, opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
params(params: T.any(::Stripe::Charge::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search_auto_paging_each(params = {}, opts = {}, &blk); end

10 changes: 6 additions & 4 deletions rbi/stripe/resources/customer.rbi
Original file line number Diff line number Diff line change
@@ -958,7 +958,7 @@ module Stripe

# Retrieves a customer's cash balance.
sig {
params(customer: String, params: T.any(::Stripe::Customer::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).void
params(customer: String, params: T.any(::Stripe::Customer::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.untyped)
}
def self.retrieve_cash_balance(customer, params = {}, opts = {}); end

@@ -974,11 +974,13 @@ module Stripe
}
def self.retrieve_payment_method(customer, payment_method, params = {}, opts = {}); end

sig { params(params: T.untyped, opts: T.untyped).returns(Stripe::SearchResultObject) }
sig {
params(params: T.any(::Stripe::Customer::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search(params = {}, opts = {}); end

sig {
params(params: T.untyped, opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
params(params: T.any(::Stripe::Customer::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search_auto_paging_each(params = {}, opts = {}, &blk); end

@@ -992,7 +994,7 @@ module Stripe

# Changes the settings on a customer's cash balance.
sig {
params(customer: String, params: T.any(::Stripe::Customer::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).void
params(customer: String, params: T.any(::Stripe::Customer::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.untyped)
}
def self.update_cash_balance(customer, params = {}, opts = {}); end
end
6 changes: 4 additions & 2 deletions rbi/stripe/resources/invoice.rbi
Original file line number Diff line number Diff line change
@@ -8845,11 +8845,13 @@ module Stripe
}
def self.remove_lines(invoice, params = {}, opts = {}); end

sig { params(params: T.untyped, opts: T.untyped).returns(Stripe::SearchResultObject) }
sig {
params(params: T.any(::Stripe::Invoice::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search(params = {}, opts = {}); end

sig {
params(params: T.untyped, opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
params(params: T.any(::Stripe::Invoice::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search_auto_paging_each(params = {}, opts = {}, &blk); end

6 changes: 4 additions & 2 deletions rbi/stripe/resources/payment_intent.rbi
Original file line number Diff line number Diff line change
@@ -13791,11 +13791,13 @@ module Stripe
}
def self.list(params = {}, opts = {}); end

sig { params(params: T.untyped, opts: T.untyped).returns(Stripe::SearchResultObject) }
sig {
params(params: T.any(::Stripe::PaymentIntent::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search(params = {}, opts = {}); end

sig {
params(params: T.untyped, opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
params(params: T.any(::Stripe::PaymentIntent::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search_auto_paging_each(params = {}, opts = {}, &blk); end

6 changes: 4 additions & 2 deletions rbi/stripe/resources/price.rbi
Original file line number Diff line number Diff line change
@@ -712,11 +712,13 @@ module Stripe
}
def self.list(params = {}, opts = {}); end

sig { params(params: T.untyped, opts: T.untyped).returns(Stripe::SearchResultObject) }
sig {
params(params: T.any(::Stripe::Price::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search(params = {}, opts = {}); end

sig {
params(params: T.untyped, opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
params(params: T.any(::Stripe::Price::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search_auto_paging_each(params = {}, opts = {}, &blk); end

6 changes: 4 additions & 2 deletions rbi/stripe/resources/product.rbi
Original file line number Diff line number Diff line change
@@ -596,11 +596,13 @@ module Stripe
}
def self.list(params = {}, opts = {}); end

sig { params(params: T.untyped, opts: T.untyped).returns(Stripe::SearchResultObject) }
sig {
params(params: T.any(::Stripe::Product::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search(params = {}, opts = {}); end

sig {
params(params: T.untyped, opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
params(params: T.any(::Stripe::Product::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search_auto_paging_each(params = {}, opts = {}, &blk); end

6 changes: 4 additions & 2 deletions rbi/stripe/resources/subscription.rbi
Original file line number Diff line number Diff line change
@@ -2269,11 +2269,13 @@ module Stripe
}
def self.resume(subscription, params = {}, opts = {}); end

sig { params(params: T.untyped, opts: T.untyped).returns(Stripe::SearchResultObject) }
sig {
params(params: T.any(::Stripe::Subscription::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search(params = {}, opts = {}); end

sig {
params(params: T.untyped, opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
params(params: T.any(::Stripe::Subscription::SearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject)
}
def self.search_auto_paging_each(params = {}, opts = {}, &blk); end

0 comments on commit 7cb7a32

Please sign in to comment.