-
Notifications
You must be signed in to change notification settings - Fork 728
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2036 from stripe/latest-codegen-beta
Update generated code for beta
- Loading branch information
Showing
37 changed files
with
2,357 additions
and
5 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1 @@ | ||
v869 | ||
v879 |
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
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 ConfirmationTokens = StripeResource.extend({ | ||
create: stripeMethod({ | ||
method: 'POST', | ||
fullPath: '/v1/test_helpers/confirmation_tokens', | ||
}), | ||
}); |
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
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; | ||
} | ||
} | ||
} | ||
} |
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,50 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
namespace Billing { | ||
/** | ||
* A billing meter event represents a customer's usage of a product. Meter events are used to bill a customer based on their usage. | ||
* Meter events are associated with billing meters, which define the shape of the event's payload and how those events are aggregated for billing. | ||
*/ | ||
interface MeterEvent { | ||
/** | ||
* String representing the object's type. Objects of the same type share the same value. | ||
*/ | ||
object: 'billing.meter_event'; | ||
|
||
/** | ||
* Time at which the object was created. Measured in seconds since the Unix epoch. | ||
*/ | ||
created: number; | ||
|
||
/** | ||
* The name of the meter event. Corresponds with the `event_name` field on a meter. | ||
*/ | ||
event_name: string; | ||
|
||
/** | ||
* A unique identifier for the event. | ||
*/ | ||
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. | ||
*/ | ||
payload: { | ||
[key: string]: string; | ||
}; | ||
|
||
/** | ||
* The timestamp passed in when creating the event. Measured in seconds since the Unix epoch. | ||
*/ | ||
timestamp: number; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.