stripe 3.2.0 → 5.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.editorconfig +10 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +80 -0
- data/.rubocop_todo.yml +33 -0
- data/.travis.yml +9 -7
- data/.vscode/extensions.json +7 -0
- data/.vscode/settings.json +8 -0
- data/CHANGELOG.md +876 -0
- data/CODE_OF_CONDUCT.md +77 -0
- data/Gemfile +21 -21
- data/History.txt +1 -678
- data/README.md +195 -53
- data/Rakefile +18 -12
- data/VERSION +1 -1
- data/bin/stripe-console +5 -3
- data/lib/stripe/api_operations/create.rb +3 -1
- data/lib/stripe/api_operations/delete.rb +26 -2
- data/lib/stripe/api_operations/list.rb +3 -12
- data/lib/stripe/api_operations/nested_resource.rb +72 -0
- data/lib/stripe/api_operations/request.rb +33 -15
- data/lib/stripe/api_operations/save.rb +18 -9
- data/lib/stripe/api_resource.rb +60 -10
- data/lib/stripe/connection_manager.rb +159 -0
- data/lib/stripe/error_object.rb +94 -0
- data/lib/stripe/errors.rb +39 -19
- data/lib/stripe/instrumentation.rb +82 -0
- data/lib/stripe/list_object.rb +54 -22
- data/lib/stripe/multipart_encoder.rb +131 -0
- data/lib/stripe/oauth.rb +22 -14
- data/lib/stripe/object_types.rb +96 -0
- data/lib/stripe/{account.rb → resources/account.rb} +72 -34
- data/lib/stripe/resources/account_link.rb +9 -0
- data/lib/stripe/resources/alipay_account.rb +34 -0
- data/lib/stripe/{apple_pay_domain.rb → resources/apple_pay_domain.rb} +4 -2
- data/lib/stripe/resources/application_fee.rb +13 -0
- data/lib/stripe/resources/application_fee_refund.rb +30 -0
- data/lib/stripe/{balance.rb → resources/balance.rb} +3 -1
- data/lib/stripe/{balance_transaction.rb → resources/balance_transaction.rb} +3 -5
- data/lib/stripe/resources/bank_account.rb +42 -0
- data/lib/stripe/{bitcoin_receiver.rb → resources/bitcoin_receiver.rb} +6 -5
- data/lib/stripe/resources/bitcoin_transaction.rb +15 -0
- data/lib/stripe/resources/capability.rb +33 -0
- data/lib/stripe/resources/card.rb +37 -0
- data/lib/stripe/resources/charge.rb +22 -0
- data/lib/stripe/resources/checkout/session.rb +12 -0
- data/lib/stripe/{country_spec.rb → resources/country_spec.rb} +3 -5
- data/lib/stripe/{coupon.rb → resources/coupon.rb} +4 -2
- data/lib/stripe/resources/credit_note.rb +32 -0
- data/lib/stripe/resources/credit_note_line_item.rb +7 -0
- data/lib/stripe/resources/customer.rb +35 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +30 -0
- data/lib/stripe/resources/discount.rb +7 -0
- data/lib/stripe/resources/dispute.rb +21 -0
- data/lib/stripe/resources/ephemeral_key.rb +19 -0
- data/lib/stripe/{event.rb → resources/event.rb} +3 -1
- data/lib/stripe/resources/exchange_rate.rb +9 -0
- data/lib/stripe/resources/file.rb +34 -0
- data/lib/stripe/resources/file_link.rb +11 -0
- data/lib/stripe/resources/invoice.rb +73 -0
- data/lib/stripe/{invoice_item.rb → resources/invoice_item.rb} +4 -2
- data/lib/stripe/{invoice_line_item.rb → resources/invoice_line_item.rb} +3 -1
- data/lib/stripe/resources/issuing/authorization.rb +33 -0
- data/lib/stripe/resources/issuing/card.rb +24 -0
- data/lib/stripe/resources/issuing/card_details.rb +9 -0
- data/lib/stripe/resources/issuing/cardholder.rb +13 -0
- data/lib/stripe/resources/issuing/dispute.rb +13 -0
- data/lib/stripe/resources/issuing/transaction.rb +12 -0
- data/lib/stripe/resources/login_link.rb +14 -0
- data/lib/stripe/resources/mandate.rb +7 -0
- data/lib/stripe/resources/order.rb +32 -0
- data/lib/stripe/{order_return.rb → resources/order_return.rb} +3 -5
- data/lib/stripe/resources/payment_intent.rb +42 -0
- data/lib/stripe/resources/payment_method.rb +32 -0
- data/lib/stripe/resources/payout.rb +22 -0
- data/lib/stripe/resources/person.rb +31 -0
- data/lib/stripe/{plan.rb → resources/plan.rb} +3 -1
- data/lib/stripe/{product.rb → resources/product.rb} +5 -3
- data/lib/stripe/resources/radar/early_fraud_warning.rb +11 -0
- data/lib/stripe/resources/radar/value_list.rb +14 -0
- data/lib/stripe/resources/radar/value_list_item.rb +13 -0
- data/lib/stripe/{recipient.rb → resources/recipient.rb} +5 -6
- data/lib/stripe/resources/recipient_transfer.rb +7 -0
- data/lib/stripe/{refund.rb → resources/refund.rb} +3 -1
- data/lib/stripe/resources/reporting/report_run.rb +12 -0
- data/lib/stripe/resources/reporting/report_type.rb +12 -0
- data/lib/stripe/resources/reversal.rb +29 -0
- data/lib/stripe/resources/review.rb +20 -0
- data/lib/stripe/resources/setup_intent.rb +32 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +15 -0
- data/lib/stripe/{sku.rb → resources/sku.rb} +5 -3
- data/lib/stripe/resources/source.rb +46 -0
- data/lib/stripe/resources/source_transaction.rb +7 -0
- data/lib/stripe/resources/subscription.rb +25 -0
- data/lib/stripe/resources/subscription_item.rb +25 -0
- data/lib/stripe/resources/subscription_schedule.rb +32 -0
- data/lib/stripe/resources/tax_id.rb +26 -0
- data/lib/stripe/resources/tax_rate.rb +11 -0
- data/lib/stripe/resources/terminal/connection_token.rb +11 -0
- data/lib/stripe/resources/terminal/location.rb +14 -0
- data/lib/stripe/resources/terminal/reader.rb +14 -0
- data/lib/stripe/{three_d_secure.rb → resources/three_d_secure.rb} +3 -1
- data/lib/stripe/{token.rb → resources/token.rb} +3 -1
- data/lib/stripe/resources/topup.rb +22 -0
- data/lib/stripe/resources/transfer.rb +26 -0
- data/lib/stripe/resources/usage_record.rb +7 -0
- data/lib/stripe/resources/usage_record_summary.rb +7 -0
- data/lib/stripe/resources/webhook_endpoint.rb +12 -0
- data/lib/stripe/resources.rb +79 -0
- data/lib/stripe/singleton_api_resource.rb +10 -4
- data/lib/stripe/stripe_client.rb +658 -337
- data/lib/stripe/stripe_object.rb +248 -126
- data/lib/stripe/stripe_response.rb +55 -21
- data/lib/stripe/util.rb +145 -187
- data/lib/stripe/version.rb +3 -1
- data/lib/stripe/webhook.rb +27 -16
- data/lib/stripe.rb +139 -90
- data/stripe.gemspec +26 -14
- data/test/openapi/README.md +9 -0
- data/test/stripe/account_link_test.rb +18 -0
- data/test/stripe/account_test.rb +311 -101
- data/test/stripe/alipay_account_test.rb +21 -1
- data/test/stripe/api_operations_test.rb +57 -8
- data/test/stripe/api_resource_test.rb +359 -271
- data/test/stripe/apple_pay_domain_test.rb +26 -11
- data/test/stripe/application_fee_refund_test.rb +10 -8
- data/test/stripe/application_fee_test.rb +49 -3
- data/test/stripe/balance_test.rb +4 -2
- data/test/stripe/balance_transaction_test.rb +20 -0
- data/test/stripe/bank_account_test.rb +11 -11
- data/test/stripe/capability_test.rb +45 -0
- data/test/stripe/charge_test.rb +25 -18
- data/test/stripe/checkout/session_test.rb +41 -0
- data/test/stripe/connection_manager_test.rb +163 -0
- data/test/stripe/country_spec_test.rb +6 -4
- data/test/stripe/coupon_test.rb +29 -10
- data/test/stripe/credit_note_test.rb +90 -0
- data/test/stripe/customer_balance_transaction_test.rb +37 -0
- data/test/stripe/customer_card_test.rb +13 -17
- data/test/stripe/customer_test.rb +161 -49
- data/test/stripe/dispute_test.rb +19 -8
- data/test/stripe/ephemeral_key_test.rb +23 -14
- data/test/stripe/errors_test.rb +32 -9
- data/test/stripe/exchange_rate_test.rb +20 -0
- data/test/stripe/file_link_test.rb +41 -0
- data/test/stripe/file_test.rb +87 -0
- data/test/stripe/instrumentation_test.rb +74 -0
- data/test/stripe/invoice_item_test.rb +31 -18
- data/test/stripe/invoice_line_item_test.rb +3 -1
- data/test/stripe/invoice_test.rb +158 -39
- data/test/stripe/issuing/authorization_test.rb +72 -0
- data/test/stripe/issuing/card_test.rb +62 -0
- data/test/stripe/issuing/cardholder_test.rb +53 -0
- data/test/stripe/issuing/dispute_test.rb +45 -0
- data/test/stripe/issuing/transaction_test.rb +48 -0
- data/test/stripe/list_object_test.rb +120 -88
- data/test/stripe/login_link_test.rb +16 -14
- data/test/stripe/mandate_test.rb +14 -0
- data/test/stripe/multipart_encoder_test.rb +130 -0
- data/test/stripe/oauth_test.rb +69 -50
- data/test/stripe/order_return_test.rb +7 -5
- data/test/stripe/order_test.rb +39 -14
- data/test/stripe/payment_intent_test.rb +107 -0
- data/test/stripe/payment_method_test.rb +84 -0
- data/test/stripe/payout_test.rb +18 -9
- data/test/stripe/person_test.rb +46 -0
- data/test/stripe/plan_test.rb +67 -19
- data/test/stripe/product_test.rb +28 -14
- data/test/stripe/radar/early_fraud_warning_test.rb +22 -0
- data/test/stripe/radar/value_list_item_test.rb +48 -0
- data/test/stripe/radar/value_list_test.rb +61 -0
- data/test/stripe/recipient_test.rb +27 -13
- data/test/stripe/refund_test.rb +11 -9
- data/test/stripe/reporting/report_run_test.rb +33 -0
- data/test/stripe/reporting/report_type_test.rb +22 -0
- data/test/stripe/reversal_test.rb +12 -10
- data/test/stripe/review_test.rb +27 -0
- data/test/stripe/setup_intent_test.rb +84 -0
- data/test/stripe/sigma/scheduled_query_run_test.rb +22 -0
- data/test/stripe/sku_test.rb +24 -12
- data/test/stripe/source_test.rb +70 -19
- data/test/stripe/stripe_client_test.rb +867 -326
- data/test/stripe/stripe_object_test.rb +284 -182
- data/test/stripe/stripe_response_test.rb +73 -24
- data/test/stripe/subscription_item_test.rb +47 -15
- data/test/stripe/subscription_schedule_test.rb +82 -0
- data/test/stripe/subscription_test.rb +41 -19
- data/test/stripe/tax_id_test.rb +31 -0
- data/test/stripe/tax_rate_test.rb +43 -0
- data/test/stripe/terminal/connection_token_test.rb +16 -0
- data/test/stripe/terminal/location_test.rb +68 -0
- data/test/stripe/terminal/reader_test.rb +62 -0
- data/test/stripe/three_d_secure_test.rb +4 -2
- data/test/stripe/topup_test.rb +62 -0
- data/test/stripe/transfer_test.rb +55 -8
- data/test/stripe/usage_record_summary_test.rb +29 -0
- data/test/stripe/util_test.rb +173 -84
- data/test/stripe/webhook_endpoint_test.rb +59 -0
- data/test/stripe/webhook_test.rb +21 -17
- data/test/stripe_mock.rb +78 -0
- data/test/stripe_test.rb +6 -15
- data/test/test_data.rb +28 -26
- data/test/test_helper.rb +48 -29
- metadata +183 -70
- data/lib/stripe/alipay_account.rb +0 -22
- data/lib/stripe/application_fee.rb +0 -22
- data/lib/stripe/application_fee_refund.rb +0 -20
- data/lib/stripe/bank_account.rb +0 -30
- data/lib/stripe/bitcoin_transaction.rb +0 -11
- data/lib/stripe/card.rb +0 -27
- data/lib/stripe/charge.rb +0 -82
- data/lib/stripe/customer.rb +0 -79
- data/lib/stripe/dispute.rb +0 -17
- data/lib/stripe/ephemeral_key.rb +0 -18
- data/lib/stripe/file_upload.rb +0 -33
- data/lib/stripe/invoice.rb +0 -29
- data/lib/stripe/login_link.rb +0 -9
- data/lib/stripe/order.rb +0 -29
- data/lib/stripe/payout.rb +0 -18
- data/lib/stripe/recipient_transfer.rb +0 -6
- data/lib/stripe/reversal.rb +0 -20
- data/lib/stripe/source.rb +0 -23
- data/lib/stripe/subscription.rb +0 -33
- data/lib/stripe/subscription_item.rb +0 -14
- data/lib/stripe/transfer.rb +0 -18
- data/test/api_stub_helpers.rb +0 -0
- data/test/stripe/bitcoin_receiver_test.rb +0 -67
- data/test/stripe/bitcoin_transaction_test.rb +0 -19
- data/test/stripe/file_upload_test.rb +0 -66
- data/test/stripe/recipient_card_test.rb +0 -44
data/CHANGELOG.md
ADDED
@@ -0,0 +1,876 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 5.16.0 - 2020-02-26
|
4
|
+
* [#906](https://github.com/stripe/stripe-ruby/pull/906) Add support for listing Checkout sessions
|
5
|
+
* [#903](https://github.com/stripe/stripe-ruby/pull/903) Upgrade to Rubocop 0.80
|
6
|
+
|
7
|
+
## 5.15.0 - 2020-02-10
|
8
|
+
* [#902](https://github.com/stripe/stripe-ruby/pull/902) Add `request_begin` instrumentation callback
|
9
|
+
|
10
|
+
## 5.14.0 - 2020-01-14
|
11
|
+
* [#896](https://github.com/stripe/stripe-ruby/pull/896) Add support for `CreditNoteLineItem`
|
12
|
+
* [#894](https://github.com/stripe/stripe-ruby/pull/894) Clean up test output by capturing `$stderr` when we expect warnings
|
13
|
+
* [#892](https://github.com/stripe/stripe-ruby/pull/892) Explicitly pass a parameter as hash to be more ruby 2.7 friendly
|
14
|
+
* [#893](https://github.com/stripe/stripe-ruby/pull/893) Upgrade Rubocop to 0.79
|
15
|
+
|
16
|
+
## 5.13.0 - 2020-01-08
|
17
|
+
* [#891](https://github.com/stripe/stripe-ruby/pull/891) Fix most Ruby 2.7 warnings
|
18
|
+
|
19
|
+
## 5.12.1 - 2020-01-06
|
20
|
+
* [#890](https://github.com/stripe/stripe-ruby/pull/890) Override API key with `client_secret` in `OAuth.token`
|
21
|
+
|
22
|
+
## 5.12.0 - 2020-01-02
|
23
|
+
* [#889](https://github.com/stripe/stripe-ruby/pull/889) Add support for retrieve source transaction API method
|
24
|
+
|
25
|
+
## 5.11.0 - 2019-11-26
|
26
|
+
* [#885](https://github.com/stripe/stripe-ruby/pull/885) Add support for `CreditNote` preview
|
27
|
+
|
28
|
+
## 5.10.0 - 2019-11-08
|
29
|
+
* [#882](https://github.com/stripe/stripe-ruby/pull/882) Add list_usage_record_summaries and list_source_transactions
|
30
|
+
|
31
|
+
## 5.9.0 - 2019-11-07
|
32
|
+
* [#870](https://github.com/stripe/stripe-ruby/pull/870) Add request instrumentation callback (see `README.md` for usage example)
|
33
|
+
|
34
|
+
## 5.8.0 - 2019-11-05
|
35
|
+
* [#879](https://github.com/stripe/stripe-ruby/pull/879) Add support for `Mandate`
|
36
|
+
* [#876](https://github.com/stripe/stripe-ruby/pull/876) Add additional per-request configuration documentation
|
37
|
+
* [#874](https://github.com/stripe/stripe-ruby/pull/874) Raise an error when requests params are invalid
|
38
|
+
* [#873](https://github.com/stripe/stripe-ruby/pull/873) Contributor Covenant
|
39
|
+
|
40
|
+
## 5.7.1 - 2019-10-15
|
41
|
+
* [#869](https://github.com/stripe/stripe-ruby/pull/869) Fixes the misnamed `connection_base=` setter to be named `connect_base=`
|
42
|
+
|
43
|
+
## 5.7.0 - 2019-10-10
|
44
|
+
* [#865](https://github.com/stripe/stripe-ruby/pull/865) Support backwards pagination with list's `#auto_paging_each`
|
45
|
+
|
46
|
+
## 5.6.0 - 2019-10-04
|
47
|
+
* [#861](https://github.com/stripe/stripe-ruby/pull/861) Nicer error when specifying non-nil non-string opt value
|
48
|
+
|
49
|
+
## 5.5.0 - 2019-10-03
|
50
|
+
* [#859](https://github.com/stripe/stripe-ruby/pull/859) User-friendly messages and retries for `EOFError`, `Errno::ECONNRESET`, `Errno::ETIMEDOUT`, and `Errno::EHOSTUNREACH` network errors
|
51
|
+
|
52
|
+
## 5.4.1 - 2019-10-01
|
53
|
+
* [#858](https://github.com/stripe/stripe-ruby/pull/858) Drop Timecop dependency
|
54
|
+
|
55
|
+
## 5.4.0 - 2019-10-01
|
56
|
+
* [#857](https://github.com/stripe/stripe-ruby/pull/857) Move to monotonic time for duration calculations
|
57
|
+
|
58
|
+
## 5.3.0 - 2019-10-01
|
59
|
+
* [#853](https://github.com/stripe/stripe-ruby/pull/853) Support `Stripe-Should-Retry` header
|
60
|
+
|
61
|
+
## 5.2.0 - 2019-09-19
|
62
|
+
* [#851](https://github.com/stripe/stripe-ruby/pull/851) Introduce system for garbage collecting connection managers
|
63
|
+
|
64
|
+
## 5.1.1 - 2019-09-04
|
65
|
+
* [#845](https://github.com/stripe/stripe-ruby/pull/845) Transfer the request_id from the http_headers to error.
|
66
|
+
|
67
|
+
## 5.1.0 - 2019-08-27
|
68
|
+
* [#841](https://github.com/stripe/stripe-ruby/pull/841) Retry requests on a 429 that's a lock timeout
|
69
|
+
|
70
|
+
## 5.0.1 - 2019-08-20
|
71
|
+
* [#836](https://github.com/stripe/stripe-ruby/pull/836) Increase connection keep alive timeout to 30 seconds
|
72
|
+
|
73
|
+
## 5.0.0 - 2019-08-20
|
74
|
+
Major version release. The [migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v5) contains a detailed list of backwards-incompatible changes with upgrade instructions.
|
75
|
+
|
76
|
+
Pull requests included in this release (cf. [#815](https://github.com/stripe/stripe-ruby/pull/815)) (⚠️ = breaking changes):
|
77
|
+
* ⚠️ [#813](https://github.com/stripe/stripe-ruby/pull/813): Convert library to use built-in `Net::HTTP`
|
78
|
+
* ⚠️ [#816](https://github.com/stripe/stripe-ruby/pull/816): Make `code` argument in `CardError` named instead of positional.
|
79
|
+
* ⚠️ [#817](https://github.com/stripe/stripe-ruby/pull/817): Drop support for very old Ruby versions.
|
80
|
+
* [#818](https://github.com/stripe/stripe-ruby/pull/818): Bump Rubocop to latest version
|
81
|
+
* [#819](https://github.com/stripe/stripe-ruby/pull/819): Ruby minimum version increase followup
|
82
|
+
* ⚠️ [#820](https://github.com/stripe/stripe-ruby/pull/820): Remove old deprecated methods
|
83
|
+
* ⚠️ [#823](https://github.com/stripe/stripe-ruby/pull/823): Remove all alias for list methods
|
84
|
+
* ⚠️ [#826](https://github.com/stripe/stripe-ruby/pull/826): Remove `UsageRecord.create` method
|
85
|
+
* ⚠️ [#827](https://github.com/stripe/stripe-ruby/pull/827): Remove `IssuerFraudRecord`
|
86
|
+
* [#811](https://github.com/stripe/stripe-ruby/pull/811): Add `ErrorObject` to `StripeError` exceptions
|
87
|
+
* [#828](https://github.com/stripe/stripe-ruby/pull/828): Tweak retry logic to be a little more like stripe-node
|
88
|
+
* [#829](https://github.com/stripe/stripe-ruby/pull/829): Reset connections when connection-changing configuration changes (optional)
|
89
|
+
* [#830](https://github.com/stripe/stripe-ruby/pull/830): Fix inverted sign for 500 retries
|
90
|
+
* ⚠️[#831](https://github.com/stripe/stripe-ruby/pull/831): Remove a few more very old deprecated methods
|
91
|
+
* [#832](https://github.com/stripe/stripe-ruby/pull/832): Minor cleanup in `StripeClient`
|
92
|
+
* [#833](https://github.com/stripe/stripe-ruby/pull/833): Do better bookkeeping when tracking state in `Thread.current`
|
93
|
+
* [#834](https://github.com/stripe/stripe-ruby/pull/834): Add `Invoice.list_upcoming_line_items` method
|
94
|
+
|
95
|
+
## 4.24.0 - 2019-08-12
|
96
|
+
* [#825](https://github.com/stripe/stripe-ruby/pull/825) Add `SubscriptionItem.create_usage_record` method
|
97
|
+
- This release also removed the `SubscriptionSchedule.revisions` method. This should have been included in the previous release (4.23.0)
|
98
|
+
|
99
|
+
## 4.23.0 - 2019-08-09
|
100
|
+
* [#824](https://github.com/stripe/stripe-ruby/pull/824) Remove SubscriptionScheduleRevision
|
101
|
+
- This is technically a breaking change. We've chosen to release it as a minor vesion bump because the associated API is unused.
|
102
|
+
|
103
|
+
## 4.22.1 - 2019-08-09
|
104
|
+
* [#808](https://github.com/stripe/stripe-ruby/pull/808) Unify request/response handling
|
105
|
+
|
106
|
+
## 4.22.0 - 2019-07-30
|
107
|
+
* [#821](https://github.com/stripe/stripe-ruby/pull/821) Listing `BalanceTransaction` objects now uses `/v1/balance_transactions` instead of `/v1/balance/history`
|
108
|
+
|
109
|
+
## 4.21.3 - 2019-07-15
|
110
|
+
* [#810](https://github.com/stripe/stripe-ruby/pull/810) Better error message when passing non-string to custom method
|
111
|
+
|
112
|
+
## 4.21.2 - 2019-07-05
|
113
|
+
* [#806](https://github.com/stripe/stripe-ruby/pull/806) Revert back to `initialize_from` from `Util.convert_to_stripe_object`
|
114
|
+
|
115
|
+
## 4.21.1 - 2019-07-04
|
116
|
+
* [#807](https://github.com/stripe/stripe-ruby/pull/807) Add gem metadata
|
117
|
+
|
118
|
+
## 4.21.0 - 2019-06-28
|
119
|
+
* [#803](https://github.com/stripe/stripe-ruby/pull/803) Add support for the `SetupIntent` resource and APIs
|
120
|
+
|
121
|
+
## 4.20.1 - 2019-06-28
|
122
|
+
* [#805](https://github.com/stripe/stripe-ruby/pull/805) Fix formatting in `ConnectionFailed` error message
|
123
|
+
|
124
|
+
## 4.20.0 - 2019-06-24
|
125
|
+
* [#800](https://github.com/stripe/stripe-ruby/pull/800) Enable request latency telemetry by default
|
126
|
+
|
127
|
+
## 4.19.0 - 2019-06-17
|
128
|
+
* [#770](https://github.com/stripe/stripe-ruby/pull/770) Add support for `CustomerBalanceTransaction` resource and APIs
|
129
|
+
|
130
|
+
## 4.18.1 - 2019-05-27
|
131
|
+
* [#789](https://github.com/stripe/stripe-ruby/pull/789) Allow `Order#pay` to be called without arguments
|
132
|
+
|
133
|
+
## 4.18.0 - 2019-05-23
|
134
|
+
* [#783](https://github.com/stripe/stripe-ruby/pull/783) Add support for `radar.early_fraud_warning` resource
|
135
|
+
|
136
|
+
## 4.17.0 - 2019-05-14
|
137
|
+
* [#779](https://github.com/stripe/stripe-ruby/pull/779) Add support for the Capability resource and APIs
|
138
|
+
|
139
|
+
## 4.16.0 - 2019-04-24
|
140
|
+
* [#760](https://github.com/stripe/stripe-ruby/pull/760) Add support for the `TaxRate` resource and APIs
|
141
|
+
|
142
|
+
## 4.15.0 - 2019-04-22
|
143
|
+
* [#762](https://github.com/stripe/stripe-ruby/pull/762) Add support for the `TaxId` resource and APIs
|
144
|
+
|
145
|
+
## 4.14.0 - 2019-04-18
|
146
|
+
* [#758](https://github.com/stripe/stripe-ruby/pull/758) Add support for the `CreditNote` resource and APIs
|
147
|
+
|
148
|
+
## 4.13.0 - 2019-04-16
|
149
|
+
* [#766](https://github.com/stripe/stripe-ruby/pull/766) Relax constraints on objects that we'll accept as a file (now they just need to respond to `#read`)
|
150
|
+
|
151
|
+
## 4.12.0 - 2019-04-02
|
152
|
+
* [#752](https://github.com/stripe/stripe-ruby/pull/752) Add `.delete` class method on deletable API resources
|
153
|
+
* [#754](https://github.com/stripe/stripe-ruby/pull/754) Add class methods for all custom API requests (e.g. `Charge.capture`)
|
154
|
+
|
155
|
+
## 4.11.0 - 2019-03-26
|
156
|
+
* [#753](https://github.com/stripe/stripe-ruby/pull/753) Add a global proxy configuration parameter
|
157
|
+
|
158
|
+
## 4.10.0 - 2019-03-18
|
159
|
+
* [#745](https://github.com/stripe/stripe-ruby/pull/745) Add support for the `PaymentMethod` resource and APIs
|
160
|
+
* [#747](https://github.com/stripe/stripe-ruby/pull/747) Add support for retrieving a Checkout `Session`
|
161
|
+
* [#748](https://github.com/stripe/stripe-ruby/pull/748) Add support for deleting a Terminal `Location` and `Reader`
|
162
|
+
|
163
|
+
## 4.9.1 - 2019-03-18
|
164
|
+
* [#750](https://github.com/stripe/stripe-ruby/pull/750) Catch error and warn if unable to remove a method
|
165
|
+
|
166
|
+
## 4.9.0 - 2019-02-12
|
167
|
+
* [#739](https://github.com/stripe/stripe-ruby/pull/739) Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision`
|
168
|
+
|
169
|
+
## 4.8.1 - 2019-02-11
|
170
|
+
* [#743](https://github.com/stripe/stripe-ruby/pull/743) Fix bug in file uploading introduced in #741
|
171
|
+
|
172
|
+
## 4.8.0 - 2019-02-03
|
173
|
+
* [#741](https://github.com/stripe/stripe-ruby/pull/741) Use `FaradayStripeEncoder` to encode all parameter styles
|
174
|
+
|
175
|
+
## 4.7.1 - 2019-02-01
|
176
|
+
* [#740](https://github.com/stripe/stripe-ruby/pull/740) Fix query encoding for integer-indexed maps
|
177
|
+
|
178
|
+
## 4.7.0 - 2019-01-23
|
179
|
+
* [#735](https://github.com/stripe/stripe-ruby/pull/735) Rename `CheckoutSession` to `Session` and move it under the `Checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach.
|
180
|
+
|
181
|
+
## 4.6.0 - 2019-01-21
|
182
|
+
* [#736](https://github.com/stripe/stripe-ruby/pull/736) Properly serialize `individual` on `Account` objects
|
183
|
+
|
184
|
+
## 4.5.0 - 2019-01-02
|
185
|
+
* [#719](https://github.com/stripe/stripe-ruby/pull/719) Generate OAuth authorize URLs for Express accounts as well as standard
|
186
|
+
|
187
|
+
## 4.4.1 - 2018-12-31
|
188
|
+
* [#718](https://github.com/stripe/stripe-ruby/pull/718) Fix an error message typo
|
189
|
+
|
190
|
+
## 4.4.0 - 2018-12-21
|
191
|
+
* [#716](https://github.com/stripe/stripe-ruby/pull/716) Add support for the `CheckoutSession` resource
|
192
|
+
|
193
|
+
## 4.3.0 - 2018-12-10
|
194
|
+
* [#711](https://github.com/stripe/stripe-ruby/pull/711) Add support for account links
|
195
|
+
|
196
|
+
## 4.2.0 - 2018-11-28
|
197
|
+
* [#705](https://github.com/stripe/stripe-ruby/pull/705) Add support for the `Review` APIs
|
198
|
+
|
199
|
+
## 4.1.0 - 2018-11-27
|
200
|
+
* [#695](https://github.com/stripe/stripe-ruby/pull/695) Add support for `ValueList` and `ValueListItem` for Radar
|
201
|
+
|
202
|
+
## 4.0.3 - 2018-11-19
|
203
|
+
* [#703](https://github.com/stripe/stripe-ruby/pull/703) Don't use `Net::HTTP::Persistent` on Windows where it's not well supported
|
204
|
+
|
205
|
+
## 4.0.2 - 2018-11-16
|
206
|
+
* [#701](https://github.com/stripe/stripe-ruby/pull/701) Require minimum Faraday 0.13 for proper support of persistent connections
|
207
|
+
|
208
|
+
## 4.0.1 - 2018-11-15
|
209
|
+
* [#699](https://github.com/stripe/stripe-ruby/pull/699) Only send telemetry if `Request-Id` was present in the response
|
210
|
+
|
211
|
+
## 4.0.0 - 2018-11-15
|
212
|
+
* [#698](https://github.com/stripe/stripe-ruby/pull/698) Use persistent connections by default through `Net::HTTP::Persistent`
|
213
|
+
* [#698](https://github.com/stripe/stripe-ruby/pull/698) Drop support for Ruby 2.0 (which we consider a breaking change here)
|
214
|
+
|
215
|
+
## 3.31.1 - 2018-11-12
|
216
|
+
* [#697](https://github.com/stripe/stripe-ruby/pull/697) Send telemetry in milliseconds specifically
|
217
|
+
|
218
|
+
## 3.31.0 - 2018-11-12
|
219
|
+
* [#696](https://github.com/stripe/stripe-ruby/pull/696) Add configurable telemetry to gather information on client-side request latency
|
220
|
+
|
221
|
+
## 3.30.0 - 2018-11-08
|
222
|
+
* [#693](https://github.com/stripe/stripe-ruby/pull/693) Add new API endpoints for the `Invoice` resource.
|
223
|
+
|
224
|
+
## 3.29.0 - 2018-10-30
|
225
|
+
* [#692](https://github.com/stripe/stripe-ruby/pull/692) Add support for the `Person` resource
|
226
|
+
* [#694](https://github.com/stripe/stripe-ruby/pull/694) Add support for the `WebhookEndpoint` resource
|
227
|
+
|
228
|
+
## 3.28.0 - 2018-09-24
|
229
|
+
* [#690](https://github.com/stripe/stripe-ruby/pull/690) Add support for Stripe Terminal
|
230
|
+
|
231
|
+
## 3.27.0 - 2018-09-24
|
232
|
+
* [#689](https://github.com/stripe/stripe-ruby/pull/689) Rename `FileUpload` to `File`
|
233
|
+
|
234
|
+
## 3.26.1 - 2018-09-14
|
235
|
+
* [#688](https://github.com/stripe/stripe-ruby/pull/688) Fix hash equality on `StripeObject`
|
236
|
+
|
237
|
+
## 3.26.0 - 2018-09-05
|
238
|
+
* [#681](https://github.com/stripe/stripe-ruby/pull/681) Add support for reporting resources
|
239
|
+
|
240
|
+
## 3.25.0 - 2018-08-28
|
241
|
+
* [#678](https://github.com/stripe/stripe-ruby/pull/678) Allow payment intent `#cancel`, `#capture`, and `#confirm` to take their own parameters
|
242
|
+
|
243
|
+
## 3.24.0 - 2018-08-27
|
244
|
+
* [#675](https://github.com/stripe/stripe-ruby/pull/675) Remove support for `BitcoinReceiver` write-actions
|
245
|
+
|
246
|
+
## 3.23.0 - 2018-08-23
|
247
|
+
* [#676](https://github.com/stripe/stripe-ruby/pull/676) Add support for usage record summaries
|
248
|
+
|
249
|
+
## 3.22.0 - 2018-08-15
|
250
|
+
* [#674](https://github.com/stripe/stripe-ruby/pull/674) Use integer-indexed encoding for all arrays
|
251
|
+
|
252
|
+
## 3.21.0 - 2018-08-03
|
253
|
+
* [#671](https://github.com/stripe/stripe-ruby/pull/671) Add cancel support for topups
|
254
|
+
|
255
|
+
## 3.20.0 - 2018-08-03
|
256
|
+
* [#669](https://github.com/stripe/stripe-ruby/pull/669) Add support for file links
|
257
|
+
|
258
|
+
## 3.19.0 - 2018-07-27
|
259
|
+
* [#666](https://github.com/stripe/stripe-ruby/pull/666) Add support for scheduled query runs (`Stripe::Sigma::ScheduledQueryRun`) for Sigma
|
260
|
+
|
261
|
+
## 3.18.0 - 2018-07-26
|
262
|
+
* [#665](https://github.com/stripe/stripe-ruby/pull/665) Add support for Stripe Issuing
|
263
|
+
|
264
|
+
## 3.17.2 - 2018-07-19
|
265
|
+
* [#664](https://github.com/stripe/stripe-ruby/pull/664) Don't colorize log output being sent to a configured logger
|
266
|
+
|
267
|
+
## 3.17.1 - 2018-07-19
|
268
|
+
* [#663](https://github.com/stripe/stripe-ruby/pull/663) Internal improvements to `ApiResource.class_url`
|
269
|
+
|
270
|
+
## 3.17.0 - 2018-06-28
|
271
|
+
* [#658](https://github.com/stripe/stripe-ruby/pull/658) Add support for `partner_id` from `Stripe.set_app_info`
|
272
|
+
|
273
|
+
## 3.16.0 - 2018-06-28
|
274
|
+
* [#657](https://github.com/stripe/stripe-ruby/pull/657) Add support for payment intents
|
275
|
+
|
276
|
+
## 3.15.0 - 2018-05-10
|
277
|
+
* [#649](https://github.com/stripe/stripe-ruby/pull/649) Freeze all string literals
|
278
|
+
|
279
|
+
## 3.14.0 - 2018-05-09
|
280
|
+
* [#645](https://github.com/stripe/stripe-ruby/pull/645) Add support for issuer fraud records
|
281
|
+
|
282
|
+
## 3.13.1 - 2018-05-07
|
283
|
+
* [#647](https://github.com/stripe/stripe-ruby/pull/647) Merge query parameters coming from path with `params` argument
|
284
|
+
|
285
|
+
## 3.13.0 - 2018-04-11
|
286
|
+
* [#498](https://github.com/stripe/stripe-ruby/pull/498) Add support for flexible billing primitives
|
287
|
+
|
288
|
+
## 3.12.1 - 2018-04-05
|
289
|
+
* [#636](https://github.com/stripe/stripe-ruby/pull/636) Fix a warning for uninitialized instance variable `@additive_params`
|
290
|
+
|
291
|
+
## 3.12.0 - 2018-04-05
|
292
|
+
* [#632](https://github.com/stripe/stripe-ruby/pull/632) Introduce `additive_object_param` so that non-`metadata` subobjects don't zero their keys as they're being replaced
|
293
|
+
|
294
|
+
## 3.11.0 - 2018-02-26
|
295
|
+
* [#628](https://github.com/stripe/stripe-ruby/pull/628) Add support for `code` attribute on all Stripe exceptions
|
296
|
+
|
297
|
+
## 3.10.0 - 2018-02-21
|
298
|
+
* [#627](https://github.com/stripe/stripe-ruby/pull/627) Add support for topups
|
299
|
+
|
300
|
+
## 3.9.2 - 2018-02-12
|
301
|
+
* [#625](https://github.com/stripe/stripe-ruby/pull/625) Skip calling `to_hash` for `nil`
|
302
|
+
|
303
|
+
## 3.9.1 - 2017-12-15
|
304
|
+
* [#616](https://github.com/stripe/stripe-ruby/pull/616) Support all file-like objects for uploads with duck typed checks on `path` and `read` (we previously whitelisted only certain classes)
|
305
|
+
|
306
|
+
## 3.9.0 - 2017-12-08
|
307
|
+
* [#613](https://github.com/stripe/stripe-ruby/pull/613) Introduce new `IdempotencyError` type for idempotency-specific failures
|
308
|
+
|
309
|
+
## 3.8.2 - 2017-12-07
|
310
|
+
* [#612](https://github.com/stripe/stripe-ruby/pull/612) Fix integer-indexed array encoding when sent as query parameter (subscription items can now be used when fetching an upcoming invoice)
|
311
|
+
|
312
|
+
## 3.8.1 - 2017-12-06
|
313
|
+
* [#611](https://github.com/stripe/stripe-ruby/pull/611) Support `Tempfile` (as well as `File`) in file uploads
|
314
|
+
|
315
|
+
## 3.8.0 - 2017-10-31
|
316
|
+
* [#606](https://github.com/stripe/stripe-ruby/pull/606) Support for exchange rates APIs
|
317
|
+
|
318
|
+
## 3.7.0 - 2017-10-26
|
319
|
+
* [#603](https://github.com/stripe/stripe-ruby/pull/603) Support for listing source transactions
|
320
|
+
|
321
|
+
## 3.6.0 - 2017-10-17
|
322
|
+
* [#597](https://github.com/stripe/stripe-ruby/pull/597) Add static methods to manipulate resources from parent
|
323
|
+
* `Account` gains methods for external accounts and login links (e.g. `.create_account`, `create_login_link`)
|
324
|
+
* `ApplicationFee` gains methods for refunds
|
325
|
+
* `Customer` gains methods for sources
|
326
|
+
* `Transfer` gains methods for reversals
|
327
|
+
|
328
|
+
## 3.5.3 - 2017-10-16
|
329
|
+
* [#594](https://github.com/stripe/stripe-ruby/pull/594) Make sure that `StripeObject`'s `#deep_copy` maintains original class
|
330
|
+
* [#595](https://github.com/stripe/stripe-ruby/pull/595) Allow `Object#method` to be called on `StripeObject` even if it conflicts with an accessor
|
331
|
+
* [#596](https://github.com/stripe/stripe-ruby/pull/596) Encode arrays as integer-indexed hashes where appropriate
|
332
|
+
* [#598](https://github.com/stripe/stripe-ruby/pull/598) Don't persist `idempotency_key` opt between requests
|
333
|
+
|
334
|
+
## 3.5.2 - 2017-10-13
|
335
|
+
* [#592](https://github.com/stripe/stripe-ruby/pull/592) Bring back `Marshal.dump/load` support with custom marshal encoder/decoder
|
336
|
+
|
337
|
+
## 3.5.1 - 2017-10-12
|
338
|
+
* [#591](https://github.com/stripe/stripe-ruby/pull/591) Use thread-local `StripeClient` instances for thread safety
|
339
|
+
|
340
|
+
## 3.5.0 - 2017-10-11
|
341
|
+
* [#589](https://github.com/stripe/stripe-ruby/pull/589) Rename source `delete` to `detach` (and deprecate the former)
|
342
|
+
|
343
|
+
## 3.4.1 - 2017-10-05
|
344
|
+
* [#586](https://github.com/stripe/stripe-ruby/pull/586) Log query strings as well as form bodies with STRIPE_LOG
|
345
|
+
* [#588](https://github.com/stripe/stripe-ruby/pull/588) Require minimum Faraday 0.10 for bug fix in parameter encoding
|
346
|
+
|
347
|
+
## 3.4.0 - 2017-09-20
|
348
|
+
* Mark legacy Bitcoin API as deprecated, and remove corresponding tests
|
349
|
+
* Mark recipients API as deprecated, and remove recipient card tests
|
350
|
+
|
351
|
+
## 3.3.2 - 2017-09-20
|
352
|
+
* Correct minimum required Ruby version in gemspec (it's 2.0.0)
|
353
|
+
|
354
|
+
## 3.3.1 - 2017-08-18
|
355
|
+
* Only parse webhook payload after verification to decrease likelihood of
|
356
|
+
attack
|
357
|
+
|
358
|
+
## 3.3.0 - 2017-08-11
|
359
|
+
* Add support for standard library logger interface with `Stripe.logger`
|
360
|
+
* Error logs now go to stderr if using `Stripe.log_level`/`STRIPE_LOG`
|
361
|
+
* `Stripe.log_level`/`STRIPE_LOG` now support `Stipe::LEVEL_ERROR`
|
362
|
+
|
363
|
+
## 3.2.0 - 2017-08-03
|
364
|
+
* Add logging for request retry account and `Stripe-Account` header
|
365
|
+
|
366
|
+
## 3.1.0 - 2017-08-03
|
367
|
+
* Implement request logging with `Stripe.log_level` and `STRIPE_LOG`
|
368
|
+
|
369
|
+
## 3.0.3 - 2017-07-28
|
370
|
+
* Revert `nil` to empty string coercion from 3.0.2
|
371
|
+
* Handle `invalid_client` OAuth error code
|
372
|
+
* Improve safety of error handling logic safer for unrecognized OAuth error codes
|
373
|
+
|
374
|
+
## 3.0.2 - 2017-07-12
|
375
|
+
**Important:** This version is non-functional and has been yanked in favor of 3.0.3.
|
376
|
+
* Convert `nil` to empty string when serializing parameters (instead of opaquely dropping it) -- NOTE: this change has since been reverted
|
377
|
+
|
378
|
+
## 3.0.1 - 2017-07-11
|
379
|
+
* Properties set with an API resource will now serialize that resource's ID if possible
|
380
|
+
* API resources will throw an ArgumentError on save if a property has been with an API resource that cannot be serialized
|
381
|
+
|
382
|
+
## 3.0.0 - 2017-06-27
|
383
|
+
* `#pay` on invoice now takes params as well as opts
|
384
|
+
|
385
|
+
## 2.12.0 - 2017-06-20
|
386
|
+
* Add support for ephemeral keys
|
387
|
+
|
388
|
+
## 2.11.0 - 2017-05-26
|
389
|
+
* Warn when keys that look like opts are included as parameters
|
390
|
+
|
391
|
+
## 2.10.0 - 2017-05-25
|
392
|
+
* Add support for account login links
|
393
|
+
|
394
|
+
## 2.9.0 - 2017-05-18
|
395
|
+
* Support for OAuth operations in `Stripe::OAuth`
|
396
|
+
|
397
|
+
## 2.8.0 - 2017-04-28
|
398
|
+
* Support for checking webhook signatures
|
399
|
+
|
400
|
+
## 2.7.0 - 2017-04-26
|
401
|
+
* Add model `InvoiceLineItem`
|
402
|
+
|
403
|
+
## 2.6.0 - 2017-04-26
|
404
|
+
* Add `OBJECT_NAME` constants to all API resources
|
405
|
+
|
406
|
+
## 2.5.0 - 2017-04-24
|
407
|
+
* Make `opts` argument in `Util.convert_to_stripe_object` optional
|
408
|
+
|
409
|
+
## 2.4.0 - 2017-04-18
|
410
|
+
* Add `Stripe.set_app_info` for use by plugin creators
|
411
|
+
|
412
|
+
## 2.3.0 - 2017-04-14
|
413
|
+
* Add question mark accessor when assigning boolean value to undefined field
|
414
|
+
|
415
|
+
## 2.2.1 - 2017-04-07
|
416
|
+
* Declare minimum required Faraday as 0.9
|
417
|
+
|
418
|
+
## 2.2.0 - 2017-04-06
|
419
|
+
* Add support for payouts and recipient transfers
|
420
|
+
|
421
|
+
## 2.1.0 - 2017-03-17
|
422
|
+
* Support for detaching sources from customers
|
423
|
+
|
424
|
+
## 2.0.3 - 2017-03-16
|
425
|
+
* Fix marshalling of `StripeObjects` that have an embedded client
|
426
|
+
|
427
|
+
## 2.0.2 - 2017-03-16
|
428
|
+
* Fix bad field reference when recovering from a JSON parsing problem
|
429
|
+
|
430
|
+
## 2.0.1 - 2017-02-22
|
431
|
+
* Fix multipart parameter encoding to repair broken file uploads
|
432
|
+
|
433
|
+
## 2.0.0 - 2017-02-14
|
434
|
+
* Drop support for Ruby 1.9
|
435
|
+
* Allow HTTP client that makes Stripe calls to be configured via Faraday
|
436
|
+
* Drop RestClient
|
437
|
+
* Switch to OpenAPI 2.0 spec and generated fixtures in test suite
|
438
|
+
* Switch to Webmock in test suite
|
439
|
+
|
440
|
+
## 1.58.0 - 2017-01-19
|
441
|
+
* Remove erroneously added list methods for `Source` model
|
442
|
+
|
443
|
+
## 1.57.1 - 2016-11-28
|
444
|
+
* Disallow sending protected fields along with API resource `.update`
|
445
|
+
|
446
|
+
## 1.57.0 - 2016-11-21
|
447
|
+
* Add retrieve method for 3-D Secure resources
|
448
|
+
|
449
|
+
## 1.56.2 - 2016-11-17
|
450
|
+
* Improve `StripeObject`'s `#to_s` to better handle how embedded objects are displayed
|
451
|
+
|
452
|
+
## 1.56.1 - 2016-11-09
|
453
|
+
* Fix (fairly serious) memory like in `StripeObject`
|
454
|
+
|
455
|
+
## 1.56.0 - 2016-10-24
|
456
|
+
* Add accessors for new fields added in `#update_attributes`
|
457
|
+
* Handle multi-plan subscriptions through new subscription items
|
458
|
+
* Handle 403 status codes from the API
|
459
|
+
|
460
|
+
## 1.55.1 - 2016-10-24
|
461
|
+
Identical to 1.56.0 above. I incorrectly cut a patch-level release.
|
462
|
+
|
463
|
+
## 1.55.0 - 2016-09-15
|
464
|
+
* Add support for Apple Pay domains
|
465
|
+
|
466
|
+
## 1.54.0 - 2016-09-01
|
467
|
+
* Whitelist errors that should be retried; scope to known socket and HTTP errors
|
468
|
+
|
469
|
+
## 1.53.0 - 2016-08-31
|
470
|
+
* Relax version constraint on rest-client (and by extension mime-types) for users on Ruby 2+
|
471
|
+
|
472
|
+
## 1.52.0 - 2016-08-30
|
473
|
+
* Make sure `Subscription`'s `source` is saved with its parent
|
474
|
+
|
475
|
+
## 1.51.1 - 2016-08-30
|
476
|
+
* Make sure `Account`'s `external_account` is saved with its parent
|
477
|
+
|
478
|
+
## 1.51.0 - 2016-08-26
|
479
|
+
* Error when an array of maps is detected that cannot be accurately encoded
|
480
|
+
* Start using strings for header names instead of symbols for better clarity
|
481
|
+
|
482
|
+
## 1.50.1 - 2016-08-25
|
483
|
+
* Fix encoding of arrays of maps where maps unequal sets of keys
|
484
|
+
|
485
|
+
## 1.50.0 - 2016-08-15
|
486
|
+
* Allow sources to be created
|
487
|
+
|
488
|
+
## 1.49.0 - 2016-07-28
|
489
|
+
* Add top-level `Source` model
|
490
|
+
|
491
|
+
## 1.48.0 - 2016-07-12
|
492
|
+
* Add `ThreeDSecure` model for 3-D secure payments
|
493
|
+
|
494
|
+
## 1.47.0 - 2016-07-11
|
495
|
+
* Allow rest-client version 2.0+ to be used with the gem
|
496
|
+
|
497
|
+
## 1.46.0 - 2016-07-07
|
498
|
+
* Allow retry when a 409 conflict is encountered
|
499
|
+
|
500
|
+
## 1.45.0 - 2016-07-07
|
501
|
+
* Do not send subresources when updating except when explicitly told to do so (see #433)
|
502
|
+
|
503
|
+
## 1.44.0 - 2016-06-29
|
504
|
+
* Add `update` class method to all resources that can be updated
|
505
|
+
|
506
|
+
## 1.43.1 - 2016-06-17
|
507
|
+
* Fix type of resource returned from `Order#return_order`
|
508
|
+
|
509
|
+
## 1.43.0 - 2016-05-20
|
510
|
+
* Allow Relay orders to be returned and add associated types
|
511
|
+
* Support Alipay account retrieval and deletion
|
512
|
+
|
513
|
+
## 1.42.0 - 2016-05-04
|
514
|
+
* Add support for the new /v1/subscriptions endpoint (retrieve, list, create, update, and delete)
|
515
|
+
|
516
|
+
## 1.41.0 - 2016-04-13
|
517
|
+
* Add global `stripe_account` option that adds a `Stripe-Account` header to all requests
|
518
|
+
|
519
|
+
## 1.40.0 - 2016-04-06
|
520
|
+
* Fix bug that omitted subresources from serialization
|
521
|
+
|
522
|
+
## 1.39.0 - 2016-03-31
|
523
|
+
* Update CA cert bundle for compatibility with OpenSSL versions below 1.0.1
|
524
|
+
|
525
|
+
## 1.38.0 - 2016-03-18
|
526
|
+
* Allow `opts` to be passed to an API resource's `#save` method
|
527
|
+
|
528
|
+
## 1.37.0 - 2016-03-14
|
529
|
+
* Add `Account#reject` to support the new API feature
|
530
|
+
|
531
|
+
## 1.36.2 - 2016-03-14
|
532
|
+
* Fix reference to non-existent `#url` in `ListObject`
|
533
|
+
|
534
|
+
## 1.36.1 - 2016-03-04
|
535
|
+
* Fix serialization when subhash given to `#save` or `#update_attributes`
|
536
|
+
|
537
|
+
## 1.36.0 - 2016-02-08
|
538
|
+
* Add `CountrySpec` model for looking up country payment information
|
539
|
+
|
540
|
+
## 1.35.1 - 2016-02-03
|
541
|
+
* Add compatibility layer for old API versions on `Charge#refund`
|
542
|
+
|
543
|
+
## 1.35.0 - 2016-02-01
|
544
|
+
* Allow CA cert bundle location to be configured
|
545
|
+
* Updated bundled CA certs
|
546
|
+
|
547
|
+
## 1.34.0 - 2016-01-25
|
548
|
+
* Add support for deleting products and SKUs
|
549
|
+
|
550
|
+
## 1.33.1 - 2016-01-21
|
551
|
+
* Pass through arguments of `Charge#refund`
|
552
|
+
|
553
|
+
## 1.33.0 - 2016-01-19
|
554
|
+
* Re-implement `Charge#refund` helper to use the modern endpoint suggested by docs
|
555
|
+
|
556
|
+
## 1.32.1 - 2016-01-07
|
557
|
+
* Fix bug where ivar left uninitialized in StripeObject could error on serialization
|
558
|
+
* Fix bug where a nil customer from API could error Bitcoin model on refresh
|
559
|
+
|
560
|
+
## 1.32.0 - 2016-01-05
|
561
|
+
* Add configuration to optionally retry network failures
|
562
|
+
* Use modern API endpoint for producing application fee refunds
|
563
|
+
|
564
|
+
## 1.31.0 - 2015-10-29
|
565
|
+
* Add BankAccount#verify convenience method
|
566
|
+
|
567
|
+
## 1.30.3 - 2015-10-28
|
568
|
+
* Fix bug where arrays that were not `additional_owners` were not properly encoded for requests
|
569
|
+
|
570
|
+
## 1.30.2 - 2015-10-12
|
571
|
+
* Fix bug where `opts` didn't properly propagate to descendant `StripeObjects`
|
572
|
+
|
573
|
+
## 1.30.1 - 2015-10-10
|
574
|
+
* Fix bug that prevent lists of hashes from being URI-encoded properly
|
575
|
+
* Fix bug where filter conditions were not making it past the first instantiated `ListObject`
|
576
|
+
|
577
|
+
## 1.30.0 - 2015-10-09
|
578
|
+
* Add `StripeObject#deleted?` for a reliable way to check whether an object is alive
|
579
|
+
* Deprecate `StripeObject#refresh_from`
|
580
|
+
* New parameter encoding scheme that doesn't use `URI.escape`
|
581
|
+
|
582
|
+
## 1.29.1 - 2015-10-06
|
583
|
+
* Fix bug where ampersands were not being properly encoded
|
584
|
+
|
585
|
+
## 1.29.0 - 2015-10-05
|
586
|
+
* Add pagination helpers `#auto_paging_each`, `#previous_page`, and `#next_page`
|
587
|
+
|
588
|
+
## 1.28.1 - 2015-10-05
|
589
|
+
* Fix URI being referenced by file upload resources
|
590
|
+
|
591
|
+
## 1.28.0 - 2015-10-05
|
592
|
+
* Make StripeObject's #save "upsert"-like; creates an object if new
|
593
|
+
* Add #update_attributes to StripeObject for safe mass assignment
|
594
|
+
* Properly mass assign attributes on calls to #save
|
595
|
+
* Add question mark helpers for boolean fields (e.g. #paid? as well as old #paid)
|
596
|
+
* Fix a bug that broke the API for StripeObject initialization
|
597
|
+
* Remove use of deprecated URI.escape
|
598
|
+
|
599
|
+
## 1.27.2 - 2015-09-25
|
600
|
+
* Correct the URLs used to fetch Bitcoin transactions.
|
601
|
+
|
602
|
+
## 1.27.1 - 2015-09-20
|
603
|
+
* Use hash rockets for backwards compatibility.
|
604
|
+
|
605
|
+
## 1.27.0 - 2015-09-14
|
606
|
+
* Add Orders, Products, and SKUs for Relay
|
607
|
+
|
608
|
+
## 1.26.0 - 2015-09-11
|
609
|
+
* Add support for 429 Rate Limited response
|
610
|
+
|
611
|
+
## 1.25.0 - 2015-08-17
|
612
|
+
* Added support for refund listing and retrieval without an associated charge
|
613
|
+
|
614
|
+
## 1.24.0 - 2015-08-03
|
615
|
+
* Added support for deleting managed accounts
|
616
|
+
* Added support for dispute listing and retrieval
|
617
|
+
* Bugfix: token objects now are the correct class
|
618
|
+
|
619
|
+
## 1.23.0 - 2015-07-06
|
620
|
+
* Added request IDs and HTTP headers to errors
|
621
|
+
|
622
|
+
## 1.22.0 - 2015-06-10
|
623
|
+
* Added support for bank accounts and debit cards in managed accounts (via the `external_accounts` param)
|
624
|
+
|
625
|
+
## 1.21.0 - 2015-04-14
|
626
|
+
* Remove TLS cert revocation check (all pre-heartbleed certs have expired)
|
627
|
+
* Bugfix: don't unset keys when they don't exist on StripeObject
|
628
|
+
|
629
|
+
## 1.20.4 - 2015-03-26
|
630
|
+
* Raise an error when explicitly passing nil as the API key on resource methods
|
631
|
+
* Fix error when passing an API key to Balance.retrieve (github issue #232)
|
632
|
+
|
633
|
+
## 1.20.3 - 2015-03-13
|
634
|
+
* Fixed error when updating certain resources (github issue #224)
|
635
|
+
|
636
|
+
## 1.20.2 - 2015-03-10
|
637
|
+
* Added support for updating nested hashes besides `metadata` (which was already supported)
|
638
|
+
* Fixed bug in balance retrieval
|
639
|
+
|
640
|
+
## 1.20.1 - 2015-02-26
|
641
|
+
* Updated Card to point to customer sources endpoint when customer property is set
|
642
|
+
|
643
|
+
## 1.20.0 - 2015-02-19
|
644
|
+
* Added Update & Delete operations to Bitcoin Receivers
|
645
|
+
|
646
|
+
## 1.19.1 - 2015-02-18
|
647
|
+
* Fixed fetching upcoming invoice/paying invoice methods
|
648
|
+
|
649
|
+
## 1.19.0 - 2015-02-15
|
650
|
+
* Support for new Transfers /reversals endpoint
|
651
|
+
* Account retrieval now optionally accepts an account ID
|
652
|
+
* Better support for passing custom headers, like Stripe-Account, through requests
|
653
|
+
|
654
|
+
## 1.18.0 - 2015-01-21
|
655
|
+
* 1 major enhancement:
|
656
|
+
* Added support for making bitcoin charges through BitcoinReceiver source object
|
657
|
+
|
658
|
+
## 1.17.3 - 2015-01-12
|
659
|
+
* 1 bugfix:
|
660
|
+
* Fixed API key propagation for ApplicationFee#refund
|
661
|
+
|
662
|
+
## 1.17.2 - 2015-01-08
|
663
|
+
* 1 bugfix:
|
664
|
+
* Fixed API key propagation for child resources
|
665
|
+
|
666
|
+
## 1.17.1 - 2015-01-07
|
667
|
+
* 2 minor enhacements:
|
668
|
+
* Fixed dependencies for Ruby versions less than 1.9.3
|
669
|
+
* Added deauthorize method to Account object
|
670
|
+
|
671
|
+
## 1.17.0 - 2014-12-15
|
672
|
+
* 1 major enhacement:
|
673
|
+
* File uploads resource was added (for uploading pdf or image documents for disputes)
|
674
|
+
|
675
|
+
## 1.16.1 - 2014-12-19
|
676
|
+
* 2 minor enhancements:
|
677
|
+
* Ability to send idempotent requests
|
678
|
+
* Ability to specify stripe account as a header
|
679
|
+
|
680
|
+
## 1.16.0 - 2014-10-08
|
681
|
+
* 1 minor enhacement:
|
682
|
+
* Coupons now support update operations - useful for manipulating metadata
|
683
|
+
|
684
|
+
## 1.15.0 - 2014-07-26
|
685
|
+
* 1 major enhacement:
|
686
|
+
* Application Fee refunds now a list instead of array
|
687
|
+
|
688
|
+
## 1.14.0 - 2014-06-17
|
689
|
+
* 1 major enhancement:
|
690
|
+
* Add metadata for refunds and disputes
|
691
|
+
|
692
|
+
## 1.13.0 - 2014-05-28
|
693
|
+
* 1 major enhancement:
|
694
|
+
* Support for canceling transfers
|
695
|
+
|
696
|
+
## 1.12.0 - 2014-05-21
|
697
|
+
* 1 major enhancement:
|
698
|
+
* Support for cards for recipients
|
699
|
+
|
700
|
+
## 1.11.0 - 2014-04-09
|
701
|
+
* 2 minor enhancements:
|
702
|
+
* Update included ca bundles
|
703
|
+
* Implement certificate blacklisting
|
704
|
+
|
705
|
+
## 1.10.2 - 2014-02-18
|
706
|
+
* 1 minor enhancement:
|
707
|
+
* Add create_subscription on Customer resources, so you can create
|
708
|
+
subscriptions without needing to retrieve the customer first (github
|
709
|
+
issue #120)
|
710
|
+
|
711
|
+
## 1.10.1 - 2014-02-03
|
712
|
+
* 1 bugfix:
|
713
|
+
* Fix marshaling of StripeObjects
|
714
|
+
|
715
|
+
## 1.10.0 - 2014-01-29
|
716
|
+
* 2 major enhancements
|
717
|
+
* Support for multiple subscriptions per customer
|
718
|
+
* Testing ruby 2.1.0
|
719
|
+
|
720
|
+
* 2 minor enhancements
|
721
|
+
* Replace multi_json with json
|
722
|
+
* Allow #save to take opts (for :expand)
|
723
|
+
|
724
|
+
* 1 bugfix
|
725
|
+
* Fix #try and #respond_to? on StripeObjects
|
726
|
+
|
727
|
+
## 1.9.9 - 2013-12-02
|
728
|
+
* 1 major enhancement
|
729
|
+
* Add ApplicationFee resource
|
730
|
+
|
731
|
+
## 1.8.9 - 2013-11-14
|
732
|
+
* 2 bugfixes:
|
733
|
+
* Fix gemspec dependencies so the gem doesn't break for Ruby 1.8 users
|
734
|
+
* Fix api_resource_test to not use returns as a way of testing rescue behavior
|
735
|
+
|
736
|
+
## 1.8.8 - 2013-10-3
|
737
|
+
* 1 major enhancement
|
738
|
+
* Add support for metadata on resources
|
739
|
+
|
740
|
+
## 1.8.7 - 2013-08-18
|
741
|
+
* 1 minor enhancement
|
742
|
+
* Add support for closing disputes.
|
743
|
+
|
744
|
+
## 1.8.6 - 2013-08-13
|
745
|
+
* 1 major enhancement
|
746
|
+
* Add Balance and BalanceTransaction resources
|
747
|
+
|
748
|
+
## 1.8.5 - 2013-08-12
|
749
|
+
* 1 major enhancement
|
750
|
+
* Add support for unsetting attributes by setting to nil. This permits unsetting email and description on customers and description on charges. Setting properties to a blank string is now an error.
|
751
|
+
* Attempting to set an object's id is now an error
|
752
|
+
|
753
|
+
## 1.8.4 - 2013-07-11
|
754
|
+
* 1 major enhancement
|
755
|
+
* Add support for new cards API (Stripe API version - 2013-07-05)
|
756
|
+
|
757
|
+
## 1.8.3 - 2013-05-06
|
758
|
+
* 1 bugfix:
|
759
|
+
* Fix handling of per-call API keys (github issue #67)
|
760
|
+
|
761
|
+
## 1.8.2 - 2013-05-01
|
762
|
+
* 3 minor enhancements:
|
763
|
+
* Use to_sym instead of type checking for minor performance improvement (github issue #59)
|
764
|
+
* Handle low-memory situations without throwing an exception (github issue #61)
|
765
|
+
* Add an Customer#upcoming_invoice convenience method (github issue #65)
|
766
|
+
|
767
|
+
* 1 bugfix:
|
768
|
+
* Allow updating resources without first retrieving them (github issue #60)
|
769
|
+
|
770
|
+
## 1.8.1 - 2013-04-19
|
771
|
+
* 1 minor enhancement:
|
772
|
+
* Add support for specifying an API key when retrieving an upcoming invoice
|
773
|
+
|
774
|
+
## 1.8.0 - 2013-04-11
|
775
|
+
* 1 major enhancement:
|
776
|
+
* Add new Recipient resource
|
777
|
+
* Allow Transfers to be createable
|
778
|
+
|
779
|
+
## 1.7.11 - 2013-02-21
|
780
|
+
* 1 minor enhancement
|
781
|
+
* Add 'id' to the list of permanent attributes
|
782
|
+
|
783
|
+
## 1.7.10 - 2013-02-01
|
784
|
+
* 1 major enhancement
|
785
|
+
* Add support for passing options when retrieving Stripe objects e.g., Stripe::Charge.retrieve({id:"foo", expand:["customer"]}) Stripe::Charge("foo") is still supported as well
|
786
|
+
|
787
|
+
## 1.7.9 - 2013-01-15
|
788
|
+
* 1 major enhancement
|
789
|
+
* Add support for setting a Stripe API version override.
|
790
|
+
|
791
|
+
## 1.7.8 - 2012-11-21
|
792
|
+
* 1 bugfix
|
793
|
+
* Relax the version constraint on multi_json (github issue #44)
|
794
|
+
|
795
|
+
## 1.7.7 - 2012-11-07
|
796
|
+
* 1 minor enhancement:
|
797
|
+
* Add support for updating charge disputes
|
798
|
+
|
799
|
+
* 1 bugfix
|
800
|
+
* Fix Account API resource bug
|
801
|
+
|
802
|
+
## 1.7.6 - 2012-10-30
|
803
|
+
* 1 major enhancement
|
804
|
+
* Add support for creating invoices
|
805
|
+
|
806
|
+
## 1.7.5 - 2012-10-25
|
807
|
+
* 1 major enhancement
|
808
|
+
* Add support for new API lists
|
809
|
+
|
810
|
+
## 1.7.4 - 2012-10-08
|
811
|
+
* 1 bugfix
|
812
|
+
* Fix bug introduced in 1.7.3 calling API methods that take no
|
813
|
+
arguments, like Stripe::Invoice#pay (github issue #42)
|
814
|
+
|
815
|
+
## 1.7.3 - 2012-09-14
|
816
|
+
* 2 bugfixes
|
817
|
+
* Make sure that both keys and values of GET params are URL-encoded. NOTE: If you were previously URL-encoding values yourself, you may need to adjust your code.
|
818
|
+
* URL-encode POST params directly, instead of allowing rest-client to do it to work around an unfortunate interaction with the hashery gem (github issue #38)
|
819
|
+
|
820
|
+
## 1.7.2 - 2012-08-31
|
821
|
+
* 1 major enhancement
|
822
|
+
* Add support for new pay and update methods for Invoice objects
|
823
|
+
|
824
|
+
## 1.7.1 - 2012-08-15
|
825
|
+
* 1 major enhancement
|
826
|
+
* Add new Account API resource
|
827
|
+
|
828
|
+
## 1.7.0 - 2012-05-17
|
829
|
+
* 3 major enhancements:
|
830
|
+
* Switch from vendored stripe-json to multi_json for all JSON parsing and rendering. This should not impact programmatic usage of the library, but may cause small rendering differences from, e.g., StripeObject#inspect (github issue #22)
|
831
|
+
* Add new delete_discount method to Customer objects
|
832
|
+
* Add new Transfer API resource
|
833
|
+
|
834
|
+
* 2 minor enhancements:
|
835
|
+
* Switch from HTTP Basic auth to Bearer auth (Note: Stripe will support Basic auth for the indefinite future, but recommends Bearer auth when possible going forward)
|
836
|
+
* Numerous test suite improvements
|
837
|
+
|
838
|
+
## 1.6.3 - 2012-03-22
|
839
|
+
* 1 bugfix:
|
840
|
+
* Encode GET query strings ourselves instead of using rest-client to work around a bug
|
841
|
+
|
842
|
+
## 1.6.2 - 2012-02-24
|
843
|
+
* 1 bugfix:
|
844
|
+
* Correct argument handling in StripeObject#as_json
|
845
|
+
|
846
|
+
## 1.6.1 - 2012-02-22
|
847
|
+
* 1 bugfix:
|
848
|
+
* Fix StripeObject#inspect when ActiveSupport 3.0 is loaded
|
849
|
+
|
850
|
+
## 1.6.0 - 2012-02-01
|
851
|
+
* A whole bunch of releases between 1.5.0 and 1.6.0, but few changes, mainly the addition of plans, coupons, events, and tokens
|
852
|
+
* 1.6.0 also contains a new inspect/to_string implementation
|
853
|
+
|
854
|
+
## 1.5.0 - 2011-05-09
|
855
|
+
* 1 major enhancement:
|
856
|
+
* Update for new RESTful API
|
857
|
+
|
858
|
+
## 1.3.4 - 2011-01-07
|
859
|
+
* 1 major enhancement:
|
860
|
+
* Rename to Stripe
|
861
|
+
|
862
|
+
## 1.2 - 2010-06-06
|
863
|
+
* 1 major enhancement:
|
864
|
+
* Support for the set_customer_subscription and delete_customer API methods
|
865
|
+
|
866
|
+
## 1.1 - 2010-03-14
|
867
|
+
* 1 major enhancement:
|
868
|
+
* Support for recurring billing
|
869
|
+
|
870
|
+
## 1.0 - 2010-01-05
|
871
|
+
* 1 major enhancement:
|
872
|
+
* Initial release
|
873
|
+
|
874
|
+
<!--
|
875
|
+
# vim: set tw=0:
|
876
|
+
-->
|