mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-30 00:01:17 -04:00
Compare commits
12 Commits
ee9b5c7ead
...
ad26ff3fca
Author | SHA1 | Date | |
---|---|---|---|
|
ad26ff3fca | ||
|
083c3a104e | ||
|
354b6a92a3 | ||
|
c48a5e30cf | ||
|
a685a13a67 | ||
|
bc03829f1d | ||
|
71b8f84574 | ||
|
d353c130bc | ||
|
871a4c55b0 | ||
|
8bda0900f3 | ||
|
97bd5abc61 | ||
|
6ff3a7ad3a |
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,10 +1,18 @@
|
||||
# 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
|
||||
* [#1302](https://github.com/stripe/stripe-ruby/pull/1302) Update generated code for beta
|
||||
* Updated stable APIs to the latest version
|
||||
|
||||
|
||||
## 10.5.0 - 2024-01-04
|
||||
* [#1306](https://github.com/stripe/stripe-ruby/pull/1306) Update generated code
|
||||
* Add support for `retrieve` method on resource `Tax.Registration`
|
||||
|
@ -1 +1 @@
|
||||
v742
|
||||
v756
|
@ -1,5 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# TODO: (major) Deprecated, Remove along with extends
|
||||
module Stripe
|
||||
module APIOperations
|
||||
module Search
|
||||
|
@ -43,7 +43,7 @@ module Stripe
|
||||
end
|
||||
|
||||
def self.search(params = {}, opts = {})
|
||||
_search("/v1/charges/search", params, opts)
|
||||
request_stripe_object(method: :get, path: "/v1/charges/search", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||
|
@ -114,7 +114,7 @@ module Stripe
|
||||
end
|
||||
|
||||
def self.search(params = {}, opts = {})
|
||||
_search("/v1/customers/search", params, opts)
|
||||
request_stripe_object(method: :get, path: "/v1/customers/search", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||
|
@ -206,7 +206,7 @@ module Stripe
|
||||
end
|
||||
|
||||
def self.search(params = {}, opts = {})
|
||||
_search("/v1/invoices/search", params, opts)
|
||||
request_stripe_object(method: :get, path: "/v1/invoices/search", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||
|
@ -248,7 +248,12 @@ module Stripe
|
||||
end
|
||||
|
||||
def self.search(params = {}, opts = {})
|
||||
_search("/v1/payment_intents/search", params, opts)
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: "/v1/payment_intents/search",
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||
|
@ -17,7 +17,7 @@ module Stripe
|
||||
OBJECT_NAME = "price"
|
||||
|
||||
def self.search(params = {}, opts = {})
|
||||
_search("/v1/prices/search", params, opts)
|
||||
request_stripe_object(method: :get, path: "/v1/prices/search", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||
|
@ -20,7 +20,7 @@ module Stripe
|
||||
OBJECT_NAME = "product"
|
||||
|
||||
def self.search(params = {}, opts = {})
|
||||
_search("/v1/products/search", params, opts)
|
||||
request_stripe_object(method: :get, path: "/v1/products/search", params: params, opts: opts)
|
||||
end
|
||||
|
||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||
|
@ -84,7 +84,12 @@ module Stripe
|
||||
save_nested_resource :source
|
||||
|
||||
def self.search(params = {}, opts = {})
|
||||
_search("/v1/subscriptions/search", params, opts)
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: "/v1/subscriptions/search",
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.search_auto_paging_each(params = {}, opts = {}, &blk)
|
||||
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
VERSION = "10.6.0-beta.1"
|
||||
VERSION = "10.7.0-beta.1"
|
||||
end
|
||||
|
@ -395,6 +395,13 @@ module Stripe
|
||||
Stripe::CreditNote.void_credit_note("cn_xxxxxxxxxxxxx")
|
||||
assert_requested :post, "#{Stripe.api_base}/v1/credit_notes/cn_xxxxxxxxxxxxx/void?"
|
||||
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
|
||||
Stripe::Customer.list_balance_transactions("cus_xxxxxxxxxxxxx", { 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