Skip to content

Commit

Permalink
Quick patch to add back broken functionally to get connect account by id
Browse files Browse the repository at this point in the history
  • Loading branch information
d3mcfadden committed Dec 12, 2023
1 parent 91f3b9e commit 636dff0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions lib/generated/account.ex
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,37 @@ defmodule Stripe.Account do
|> Stripe.Request.put_method(:get)
|> Stripe.Request.make_request()
end

@spec retrieve_by_id(account :: binary, params :: %{optional(:expand) => list(binary)}, opts :: Keyword.t()) ::
{:ok, Stripe.Account.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def retrieve_by_id(account, params \\ %{}, opts \\ []) do
path =
Stripe.OpenApi.Path.replace_path_params(
"/v1/accounts/{account}",
[
%OpenApiGen.Blueprint.Parameter{
in: "path",
name: "account",
required: true,
schema: %OpenApiGen.Blueprint.Parameter.Schema{
name: "account",
title: nil,
type: "string",
items: [],
properties: [],
any_of: []
}
}
],
[account]
)

Stripe.Request.new_request(opts)
|> Stripe.Request.put_endpoint(path)
|> Stripe.Request.put_params(params)
|> Stripe.Request.put_method(:get)
|> Stripe.Request.make_request()
end
)
)

Expand Down

0 comments on commit 636dff0

Please sign in to comment.