@daocloud-proto/leopard 0.5.0-rc1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/leopard",
3
- "version":"0.5.0-rc1",
3
+ "version":"0.5.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -6,6 +6,11 @@
6
6
 
7
7
  import * as fm from "../fetch.pb"
8
8
 
9
+ export enum BillType {
10
+ CONSUME = "CONSUME",
11
+ REFUND = "REFUND",
12
+ }
13
+
9
14
  export enum BillingType {
10
15
  PAY_AS_YOU_GO = "PAY_AS_YOU_GO",
11
16
  SUBSCRIPTION_DAILY = "SUBSCRIPTION_DAILY",
@@ -20,6 +25,10 @@ export enum UnitType {
20
25
  GB_DAY = "GB_DAY",
21
26
  INSTANCE_NUMBER = "INSTANCE_NUMBER",
22
27
  PICTURE = "PICTURE",
28
+ DAY = "DAY",
29
+ WEEK = "WEEK",
30
+ MONTH = "MONTH",
31
+ YEAR = "YEAR",
23
32
  }
24
33
 
25
34
  export enum ExpenseType {
@@ -66,6 +75,7 @@ export type bill = {
66
75
  amountDue?: string
67
76
  billingItem?: string
68
77
  voucherPayment?: string
78
+ type?: BillType
69
79
  }
70
80
 
71
81
  export type BillingCycle = {
@@ -24,7 +24,7 @@ export enum BillingType {
24
24
  export enum OrderStatus {
25
25
  PAID = "PAID",
26
26
  PARTIAL = "PARTIAL",
27
- REFUNDED = "REFUNDED",
27
+ INVALIDATED = "INVALIDATED",
28
28
  }
29
29
 
30
30
  export enum UnitType {
@@ -33,6 +33,10 @@ export enum UnitType {
33
33
  GB_DAY = "GB_DAY",
34
34
  INSTANCE_NUMBER = "INSTANCE_NUMBER",
35
35
  PICTURE = "PICTURE",
36
+ DAY = "DAY",
37
+ WEEK = "WEEK",
38
+ MONTH = "MONTH",
39
+ YEAR = "YEAR",
36
40
  }
37
41
 
38
42
  export enum CreateOrderStatus {
@@ -129,6 +133,7 @@ export type OrderItem = {
129
133
  skuId?: string
130
134
  quantity?: number
131
135
  resources?: Resource[]
136
+ meteringAmount?: number
132
137
  }
133
138
 
134
139
  export type CreateNewPurchaseOrderRequest = {