stripe 7.2.0.pre.beta.2 → 7.2.0.pre.beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +3 -0
- data/lib/stripe/resources/account_session.rb +2 -2
- data/lib/stripe/resources/capital/financing_offer.rb +32 -0
- data/lib/stripe/resources/capital/financing_summary.rb +12 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +13 -0
- data/lib/stripe/resources.rb +3 -0
- data/lib/stripe/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb4a6ca25aea7be267ae3073349ded87401973201c99381df9f465b4081102b3
|
4
|
+
data.tar.gz: 4bca0f90f33ebc37b144b78833561c36d9f7d348767afdbfc06f2fa52d06856f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4146bccf6f233c447333422555b5da6cd41d7ffc17297825dc342ff2922cedbd24f199af0092238e4ce80fa20aef4579438d5349d2a762dd35fb59685523b535
|
7
|
+
data.tar.gz: a2ff49d31b4cf6b4ca0f260496d7c2cb05868d0ccfae6e30b0d055e6e25ed6b2e27debc349a4584eb03668333c640d2e16a46cd32aa00d84da403a032b154633
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 7.2.0-beta.3 - 2022-09-26
|
4
|
+
* [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
|
5
|
+
* Updated stable APIs to the latest version
|
6
|
+
* Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
|
7
|
+
|
3
8
|
## 7.2.0-beta.2 - 2022-08-26
|
4
9
|
* [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
|
5
10
|
* Updated stable APIs to the latest version
|
6
11
|
* Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
|
7
12
|
|
8
|
-
|
9
13
|
## 7.2.0-beta.1 - 2022-08-23
|
10
14
|
* [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
|
11
15
|
- Updated stable APIs to the latest version
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v196
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.2.0-beta.
|
1
|
+
7.2.0-beta.3
|
data/lib/stripe/object_types.rb
CHANGED
@@ -25,6 +25,9 @@ module Stripe
|
|
25
25
|
BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
|
26
26
|
BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
|
27
27
|
Capability::OBJECT_NAME => Capability,
|
28
|
+
Capital::FinancingOffer::OBJECT_NAME => Capital::FinancingOffer,
|
29
|
+
Capital::FinancingSummary::OBJECT_NAME => Capital::FinancingSummary,
|
30
|
+
Capital::FinancingTransaction::OBJECT_NAME => Capital::FinancingTransaction,
|
28
31
|
Card::OBJECT_NAME => Card,
|
29
32
|
CashBalance::OBJECT_NAME => CashBalance,
|
30
33
|
Charge::OBJECT_NAME => Charge,
|
@@ -2,13 +2,13 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module Stripe
|
5
|
-
# An AccountSession allows a Connect platform to grant access to a connected account in Connect
|
5
|
+
# An AccountSession allows a Connect platform to grant access to a connected account in Connect Embedded UIs.
|
6
6
|
#
|
7
7
|
# We recommend that you create an AccountSession each time you need to display an embedded UI
|
8
8
|
# to your user. Do not save AccountSessions to your database as they expire relatively
|
9
9
|
# quickly, and cannot be used more than once.
|
10
10
|
#
|
11
|
-
# Related guide: [Connect
|
11
|
+
# Related guide: [Connect Embedded UIs](https://stripe.com/docs/connect/get-started-connect-elements).
|
12
12
|
class AccountSession < APIResource
|
13
13
|
extend Stripe::APIOperations::Create
|
14
14
|
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Capital
|
6
|
+
# This is an object representing an offer of financing from
|
7
|
+
# Stripe Capital to a Connect subaccount.
|
8
|
+
class FinancingOffer < APIResource
|
9
|
+
extend Stripe::APIOperations::List
|
10
|
+
|
11
|
+
OBJECT_NAME = "capital.financing_offer"
|
12
|
+
|
13
|
+
def mark_delivered(params = {}, opts = {})
|
14
|
+
request_stripe_object(
|
15
|
+
method: :post,
|
16
|
+
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }),
|
17
|
+
params: params,
|
18
|
+
opts: opts
|
19
|
+
)
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.mark_delivered(financing_offer, params = {}, opts = {})
|
23
|
+
request_stripe_object(
|
24
|
+
method: :post,
|
25
|
+
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
|
26
|
+
params: params,
|
27
|
+
opts: opts
|
28
|
+
)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Capital
|
6
|
+
# A financing object describes an account's current financing state. Used by Connect
|
7
|
+
# platforms to read the state of Capital offered to their connected accounts.
|
8
|
+
class FinancingSummary < SingletonAPIResource
|
9
|
+
OBJECT_NAME = "capital.financing_summary"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Capital
|
6
|
+
# This is an object representing the details of a transaction on a Capital financing object.
|
7
|
+
class FinancingTransaction < APIResource
|
8
|
+
extend Stripe::APIOperations::List
|
9
|
+
|
10
|
+
OBJECT_NAME = "capital.financing_transaction"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -14,6 +14,9 @@ require "stripe/resources/bank_account"
|
|
14
14
|
require "stripe/resources/billing_portal/configuration"
|
15
15
|
require "stripe/resources/billing_portal/session"
|
16
16
|
require "stripe/resources/capability"
|
17
|
+
require "stripe/resources/capital/financing_offer"
|
18
|
+
require "stripe/resources/capital/financing_summary"
|
19
|
+
require "stripe/resources/capital/financing_transaction"
|
17
20
|
require "stripe/resources/card"
|
18
21
|
require "stripe/resources/cash_balance"
|
19
22
|
require "stripe/resources/charge"
|
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: 7.2.0.pre.beta.
|
4
|
+
version: 7.2.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: 2022-
|
11
|
+
date: 2022-09-26 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.
|
@@ -65,6 +65,9 @@ files:
|
|
65
65
|
- lib/stripe/resources/billing_portal/configuration.rb
|
66
66
|
- lib/stripe/resources/billing_portal/session.rb
|
67
67
|
- lib/stripe/resources/capability.rb
|
68
|
+
- lib/stripe/resources/capital/financing_offer.rb
|
69
|
+
- lib/stripe/resources/capital/financing_summary.rb
|
70
|
+
- lib/stripe/resources/capital/financing_transaction.rb
|
68
71
|
- lib/stripe/resources/card.rb
|
69
72
|
- lib/stripe/resources/cash_balance.rb
|
70
73
|
- lib/stripe/resources/charge.rb
|