stripe 10.5.0 → 10.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_operations/search.rb +1 -0
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/resources/charge.rb +1 -1
- data/lib/stripe/resources/customer.rb +1 -1
- data/lib/stripe/resources/customer_session.rb +12 -0
- data/lib/stripe/resources/invoice.rb +1 -1
- data/lib/stripe/resources/payment_intent.rb +6 -1
- data/lib/stripe/resources/price.rb +1 -1
- data/lib/stripe/resources/product.rb +1 -1
- data/lib/stripe/resources/subscription.rb +6 -1
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9d7dcdb6a8fce8d331f7666a8dae6f578abb66f9ece00837494f22805b9d66f
|
4
|
+
data.tar.gz: 81b1b86f6b56af5f6f95ecc029ba1be1398e554032dde711d5daed2fef54e95d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
1
|
+
v755
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.
|
1
|
+
10.6.0
|
data/lib/stripe/object_types.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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)
|
data/lib/stripe/resources.rb
CHANGED
@@ -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"
|
data/lib/stripe/version.rb
CHANGED
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.
|
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-
|
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
|