stripe 7.0.0 → 7.1.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8c056c26e7e957d838175e3ce97e714dd57d135d4334514d941a66774eaa01f
4
- data.tar.gz: 4419dec5287e23621c54ac8f66eee626cfcdb1148d08febec6a58f0c490dac77
3
+ metadata.gz: 803504fb9cf5348f6c69d73dce412e713d60da6eeb583598a269fdf6e74d1519
4
+ data.tar.gz: e2ec613485ac48c5118ce5bfdf9179fbf369f62f91ba4b38e3c4918050310f26
5
5
  SHA512:
6
- metadata.gz: 1554ab4b614fcc677450b098fc96933d496e7c00e8a8711a564b827adf4785427cc4c6539b4ee74f014f98760cb6cc75de5d62d8d709a3c68366a67cf4ff620d
7
- data.tar.gz: 0347a43b7406f460889a749c964135ee686211c34f7d3de568dd86ebf0026a34f38ecafa6d5419e8ff34100822295b9864cab52ae763db82db9bc4e14de1ad5a
6
+ metadata.gz: 9ca2cd6e815e5acbca268b1c6be2be3651b1486c7377334e4de6b016091b9602479782b0a774d9429ac3bf753199db5c0c21ee00e34faa100a85fba8eb31ea5a
7
+ data.tar.gz: 459abca01397a4f89a6740c48e51e613e821ec7a877f24a1864d939ed993b2b45cac574a9b513f3187aa06a57987eeb10ee070b9a1f7cc81edb955285d69fbf2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.1.0-beta.1 - 2022-08-03
4
+ * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
5
+ - Updated stable APIs to the latest version
6
+ - Added the `Order` resource support
7
+
3
8
  ## 7.0.0 - 2022-08-02
4
9
 
5
10
  Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v7. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.
@@ -11,21 +16,19 @@ Breaking changes that arose during code generation of the library that we postpo
11
16
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
12
17
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
13
18
 
14
- ### ⚠️ Changed
15
- * `retrieve_cash_balance` and `update_cash_balance` methods on `Customer` resource no longer requires the second argument to always be `nil`. The methods now now take in `customer_id`, `params`, and `opts` parameters.
16
- * Update default bundle of CA certificates to April 26, 2022.
17
-
18
- ### Deprecated
19
- * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
20
-
21
- ### ⚠️ Removed
22
- * Remove `details` method from `Issuing.Card` resource. The method was not supported.
23
- * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
24
- * Remove `create` method from `ReportType` resource. The method was not supported.
25
- * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
26
- * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
27
- * Remove ability to list `Card` resource for a `Recipient`.
28
- * Remove `cancel` method from `Transfer` resource. The method was deprecated.
19
+ ## 6.6.0-beta.1 - 2022-07-22
20
+ * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
21
+ - Updated stable APIs to the latest version
22
+ - Add `QuotePhase` resource
23
+ * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
24
+ - Updated stable APIs to the latest version
25
+ - Add `SubscriptionSchedule.amend` method.
26
+ * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
27
+ - Include `server_side_confirmation_beta=v1` beta
28
+ - Add `secretKeyConfirmation` to `PaymentIntent`
29
+ * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
30
+ - Updated stable APIs to the latest version
31
+ * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
29
32
 
30
33
  ## 6.5.0 - 2022-06-29
31
34
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -55,8 +58,6 @@ Breaking changes that arose during code generation of the library that we postpo
55
58
  * Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction`
56
59
  * Add support for `retrieve_payment_method` method on resource `Customer`
57
60
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
58
-
59
-
60
61
 
61
62
  ## 6.0.0 - 2022-05-09
62
63
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -72,7 +73,6 @@ Breaking changes that arose during code generation of the library that we postpo
72
73
  ## 5.55.0 - 2022-05-05
73
74
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
74
75
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
75
-
76
76
 
77
77
  ## 5.54.0 - 2022-05-03
78
78
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1103,3 +1103,4 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1103
1103
  <!--
1104
1104
  # vim: set tw=0:
1105
1105
  -->
1106
+
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v174
1
+ v175
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.0.0
1
+ 7.1.0-beta.1
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2022-08-01"
6
+ CURRENT = "2022-08-01; server_side_confirmation_beta=v1; orders_beta=v4"
7
7
  end
8
8
  end
@@ -72,6 +72,7 @@ module Stripe
72
72
  Product::OBJECT_NAME => Product,
73
73
  PromotionCode::OBJECT_NAME => PromotionCode,
74
74
  Quote::OBJECT_NAME => Quote,
75
+ QuotePhase::OBJECT_NAME => QuotePhase,
75
76
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
76
77
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
77
78
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -0,0 +1,28 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class QuotePhase < APIResource
6
+ extend Stripe::APIOperations::List
7
+
8
+ OBJECT_NAME = "quote_phase"
9
+
10
+ def list_line_items(params = {}, opts = {})
11
+ request_stripe_object(
12
+ method: :get,
13
+ path: format("/v1/quote_phases/%<quote_phase>s/line_items", { quote_phase: CGI.escape(self["id"]) }),
14
+ params: params,
15
+ opts: opts
16
+ )
17
+ end
18
+
19
+ def self.list_line_items(quote_phase, params = {}, opts = {})
20
+ request_stripe_object(
21
+ method: :get,
22
+ path: format("/v1/quote_phases/%<quote_phase>s/line_items", { quote_phase: CGI.escape(quote_phase) }),
23
+ params: params,
24
+ opts: opts
25
+ )
26
+ end
27
+ end
28
+ end
@@ -9,6 +9,15 @@ module Stripe
9
9
 
10
10
  OBJECT_NAME = "subscription_schedule"
11
11
 
12
+ def amend(params = {}, opts = {})
13
+ request_stripe_object(
14
+ method: :post,
15
+ path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
16
+ params: params,
17
+ opts: opts
18
+ )
19
+ end
20
+
12
21
  def cancel(params = {}, opts = {})
13
22
  request_stripe_object(
14
23
  method: :post,
@@ -27,6 +36,15 @@ module Stripe
27
36
  )
28
37
  end
29
38
 
39
+ def self.amend(schedule, params = {}, opts = {})
40
+ request_stripe_object(
41
+ method: :post,
42
+ path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
43
+ params: params,
44
+ opts: opts
45
+ )
46
+ end
47
+
30
48
  def self.cancel(schedule, params = {}, opts = {})
31
49
  request_stripe_object(
32
50
  method: :post,
@@ -59,6 +59,7 @@ require "stripe/resources/price"
59
59
  require "stripe/resources/product"
60
60
  require "stripe/resources/promotion_code"
61
61
  require "stripe/resources/quote"
62
+ require "stripe/resources/quote_phase"
62
63
  require "stripe/resources/radar/early_fraud_warning"
63
64
  require "stripe/resources/radar/value_list"
64
65
  require "stripe/resources/radar/value_list_item"
@@ -63,6 +63,8 @@ module Stripe
63
63
  end
64
64
 
65
65
  def initialize
66
+ @api_version = ApiVersion::CURRENT
67
+
66
68
  @ca_bundle_path = Stripe::DEFAULT_CA_BUNDLE_PATH
67
69
  @enable_telemetry = true
68
70
  @verify_ssl_certs = true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "7.0.0"
4
+ VERSION = "7.1.0-beta.1"
5
5
  end
data/lib/stripe.rb CHANGED
@@ -15,6 +15,7 @@ require "uri"
15
15
  require "forwardable"
16
16
 
17
17
  # Version
18
+ require "stripe/api_version"
18
19
  require "stripe/version"
19
20
 
20
21
  # API operations
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: 7.0.0
4
+ version: 7.1.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-02 00:00:00.000000000 Z
11
+ date: 2022-08-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.
@@ -110,6 +110,7 @@ files:
110
110
  - lib/stripe/resources/product.rb
111
111
  - lib/stripe/resources/promotion_code.rb
112
112
  - lib/stripe/resources/quote.rb
113
+ - lib/stripe/resources/quote_phase.rb
113
114
  - lib/stripe/resources/radar/early_fraud_warning.rb
114
115
  - lib/stripe/resources/radar/value_list.rb
115
116
  - lib/stripe/resources/radar/value_list_item.rb
@@ -184,9 +185,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
185
  version: 2.3.0
185
186
  required_rubygems_version: !ruby/object:Gem::Requirement
186
187
  requirements:
187
- - - ">="
188
+ - - ">"
188
189
  - !ruby/object:Gem::Version
189
- version: '0'
190
+ version: 1.3.1
190
191
  requirements: []
191
192
  rubygems_version: 3.3.7
192
193
  signing_key: