stripe 10.7.0.pre.beta.2 → 10.7.0.pre.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_operations/search.rb +5 -1
- data/lib/stripe/object_types.rb +1 -1
- data/lib/stripe/resources/account.rb +2 -3
- data/lib/stripe/resources/invoice.rb +14 -0
- data/lib/stripe/resources/payout.rb +4 -4
- data/lib/stripe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb57ace02144a86ab65ccc919010a25b0353d7d79f6cf00efed9e644acc9d8d3
|
4
|
+
data.tar.gz: 8c6b1ed19456e0a586e15e64b6ee77496cef3751e72250f2106a05b15d849a90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37097c3d79453588589d12b1f51c92ecf9e1fd1a51fc82a6f24a5c88054573c9fec6a374f899f87fe2f830f3c3e321a00d6d07569aff955bcd98bd7c3d520a65
|
7
|
+
data.tar.gz: d3ad39890a237df5a2d6e96f4ea42f37b9f2d63a805b4c393ff602a691fca685651a09abc7d9ec5841068084aba7783e3634717a15de9002256deeea0754a62e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 10.7.0-beta.3 - 2024-01-25
|
4
|
+
* [#1313](https://github.com/stripe/stripe-ruby/pull/1313) Update generated code for beta
|
5
|
+
* Add support for `create_preview` method on resource `Invoice`
|
6
|
+
* [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
|
7
|
+
|
3
8
|
## 10.7.0-beta.2 - 2024-01-19
|
4
9
|
* [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
|
5
10
|
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v794
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.7.0-beta.
|
1
|
+
10.7.0-beta.3
|
@@ -1,8 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# TODO: (major) Deprecated, Remove along with extends
|
4
3
|
module Stripe
|
5
4
|
module APIOperations
|
5
|
+
# The _search method via API Operations is deprecated.
|
6
|
+
# Please use the search method from within the resource instead.
|
6
7
|
module Search
|
7
8
|
def _search(search_url, filters = {}, opts = {})
|
8
9
|
request_stripe_object(
|
@@ -12,6 +13,9 @@ module Stripe
|
|
12
13
|
opts: opts
|
13
14
|
)
|
14
15
|
end
|
16
|
+
|
17
|
+
extend Gem::Deprecate
|
18
|
+
deprecate :_search, "request_stripe_object", 2024, 1
|
15
19
|
end
|
16
20
|
end
|
17
21
|
end
|
data/lib/stripe/object_types.rb
CHANGED
@@ -12,6 +12,7 @@ module Stripe
|
|
12
12
|
SearchResultObject::OBJECT_NAME => SearchResultObject,
|
13
13
|
|
14
14
|
# business objects
|
15
|
+
File::OBJECT_NAME_ALT => File,
|
15
16
|
Account::OBJECT_NAME => Account,
|
16
17
|
AccountLink::OBJECT_NAME => AccountLink,
|
17
18
|
AccountNotice::OBJECT_NAME => AccountNotice,
|
@@ -51,7 +52,6 @@ module Stripe
|
|
51
52
|
Event::OBJECT_NAME => Event,
|
52
53
|
ExchangeRate::OBJECT_NAME => ExchangeRate,
|
53
54
|
File::OBJECT_NAME => File,
|
54
|
-
File::OBJECT_NAME_ALT => File,
|
55
55
|
FileLink::OBJECT_NAME => FileLink,
|
56
56
|
FinancialConnections::Account::OBJECT_NAME => FinancialConnections::Account,
|
57
57
|
FinancialConnections::AccountInferredBalance::OBJECT_NAME =>
|
@@ -7,9 +7,8 @@ module Stripe
|
|
7
7
|
# enabled to make live charges or receive payouts.
|
8
8
|
#
|
9
9
|
# For Custom accounts, the properties below are always returned. For other accounts, some properties are returned until that
|
10
|
-
# account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links)
|
11
|
-
#
|
12
|
-
# below. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts).
|
10
|
+
# account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions),
|
11
|
+
# some properties are only returned for Custom accounts. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts).
|
13
12
|
class Account < APIResource
|
14
13
|
extend Gem::Deprecate
|
15
14
|
extend Stripe::APIOperations::Create
|
@@ -134,6 +134,20 @@ module Stripe
|
|
134
134
|
)
|
135
135
|
end
|
136
136
|
|
137
|
+
# At any time, you can preview the upcoming invoice for a customer. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.
|
138
|
+
#
|
139
|
+
# Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer's discount.
|
140
|
+
#
|
141
|
+
# You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass a proration_date parameter when doing the actual subscription update. The value passed in should be the same as the subscription_proration_date returned on the upcoming invoice resource. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_proration_date on the upcoming invoice resource.
|
142
|
+
def self.create_preview(params = {}, opts = {})
|
143
|
+
request_stripe_object(
|
144
|
+
method: :post,
|
145
|
+
path: "/v1/invoices/create_preview",
|
146
|
+
params: params,
|
147
|
+
opts: opts
|
148
|
+
)
|
149
|
+
end
|
150
|
+
|
137
151
|
# Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
|
138
152
|
def self.finalize_invoice(invoice, params = {}, opts = {})
|
139
153
|
request_stripe_object(
|
@@ -17,7 +17,7 @@ module Stripe
|
|
17
17
|
|
18
18
|
OBJECT_NAME = "payout"
|
19
19
|
|
20
|
-
# You can cancel a previously created payout if
|
20
|
+
# You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts.
|
21
21
|
def cancel(params = {}, opts = {})
|
22
22
|
request_stripe_object(
|
23
23
|
method: :post,
|
@@ -27,7 +27,7 @@ module Stripe
|
|
27
27
|
)
|
28
28
|
end
|
29
29
|
|
30
|
-
# Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is in the pending status, use /v1/payouts/:id/cancel instead.
|
30
|
+
# Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
|
31
31
|
#
|
32
32
|
# By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.
|
33
33
|
def reverse(params = {}, opts = {})
|
@@ -39,7 +39,7 @@ module Stripe
|
|
39
39
|
)
|
40
40
|
end
|
41
41
|
|
42
|
-
# You can cancel a previously created payout if
|
42
|
+
# You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts.
|
43
43
|
def self.cancel(payout, params = {}, opts = {})
|
44
44
|
request_stripe_object(
|
45
45
|
method: :post,
|
@@ -49,7 +49,7 @@ module Stripe
|
|
49
49
|
)
|
50
50
|
end
|
51
51
|
|
52
|
-
# Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is in the pending status, use /v1/payouts/:id/cancel instead.
|
52
|
+
# Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
|
53
53
|
#
|
54
54
|
# By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.
|
55
55
|
def self.reverse(payout, params = {}, opts = {})
|
data/lib/stripe/version.rb
CHANGED
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: 10.7.0.pre.beta.
|
4
|
+
version: 10.7.0.pre.beta.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-25 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.
|