Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into sdk-release/next-major
- Loading branch information
Showing
40 changed files
with
2,672 additions
and
1,606 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v896 | ||
v911 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
14.22.0 | ||
14.23.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
import {StripeResource} from '../../StripeResource.js'; | ||
const stripeMethod = StripeResource.method; | ||
export const MeterEventAdjustments = StripeResource.extend({ | ||
create: stripeMethod({ | ||
method: 'POST', | ||
fullPath: '/v1/billing/meter_event_adjustments', | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
import {StripeResource} from '../../StripeResource.js'; | ||
const stripeMethod = StripeResource.method; | ||
export const MeterEvents = StripeResource.extend({ | ||
create: stripeMethod({method: 'POST', fullPath: '/v1/billing/meter_events'}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
import {StripeResource} from '../../StripeResource.js'; | ||
const stripeMethod = StripeResource.method; | ||
export const Meters = StripeResource.extend({ | ||
create: stripeMethod({method: 'POST', fullPath: '/v1/billing/meters'}), | ||
retrieve: stripeMethod({method: 'GET', fullPath: '/v1/billing/meters/{id}'}), | ||
update: stripeMethod({method: 'POST', fullPath: '/v1/billing/meters/{id}'}), | ||
list: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/billing/meters', | ||
methodType: 'list', | ||
}), | ||
deactivate: stripeMethod({ | ||
method: 'POST', | ||
fullPath: '/v1/billing/meters/{id}/deactivate', | ||
}), | ||
listEventSummaries: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/billing/meters/{id}/event_summaries', | ||
methodType: 'list', | ||
}), | ||
reactivate: stripeMethod({ | ||
method: 'POST', | ||
fullPath: '/v1/billing/meters/{id}/reactivate', | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
namespace Billing { | ||
/** | ||
* A billing meter event adjustment represents the status of a meter event adjustment. | ||
*/ | ||
interface MeterEventAdjustment { | ||
/** | ||
* String representing the object's type. Objects of the same type share the same value. | ||
*/ | ||
object: 'billing.meter_event_adjustment'; | ||
|
||
/** | ||
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. | ||
*/ | ||
livemode: boolean; | ||
|
||
/** | ||
* The meter event adjustment's status. | ||
*/ | ||
status: MeterEventAdjustment.Status; | ||
} | ||
|
||
namespace MeterEventAdjustment { | ||
type Status = 'complete' | 'pending'; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
namespace Billing { | ||
interface MeterEventAdjustmentCreateParams { | ||
/** | ||
* Specifies which event to cancel. | ||
*/ | ||
cancel: MeterEventAdjustmentCreateParams.Cancel; | ||
|
||
/** | ||
* Specifies which fields in the response should be expanded. | ||
*/ | ||
expand?: Array<string>; | ||
|
||
/** | ||
* Specifies whether to cancel a single event or a range of events for a time period. | ||
*/ | ||
type?: 'cancel'; | ||
} | ||
|
||
namespace MeterEventAdjustmentCreateParams { | ||
interface Cancel { | ||
/** | ||
* Unique identifier for the event. | ||
*/ | ||
identifier: string; | ||
} | ||
} | ||
|
||
class MeterEventAdjustmentsResource { | ||
/** | ||
* Creates a billing meter event adjustment | ||
*/ | ||
create( | ||
params: MeterEventAdjustmentCreateParams, | ||
options?: RequestOptions | ||
): Promise<Stripe.Response<Stripe.Billing.MeterEventAdjustment>>; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
namespace Billing { | ||
/** | ||
* A billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much | ||
* usage was accrued by a customer for that period. | ||
*/ | ||
interface MeterEventSummary { | ||
/** | ||
* Unique identifier for the object. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* String representing the object's type. Objects of the same type share the same value. | ||
*/ | ||
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: number; | ||
|
||
/** | ||
* End timestamp for this usage summary (inclusive). | ||
*/ | ||
end_time: number; | ||
|
||
/** | ||
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. | ||
*/ | ||
livemode: boolean; | ||
|
||
/** | ||
* The meter associated with this usage summary. | ||
*/ | ||
meter: string; | ||
|
||
/** | ||
* Start timestamp for this usage summary (inclusive). | ||
*/ | ||
start_time: number; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.