stripe 5.53.0 → 5.54.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: 0a9e7f54ca7cf38cb46699a55f15b82c0973b77934d3f2e9eb94a5c5001a416b
4
- data.tar.gz: 6edcca1ef41890e6139fdc8c32df1e254f44892f873dd250f97bc26c70483c2f
3
+ metadata.gz: b9d6ce176535bbef6a323f2005c49048ff277bb6c586dc4ac1fbe3d8872b0005
4
+ data.tar.gz: 2aa8f2749a5abecf6643c9f5518508724f576e2ad72455feb0efa3cced7bd259
5
5
  SHA512:
6
- metadata.gz: 490fda5c8549d53225ded73b6349d954baf902d8dce7bccf3cea34df58781f3a5cb312065acca49f6908ba8f130b358da0f32ff5245c65a28495ead622c2b1ee
7
- data.tar.gz: 4dbafc1d54fc90fdb003c77466cabb3c26fffd79d21e5f0774973a153ede061a9f4b1ece5999699e26f82cdf01628bd17e6acf25dff1f0bf5b9dc24433ee24f7
6
+ metadata.gz: d551c722fc7caaaf263767ad5501b0d07c8c13af67bf607a109d3e69304c8baf910c15066d5860185d5841fc4be087f644045d573540acdad693caefd166c0a6
7
+ data.tar.gz: e48bf0b144136767e533d5be9ff804ab0d2b0c211ec4893be5aa2adfeebfb47f039584f92f9dc140c2b677e21f0e8238f258e596ac75714ed1be300ecd63c524
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.54.0 - 2022-05-03
4
+ * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
5
+ * Add support for new resource `CashBalance`
6
+
3
7
  ## 5.53.0 - 2022-04-21
4
8
  * [#1050](https://github.com/stripe/stripe-ruby/pull/1050) API Updates
5
9
  * Add support for `expire` test helper method on resource `Refund`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.53.0
1
+ 5.54.0
@@ -27,6 +27,7 @@ module Stripe
27
27
  BitcoinTransaction::OBJECT_NAME => BitcoinTransaction,
28
28
  Capability::OBJECT_NAME => Capability,
29
29
  Card::OBJECT_NAME => Card,
30
+ CashBalance::OBJECT_NAME => CashBalance,
30
31
  Charge::OBJECT_NAME => Charge,
31
32
  Checkout::Session::OBJECT_NAME => Checkout::Session,
32
33
  CountrySpec::OBJECT_NAME => CountrySpec,
@@ -0,0 +1,22 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class CashBalance < APIResource
6
+ OBJECT_NAME = "cash_balance"
7
+
8
+ def resource_url
9
+ if !respond_to?(:customer) || customer.nil?
10
+ raise NotImplementedError,
11
+ "Customer Cash Balance cannot be accessed without a customer ID."
12
+ end
13
+ "#{Customer.resource_url}/#{CGI.escape(customer)}/cash_balance"
14
+ end
15
+
16
+ def self.retrieve(_id, _opts = {})
17
+ raise NotImplementedError,
18
+ "Customer Cash Balance cannot be retrieved without a customer ID. " \
19
+ "Retrieve a Customer Cash Balance using `Customer.retrieve_cash_balance('cus_123')`"
20
+ end
21
+ end
22
+ end
@@ -15,6 +15,9 @@ module Stripe
15
15
  custom_method :create_funding_instructions, http_verb: :post, http_path: "funding_instructions"
16
16
  custom_method :list_payment_methods, http_verb: :get, http_path: "payment_methods"
17
17
 
18
+ nested_resource_class_methods :cash_balance,
19
+ operations: %i[retrieve update],
20
+ resource_plural: "cash_balance"
18
21
  nested_resource_class_methods :balance_transaction,
19
22
  operations: %i[create retrieve update list]
20
23
  nested_resource_class_methods :tax_id,
@@ -16,6 +16,7 @@ require "stripe/resources/bitcoin_receiver"
16
16
  require "stripe/resources/bitcoin_transaction"
17
17
  require "stripe/resources/capability"
18
18
  require "stripe/resources/card"
19
+ require "stripe/resources/cash_balance"
19
20
  require "stripe/resources/charge"
20
21
  require "stripe/resources/checkout/session"
21
22
  require "stripe/resources/country_spec"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.53.0"
4
+ VERSION = "5.54.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.53.0
4
+ version: 5.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-21 00:00:00.000000000 Z
11
+ date: 2022-05-03 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.
@@ -64,6 +64,7 @@ files:
64
64
  - lib/stripe/resources/bitcoin_transaction.rb
65
65
  - lib/stripe/resources/capability.rb
66
66
  - lib/stripe/resources/card.rb
67
+ - lib/stripe/resources/cash_balance.rb
67
68
  - lib/stripe/resources/charge.rb
68
69
  - lib/stripe/resources/checkout/session.rb
69
70
  - lib/stripe/resources/country_spec.rb
@@ -176,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
177
  - !ruby/object:Gem::Version
177
178
  version: '0'
178
179
  requirements: []
179
- rubygems_version: 3.1.2
180
+ rubygems_version: 3.3.7
180
181
  signing_key:
181
182
  specification_version: 4
182
183
  summary: Ruby bindings for the Stripe API