From 0f0d604ca8419474bfc22893795d4646ffa85d83 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 14 Sep 2023 17:49:24 -0700 Subject: [PATCH 1/5] Update generated code (#1272) * Update generated code for v527 * Update generated code for v530 * Update generated code for v531 * Update generated code for v532 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/stripe/object_types.rb | 1 + lib/stripe/resources.rb | 1 + lib/stripe/resources/balance_transaction.rb | 2 +- lib/stripe/resources/customer.rb | 2 +- lib/stripe/resources/dispute.rb | 6 +- lib/stripe/resources/event.rb | 33 +-- .../resources/payment_method_configuration.rb | 13 + test/stripe/generated_examples_test.rb | 260 ++++++++++++++++++ 9 files changed, 297 insertions(+), 23 deletions(-) create mode 100644 lib/stripe/resources/payment_method_configuration.rb diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ca2b1285d..e9281bf5d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v525 \ No newline at end of file +v532 \ No newline at end of file diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index 0b4b2ecac..c22207bff 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -66,6 +66,7 @@ def self.object_names_to_classes PaymentIntent::OBJECT_NAME => PaymentIntent, PaymentLink::OBJECT_NAME => PaymentLink, PaymentMethod::OBJECT_NAME => PaymentMethod, + PaymentMethodConfiguration::OBJECT_NAME => PaymentMethodConfiguration, PaymentMethodDomain::OBJECT_NAME => PaymentMethodDomain, Payout::OBJECT_NAME => Payout, Person::OBJECT_NAME => Person, diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 276204a37..0d6a103b6 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -53,6 +53,7 @@ require "stripe/resources/payment_intent" require "stripe/resources/payment_link" require "stripe/resources/payment_method" +require "stripe/resources/payment_method_configuration" require "stripe/resources/payment_method_domain" require "stripe/resources/payout" require "stripe/resources/person" diff --git a/lib/stripe/resources/balance_transaction.rb b/lib/stripe/resources/balance_transaction.rb index a1a5b1d07..519feada7 100644 --- a/lib/stripe/resources/balance_transaction.rb +++ b/lib/stripe/resources/balance_transaction.rb @@ -3,7 +3,7 @@ module Stripe # Balance transactions represent funds moving through your Stripe account. - # They're created for every type of transaction that comes into or flows out of your Stripe account balance. + # Stripe creates them for every type of transaction that enters or leaves your Stripe account balance. # # Related guide: [Balance transaction types](https://stripe.com/docs/reports/balance-transaction-types) class BalanceTransaction < APIResource diff --git a/lib/stripe/resources/customer.rb b/lib/stripe/resources/customer.rb index fc74621bc..7b643fb76 100644 --- a/lib/stripe/resources/customer.rb +++ b/lib/stripe/resources/customer.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - # This object represents a customer of your business. It lets you create recurring charges and track payments that belong to the same customer. + # This object represents a customer of your business. Use it to create recurring charges and track payments that belong to the same customer. # # Related guide: [Save a card during payment](https://stripe.com/docs/payments/save-during-payment) class Customer < APIResource diff --git a/lib/stripe/resources/dispute.rb b/lib/stripe/resources/dispute.rb index 8f761c4dc..55e687726 100644 --- a/lib/stripe/resources/dispute.rb +++ b/lib/stripe/resources/dispute.rb @@ -3,10 +3,8 @@ module Stripe # A dispute occurs when a customer questions your charge with their card issuer. - # When this happens, you're given the opportunity to respond to the dispute with - # evidence that shows that the charge is legitimate. You can find more - # information about the dispute process in our [Disputes and - # Fraud](https://stripe.com/docs/disputes) documentation. + # When this happens, you have the opportunity to respond to the dispute with + # evidence that shows that the charge is legitimate. # # Related guide: [Disputes and fraud](https://stripe.com/docs/disputes) class Dispute < APIResource diff --git a/lib/stripe/resources/event.rb b/lib/stripe/resources/event.rb index d02134b18..d89ed826c 100644 --- a/lib/stripe/resources/event.rb +++ b/lib/stripe/resources/event.rb @@ -5,32 +5,33 @@ module Stripe # Events are our way of letting you know when something interesting happens in # your account. When an interesting event occurs, we create a new `Event` # object. For example, when a charge succeeds, we create a `charge.succeeded` - # event; and when an invoice payment attempt fails, we create an - # `invoice.payment_failed` event. Note that many API requests may cause multiple - # events to be created. For example, if you create a new subscription for a - # customer, you will receive both a `customer.subscription.created` event and a + # event, and when an invoice payment attempt fails, we create an + # `invoice.payment_failed` event. Certain API requests might create multiple + # events. For example, if you create a new subscription for a + # customer, you receive both a `customer.subscription.created` event and a # `charge.succeeded` event. # - # Events occur when the state of another API resource changes. The state of that - # resource at the time of the change is embedded in the event's data field. For - # example, a `charge.succeeded` event will contain a charge, and an - # `invoice.payment_failed` event will contain an invoice. + # Events occur when the state of another API resource changes. The event's data + # field embeds the resource's state at the time of the change. For + # example, a `charge.succeeded` event contains a charge, and an + # `invoice.payment_failed` event contains an invoice. # # As with other API resources, you can use endpoints to retrieve an # [individual event](https://stripe.com/docs/api#retrieve_event) or a [list of events](https://stripe.com/docs/api#list_events) # from the API. We also have a separate # [webhooks](http://en.wikipedia.org/wiki/Webhook) system for sending the - # `Event` objects directly to an endpoint on your server. Webhooks are managed - # in your - # [account settings](https://dashboard.stripe.com/account/webhooks), - # and our [Using Webhooks](https://stripe.com/docs/webhooks) guide will help you get set up. + # `Event` objects directly to an endpoint on your server. You can manage + # webhooks in your + # [account settings](https://dashboard.stripe.com/account/webhooks). Learn how + # to [listen for events] + # (/docs/webhooks) so that your integration can automatically trigger reactions. # - # When using [Connect](https://stripe.com/docs/connect), you can also receive notifications of - # events that occur in connected accounts. For these events, there will be an + # When using [Connect](https://stripe.com/docs/connect), you can also receive event notifications + # that occur in connected accounts. For these events, there's an # additional `account` attribute in the received `Event` object. # - # **NOTE:** Right now, access to events through the [Retrieve Event API](https://stripe.com/docs/api#retrieve_event) is - # guaranteed only for 30 days. + # We only guarantee access to events through the [Retrieve Event API](https://stripe.com/docs/api#retrieve_event) + # for 30 days. class Event < APIResource extend Stripe::APIOperations::List diff --git a/lib/stripe/resources/payment_method_configuration.rb b/lib/stripe/resources/payment_method_configuration.rb new file mode 100644 index 000000000..66928e003 --- /dev/null +++ b/lib/stripe/resources/payment_method_configuration.rb @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + # An object detailing payment method configurations. + class PaymentMethodConfiguration < APIResource + extend Stripe::APIOperations::Create + extend Stripe::APIOperations::List + include Stripe::APIOperations::Save + + OBJECT_NAME = "payment_method_configuration" + end +end diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index 34dbc0f01..cca383837 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -910,12 +910,113 @@ class CodegennedExampleTest < Test::Unit::TestCase assert_requested :post, "#{Stripe.api_base}/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx/approve?" end end + context "Issuing.Authorization.capture" do + should "support requests with args: authorization, capture_amount, close_authorization, purchase_details" do + Stripe::Issuing::Authorization::TestHelpers.capture( + "example_authorization", + { + capture_amount: 100, + close_authorization: true, + purchase_details: { + flight: { + departure_at: 1_633_651_200, + passenger_name: "John Doe", + refundable: true, + segments: [ + { + arrival_airport_code: "SFO", + carrier: "Delta", + departure_airport_code: "LAX", + flight_number: "DL100", + service_class: "Economy", + stopover_allowed: true, + }, + ], + travel_agency: "Orbitz", + }, + fuel: { + type: "diesel", + unit: "liter", + unit_cost_decimal: "3.5", + volume_decimal: "10", + }, + lodging: { + check_in_at: 1_633_651_200, + nights: 2, + }, + receipt: [ + { + description: "Room charge", + quantity: "1", + total: 200, + unit_cost: 200, + }, + ], + reference: "foo", + }, + } + ) + assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/authorizations/example_authorization/capture" + end + end + context "Issuing.Authorization.create" do + should "support requests with args: amount, amount_details, authorization_method, card, currency, is_amount_controllable, merchant_data, network_data, verification_data, wallet" do + Stripe::Issuing::Authorization::TestHelpers.create({ + amount: 100, + amount_details: { + atm_fee: 10, + cashback_amount: 5, + }, + authorization_method: "chip", + card: "foo", + currency: "usd", + is_amount_controllable: true, + merchant_data: { + category: "ac_refrigeration_repair", + city: "foo", + country: "bar", + name: "foo", + network_id: "bar", + postal_code: "foo", + state: "bar", + terminal_id: "foo", + }, + network_data: { acquiring_institution_id: "foo" }, + verification_data: { + address_line1_check: "mismatch", + address_postal_code_check: "match", + cvc_check: "match", + expiry_check: "mismatch", + }, + wallet: "apple_pay", + }) + assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/authorizations" + end + end context "Issuing.Authorization.decline" do should "support requests with args: id" do Stripe::Issuing::Authorization.decline("iauth_xxxxxxxxxxxxx") assert_requested :post, "#{Stripe.api_base}/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx/decline?" end end + context "Issuing.Authorization.expire" do + should "support requests with args: authorization" do + Stripe::Issuing::Authorization::TestHelpers.expire("example_authorization") + assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/authorizations/example_authorization/expire?" + end + end + context "Issuing.Authorization.increment" do + should "support requests with args: authorization, increment_amount, is_amount_controllable" do + Stripe::Issuing::Authorization::TestHelpers.increment( + "example_authorization", + { + increment_amount: 50, + is_amount_controllable: true, + } + ) + assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/authorizations/example_authorization/increment" + end + end context "Issuing.Authorization.list" do should "support requests with args: limit" do Stripe::Issuing::Authorization.list({ limit: 3 }) @@ -928,6 +1029,15 @@ class CodegennedExampleTest < Test::Unit::TestCase assert_requested :get, "#{Stripe.api_base}/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx?" end end + context "Issuing.Authorization.reverse" do + should "support requests with args: authorization, reverse_amount" do + Stripe::Issuing::Authorization::TestHelpers.reverse( + "example_authorization", + { reverse_amount: 20 } + ) + assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/authorizations/example_authorization/reverse" + end + end context "Issuing.Authorization.update" do should "support requests with args: metadata, id" do Stripe::Issuing::Authorization.update("iauth_xxxxxxxxxxxxx", { metadata: { order_id: "6735" } }) @@ -1054,12 +1164,132 @@ class CodegennedExampleTest < Test::Unit::TestCase assert_requested :post, "#{Stripe.api_base}/v1/issuing/disputes/idp_xxxxxxxxxxxxx/submit?" end end + context "Issuing.Transaction.create_force_capture" do + should "support requests with args: amount, card, currency, merchant_data, purchase_details" do + Stripe::Issuing::Transaction::TestHelpers.create_force_capture({ + amount: 100, + card: "foo", + currency: "usd", + merchant_data: { + category: "ac_refrigeration_repair", + city: "foo", + country: "US", + name: "foo", + network_id: "bar", + postal_code: "10001", + state: "NY", + terminal_id: "foo", + }, + purchase_details: { + flight: { + departure_at: 1_633_651_200, + passenger_name: "John Doe", + refundable: true, + segments: [ + { + arrival_airport_code: "SFO", + carrier: "Delta", + departure_airport_code: "LAX", + flight_number: "DL100", + service_class: "Economy", + stopover_allowed: true, + }, + ], + travel_agency: "Orbitz", + }, + fuel: { + type: "diesel", + unit: "liter", + unit_cost_decimal: "3.5", + volume_decimal: "10", + }, + lodging: { + check_in_at: 1_533_651_200, + nights: 2, + }, + receipt: [ + { + description: "Room charge", + quantity: "1", + total: 200, + unit_cost: 200, + }, + ], + reference: "foo", + }, + }) + assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/transactions/create_force_capture" + end + end + context "Issuing.Transaction.create_unlinked_refund" do + should "support requests with args: amount, card, currency, merchant_data, purchase_details" do + Stripe::Issuing::Transaction::TestHelpers.create_unlinked_refund({ + amount: 100, + card: "foo", + currency: "usd", + merchant_data: { + category: "ac_refrigeration_repair", + city: "foo", + country: "bar", + name: "foo", + network_id: "bar", + postal_code: "foo", + state: "bar", + terminal_id: "foo", + }, + purchase_details: { + flight: { + departure_at: 1_533_651_200, + passenger_name: "John Doe", + refundable: true, + segments: [ + { + arrival_airport_code: "SFO", + carrier: "Delta", + departure_airport_code: "LAX", + flight_number: "DL100", + service_class: "Economy", + stopover_allowed: true, + }, + ], + travel_agency: "Orbitz", + }, + fuel: { + type: "diesel", + unit: "liter", + unit_cost_decimal: "3.5", + volume_decimal: "10", + }, + lodging: { + check_in_at: 1_533_651_200, + nights: 2, + }, + receipt: [ + { + description: "Room charge", + quantity: "1", + total: 200, + unit_cost: 200, + }, + ], + reference: "foo", + }, + }) + assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/transactions/create_unlinked_refund" + end + end context "Issuing.Transaction.list" do should "support requests with args: limit" do Stripe::Issuing::Transaction.list({ limit: 3 }) assert_requested :get, "#{Stripe.api_base}/v1/issuing/transactions?limit=3" end end + context "Issuing.Transaction.refund" do + should "support requests with args: transaction, refund_amount" do + Stripe::Issuing::Transaction::TestHelpers.refund("example_transaction", { refund_amount: 50 }) + assert_requested :post, "#{Stripe.api_base}/v1/test_helpers/issuing/transactions/example_transaction/refund" + end + end context "Issuing.Transaction.retrieve" do should "support requests with args: id" do Stripe::Issuing::Transaction.retrieve("ipi_xxxxxxxxxxxxx") @@ -1272,6 +1502,36 @@ class CodegennedExampleTest < Test::Unit::TestCase assert_requested :post, "#{Stripe.api_base}/v1/payment_methods/pm_xxxxxxxxxxxxx" end end + context "PaymentMethodConfiguration.create" do + should "support requests with args: acss_debit, affirm" do + Stripe::PaymentMethodConfiguration.create({ + acss_debit: { display_preference: { preference: "none" } }, + affirm: { display_preference: { preference: "none" } }, + }) + assert_requested :post, "#{Stripe.api_base}/v1/payment_method_configurations" + end + end + context "PaymentMethodConfiguration.list" do + should "support requests with args: application" do + Stripe::PaymentMethodConfiguration.list({ application: "foo" }) + assert_requested :get, "#{Stripe.api_base}/v1/payment_method_configurations?application=foo" + end + end + context "PaymentMethodConfiguration.retrieve" do + should "support requests with args: configuration" do + Stripe::PaymentMethodConfiguration.retrieve("foo") + assert_requested :get, "#{Stripe.api_base}/v1/payment_method_configurations/foo?" + end + end + context "PaymentMethodConfiguration.update" do + should "support requests with args: configuration, acss_debit" do + Stripe::PaymentMethodConfiguration.update( + "foo", + { acss_debit: { display_preference: { preference: "on" } } } + ) + assert_requested :post, "#{Stripe.api_base}/v1/payment_method_configurations/foo" + end + end context "PaymentSource.create" do should "support requests with args: source, parent_id" do Stripe::Customer.create_source("cus_xxxxxxxxxxxxx", { source: "btok_xxxxxxxxxxxxx" }) From aad1a320c534bd44bf1d6d67222693e39dbb109e Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Thu, 14 Sep 2023 17:55:35 -0700 Subject: [PATCH 2/5] Bump version to 9.3.0 --- CHANGELOG.md | 8 ++++++++ VERSION | 2 +- lib/stripe/version.rb | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd2d5f9f2..b8f2f77ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # Changelog +## 9.3.0 - 2023-09-14 +* [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code + * Add support for new resource `PaymentMethodConfiguration` + * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration` +* [#1271](https://github.com/stripe/stripe-ruby/pull/1271) Update generated code + * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization` + * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction` + ## 9.2.0 - 2023-09-07 * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code * Add support for new resource `PaymentMethodDomain` diff --git a/VERSION b/VERSION index deeb3d66e..b13d146a7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -9.2.0 +9.3.0 diff --git a/lib/stripe/version.rb b/lib/stripe/version.rb index 12ea11129..ef5e2e87a 100644 --- a/lib/stripe/version.rb +++ b/lib/stripe/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Stripe - VERSION = "9.2.0" + VERSION = "9.3.0" end From 2e533be04d32fd0044289aa78a4bd53246f92c64 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 Sep 2023 22:25:24 +0000 Subject: [PATCH 3/5] Update generated code for v533 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/tax_id.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e9281bf5d..c5b7f77be 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v532 \ No newline at end of file +v533 \ No newline at end of file diff --git a/lib/stripe/resources/tax_id.rb b/lib/stripe/resources/tax_id.rb index 620ad62e4..07fecfebb 100644 --- a/lib/stripe/resources/tax_id.rb +++ b/lib/stripe/resources/tax_id.rb @@ -2,10 +2,10 @@ # frozen_string_literal: true module Stripe - # You can add one or multiple tax IDs to a [customer](https://stripe.com/docs/api/customers). - # A customer's tax IDs are displayed on invoices and credit notes issued for the customer. + # You can add one or multiple tax IDs to a [customer](https://stripe.com/docs/api/customers) or account. + # Customer and account tax IDs get displayed on related invoices and credit notes. # - # Related guide: [Customer tax identification numbers](https://stripe.com/docs/billing/taxes/tax-ids) + # Related guides: [Customer tax identification numbers](https://stripe.com/docs/billing/taxes/tax-ids), [Account tax IDs](https://stripe.com/docs/invoicing/connect#account-tax-ids) class TaxId < APIResource include Stripe::APIOperations::Delete extend Stripe::APIOperations::List From 0a0374b0a10afbbde81b83abca41aa14df4c75a2 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 23:52:46 +0000 Subject: [PATCH 4/5] Update generated code for v536 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/file.rb | 8 ++++---- lib/stripe/resources/file_link.rb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c5b7f77be..bb583f4b8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v533 \ No newline at end of file +v536 \ No newline at end of file diff --git a/lib/stripe/resources/file.rb b/lib/stripe/resources/file.rb index 44b5eee32..cfc2572a3 100644 --- a/lib/stripe/resources/file.rb +++ b/lib/stripe/resources/file.rb @@ -2,10 +2,10 @@ # frozen_string_literal: true module Stripe - # This is an object representing a file hosted on Stripe's servers. The - # file may have been uploaded by yourself using the [create file](https://stripe.com/docs/api#create_file) - # request (for example, when uploading dispute evidence) or it may have - # been created by Stripe (for example, the results of a [Sigma scheduled + # This object represents files hosted on Stripe's servers. You can upload + # files with the [create file](https://stripe.com/docs/api#create_file) request + # (for example, when uploading dispute evidence). Stripe also + # creates files independetly (for example, the results of a [Sigma scheduled # query](https://stripe.com/docs/api#scheduled_queries)). # # Related guide: [File upload guide](https://stripe.com/docs/file-upload) diff --git a/lib/stripe/resources/file_link.rb b/lib/stripe/resources/file_link.rb index 4211c0653..c664344ac 100644 --- a/lib/stripe/resources/file_link.rb +++ b/lib/stripe/resources/file_link.rb @@ -3,7 +3,7 @@ module Stripe # To share the contents of a `File` object with non-Stripe users, you can - # create a `FileLink`. `FileLink`s contain a URL that can be used to + # create a `FileLink`. `FileLink`s contain a URL that you can use to # retrieve the contents of the file without authentication. class FileLink < APIResource extend Stripe::APIOperations::Create From 7852b2faeb4941230138ff6e8b923a17fa19abbd Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Sep 2023 06:13:14 +0000 Subject: [PATCH 5/5] Update generated code for v540 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/person.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bb583f4b8..a98b1d0aa 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v536 \ No newline at end of file +v540 \ No newline at end of file diff --git a/lib/stripe/resources/person.rb b/lib/stripe/resources/person.rb index dae85cb41..4aaebf3e0 100644 --- a/lib/stripe/resources/person.rb +++ b/lib/stripe/resources/person.rb @@ -7,7 +7,7 @@ module Stripe # A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. # See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform prefilling and account onboarding steps. # - # Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information) + # Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/handling-api-verification#person-information) class Person < APIResource extend Stripe::APIOperations::List include Stripe::APIOperations::Save