From b39af8a58bcf76e4e3e868d81aa1f2788ec2a8a5 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 15 Feb 2024 21:27:13 +0000 Subject: [PATCH] Update generated code for v829 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/tax_id.rb | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 30af1cbc..5433dd90 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v828 \ No newline at end of file +v829 \ No newline at end of file diff --git a/lib/stripe/resources/tax_id.rb b/lib/stripe/resources/tax_id.rb index 246872d8..dad16243 100644 --- a/lib/stripe/resources/tax_id.rb +++ b/lib/stripe/resources/tax_id.rb @@ -30,21 +30,19 @@ module Stripe "'tax_id_id')`" end - # Deletes an existing tax_id object. def self.delete(id, params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/customers/%s/tax_ids/%s", { customer: CGI.escape(customer), id: CGI.escape(id) }), + path: "#{resource_url}/#{id}", params: params, opts: opts ) end - # Deletes an existing tax_id object. def delete(params = {}, opts = {}) request_stripe_object( method: :delete, - path: format("/v1/customers/%s/tax_ids/%s", { customer: CGI.escape(self["id"]), id: CGI.escape(id) }), + path: resource_url.to_s, params: params, opts: opts )