@daocloud-proto/leopard 0.1.0-dev6 → 0.1.0-dev7
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
package/v1alpha1/order.pb.ts
CHANGED
|
@@ -105,14 +105,19 @@ export type GetOrderRequest = {
|
|
|
105
105
|
|
|
106
106
|
export type GetOrderResponse = {
|
|
107
107
|
orderInfo?: OrderInfo
|
|
108
|
-
productInfo?: ProductInfo
|
|
108
|
+
productInfo?: ProductInfo[]
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type Product = {
|
|
112
|
+
id?: string
|
|
113
|
+
name?: string
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
export type GetProductsRequest = {
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
export type GetProductsResponse = {
|
|
115
|
-
|
|
120
|
+
products?: Product[]
|
|
116
121
|
}
|
|
117
122
|
|
|
118
123
|
export type CreateOrderRequest = {
|
package/v1alpha1/product.pb.ts
CHANGED
|
@@ -48,7 +48,24 @@ export type SkuItem = {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export type ListProductSkusResponse = {
|
|
51
|
-
|
|
51
|
+
items?: SkuItem[]
|
|
52
|
+
pagination?: Pagination
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type GetProductSkuRequest = {
|
|
56
|
+
id?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type GetProductSkuResponse = {
|
|
60
|
+
id?: string
|
|
61
|
+
saleable?: boolean
|
|
62
|
+
billingType?: BillingType
|
|
63
|
+
unit?: UnitType
|
|
64
|
+
price?: number
|
|
65
|
+
region?: string
|
|
66
|
+
specId?: string
|
|
67
|
+
specName?: string
|
|
68
|
+
specDetails?: {[key: string]: string}
|
|
52
69
|
}
|
|
53
70
|
|
|
54
71
|
export type ListProductSpecDetailValuesRequest = {
|
|
@@ -74,6 +91,9 @@ export class Product {
|
|
|
74
91
|
static ListProductSkus(req: ListProductSkusRequest, initReq?: fm.InitReq): Promise<ListProductSkusResponse> {
|
|
75
92
|
return fm.fetchReq<ListProductSkusRequest, ListProductSkusResponse>(`/apis/leopard.io/v1alpha1/product/${req["product"]}/skus?${fm.renderURLSearchParams(req, ["product"])}`, {...initReq, method: "GET"})
|
|
76
93
|
}
|
|
94
|
+
static GetProductSku(req: GetProductSkuRequest, initReq?: fm.InitReq): Promise<GetProductSkuResponse> {
|
|
95
|
+
return fm.fetchReq<GetProductSkuRequest, GetProductSkuResponse>(`/apis/leopard.io/v1alpha1/product/skus/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
96
|
+
}
|
|
77
97
|
static ListProductSpecDetailValues(req: ListProductSpecDetailValuesRequest, initReq?: fm.InitReq): Promise<ListProductSpecDetailValuesResponse> {
|
|
78
98
|
return fm.fetchReq<ListProductSpecDetailValuesRequest, ListProductSpecDetailValuesResponse>(`/apis/leopard.io/v1alpha1/products/${req["product"]}/values?${fm.renderURLSearchParams(req, ["product"])}`, {...initReq, method: "GET"})
|
|
79
99
|
}
|
|
@@ -29,9 +29,9 @@ export type ListTransactionsRequest = {
|
|
|
29
29
|
pageSize?: number
|
|
30
30
|
serialNumber?: string
|
|
31
31
|
billingId?: string
|
|
32
|
-
paymentType?:
|
|
33
|
-
transactionType?:
|
|
34
|
-
transactionChannel?:
|
|
32
|
+
paymentType?: string
|
|
33
|
+
transactionType?: string
|
|
34
|
+
transactionChannel?: string
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export type ListTransactionsRequestResponse = {
|