Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code #2053

Merged
merged 18 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v911
v932
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ declare module 'stripe' {
namespace BusinessProfile {
interface AnnualRevenue {
/**
* A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
* A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
*/
amount: number | null;

Expand All @@ -190,7 +190,7 @@ declare module 'stripe' {

interface MonthlyEstimatedRevenue {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
*/
amount: number;

Expand Down
92 changes: 46 additions & 46 deletions types/AccountsResource.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion types/Billing/MeterEventsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* A unique identifier for the event. If not provided, one will be generated.
* A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period.
*/
identifier?: string;
}
Expand Down
4 changes: 2 additions & 2 deletions types/BillingPortal/Configurations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ declare module 'stripe' {

subscription_cancel: Features.SubscriptionCancel;

subscription_pause: Features.SubscriptionPause;

subscription_update: Features.SubscriptionUpdate;

subscription_pause: Features.SubscriptionPause;
}

namespace Features {
Expand Down
20 changes: 10 additions & 10 deletions types/BillingPortal/ConfigurationsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ declare module 'stripe' {
subscription_cancel?: Features.SubscriptionCancel;

/**
* Information about pausing subscriptions in the portal.
* Information about updating subscriptions in the portal.
*/
subscription_pause?: Features.SubscriptionPause;
subscription_update?: Features.SubscriptionUpdate;

/**
* Information about updating subscriptions in the portal.
* Information about pausing subscriptions in the portal.
*/
subscription_update?: Features.SubscriptionUpdate;
subscription_pause?: Features.SubscriptionPause;
}

namespace Features {
Expand Down Expand Up @@ -183,7 +183,7 @@ declare module 'stripe' {
/**
* Whether the feature is enabled.
*/
enabled?: boolean;
enabled: boolean;
}

interface SubscriptionUpdate {
Expand Down Expand Up @@ -324,14 +324,14 @@ declare module 'stripe' {
subscription_cancel?: Features.SubscriptionCancel;

/**
* Information about pausing subscriptions in the portal.
* Information about updating subscriptions in the portal.
*/
subscription_pause?: Features.SubscriptionPause;
subscription_update?: Features.SubscriptionUpdate;

/**
* Information about updating subscriptions in the portal.
* Information about pausing subscriptions in the portal.
*/
subscription_update?: Features.SubscriptionUpdate;
subscription_pause?: Features.SubscriptionPause;
}

namespace Features {
Expand Down Expand Up @@ -432,7 +432,7 @@ declare module 'stripe' {
/**
* Whether the feature is enabled.
*/
enabled?: boolean;
enabled: boolean;
}

interface SubscriptionUpdate {
Expand Down
2 changes: 1 addition & 1 deletion types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@ declare module 'stripe' {
/**
* Reference number to locate ACH payments with customer's bank.
*/
payment_reference?: string | null;
payment_reference: string | null;

/**
* Routing number of the bank account.
Expand Down
6 changes: 3 additions & 3 deletions types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,12 @@ declare module 'stripe' {
namespace InvoiceData {
interface CustomField {
/**
* The name of the custom field. This may be up to 30 characters.
* The name of the custom field. This may be up to 40 characters.
*/
name: string;

/**
* The value of the custom field. This may be up to 30 characters.
* The value of the custom field. This may be up to 140 characters.
*/
value: string;
}
Expand Down Expand Up @@ -1642,7 +1642,7 @@ declare module 'stripe' {
/**
* The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
*/
reference?: Stripe.Emptyable<string>;
reference?: string;
}

interface UsBankAccount {
Expand Down
12 changes: 6 additions & 6 deletions types/CustomersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ declare module 'stripe' {
preferred_locales?: Array<string>;

/**
* The API ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
* The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
*/
promotion_code?: string;

Expand Down Expand Up @@ -154,12 +154,12 @@ declare module 'stripe' {
namespace InvoiceSettings {
interface CustomField {
/**
* The name of the custom field. This may be up to 30 characters.
* The name of the custom field. This may be up to 40 characters.
*/
name: string;

/**
* The value of the custom field. This may be up to 30 characters.
* The value of the custom field. This may be up to 140 characters.
*/
value: string;
}
Expand Down Expand Up @@ -382,7 +382,7 @@ declare module 'stripe' {
preferred_locales?: Array<string>;

/**
* The API ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
* The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
*/
promotion_code?: string;

Expand Down Expand Up @@ -453,12 +453,12 @@ declare module 'stripe' {
namespace InvoiceSettings {
interface CustomField {
/**
* The name of the custom field. This may be up to 30 characters.
* The name of the custom field. This may be up to 40 characters.
*/
name: string;

/**
* The value of the custom field. This may be up to 30 characters.
* The value of the custom field. This may be up to 140 characters.
*/
value: string;
}
Expand Down
10 changes: 10 additions & 0 deletions types/Discounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ declare module 'stripe' {
* The subscription that this coupon is applied to, if it is applied to a particular subscription.
*/
subscription: string | null;

/**
* The subscription item that this coupon is applied to, if it is applied to a particular subscription item.
*/
subscription_item: string | null;
}

/**
Expand Down Expand Up @@ -132,6 +137,11 @@ declare module 'stripe' {
* The subscription that this coupon is applied to, if it is applied to a particular subscription.
*/
subscription: string | null;

/**
* The subscription item that this coupon is applied to, if it is applied to a particular subscription item.
*/
subscription_item: string | null;
}
}
}
95 changes: 94 additions & 1 deletion types/Identity/VerificationReports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ declare module 'stripe' {
*/
document?: VerificationReport.Document;

/**
* Result from a email check
*/
email?: VerificationReport.Email;

/**
* Result from an id_number check
*/
Expand All @@ -54,6 +59,11 @@ declare module 'stripe' {

options?: VerificationReport.Options;

/**
* Result from a phone check
*/
phone?: VerificationReport.Phone;

/**
* Result from a selfie check
*/
Expand All @@ -64,6 +74,11 @@ declare module 'stripe' {
*/
type: VerificationReport.Type;

/**
* The configuration token of a Verification Flow from the dashboard.
*/
verification_flow?: string;

/**
* ID of the VerificationSession that created this report.
*/
Expand Down Expand Up @@ -209,6 +224,45 @@ declare module 'stripe' {
type Type = 'driving_license' | 'id_card' | 'passport';
}

interface Email {
/**
* Email to be verified.
*/
email: string | null;

/**
* Details on the verification error. Present when status is `unverified`.
*/
error: Email.Error | null;

/**
* Status of this `email` check.
*/
status: Email.Status;
}

namespace Email {
interface Error {
/**
* A short machine-readable string giving the reason for the verification failure.
*/
code: Error.Code | null;

/**
* A human-readable message giving the reason for the failure. These messages can be shown to your users.
*/
reason: string | null;
}

namespace Error {
type Code =
| 'email_unverified_other'
| 'email_verification_declined';
}

type Status = 'unverified' | 'verified';
}

interface IdNumber {
/**
* Date of birth.
Expand Down Expand Up @@ -324,6 +378,45 @@ declare module 'stripe' {
interface IdNumber {}
}

interface Phone {
/**
* Details on the verification error. Present when status is `unverified`.
*/
error: Phone.Error | null;

/**
* Phone to be verified.
*/
phone: string | null;

/**
* Status of this `phone` check.
*/
status: Phone.Status;
}

namespace Phone {
interface Error {
/**
* A short machine-readable string giving the reason for the verification failure.
*/
code: Error.Code | null;

/**
* A human-readable message giving the reason for the failure. These messages can be shown to your users.
*/
reason: string | null;
}

namespace Error {
type Code =
| 'phone_unverified_other'
| 'phone_verification_declined';
}

type Status = 'unverified' | 'verified';
}

interface Selfie {
/**
* ID of the [File](https://stripe.com/docs/api/files) holding the image of the identity document used in this check.
Expand Down Expand Up @@ -370,7 +463,7 @@ declare module 'stripe' {
type Status = 'unverified' | 'verified';
}

type Type = 'document' | 'id_number';
type Type = 'document' | 'id_number' | 'verification_flow';
}
}
}
Expand Down
Loading
Loading