Skip to content

Commit

Permalink
Update generated code (#2138)
Browse files Browse the repository at this point in the history
* Update generated code for v1126

* Update generated code for v1127

* Update generated code for v1128

* Update generated code for v1131

* Update generated code for v1132

* Update generated code for v1134

* Update generated code for v1135

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jul 18, 2024
1 parent 296444f commit 351ae2f
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 8 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1123
v1135
5 changes: 5 additions & 0 deletions types/ConfirmationTokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ declare module 'stripe' {

cashapp?: PaymentMethodPreview.Cashapp;

/**
* The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
*/
customer: string | Stripe.Customer | null;

customer_balance?: PaymentMethodPreview.CustomerBalance;

eps?: PaymentMethodPreview.Eps;
Expand Down
3 changes: 3 additions & 0 deletions types/DisputesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ declare module 'stripe' {
*/
charge?: string;

/**
* Only return disputes that were created during the given date interval.
*/
created?: Stripe.RangeQueryParam | number;

/**
Expand Down
17 changes: 17 additions & 0 deletions types/EventTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ declare module 'stripe' {
| IssuingDisputeClosedEvent
| IssuingDisputeCreatedEvent
| IssuingDisputeFundsReinstatedEvent
| IssuingDisputeFundsRescindedEvent
| IssuingDisputeSubmittedEvent
| IssuingDisputeUpdatedEvent
| IssuingPersonalizationDesignActivatedEvent
Expand Down Expand Up @@ -1955,6 +1956,22 @@ declare module 'stripe' {
}
}

/**
* Occurs whenever funds are deducted from your account for an Issuing dispute.
*/
interface IssuingDisputeFundsRescindedEvent extends EventBase {
type: 'issuing_dispute.funds_rescinded';
data: IssuingDisputeFundsRescindedEvent.Data;
}

namespace IssuingDisputeFundsRescindedEvent {
interface Data extends Stripe.Event.Data {
object: Stripe.Issuing.Dispute;

previous_attributes?: Partial<Stripe.Issuing.Dispute>;
}
}

/**
* Occurs whenever a dispute is submitted.
*/
Expand Down
1 change: 1 addition & 0 deletions types/Events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ declare module 'stripe' {
| 'issuing_dispute.closed'
| 'issuing_dispute.created'
| 'issuing_dispute.funds_reinstated'
| 'issuing_dispute.funds_rescinded'
| 'issuing_dispute.submitted'
| 'issuing_dispute.updated'
| 'issuing_personalization_design.activated'
Expand Down
2 changes: 1 addition & 1 deletion types/EventsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ declare module 'stripe' {

class EventsResource {
/**
* Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook.
* Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook.
*/
retrieve(
id: string,
Expand Down
2 changes: 1 addition & 1 deletion types/Identity/VerificationReports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ declare module 'stripe' {
* API. To configure and create VerificationReports, use the
* [VerificationSession](https://stripe.com/docs/api/identity/verification_sessions) API.
*
* Related guides: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results).
* Related guide: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results).
*/
interface VerificationReport {
/**
Expand Down
1 change: 1 addition & 0 deletions types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,7 @@ declare module 'stripe' {
| 'ideal'
| 'konbini'
| 'link'
| 'multibanco'
| 'p24'
| 'paynow'
| 'paypal'
Expand Down
2 changes: 2 additions & 0 deletions types/InvoicesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ declare module 'stripe' {
| 'ideal'
| 'konbini'
| 'link'
| 'multibanco'
| 'p24'
| 'paynow'
| 'paypal'
Expand Down Expand Up @@ -1206,6 +1207,7 @@ declare module 'stripe' {
| 'ideal'
| 'konbini'
| 'link'
| 'multibanco'
| 'p24'
| 'paynow'
| 'paypal'
Expand Down
2 changes: 1 addition & 1 deletion types/PaymentMethodDomains.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare module 'stripe' {
* A payment method domain represents a web domain that you have registered with Stripe.
* Stripe Elements use registered payment method domains to control where certain payment methods are shown.
*
* Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
* Related guide: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
*/
interface PaymentMethodDomain {
/**
Expand Down
3 changes: 2 additions & 1 deletion types/Subscriptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ declare module 'stripe' {
payment_method_types: Array<PaymentSettings.PaymentMethodType> | null;

/**
* Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds.
* Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off`.
*/
save_default_payment_method: PaymentSettings.SaveDefaultPaymentMethod | null;
}
Expand Down Expand Up @@ -646,6 +646,7 @@ declare module 'stripe' {
| 'ideal'
| 'konbini'
| 'link'
| 'multibanco'
| 'p24'
| 'paynow'
| 'paypal'
Expand Down
6 changes: 4 additions & 2 deletions types/SubscriptionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ declare module 'stripe' {
>;

/**
* Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds.
* Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
*/
save_default_payment_method?: PaymentSettings.SaveDefaultPaymentMethod;
}
Expand Down Expand Up @@ -783,6 +783,7 @@ declare module 'stripe' {
| 'ideal'
| 'konbini'
| 'link'
| 'multibanco'
| 'p24'
| 'paynow'
| 'paypal'
Expand Down Expand Up @@ -1401,7 +1402,7 @@ declare module 'stripe' {
>;

/**
* Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds.
* Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off` if unspecified.
*/
save_default_payment_method?: PaymentSettings.SaveDefaultPaymentMethod;
}
Expand Down Expand Up @@ -1655,6 +1656,7 @@ declare module 'stripe' {
| 'ideal'
| 'konbini'
| 'link'
| 'multibanco'
| 'p24'
| 'paynow'
| 'paypal'
Expand Down
3 changes: 2 additions & 1 deletion types/Terminal/Readers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ declare module 'stripe' {
device_sw_version: string | null;

/**
* Type of reader, one of `bbpos_wisepad3`, `stripe_m2`, `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`, `simulated_wisepos_e`, or `mobile_phone_reader`.
* Type of reader, one of `bbpos_wisepad3`, `stripe_m2`, `stripe_s700`, `bbpos_chipper2x`, `bbpos_wisepos_e`, `verifone_P400`, `simulated_wisepos_e`, or `mobile_phone_reader`.
*/
device_type: Reader.DeviceType;

Expand Down Expand Up @@ -334,6 +334,7 @@ declare module 'stripe' {
| 'mobile_phone_reader'
| 'simulated_wisepos_e'
| 'stripe_m2'
| 'stripe_s700'
| 'verifone_P400';

type Status = 'offline' | 'online';
Expand Down
1 change: 1 addition & 0 deletions types/Terminal/ReadersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ declare module 'stripe' {
| 'mobile_phone_reader'
| 'simulated_wisepos_e'
| 'stripe_m2'
| 'stripe_s700'
| 'verifone_P400';

type Status = 'offline' | 'online';
Expand Down
2 changes: 2 additions & 0 deletions types/WebhookEndpointsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ declare module 'stripe' {
| 'issuing_dispute.closed'
| 'issuing_dispute.created'
| 'issuing_dispute.funds_reinstated'
| 'issuing_dispute.funds_rescinded'
| 'issuing_dispute.submitted'
| 'issuing_dispute.updated'
| 'issuing_personalization_design.activated'
Expand Down Expand Up @@ -530,6 +531,7 @@ declare module 'stripe' {
| 'issuing_dispute.closed'
| 'issuing_dispute.created'
| 'issuing_dispute.funds_reinstated'
| 'issuing_dispute.funds_rescinded'
| 'issuing_dispute.submitted'
| 'issuing_dispute.updated'
| 'issuing_personalization_design.activated'
Expand Down

0 comments on commit 351ae2f

Please sign in to comment.