mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-17 00:00:32 -04:00
Compare commits
4 Commits
8f210e251a
...
105506a7fd
Author | SHA1 | Date | |
---|---|---|---|
|
105506a7fd | ||
|
75b29c3484 | ||
|
a6614ee701 | ||
|
33544c7c25 |
@ -1,5 +1,14 @@
|
||||
# Changelog
|
||||
|
||||
## 8.4.0-beta.4 - 2023-03-16
|
||||
* [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
|
||||
* Add support for `create_from_calculation` method on resource `Tax.Transaction`
|
||||
* [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
|
||||
* Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
|
||||
* Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
|
||||
* Remove support for `retrieve` method on resource `FinancingSummary`
|
||||
* [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
|
||||
|
||||
## 8.4.0-beta.3 - 2023-03-09
|
||||
* [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
|
||||
* Updated stable APIs to the latest version
|
||||
|
@ -1 +1 @@
|
||||
v249
|
||||
v262
|
@ -25,6 +25,8 @@ 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,
|
||||
|
@ -14,6 +14,8 @@ 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"
|
||||
|
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
|
@ -18,6 +18,15 @@ module Stripe
|
||||
)
|
||||
end
|
||||
|
||||
def self.create_from_calculation(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
path: "/v1/tax/transactions/create_from_calculation",
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
end
|
||||
|
||||
def self.create_reversal(params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :post,
|
||||
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
VERSION = "8.4.0-beta.3"
|
||||
VERSION = "8.4.0-beta.4"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user