From f1b5b73eaf50769be6b0c4639f7cb02b66f6d3ce Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 8 Jun 2023 11:43:22 -0700 Subject: [PATCH 1/3] Update generated code (#1226) * Update generated code for v358 * Update generated code for v376 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/resources/charge.rb | 9 ++++----- lib/stripe/resources/login_link.rb | 1 + lib/stripe/resources/token.rb | 2 -- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d646e140..7dc29593 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v353 \ No newline at end of file +v376 \ No newline at end of file diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index ebdc74b5..c8ca474b 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -2,11 +2,10 @@ # frozen_string_literal: true module Stripe - # To charge a credit or a debit card, you create a `Charge` object. You can - # retrieve and refund individual charges as well as list all charges. Charges - # are identified by a unique, random ID. - # - # Related guide: [Accept a payment with the Charges API](https://stripe.com/docs/payments/accept-a-payment-charges) + # The `Charge` object represents a single attempt to move money into your Stripe account. + # PaymentIntent confirmation is the most common way to create Charges, but transferring + # money to a different Stripe account through Connect also creates Charges. + # Some legacy payment flows create Charges directly, which is not recommended for new integrations. class Charge < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List diff --git a/lib/stripe/resources/login_link.rb b/lib/stripe/resources/login_link.rb index 40e7221a..1196ce7b 100644 --- a/lib/stripe/resources/login_link.rb +++ b/lib/stripe/resources/login_link.rb @@ -2,6 +2,7 @@ # frozen_string_literal: true module Stripe + # Login Links are single-use login link for an Express account to access their Stripe dashboard. class LoginLink < APIResource OBJECT_NAME = "login_link" diff --git a/lib/stripe/resources/token.rb b/lib/stripe/resources/token.rb index 0af31f33..2c6032ef 100644 --- a/lib/stripe/resources/token.rb +++ b/lib/stripe/resources/token.rb @@ -22,8 +22,6 @@ module Stripe # objects or [Custom accounts](https://stripe.com/docs/api#external_accounts). Note that # [Radar](https://stripe.com/docs/radar), our integrated solution for automatic fraud protection, # performs best with integrations that use client-side tokenization. - # - # Related guide: [Accept a payment with Charges and Tokens](https://stripe.com/docs/payments/accept-a-payment-charges#web-create-token) class Token < APIResource extend Stripe::APIOperations::Create From a9d46a306b579a3184257ad36cc4d2139e912131 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 13 Jun 2023 13:52:26 -0700 Subject: [PATCH 2/3] Update generated code for v379 (#1230) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/resources/invoice.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7dc29593..e55c9722 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v376 \ No newline at end of file +v379 \ No newline at end of file diff --git a/lib/stripe/resources/invoice.rb b/lib/stripe/resources/invoice.rb index aaa29055..edea63ed 100644 --- a/lib/stripe/resources/invoice.rb +++ b/lib/stripe/resources/invoice.rb @@ -11,7 +11,7 @@ module Stripe # If your invoice is configured to be billed through automatic charges, # Stripe automatically finalizes your invoice and attempts payment. Note # that finalizing the invoice, - # [when automatic](https://stripe.com/docs/billing/invoices/workflow/#auto_advance), does + # [when automatic](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection), does # not happen immediately as the invoice is created. Stripe waits # until one hour after the last webhook was successfully sent (or the last # webhook timed out after failing). If you (and the platforms you may have From 24801210b9f7a2479b7d2f6abf9ac3c542a0133c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 22:34:36 +0000 Subject: [PATCH 3/3] Update generated code for v387 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/reversal.rb | 4 ++-- lib/stripe/resources/transfer.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 86e86195..f135f6e0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v385 \ No newline at end of file +v387 \ No newline at end of file diff --git a/lib/stripe/resources/reversal.rb b/lib/stripe/resources/reversal.rb index ceef154a..e459a246 100644 --- a/lib/stripe/resources/reversal.rb +++ b/lib/stripe/resources/reversal.rb @@ -10,11 +10,11 @@ module Stripe # Reversing a transfer that was made for a [destination # charge](https://stripe.com/docs/connect/destination-charges) is allowed only up to the amount of # the charge. It is possible to reverse a - # [transfer_group](https://stripe.com/docs/connect/charges-transfers#transfer-options) + # [transfer_group](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) # transfer only if the destination account has enough balance to cover the # reversal. # - # Related guide: [Reversing transfers](https://stripe.com/docs/connect/charges-transfers#reversing-transfers) + # Related guide: [Reversing transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#reversing-transfers) class Reversal < APIResource extend Stripe::APIOperations::List include Stripe::APIOperations::Save diff --git a/lib/stripe/resources/transfer.rb b/lib/stripe/resources/transfer.rb index 73946ed7..b8beb46f 100644 --- a/lib/stripe/resources/transfer.rb +++ b/lib/stripe/resources/transfer.rb @@ -11,7 +11,7 @@ module Stripe # information, read about the # [transfer/payout split](https://stripe.com/docs/transfer-payout-split). # - # Related guide: [Creating separate charges and transfers](https://stripe.com/docs/connect/charges-transfers) + # Related guide: [Creating separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) class Transfer < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List