Update generated code for v1130

This commit is contained in:
Stripe OpenAPI 2024-07-16 08:40:37 +00:00
parent dbed1a3a59
commit 7b693ab18c
4 changed files with 27 additions and 1 deletions

View File

@ -1 +1 @@
v1127
v1130

View File

@ -124,6 +124,7 @@ module Stripe
Subscription.object_name => Subscription,
SubscriptionItem.object_name => SubscriptionItem,
SubscriptionSchedule.object_name => SubscriptionSchedule,
Tax::Association.object_name => Tax::Association,
Tax::Calculation.object_name => Tax::Calculation,
Tax::CalculationLineItem.object_name => Tax::CalculationLineItem,
Tax::Form.object_name => Tax::Form,

View File

@ -111,6 +111,7 @@ require "stripe/resources/source_transaction"
require "stripe/resources/subscription"
require "stripe/resources/subscription_item"
require "stripe/resources/subscription_schedule"
require "stripe/resources/tax/association"
require "stripe/resources/tax/calculation"
require "stripe/resources/tax/calculation_line_item"
require "stripe/resources/tax/form"

View File

@ -0,0 +1,24 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
module Tax
# A Tax Association exposes the Tax Transactions that Stripe attempted to create on your behalf based on the PaymentIntent input
class Association < APIResource
OBJECT_NAME = "tax.association"
def self.object_name
"tax.association"
end
# Finds a tax association object by PaymentIntent id.
def self.find(params = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/tax/associations/find",
params: params,
opts: opts
)
end
end
end
end