stripe 6.0.0 → 7.0.0
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 +4 -4
- data/CHANGELOG.md +60 -2
- data/Makefile +1 -1
- data/OPENAPI_VERSION +1 -0
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/data/ca-certificates.crt +1241 -1937
- data/lib/stripe/api_operations/create.rb +6 -2
- data/lib/stripe/api_operations/delete.rb +12 -7
- data/lib/stripe/api_operations/list.rb +6 -9
- data/lib/stripe/api_operations/nested_resource.rb +62 -34
- data/lib/stripe/api_operations/request.rb +10 -0
- data/lib/stripe/api_operations/save.rb +6 -3
- data/lib/stripe/api_operations/search.rb +6 -9
- data/lib/stripe/api_resource.rb +1 -1
- data/lib/stripe/api_resource_test_helpers.rb +2 -0
- data/lib/stripe/api_version.rb +8 -0
- data/lib/stripe/object_types.rb +11 -7
- data/lib/stripe/resources/account.rb +28 -8
- data/lib/stripe/resources/apps/secret.rb +31 -0
- data/lib/stripe/resources/card.rb +1 -3
- data/lib/stripe/resources/charge.rb +10 -3
- data/lib/stripe/resources/checkout/session.rb +27 -5
- data/lib/stripe/resources/credit_note.rb +24 -9
- data/lib/stripe/resources/customer.rb +104 -19
- data/lib/stripe/resources/dispute.rb +10 -3
- data/lib/stripe/resources/financial_connections/account.rb +40 -5
- data/lib/stripe/resources/identity/verification_session.rb +20 -5
- data/lib/stripe/resources/invoice.rb +64 -17
- data/lib/stripe/resources/issuing/authorization.rb +20 -5
- data/lib/stripe/resources/issuing/card.rb +78 -9
- data/lib/stripe/resources/issuing/dispute.rb +10 -3
- data/lib/stripe/resources/order.rb +40 -9
- data/lib/stripe/resources/payment_intent.rb +60 -13
- data/lib/stripe/resources/payment_link.rb +10 -3
- data/lib/stripe/resources/payment_method.rb +20 -5
- data/lib/stripe/resources/payout.rb +20 -5
- data/lib/stripe/resources/quote.rb +50 -11
- data/lib/stripe/resources/refund.rb +19 -5
- data/lib/stripe/resources/reporting/report_type.rb +0 -1
- data/lib/stripe/resources/review.rb +10 -3
- data/lib/stripe/resources/setup_intent.rb +30 -7
- data/lib/stripe/resources/source.rb +16 -6
- data/lib/stripe/resources/subscription.rb +52 -3
- data/lib/stripe/resources/subscription_item.rb +0 -7
- data/lib/stripe/resources/subscription_schedule.rb +20 -5
- data/lib/stripe/resources/terminal/reader.rb +49 -11
- data/lib/stripe/resources/test_helpers/test_clock.rb +10 -3
- data/lib/stripe/resources/topup.rb +10 -3
- data/lib/stripe/resources/transfer.rb +0 -11
- data/lib/stripe/resources/treasury/credit_reversal.rb +13 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +13 -0
- data/lib/stripe/resources/treasury/financial_account.rb +50 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +93 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +93 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +97 -0
- data/lib/stripe/resources/treasury/received_credit.rb +29 -0
- data/lib/stripe/resources/treasury/received_debit.rb +29 -0
- data/lib/stripe/resources/treasury/transaction.rb +12 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +16 -0
- data/lib/stripe/resources.rb +11 -7
- data/lib/stripe/util.rb +38 -3
- data/lib/stripe/version.rb +1 -1
- metadata +16 -8
- data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
- data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
- data/lib/stripe/resources/issuing/card_details.rb +0 -10
- data/lib/stripe/resources/recipient.rb +0 -14
- data/lib/stripe/resources/three_d_secure.rb +0 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8c056c26e7e957d838175e3ce97e714dd57d135d4334514d941a66774eaa01f
|
|
4
|
+
data.tar.gz: 4419dec5287e23621c54ac8f66eee626cfcdb1148d08febec6a58f0c490dac77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1554ab4b614fcc677450b098fc96933d496e7c00e8a8711a564b827adf4785427cc4c6539b4ee74f014f98760cb6cc75de5d62d8d709a3c68366a67cf4ff620d
|
|
7
|
+
data.tar.gz: 0347a43b7406f460889a749c964135ee686211c34f7d3de568dd86ebf0026a34f38ecafa6d5419e8ff34100822295b9864cab52ae763db82db9bc4e14de1ad5a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 7.0.0 - 2022-08-02
|
|
4
|
+
|
|
5
|
+
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.
|
|
6
|
+
|
|
7
|
+
"⚠️" symbol highlights breaking changes.
|
|
8
|
+
|
|
9
|
+
* [#1106](https://github.com/stripe/stripe-ruby/pull/1106) API Updates
|
|
10
|
+
* [#1092](https://github.com/stripe/stripe-ruby/pull/1092) API Updates
|
|
11
|
+
* [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
|
|
12
|
+
* [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
|
|
13
|
+
|
|
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.
|
|
29
|
+
|
|
30
|
+
## 6.5.0 - 2022-06-29
|
|
31
|
+
* [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
|
|
32
|
+
* Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card`
|
|
33
|
+
* [#1076](https://github.com/stripe/stripe-ruby/pull/1076) fix: Update logging to coerce ASCII-8BIT into UTF-8.
|
|
34
|
+
|
|
35
|
+
## 6.4.0 - 2022-06-17
|
|
36
|
+
* [#1073](https://github.com/stripe/stripe-ruby/pull/1073) API Updates
|
|
37
|
+
* Add support for `fund_cash_balance` test helper method on resource `Customer`
|
|
38
|
+
* [#1074](https://github.com/stripe/stripe-ruby/pull/1074) Support updating pre-release versions
|
|
39
|
+
* [#1072](https://github.com/stripe/stripe-ruby/pull/1072) Trigger workflows on beta branches
|
|
40
|
+
* [#1071](https://github.com/stripe/stripe-ruby/pull/1071) Use request_stripe_object for all requests
|
|
41
|
+
* [#1070](https://github.com/stripe/stripe-ruby/pull/1070) API Updates
|
|
42
|
+
|
|
43
|
+
Switch from using meta-programing to generating explicit methods for custom methods.
|
|
44
|
+
* [#1069](https://github.com/stripe/stripe-ruby/pull/1069) chore: Stop special implementation of Account.persons method.
|
|
45
|
+
|
|
46
|
+
## 6.3.0 - 2022-06-08
|
|
47
|
+
* [#1063](https://github.com/stripe/stripe-ruby/pull/1063) fix: Update cash balance methods to no longer require nested ID.
|
|
48
|
+
|
|
49
|
+
## 6.2.0 - 2022-05-23
|
|
50
|
+
* [#1060](https://github.com/stripe/stripe-ruby/pull/1060) API Updates
|
|
51
|
+
* Add support for new resource `Apps.Secret`
|
|
52
|
+
|
|
53
|
+
## 6.1.0 - 2022-05-19
|
|
54
|
+
* [#1057](https://github.com/stripe/stripe-ruby/pull/1057) API Updates
|
|
55
|
+
* 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
|
+
* Add support for `retrieve_payment_method` method on resource `Customer`
|
|
57
|
+
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
3
61
|
## 6.0.0 - 2022-05-09
|
|
4
62
|
* [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
|
|
5
63
|
Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-Guide-for-v6) contains more information.
|
|
@@ -13,8 +71,8 @@
|
|
|
13
71
|
|
|
14
72
|
## 5.55.0 - 2022-05-05
|
|
15
73
|
* [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
|
|
16
|
-
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
|
|
17
|
-
|
|
74
|
+
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
|
|
75
|
+
|
|
18
76
|
|
|
19
77
|
## 5.54.0 - 2022-05-03
|
|
20
78
|
* [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
|
data/Makefile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.PHONY: update-version codegen-format
|
|
2
2
|
update-version:
|
|
3
3
|
@echo "$(VERSION)" > VERSION
|
|
4
|
-
@perl -pi -e 's|VERSION = "[
|
|
4
|
+
@perl -pi -e 's|VERSION = "[.\-\w\d]+"|VERSION = "$(VERSION)"|' lib/stripe/version.rb
|
|
5
5
|
|
|
6
6
|
codegen-format:
|
|
7
7
|
bundle exec rubocop -o /dev/null --auto-correct
|
data/OPENAPI_VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v174
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Stripe Ruby Library
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/stripe)
|
|
4
|
-
[](https://github.com/stripe/stripe-ruby/actions?query=branch%3Amaster)
|
|
5
5
|
|
|
6
6
|
The Stripe Ruby library provides convenient access to the Stripe API from
|
|
7
7
|
applications written in the Ruby language. It includes a pre-defined set of
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7.0.0
|