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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 173520c0357dc5d7c9ccf0ddeead3a42d74d7825fc0d135e4d7b1dd64d999e2f
4
- data.tar.gz: 649abd5f4978d3dbfddea4da7b26c7fa2dbf524a7d43ff701203ffaf5306e9e2
3
+ metadata.gz: dc554758ca8830920301f94885c914422987e7eae1c436e8989493751d5d0f1b
4
+ data.tar.gz: b33a87af50d984eac4c8283ead0da2f5284f9be073b233bdea2bcb5492aec82a
5
5
  SHA512:
6
- metadata.gz: c2be6dba6adc6909ea8ff70d185c1b8e77482aed570514507be100a7350bcca3eac928bf61c18b34cba5e43b9b4e99709231df690aa49e6f83b834237d6e2ff9
7
- data.tar.gz: 975ab7412d207ac36e8b8a62c06e7488d85d59e17ab93e5e59fc088bb63c16b9c1035dc430ddc7c29b1b2fe10e0953ddc807faa5f484fe1ac9b50707d9f893e5
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
- v1156
1
+ v1165
data/VERSION CHANGED
@@ -1 +1 @@
1
- 12.5.0-beta.1
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "12.5.0-beta.1"
4
+ VERSION = "12.5.0-beta.2"
5
5
  end
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.1
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-07-25 00:00:00.000000000 Z
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.