diff --git a/openapi/version.json b/openapi/version.json index 8f4c5116b..fb6346139 100644 --- a/openapi/version.json +++ b/openapi/version.json @@ -1,3 +1,3 @@ { - "version": "v532" + "version": "v545" } \ No newline at end of file diff --git a/src/resources/generated/account.rs b/src/resources/generated/account.rs index c489dd94a..8b0b5bf45 100644 --- a/src/resources/generated/account.rs +++ b/src/resources/generated/account.rs @@ -1463,14 +1463,14 @@ pub struct PersonParams { /// The government-issued ID number of the individual, as appropriate for the representative's country. /// /// (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). - /// Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + /// Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). #[serde(skip_serializing_if = "Option::is_none")] pub id_number: Option, /// The government-issued secondary ID number of the individual, as appropriate for the representative's 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 created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii). + /// Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii). #[serde(skip_serializing_if = "Option::is_none")] pub id_number_secondary: Option, diff --git a/src/resources/generated/checkout_session.rs b/src/resources/generated/checkout_session.rs index 7e4dc9b4e..f40b67d9b 100644 --- a/src/resources/generated/checkout_session.rs +++ b/src/resources/generated/checkout_session.rs @@ -874,11 +874,14 @@ pub struct PaymentPagesCheckoutSessionCustomText { /// Custom text that should be displayed alongside the payment confirmation button. pub submit: Option, + + /// Custom text that should be displayed in place of the default terms of service agreement text. + pub terms_of_service_acceptance: Option, } #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct PaymentPagesCheckoutSessionCustomTextPosition { - /// Text may be up to 1000 characters in length. + /// Text may be up to 1200 characters in length. pub message: String, } @@ -1450,6 +1453,11 @@ pub struct CreateCheckoutSessionCustomText { /// Custom text that should be displayed alongside the payment confirmation button. #[serde(skip_serializing_if = "Option::is_none")] pub submit: Option, + + /// Custom text that should be displayed in place of the default terms of service agreement text. + #[serde(skip_serializing_if = "Option::is_none")] + pub terms_of_service_acceptance: + Option, } #[derive(Clone, Debug, Default, Deserialize, Serialize)] @@ -1920,13 +1928,19 @@ pub struct CreateCheckoutSessionCustomFieldsText { #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct CreateCheckoutSessionCustomTextShippingAddress { - /// Text may be up to 1000 characters in length. + /// Text may be up to 1200 characters in length. pub message: String, } #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct CreateCheckoutSessionCustomTextSubmit { - /// Text may be up to 1000 characters in length. + /// Text may be up to 1200 characters in length. + pub message: String, +} + +#[derive(Clone, Debug, Default, Deserialize, Serialize)] +pub struct CreateCheckoutSessionCustomTextTermsOfServiceAcceptance { + /// Text may be up to 1200 characters in length. pub message: String, } diff --git a/src/resources/generated/file.rs b/src/resources/generated/file.rs index f8d3f80a2..8325cc6ac 100644 --- a/src/resources/generated/file.rs +++ b/src/resources/generated/file.rs @@ -22,10 +22,10 @@ pub struct File { /// Measured in seconds since the Unix epoch. pub created: Timestamp, - /// 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. pub expires_at: Option, - /// A filename for the file, suitable for saving to a filesystem. + /// The suitable name for saving the file to a filesystem. pub filename: Option, /// A list of [file links](https://stripe.com/docs/api#file_links) that point at this file. @@ -35,32 +35,32 @@ pub struct File { /// The [purpose](https://stripe.com/docs/file-upload#uploading-a-file) of the uploaded file. pub purpose: FilePurpose, - /// The size in bytes of the file object. + /// The size of the file object in bytes. pub size: u64, - /// A user friendly title for the document. + /// A suitable title for the document. pub title: Option, - /// The type of the file returned (e.g., `csv`, `pdf`, `jpg`, or `png`). + /// The returned file type (for example, `csv`, `pdf`, `jpg`, or `png`). #[serde(rename = "type")] pub type_: Option, - /// 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. pub url: Option, } impl File { /// 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. + /// Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top. pub fn list(client: &Client, params: &ListFiles<'_>) -> Response> { client.get_query("/files", ¶ms) } /// Retrieves the details of an existing file object. /// - /// Supply the unique file ID from a file, and Stripe will return the corresponding file object. - /// To access file contents, see the [File Upload Guide](https://stripe.com/docs/file-upload#download-file-contents). + /// After you supply a unique file ID, Stripe returns the corresponding file object. + /// Learn how to [access file contents](https://stripe.com/docs/file-upload#download-file-contents). pub fn retrieve(client: &Client, id: &FileId, expand: &[&str]) -> Response { client.get_query(&format!("/files/{}", id), &Expand { expand }) } @@ -99,9 +99,9 @@ pub struct ListFiles<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub limit: Option, - /// The file purpose to filter queries by. + /// Filter queries by the file purpose. /// - /// If none is provided, files will not be filtered by purpose. + /// If you don't provide a purpose, the queries return unfiltered files. #[serde(skip_serializing_if = "Option::is_none")] pub purpose: Option, diff --git a/src/resources/generated/file_link.rs b/src/resources/generated/file_link.rs index af68fda6e..7b30826cc 100644 --- a/src/resources/generated/file_link.rs +++ b/src/resources/generated/file_link.rs @@ -22,10 +22,10 @@ pub struct FileLink { /// Measured in seconds since the Unix epoch. pub created: Timestamp, - /// Whether this link is already expired. + /// Returns if the link is already expired. pub expired: bool, - /// Time at which the link expires. + /// Time that the link expires. pub expires_at: Option, /// The file object this link points to. @@ -88,7 +88,7 @@ pub struct CreateFileLink<'a> { #[serde(skip_serializing_if = "Expand::is_empty")] pub expand: &'a [&'a str], - /// A future timestamp after which the link will no longer be usable. + /// The link isn't usable after this future timestamp. #[serde(skip_serializing_if = "Option::is_none")] pub expires_at: Option, @@ -136,7 +136,7 @@ pub struct ListFileLinks<'a> { /// Filter links by their expiration status. /// - /// By default, all links are returned. + /// By default, Stripe returns all links. #[serde(skip_serializing_if = "Option::is_none")] pub expired: Option, diff --git a/src/resources/generated/payment_intent.rs b/src/resources/generated/payment_intent.rs index 6dcc22700..22b323720 100644 --- a/src/resources/generated/payment_intent.rs +++ b/src/resources/generated/payment_intent.rs @@ -227,11 +227,11 @@ impl PaymentIntent { /// Updates properties on a PaymentIntent object without confirming. /// - /// Depending on which properties you update, you may need to confirm the + /// Depending on which properties you update, you might need to confirm the /// PaymentIntent again. /// - /// For example, updating the `payment_method` will always require you to confirm the PaymentIntent again. - /// If you prefer to update and confirm at the same time, we recommend updating properties via the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead. + /// For example, updating the `payment_method` always requires you to confirm the PaymentIntent again. + /// If you prefer to update and confirm at the same time, we recommend updating properties through the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead. pub fn update( client: &Client, id: &PaymentIntentId, @@ -1812,10 +1812,9 @@ pub struct UpdatePaymentIntent<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub payment_method_options: Option, - /// The list of payment method types (e.g. + /// The list of payment method types (for example, card) that this PaymentIntent can use. /// - /// card) that this PaymentIntent is allowed to use. - /// Use automatic_payment_methods to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). + /// Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). #[serde(skip_serializing_if = "Option::is_none")] pub payment_method_types: Option>, @@ -1850,16 +1849,16 @@ pub struct UpdatePaymentIntent<'a> { #[serde(skip_serializing_if = "Option::is_none")] pub statement_descriptor_suffix: Option<&'a str>, - /// The parameters used to automatically create a Transfer when the payment succeeds. + /// Use this parameter 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). + /// Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). #[serde(skip_serializing_if = "Option::is_none")] pub transfer_data: Option, /// 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. + /// 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). #[serde(skip_serializing_if = "Option::is_none")] pub transfer_group: Option<&'a str>, } diff --git a/src/resources/generated/payment_link.rs b/src/resources/generated/payment_link.rs index bc18795c2..7e83dc8d7 100644 --- a/src/resources/generated/payment_link.rs +++ b/src/resources/generated/payment_link.rs @@ -282,11 +282,14 @@ pub struct PaymentLinksResourceCustomText { /// Custom text that should be displayed alongside the payment confirmation button. pub submit: Option, + + /// Custom text that should be displayed in place of the default terms of service agreement text. + pub terms_of_service_acceptance: Option, } #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct PaymentLinksResourceCustomTextPosition { - /// Text may be up to 1000 characters in length. + /// Text may be up to 1200 characters in length. pub message: String, } @@ -793,6 +796,10 @@ pub struct CreatePaymentLinkCustomText { /// Custom text that should be displayed alongside the payment confirmation button. #[serde(skip_serializing_if = "Option::is_none")] pub submit: Option, + + /// Custom text that should be displayed in place of the default terms of service agreement text. + #[serde(skip_serializing_if = "Option::is_none")] + pub terms_of_service_acceptance: Option, } #[derive(Clone, Debug, Default, Deserialize, Serialize)] @@ -961,6 +968,10 @@ pub struct UpdatePaymentLinkCustomText { /// Custom text that should be displayed alongside the payment confirmation button. #[serde(skip_serializing_if = "Option::is_none")] pub submit: Option, + + /// Custom text that should be displayed in place of the default terms of service agreement text. + #[serde(skip_serializing_if = "Option::is_none")] + pub terms_of_service_acceptance: Option, } #[derive(Clone, Debug, Default, Deserialize, Serialize)] @@ -1055,13 +1066,19 @@ pub struct CreatePaymentLinkCustomFieldsText { #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct CreatePaymentLinkCustomTextShippingAddress { - /// Text may be up to 1000 characters in length. + /// Text may be up to 1200 characters in length. pub message: String, } #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct CreatePaymentLinkCustomTextSubmit { - /// Text may be up to 1000 characters in length. + /// Text may be up to 1200 characters in length. + pub message: String, +} + +#[derive(Clone, Debug, Default, Deserialize, Serialize)] +pub struct CreatePaymentLinkCustomTextTermsOfServiceAcceptance { + /// Text may be up to 1200 characters in length. pub message: String, } @@ -1177,13 +1194,19 @@ pub struct UpdatePaymentLinkCustomFieldsText { #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct UpdatePaymentLinkCustomTextShippingAddress { - /// Text may be up to 1000 characters in length. + /// Text may be up to 1200 characters in length. pub message: String, } #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct UpdatePaymentLinkCustomTextSubmit { - /// Text may be up to 1000 characters in length. + /// Text may be up to 1200 characters in length. + pub message: String, +} + +#[derive(Clone, Debug, Default, Deserialize, Serialize)] +pub struct UpdatePaymentLinkCustomTextTermsOfServiceAcceptance { + /// Text may be up to 1200 characters in length. pub message: String, } diff --git a/src/resources/generated/payment_method.rs b/src/resources/generated/payment_method.rs index 8c71b06ea..aa8b83b45 100644 --- a/src/resources/generated/payment_method.rs +++ b/src/resources/generated/payment_method.rs @@ -2818,6 +2818,7 @@ pub struct CardDetailsParams { #[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct TokenParams { + /// 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"}. pub token: String, } diff --git a/src/resources/generated/token.rs b/src/resources/generated/token.rs index 84e621292..a5ea5b493 100644 --- a/src/resources/generated/token.rs +++ b/src/resources/generated/token.rs @@ -195,14 +195,14 @@ pub struct CreateTokenPerson { /// 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). + /// 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). #[serde(skip_serializing_if = "Option::is_none")] pub id_number: Option, /// 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). + /// 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). #[serde(skip_serializing_if = "Option::is_none")] pub id_number_secondary: Option,