stripe 12.5.0.pre.beta.1 → 12.5.0.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/invoice.rb +44 -0
- 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: dc554758ca8830920301f94885c914422987e7eae1c436e8989493751d5d0f1b
|
4
|
+
data.tar.gz: b33a87af50d984eac4c8283ead0da2f5284f9be073b233bdea2bcb5492aec82a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95351924f884489d83c0f7e8cde2283488397f3e964baf1c121c3e5b8a0ccf14af5280f7051a40482754fb5395e09e7e7ce1abb6d6e37bd05dea752a66c9fa2b
|
7
|
+
data.tar.gz: 31b17090ae1bea44968f84ad163b7ff54b0f899eb62a3bb1a7f7e70157135508dc63211da33f987ec213dd5b5bc566612557430aca03105b874d1a0f57efddfc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 12.5.0-beta.2 - 2024-08-01
|
4
|
+
* [#1439](https://github.com/stripe/stripe-ruby/pull/1439) Update generated code for beta
|
5
|
+
* Add support for `attach_payment` method on resource `Invoice`
|
6
|
+
|
3
7
|
## 12.5.0-beta.1 - 2024-07-25
|
4
8
|
* [#1429](https://github.com/stripe/stripe-ruby/pull/1429) Update generated code for beta
|
5
9
|
* Add support for new resources `Billing.AlertTriggered`, `Billing.Alert`, and `Tax.Association`
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v1165
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
12.5.0-beta.
|
1
|
+
12.5.0-beta.2
|
@@ -70,6 +70,50 @@ module Stripe
|
|
70
70
|
)
|
71
71
|
end
|
72
72
|
|
73
|
+
# Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of payments.
|
74
|
+
#
|
75
|
+
# For Out of Band Payment, the payment is credited to the invoice immediately, increasing the amount_paid
|
76
|
+
# of the invoice and subsequently transitioning the status of the invoice to paid if necessary.
|
77
|
+
#
|
78
|
+
# For the PaymentIntent, when the PaymentIntent's status changes to succeeded, the payment is credited
|
79
|
+
# to the invoice, increasing its amount_paid. When the invoice is fully paid, the
|
80
|
+
# invoice's status becomes paid.
|
81
|
+
#
|
82
|
+
# If the PaymentIntent's status is already succeeded when it's attached, it's
|
83
|
+
# credited to the invoice immediately.
|
84
|
+
#
|
85
|
+
# See: [Create an invoice payment](https://stripe.com/docs/invoicing/payments/create) to learn more.
|
86
|
+
def attach_payment(params = {}, opts = {})
|
87
|
+
request_stripe_object(
|
88
|
+
method: :post,
|
89
|
+
path: format("/v1/invoices/%<invoice>s/attach_payment", { invoice: CGI.escape(self["id"]) }),
|
90
|
+
params: params,
|
91
|
+
opts: opts
|
92
|
+
)
|
93
|
+
end
|
94
|
+
|
95
|
+
# Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of payments.
|
96
|
+
#
|
97
|
+
# For Out of Band Payment, the payment is credited to the invoice immediately, increasing the amount_paid
|
98
|
+
# of the invoice and subsequently transitioning the status of the invoice to paid if necessary.
|
99
|
+
#
|
100
|
+
# For the PaymentIntent, when the PaymentIntent's status changes to succeeded, the payment is credited
|
101
|
+
# to the invoice, increasing its amount_paid. When the invoice is fully paid, the
|
102
|
+
# invoice's status becomes paid.
|
103
|
+
#
|
104
|
+
# If the PaymentIntent's status is already succeeded when it's attached, it's
|
105
|
+
# credited to the invoice immediately.
|
106
|
+
#
|
107
|
+
# See: [Create an invoice payment](https://stripe.com/docs/invoicing/payments/create) to learn more.
|
108
|
+
def self.attach_payment(invoice, params = {}, opts = {})
|
109
|
+
request_stripe_object(
|
110
|
+
method: :post,
|
111
|
+
path: format("/v1/invoices/%<invoice>s/attach_payment", { invoice: CGI.escape(invoice) }),
|
112
|
+
params: params,
|
113
|
+
opts: opts
|
114
|
+
)
|
115
|
+
end
|
116
|
+
|
73
117
|
# Attaches a PaymentIntent to the invoice, adding it to the list of payments.
|
74
118
|
# When the PaymentIntent's status changes to succeeded, the payment is credited
|
75
119
|
# to the invoice, increasing its amount_paid. When the invoice is fully paid, the
|
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: 12.5.0.pre.beta.
|
4
|
+
version: 12.5.0.pre.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-01 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.
|