Skip to content

Commit

Permalink
fix!: operation name
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Jul 24, 2024
1 parent 44cf0e4 commit 361d871
Show file tree
Hide file tree
Showing 116 changed files with 1,235 additions and 987 deletions.
51 changes: 27 additions & 24 deletions lib/generated/account.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ defmodule Stripe.Account do
)

(
@typedoc "The company's primary address."
@typedoc "The individual's primary address."
@type address :: %{
optional(:city) => binary,
optional(:country) => binary,
Expand All @@ -78,7 +78,7 @@ defmodule Stripe.Account do
)

(
@typedoc "The Kana variation of the the individual's primary address (Japan only)."
@typedoc "The Kana variation of the company's primary address (Japan only)."
@type address_kana :: %{
optional(:city) => binary,
optional(:country) => binary,
Expand All @@ -91,7 +91,7 @@ defmodule Stripe.Account do
)

(
@typedoc "The Kanji variation of the company's primary address (Japan only)."
@typedoc "The Kanji variation of the the individual's primary address (Japan only)."
@type address_kanji :: %{
optional(:city) => binary,
optional(:country) => binary,
Expand Down Expand Up @@ -217,8 +217,8 @@ defmodule Stripe.Account do
)

(
@typedoc "Settings specific to the account's use of the Card Issuing product."
@type card_issuing :: %{optional(:tos_acceptance) => tos_acceptance}
@typedoc "The card_issuing capability."
@type card_issuing :: %{optional(:requested) => boolean}
)

(
Expand Down Expand Up @@ -583,7 +583,7 @@ defmodule Stripe.Account do
)

(
@typedoc "Details on the account's acceptance of the Stripe Treasury Services Agreement."
@typedoc "Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/docs/issuing/connect/tos_acceptance)."
@type tos_acceptance :: %{
optional(:date) => integer,
optional(:ip) => binary,
Expand All @@ -607,8 +607,11 @@ defmodule Stripe.Account do
)

(
@typedoc "Information on the verification state of the company."
@type verification :: %{optional(:document) => document}
@typedoc "The individual's verification document information."
@type verification :: %{
optional(:additional_document) => additional_document,
optional(:document) => document
}
)

(
Expand All @@ -621,9 +624,9 @@ defmodule Stripe.Account do

@doc "<p>Retrieves the details of an account.</p>\n\n#### Details\n\n * Method: `get`\n * Path: `/v1/account`\n"
(
@spec retrieve(params :: %{optional(:expand) => list(binary)}, opts :: Keyword.t()) ::
@spec get_account(params :: %{optional(:expand) => list(binary)}, opts :: Keyword.t()) ::
{:ok, Stripe.Account.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def retrieve(params \\ %{}, opts \\ []) do
def get_account(params \\ %{}, opts \\ []) do
path = Stripe.OpenApi.Path.replace_path_params("/v1/account", [], [])

Stripe.Request.new_request(opts)
Expand All @@ -640,7 +643,7 @@ defmodule Stripe.Account do

@doc "<p>Updates a <a href=\"/docs/connect/accounts\">connected account</a> by setting the values of the parameters passed. Any parameters not provided are\nleft unchanged.</p>\n\n<p>For Custom accounts, you can update any information on the account. For other accounts, you can update all information until that\naccount has started to go through Connect Onboarding. Once you create an <a href=\"/docs/api/account_links\">Account Link</a>\nfor a Standard or Express account, some parameters can no longer be changed. These are marked as <strong>Custom Only</strong> or <strong>Custom and Express</strong>\nbelow.</p>\n\n<p>To update your own account, use the <a href=\"https://dashboard.stripe.com/settings/account\">Dashboard</a>. Refer to our\n<a href=\"/docs/connect/updating-accounts\">Connect</a> documentation to learn more about updating accounts.</p>\n\n#### Details\n\n * Method: `post`\n * Path: `/v1/accounts/{account}`\n"
(
@spec update(
@spec post_accounts_account(
account :: binary(),
params :: %{
optional(:account_token) => binary,
Expand All @@ -661,7 +664,7 @@ defmodule Stripe.Account do
},
opts :: Keyword.t()
) :: {:ok, Stripe.Account.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def update(account, params \\ %{}, opts \\ []) do
def post_accounts_account(account, params \\ %{}, opts \\ []) do
path =
Stripe.OpenApi.Path.replace_path_params(
"/v1/accounts/{account}",
Expand Down Expand Up @@ -697,7 +700,7 @@ defmodule Stripe.Account do

@doc "<p>Returns a list of accounts connected to your platform via <a href=\"/docs/connect\">Connect</a>. If you’re not a platform, the list is empty.</p>\n\n#### Details\n\n * Method: `get`\n * Path: `/v1/accounts`\n"
(
@spec list(
@spec get_accounts(
params :: %{
optional(:created) => created | integer,
optional(:ending_before) => binary,
Expand All @@ -710,7 +713,7 @@ defmodule Stripe.Account do
{:ok, Stripe.List.t(Stripe.Account.t())}
| {:error, Stripe.ApiErrors.t()}
| {:error, term()}
def list(params \\ %{}, opts \\ []) do
def get_accounts(params \\ %{}, opts \\ []) do
path = Stripe.OpenApi.Path.replace_path_params("/v1/accounts", [], [])

Stripe.Request.new_request(opts)
Expand All @@ -727,7 +730,7 @@ defmodule Stripe.Account do

@doc "<p>With <a href=\"/docs/connect\">Connect</a>, you can create Stripe accounts for your users.\nTo do this, you’ll first need to <a href=\"https://dashboard.stripe.com/account/applications/settings\">register your platform</a>.</p>\n\n<p>If you’ve already collected information for your connected accounts, you <a href=\"/docs/connect/best-practices#onboarding\">can prefill that information</a> when\ncreating the account. Connect Onboarding won’t ask for the prefilled information during account onboarding.\nYou can prefill any information on the account.</p>\n\n#### Details\n\n * Method: `post`\n * Path: `/v1/accounts`\n"
(
@spec create(
@spec post_accounts(
params :: %{
optional(:account_token) => binary,
optional(:business_profile) => business_profile,
Expand All @@ -749,7 +752,7 @@ defmodule Stripe.Account do
},
opts :: Keyword.t()
) :: {:ok, Stripe.Account.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def create(params \\ %{}, opts \\ []) do
def post_accounts(params \\ %{}, opts \\ []) do
path = Stripe.OpenApi.Path.replace_path_params("/v1/accounts", [], [])

Stripe.Request.new_request(opts)
Expand All @@ -766,9 +769,9 @@ defmodule Stripe.Account do

@doc "<p>With <a href=\"/docs/connect\">Connect</a>, you can delete accounts you manage.</p>\n\n<p>Accounts created using test-mode keys can be deleted at any time. Standard accounts created using live-mode keys cannot be deleted. Custom or Express accounts created using live-mode keys can only be deleted once all balances are zero.</p>\n\n<p>If you want to delete your own account, use the <a href=\"https://dashboard.stripe.com/settings/account\">account information tab in your account settings</a> instead.</p>\n\n#### Details\n\n * Method: `delete`\n * Path: `/v1/accounts/{account}`\n"
(
@spec delete(account :: binary(), opts :: Keyword.t()) ::
@spec delete_accounts_account(account :: binary(), opts :: Keyword.t()) ::
{:ok, Stripe.DeletedAccount.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def delete(account, opts \\ []) do
def delete_accounts_account(account, opts \\ []) do
path =
Stripe.OpenApi.Path.replace_path_params(
"/v1/accounts/{account}",
Expand Down Expand Up @@ -803,12 +806,12 @@ defmodule Stripe.Account do

@doc "<p>With <a href=\"/docs/connect\">Connect</a>, you may flag accounts as suspicious.</p>\n\n<p>Test-mode Custom and Express accounts can be rejected at any time. Accounts created using live-mode keys may only be rejected once all balances are zero.</p>\n\n#### Details\n\n * Method: `post`\n * Path: `/v1/accounts/{account}/reject`\n"
(
@spec reject(
@spec post_accounts_account_reject(
account :: binary(),
params :: %{optional(:expand) => list(binary), optional(:reason) => binary},
opts :: Keyword.t()
) :: {:ok, Stripe.Account.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def reject(account, params \\ %{}, opts \\ []) do
def post_accounts_account_reject(account, params \\ %{}, opts \\ []) do
path =
Stripe.OpenApi.Path.replace_path_params(
"/v1/accounts/{account}/reject",
Expand Down Expand Up @@ -844,7 +847,7 @@ defmodule Stripe.Account do

@doc "<p>Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.</p>\n\n#### Details\n\n * Method: `get`\n * Path: `/v1/accounts/{account}/persons`\n"
(
@spec persons(
@spec get_accounts_account_persons(
account :: binary(),
params :: %{
optional(:ending_before) => binary,
Expand All @@ -858,7 +861,7 @@ defmodule Stripe.Account do
{:ok, Stripe.List.t(Stripe.Person.t())}
| {:error, Stripe.ApiErrors.t()}
| {:error, term()}
def persons(account, params \\ %{}, opts \\ []) do
def get_accounts_account_persons(account, params \\ %{}, opts \\ []) do
path =
Stripe.OpenApi.Path.replace_path_params(
"/v1/accounts/{account}/persons",
Expand Down Expand Up @@ -894,15 +897,15 @@ defmodule Stripe.Account do

@doc "<p>Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.</p>\n\n#### Details\n\n * Method: `get`\n * Path: `/v1/accounts/{account}/capabilities`\n"
(
@spec capabilities(
@spec get_accounts_account_capabilities(
account :: binary(),
params :: %{optional(:expand) => list(binary)},
opts :: Keyword.t()
) ::
{:ok, Stripe.List.t(Stripe.Capability.t())}
| {:error, Stripe.ApiErrors.t()}
| {:error, term()}
def capabilities(account, params \\ %{}, opts \\ []) do
def get_accounts_account_capabilities(account, params \\ %{}, opts \\ []) do
path =
Stripe.OpenApi.Path.replace_path_params(
"/v1/accounts/{account}/capabilities",
Expand Down
4 changes: 2 additions & 2 deletions lib/generated/account_link.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule Stripe.AccountLink do

@doc "<p>Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.</p>\n\n#### Details\n\n * Method: `post`\n * Path: `/v1/account_links`\n"
(
@spec create(
@spec post_account_links(
params :: %{
optional(:account) => binary,
optional(:collect) => :currently_due | :eventually_due,
Expand All @@ -25,7 +25,7 @@ defmodule Stripe.AccountLink do
},
opts :: Keyword.t()
) :: {:ok, Stripe.AccountLink.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def create(params \\ %{}, opts \\ []) do
def post_account_links(params \\ %{}, opts \\ []) do
path = Stripe.OpenApi.Path.replace_path_params("/v1/account_links", [], [])

Stripe.Request.new_request(opts)
Expand Down
4 changes: 2 additions & 2 deletions lib/generated/account_session.ex
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ defmodule Stripe.AccountSession do

@doc "<p>Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.</p>\n\n#### Details\n\n * Method: `post`\n * Path: `/v1/account_sessions`\n"
(
@spec create(
@spec post_account_sessions(
params :: %{
optional(:account) => binary,
optional(:components) => components,
Expand All @@ -69,7 +69,7 @@ defmodule Stripe.AccountSession do
opts :: Keyword.t()
) ::
{:ok, Stripe.AccountSession.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def create(params \\ %{}, opts \\ []) do
def post_account_sessions(params \\ %{}, opts \\ []) do
path = Stripe.OpenApi.Path.replace_path_params("/v1/account_sessions", [], [])

Stripe.Request.new_request(opts)
Expand Down
16 changes: 8 additions & 8 deletions lib/generated/apple_pay_domain.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule Stripe.ApplePayDomain do

@doc "<p>List apple pay domains.</p>\n\n#### Details\n\n * Method: `get`\n * Path: `/v1/apple_pay/domains`\n"
(
@spec list(
@spec get_apple_pay_domains(
params :: %{
optional(:domain_name) => binary,
optional(:ending_before) => binary,
Expand All @@ -32,7 +32,7 @@ defmodule Stripe.ApplePayDomain do
{:ok, Stripe.List.t(Stripe.ApplePayDomain.t())}
| {:error, Stripe.ApiErrors.t()}
| {:error, term()}
def list(params \\ %{}, opts \\ []) do
def get_apple_pay_domains(params \\ %{}, opts \\ []) do
path = Stripe.OpenApi.Path.replace_path_params("/v1/apple_pay/domains", [], [])

Stripe.Request.new_request(opts)
Expand All @@ -49,12 +49,12 @@ defmodule Stripe.ApplePayDomain do

@doc "<p>Create an apple pay domain.</p>\n\n#### Details\n\n * Method: `post`\n * Path: `/v1/apple_pay/domains`\n"
(
@spec create(
@spec post_apple_pay_domains(
params :: %{optional(:domain_name) => binary, optional(:expand) => list(binary)},
opts :: Keyword.t()
) ::
{:ok, Stripe.ApplePayDomain.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def create(params \\ %{}, opts \\ []) do
def post_apple_pay_domains(params \\ %{}, opts \\ []) do
path = Stripe.OpenApi.Path.replace_path_params("/v1/apple_pay/domains", [], [])

Stripe.Request.new_request(opts)
Expand All @@ -71,13 +71,13 @@ defmodule Stripe.ApplePayDomain do

@doc "<p>Retrieve an apple pay domain.</p>\n\n#### Details\n\n * Method: `get`\n * Path: `/v1/apple_pay/domains/{domain}`\n"
(
@spec retrieve(
@spec get_apple_pay_domains_domain(
domain :: binary(),
params :: %{optional(:expand) => list(binary)},
opts :: Keyword.t()
) ::
{:ok, Stripe.ApplePayDomain.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def retrieve(domain, params \\ %{}, opts \\ []) do
def get_apple_pay_domains_domain(domain, params \\ %{}, opts \\ []) do
path =
Stripe.OpenApi.Path.replace_path_params(
"/v1/apple_pay/domains/{domain}",
Expand Down Expand Up @@ -113,11 +113,11 @@ defmodule Stripe.ApplePayDomain do

@doc "<p>Delete an apple pay domain.</p>\n\n#### Details\n\n * Method: `delete`\n * Path: `/v1/apple_pay/domains/{domain}`\n"
(
@spec delete(domain :: binary(), opts :: Keyword.t()) ::
@spec delete_apple_pay_domains_domain(domain :: binary(), opts :: Keyword.t()) ::
{:ok, Stripe.DeletedApplePayDomain.t()}
| {:error, Stripe.ApiErrors.t()}
| {:error, term()}
def delete(domain, opts \\ []) do
def delete_apple_pay_domains_domain(domain, opts \\ []) do
path =
Stripe.OpenApi.Path.replace_path_params(
"/v1/apple_pay/domains/{domain}",
Expand Down
8 changes: 4 additions & 4 deletions lib/generated/application_fee.ex
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ defmodule Stripe.ApplicationFee do

@doc "<p>Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.</p>\n\n#### Details\n\n * Method: `get`\n * Path: `/v1/application_fees`\n"
(
@spec list(
@spec get_application_fees(
params :: %{
optional(:charge) => binary,
optional(:created) => created | integer,
Expand All @@ -67,7 +67,7 @@ defmodule Stripe.ApplicationFee do
{:ok, Stripe.List.t(Stripe.ApplicationFee.t())}
| {:error, Stripe.ApiErrors.t()}
| {:error, term()}
def list(params \\ %{}, opts \\ []) do
def get_application_fees(params \\ %{}, opts \\ []) do
path = Stripe.OpenApi.Path.replace_path_params("/v1/application_fees", [], [])

Stripe.Request.new_request(opts)
Expand All @@ -84,13 +84,13 @@ defmodule Stripe.ApplicationFee do

@doc "<p>Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.</p>\n\n#### Details\n\n * Method: `get`\n * Path: `/v1/application_fees/{id}`\n"
(
@spec retrieve(
@spec get_application_fees_id(
id :: binary(),
params :: %{optional(:expand) => list(binary)},
opts :: Keyword.t()
) ::
{:ok, Stripe.ApplicationFee.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
def retrieve(id, params \\ %{}, opts \\ []) do
def get_application_fees_id(id, params \\ %{}, opts \\ []) do
path =
Stripe.OpenApi.Path.replace_path_params(
"/v1/application_fees/{id}",
Expand Down
Loading

0 comments on commit 361d871

Please sign in to comment.