@daocloud-proto/leopard 0.6.0-dev7 → 0.6.0-dev9
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/resource.pb.ts +1 -0
- package/v1alpha1/transaction.pb.ts +1 -0
- package/v1alpha1/wallet.pb.ts +37 -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
package/v1alpha1/resource.pb.ts
CHANGED
package/v1alpha1/wallet.pb.ts
CHANGED
|
@@ -9,6 +9,7 @@ import * as fm from "../fetch.pb"
|
|
|
9
9
|
export enum PaymentChannel {
|
|
10
10
|
ALIPAY = "ALIPAY",
|
|
11
11
|
WECHAT = "WECHAT",
|
|
12
|
+
CORPORATE_TRANSFER = "CORPORATE_TRANSFER",
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export enum PaymentType {
|
|
@@ -53,6 +54,36 @@ export type GetUserStateResponse = {
|
|
|
53
54
|
permissions?: string[]
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
export type ReceivingBankInfo = {
|
|
58
|
+
accountName?: string
|
|
59
|
+
bankAccount?: string
|
|
60
|
+
bankName?: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type GetReceivingBankInfoResponse = {
|
|
64
|
+
bankInfos?: ReceivingBankInfo[]
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type GetReceivingBankInfoRequest = {
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type PaymentSourceInfo = {
|
|
71
|
+
accountName?: string
|
|
72
|
+
bankAccount?: string
|
|
73
|
+
bankName?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type CorporateTransferRechargeRequest = {
|
|
77
|
+
userId?: string
|
|
78
|
+
amount?: string
|
|
79
|
+
serialNumber?: string
|
|
80
|
+
message?: string
|
|
81
|
+
paymentSourceInfo?: PaymentSourceInfo
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type CorporateTransferRechargeResponse = {
|
|
85
|
+
}
|
|
86
|
+
|
|
56
87
|
export class Wallet {
|
|
57
88
|
static Balance(req: BalanceRequest, initReq?: fm.InitReq): Promise<BalanceResponse> {
|
|
58
89
|
return fm.fetchReq<BalanceRequest, BalanceResponse>(`/apis/leopard.io/v1alpha1/wallet/balance?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -60,6 +91,12 @@ export class Wallet {
|
|
|
60
91
|
static Recharge(req: RechargeRequest, initReq?: fm.InitReq): Promise<RechargeResponse> {
|
|
61
92
|
return fm.fetchReq<RechargeRequest, RechargeResponse>(`/apis/leopard.io/v1alpha1/wallet/recharge`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
62
93
|
}
|
|
94
|
+
static CorporateTransferRecharge(req: CorporateTransferRechargeRequest, initReq?: fm.InitReq): Promise<CorporateTransferRechargeResponse> {
|
|
95
|
+
return fm.fetchReq<CorporateTransferRechargeRequest, CorporateTransferRechargeResponse>(`/apis/leopard.io/v1alpha1/wallet/corporate-transfer/recharge`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
96
|
+
}
|
|
97
|
+
static GetReceivingBankInfos(req: GetReceivingBankInfoRequest, initReq?: fm.InitReq): Promise<GetReceivingBankInfoResponse> {
|
|
98
|
+
return fm.fetchReq<GetReceivingBankInfoRequest, GetReceivingBankInfoResponse>(`/apis/leopard.io/v1alpha1/wallet/corporate-transfer/receiving-bank-infos?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
99
|
+
}
|
|
63
100
|
static GetUserState(req: GetUserStateRequest, initReq?: fm.InitReq): Promise<GetUserStateResponse> {
|
|
64
101
|
return fm.fetchReq<GetUserStateRequest, GetUserStateResponse>(`/apis/leopard.io/v1alpha1/wallet/user-state?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
65
102
|
}
|