mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-17 00:00:32 -04:00
Compare commits
5 Commits
f471a2c6a4
...
8f210e251a
Author | SHA1 | Date | |
---|---|---|---|
|
8f210e251a | ||
|
3b31fb29a6 | ||
|
4519e8fa19 | ||
|
5e3d38b675 | ||
|
414ca367af |
1
Makefile
1
Makefile
@ -4,4 +4,5 @@ update-version:
|
||||
@perl -pi -e 's|VERSION = "[.\-\w\d]+"|VERSION = "$(VERSION)"|' lib/stripe/version.rb
|
||||
|
||||
codegen-format:
|
||||
bundle install --quiet
|
||||
bundle exec rubocop -o /dev/null --auto-correct
|
||||
|
@ -25,8 +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,
|
||||
|
@ -14,8 +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"
|
||||
|
@ -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
|
@ -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
|
@ -6,7 +6,7 @@ module Stripe
|
||||
#
|
||||
# When a customer opens a payment link it will open a new [checkout session](https://stripe.com/docs/api/checkout/sessions) to render the payment page. You can use [checkout session events](https://stripe.com/docs/api/events/types#event_types-checkout.session.completed) to track payments through payment links.
|
||||
#
|
||||
# Related guide: [Payment Links API](https://stripe.com/docs/payments/payment-links/api)
|
||||
# Related guide: [Payment Links API](https://stripe.com/docs/payment-links)
|
||||
class PaymentLink < APIResource
|
||||
extend Stripe::APIOperations::Create
|
||||
extend Stripe::APIOperations::List
|
||||
|
@ -7,7 +7,7 @@ module Stripe
|
||||
# They can be used in conjunction with [Prices](https://stripe.com/docs/api#prices) to configure pricing in Payment Links, Checkout, and Subscriptions.
|
||||
#
|
||||
# Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription),
|
||||
# [share a Payment Link](https://stripe.com/docs/payments/payment-links/overview),
|
||||
# [share a Payment Link](https://stripe.com/docs/payment-links),
|
||||
# [accept payments with Checkout](https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront),
|
||||
# and more about [Products and Prices](https://stripe.com/docs/products-prices/overview)
|
||||
class Product < APIResource
|
||||
|
@ -83,10 +83,10 @@ module Stripe
|
||||
)
|
||||
end
|
||||
|
||||
def preview_invoice_lines(params = {}, opts = {})
|
||||
def preview_invoice_lines(preview_invoice, params = {}, opts = {})
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: format("/v1/quotes/%<quote>s/preview_invoice_lines", { quote: CGI.escape(self["id"]) }),
|
||||
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
@ -191,10 +191,15 @@ module Stripe
|
||||
)
|
||||
end
|
||||
|
||||
def self.preview_invoice_lines(quote, params = {}, opts = {})
|
||||
def self.preview_invoice_lines(
|
||||
quote,
|
||||
preview_invoice,
|
||||
params = {},
|
||||
opts = {}
|
||||
)
|
||||
request_stripe_object(
|
||||
method: :get,
|
||||
path: format("/v1/quotes/%<quote>s/preview_invoice_lines", { quote: CGI.escape(quote) }),
|
||||
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
|
||||
params: params,
|
||||
opts: opts
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user