@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/leopard",
3
- "version":"0.6.0-dev6",
3
+ "version":"0.6.0-dev8",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -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"})
@@ -65,6 +65,7 @@ export type ListOrdersRequest = {
65
65
  end?: string
66
66
  page?: number
67
67
  pageSize?: number
68
+ username?: string
68
69
  }
69
70
 
70
71
  export type Orders = {
@@ -32,6 +32,7 @@ export type ListTransactionsRequest = {
32
32
  paymentType?: string
33
33
  transactionType?: string
34
34
  transactionChannel?: string
35
+ username?: string
35
36
  }
36
37
 
37
38
  export type ListTransactionsRequestResponse = {