From bf748b23a1aa6a4729099f119b7dd342c4431143 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 Sep 2023 22:24:47 +0000 Subject: [PATCH 1/9] Update generated code for v533 --- OPENAPI_VERSION | 2 +- taxid.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e9281bf5d6..c5b7f77be3 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/taxid.go b/taxid.go index 167d64df50..1181c55a5b 100644 --- a/taxid.go +++ b/taxid.go @@ -133,10 +133,10 @@ type TaxIDVerification struct { VerifiedName string `json:"verified_name"` } -// 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) type TaxID struct { APIResource // Two-letter ISO code representing the country of the tax ID. From 208e32e355e37e4c42528f445525dba4c5d0ea42 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:18:46 +0000 Subject: [PATCH 2/9] Update generated code for v534 --- OPENAPI_VERSION | 2 +- checkout_session.go | 16 ++++++++++++++++ paymentlink.go | 16 ++++++++++++++++ person.go | 4 ++-- 4 files changed, 35 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c5b7f77be3..6f2275da08 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v533 \ No newline at end of file +v534 \ No newline at end of file diff --git a/checkout_session.go b/checkout_session.go index 216e913bef..348e21c386 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -818,12 +818,20 @@ type CheckoutSessionCustomTextSubmitParams struct { Message *string `form:"message"` } +// Custom text that should be displayed in place of the default terms of service agreement text. +type CheckoutSessionCustomTextTermsOfServiceAcceptanceParams struct { + // Text may be up to 1000 characters in length. + Message *string `form:"message"` +} + // Display additional text for your customers using custom text. type CheckoutSessionCustomTextParams struct { // Custom text that should be displayed alongside shipping address collection. ShippingAddress *CheckoutSessionCustomTextShippingAddressParams `form:"shipping_address"` // Custom text that should be displayed alongside the payment confirmation button. Submit *CheckoutSessionCustomTextSubmitParams `form:"submit"` + // Custom text that should be displayed in place of the default terms of service agreement text. + TermsOfServiceAcceptance *CheckoutSessionCustomTextTermsOfServiceAcceptanceParams `form:"terms_of_service_acceptance"` } // Controls what fields on Customer can be updated by the Checkout Session. Can only be provided when `customer` is provided. @@ -1948,11 +1956,19 @@ type CheckoutSessionCustomTextSubmit struct { // Text may be up to 1000 characters in length. Message string `json:"message"` } + +// Custom text that should be displayed in place of the default terms of service agreement text. +type CheckoutSessionCustomTextTermsOfServiceAcceptance struct { + // Text may be up to 1000 characters in length. + Message string `json:"message"` +} type CheckoutSessionCustomText struct { // Custom text that should be displayed alongside shipping address collection. ShippingAddress *CheckoutSessionCustomTextShippingAddress `json:"shipping_address"` // Custom text that should be displayed alongside the payment confirmation button. Submit *CheckoutSessionCustomTextSubmit `json:"submit"` + // Custom text that should be displayed in place of the default terms of service agreement text. + TermsOfServiceAcceptance *CheckoutSessionCustomTextTermsOfServiceAcceptance `json:"terms_of_service_acceptance"` } // The customer's tax IDs after a completed Checkout Session. diff --git a/paymentlink.go b/paymentlink.go index 0a1139e651..e2e2ec80e4 100644 --- a/paymentlink.go +++ b/paymentlink.go @@ -266,12 +266,20 @@ type PaymentLinkCustomTextSubmitParams struct { Message *string `form:"message"` } +// Custom text that should be displayed in place of the default terms of service agreement text. +type PaymentLinkCustomTextTermsOfServiceAcceptanceParams struct { + // Text may be up to 1000 characters in length. + Message *string `form:"message"` +} + // Display additional text for your customers using custom text. type PaymentLinkCustomTextParams struct { // Custom text that should be displayed alongside shipping address collection. ShippingAddress *PaymentLinkCustomTextShippingAddressParams `form:"shipping_address"` // Custom text that should be displayed alongside the payment confirmation button. Submit *PaymentLinkCustomTextSubmitParams `form:"submit"` + // Custom text that should be displayed in place of the default terms of service agreement text. + TermsOfServiceAcceptance *PaymentLinkCustomTextTermsOfServiceAcceptanceParams `form:"terms_of_service_acceptance"` } // Default custom fields to be displayed on invoices for this customer. @@ -590,11 +598,19 @@ type PaymentLinkCustomTextSubmit struct { // Text may be up to 1000 characters in length. Message string `json:"message"` } + +// Custom text that should be displayed in place of the default terms of service agreement text. +type PaymentLinkCustomTextTermsOfServiceAcceptance struct { + // Text may be up to 1000 characters in length. + Message string `json:"message"` +} type PaymentLinkCustomText struct { // Custom text that should be displayed alongside shipping address collection. ShippingAddress *PaymentLinkCustomTextShippingAddress `json:"shipping_address"` // Custom text that should be displayed alongside the payment confirmation button. Submit *PaymentLinkCustomTextSubmit `json:"submit"` + // Custom text that should be displayed in place of the default terms of service agreement text. + TermsOfServiceAcceptance *PaymentLinkCustomTextTermsOfServiceAcceptance `json:"terms_of_service_acceptance"` } // A list of up to 4 custom fields to be displayed on the invoice. diff --git a/person.go b/person.go index 88113c7703..3b509806ec 100644 --- a/person.go +++ b/person.go @@ -229,9 +229,9 @@ type PersonParams struct { FullNameAliases []*string `form:"full_name_aliases"` // The person's gender (International regulations require either "male" or "female"). Gender *string `form:"gender"` - // The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + // The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). IDNumber *string `form:"id_number"` - // The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + // The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). IDNumberSecondary *string `form:"id_number_secondary"` // The person's last name. LastName *string `form:"last_name"` From 737a5b453204b3193f3333ffac1c5e79b3b9f399 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 23:42:28 +0000 Subject: [PATCH 3/9] Update generated code for v535 --- OPENAPI_VERSION | 2 +- issuing_authorization.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6f2275da08..8a42724f2b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v534 \ No newline at end of file +v535 \ No newline at end of file diff --git a/issuing_authorization.go b/issuing_authorization.go index a3153a3aaa..51bdecc328 100644 --- a/issuing_authorization.go +++ b/issuing_authorization.go @@ -116,8 +116,8 @@ func (p *IssuingAuthorizationParams) AddMetadata(key string, value string) { p.Metadata[key] = value } -// Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow. -// You can also respond directly to the webhook request to approve an authorization (preferred). More details can be found [here](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). +// [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow. +// This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). type IssuingAuthorizationApproveParams struct { Params `form:"*"` // If the authorization's `pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization. Must be positive (use [`decline`](https://stripe.com/docs/api/issuing/authorizations/decline) to decline an authorization request). @@ -142,8 +142,8 @@ func (p *IssuingAuthorizationApproveParams) AddMetadata(key string, value string p.Metadata[key] = value } -// Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow. -// You can also respond directly to the webhook request to decline an authorization (preferred). More details can be found [here](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). +// [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow. +// This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). type IssuingAuthorizationDeclineParams struct { Params `form:"*"` // Specifies which fields in the response should be expanded. From 38f1a96868815747a37ae04a53ecfd0ab5fb6f3c 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:12 +0000 Subject: [PATCH 4/9] Update generated code for v536 --- OPENAPI_VERSION | 2 +- file.go | 34 +++++++++++++++++----------------- filelink.go | 8 ++++---- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8a42724f2b..bb583f4b83 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v535 \ No newline at end of file +v536 \ No newline at end of file diff --git a/file.go b/file.go index 26f00a88b1..313c951aa3 100644 --- a/file.go +++ b/file.go @@ -38,14 +38,14 @@ const ( FilePurposeTerminalReaderSplashscreen FilePurpose = "terminal_reader_splashscreen" ) -// Returns a list of the files that your account has access to. The files are returned sorted by creation date, with the most recently created files appearing first. +// Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top. type FileListParams struct { ListParams `form:"*"` Created *int64 `form:"created"` CreatedRange *RangeQueryParams `form:"created"` // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` - // The file purpose to filter queries by. If none is provided, files will not be filtered by purpose. + // Filter queries by the file purpose. If you don't provide a purpose, the queries return unfiltered files. Purpose *string `form:"purpose"` } @@ -54,12 +54,12 @@ func (p *FileListParams) AddExpand(f string) { p.Expand = append(p.Expand, &f) } -// Optional parameters to automatically create a [file link](https://stripe.com/docs/api#file_links) for the newly created file. +// Optional parameters that automatically create a [file link](https://stripe.com/docs/api#file_links) for the newly created file. type FileFileLinkDataParams struct { Params `form:"*"` // Set this to `true` to create a file link for the newly created file. Creating a link is only possible when the file's `purpose` is one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `pci_document`, `tax_document_user_upload`, or `terminal_reader_splashscreen`. Create *bool `form:"create"` - // A future timestamp after which the link will no longer be usable. + // The link isn't available after this future timestamp. ExpiresAt *int64 `form:"expires_at"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata map[string]string `form:"metadata"` @@ -74,9 +74,9 @@ func (p *FileFileLinkDataParams) AddMetadata(key string, value string) { p.Metadata[key] = value } -// To upload a file to Stripe, you'll need to send a request of type multipart/form-data. The request should contain the file you would like to upload, as well as the parameters for creating a file. +// To upload a file to Stripe, you need to send a request of type multipart/form-data. Include the file you want to upload in the request, and the parameters for creating a file. // -// All of Stripe's officially supported Client libraries should have support for sending multipart/form-data. +// All of Stripe's officially supported Client libraries support sending multipart/form-data. type FileParams struct { Params `form:"*"` // Specifies which fields in the response should be expanded. @@ -86,7 +86,7 @@ type FileParams struct { // Filename is just the name of the file without path information. Filename *string - // Optional parameters to automatically create a [file link](https://stripe.com/docs/api#file_links) for the newly created file. + // Optional parameters that automatically create a [file link](https://stripe.com/docs/api#file_links) for the newly created file. FileLinkData *FileFileLinkDataParams `form:"file_link_data"` // The [purpose](https://stripe.com/docs/file-upload#uploading-a-file) of the uploaded file. Purpose *string `form:"purpose"` @@ -97,10 +97,10 @@ func (p *FileParams) AddExpand(f string) { p.Expand = append(p.Expand, &f) } -// 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) @@ -108,9 +108,9 @@ type File struct { APIResource // Time at which the object was created. Measured in seconds since the Unix epoch. Created int64 `json:"created"` - // The time at which the file expires and is no longer available in epoch seconds. + // The file expires and isn't available at this time in epoch seconds. ExpiresAt int64 `json:"expires_at"` - // A filename for the file, suitable for saving to a filesystem. + // The suitable name for saving the file to a filesystem. Filename string `json:"filename"` // Unique identifier for the object. ID string `json:"id"` @@ -120,13 +120,13 @@ type File struct { Object string `json:"object"` // The [purpose](https://stripe.com/docs/file-upload#uploading-a-file) of the uploaded file. Purpose FilePurpose `json:"purpose"` - // The size in bytes of the file object. + // The size of the file object in bytes. Size int64 `json:"size"` - // A user friendly title for the document. + // A suitable title for the document. Title string `json:"title"` - // The type of the file returned (e.g., `csv`, `pdf`, `jpg`, or `png`). + // The returned file type (for example, `csv`, `pdf`, `jpg`, or `png`). Type string `json:"type"` - // The URL from which the file can be downloaded using your live secret API key. + // Use your live secret API key to download the file from this URL. URL string `json:"url"` } diff --git a/filelink.go b/filelink.go index 6759a7ebb7..89698a57ff 100644 --- a/filelink.go +++ b/filelink.go @@ -50,7 +50,7 @@ type FileLinkListParams struct { CreatedRange *RangeQueryParams `form:"created"` // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` - // Filter links by their expiration status. By default, all links are returned. + // Filter links by their expiration status. By default, Stripe returns all links. Expired *bool `form:"expired"` // Only return links for the given file. File *string `form:"file"` @@ -62,15 +62,15 @@ func (p *FileLinkListParams) AddExpand(f string) { } // 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. type FileLink struct { APIResource // Time at which the object was created. Measured in seconds since the Unix epoch. Created int64 `json:"created"` - // Whether this link is already expired. + // Returns if the link is already expired. Expired bool `json:"expired"` - // Time at which the link expires. + // Time that the link expires. ExpiresAt int64 `json:"expires_at"` // The file object this link points to. File *File `json:"file"` From 5a0dd2c59a8d55380f13640399107b6edc15794a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Sep 2023 21:45:08 +0000 Subject: [PATCH 5/9] Update generated code for v539 --- OPENAPI_VERSION | 2 +- paymentintent.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bb583f4b83..63aa4cce7c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v536 \ No newline at end of file +v539 \ No newline at end of file diff --git a/paymentintent.go b/paymentintent.go index c7c7605a38..3428491f04 100644 --- a/paymentintent.go +++ b/paymentintent.go @@ -1738,9 +1738,10 @@ type PaymentIntentParams struct { StatementDescriptor *string `form:"statement_descriptor"` // Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor. StatementDescriptorSuffix *string `form:"statement_descriptor_suffix"` - // The parameters used to automatically create a Transfer when the payment succeeds. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). + // The parameters used to automatically create a Transfer when the payment succeeds. + // For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). TransferData *PaymentIntentTransferDataParams `form:"transfer_data"` - // A string that identifies the resulting payment as part of a group. `transfer_group` may only be provided if it has not been set. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details. + // A string that identifies the resulting payment as part of a group. You can only provide `transfer_group` if it hasn't been set. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). TransferGroup *string `form:"transfer_group"` // These parameters apply only for paymentIntent.New with `confirm=true` // Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm). From fe4dad7c000bbe37c49a182c6bb8138dd6e5e4af Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Sep 2023 22:30:30 +0000 Subject: [PATCH 6/9] Update generated code for v539 --- sourcetransaction/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcetransaction/client.go b/sourcetransaction/client.go index 3243990f58..7870bb3e70 100644 --- a/sourcetransaction/client.go +++ b/sourcetransaction/client.go @@ -4,7 +4,7 @@ // // -// Package sourcetransaction provides the TODO APIs +// Package sourcetransaction provides the sourcetransaction related APIs package sourcetransaction import ( From d12f4e372dd8687d033f4fd957e3759ec9e5cec5 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Sep 2023 06:12:31 +0000 Subject: [PATCH 7/9] Update generated code for v540 --- OPENAPI_VERSION | 2 +- account.go | 2 +- person.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 63aa4cce7c..a98b1d0aaf 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v539 \ No newline at end of file +v540 \ No newline at end of file diff --git a/account.go b/account.go index 02da6cec87..f53e780d78 100644 --- a/account.go +++ b/account.go @@ -1305,7 +1305,7 @@ type Account struct { // 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) Individual *Person `json:"individual"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Metadata map[string]string `json:"metadata"` diff --git a/person.go b/person.go index 3b509806ec..8b2dc21632 100644 --- a/person.go +++ b/person.go @@ -419,7 +419,7 @@ type PersonVerification struct { // 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) type Person struct { APIResource // The account the person is associated with. From b88dda68965d5323fd9aefdb900fae76184bf336 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:40:38 +0000 Subject: [PATCH 8/9] Update generated code for v542 --- OPENAPI_VERSION | 2 +- paymentmethod.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a98b1d0aaf..46e1697fde 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v540 \ No newline at end of file +v542 \ No newline at end of file diff --git a/paymentmethod.go b/paymentmethod.go index 5e31f3ad46..12d7d940b8 100644 --- a/paymentmethod.go +++ b/paymentmethod.go @@ -305,7 +305,8 @@ type PaymentMethodCardParams struct { ExpYear *int64 `form:"exp_year"` // The card number, as a string without any separators. Number *string `form:"number"` - Token *string `form:"token"` + // For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token: "tok_visa"}. + Token *string `form:"token"` } // If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. From 00318eea0f117a2b8317b8d0145e7b83857d9751 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Sep 2023 17:55:54 +0000 Subject: [PATCH 9/9] Update generated code for v545 --- OPENAPI_VERSION | 2 +- checkout_session.go | 12 ++++++------ paymentlink.go | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 46e1697fde..688708d739 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v542 \ No newline at end of file +v545 \ No newline at end of file diff --git a/checkout_session.go b/checkout_session.go index 348e21c386..acd7de9a14 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -808,19 +808,19 @@ type CheckoutSessionCustomFieldParams struct { // Custom text that should be displayed alongside shipping address collection. type CheckoutSessionCustomTextShippingAddressParams struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message *string `form:"message"` } // Custom text that should be displayed alongside the payment confirmation button. type CheckoutSessionCustomTextSubmitParams struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message *string `form:"message"` } // Custom text that should be displayed in place of the default terms of service agreement text. type CheckoutSessionCustomTextTermsOfServiceAcceptanceParams struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message *string `form:"message"` } @@ -1947,19 +1947,19 @@ type CheckoutSessionCustomField struct { // Custom text that should be displayed alongside shipping address collection. type CheckoutSessionCustomTextShippingAddress struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message string `json:"message"` } // Custom text that should be displayed alongside the payment confirmation button. type CheckoutSessionCustomTextSubmit struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message string `json:"message"` } // Custom text that should be displayed in place of the default terms of service agreement text. type CheckoutSessionCustomTextTermsOfServiceAcceptance struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message string `json:"message"` } type CheckoutSessionCustomText struct { diff --git a/paymentlink.go b/paymentlink.go index e2e2ec80e4..391883bf6b 100644 --- a/paymentlink.go +++ b/paymentlink.go @@ -256,19 +256,19 @@ type PaymentLinkCustomFieldParams struct { // Custom text that should be displayed alongside shipping address collection. type PaymentLinkCustomTextShippingAddressParams struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message *string `form:"message"` } // Custom text that should be displayed alongside the payment confirmation button. type PaymentLinkCustomTextSubmitParams struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message *string `form:"message"` } // Custom text that should be displayed in place of the default terms of service agreement text. type PaymentLinkCustomTextTermsOfServiceAcceptanceParams struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message *string `form:"message"` } @@ -589,19 +589,19 @@ type PaymentLinkCustomField struct { // Custom text that should be displayed alongside shipping address collection. type PaymentLinkCustomTextShippingAddress struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message string `json:"message"` } // Custom text that should be displayed alongside the payment confirmation button. type PaymentLinkCustomTextSubmit struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message string `json:"message"` } // Custom text that should be displayed in place of the default terms of service agreement text. type PaymentLinkCustomTextTermsOfServiceAcceptance struct { - // Text may be up to 1000 characters in length. + // Text may be up to 1200 characters in length. Message string `json:"message"` } type PaymentLinkCustomText struct {