Skip to content

Commit eaa6cc0

Browse files
committed
Merge pull request #295 from arlyon/openapi-1668132823
Generate latest changes from OpenApi spec
2 parents 963257b + 38edaf2 commit eaa6cc0

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

openapi/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "v206"
2+
"version": "v207"
33
}

src/resources/generated/checkout_session.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,9 +1654,6 @@ pub struct CreateCheckoutSessionPaymentMethodOptionsP24 {
16541654
pub struct CreateCheckoutSessionPaymentMethodOptionsPaynow {
16551655
#[serde(skip_serializing_if = "Option::is_none")]
16561656
pub setup_future_usage: Option<CreateCheckoutSessionPaymentMethodOptionsPaynowSetupFutureUsage>,
1657-
1658-
#[serde(skip_serializing_if = "Option::is_none")]
1659-
pub tos_shown_and_accepted: Option<bool>,
16601657
}
16611658

16621659
#[derive(Clone, Debug, Default, Deserialize, Serialize)]

src/resources/generated/payment_method.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ pub struct PaymentMethod {
144144
}
145145

146146
impl PaymentMethod {
147-
/// Returns a list of PaymentMethods attached to the StripeAccount.
147+
/// Returns a list of PaymentMethods for Treasury flows.
148148
///
149-
/// For listing a customer’s payment methods, you should use [List a Customer’s PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list).
149+
/// If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer’s PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
150150
pub fn list(client: &Client, params: &ListPaymentMethods<'_>) -> Response<List<PaymentMethod>> {
151151
client.get_query("/payment_methods", &params)
152152
}

0 commit comments

Comments
 (0)