stripe 5.49.0 → 5.52.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 +11 -0
- data/Makefile +7 -0
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +2 -0
- data/lib/stripe/resources/customer.rb +10 -0
- data/lib/stripe/resources/funding_instructions.rb +16 -0
- data/lib/stripe/resources/payment_intent.rb +10 -0
- data/lib/stripe/resources/terminal/configuration.rb +15 -0
- data/lib/stripe/resources.rb +2 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4555e15aac2bf452df614b0d95bb03e130c5033fbe36c1321a072f4d57d4bb5d
|
4
|
+
data.tar.gz: 678111bc76cca09d3f57bd98d80b82a3774073280572a9c692a16c3342968da0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54798bd1c0f02db07744e05d657f354fa801da8cd4f20083a8e40f99c57168afde243711abd59c6a6477a439b19d7608a03177cea99a6638498f5b619521188d
|
7
|
+
data.tar.gz: 1fab9e4bc2380ad6ae41c04300ce4a9e789e5a5244487c3e1a3b08fea6e670614820b8e490893f5328c1dad37de18267057585fdb853b3584be0c5ccb99acfd0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 5.52.0 - 2022-04-18
|
4
|
+
* [#1046](https://github.com/stripe/stripe-ruby/pull/1046) [#1047](https://github.com/stripe/stripe-ruby/pull/1047) API Updates
|
5
|
+
* Add support for new resources `FundingInstructions` and `Terminal.Configuration`
|
6
|
+
|
7
|
+
## 5.51.0 - 2022-04-15
|
8
|
+
* [#1046](https://github.com/stripe/stripe-ruby/pull/1046) This release was incomplete and was yanked from RubyGems immediately after it was published.
|
9
|
+
|
10
|
+
## 5.50.0 - 2022-04-13
|
11
|
+
* [#1045](https://github.com/stripe/stripe-ruby/pull/1045) API Updates
|
12
|
+
* Add support for `increment_authorization` method on resource `PaymentIntent`
|
13
|
+
|
3
14
|
## 5.49.0 - 2022-04-08
|
4
15
|
* [#1043](https://github.com/stripe/stripe-ruby/pull/1043) API Updates
|
5
16
|
* Add support for `apply_customer_balance` method on resource `PaymentIntent`
|
data/Makefile
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.
|
1
|
+
5.52.0
|
data/lib/stripe/object_types.rb
CHANGED
@@ -43,6 +43,7 @@ module Stripe
|
|
43
43
|
File::OBJECT_NAME => File,
|
44
44
|
File::OBJECT_NAME_ALT => File,
|
45
45
|
FileLink::OBJECT_NAME => FileLink,
|
46
|
+
FundingInstructions::OBJECT_NAME => FundingInstructions,
|
46
47
|
Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
|
47
48
|
Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
|
48
49
|
Invoice::OBJECT_NAME => Invoice,
|
@@ -92,6 +93,7 @@ module Stripe
|
|
92
93
|
TaxCode::OBJECT_NAME => TaxCode,
|
93
94
|
TaxId::OBJECT_NAME => TaxId,
|
94
95
|
TaxRate::OBJECT_NAME => TaxRate,
|
96
|
+
Terminal::Configuration::OBJECT_NAME => Terminal::Configuration,
|
95
97
|
Terminal::ConnectionToken::OBJECT_NAME => Terminal::ConnectionToken,
|
96
98
|
Terminal::Location::OBJECT_NAME => Terminal::Location,
|
97
99
|
Terminal::Reader::OBJECT_NAME => Terminal::Reader,
|
@@ -12,6 +12,7 @@ module Stripe
|
|
12
12
|
|
13
13
|
OBJECT_NAME = "customer"
|
14
14
|
|
15
|
+
custom_method :create_funding_instructions, http_verb: :post, http_path: "funding_instructions"
|
15
16
|
custom_method :list_payment_methods, http_verb: :get, http_path: "payment_methods"
|
16
17
|
|
17
18
|
nested_resource_class_methods :balance_transaction,
|
@@ -19,6 +20,15 @@ module Stripe
|
|
19
20
|
nested_resource_class_methods :tax_id,
|
20
21
|
operations: %i[create retrieve delete list]
|
21
22
|
|
23
|
+
def create_funding_instructions(params = {}, opts = {})
|
24
|
+
request_stripe_object(
|
25
|
+
method: :post,
|
26
|
+
path: resource_url + "/funding_instructions",
|
27
|
+
params: params,
|
28
|
+
opts: opts
|
29
|
+
)
|
30
|
+
end
|
31
|
+
|
22
32
|
def list_payment_methods(params = {}, opts = {})
|
23
33
|
request_stripe_object(
|
24
34
|
method: :get,
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
class FundingInstructions < APIResource
|
6
|
+
OBJECT_NAME = "funding_instructions"
|
7
|
+
|
8
|
+
def resource_url
|
9
|
+
if !respond_to?(:customer) || customer.nil?
|
10
|
+
raise NotImplementedError,
|
11
|
+
"FundingInstructions cannot be accessed without a customer ID."
|
12
|
+
end
|
13
|
+
"#{Customer.resource_url}/#{CGI.escape(customer)}/funding_instructions" "/#{CGI.escape(id)}"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -14,6 +14,7 @@ module Stripe
|
|
14
14
|
custom_method :cancel, http_verb: :post
|
15
15
|
custom_method :capture, http_verb: :post
|
16
16
|
custom_method :confirm, http_verb: :post
|
17
|
+
custom_method :increment_authorization, http_verb: :post
|
17
18
|
custom_method :verify_microdeposits, http_verb: :post
|
18
19
|
|
19
20
|
def apply_customer_balance(params = {}, opts = {})
|
@@ -52,6 +53,15 @@ module Stripe
|
|
52
53
|
)
|
53
54
|
end
|
54
55
|
|
56
|
+
def increment_authorization(params = {}, opts = {})
|
57
|
+
request_stripe_object(
|
58
|
+
method: :post,
|
59
|
+
path: resource_url + "/increment_authorization",
|
60
|
+
params: params,
|
61
|
+
opts: opts
|
62
|
+
)
|
63
|
+
end
|
64
|
+
|
55
65
|
def verify_microdeposits(params = {}, opts = {})
|
56
66
|
request_stripe_object(
|
57
67
|
method: :post,
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Terminal
|
6
|
+
class Configuration < APIResource
|
7
|
+
extend Stripe::APIOperations::Create
|
8
|
+
include Stripe::APIOperations::Delete
|
9
|
+
extend Stripe::APIOperations::List
|
10
|
+
include Stripe::APIOperations::Save
|
11
|
+
|
12
|
+
OBJECT_NAME = "terminal.configuration"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -31,6 +31,7 @@ require "stripe/resources/event"
|
|
31
31
|
require "stripe/resources/exchange_rate"
|
32
32
|
require "stripe/resources/file"
|
33
33
|
require "stripe/resources/file_link"
|
34
|
+
require "stripe/resources/funding_instructions"
|
34
35
|
require "stripe/resources/identity/verification_report"
|
35
36
|
require "stripe/resources/identity/verification_session"
|
36
37
|
require "stripe/resources/invoice"
|
@@ -80,6 +81,7 @@ require "stripe/resources/subscription_schedule"
|
|
80
81
|
require "stripe/resources/tax_code"
|
81
82
|
require "stripe/resources/tax_id"
|
82
83
|
require "stripe/resources/tax_rate"
|
84
|
+
require "stripe/resources/terminal/configuration"
|
83
85
|
require "stripe/resources/terminal/connection_token"
|
84
86
|
require "stripe/resources/terminal/location"
|
85
87
|
require "stripe/resources/terminal/reader"
|
data/lib/stripe/version.rb
CHANGED
data/lib/stripe.rb
CHANGED
@@ -106,7 +106,7 @@ module Stripe
|
|
106
106
|
# with API requests. Useful for plugin authors to identify their plugin when
|
107
107
|
# communicating with Stripe.
|
108
108
|
#
|
109
|
-
# Takes a name and optional
|
109
|
+
# Takes a name and optional partner program ID, plugin URL, and version.
|
110
110
|
def self.set_app_info(name, partner_id: nil, url: nil, version: nil)
|
111
111
|
@app_info = {
|
112
112
|
name: name,
|
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.52.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-
|
11
|
+
date: 2022-04-18 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.
|
@@ -24,6 +24,7 @@ files:
|
|
24
24
|
- Gemfile
|
25
25
|
- History.txt
|
26
26
|
- LICENSE
|
27
|
+
- Makefile
|
27
28
|
- README.md
|
28
29
|
- Rakefile
|
29
30
|
- VERSION
|
@@ -78,6 +79,7 @@ files:
|
|
78
79
|
- lib/stripe/resources/exchange_rate.rb
|
79
80
|
- lib/stripe/resources/file.rb
|
80
81
|
- lib/stripe/resources/file_link.rb
|
82
|
+
- lib/stripe/resources/funding_instructions.rb
|
81
83
|
- lib/stripe/resources/identity/verification_report.rb
|
82
84
|
- lib/stripe/resources/identity/verification_session.rb
|
83
85
|
- lib/stripe/resources/invoice.rb
|
@@ -127,6 +129,7 @@ files:
|
|
127
129
|
- lib/stripe/resources/tax_code.rb
|
128
130
|
- lib/stripe/resources/tax_id.rb
|
129
131
|
- lib/stripe/resources/tax_rate.rb
|
132
|
+
- lib/stripe/resources/terminal/configuration.rb
|
130
133
|
- lib/stripe/resources/terminal/connection_token.rb
|
131
134
|
- lib/stripe/resources/terminal/location.rb
|
132
135
|
- lib/stripe/resources/terminal/reader.rb
|