diff --git a/fonts/slate-7b7da4fe.ttf b/fonts/slate-7b7da4fe.ttf old mode 100755 new mode 100644 diff --git a/fonts/slate-cfc9d06b.eot b/fonts/slate-cfc9d06b.eot old mode 100755 new mode 100644 diff --git a/index.html b/index.html index 273da30..26d7bb6 100644 --- a/index.html +++ b/index.html @@ -1751,7 +1751,7 @@
[
{
+ "ending_balance": {
+ "sequence_id": 0,
+ "current_balance": 0,
+ "pending_activity": 0,
+ "available_balance": 0
+ },
"company_id": "string",
"success": true,
"provider": "string",
"report_version": 0,
"usage_end_time": "2019-08-24T14:15:22Z",
+ "usage": {
+ "invoice": {
+ "period_start": "2019-08-24T14:15:22Z",
+ "period_end": "2019-08-24T14:15:22Z",
+ "id": "string"
+ },
+ "aggregator": "string"
+ },
"_id": "string",
"meter_usage": 0,
"last_success_time": "2019-08-24T14:15:22Z",
+ "beginning_balance": {
+ "sequence_id": 0,
+ "current_balance": 0,
+ "pending_activity": 0,
+ "available_balance": 0
+ },
"billing_meter_id": "string",
"amount": 0,
"usage_start_time": "2019-08-24T14:15:22Z",
"status": "string",
"provider_requests": [
- null
+ {
+ "success": true,
+ "status_code": 0,
+ "job_id": "string",
+ "error_message": "string",
+ "error_code": "string",
+ "request_time": "2019-08-24T14:15:22Z"
+ }
],
"currency": "string",
"report_total_usage": 0,
"channel_requests": [
- null
+ {
+ "channel_id": "string",
+ "channel_name": "string",
+ "provider_requests": [
+ {
+ "success": true,
+ "status_code": 0,
+ "job_id": "string",
+ "error_message": "string",
+ "error_code": "string",
+ "request_time": "2019-08-24T14:15:22Z"
+ }
+ ]
+ }
],
"created_at": "2019-08-24T14:15:22Z",
"app_id": "string",
"subscription_id": "string",
+ "subscription_period_start": "2019-08-24T14:15:22Z",
+ "balance_changes": [
+ {
+ "amount": 0
+ }
+ ],
"type": "string",
"updated_at": "2019-08-24T14:15:22Z",
"org_id": "string",
+ "subscription_period_end": "2019-08-24T14:15:22Z",
"meter_metric": 0
}
]
@@ -11462,6 +11565,41 @@ Response Schema
none
+» ending_balance
+object
+false
+none
+none
+
+
+»» sequence_id
+integer(int32)
+true
+none
+none
+
+
+»» current_balance
+number(double)
+true
+none
+none
+
+
+»» pending_activity
+number(double)
+true
+none
+none
+
+
+»» available_balance
+number(double)
+true
+none
+none
+
+
» company_id
string
true
@@ -11497,6 +11635,48 @@ Response Schema
none
+» usage
+object
+false
+none
+none
+
+
+»» invoice
+object
+false
+none
+none
+
+
+»»» period_start
+string(date-time)
+false
+none
+none
+
+
+»»» period_end
+string(date-time)
+false
+none
+none
+
+
+»»» id
+string
+true
+none
+none
+
+
+»» aggregator
+string
+false
+none
+none
+
+
» _id
string
false
@@ -11518,6 +11698,13 @@ Response Schema
none
+» beginning_balance
+object
+false
+none
+none
+
+
» billing_meter_id
string
true
@@ -11547,7 +11734,49 @@ Response Schema
» provider_requests
-[providerrequest]
+[ProviderRequest]
+true
+none
+none
+
+
+»» success
+boolean
+true
+none
+none
+
+
+»» status_code
+integer(int32)
+true
+none
+none
+
+
+»» job_id
+string
+true
+none
+none
+
+
+»» error_message
+string
+true
+none
+none
+
+
+»» error_code
+string
+true
+none
+none
+
+
+»» request_time
+string(date-time)
true
none
none
@@ -11568,12 +11797,33 @@ Response Schema
» channel_requests
-[channelrequest]
+[ChannelRequest]
false
none
none
+»» channel_id
+string
+true
+none
+none
+
+
+»» channel_name
+string
+true
+none
+none
+
+
+»» provider_requests
+[ProviderRequest]
+true
+none
+none
+
+
» created_at
string(date-time)
false
@@ -11595,6 +11845,27 @@ Response Schema
none
+» subscription_period_start
+string(date-time)
+false
+none
+none
+
+
+» balance_changes
+[BalanceChange]
+false
+none
+none
+
+
+»» amount
+number(double)
+true
+none
+none
+
+
» type
string
false
@@ -11616,6 +11887,13 @@ Response Schema
none
+» subscription_period_end
+string(date-time)
+false
+none
+none
+
+
» meter_metric
integer(int64)
true
@@ -11635,7 +11913,7 @@ getBillingReportsMetrics
Code samples
# You can also use wget
-curl -X GET https://api.moesif.com/v1/~/billing/reports/metrics?billing_meter_id=string&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z \
+curl -X GET https://api.moesif.com/v1/~/billing/reports/metrics?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z \
-H 'Accept: application/json'
const fetch = require('node-fetch');
@@ -11644,7 +11922,7 @@ getBillingReportsMetrics
'Accept':'application/json'
};
-fetch('https://api.moesif.com/v1/~/billing/reports/metrics?billing_meter_id=string&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z',
+fetch('https://api.moesif.com/v1/~/billing/reports/metrics?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z',
{
method: 'GET',
@@ -11662,7 +11940,7 @@ getBillingReportsMetrics
}
r = requests.get('https://api.moesif.com/v1/~/billing/reports/metrics', params={
- 'billing_meter_id': 'string', 'from': '2019-08-24T14:15:22Z', 'to': '2019-08-24T14:15:22Z'
+ 'from': '2019-08-24T14:15:22Z', 'to': '2019-08-24T14:15:22Z'
}, headers = headers)
print(r.json())
@@ -11676,8 +11954,7 @@ getBillingReportsMetrics
result = RestClient.get 'https://api.moesif.com/v1/~/billing/reports/metrics',
params: {
- 'billing_meter_id' => 'string',
-'from' => 'string(date-time)',
+ 'from' => 'string(date-time)',
'to' => 'string(date-time)'
}, headers: headers
@@ -11788,7 +12065,7 @@ getBillingReportsMetrics
}
}
-
URL obj = new URL("https://api.moesif.com/v1/~/billing/reports/metrics?billing_meter_id=string&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z");
+
URL obj = new URL("https://api.moesif.com/v1/~/billing/reports/metrics?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
@@ -11821,24 +12098,24 @@ Parameters
-billing_meter_id
+from
query
-string
+string(date-time)
true
none
-from
+to
query
string(date-time)
true
none
-to
+billing_meter_id
query
-string(date-time)
-true
+string
+false
none
@@ -11876,6 +12153,13 @@ Parameters
false
none
+
+type
+query
+array[string]
+false
+none
+
@@ -11884,15 +12168,16 @@ Parameters
200 Response
{
- "billing_meter_id": "string",
"buckets": [
{
"start": "2019-08-24T14:15:22Z",
- "metric": null,
- "usage": null,
- "errors": [
- "string"
- ]
+ "metric": 0,
+ "amounts": null,
+ "ending_balance": {
+ "current_balance": 0,
+ "pending_activity": 0,
+ "available_balance": 0
+ }
}
]
}
@@ -23376,7 +23661,7 @@ Response Schema
»»» up_to
-util.either[long,string]
+util.either[scala.long,string]
true
none
none
@@ -24964,7 +25249,7 @@ Response Schema
»» up_to
-util.either[long,string]
+util.either[scala.long,string]
true
none
none
@@ -32631,6 +32916,51 @@ AppUpdateDTO
+BillingReportUsageInvoice
+
+
+{
+ "period_start": "2019-08-24T14:15:22Z",
+ "period_end": "2019-08-24T14:15:22Z",
+ "id": "string"
+}
+
+
Properties
+
+
+Name
+Type
+Required
+Restrictions
+Description
+
+
+
+period_start
+string(date-time)
+false
+none
+none
+
+
+period_end
+string(date-time)
+false
+none
+none
+
+
+id
+string
+true
+none
+none
+
+
+
CohortCreateItem
CohortCreateItem
"time_zone": "string"
}
-
Properties
+
Name | @@ -32755,6 +33085,47 @@
---|
{
+ "invoice": {
+ "period_start": "2019-08-24T14:15:22Z",
+ "period_end": "2019-08-24T14:15:22Z",
+ "id": "string"
+ },
+ "aggregator": "string"
+}
+
+
Name | +Type | +Required | +Restrictions | +Description | +
---|---|---|---|---|
invoice | +BillingReportUsageInvoice | +false | +none | +none | +
aggregator | +string | +false | +none | +none | +
{
- "billing_meter_id": "string",
"buckets": [
{
"start": "2019-08-24T14:15:22Z",
- "metric": null,
- "usage": null,
- "errors": [
- "string"
- ]
+ "metric": 0,
+ "amounts": null,
+ "ending_balance": {
+ "current_balance": 0,
+ "pending_activity": 0,
+ "available_balance": 0
+ }
}
]
}
-
Name | @@ -32786,13 +33158,6 @@||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
billing_meter_id | -string | -true | -none | -none | -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
buckets | [BillingMetricBucket] | true | @@ -32817,7 +33182,7 @@
Name | @@ -32864,7 +33229,7 @@
---|
Name | @@ -32924,7 +33289,7 @@
---|
Name | @@ -32970,7 +33335,7 @@
---|
Name | @@ -33003,6 +33368,35 @@
---|
{
+ "amount": 0
+}
+
+
Name | +Type | +Required | +Restrictions | +Description | +
---|---|---|---|---|
amount | +number(double) | +true | +none | +none | +
Name | @@ -33053,7 +33447,7 @@
---|
Name | @@ -33104,7 +33498,7 @@
---|
Name | @@ -33149,7 +33543,7 @@
---|
Name | @@ -33254,7 +33648,7 @@
---|
Name | @@ -33285,7 +33679,7 @@
---|
Name | @@ -33332,7 +33726,7 @@
---|
Name | @@ -33414,7 +33808,7 @@
---|
Name | @@ -33598,7 +33992,7 @@
---|
Name | @@ -33686,7 +34080,7 @@
---|
Name | @@ -33734,14 +34128,16 @@
---|
Name | @@ -33760,21 +34156,21 @@|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
metric | -double | -true | +number(double) | +false | none | none | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
usage | -double | -true | +amounts | +collection.immutable.map[string,scala.double] | +false | none | none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
errors | -[string] | +ending_balance | +CreditBalanceMetric | false | none | none | @@ -33791,7 +34187,7 @@
Name | @@ -33850,7 +34246,7 @@
---|
Name | @@ -33953,6 +34349,51 @@
---|
{
+ "current_balance": 0,
+ "pending_activity": 0,
+ "available_balance": 0
+}
+
+
Name | +Type | +Required | +Restrictions | +Description | +
---|---|---|---|---|
current_balance | +number(double) | +true | +none | +none | +
pending_activity | +number(double) | +true | +none | +none | +
available_balance | +number(double) | +true | +none | +none | +
Name | @@ -34043,7 +34484,7 @@
---|
Name | @@ -34081,7 +34522,7 @@
---|
Name | @@ -34142,6 +34583,59 @@
---|
{
+ "sequence_id": 0,
+ "current_balance": 0,
+ "pending_activity": 0,
+ "available_balance": 0
+}
+
+
Name | +Type | +Required | +Restrictions | +Description | +
---|---|---|---|---|
sequence_id | +integer(int32) | +true | +none | +none | +
current_balance | +number(double) | +true | +none | +none | +
pending_activity | +number(double) | +true | +none | +none | +
available_balance | +number(double) | +true | +none | +none | +
Name | @@ -34332,7 +34826,7 @@
---|
Name | @@ -34449,7 +34943,7 @@
---|
Name | @@ -34517,7 +35011,7 @@
---|
Name | @@ -34620,36 +35114,83 @@
---|
Name | @@ -34660,6 +35201,13 @@|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ending_balance | +CreditBalance | +false | +none | +none | +|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
company_id | string | true | @@ -34695,6 +35243,13 @@none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
usage | +BillingReportUsage | +false | +none | +none | +|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
_id | string | false | @@ -34716,6 +35271,13 @@none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
beginning_balance | +CreditBalance | +false | +none | +none | +|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billing_meter_id | string | true | @@ -34745,7 +35307,7 @@|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
provider_requests | -[providerrequest] | +[ProviderRequest] | true | none | none | @@ -34766,7 +35328,7 @@||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
channel_requests | -[channelrequest] | +[ChannelRequest] | false | none | none | @@ -34793,6 +35355,20 @@none | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subscription_period_start | +string(date-time) | +false | +none | +none | +|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
balance_changes | +[BalanceChange] | +false | +none | +none | +|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | string | false | @@ -34814,6 +35390,13 @@none | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subscription_period_end | +string(date-time) | +false | +none | +none | +|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meter_metric | integer(int64) | true | @@ -34833,7 +35416,7 @@
Name | @@ -34875,7 +35458,7 @@
---|
Name | @@ -34952,7 +35535,7 @@
---|
Name | @@ -34989,7 +35572,7 @@
---|
Name | @@ -35015,6 +35598,60 @@
---|
{
+ "channel_id": "string",
+ "channel_name": "string",
+ "provider_requests": [
+ {
+ "success": true,
+ "status_code": 0,
+ "job_id": "string",
+ "error_message": "string",
+ "error_code": "string",
+ "request_time": "2019-08-24T14:15:22Z"
+ }
+ ]
+}
+
+
Name | +Type | +Required | +Restrictions | +Description | +
---|---|---|---|---|
channel_id | +string | +true | +none | +none | +
channel_name | +string | +true | +none | +none | +
provider_requests | +[ProviderRequest] | +true | +none | +none | +
Name | @@ -35290,7 +35927,7 @@
---|
Name | @@ -35302,7 +35939,7 @@||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
up_to | -util.either[long,string] | +util.either[scala.long,string] | true | none | none | @@ -35334,7 +35971,7 @@
Name | @@ -35377,7 +36014,7 @@
---|
Name | @@ -35474,7 +36111,7 @@
---|
Name | @@ -35630,7 +36267,7 @@
---|
Name | @@ -35754,7 +36391,7 @@
---|
Name | @@ -35909,7 +36546,7 @@
---|
Name | @@ -35956,6 +36593,75 @@
---|
{
+ "success": true,
+ "status_code": 0,
+ "job_id": "string",
+ "error_message": "string",
+ "error_code": "string",
+ "request_time": "2019-08-24T14:15:22Z"
+}
+
+
Name | +Type | +Required | +Restrictions | +Description | +
---|---|---|---|---|
success | +boolean | +true | +none | +none | +
status_code | +integer(int32) | +true | +none | +none | +
job_id | +string | +true | +none | +none | +
error_message | +string | +true | +none | +none | +
error_code | +string | +true | +none | +none | +
request_time | +string(date-time) | +true | +none | +none | +
Name | @@ -36024,7 +36730,7 @@
---|
Name | @@ -36071,7 +36777,7 @@
---|
Name | @@ -36149,7 +36855,7 @@
---|
Name | @@ -36319,7 +37025,7 @@
---|
Name | @@ -36407,7 +37113,7 @@
---|
Name | @@ -36649,7 +37355,7 @@
---|
Name | @@ -36711,7 +37417,7 @@
---|
Name | @@ -36779,7 +37485,7 @@
---|
Name | @@ -36891,7 +37597,7 @@
---|
Name | @@ -37010,7 +37716,7 @@
---|
Name | @@ -37376,7 +38082,7 @@
---|
Name | @@ -37768,7 +38474,7 @@
---|
Name | @@ -37920,7 +38626,7 @@
---|
Name | diff --git a/openapi/management-api.json b/openapi/management-api.json index 82b0f6e..f0497d1 100644 --- a/openapi/management-api.json +++ b/openapi/management-api.json @@ -199,6 +199,24 @@ } } }, + "BillingReportUsageInvoice": { + "properties": { + "period_start": { + "type": "string", + "format": "date-time" + }, + "period_end": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + }, "CohortCreateItem": { "properties": { "channels": { @@ -246,11 +264,18 @@ "criteria" ] }, - "BillingMetricResponse": { + "BillingReportUsage": { "properties": { - "billing_meter_id": { - "type": "string" + "invoice": { + "$ref": "#/components/schemas/BillingReportUsageInvoice" }, + "aggregator": { + "type": "string" + } + } + }, + "BillingMetricResponse": { + "properties": { "buckets": { "type": "array", "items": { @@ -259,7 +284,6 @@ } }, "required": [ - "billing_meter_id", "buckets" ] }, @@ -340,6 +364,17 @@ "type" ] }, + "BalanceChange": { + "properties": { + "amount": { + "type": "number", + "format": "double" + } + }, + "required": [ + "amount" + ] + }, "RegexCondition": { "properties": { "path": { @@ -624,22 +659,18 @@ "format": "date-time" }, "metric": { - "type": "double" + "type": "number", + "format": "double" }, - "usage": { - "type": "double" + "amounts": { + "type": "collection.immutable.map[string,scala.double]" }, - "errors": { - "type": "array", - "items": { - "type": "string" - } + "ending_balance": { + "$ref": "#/components/schemas/CreditBalanceMetric" } }, "required": [ - "start", - "metric", - "usage" + "start" ] }, "AccessTokenDTO": { @@ -715,6 +746,27 @@ "workspace_ids" ] }, + "CreditBalanceMetric": { + "properties": { + "current_balance": { + "type": "number", + "format": "double" + }, + "pending_activity": { + "type": "number", + "format": "double" + }, + "available_balance": { + "type": "number", + "format": "double" + } + }, + "required": [ + "current_balance", + "pending_activity", + "available_balance" + ] + }, "CreateCommentItem": { "properties": { "auth_user_id": { @@ -784,6 +836,32 @@ "aggregator" ] }, + "CreditBalance": { + "properties": { + "sequence_id": { + "type": "integer", + "format": "int32" + }, + "current_balance": { + "type": "number", + "format": "double" + }, + "pending_activity": { + "type": "number", + "format": "double" + }, + "available_balance": { + "type": "number", + "format": "double" + } + }, + "required": [ + "sequence_id", + "current_balance", + "pending_activity", + "available_balance" + ] + }, "MoesifPlan": { "properties": { "name": { @@ -962,6 +1040,9 @@ }, "BillingReport": { "properties": { + "ending_balance": { + "$ref": "#/components/schemas/CreditBalance" + }, "company_id": { "type": "string" }, @@ -979,6 +1060,9 @@ "type": "string", "format": "date-time" }, + "usage": { + "$ref": "#/components/schemas/BillingReportUsage" + }, "_id": { "type": "string" }, @@ -990,6 +1074,9 @@ "type": "string", "format": "date-time" }, + "beginning_balance": { + "$ref": "#/components/schemas/CreditBalance" + }, "billing_meter_id": { "type": "string" }, @@ -1007,7 +1094,7 @@ "provider_requests": { "type": "array", "items": { - "type": "providerrequest" + "$ref": "#/components/schemas/ProviderRequest" } }, "currency": { @@ -1020,7 +1107,7 @@ "channel_requests": { "type": "array", "items": { - "type": "channelrequest" + "$ref": "#/components/schemas/ChannelRequest" } }, "created_at": { @@ -1033,6 +1120,16 @@ "subscription_id": { "type": "string" }, + "subscription_period_start": { + "type": "string", + "format": "date-time" + }, + "balance_changes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BalanceChange" + } + }, "type": { "type": "string" }, @@ -1043,6 +1140,10 @@ "org_id": { "type": "string" }, + "subscription_period_end": { + "type": "string", + "format": "date-time" + }, "meter_metric": { "type": "integer", "format": "int64" @@ -1143,6 +1244,27 @@ "path" ] }, + "ChannelRequest": { + "properties": { + "channel_id": { + "type": "string" + }, + "channel_name": { + "type": "string" + }, + "provider_requests": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProviderRequest" + } + } + }, + "required": [ + "channel_id", + "channel_name", + "provider_requests" + ] + }, "WorkspaceDocument": { "properties": { "name": { @@ -1230,7 +1352,7 @@ "MoesifPriceTier": { "properties": { "up_to": { - "type": "util.either[long,string]" + "type": "util.either[scala.long,string]" }, "unit_price_in_decimal": { "type": "string" @@ -1481,6 +1603,38 @@ "verb" ] }, + "ProviderRequest": { + "properties": { + "success": { + "type": "boolean" + }, + "status_code": { + "type": "integer", + "format": "int32" + }, + "job_id": { + "type": "string" + }, + "error_message": { + "type": "string" + }, + "error_code": { + "type": "string" + }, + "request_time": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "job_id", + "request_time", + "success", + "status_code", + "error_code", + "error_message" + ] + }, "NotificationRule": { "properties": { "send_on_addition": { @@ -3442,10 +3596,11 @@ }, { "schema": { - "type": "string" + "type": "string", + "format": "date-time" }, "in": "query", - "name": "billing_meter_id", + "name": "from", "required": true }, { @@ -3454,17 +3609,16 @@ "format": "date-time" }, "in": "query", - "name": "from", + "name": "to", "required": true }, { "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "in": "query", - "name": "to", - "required": true + "name": "billing_meter_id", + "required": false }, { "schema": { @@ -3505,6 +3659,17 @@ "in": "query", "name": "subscription_id", "required": false + }, + { + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "in": "query", + "name": "`type`", + "required": false } ], "summary": "Get BillingReports' values for a given meter and time range for a single company or all companies",
---|