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 #2125

Merged
merged 7 commits into from
Jul 5, 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 @@
v1103
v1116
12 changes: 12 additions & 0 deletions src/resources/Invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export const Invoices = StripeResource.extend({
methodType: 'list',
}),
del: stripeMethod({method: 'DELETE', fullPath: '/v1/invoices/{invoice}'}),
addLines: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/add_lines',
}),
createPreview: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/create_preview',
Expand All @@ -35,6 +39,10 @@ export const Invoices = StripeResource.extend({
fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
}),
pay: stripeMethod({method: 'POST', fullPath: '/v1/invoices/{invoice}/pay'}),
removeLines: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/remove_lines',
}),
retrieveUpcoming: stripeMethod({
method: 'GET',
fullPath: '/v1/invoices/upcoming',
Expand All @@ -48,6 +56,10 @@ export const Invoices = StripeResource.extend({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/send',
}),
updateLines: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/update_lines',
}),
updateLineItem: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/lines/{line_item_id}',
Expand Down
4 changes: 2 additions & 2 deletions types/Billing/MeterEventSummaries.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare module 'stripe' {
aggregated_value: number;

/**
* End timestamp for this event summary (inclusive).
* End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
*/
end_time: number;

Expand All @@ -39,7 +39,7 @@ declare module 'stripe' {
meter: string;

/**
* Start timestamp for this event summary (inclusive).
* Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
*/
start_time: number;
}
Expand Down
4 changes: 2 additions & 2 deletions types/Billing/MetersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ declare module 'stripe' {
customer: string;

/**
* The timestamp from when to stop aggregating meter events (exclusive).
* The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
*/
end_time: number;

/**
* The timestamp from when to start aggregating meter events (inclusive).
* The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.
*/
start_time: number;

Expand Down
12 changes: 6 additions & 6 deletions types/CustomerSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
declare module 'stripe' {
namespace Stripe {
/**
* A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs)
* control over a customer.
* A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
* control over a Customer.
*/
interface CustomerSession {
/**
Expand All @@ -13,14 +13,14 @@ declare module 'stripe' {
object: 'customer_session';

/**
* The client secret of this customer session. Used on the client to set up secure access to the given `customer`.
* The client secret of this Customer Session. Used on the client to set up secure access to the given `customer`.
*
* The client secret can be used to provide access to `customer` from your frontend. It should not be stored, logged, or exposed to anyone other than the relevant customer. Make sure that you have TLS enabled on any page that includes the client secret.
*/
client_secret: string;

/**
* Configuration for the components supported by this customer session.
* Configuration for the components supported by this Customer Session.
*/
components?: CustomerSession.Components;

Expand All @@ -30,12 +30,12 @@ declare module 'stripe' {
created: number;

/**
* The customer the customer session was created for.
* The Customer the Customer Session was created for.
*/
customer: string | Stripe.Customer;

/**
* The timestamp at which this customer session will expire.
* The timestamp at which this Customer Session will expire.
*/
expires_at: number;

Expand Down
4 changes: 2 additions & 2 deletions types/CustomerSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare module 'stripe' {
components: CustomerSessionCreateParams.Components;

/**
* The ID of an existing customer for which to create the customer session.
* The ID of an existing customer for which to create the Customer Session.
*/
customer: string;

Expand Down Expand Up @@ -51,7 +51,7 @@ declare module 'stripe' {

class CustomerSessionsResource {
/**
* Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
* Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
*/
create(
params: CustomerSessionCreateParams,
Expand Down
2 changes: 1 addition & 1 deletion types/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ declare module 'stripe' {
name?: string | null;

/**
* The suffix of the customer's next invoice number (for example, 0001).
* The suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.
*/
next_invoice_sequence?: number;

Expand Down
2 changes: 1 addition & 1 deletion types/EventTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ declare module 'stripe' {
}

/**
* Occurs whenever a card or source will expire at the end of the month.
* Occurs whenever a card or source will expire at the end of the month. This event only works with legacy integrations using Card or Source objects. If you use the PaymentMethod API, this event won't occur.
*/
interface CustomerSourceExpiringEvent extends EventBase {
type: 'customer.source.expiring';
Expand Down
1 change: 1 addition & 0 deletions types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ declare module 'stripe' {
| 'parameters_exclusive'
| 'payment_intent_action_required'
| 'payment_intent_authentication_failure'
| 'payment_intent_fx_quote_invalid'
| 'payment_intent_incompatible_payment_method'
| 'payment_intent_invalid_parameter'
| 'payment_intent_konbini_rejected_confirmation_number'
Expand Down
Loading
Loading