stripe 10.1.0.pre.beta.2 → 10.2.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/resources/exchange_rate.rb +25 -10
- data/lib/stripe/resources/invoice.rb +21 -0
- data/lib/stripe/resources/invoice_payment.rb +11 -0
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fa793f3d4ef260d1fc85f6f63707f504ae80f5770a1be07704671433a8c24a6
|
4
|
+
data.tar.gz: 758d29fd73bb6785692ccb889307bd31b1dc927b49c44eb8bcadd7bb2c4635e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7be66b70e8b22ca37db88e726c9036229ce041a1f54db7a0a47354ebf6ab71153d53b1b0ae7d2ba50f020263a1c8f7f430c3eeb2d439e2595ff0d030b795c0e
|
7
|
+
data.tar.gz: 5be94fd11a94e6fae066a0772108fa5146c4b97729a361ca1a4e7f61c474f641ab89875ecd6adf7f874be1611ad94b5c0c4b46750ba24190e80577253af7fef5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 10.2.0-beta.1 - 2023-11-02
|
4
|
+
* [#1287](https://github.com/stripe/stripe-ruby/pull/1287) Update generated code for beta
|
5
|
+
* Add support for `attach_payment_intent` method on resource `Invoice`
|
6
|
+
* [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
|
7
|
+
|
8
|
+
## 10.1.0 - 2023-11-02
|
9
|
+
* [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
|
10
|
+
* Add support for new resource `Tax.Registration`
|
11
|
+
* Add support for `create`, `list`, and `update` methods on resource `Registration`
|
12
|
+
|
3
13
|
## 10.1.0-beta.2 - 2023-10-26
|
4
14
|
* [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
|
5
15
|
* Add support for new resource `Margin`
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v645
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.
|
1
|
+
10.2.0-beta.1
|
data/lib/stripe/object_types.rb
CHANGED
@@ -66,6 +66,7 @@ module Stripe
|
|
66
66
|
Invoice::OBJECT_NAME => Invoice,
|
67
67
|
InvoiceItem::OBJECT_NAME => InvoiceItem,
|
68
68
|
InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
|
69
|
+
InvoicePayment::OBJECT_NAME => InvoicePayment,
|
69
70
|
Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
|
70
71
|
Issuing::Card::OBJECT_NAME => Issuing::Card,
|
71
72
|
Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
|
@@ -2,17 +2,32 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module Stripe
|
5
|
-
# `
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
5
|
+
# `ExchangeRate` objects allow you to determine the rates that Stripe is currently
|
6
|
+
# using to convert from one currency to another. Since this number is variable
|
7
|
+
# throughout the day, there are various reasons why you might want to know the current
|
8
|
+
# rate (for example, to dynamically price an item for a user with a default
|
9
|
+
# payment in a foreign currency).
|
10
10
|
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
11
|
+
# Please refer to our [Exchange Rates API](https://stripe.com/docs/fx-rates) guide for more details.
|
12
|
+
#
|
13
|
+
# *[Note: this integration path is supported but no longer recommended]* Additionally,
|
14
|
+
# you can guarantee that a charge is made with an exchange rate that you expect is
|
15
|
+
# current. To do so, you must pass in the exchange_rate to charges endpoints. If the
|
16
|
+
# value is no longer up to date, the charge won't go through. Please refer to our
|
17
|
+
# [Using with charges](https://stripe.com/docs/exchange-rates) guide for more details.
|
18
|
+
#
|
19
|
+
# -----
|
20
|
+
#
|
21
|
+
#
|
22
|
+
#
|
23
|
+
# *This Exchange Rates API is a Beta Service and is subject to Stripe's terms of service. You may use the API solely for the purpose of transacting on Stripe. For example, the API may be queried in order to:*
|
24
|
+
#
|
25
|
+
# - *localize prices for processing payments on Stripe*
|
26
|
+
# - *reconcile Stripe transactions*
|
27
|
+
# - *determine how much money to send to a connected account*
|
28
|
+
# - *determine app fees to charge a connected account*
|
29
|
+
#
|
30
|
+
# *Using this Exchange Rates API beta for any purpose other than to transact on Stripe is strictly prohibited and constitutes a violation of Stripe's terms of service.*
|
16
31
|
class ExchangeRate < APIResource
|
17
32
|
extend Stripe::APIOperations::List
|
18
33
|
|
@@ -40,9 +40,21 @@ module Stripe
|
|
40
40
|
extend Stripe::APIOperations::List
|
41
41
|
extend Stripe::APIOperations::Search
|
42
42
|
include Stripe::APIOperations::Save
|
43
|
+
extend Stripe::APIOperations::NestedResource
|
43
44
|
|
44
45
|
OBJECT_NAME = "invoice"
|
45
46
|
|
47
|
+
nested_resource_class_methods :payment, operations: %i[retrieve list]
|
48
|
+
|
49
|
+
def attach_payment_intent(params = {}, opts = {})
|
50
|
+
request_stripe_object(
|
51
|
+
method: :post,
|
52
|
+
path: format("/v1/invoices/%<invoice>s/attach_payment_intent", { invoice: CGI.escape(self["id"]) }),
|
53
|
+
params: params,
|
54
|
+
opts: opts
|
55
|
+
)
|
56
|
+
end
|
57
|
+
|
46
58
|
def finalize_invoice(params = {}, opts = {})
|
47
59
|
request_stripe_object(
|
48
60
|
method: :post,
|
@@ -88,6 +100,15 @@ module Stripe
|
|
88
100
|
)
|
89
101
|
end
|
90
102
|
|
103
|
+
def self.attach_payment_intent(invoice, params = {}, opts = {})
|
104
|
+
request_stripe_object(
|
105
|
+
method: :post,
|
106
|
+
path: format("/v1/invoices/%<invoice>s/attach_payment_intent", { invoice: CGI.escape(invoice) }),
|
107
|
+
params: params,
|
108
|
+
opts: opts
|
109
|
+
)
|
110
|
+
end
|
111
|
+
|
91
112
|
def self.finalize_invoice(invoice, params = {}, opts = {})
|
92
113
|
request_stripe_object(
|
93
114
|
method: :post,
|
data/lib/stripe/resources.rb
CHANGED
@@ -52,6 +52,7 @@ require "stripe/resources/identity/verification_session"
|
|
52
52
|
require "stripe/resources/invoice"
|
53
53
|
require "stripe/resources/invoice_item"
|
54
54
|
require "stripe/resources/invoice_line_item"
|
55
|
+
require "stripe/resources/invoice_payment"
|
55
56
|
require "stripe/resources/issuing/authorization"
|
56
57
|
require "stripe/resources/issuing/card"
|
57
58
|
require "stripe/resources/issuing/cardholder"
|
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.
|
4
|
+
version: 10.2.0.pre.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-02 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.
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- lib/stripe/resources/invoice.rb
|
105
105
|
- lib/stripe/resources/invoice_item.rb
|
106
106
|
- lib/stripe/resources/invoice_line_item.rb
|
107
|
+
- lib/stripe/resources/invoice_payment.rb
|
107
108
|
- lib/stripe/resources/issuing/authorization.rb
|
108
109
|
- lib/stripe/resources/issuing/card.rb
|
109
110
|
- lib/stripe/resources/issuing/cardholder.rb
|