@pisell/pisellos 0.0.229 → 0.0.230
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/dist/modules/Payment/index.d.ts +59 -6
- package/dist/modules/Payment/index.js +823 -504
- package/dist/modules/Payment/types.d.ts +62 -32
- package/dist/modules/Payment/types.js +2 -2
- package/dist/modules/Payment/walletpass.d.ts +0 -0
- package/dist/modules/Payment/walletpass.js +0 -0
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/dist/solution/Checkout/appointmentDemo.json +1 -0
- package/dist/solution/Checkout/index.d.ts +181 -0
- package/dist/solution/Checkout/index.js +1596 -0
- package/dist/solution/Checkout/types.d.ts +550 -0
- package/dist/solution/Checkout/types.js +132 -0
- package/dist/solution/Checkout/utils/index.d.ts +73 -0
- package/dist/solution/Checkout/utils/index.js +371 -0
- package/dist/solution/index.d.ts +1 -0
- package/dist/solution/index.js +2 -1
- package/lib/modules/Payment/index.d.ts +59 -6
- package/lib/modules/Payment/index.js +203 -64
- package/lib/modules/Payment/types.d.ts +62 -32
- package/lib/modules/Payment/walletpass.d.ts +0 -0
- package/lib/modules/Payment/walletpass.js +0 -0
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/lib/solution/Checkout/appointmentDemo.json +1 -0
- package/lib/solution/Checkout/index.d.ts +181 -0
- package/lib/solution/Checkout/index.js +864 -0
- package/lib/solution/Checkout/types.d.ts +550 -0
- package/lib/solution/Checkout/types.js +75 -0
- package/lib/solution/Checkout/utils/index.d.ts +73 -0
- package/lib/solution/Checkout/utils/index.js +266 -0
- package/lib/solution/index.d.ts +1 -0
- package/lib/solution/index.js +3 -1
- package/package.json +1 -1
|
@@ -86,15 +86,25 @@ export declare class PaymentModule extends BaseModule implements Module, Payment
|
|
|
86
86
|
*/
|
|
87
87
|
getOrderListAsync(): Promise<PaymentOrder[]>;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* 根据订单UUID获取支付订单(新方法)
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
getPaymentOrderByUuidAsync(orderUuid: string): Promise<PaymentOrder | null>;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* 创建支付订单(新方法,专注支付数据)
|
|
94
|
+
*/
|
|
95
|
+
createPaymentOrderAsync(params: PushOrderParams): Promise<PaymentOrder>;
|
|
96
|
+
/**
|
|
97
|
+
* 往交易组中添加订单(兼容性方法)
|
|
98
|
+
* @deprecated 使用 createPaymentOrderAsync 替代
|
|
94
99
|
*/
|
|
95
100
|
pushOrderAsync(params: PushOrderParams): Promise<PaymentOrder>;
|
|
96
101
|
/**
|
|
97
|
-
*
|
|
102
|
+
* 删除支付订单(新方法)
|
|
103
|
+
*/
|
|
104
|
+
deletePaymentOrderAsync(orderUuid: string): Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* 删除订单(兼容性方法)
|
|
107
|
+
* @deprecated 使用 deletePaymentOrderAsync 替代
|
|
98
108
|
*/
|
|
99
109
|
deleteOrderAsync(orderUuid: string): Promise<void>;
|
|
100
110
|
/**
|
|
@@ -102,11 +112,32 @@ export declare class PaymentModule extends BaseModule implements Module, Payment
|
|
|
102
112
|
*/
|
|
103
113
|
updateOrderAsync(orderUuid: string, params: Partial<PaymentOrder>): Promise<void>;
|
|
104
114
|
/**
|
|
105
|
-
*
|
|
115
|
+
* 基于UUID替换订单ID
|
|
116
|
+
*
|
|
117
|
+
* 此方法用于将本地虚拟订单ID替换为真实的订单ID。
|
|
118
|
+
* 当前端模拟下单流程完成后,后端返回真实订单ID时调用此方法。
|
|
119
|
+
*
|
|
120
|
+
* @param orderUuid 订单的UUID
|
|
121
|
+
* @param newOrderId 新的订单ID (来自后端)
|
|
122
|
+
* @returns 更新后的订单对象,如果订单不存在则返回null
|
|
123
|
+
*/
|
|
124
|
+
replaceOrderIdByUuidAsync(orderUuid: string, newOrderId: string): Promise<PaymentOrder | null>;
|
|
125
|
+
/**
|
|
126
|
+
* 获取支付项(新方法)
|
|
127
|
+
*/
|
|
128
|
+
getPaymentItemsAsync(orderUuid: string): Promise<PaymentItem[]>;
|
|
129
|
+
/**
|
|
130
|
+
* 获取支付项(兼容性方法)
|
|
131
|
+
* @deprecated 使用 getPaymentItemsAsync 替代
|
|
106
132
|
*/
|
|
107
133
|
getPaymentAsync(orderUuid: string): Promise<PaymentItem[]>;
|
|
108
134
|
/**
|
|
109
|
-
*
|
|
135
|
+
* 为某个订单添加支付项(新方法)
|
|
136
|
+
*/
|
|
137
|
+
addPaymentItemAsync(orderUuid: string, paymentItem: PaymentItemInput): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* 为某个订单设置一个支付项(兼容性方法)
|
|
140
|
+
* @deprecated 使用 addPaymentItemAsync 替代
|
|
110
141
|
*/
|
|
111
142
|
pushPaymentAsync(orderUuid: string, paymentItem: PaymentItemInput): Promise<void>;
|
|
112
143
|
/**
|
|
@@ -224,4 +255,26 @@ export declare class PaymentModule extends BaseModule implements Module, Payment
|
|
|
224
255
|
* @returns Promise<boolean> 是否成功添加到队列
|
|
225
256
|
*/
|
|
226
257
|
private reAddOrderToSyncQueue;
|
|
258
|
+
/**
|
|
259
|
+
* 删除支付项(新方法)
|
|
260
|
+
*/
|
|
261
|
+
deletePaymentItemAsync(orderUuid: string, paymentUuid: string): Promise<void>;
|
|
262
|
+
/**
|
|
263
|
+
* 更新支付项(新方法)
|
|
264
|
+
*/
|
|
265
|
+
updatePaymentItemAsync(orderUuid: string, paymentUuid: string, params: PaymentUpdateFields): Promise<void>;
|
|
266
|
+
/**
|
|
267
|
+
* 获取订单剩余待付金额(新方法)
|
|
268
|
+
*/
|
|
269
|
+
getRemainingAmountAsync(orderUuid: string): Promise<number>;
|
|
270
|
+
/**
|
|
271
|
+
* 获取订单剩余待付金额(基于用户输入的金额)(新方法)
|
|
272
|
+
*/
|
|
273
|
+
getRemainingAmountWithInputAsync(inputAmount: string | number, orderUuid: string): Promise<number>;
|
|
274
|
+
/**
|
|
275
|
+
* 提交支付(新方法)
|
|
276
|
+
*/
|
|
277
|
+
submitPaymentAsync(orderUuid: string): Promise<{
|
|
278
|
+
status: 'success' | 'failed';
|
|
279
|
+
}>;
|
|
227
280
|
}
|