Compare commits

..

No commits in common. "82ac9f2720fe8b045701ef5bb0ec6e8de8f0fd5b" and "318e244a763d4e5e98d2f000fa9fd7864573a08e" have entirely different histories.

10 changed files with 6 additions and 73 deletions

View File

@ -1,15 +1,11 @@
# Changelog
## 7.2.0-beta.3 - 2022-09-26
* [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
* Updated stable APIs to the latest version
* Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
## 7.2.0-beta.2 - 2022-08-26
* [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
* Updated stable APIs to the latest version
* Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
## 7.2.0-beta.1 - 2022-08-23
* [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
- Updated stable APIs to the latest version

View File

@ -1 +1 @@
v196
v185

View File

@ -1 +1 @@
7.2.0-beta.3
7.2.0-beta.2

View File

@ -25,9 +25,6 @@ module Stripe
BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
Capability::OBJECT_NAME => Capability,
Capital::FinancingOffer::OBJECT_NAME => Capital::FinancingOffer,
Capital::FinancingSummary::OBJECT_NAME => Capital::FinancingSummary,
Capital::FinancingTransaction::OBJECT_NAME => Capital::FinancingTransaction,
Card::OBJECT_NAME => Card,
CashBalance::OBJECT_NAME => CashBalance,
Charge::OBJECT_NAME => Charge,

View File

@ -14,9 +14,6 @@ require "stripe/resources/bank_account"
require "stripe/resources/billing_portal/configuration"
require "stripe/resources/billing_portal/session"
require "stripe/resources/capability"
require "stripe/resources/capital/financing_offer"
require "stripe/resources/capital/financing_summary"
require "stripe/resources/capital/financing_transaction"
require "stripe/resources/card"
require "stripe/resources/cash_balance"
require "stripe/resources/charge"

View File

@ -2,13 +2,13 @@
# frozen_string_literal: true
module Stripe
# An AccountSession allows a Connect platform to grant access to a connected account in Connect Embedded UIs.
# An AccountSession allows a Connect platform to grant access to a connected account in Connect Elements.
#
# We recommend that you create an AccountSession each time you need to display an embedded UI
# to your user. Do not save AccountSessions to your database as they expire relatively
# quickly, and cannot be used more than once.
#
# Related guide: [Connect Embedded UIs](https://stripe.com/docs/connect/get-started-connect-elements).
# Related guide: [Connect Elements](https://stripe.com/docs/connect/get-started-connect-elements).
class AccountSession < APIResource
extend Stripe::APIOperations::Create

View File

@ -1,32 +0,0 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Capital
# This is an object representing an offer of financing from
# Stripe Capital to a Connect subaccount.
class FinancingOffer < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "capital.financing_offer"
def mark_delivered(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def self.mark_delivered(financing_offer, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
params: params,
opts: opts
)
end
end
end
end

View File

@ -1,12 +0,0 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Capital
# A financing object describes an account's current financing state. Used by Connect
# platforms to read the state of Capital offered to their connected accounts.
class FinancingSummary < SingletonAPIResource
OBJECT_NAME = "capital.financing_summary"
end
end
end

View File

@ -1,13 +0,0 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Capital
# This is an object representing the details of a transaction on a Capital financing object.
class FinancingTransaction < APIResource
extend Stripe::APIOperations::List
OBJECT_NAME = "capital.financing_transaction"
end
end
end

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module Stripe
VERSION = "7.2.0-beta.3"
VERSION = "7.2.0-beta.2"
end