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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c7a2e67a4d91e1a22dff9303644b5f2efb74675bce05e364fff8d287f3fa8bd
4
- data.tar.gz: a560d866c948d0bbc8f3389571c313da67a26650a771159fa785d7a1e3beccc9
3
+ metadata.gz: f1e54cc2d57c31541003984f4cea2ac0e6523a88974bbe060c1332ecc3b2dd13
4
+ data.tar.gz: 7834d48a4ec62a379ffba64730d81304f66185ba85d07c53c645a2239f44ac89
5
5
  SHA512:
6
- metadata.gz: a257d84bec5ef9fe3005b362da5c5194a71e257e77baa71c5872b990fefc3e3ee7cc26201d773cf4f5ca29af0fd8b2d3f3b047e11a833c51aba7bca2f6b3947a
7
- data.tar.gz: eae3ef2579f9ce37a5e447cd46ca67bdfebc2324e5767cc0925d7f2bee5d8f289a69512ff9221cb28bdd9c4ec39a8cea1f7b5af14b67d18b2fa8a3c9ce7dbb47
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.38.0
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.38.0"
4
+ VERSION = "5.39.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: 5.38.0
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-08-10 00:00:00.000000000 Z
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.