stripe 10.5.0 → 10.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35cb5568b5c580eb40e2b085b86fe4aaacf8acdbdd3279fe5298dbaf17b95686
4
- data.tar.gz: '049a91783c7afab8e987f6e14cc659854b86c26d5434921c8b09afcc292e0b7d'
3
+ metadata.gz: f9d7dcdb6a8fce8d331f7666a8dae6f578abb66f9ece00837494f22805b9d66f
4
+ data.tar.gz: 81b1b86f6b56af5f6f95ecc029ba1be1398e554032dde711d5daed2fef54e95d
5
5
  SHA512:
6
- metadata.gz: 85d1cf80fca4a8299e739bc41ab933f0b4ddcd0bce3d2adb52e7ab308838e96bd7bdf9627f8f1f1f56ed2a888c2cd963a17bebd9be86f290a52fd90e8f761d0b
7
- data.tar.gz: e3fb60e7165b3b5592ef31c2c85d504eb4240e3ff63e68968c3bebe4200a5d3677db588de3c31e6d0e64b2ba52fe00d172c04ae1dade871f02e1b83add14680a
6
+ metadata.gz: 21b329aeaa584237de1e5a104fae127dc329292a83438f30458d9d5a2636a81277b6f03fb7ef326ec45f917f23f81402f8085755e54b5512d368a7d426cd5a0d
7
+ data.tar.gz: 2875c4ed5e9ed30832ba19142ce3a6e6421d0a8583ad7643db7819d4393fd055b882b2124baf6d6dabe8f1c77dfb1fc069bf5627eb9526a2b8cb1daea4abdf56
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
1
  # Changelog
2
+ ## 10.6.0 - 2024-01-12
3
+ * [#1310](https://github.com/stripe/stripe-ruby/pull/1310) Update generated code
4
+ * Add support for new resource `CustomerSession`
5
+ * Add support for `create` method on resource `CustomerSession`
6
+
2
7
  ## 10.5.0 - 2024-01-04
3
8
  * [#1306](https://github.com/stripe/stripe-ruby/pull/1306) Update generated code
4
9
  * Add support for `retrieve` method on resource `Tax.Registration`
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v742
1
+ v755
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.5.0
1
+ 10.6.0
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # TODO: (major) Deprecated, Remove along with extends
3
4
  module Stripe
4
5
  module APIOperations
5
6
  module Search
@@ -39,6 +39,7 @@ module Stripe
39
39
  Customer::OBJECT_NAME => Customer,
40
40
  CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
41
41
  CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
42
+ CustomerSession::OBJECT_NAME => CustomerSession,
42
43
  Discount::OBJECT_NAME => Discount,
43
44
  Dispute::OBJECT_NAME => Dispute,
44
45
  EphemeralKey::OBJECT_NAME => EphemeralKey,
@@ -43,7 +43,7 @@ module Stripe
43
43
  end
44
44
 
45
45
  def self.search(params = {}, opts = {})
46
- _search("/v1/charges/search", params, opts)
46
+ request_stripe_object(method: :get, path: "/v1/charges/search", params: params, opts: opts)
47
47
  end
48
48
 
49
49
  def self.search_auto_paging_each(params = {}, opts = {}, &blk)
@@ -114,7 +114,7 @@ module Stripe
114
114
  end
115
115
 
116
116
  def self.search(params = {}, opts = {})
117
- _search("/v1/customers/search", params, opts)
117
+ request_stripe_object(method: :get, path: "/v1/customers/search", params: params, opts: opts)
118
118
  end
119
119
 
120
120
  def self.search_auto_paging_each(params = {}, opts = {}, &blk)
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs)
6
+ # control over a customer.
7
+ class CustomerSession < APIResource
8
+ extend Stripe::APIOperations::Create
9
+
10
+ OBJECT_NAME = "customer_session"
11
+ end
12
+ end
@@ -167,7 +167,7 @@ module Stripe
167
167
  end
168
168
 
169
169
  def self.search(params = {}, opts = {})
170
- _search("/v1/invoices/search", params, opts)
170
+ request_stripe_object(method: :get, path: "/v1/invoices/search", params: params, opts: opts)
171
171
  end
172
172
 
173
173
  def self.search_auto_paging_each(params = {}, opts = {}, &blk)
@@ -248,7 +248,12 @@ module Stripe
248
248
  end
249
249
 
250
250
  def self.search(params = {}, opts = {})
251
- _search("/v1/payment_intents/search", params, opts)
251
+ request_stripe_object(
252
+ method: :get,
253
+ path: "/v1/payment_intents/search",
254
+ params: params,
255
+ opts: opts
256
+ )
252
257
  end
253
258
 
254
259
  def self.search_auto_paging_each(params = {}, opts = {}, &blk)
@@ -17,7 +17,7 @@ module Stripe
17
17
  OBJECT_NAME = "price"
18
18
 
19
19
  def self.search(params = {}, opts = {})
20
- _search("/v1/prices/search", params, opts)
20
+ request_stripe_object(method: :get, path: "/v1/prices/search", params: params, opts: opts)
21
21
  end
22
22
 
23
23
  def self.search_auto_paging_each(params = {}, opts = {}, &blk)
@@ -20,7 +20,7 @@ module Stripe
20
20
  OBJECT_NAME = "product"
21
21
 
22
22
  def self.search(params = {}, opts = {})
23
- _search("/v1/products/search", params, opts)
23
+ request_stripe_object(method: :get, path: "/v1/products/search", params: params, opts: opts)
24
24
  end
25
25
 
26
26
  def self.search_auto_paging_each(params = {}, opts = {}, &blk)
@@ -84,7 +84,12 @@ module Stripe
84
84
  save_nested_resource :source
85
85
 
86
86
  def self.search(params = {}, opts = {})
87
- _search("/v1/subscriptions/search", params, opts)
87
+ request_stripe_object(
88
+ method: :get,
89
+ path: "/v1/subscriptions/search",
90
+ params: params,
91
+ opts: opts
92
+ )
88
93
  end
89
94
 
90
95
  def self.search_auto_paging_each(params = {}, opts = {}, &blk)
@@ -28,6 +28,7 @@ require "stripe/resources/credit_note_line_item"
28
28
  require "stripe/resources/customer"
29
29
  require "stripe/resources/customer_balance_transaction"
30
30
  require "stripe/resources/customer_cash_balance_transaction"
31
+ require "stripe/resources/customer_session"
31
32
  require "stripe/resources/discount"
32
33
  require "stripe/resources/dispute"
33
34
  require "stripe/resources/ephemeral_key"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "10.5.0"
4
+ VERSION = "10.6.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.5.0
4
+ version: 10.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-04 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.
@@ -80,6 +80,7 @@ files:
80
80
  - lib/stripe/resources/customer.rb
81
81
  - lib/stripe/resources/customer_balance_transaction.rb
82
82
  - lib/stripe/resources/customer_cash_balance_transaction.rb
83
+ - lib/stripe/resources/customer_session.rb
83
84
  - lib/stripe/resources/discount.rb
84
85
  - lib/stripe/resources/dispute.rb
85
86
  - lib/stripe/resources/ephemeral_key.rb