@daocloud-proto/leopard 0.6.0-dev8 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/leopard",
3
- "version":"0.6.0-dev8",
3
+ "version":"0.6.0-dev9",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -9,6 +9,7 @@ import * as fm from "../fetch.pb"
9
9
  export enum PeriodStatus {
10
10
  Paid = "Paid",
11
11
  NotPaid = "NotPaid",
12
+ Failed = "Failed",
12
13
  }
13
14
 
14
15
  export type GetResourceInfoRequest = {
@@ -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
  }