@daocloud-proto/leopard 0.5.0-dev2 → 0.5.0-dev3

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-dev2",
3
+ "version":"0.5.0-dev3",
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 = {
@@ -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,13 +133,13 @@ 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 = {
135
140
  username?: string
136
141
  userId?: string
137
142
  orderItems?: OrderItem[]
138
- meteringCount?: number
139
143
  }
140
144
 
141
145
  export type CreateNewPurchaseOrderResponse = {
@@ -8,6 +8,10 @@ import * as fm from "../fetch.pb"
8
8
 
9
9
  export enum BillingType {
10
10
  PAY_AS_YOU_GO = "PAY_AS_YOU_GO",
11
+ SUBSCRIPTION_DAILY = "SUBSCRIPTION_DAILY",
12
+ SUBSCRIPTION_WEEKLY = "SUBSCRIPTION_WEEKLY",
13
+ SUBSCRIPTION_MONTHLY = "SUBSCRIPTION_MONTHLY",
14
+ SUBSCRIPTION_YEARLY = "SUBSCRIPTION_YEARLY",
11
15
  }
12
16
 
13
17
  export enum UnitType {
@@ -45,6 +49,7 @@ export type ListProductSKUsRequest = {
45
49
  filterByAnd?: boolean
46
50
  sortType?: string
47
51
  sortOrder?: SortOrder
52
+ billingType?: string
48
53
  }
49
54
 
50
55
  export type SkuItem = {
@@ -120,6 +125,7 @@ export type ListProductSpecFieldRequest = {
120
125
  regionId?: string
121
126
  specKey?: string
122
127
  product?: string
128
+ billingType?: string
123
129
  }
124
130
 
125
131
  export type ListProductSpecFieldResponse = {