@daocloud-proto/leopard 0.6.0-dev6 → 0.6.0-dev8
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 +11 -0
- package/v1alpha1/order.pb.ts +1 -0
- package/v1alpha1/transaction.pb.ts +1 -0
package/package.json
CHANGED
package/v1alpha1/bill.pb.ts
CHANGED
|
@@ -46,6 +46,7 @@ export type ListBillsRequest = {
|
|
|
46
46
|
resourceId?: string
|
|
47
47
|
billingType?: string
|
|
48
48
|
productName?: string
|
|
49
|
+
username?: string
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
export type ListBillsResponse = {
|
|
@@ -114,6 +115,7 @@ export type GetMonthlyBillsRequest = {
|
|
|
114
115
|
|
|
115
116
|
export type GetMonthlyBillsResponse = {
|
|
116
117
|
products?: ProductMonthlyBill[]
|
|
118
|
+
users?: UserMonthlyBill[]
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
export type RegionMonthlyBill = {
|
|
@@ -133,6 +135,15 @@ export type ProductMonthlyBill = {
|
|
|
133
135
|
amountDue?: string
|
|
134
136
|
}
|
|
135
137
|
|
|
138
|
+
export type UserMonthlyBill = {
|
|
139
|
+
billingMonth?: string
|
|
140
|
+
userId?: string
|
|
141
|
+
username?: string
|
|
142
|
+
orderPrice?: string
|
|
143
|
+
voucherPayment?: string
|
|
144
|
+
amountDue?: string
|
|
145
|
+
}
|
|
146
|
+
|
|
136
147
|
export class Bill {
|
|
137
148
|
static ListBills(req: ListBillsRequest, initReq?: fm.InitReq): Promise<ListBillsResponse> {
|
|
138
149
|
return fm.fetchReq<ListBillsRequest, ListBillsResponse>(`/apis/leopard.io/v1alpha1/bills?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
package/v1alpha1/order.pb.ts
CHANGED