stripe 7.2.0.pre.beta.2 → 7.2.0.pre.beta.4

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: 797194319ccedb92416303a3b8d2582b5ab7170e37c3228f16d8f53fd3f362c7
4
- data.tar.gz: ab15451423cd90284bb9a1f4cc059c165e0162d3b6227f772da996b99611ae73
3
+ metadata.gz: 8c8982fcc64e2c501599c98d1d10c02d483e304d24e0baf9481e7d59817b2ade
4
+ data.tar.gz: 4ade6e6f3b446d0c8229f08aa2a351efcdf3433fdb7eb311bc92e38311358add
5
5
  SHA512:
6
- metadata.gz: 3bbb5e1b42344d84932db3835e0446fe159cd450a83c6b82eb242e0ae8a2bc787bd5185b89abc6521fb30f07ad9ea183c74a761fc8bd04752b5eb5f964cb4b73
7
- data.tar.gz: db92e03cb8357a4e5a96c41154ce9d1a537e0fbabe1f6fccd497f392f5519c7f5b04ae3ce1f156bb996f643112659940b105b61d3f1b0a97e8c258502696acae
6
+ metadata.gz: 159ffc22a644b187d4ba86d6e18c38b1a1e37f25063589e11e9e186c2e02de4a0b9d40738615bedfff932e4e5bc2efb7839b9789eba5d8ac1817f3a988b35587
7
+ data.tar.gz: 288db6922279f3fe6b9e85d0e9697b0e6653f572e43a93a250d092e66b1d1803eab27335ff63046f2cccd6bd4252a93e4091e885f7c3c1e7d6a9c497eee7b088
data/CHANGELOG.md CHANGED
@@ -1,11 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.2.0-beta.4 - 2022-10-07
4
+ * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
5
+
6
+ ## 7.2.0-beta.3 - 2022-09-26
7
+ * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
8
+ * Updated stable APIs to the latest version
9
+ * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
10
+
3
11
  ## 7.2.0-beta.2 - 2022-08-26
4
12
  * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
5
13
  * Updated stable APIs to the latest version
6
14
  * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
7
15
 
8
-
9
16
  ## 7.2.0-beta.1 - 2022-08-23
10
17
  * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
11
18
  - Updated stable APIs to the latest version
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v185
1
+ v196
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.2.0-beta.2
1
+ 7.2.0-beta.4
@@ -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 Elements.
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 Elements](https://stripe.com/docs/connect/get-started-connect-elements).
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
@@ -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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "7.2.0-beta.2"
4
+ VERSION = "7.2.0-beta.4"
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: 7.2.0.pre.beta.2
4
+ version: 7.2.0.pre.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-26 00:00:00.000000000 Z
11
+ date: 2022-10-07 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