@daocloud-proto/leopard 0.5.0-dev2 → 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 +1 -1
- package/v1alpha1/bill.pb.ts +10 -0
- package/v1alpha1/order.pb.ts +5 -1
package/package.json
CHANGED
package/v1alpha1/bill.pb.ts
CHANGED
|
@@ -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 = {
|
package/v1alpha1/order.pb.ts
CHANGED
|
@@ -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 = {
|