mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-04 00:00:45 -04:00
Compare commits
14 Commits
318e244a76
...
82ac9f2720
Author | SHA1 | Date | |
---|---|---|---|
|
82ac9f2720 | ||
|
7381eb02a6 | ||
|
6720fc8d3f | ||
|
35a29332c5 | ||
|
519d68ce10 | ||
|
b95ea4ba27 | ||
|
af6fb06cd6 | ||
|
4d87c3af1e | ||
|
dc93d96cb9 | ||
|
f647412789 | ||
|
2076cfd42e | ||
|
78863b4b0f | ||
|
53ab9bf668 | ||
|
cfeaa0ca23 |
@ -1,11 +1,15 @@
|
||||
# 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
|
||||
|
@ -1 +1 @@
|
||||
v185
|
||||
v196
|
@ -25,6 +25,9 @@ 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,
|
||||
|
@ -14,6 +14,9 @@ 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"
|
||||
|
@ -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 Elements.
|
||||
# An AccountSession allows a Connect platform to grant access to a connected account in Connect Embedded UIs.
|
||||
#
|
||||
# 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 Elements](https://stripe.com/docs/connect/get-started-connect-elements).
|
||||
# Related guide: [Connect Embedded UIs](https://stripe.com/docs/connect/get-started-connect-elements).
|
||||
class AccountSession < APIResource
|
||||
extend Stripe::APIOperations::Create
|
||||
|
||||
|
32
lib/stripe/resources/capital/financing_offer.rb
Normal file
32
lib/stripe/resources/capital/financing_offer.rb
Normal file
@ -0,0 +1,32 @@
|
||||
# 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
|
12
lib/stripe/resources/capital/financing_summary.rb
Normal file
12
lib/stripe/resources/capital/financing_summary.rb
Normal file
@ -0,0 +1,12 @@
|
||||
# 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
|
13
lib/stripe/resources/capital/financing_transaction.rb
Normal file
13
lib/stripe/resources/capital/financing_transaction.rb
Normal file
@ -0,0 +1,13 @@
|
||||
# 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
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
VERSION = "7.2.0-beta.2"
|
||||
VERSION = "7.2.0-beta.3"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user