@daocloud-proto/leopard 0.1.0-rc6 → 0.1.0-rc8
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/order.pb.ts +0 -19
package/package.json
CHANGED
package/v1alpha1/order.pb.ts
CHANGED
|
@@ -164,22 +164,6 @@ export type IsResourceOrderNextBillBalanceSufficientResponse = {
|
|
|
164
164
|
sufficient?: boolean
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
export type GetResourceOrderInfoByResourceIDRequest = {
|
|
168
|
-
resourceId?: string
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export type GetResourceOrderInfoByResourceIDResponse = {
|
|
172
|
-
resourceId?: string
|
|
173
|
-
resourceName?: string
|
|
174
|
-
username?: string
|
|
175
|
-
skuId?: string
|
|
176
|
-
productName?: string
|
|
177
|
-
billingType?: BillingType
|
|
178
|
-
meteringUnit?: UnitType
|
|
179
|
-
unitPrice?: string
|
|
180
|
-
quantity?: number
|
|
181
|
-
}
|
|
182
|
-
|
|
183
167
|
export class Order {
|
|
184
168
|
static ListOrders(req: ListOrdersRequest, initReq?: fm.InitReq): Promise<ListOrdersResponse> {
|
|
185
169
|
return fm.fetchReq<ListOrdersRequest, ListOrdersResponse>(`/apis/leopard.io/v1alpha1/orders?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -187,9 +171,6 @@ export class Order {
|
|
|
187
171
|
static GetOrder(req: GetOrderRequest, initReq?: fm.InitReq): Promise<GetOrderResponse> {
|
|
188
172
|
return fm.fetchReq<GetOrderRequest, GetOrderResponse>(`/apis/leopard.io/v1alpha1/orders/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
189
173
|
}
|
|
190
|
-
static GetResourceOrderInfoByResourceID(req: GetResourceOrderInfoByResourceIDRequest, initReq?: fm.InitReq): Promise<GetResourceOrderInfoByResourceIDResponse> {
|
|
191
|
-
return fm.fetchReq<GetResourceOrderInfoByResourceIDRequest, GetResourceOrderInfoByResourceIDResponse>(`/apis/leopard.io/v1alpha1/orders/resources-info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
192
|
-
}
|
|
193
174
|
static GetProducts(req: GetProductsRequest, initReq?: fm.InitReq): Promise<GetProductsResponse> {
|
|
194
175
|
return fm.fetchReq<GetProductsRequest, GetProductsResponse>(`/apis/leopard.io/v1alpha1/orders/products?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
195
176
|
}
|