mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-08-11 00:01:02 -04:00
Compare commits
No commits in common. "ad26ff3fca9736364e72bd9be57844db4d9ef406" and "ee9b5c7ead40cad2f99ee5c1984aaa554a726f2f" have entirely different histories.
ad26ff3fca
...
ee9b5c7ead
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,18 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 10.7.0-beta.1 - 2024-01-12
|
|
||||||
* [#1309](https://github.com/stripe/stripe-ruby/pull/1309) Update generated code for beta
|
|
||||||
* [#1305](https://github.com/stripe/stripe-ruby/pull/1305) Update generated code for beta
|
|
||||||
|
|
||||||
## 10.6.0 - 2024-01-12
|
|
||||||
* [#1310](https://github.com/stripe/stripe-ruby/pull/1310) Update generated code
|
|
||||||
* Add support for new resource `CustomerSession`
|
|
||||||
* Add support for `create` method on resource `CustomerSession`
|
|
||||||
|
|
||||||
## 10.6.0-beta.1 - 2024-01-04
|
## 10.6.0-beta.1 - 2024-01-04
|
||||||
* [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
|
* [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
|
||||||
* Updated stable APIs to the latest version
|
* Updated stable APIs to the latest version
|
||||||
|
|
||||||
|
|
||||||
## 10.5.0 - 2024-01-04
|
## 10.5.0 - 2024-01-04
|
||||||
* [#1306](https://github.com/stripe/stripe-ruby/pull/1306) Update generated code
|
* [#1306](https://github.com/stripe/stripe-ruby/pull/1306) Update generated code
|
||||||
* Add support for `retrieve` method on resource `Tax.Registration`
|
* Add support for `retrieve` method on resource `Tax.Registration`
|
||||||
|
@ -1 +1 @@
|
|||||||
v756
|
v742
|
@ -1,6 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# TODO: (major) Deprecated, Remove along with extends
|
|
||||||
module Stripe
|
module Stripe
|
||||||
module APIOperations
|
module APIOperations
|
||||||
module Search
|
module Search
|
||||||
|
@ -43,7 +43,7 @@ module Stripe
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.search(params = {}, opts = {})
|
def self.search(params = {}, opts = {})
|
||||||
request_stripe_object(method: :get, path: "/v1/charges/search", params: params, opts: opts)
|
_search("/v1/charges/search", params, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||||
|
@ -114,7 +114,7 @@ module Stripe
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.search(params = {}, opts = {})
|
def self.search(params = {}, opts = {})
|
||||||
request_stripe_object(method: :get, path: "/v1/customers/search", params: params, opts: opts)
|
_search("/v1/customers/search", params, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||||
|
@ -206,7 +206,7 @@ module Stripe
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.search(params = {}, opts = {})
|
def self.search(params = {}, opts = {})
|
||||||
request_stripe_object(method: :get, path: "/v1/invoices/search", params: params, opts: opts)
|
_search("/v1/invoices/search", params, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||||
|
@ -248,12 +248,7 @@ module Stripe
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.search(params = {}, opts = {})
|
def self.search(params = {}, opts = {})
|
||||||
request_stripe_object(
|
_search("/v1/payment_intents/search", params, opts)
|
||||||
method: :get,
|
|
||||||
path: "/v1/payment_intents/search",
|
|
||||||
params: params,
|
|
||||||
opts: opts
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||||
|
@ -17,7 +17,7 @@ module Stripe
|
|||||||
OBJECT_NAME = "price"
|
OBJECT_NAME = "price"
|
||||||
|
|
||||||
def self.search(params = {}, opts = {})
|
def self.search(params = {}, opts = {})
|
||||||
request_stripe_object(method: :get, path: "/v1/prices/search", params: params, opts: opts)
|
_search("/v1/prices/search", params, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||||
|
@ -20,7 +20,7 @@ module Stripe
|
|||||||
OBJECT_NAME = "product"
|
OBJECT_NAME = "product"
|
||||||
|
|
||||||
def self.search(params = {}, opts = {})
|
def self.search(params = {}, opts = {})
|
||||||
request_stripe_object(method: :get, path: "/v1/products/search", params: params, opts: opts)
|
_search("/v1/products/search", params, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||||
|
@ -84,12 +84,7 @@ module Stripe
|
|||||||
save_nested_resource :source
|
save_nested_resource :source
|
||||||
|
|
||||||
def self.search(params = {}, opts = {})
|
def self.search(params = {}, opts = {})
|
||||||
request_stripe_object(
|
_search("/v1/subscriptions/search", params, opts)
|
||||||
method: :get,
|
|
||||||
path: "/v1/subscriptions/search",
|
|
||||||
params: params,
|
|
||||||
opts: opts
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Stripe
|
module Stripe
|
||||||
VERSION = "10.7.0-beta.1"
|
VERSION = "10.6.0-beta.1"
|
||||||
end
|
end
|
||||||
|
@ -395,13 +395,6 @@ module Stripe
|
|||||||
Stripe::CreditNote.void_credit_note("cn_xxxxxxxxxxxxx")
|
Stripe::CreditNote.void_credit_note("cn_xxxxxxxxxxxxx")
|
||||||
assert_requested :post, "#{Stripe.api_base}/v1/credit_notes/cn_xxxxxxxxxxxxx/void?"
|
assert_requested :post, "#{Stripe.api_base}/v1/credit_notes/cn_xxxxxxxxxxxxx/void?"
|
||||||
end
|
end
|
||||||
should "Test customer sessions post" do
|
|
||||||
Stripe::CustomerSession.create({
|
|
||||||
customer: "cus_123",
|
|
||||||
components: { buy_button: { enabled: true } },
|
|
||||||
})
|
|
||||||
assert_requested :post, "#{Stripe.api_base}/v1/customer_sessions"
|
|
||||||
end
|
|
||||||
should "Test customers balance transactions get" do
|
should "Test customers balance transactions get" do
|
||||||
Stripe::Customer.list_balance_transactions("cus_xxxxxxxxxxxxx", { limit: 3 })
|
Stripe::Customer.list_balance_transactions("cus_xxxxxxxxxxxxx", { limit: 3 })
|
||||||
assert_requested :get, "#{Stripe.api_base}/v1/customers/cus_xxxxxxxxxxxxx/balance_transactions?limit=3"
|
assert_requested :get, "#{Stripe.api_base}/v1/customers/cus_xxxxxxxxxxxxx/balance_transactions?limit=3"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user