Skip to content

Commit d2ee5ce

Browse files
committed
Merge pull request #325 from arlyon/openapi-1674174417
Generate latest changes from OpenApi spec
2 parents a58e2da + 3fd63e6 commit d2ee5ce

File tree

8 files changed

+30
-9
lines changed

8 files changed

+30
-9
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": "v218"
2+
"version": "v219"
33
}

src/resources/generated/checkout_session.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ pub struct PaymentPagesCheckoutSessionCustomText {
726726

727727
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
728728
pub struct PaymentPagesCheckoutSessionCustomTextPosition {
729-
/// Text may be up to 500 characters in length.
729+
/// Text may be up to 1000 characters in length.
730730
pub message: String,
731731
}
732732

@@ -1660,13 +1660,13 @@ pub struct CreateCheckoutSessionAfterExpirationRecovery {
16601660

16611661
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
16621662
pub struct CreateCheckoutSessionCustomTextShippingAddress {
1663-
/// Text may be up to 500 characters in length.
1663+
/// Text may be up to 1000 characters in length.
16641664
pub message: String,
16651665
}
16661666

16671667
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
16681668
pub struct CreateCheckoutSessionCustomTextSubmit {
1669-
/// Text may be up to 500 characters in length.
1669+
/// Text may be up to 1000 characters in length.
16701670
pub message: String,
16711671
}
16721672

src/resources/generated/ephemeral_key.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ pub struct CreateEphemeralKey<'a> {
7070
/// The ID of the Issuing Card you'd like to access using the resulting ephemeral key.
7171
#[serde(skip_serializing_if = "Option::is_none")]
7272
pub issuing_card: Option<IssuingCardId>,
73+
74+
/// The ID of the Identity VerificationSession you'd like to access using the resulting ephemeral key.
75+
#[serde(skip_serializing_if = "Option::is_none")]
76+
pub verification_session: Option<&'a str>,
7377
}
7478

7579
impl<'a> CreateEphemeralKey<'a> {
@@ -78,6 +82,7 @@ impl<'a> CreateEphemeralKey<'a> {
7882
customer: Default::default(),
7983
expand: Default::default(),
8084
issuing_card: Default::default(),
85+
verification_session: Default::default(),
8186
}
8287
}
8388
}

src/resources/generated/payment_link.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ pub struct PaymentLinksResourceCustomText {
193193

194194
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
195195
pub struct PaymentLinksResourceCustomTextPosition {
196-
/// Text may be up to 500 characters in length.
196+
/// Text may be up to 1000 characters in length.
197197
pub message: String,
198198
}
199199

@@ -765,13 +765,13 @@ pub struct CreatePaymentLinkAfterCompletionRedirect {
765765

766766
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
767767
pub struct CreatePaymentLinkCustomTextShippingAddress {
768-
/// Text may be up to 500 characters in length.
768+
/// Text may be up to 1000 characters in length.
769769
pub message: String,
770770
}
771771

772772
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
773773
pub struct CreatePaymentLinkCustomTextSubmit {
774-
/// Text may be up to 500 characters in length.
774+
/// Text may be up to 1000 characters in length.
775775
pub message: String,
776776
}
777777

@@ -812,13 +812,13 @@ pub struct UpdatePaymentLinkAfterCompletionRedirect {
812812

813813
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
814814
pub struct UpdatePaymentLinkCustomTextShippingAddress {
815-
/// Text may be up to 500 characters in length.
815+
/// Text may be up to 1000 characters in length.
816816
pub message: String,
817817
}
818818

819819
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
820820
pub struct UpdatePaymentLinkCustomTextSubmit {
821-
/// Text may be up to 500 characters in length.
821+
/// Text may be up to 1000 characters in length.
822822
pub message: String,
823823
}
824824

src/resources/generated/subscription.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,8 @@ pub struct UpdateSubscription<'a> {
877877
pub promotion_code: Option<PromotionCodeId>,
878878

879879
/// Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes.
880+
///
881+
/// The default value is `create_prorations`.
880882
#[serde(skip_serializing_if = "Option::is_none")]
881883
pub proration_behavior: Option<SubscriptionProrationBehavior>,
882884

src/resources/generated/subscription_item.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ pub struct CreateSubscriptionItem<'a> {
165165
pub price_data: Option<SubscriptionItemPriceData>,
166166

167167
/// Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes.
168+
///
169+
/// The default value is `create_prorations`.
168170
#[serde(skip_serializing_if = "Option::is_none")]
169171
pub proration_behavior: Option<SubscriptionProrationBehavior>,
170172

@@ -311,6 +313,8 @@ pub struct UpdateSubscriptionItem<'a> {
311313
pub price_data: Option<SubscriptionItemPriceData>,
312314

313315
/// Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes.
316+
///
317+
/// The default value is `create_prorations`.
314318
#[serde(skip_serializing_if = "Option::is_none")]
315319
pub proration_behavior: Option<SubscriptionProrationBehavior>,
316320

src/resources/generated/subscription_schedule.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,8 @@ pub struct CreateSubscriptionSchedulePhases {
634634
/// Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase.
635635
///
636636
/// The default value is `create_prorations`.
637+
/// This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase.
638+
/// It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase.
637639
#[serde(skip_serializing_if = "Option::is_none")]
638640
pub proration_behavior: Option<SubscriptionProrationBehavior>,
639641

@@ -818,6 +820,8 @@ pub struct UpdateSubscriptionSchedulePhases {
818820
/// Whether the subscription schedule will create [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when transitioning to this phase.
819821
///
820822
/// The default value is `create_prorations`.
823+
/// This setting controls prorations when a phase is started asynchronously and it is persisted as a field on the phase.
824+
/// It's different from the request-level [proration_behavior](https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration of the current phase.
821825
#[serde(skip_serializing_if = "Option::is_none")]
822826
pub proration_behavior: Option<SubscriptionProrationBehavior>,
823827

src/resources/generated/webhook_endpoint.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,10 @@ pub enum EventFilter {
563563
RecipientDeleted,
564564
#[serde(rename = "recipient.updated")]
565565
RecipientUpdated,
566+
#[serde(rename = "refund.created")]
567+
RefundCreated,
568+
#[serde(rename = "refund.updated")]
569+
RefundUpdated,
566570
#[serde(rename = "reporting.report_run.failed")]
567571
ReportingReportRunFailed,
568572
#[serde(rename = "reporting.report_run.succeeded")]
@@ -899,6 +903,8 @@ impl EventFilter {
899903
EventFilter::RecipientCreated => "recipient.created",
900904
EventFilter::RecipientDeleted => "recipient.deleted",
901905
EventFilter::RecipientUpdated => "recipient.updated",
906+
EventFilter::RefundCreated => "refund.created",
907+
EventFilter::RefundUpdated => "refund.updated",
902908
EventFilter::ReportingReportRunFailed => "reporting.report_run.failed",
903909
EventFilter::ReportingReportRunSucceeded => "reporting.report_run.succeeded",
904910
EventFilter::ReportingReportTypeUpdated => "reporting.report_type.updated",

0 commit comments

Comments
 (0)