@daocloud-proto/leopard 0.10.0-dev4 → 0.10.0-dev5

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.10.0-dev4",
3
+ "version":"0.10.0-dev5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -52,6 +52,7 @@ export enum CreateOrderStatus {
52
52
  RESOURCE_EXIST = "RESOURCE_EXIST",
53
53
  INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE",
54
54
  INSUFFICIENT_INVENTORY = "INSUFFICIENT_INVENTORY",
55
+ INSUFFICIENT_VIRTUAL_BALANCE = "INSUFFICIENT_VIRTUAL_BALANCE",
55
56
  }
56
57
 
57
58
  export type ExportOrdersRequest = {
@@ -159,7 +160,7 @@ export type CreateNewPurchaseOrderRequest = {
159
160
  userId?: string
160
161
  orderItems?: OrderItem[]
161
162
  renewMeteringAmount?: number
162
- renewSkuId?: string
163
+ renewToPayasyougo?: boolean
163
164
  }
164
165
 
165
166
  export type CreateNewPurchaseOrderResponse = {
@@ -245,7 +246,7 @@ export type CreateRenewOrderResponse = {
245
246
  export type ChangeOrderRenewRequest = {
246
247
  resourceId?: string
247
248
  renewMeteringAmount?: number
248
- renewSkuId?: string
249
+ renewToPayasyougo?: boolean
249
250
  }
250
251
 
251
252
  export type ChangeOrderRenewResponse = {
@@ -97,6 +97,7 @@ export type SkuItem = {
97
97
  specFields?: SpecField[]
98
98
  inventory?: number
99
99
  meteringAmountsDiscounts?: MeteringAmountsDiscount[]
100
+ canTransferPayAsYouGo?: boolean
100
101
  }
101
102
 
102
103
  export type ListProductSKUsResponse = {
@@ -145,6 +146,7 @@ export type GetSKUResponse = {
145
146
  specFields?: SpecField[]
146
147
  inventory?: number
147
148
  meteringAmountsDiscounts?: MeteringAmountsDiscount[]
149
+ canTransferPayAsYouGo?: boolean
148
150
  }
149
151
 
150
152
  export type MeteringAmountsDiscount = {
@@ -22,6 +22,48 @@ export enum OperationType {
22
22
  DECREASE = "DECREASE",
23
23
  }
24
24
 
25
+ export type CreateDomainReceivingBankInfoRequest = {
26
+ domain?: string
27
+ bankInfo?: ReceivingBankInfo
28
+ }
29
+
30
+ export type CreateDomainReceivingBankInfoResponse = {
31
+ id?: string
32
+ }
33
+
34
+ export type DeleteDomainReceivingBankInfoRequest = {
35
+ id?: string
36
+ }
37
+
38
+ export type DeleteDomainReceivingBankInfoResponse = {
39
+ }
40
+
41
+ export type UpdateDomainReceivingBankInfoRequest = {
42
+ id?: string
43
+ domain?: string
44
+ bankInfo?: ReceivingBankInfo
45
+ }
46
+
47
+ export type UpdateDomainReceivingBankInfoResponse = {
48
+ }
49
+
50
+ export type ListDomainReceivingBankInfosRequest = {
51
+ domain?: string
52
+ page?: number
53
+ pageSize?: number
54
+ }
55
+
56
+ export type ListDomainReceivingBankInfosResponse = {
57
+ items?: DomainReceivingBankInfo[]
58
+ pagination?: Pagination
59
+ }
60
+
61
+ export type Pagination = {
62
+ total?: number
63
+ page?: number
64
+ pageSize?: number
65
+ }
66
+
25
67
  export type BalanceRequest = {
26
68
  }
27
69
 
@@ -62,6 +104,13 @@ export type GetUserStateResponse = {
62
104
  enableSub?: boolean
63
105
  }
64
106
 
107
+ export type DomainReceivingBankInfo = {
108
+ accountName?: string
109
+ bankAccount?: string
110
+ bankName?: string
111
+ domain?: string
112
+ }
113
+
65
114
  export type ReceivingBankInfo = {
66
115
  accountName?: string
67
116
  bankAccount?: string
@@ -99,12 +148,6 @@ export type VirtualWallet = {
99
148
  arrearsStop?: boolean
100
149
  }
101
150
 
102
- export type Pagination = {
103
- total?: number
104
- page?: number
105
- pageSize?: number
106
- }
107
-
108
151
  export type ListVirtualWalletsResponse = {
109
152
  items?: VirtualWallet[]
110
153
  pagination?: Pagination
@@ -174,4 +217,16 @@ export class Wallet {
174
217
  static UserState(req: UserStateRequest, initReq?: fm.InitReq): Promise<UserStateResponse> {
175
218
  return fm.fetchReq<UserStateRequest, UserStateResponse>(`/v1alpha1.wallet.Wallet/UserState`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
176
219
  }
220
+ static CreateDomainReceivingBankInfo(req: CreateDomainReceivingBankInfoRequest, initReq?: fm.InitReq): Promise<CreateDomainReceivingBankInfoResponse> {
221
+ return fm.fetchReq<CreateDomainReceivingBankInfoRequest, CreateDomainReceivingBankInfoResponse>(`/apis/leopard.io/v1alpha1/wallet/domain-receiving-bank-info`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
222
+ }
223
+ static DeleteDomainReceivingBankInfo(req: DeleteDomainReceivingBankInfoRequest, initReq?: fm.InitReq): Promise<DeleteDomainReceivingBankInfoResponse> {
224
+ return fm.fetchReq<DeleteDomainReceivingBankInfoRequest, DeleteDomainReceivingBankInfoResponse>(`/apis/leopard.io/v1alpha1/wallet/domain-receiving-bank-info/${req["id"]}`, {...initReq, method: "DELETE"})
225
+ }
226
+ static UpdateDomainReceivingBankInfo(req: UpdateDomainReceivingBankInfoRequest, initReq?: fm.InitReq): Promise<UpdateDomainReceivingBankInfoResponse> {
227
+ return fm.fetchReq<UpdateDomainReceivingBankInfoRequest, UpdateDomainReceivingBankInfoResponse>(`/apis/leopard.io/v1alpha1/wallet/domain-receiving-bank-info/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
228
+ }
229
+ static ListDomainReceivingBankInfos(req: ListDomainReceivingBankInfosRequest, initReq?: fm.InitReq): Promise<ListDomainReceivingBankInfosResponse> {
230
+ return fm.fetchReq<ListDomainReceivingBankInfosRequest, ListDomainReceivingBankInfosResponse>(`/apis/leopard.io/v1alpha1/wallet/domain-receiving-bank-infos?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
231
+ }
177
232
  }