mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-21 00:02:41 -04:00
Codegen for openapi v218
This commit is contained in:
parent
2b841bc109
commit
fe794f4868
@ -1 +1 @@
|
|||||||
v217
|
v218
|
@ -98,6 +98,7 @@ module Stripe
|
|||||||
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
||||||
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
||||||
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
||||||
|
Tax::Registration::OBJECT_NAME => Tax::Registration,
|
||||||
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
||||||
TaxCode::OBJECT_NAME => TaxCode,
|
TaxCode::OBJECT_NAME => TaxCode,
|
||||||
TaxId::OBJECT_NAME => TaxId,
|
TaxId::OBJECT_NAME => TaxId,
|
||||||
|
@ -85,6 +85,7 @@ require "stripe/resources/subscription"
|
|||||||
require "stripe/resources/subscription_item"
|
require "stripe/resources/subscription_item"
|
||||||
require "stripe/resources/subscription_schedule"
|
require "stripe/resources/subscription_schedule"
|
||||||
require "stripe/resources/tax/calculation"
|
require "stripe/resources/tax/calculation"
|
||||||
|
require "stripe/resources/tax/registration"
|
||||||
require "stripe/resources/tax/transaction"
|
require "stripe/resources/tax/transaction"
|
||||||
require "stripe/resources/tax_code"
|
require "stripe/resources/tax_code"
|
||||||
require "stripe/resources/tax_id"
|
require "stripe/resources/tax_id"
|
||||||
|
@ -32,7 +32,7 @@ module Stripe
|
|||||||
def draft_quote(params = {}, opts = {})
|
def draft_quote(params = {}, opts = {})
|
||||||
request_stripe_object(
|
request_stripe_object(
|
||||||
method: :post,
|
method: :post,
|
||||||
path: format("/v1/quotes/%<quote>s/draft", { quote: CGI.escape(self["id"]) }),
|
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(self["id"]) }),
|
||||||
params: params,
|
params: params,
|
||||||
opts: opts
|
opts: opts
|
||||||
)
|
)
|
||||||
@ -140,7 +140,7 @@ module Stripe
|
|||||||
def self.draft_quote(quote, params = {}, opts = {})
|
def self.draft_quote(quote, params = {}, opts = {})
|
||||||
request_stripe_object(
|
request_stripe_object(
|
||||||
method: :post,
|
method: :post,
|
||||||
path: format("/v1/quotes/%<quote>s/draft", { quote: CGI.escape(quote) }),
|
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
|
||||||
params: params,
|
params: params,
|
||||||
opts: opts
|
opts: opts
|
||||||
)
|
)
|
||||||
|
17
lib/stripe/resources/tax/registration.rb
Normal file
17
lib/stripe/resources/tax/registration.rb
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# File generated from our OpenAPI spec
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
module Stripe
|
||||||
|
module Tax
|
||||||
|
# A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/docs/tax).
|
||||||
|
#
|
||||||
|
# Stripe will not register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/docs/tax/registering).
|
||||||
|
class Registration < APIResource
|
||||||
|
extend Stripe::APIOperations::Create
|
||||||
|
extend Stripe::APIOperations::List
|
||||||
|
include Stripe::APIOperations::Save
|
||||||
|
|
||||||
|
OBJECT_NAME = "tax.registration"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user