apifm-webapi 1.43.0 → 1.47.0

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.
Files changed (2) hide show
  1. package/index.js +54 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -186,6 +186,9 @@ module.exports = {
186
186
  payVariableUrl: (url, data) => {
187
187
  return request(url, true, 'post', data)
188
188
  },
189
+ wxpay: (data) => {
190
+ return request('/pay/wx/wxapp', true, 'post', data)
191
+ },
189
192
  wxpayH5: (data) => {
190
193
  return request('/pay/wx/h5', true, 'post', data)
191
194
  },
@@ -195,6 +198,45 @@ module.exports = {
195
198
  wxpayQrcode: (data) => {
196
199
  return request('/pay/wx/qrcode', true, 'post', data)
197
200
  },
201
+ wxpayFOMO: (data) => {
202
+ return request('/pay/fomo/wxapp', true, 'post', data)
203
+ },
204
+ payNow: (data) => {
205
+ return request('/pay/fomo/payNow', true, 'post', data)
206
+ },
207
+ fomoCheckout: (data) => {
208
+ return request('/pay/fomo/checkout', true, 'post', data)
209
+ },
210
+ wxpayFWS: (data) => {
211
+ return request('/pay/wxfws/wxapp', true, 'post', data)
212
+ },
213
+ ttpay: (data) => {
214
+ return request('/pay/tt/microapp', true, 'post', data)
215
+ },
216
+ ttEcpay: (data) => {
217
+ return request('/pay/tt/ecpay', true, 'post', data)
218
+ },
219
+ payQuery: (token, outTradeId) => {
220
+ return request('/pay/query', true, 'get', { token, outTradeId })
221
+ },
222
+ wxpaySaobei: (data) => {
223
+ return request('/pay/lcsw/wxapp', true, 'post', data)
224
+ },
225
+ wxpayWepayez: (data) => {
226
+ return request('/pay/wepayez/wxapp', true, 'post', data)
227
+ },
228
+ wxpayxpert: (data) => {
229
+ return request('/pay/payxpert/wxapp', true, 'post', data)
230
+ },
231
+ wxpayIPaynow: (data) => {
232
+ return request('/pay/ipaynow/wxapp', true, 'post', data)
233
+ },
234
+ wxpayAirwallex: (data) => {
235
+ return request('/pay/airwallex/wxapp', true, 'post', data)
236
+ },
237
+ paypalCheckout: (data) => {
238
+ return request('/pay/paypal/checkout', true, 'post', data)
239
+ },
198
240
  alipay: (data) => {
199
241
  return request('/pay/alipay/semiAutomatic/payurl', true, 'post', data)
200
242
  },
@@ -304,6 +346,9 @@ module.exports = {
304
346
  token, goodsId
305
347
  })
306
348
  },
349
+ goodsFavCheckV2: data => {
350
+ return request('/shop/goods/fav/check', true, 'get', data)
351
+ },
307
352
  goodsFavDelete: (token, id = '', goodsId = '') => {
308
353
  return request('/shop/goods/fav/delete', true, 'post', {
309
354
  token, id, goodsId
@@ -312,6 +357,9 @@ module.exports = {
312
357
  goodsFavDeleteV2: data => {
313
358
  return request('/shop/goods/fav/delete', true, 'post', data)
314
359
  },
360
+ goodsSeckillGrab: (goodsId, seconds) => {
361
+ return request('/goods/seckill/grab', false, 'post', { goodsId, seconds })
362
+ },
315
363
  coupons: (data) => {
316
364
  return request('/discounts/coupons', true, 'get', data)
317
365
  },
@@ -708,6 +756,12 @@ module.exports = {
708
756
  modifyUserInfo: (data) => {
709
757
  return request('/user/modify', true, 'post', data)
710
758
  },
759
+ bindSaleman: data => {
760
+ return request('/user/bindSaleman', true, 'post', data)
761
+ },
762
+ modifyUserPassword: (token, pwdOld, pwdNew) => {
763
+ return request('/user/modify/password', true, 'post', { token, pwdOld, pwdNew })
764
+ },
711
765
  uniqueId: (type = '') => {
712
766
  return request('/uniqueId/get', true, 'get', { type })
713
767
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "1.43.0",
4
- "description": "增加 品牌供应商 方法",
3
+ "version": "1.47.0",
4
+ "description": "增加SDK方法",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"