Skip to content

Commit

Permalink
Update generated code for v1463
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jan 27, 2025
1 parent 0cb23f6 commit 740324b
Show file tree
Hide file tree
Showing 52 changed files with 125 additions and 150 deletions.
25 changes: 0 additions & 25 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1455
v1463
8 changes: 4 additions & 4 deletions lib/stripe/resources/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def self.create(params = {}, opts = {})
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
#
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
def self.delete(id, params = {}, opts = {})
def self.delete(account, params = {}, opts = {})
request_stripe_object(
method: :delete,
path: format("/v1/accounts/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/accounts/%<account>s", { account: CGI.escape(account) }),
params: params,
opts: opts
)
Expand Down Expand Up @@ -138,10 +138,10 @@ def self.reject(account, params = {}, opts = {})
#
# To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
# [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
def self.update(id, params = {}, opts = {})
def self.update(account, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/accounts/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/accounts/%<account>s", { account: CGI.escape(account) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/apple_pay_domain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ def self.create(params = {}, opts = {})
end

# Delete an apple pay domain.
def self.delete(id, params = {}, opts = {})
def self.delete(domain, params = {}, opts = {})
request_stripe_object(
method: :delete,
path: format("/v1/apple_pay/domains/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/apple_pay/domains/%<domain>s", { domain: CGI.escape(domain) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/billing_portal/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def self.list(params = {}, opts = {})
end

# Updates a configuration that describes the functionality of the customer portal.
def self.update(id, params = {}, opts = {})
def self.update(configuration, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/billing_portal/configurations/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/billing_portal/configurations/%<configuration>s", { configuration: CGI.escape(configuration) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/charge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def self.search_auto_paging_each(params = {}, opts = {}, &blk)
end

# Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
def self.update(id, params = {}, opts = {})
def self.update(charge, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/charges/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/charges/%<charge>s", { charge: CGI.escape(charge) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/checkout/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def self.list_line_items(session, params = {}, opts = {})
end

# Updates a Session object.
def self.update(id, params = {}, opts = {})
def self.update(session, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/checkout/sessions/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/checkout/sessions/%<session>s", { session: CGI.escape(session) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/climate/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def self.list(params = {}, opts = {})
end

# Updates the specified order by setting the values of the parameters passed.
def self.update(id, params = {}, opts = {})
def self.update(order, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/climate/orders/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/climate/orders/%<order>s", { order: CGI.escape(order) }),
params: params,
opts: opts
)
Expand Down
8 changes: 4 additions & 4 deletions lib/stripe/resources/coupon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ def self.create(params = {}, opts = {})
end

# You can delete coupons via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can't redeem the coupon. You can also delete coupons via the API.
def self.delete(id, params = {}, opts = {})
def self.delete(coupon, params = {}, opts = {})
request_stripe_object(
method: :delete,
path: format("/v1/coupons/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/coupons/%<coupon>s", { coupon: CGI.escape(coupon) }),
params: params,
opts: opts
)
Expand All @@ -49,10 +49,10 @@ def self.list(params = {}, opts = {})
end

# Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable.
def self.update(id, params = {}, opts = {})
def self.update(coupon, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/coupons/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/coupons/%<coupon>s", { coupon: CGI.escape(coupon) }),
params: params,
opts: opts
)
Expand Down
8 changes: 4 additions & 4 deletions lib/stripe/resources/customer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def self.create_funding_instructions(customer, params = {}, opts = {})
end

# Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.
def self.delete(id, params = {}, opts = {})
def self.delete(customer, params = {}, opts = {})
request_stripe_object(
method: :delete,
path: format("/v1/customers/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/customers/%<customer>s", { customer: CGI.escape(customer) }),
params: params,
opts: opts
)
Expand Down Expand Up @@ -157,10 +157,10 @@ def self.search_auto_paging_each(params = {}, opts = {}, &blk)
# Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer's active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer's current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior.
#
# This request accepts mostly the same arguments as the customer creation call.
def self.update(id, params = {}, opts = {})
def self.update(customer, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/customers/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/customers/%<customer>s", { customer: CGI.escape(customer) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/dispute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ def self.list(params = {}, opts = {})
# When you get a dispute, contacting your customer is always the best first step. If that doesn't work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your [dashboard](https://dashboard.stripe.com/disputes), but if you prefer, you can use the API to submit evidence programmatically.
#
# Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://stripe.com/docs/disputes/categories).
def self.update(id, params = {}, opts = {})
def self.update(dispute, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/disputes/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/disputes/%<dispute>s", { dispute: CGI.escape(dispute) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/ephemeral_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ def self.object_name
end

# Invalidates a short-lived API key for a given resource.
def self.delete(id, params = {}, opts = {})
def self.delete(key, params = {}, opts = {})
request_stripe_object(
method: :delete,
path: format("/v1/ephemeral_keys/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/ephemeral_keys/%<key>s", { key: CGI.escape(key) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/file_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def self.list(params = {}, opts = {})
end

# Updates an existing file link object. Expired links can no longer be updated.
def self.update(id, params = {}, opts = {})
def self.update(link, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/file_links/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/file_links/%<link>s", { link: CGI.escape(link) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/identity/verification_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ def self.redact(session, params = {}, opts = {})
#
# When the session status is requires_input, you can use this method to update the
# verification check and options.
def self.update(id, params = {}, opts = {})
def self.update(session, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/identity/verification_sessions/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/identity/verification_sessions/%<session>s", { session: CGI.escape(session) }),
params: params,
opts: opts
)
Expand Down
8 changes: 4 additions & 4 deletions lib/stripe/resources/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ def self.create_preview(params = {}, opts = {})
end

# Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://stripe.com/docs/api#void_invoice).
def self.delete(id, params = {}, opts = {})
def self.delete(invoice, params = {}, opts = {})
request_stripe_object(
method: :delete,
path: format("/v1/invoices/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/invoices/%<invoice>s", { invoice: CGI.escape(invoice) }),
params: params,
opts: opts
)
Expand Down Expand Up @@ -254,10 +254,10 @@ def self.upcoming(params = {}, opts = {})
# If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
# sending reminders for, or [automatically reconciling](https://stripe.com/docs/billing/invoices/reconciliation) invoices, pass
# auto_advance=false.
def self.update(id, params = {}, opts = {})
def self.update(invoice, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/invoices/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/invoices/%<invoice>s", { invoice: CGI.escape(invoice) }),
params: params,
opts: opts
)
Expand Down
8 changes: 4 additions & 4 deletions lib/stripe/resources/invoice_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def self.create(params = {}, opts = {})
end

# Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice.
def self.delete(id, params = {}, opts = {})
def self.delete(invoiceitem, params = {}, opts = {})
request_stripe_object(
method: :delete,
path: format("/v1/invoiceitems/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/invoiceitems/%<invoiceitem>s", { invoiceitem: CGI.escape(invoiceitem) }),
params: params,
opts: opts
)
Expand All @@ -55,10 +55,10 @@ def self.list(params = {}, opts = {})
end

# Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed.
def self.update(id, params = {}, opts = {})
def self.update(invoiceitem, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/invoiceitems/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/invoiceitems/%<invoiceitem>s", { invoiceitem: CGI.escape(invoiceitem) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/invoice_line_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ def self.object_name
# so they can only be updated through this endpoint. Other fields, such as amount, live on both the invoice
# item and the invoice line item, so updates on this endpoint will propagate to the invoice item as well.
# Updating an invoice's line item is only possible before the invoice is finalized.
def self.update(id, params = {}, opts = {})
def self.update(invoice, line_item_id, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/invoices/%<invoice>s/lines/%<id>s", { invoice: CGI.escape(invoice), id: CGI.escape(id) }),
path: format("/v1/invoices/%<invoice>s/lines/%<line_item_id>s", { invoice: CGI.escape(invoice), line_item_id: CGI.escape(line_item_id) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/issuing/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ def self.list(params = {}, opts = {})
end

# Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
def self.update(id, params = {}, opts = {})
def self.update(authorization, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/issuing/authorizations/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/issuing/authorizations/%<authorization>s", { authorization: CGI.escape(authorization) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/issuing/card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def self.list(params = {}, opts = {})
end

# Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
def self.update(id, params = {}, opts = {})
def self.update(card, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/issuing/cards/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/issuing/cards/%<card>s", { card: CGI.escape(card) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/issuing/cardholder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def self.list(params = {}, opts = {})
end

# Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
def self.update(id, params = {}, opts = {})
def self.update(cardholder, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/issuing/cardholders/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/issuing/cardholders/%<cardholder>s", { cardholder: CGI.escape(cardholder) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/issuing/dispute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def self.submit(dispute, params = {}, opts = {})
end

# Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string.
def self.update(id, params = {}, opts = {})
def self.update(dispute, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/issuing/disputes/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/issuing/disputes/%<dispute>s", { dispute: CGI.escape(dispute) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/issuing/personalization_design.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def self.list(params = {}, opts = {})
end

# Updates a card personalization object.
def self.update(id, params = {}, opts = {})
def self.update(personalization_design, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/issuing/personalization_designs/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/issuing/personalization_designs/%<personalization_design>s", { personalization_design: CGI.escape(personalization_design) }),
params: params,
opts: opts
)
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/issuing/token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def self.list(params = {}, opts = {})
end

# Attempts to update the specified Issuing Token object to the status specified.
def self.update(id, params = {}, opts = {})
def self.update(token, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/issuing/tokens/%<id>s", { id: CGI.escape(id) }),
path: format("/v1/issuing/tokens/%<token>s", { token: CGI.escape(token) }),
params: params,
opts: opts
)
Expand Down
Loading

0 comments on commit 740324b

Please sign in to comment.