Skip to content

Commit

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

* Update generated code for v739

* Update generated code for v740

* Update generated code for v740

* Update generated code for v741

* Update generated code for v742

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jan 4, 2024
1 parent f88ee63 commit ab71352
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 15 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v737
v742
4 changes: 4 additions & 0 deletions src/resources/Tax/Registrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import {StripeResource} from '../../StripeResource.js';
const stripeMethod = StripeResource.method;
export const Registrations = StripeResource.extend({
create: stripeMethod({method: 'POST', fullPath: '/v1/tax/registrations'}),
retrieve: stripeMethod({
method: 'GET',
fullPath: '/v1/tax/registrations/{id}',
}),
update: stripeMethod({
method: 'POST',
fullPath: '/v1/tax/registrations/{id}',
Expand Down
12 changes: 6 additions & 6 deletions types/AccountSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ declare module 'stripe' {
interface Components {
account_onboarding: Components.AccountOnboarding;

payment_details?: Components.PaymentDetails;
payment_details: Components.PaymentDetails;

payments?: Components.Payments;
payments: Components.Payments;

payouts?: Components.Payouts;
payouts: Components.Payouts;
}

namespace Components {
Expand All @@ -75,7 +75,7 @@ declare module 'stripe' {
*/
enabled: boolean;

features?: PaymentDetails.Features;
features: PaymentDetails.Features;
}

namespace PaymentDetails {
Expand Down Expand Up @@ -103,7 +103,7 @@ declare module 'stripe' {
*/
enabled: boolean;

features?: Payments.Features;
features: Payments.Features;
}

namespace Payments {
Expand Down Expand Up @@ -131,7 +131,7 @@ declare module 'stripe' {
*/
enabled: boolean;

features?: Payouts.Features;
features: Payouts.Features;
}

namespace Payouts {
Expand Down
4 changes: 2 additions & 2 deletions types/PaymentLinks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ declare module 'stripe' {
/**
* The custom message to be displayed to a customer when a payment link is no longer active.
*/
inactive_message?: string | null;
inactive_message: string | null;

/**
* Configuration for creating invoice for payment mode payment links.
Expand Down Expand Up @@ -130,7 +130,7 @@ declare module 'stripe' {
/**
* Settings that restrict the usage of a payment link.
*/
restrictions?: PaymentLink.Restrictions | null;
restrictions: PaymentLink.Restrictions | null;

/**
* Configuration for collecting the customer's shipping address.
Expand Down
5 changes: 1 addition & 4 deletions types/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,7 @@ declare module 'stripe' {
*/
description: string | null;

/**
* The subscription schedule's default invoice settings.
*/
invoice_settings: DefaultSettings.InvoiceSettings | null;
invoice_settings: DefaultSettings.InvoiceSettings;

/**
* The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
Expand Down
2 changes: 1 addition & 1 deletion types/Subscriptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ declare module 'stripe' {
automatic_tax: Subscription.AutomaticTax;

/**
* Determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
* The reference point that aligns future [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format.
*/
billing_cycle_anchor: number;

Expand Down
2 changes: 1 addition & 1 deletion types/SubscriptionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ declare module 'stripe' {
backdate_start_date?: number;

/**
* A future timestamp to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
* A future timestamp in UTC format to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). The anchor is the reference point that aligns future billing cycle dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals.
*/
billing_cycle_anchor?: number;

Expand Down
20 changes: 20 additions & 0 deletions types/Tax/RegistrationsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,13 @@ declare module 'stripe' {
}
}

interface RegistrationRetrieveParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}

interface RegistrationUpdateParams {
/**
* Time at which the registration becomes active. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch.
Expand Down Expand Up @@ -1259,6 +1266,19 @@ declare module 'stripe' {
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Tax.Registration>>;

/**
* Returns a Tax Registration object.
*/
retrieve(
id: string,
params?: RegistrationRetrieveParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Tax.Registration>>;
retrieve(
id: string,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Tax.Registration>>;

/**
* Updates an existing Tax Registration object.
*
Expand Down

0 comments on commit ab71352

Please sign in to comment.