stripe 5.38.0 → 5.39.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 +4 -0
- data/VERSION +1 -1
- data/lib/stripe/resources/customer.rb +11 -0
- data/lib/stripe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1e54cc2d57c31541003984f4cea2ac0e6523a88974bbe060c1332ecc3b2dd13
|
4
|
+
data.tar.gz: 7834d48a4ec62a379ffba64730d81304f66185ba85d07c53c645a2239f44ac89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30661886d59dff20441b18404bf2bfc7a9e2371c68ac20bd48700d54c36ca46f29dceb87a22764ead9fb1a128949200edefa37da12fcc81b74d337d799e1cca7
|
7
|
+
data.tar.gz: fac41913db0bcffa10c386c8ecd5cbeb6a1a542b8c73066a8b75b91f2860524adf202ffdbef92a2fd096566f35595e7633970af261858d10199a839096a0f7ba
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 5.39.0 - 2021-10-11
|
4
|
+
* [#1010](https://github.com/stripe/stripe-ruby/pull/1010) API Updates
|
5
|
+
* Add support for `list_payment_methods` method on resource `Customer`
|
6
|
+
|
3
7
|
## 5.38.0 - 2021-08-10
|
4
8
|
* [#993](https://github.com/stripe/stripe-ruby/pull/993) Add `request_id` to RequestEndEvent
|
5
9
|
* [#991](https://github.com/stripe/stripe-ruby/pull/991) Codegen more files
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.
|
1
|
+
5.39.0
|
@@ -11,11 +11,22 @@ module Stripe
|
|
11
11
|
|
12
12
|
OBJECT_NAME = "customer"
|
13
13
|
|
14
|
+
custom_method :list_payment_methods, http_verb: :get, http_path: "payment_methods"
|
15
|
+
|
14
16
|
nested_resource_class_methods :balance_transaction,
|
15
17
|
operations: %i[create retrieve update list]
|
16
18
|
nested_resource_class_methods :tax_id,
|
17
19
|
operations: %i[create retrieve delete list]
|
18
20
|
|
21
|
+
def list_payment_methods(params = {}, opts = {})
|
22
|
+
request_stripe_object(
|
23
|
+
method: :get,
|
24
|
+
path: resource_url + "/payment_methods",
|
25
|
+
params: params,
|
26
|
+
opts: opts
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
19
30
|
custom_method :delete_discount, http_verb: :delete, http_path: "discount"
|
20
31
|
|
21
32
|
save_nested_resource :source
|
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: 5.
|
4
|
+
version: 5.39.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-11 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.
|