Compare commits

...

14 Commits

Author SHA1 Message Date
Pavel Krymets
82ac9f2720 Bump version to 7.2.0-beta.3 2022-09-26 16:32:21 -07:00
pakrym-stripe
7381eb02a6
Merge pull request #1129 from stripe/latest-codegen-beta
API Updates for beta branch
2022-09-26 13:35:10 -07:00
Pavel Krymets
6720fc8d3f Codegen for openapi v196 2022-09-26 12:26:38 -07:00
Pavel Krymets
35a29332c5 Reset version to 7.2.0-beta.2 2022-09-26 12:26:08 -07:00
Pavel Krymets
519d68ce10 Include latest changes from the master branch 2022-09-26 12:26:08 -07:00
Pavel Krymets
b95ea4ba27 Set version to 7.1.0 to simplify merge 2022-09-26 12:26:07 -07:00
anniel-stripe
af6fb06cd6
Merge pull request #1126 from stripe/anniel-coveralls
Add test coverage using Coveralls
2022-08-24 11:59:19 -07:00
Annie Li
4d87c3af1e Restart CI due to Github Actions incident 2022-08-24 11:55:55 -07:00
Annie Li
dc93d96cb9 Change check to 3.1. 2022-08-24 11:01:48 -07:00
Annie Li
f647412789 Add comment and change to starts_with 2022-08-24 10:56:47 -07:00
Annie Li
2076cfd42e Add coveralls 2022-08-24 09:56:47 -07:00
pakrym-stripe
78863b4b0f
Update README.md (#1125) 2022-08-24 08:57:58 -07:00
pakrym-stripe
53ab9bf668
Add beta readme.md section (#1121) 2022-08-23 16:34:02 +00:00
Dominic Charley-Roy
cfeaa0ca23
API Updates (#1123) 2022-08-23 08:51:43 -04:00
10 changed files with 73 additions and 6 deletions

View File

@ -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

View File

@ -1 +1 @@
v185
v196

View File

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

View File

@ -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,

View File

@ -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"

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 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

View 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

View 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

View 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

View File

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