Initial project import
This commit is contained in:
81
node_modules/stripe/esm/resources/V2/Billing/MeterEventAdjustments.d.ts
generated
vendored
Normal file
81
node_modules/stripe/esm/resources/V2/Billing/MeterEventAdjustments.d.ts
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
import { RequestOptions, Response } from '../../../lib.js';
|
||||
export declare class MeterEventAdjustmentResource extends StripeResource {
|
||||
/**
|
||||
* Creates a meter event adjustment to cancel a previously sent meter event.
|
||||
*/
|
||||
create(params: V2.Billing.MeterEventAdjustmentCreateParams, options?: RequestOptions): Promise<Response<MeterEventAdjustment>>;
|
||||
}
|
||||
export interface MeterEventAdjustment {
|
||||
/**
|
||||
* The unique ID of this meter event adjustment.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value of the object field.
|
||||
*/
|
||||
object: 'v2.billing.meter_event_adjustment';
|
||||
/**
|
||||
* Specifies which event to cancel.
|
||||
*/
|
||||
cancel: V2.Billing.MeterEventAdjustment.Cancel;
|
||||
/**
|
||||
* The time the adjustment was created.
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* Open Enum. The meter event adjustment's status.
|
||||
*/
|
||||
status: V2.Billing.MeterEventAdjustment.Status;
|
||||
/**
|
||||
* Open Enum. Specifies the type of cancellation. Currently supports canceling a single event.
|
||||
*/
|
||||
type: 'cancel';
|
||||
}
|
||||
export declare namespace V2 {
|
||||
namespace Billing {
|
||||
namespace MeterEventAdjustment {
|
||||
interface Cancel {
|
||||
/**
|
||||
* The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them.
|
||||
*/
|
||||
identifier: string;
|
||||
}
|
||||
type Status = 'complete' | 'pending';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace V2 {
|
||||
namespace Billing {
|
||||
interface MeterEventAdjustmentCreateParams {
|
||||
/**
|
||||
* Specifies which event to cancel.
|
||||
*/
|
||||
cancel: MeterEventAdjustmentCreateParams.Cancel;
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* Specifies the type of cancellation. Currently supports canceling a single event.
|
||||
*/
|
||||
type: 'cancel';
|
||||
}
|
||||
namespace MeterEventAdjustmentCreateParams {
|
||||
interface Cancel {
|
||||
/**
|
||||
* The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them.
|
||||
*/
|
||||
identifier: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/V2/Billing/MeterEventAdjustments.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/V2/Billing/MeterEventAdjustments.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
export class MeterEventAdjustmentResource extends StripeResource {
|
||||
/**
|
||||
* Creates a meter event adjustment to cancel a previously sent meter event.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v2/billing/meter_event_adjustments', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=MeterEventAdjustments.js.map
|
||||
1
node_modules/stripe/esm/resources/V2/Billing/MeterEventAdjustments.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/V2/Billing/MeterEventAdjustments.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MeterEventAdjustments.js","sourceRoot":"","sources":["../../../../src/resources/V2/Billing/MeterEventAdjustments.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAG1D,MAAM,OAAO,4BAA6B,SAAQ,cAAc;IAC9D;;OAEG;IACH,MAAM,CACJ,MAAmD,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,qCAAqC,EACrC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
41
node_modules/stripe/esm/resources/V2/Billing/MeterEventSession.d.ts
generated
vendored
Normal file
41
node_modules/stripe/esm/resources/V2/Billing/MeterEventSession.d.ts
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
import { RequestOptions, Response } from '../../../lib.js';
|
||||
export declare class MeterEventSessionResource extends StripeResource {
|
||||
/**
|
||||
* Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you need to create a new meter event session when your token expires.
|
||||
*/
|
||||
create(params?: V2.Billing.MeterEventSessionCreateParams, options?: RequestOptions): Promise<Response<MeterEventSession>>;
|
||||
}
|
||||
export interface MeterEventSession {
|
||||
/**
|
||||
* The unique ID of this auth session.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value of the object field.
|
||||
*/
|
||||
object: 'v2.billing.meter_event_session';
|
||||
/**
|
||||
* The authentication token for this session. Use this token when calling the
|
||||
* high-throughput meter event API.
|
||||
*/
|
||||
authentication_token: string;
|
||||
/**
|
||||
* The creation time of this session.
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* The time at which this session expires.
|
||||
*/
|
||||
expires_at: string;
|
||||
/**
|
||||
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
||||
*/
|
||||
livemode: boolean;
|
||||
}
|
||||
export declare namespace V2 {
|
||||
namespace Billing {
|
||||
interface MeterEventSessionCreateParams {
|
||||
}
|
||||
}
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/V2/Billing/MeterEventSession.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/V2/Billing/MeterEventSession.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
export class MeterEventSessionResource extends StripeResource {
|
||||
/**
|
||||
* Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you need to create a new meter event session when your token expires.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v2/billing/meter_event_session', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=MeterEventSession.js.map
|
||||
1
node_modules/stripe/esm/resources/V2/Billing/MeterEventSession.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/V2/Billing/MeterEventSession.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MeterEventSession.js","sourceRoot":"","sources":["../../../../src/resources/V2/Billing/MeterEventSession.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAG1D,MAAM,OAAO,yBAA0B,SAAQ,cAAc;IAC3D;;OAEG;IACH,MAAM,CACJ,MAAiD,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,iCAAiC,EACjC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
48
node_modules/stripe/esm/resources/V2/Billing/MeterEventStream.d.ts
generated
vendored
Normal file
48
node_modules/stripe/esm/resources/V2/Billing/MeterEventStream.d.ts
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
import { RequestOptions } from '../../../lib.js';
|
||||
export declare class MeterEventStreamResource extends StripeResource {
|
||||
/**
|
||||
* Creates meter events. Events are processed asynchronously, including validation. Requires a meter event session for authentication. Supports up to 10,000 requests per second in livemode. For even higher rate-limits, contact sales.
|
||||
* @throws Stripe.TemporarySessionExpiredError
|
||||
*/
|
||||
create(params: V2.Billing.MeterEventStreamCreateParams, options?: RequestOptions): Promise<void>;
|
||||
}
|
||||
export declare namespace V2 {
|
||||
namespace Billing {
|
||||
interface MeterEventStreamCreateParams {
|
||||
/**
|
||||
* List of meter events to include in the request. Supports up to 100 events per request.
|
||||
*/
|
||||
events: Array<MeterEventStreamCreateParams.Event>;
|
||||
}
|
||||
namespace MeterEventStreamCreateParams {
|
||||
interface Event {
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
/**
|
||||
* The time of the event. Must be within the past 35 calendar days or up to
|
||||
* 5 minutes in the future. Defaults to current timestamp if not specified.
|
||||
*/
|
||||
timestamp?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
14
node_modules/stripe/esm/resources/V2/Billing/MeterEventStream.js
generated
vendored
Normal file
14
node_modules/stripe/esm/resources/V2/Billing/MeterEventStream.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
export class MeterEventStreamResource extends StripeResource {
|
||||
/**
|
||||
* Creates meter events. Events are processed asynchronously, including validation. Requires a meter event session for authentication. Supports up to 10,000 requests per second in livemode. For even higher rate-limits, contact sales.
|
||||
* @throws Stripe.TemporarySessionExpiredError
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v2/billing/meter_event_stream', params, options, {
|
||||
apiBase: 'meter_events',
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=MeterEventStream.js.map
|
||||
1
node_modules/stripe/esm/resources/V2/Billing/MeterEventStream.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/V2/Billing/MeterEventStream.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MeterEventStream.js","sourceRoot":"","sources":["../../../../src/resources/V2/Billing/MeterEventStream.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAG1D,MAAM,OAAO,wBAAyB,SAAQ,cAAc;IAC1D;;;OAGG;IACH,MAAM,CACJ,MAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gCAAgC,EAChC,MAAM,EACN,OAAO,EACP;YACE,OAAO,EAAE,cAAc;SACxB,CACK,CAAC;IACX,CAAC;CACF"}
|
||||
75
node_modules/stripe/esm/resources/V2/Billing/MeterEvents.d.ts
generated
vendored
Normal file
75
node_modules/stripe/esm/resources/V2/Billing/MeterEvents.d.ts
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
import { RequestOptions, Response } from '../../../lib.js';
|
||||
export declare class MeterEventResource extends StripeResource {
|
||||
/**
|
||||
* Creates a meter event. Events are validated synchronously, but are processed asynchronously. Supports up to 1,000 events per second in livemode. For higher rate-limits, please use meter event streams instead.
|
||||
*/
|
||||
create(params: V2.Billing.MeterEventCreateParams, options?: RequestOptions): Promise<Response<MeterEvent>>;
|
||||
}
|
||||
export interface MeterEvent {
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value of the object field.
|
||||
*/
|
||||
object: 'v2.billing.meter_event';
|
||||
/**
|
||||
* The creation time of this meter event.
|
||||
*/
|
||||
created: string;
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* 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 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;
|
||||
};
|
||||
/**
|
||||
* The time of the event. Must be within the past 35 calendar days or up to
|
||||
* 5 minutes in the future. Defaults to current timestamp if not specified.
|
||||
*/
|
||||
timestamp: string;
|
||||
}
|
||||
export declare namespace V2 {
|
||||
namespace Billing {
|
||||
interface MeterEventCreateParams {
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* The time of the event. Must be within the past 35 calendar days or up to
|
||||
* 5 minutes in the future. Defaults to current timestamp if not specified.
|
||||
*/
|
||||
timestamp?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/V2/Billing/MeterEvents.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/V2/Billing/MeterEvents.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
export class MeterEventResource extends StripeResource {
|
||||
/**
|
||||
* Creates a meter event. Events are validated synchronously, but are processed asynchronously. Supports up to 1,000 events per second in livemode. For higher rate-limits, please use meter event streams instead.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v2/billing/meter_events', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=MeterEvents.js.map
|
||||
1
node_modules/stripe/esm/resources/V2/Billing/MeterEvents.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/V2/Billing/MeterEvents.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MeterEvents.js","sourceRoot":"","sources":["../../../../src/resources/V2/Billing/MeterEvents.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAG1D,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD;;OAEG;IACH,MAAM,CACJ,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,0BAA0B,EAC1B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
24
node_modules/stripe/esm/resources/V2/Billing/index.d.ts
generated
vendored
Normal file
24
node_modules/stripe/esm/resources/V2/Billing/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { Stripe } from '../../../stripe.core.js';
|
||||
import { V2 as V2Namespace0, MeterEvent, MeterEventResource } from './MeterEvents.js';
|
||||
import { V2 as V2Namespace1, MeterEventAdjustment, MeterEventAdjustmentResource } from './MeterEventAdjustments.js';
|
||||
import { V2 as V2Namespace2, MeterEventSession, MeterEventSessionResource } from './MeterEventSession.js';
|
||||
import { MeterEventStreamResource } from './MeterEventStream.js';
|
||||
export { MeterEvent } from './MeterEvents.js';
|
||||
export { MeterEventAdjustment } from './MeterEventAdjustments.js';
|
||||
export { MeterEventSession } from './MeterEventSession.js';
|
||||
export declare class Billing {
|
||||
private readonly stripe;
|
||||
meterEvents: MeterEventResource;
|
||||
meterEventAdjustments: MeterEventAdjustmentResource;
|
||||
meterEventSession: MeterEventSessionResource;
|
||||
meterEventStream: MeterEventStreamResource;
|
||||
constructor(stripe: Stripe);
|
||||
}
|
||||
export declare namespace Billing {
|
||||
export import MeterEventCreateParams = V2Namespace0.Billing.MeterEventCreateParams;
|
||||
export { MeterEvent };
|
||||
export import MeterEventAdjustmentCreateParams = V2Namespace1.Billing.MeterEventAdjustmentCreateParams;
|
||||
export { MeterEventAdjustment };
|
||||
export import MeterEventSessionCreateParams = V2Namespace2.Billing.MeterEventSessionCreateParams;
|
||||
export { MeterEventSession };
|
||||
}
|
||||
15
node_modules/stripe/esm/resources/V2/Billing/index.js
generated
vendored
Normal file
15
node_modules/stripe/esm/resources/V2/Billing/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { MeterEventResource, } from './MeterEvents.js';
|
||||
import { MeterEventAdjustmentResource, } from './MeterEventAdjustments.js';
|
||||
import { MeterEventSessionResource, } from './MeterEventSession.js';
|
||||
import { MeterEventStreamResource, } from './MeterEventStream.js';
|
||||
export class Billing {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.meterEvents = new MeterEventResource(stripe);
|
||||
this.meterEventAdjustments = new MeterEventAdjustmentResource(stripe);
|
||||
this.meterEventSession = new MeterEventSessionResource(stripe);
|
||||
this.meterEventStream = new MeterEventStreamResource(stripe);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/esm/resources/V2/Billing/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/V2/Billing/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/V2/Billing/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAGL,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAM/B,MAAM,OAAO,OAAO;IAMlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,WAAW,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,qBAAqB,GAAG,IAAI,4BAA4B,CAAC,MAAM,CAAC,CAAC;QACtE,IAAI,CAAC,iBAAiB,GAAG,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;QAC/D,IAAI,CAAC,gBAAgB,GAAG,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAC/D,CAAC;CACF"}
|
||||
Reference in New Issue
Block a user