Skip to content

Commit

Permalink
Update generated code for v964
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 17, 2024
1 parent ddba465 commit 1a000b5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v963
v964
8 changes: 4 additions & 4 deletions types/Billing/MeterEventSummaries.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ declare module 'stripe' {
object: 'billing.meter_event_summary';

/**
* Aggregated value of all the events within start_time (inclusive) and end_time (inclusive). The aggregation strategy is defined on meter via `default_aggregation``.
* Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`.
*/
aggregated_value: number;

/**
* End timestamp for this usage summary (inclusive).
* End timestamp for this event summary (inclusive).
*/
end_time: number;

Expand All @@ -34,12 +34,12 @@ declare module 'stripe' {
livemode: boolean;

/**
* The meter associated with this usage summary.
* The meter associated with this event summary.
*/
meter: string;

/**
* Start timestamp for this usage summary (inclusive).
* Start timestamp for this event summary (inclusive).
*/
start_time: number;
}
Expand Down
2 changes: 1 addition & 1 deletion types/Billing/MeterEvents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare module 'stripe' {
livemode: boolean;

/**
* The payload of the event.
* The payload of the event. This contains the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://stripe.com/docs/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).
*/
payload: {
[key: string]: string;
Expand Down
2 changes: 1 addition & 1 deletion types/Billing/MeterEventsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare module 'stripe' {
event_name: string;

/**
* The payload of the event. This must contain a field with the event's numerical value and a field to map the event to a customer.
* The payload of the event. This must contain the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).
*/
payload: {
[key: string]: string;
Expand Down
8 changes: 4 additions & 4 deletions types/Billing/Meters.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ declare module 'stripe' {
display_name: string;

/**
* The name of the usage event to record usage for. Corresponds with the `event_name` field on usage events.
* The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
*/
event_name: string;

/**
* The time window to pre-aggregate usage events for, if any.
* The time window to pre-aggregate meter events for, if any.
*/
event_time_window: Meter.EventTimeWindow | null;

Expand All @@ -64,7 +64,7 @@ declare module 'stripe' {
namespace Meter {
interface CustomerMapping {
/**
* The key in the usage event payload to use for mapping the event to a customer.
* The key in the meter event payload to use for mapping the event to a customer.
*/
event_payload_key: string;

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

interface ValueSettings {
/**
* The key in the usage event payload to use as the value for this meter.
* The key in the meter event payload to use as the value for this meter.
*/
event_payload_key: string;
}
Expand Down
10 changes: 5 additions & 5 deletions types/Billing/MetersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare module 'stripe' {
display_name: string;

/**
* The name of the usage event to record usage for. Corresponds with the `event_name` field on usage events.
* The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
*/
event_name: string;

Expand All @@ -25,7 +25,7 @@ declare module 'stripe' {
customer_mapping?: MeterCreateParams.CustomerMapping;

/**
* The time window to pre-aggregate usage events for, if any.
* The time window to pre-aggregate meter events for, if any.
*/
event_time_window?: MeterCreateParams.EventTimeWindow;

Expand All @@ -35,7 +35,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* Fields that specify how to calculate a usage event's value.
* Fields that specify how to calculate a meter event's value.
*/
value_settings?: MeterCreateParams.ValueSettings;
}
Expand Down Expand Up @@ -123,12 +123,12 @@ declare module 'stripe' {
customer: string;

/**
* The timestamp from when to stop aggregating usage events (exclusive).
* The timestamp from when to stop aggregating meter events (exclusive).
*/
end_time: number;

/**
* The timestamp from when to start aggregating usage events (inclusive).
* The timestamp from when to start aggregating meter events (inclusive).
*/
start_time: number;

Expand Down

0 comments on commit 1a000b5

Please sign in to comment.