stripe 5.55.0 → 6.0.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: 7e81cc3af76a8942f879c1b312bbcc6ad27257cb9b68f9a63df76bd430ff9cf8
4
- data.tar.gz: c83f7ae353941a10279ba76237f64e700f0e6bce06fe9475250b85308f72d57f
3
+ metadata.gz: 56384c5d588a2d922c4cd813adfd6015bce5169cd334ae8dd6f45c16fcb07392
4
+ data.tar.gz: 5f9460024d8c4d1b7cd0ac44883d4aa9a3ed52e0104b129bdf0eacfff62e1698
5
5
  SHA512:
6
- metadata.gz: 4b4aff3650ae5933a0fae274bf1fe1e142f8361fbd0b3734502ce317a82492bda2124e155ff335b311abbda1d9751fdbc15e4a1754c94fe8b6d8a24e206b599e
7
- data.tar.gz: f23307331d6ded3934361f9fff180a0ecda5df30bb3f5708e359d3b0712ed5262873b2220400d124544b113249a7ff5f1ae885cef381b9a8b3aa6388295527a7
6
+ metadata.gz: 7b53fda899dfd3e44e27482860880228f93c3948425fef83c33ff106504cdae9441a3438488f80416946f653736389491cd5fc0c5e5e6d2ed604ffc50aa6a013
7
+ data.tar.gz: 602f93db8d61c5f7953e7f930eb7e74d09a0bc01fc02b32277cd6335a12cb93fa7f5c2767b111bac5c4d19a129fc1ed6749780cb8d1285d52e342f87523c47ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.0.0 - 2022-05-09
4
+ * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
5
+ Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-Guide-for-v6) contains more information.
6
+
7
+ (⚠️ = breaking changes):
8
+ * ⚠️ Replace the legacy `Order` API with the new `Order` API.
9
+ * New methods: `cancel`, `list_line_items`, `reopen`, and `submit`
10
+ * Removed methods: `pay` and `return_order`
11
+ * Removed resources: `OrderItem` and `OrderReturn`
12
+ * ⚠️ Rename `FinancialConnections::Account.refresh` to `FinancialConnections::Account.refresh_account
13
+
3
14
  ## 5.55.0 - 2022-05-05
4
15
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
5
16
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.55.0
1
+ 6.0.0
@@ -65,7 +65,6 @@ module Stripe
65
65
  LoginLink::OBJECT_NAME => LoginLink,
66
66
  Mandate::OBJECT_NAME => Mandate,
67
67
  Order::OBJECT_NAME => Order,
68
- OrderReturn::OBJECT_NAME => OrderReturn,
69
68
  PaymentIntent::OBJECT_NAME => PaymentIntent,
70
69
  PaymentLink::OBJECT_NAME => PaymentLink,
71
70
  PaymentMethod::OBJECT_NAME => PaymentMethod,
@@ -7,7 +7,7 @@ module Stripe
7
7
  OBJECT_NAME = "financial_connections.account"
8
8
 
9
9
  custom_method :disconnect, http_verb: :post
10
- custom_method :refresh, http_verb: :post
10
+ custom_method :refresh_account, http_verb: :post, http_path: "refresh"
11
11
 
12
12
  def disconnect(params = {}, opts = {})
13
13
  request_stripe_object(
@@ -18,7 +18,7 @@ module Stripe
18
18
  )
19
19
  end
20
20
 
21
- def refresh(params = {}, opts = {})
21
+ def refresh_account(params = {}, opts = {})
22
22
  request_stripe_object(
23
23
  method: :post,
24
24
  path: resource_url + "/refresh",
@@ -9,22 +9,42 @@ module Stripe
9
9
 
10
10
  OBJECT_NAME = "order"
11
11
 
12
- custom_method :pay, http_verb: :post
13
- custom_method :return_order, http_verb: :post, http_path: "returns"
12
+ custom_method :cancel, http_verb: :post
13
+ custom_method :list_line_items, http_verb: :get, http_path: "line_items"
14
+ custom_method :reopen, http_verb: :post
15
+ custom_method :submit, http_verb: :post
14
16
 
15
- def pay(params = {}, opts = {})
17
+ def cancel(params = {}, opts = {})
16
18
  request_stripe_object(
17
19
  method: :post,
18
- path: resource_url + "/pay",
20
+ path: resource_url + "/cancel",
19
21
  params: params,
20
22
  opts: opts
21
23
  )
22
24
  end
23
25
 
24
- def return_order(params = {}, opts = {})
26
+ def list_line_items(params = {}, opts = {})
27
+ request_stripe_object(
28
+ method: :get,
29
+ path: resource_url + "/line_items",
30
+ params: params,
31
+ opts: opts
32
+ )
33
+ end
34
+
35
+ def reopen(params = {}, opts = {})
36
+ request_stripe_object(
37
+ method: :post,
38
+ path: resource_url + "/reopen",
39
+ params: params,
40
+ opts: opts
41
+ )
42
+ end
43
+
44
+ def submit(params = {}, opts = {})
25
45
  request_stripe_object(
26
46
  method: :post,
27
- path: resource_url + "/returns",
47
+ path: resource_url + "/submit",
28
48
  params: params,
29
49
  opts: opts
30
50
  )
@@ -52,7 +52,6 @@ require "stripe/resources/line_item"
52
52
  require "stripe/resources/login_link"
53
53
  require "stripe/resources/mandate"
54
54
  require "stripe/resources/order"
55
- require "stripe/resources/order_return"
56
55
  require "stripe/resources/payment_intent"
57
56
  require "stripe/resources/payment_link"
58
57
  require "stripe/resources/payment_method"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.55.0"
4
+ VERSION = "6.0.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.55.0
4
+ version: 6.0.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-05-05 00:00:00.000000000 Z
11
+ date: 2022-05-09 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.
@@ -100,7 +100,6 @@ files:
100
100
  - lib/stripe/resources/login_link.rb
101
101
  - lib/stripe/resources/mandate.rb
102
102
  - lib/stripe/resources/order.rb
103
- - lib/stripe/resources/order_return.rb
104
103
  - lib/stripe/resources/payment_intent.rb
105
104
  - lib/stripe/resources/payment_link.rb
106
105
  - lib/stripe/resources/payment_method.rb
@@ -181,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
180
  - !ruby/object:Gem::Version
182
181
  version: '0'
183
182
  requirements: []
184
- rubygems_version: 3.3.7
183
+ rubygems_version: 3.1.2
185
184
  signing_key:
186
185
  specification_version: 4
187
186
  summary: Ruby bindings for the Stripe API
@@ -1,10 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class OrderReturn < APIResource
6
- extend Stripe::APIOperations::List
7
-
8
- OBJECT_NAME = "order_return"
9
- end
10
- end