stripe 7.1.0.pre.beta.2 → 7.1.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: e2e7b040047cac21858806b95ee7acbe05671f7e362fb251028c688214ca7f91
4
- data.tar.gz: 9c33b413e3bb963a64d6ed7845f310f3a71b0e4b4cf23774d7b44004209cb6ce
3
+ metadata.gz: 989ee2b99d22b4fef0e7862b8ff6cd4a043ca09668ed9eb457864c408bb8eb4a
4
+ data.tar.gz: 872b69c6afe17c944f48a8f6b5e96494aa86d378eb0a281f8d8b05ae122ea8a6
5
5
  SHA512:
6
- metadata.gz: 7df8eded9e11c521b40aa83ac3808c2bbf6a019c7a94f164df095f0c1b17d9457616f3936ef5356c6ea4437555a28e37f2d23302835a2778028ad810f0c39432
7
- data.tar.gz: 6ee25a16bae8c25ae4f431ad34ff7a0d5ac852557095b512f6ddd3705e77e713d7a25a52084c1bfac241f2b461984afeae44644f4329b9858ea47c75a54d8411
6
+ metadata.gz: d82ab0a2ea55ca4551695c286fcfc72ef35cbcd61f31d340ad37158bb1052f1a8330aabd5b92c10af5ac7fd84fea1d889f37c87b273fdb0d9305cdfb92328077
7
+ data.tar.gz: 5ea3f368e59bdcc12cf68fabee95eac23f07792e3506afd1dcb77d7e5e2986c006d8292b74a711190c49444b31c7af07a4c7ee31f86b928b00cc5ebf0bcf1697
data/CHANGELOG.md CHANGED
@@ -1,14 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## 7.1.0-beta.2 - 2022-08-11
4
- * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
5
- - Updated stable APIs to the latest version
6
- - Add `refund_payment` method to Terminal resource
7
-
8
- ## 7.1.0-beta.1 - 2022-08-03
9
- * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
10
- - Updated stable APIs to the latest version
11
- - Added the `Order` resource support
3
+ ## 7.1.0 - 2022-08-19
4
+ * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
5
+ * Add support for new resource `CustomerCashBalanceTransaction`
6
+ * [#1118](https://github.com/stripe/stripe-ruby/pull/1118) Update AllowedChars in rubocop config
7
+ * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
8
+ * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
12
9
 
13
10
  ## 7.0.0 - 2022-08-02
14
11
 
@@ -21,19 +18,21 @@ Breaking changes that arose during code generation of the library that we postpo
21
18
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
22
19
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
23
20
 
24
- ## 6.6.0-beta.1 - 2022-07-22
25
- * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
26
- - Updated stable APIs to the latest version
27
- - Add `QuotePhase` resource
28
- * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
29
- - Updated stable APIs to the latest version
30
- - Add `SubscriptionSchedule.amend` method.
31
- * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
32
- - Include `server_side_confirmation_beta=v1` beta
33
- - Add `secretKeyConfirmation` to `PaymentIntent`
34
- * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
35
- - Updated stable APIs to the latest version
36
- * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
21
+ ### ⚠️ Changed
22
+ * `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.
23
+ * Update default bundle of CA certificates to April 26, 2022.
24
+
25
+ ### Deprecated
26
+ * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
27
+
28
+ ### ⚠️ Removed
29
+ * Remove `details` method from `Issuing.Card` resource. The method was not supported.
30
+ * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
31
+ * Remove `create` method from `ReportType` resource. The method was not supported.
32
+ * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
33
+ * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
34
+ * Remove ability to list `Card` resource for a `Recipient`.
35
+ * Remove `cancel` method from `Transfer` resource. The method was deprecated.
37
36
 
38
37
  ## 6.5.0 - 2022-06-29
39
38
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -63,6 +62,8 @@ Breaking changes that arose during code generation of the library that we postpo
63
62
  * 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`
64
63
  * Add support for `retrieve_payment_method` method on resource `Customer`
65
64
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
65
+
66
+
66
67
 
67
68
  ## 6.0.0 - 2022-05-09
68
69
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -78,6 +79,7 @@ Breaking changes that arose during code generation of the library that we postpo
78
79
  ## 5.55.0 - 2022-05-05
79
80
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
80
81
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
82
+
81
83
 
82
84
  ## 5.54.0 - 2022-05-03
83
85
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1108,4 +1110,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1108
1110
  <!--
1109
1111
  # vim: set tw=0:
1110
1112
  -->
1111
-
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v178
1
+ v183
data/README.md CHANGED
@@ -16,6 +16,10 @@ The library also provides other features. For example:
16
16
  - Built-in mechanisms for the serialization of parameters according to the
17
17
  expectations of Stripe's API.
18
18
 
19
+ ## Support
20
+
21
+ New features and bug fixes are released on the latest major version of the Stripe Ruby library. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
22
+
19
23
  ## Documentation
20
24
 
21
25
  See the [Ruby API docs](https://stripe.com/docs/api?lang=ruby).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.1.0-beta.2
1
+ 7.1.0
@@ -3,8 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- # rubocop:disable Layout/LineLength
7
- CURRENT = "2022-08-01; server_side_confirmation_beta=v1; orders_beta=v4; terminal_interac_refunds_beta=v1"
8
- # rubocop:enable Layout/LineLength
6
+ CURRENT = "2022-08-01"
9
7
  end
10
8
  end
@@ -34,6 +34,7 @@ module Stripe
34
34
  CreditNoteLineItem::OBJECT_NAME => CreditNoteLineItem,
35
35
  Customer::OBJECT_NAME => Customer,
36
36
  CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
37
+ CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
37
38
  Discount::OBJECT_NAME => Discount,
38
39
  Dispute::OBJECT_NAME => Dispute,
39
40
  EphemeralKey::OBJECT_NAME => EphemeralKey,
@@ -72,7 +73,6 @@ module Stripe
72
73
  Product::OBJECT_NAME => Product,
73
74
  PromotionCode::OBJECT_NAME => PromotionCode,
74
75
  Quote::OBJECT_NAME => Quote,
75
- QuotePhase::OBJECT_NAME => QuotePhase,
76
76
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
77
77
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
78
78
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -14,6 +14,8 @@ module Stripe
14
14
 
15
15
  nested_resource_class_methods :balance_transaction,
16
16
  operations: %i[create retrieve update list]
17
+ nested_resource_class_methods :cash_balance_transaction,
18
+ operations: %i[retrieve list]
17
19
  nested_resource_class_methods :tax_id,
18
20
  operations: %i[create retrieve delete list]
19
21
 
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class CustomerCashBalanceTransaction < APIResource
6
+ extend Stripe::APIOperations::List
7
+
8
+ OBJECT_NAME = "customer_cash_balance_transaction"
9
+ end
10
+ end
@@ -9,15 +9,6 @@ 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
-
21
12
  def cancel(params = {}, opts = {})
22
13
  request_stripe_object(
23
14
  method: :post,
@@ -36,15 +27,6 @@ module Stripe
36
27
  )
37
28
  end
38
29
 
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
-
48
30
  def self.cancel(schedule, params = {}, opts = {})
49
31
  request_stripe_object(
50
32
  method: :post,
@@ -38,15 +38,6 @@ module Stripe
38
38
  )
39
39
  end
40
40
 
41
- def refund_payment(params = {}, opts = {})
42
- request_stripe_object(
43
- method: :post,
44
- path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(self["id"]) }),
45
- params: params,
46
- opts: opts
47
- )
48
- end
49
-
50
41
  def set_reader_display(params = {}, opts = {})
51
42
  request_stripe_object(
52
43
  method: :post,
@@ -83,15 +74,6 @@ module Stripe
83
74
  )
84
75
  end
85
76
 
86
- def self.refund_payment(reader, params = {}, opts = {})
87
- request_stripe_object(
88
- method: :post,
89
- path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(reader) }),
90
- params: params,
91
- opts: opts
92
- )
93
- end
94
-
95
77
  def self.set_reader_display(reader, params = {}, opts = {})
96
78
  request_stripe_object(
97
79
  method: :post,
@@ -23,6 +23,7 @@ require "stripe/resources/credit_note"
23
23
  require "stripe/resources/credit_note_line_item"
24
24
  require "stripe/resources/customer"
25
25
  require "stripe/resources/customer_balance_transaction"
26
+ require "stripe/resources/customer_cash_balance_transaction"
26
27
  require "stripe/resources/discount"
27
28
  require "stripe/resources/dispute"
28
29
  require "stripe/resources/ephemeral_key"
@@ -59,7 +60,6 @@ require "stripe/resources/price"
59
60
  require "stripe/resources/product"
60
61
  require "stripe/resources/promotion_code"
61
62
  require "stripe/resources/quote"
62
- require "stripe/resources/quote_phase"
63
63
  require "stripe/resources/radar/early_fraud_warning"
64
64
  require "stripe/resources/radar/value_list"
65
65
  require "stripe/resources/radar/value_list_item"
@@ -63,8 +63,6 @@ module Stripe
63
63
  end
64
64
 
65
65
  def initialize
66
- @api_version = ApiVersion::CURRENT
67
-
68
66
  @ca_bundle_path = Stripe::DEFAULT_CA_BUNDLE_PATH
69
67
  @enable_telemetry = true
70
68
  @verify_ssl_certs = true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "7.1.0-beta.2"
4
+ VERSION = "7.1.0"
5
5
  end
data/lib/stripe.rb CHANGED
@@ -15,7 +15,6 @@ require "uri"
15
15
  require "forwardable"
16
16
 
17
17
  # Version
18
- require "stripe/api_version"
19
18
  require "stripe/version"
20
19
 
21
20
  # 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.1.0.pre.beta.2
4
+ version: 7.1.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-08-11 00:00:00.000000000 Z
11
+ date: 2022-08-19 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.
@@ -74,6 +74,7 @@ files:
74
74
  - lib/stripe/resources/credit_note_line_item.rb
75
75
  - lib/stripe/resources/customer.rb
76
76
  - lib/stripe/resources/customer_balance_transaction.rb
77
+ - lib/stripe/resources/customer_cash_balance_transaction.rb
77
78
  - lib/stripe/resources/discount.rb
78
79
  - lib/stripe/resources/dispute.rb
79
80
  - lib/stripe/resources/ephemeral_key.rb
@@ -110,7 +111,6 @@ files:
110
111
  - lib/stripe/resources/product.rb
111
112
  - lib/stripe/resources/promotion_code.rb
112
113
  - lib/stripe/resources/quote.rb
113
- - lib/stripe/resources/quote_phase.rb
114
114
  - lib/stripe/resources/radar/early_fraud_warning.rb
115
115
  - lib/stripe/resources/radar/value_list.rb
116
116
  - lib/stripe/resources/radar/value_list_item.rb
@@ -185,9 +185,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  version: 2.3.0
186
186
  required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  requirements:
188
- - - ">"
188
+ - - ">="
189
189
  - !ruby/object:Gem::Version
190
- version: 1.3.1
190
+ version: '0'
191
191
  requirements: []
192
192
  rubygems_version: 3.3.7
193
193
  signing_key:
@@ -1,28 +0,0 @@
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