apifm-webapi 24.7.28 → 24.9.22

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 +53 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -497,6 +497,9 @@ module.exports = {
497
497
  couponsShareFetch: (token, id, shareToken) => {
498
498
  return request('/discounts/share/fetch', true, 'post', { token, id, shareToken })
499
499
  },
500
+ couponsHX: data => {
501
+ return request('/discounts/hx', true, 'post', data)
502
+ },
500
503
  noticeList: (data) => {
501
504
  return request('/notice/list', true, 'post', data)
502
505
  },
@@ -664,6 +667,9 @@ module.exports = {
664
667
  token
665
668
  })
666
669
  },
670
+ orderCloseV2: data => {
671
+ return request('/order/close', true, 'post', data)
672
+ },
667
673
  orderDelete: (token, orderId) => {
668
674
  return request('/order/delete', true, 'post', {
669
675
  orderId,
@@ -746,6 +752,30 @@ module.exports = {
746
752
  regionSearch: data => {
747
753
  return request('/common/region/v2/search', false, 'post', data)
748
754
  },
755
+ provinceV2: () => {
756
+ return request('https://common.apifm.com/' + subDomain + '/region/province', false, 'get')
757
+ },
758
+ cityV2: () => {
759
+ return request('https://common.apifm.com/' + subDomain + '/region/city', false, 'get')
760
+ },
761
+ districtsV2: data => {
762
+ return request('https://common.apifm.com/' + subDomain + '/region/districts', false, 'post', data)
763
+ },
764
+ streetsV2: data => {
765
+ return request('https://common.apifm.com/' + subDomain + '/region/streets', false, 'post', data)
766
+ },
767
+ nextRegionV2: pid => {
768
+ return request('https://common.apifm.com/' + subDomain + '/region/child', false, 'get', { pid })
769
+ },
770
+ regionInfoV2: id => {
771
+ return request('https://common.apifm.com/' + subDomain + '/region/info', false, 'get', { id })
772
+ },
773
+ regionInfoBatchV2: ids => {
774
+ return request('https://common.apifm.com/' + subDomain + '/region/infoBatch', false, 'get', { ids })
775
+ },
776
+ regionSearchV2: data => {
777
+ return request('https://common.apifm.com/' + subDomain + '/region/search', false, 'post', data)
778
+ },
749
779
  cashLogs: (data) => {
750
780
  return request('/user/cashLog', true, 'post', data)
751
781
  },
@@ -1273,6 +1303,9 @@ module.exports = {
1273
1303
  scoreRankBydate: (data) => {
1274
1304
  return request('/score/rankBydate', true, 'get', data)
1275
1305
  },
1306
+ scoreMyStatistics: (data) => {
1307
+ return request('/score/myStatistics', true, 'get', data)
1308
+ },
1276
1309
  voteItems: (data) => {
1277
1310
  return request('/vote/items', true, 'post', data)
1278
1311
  },
@@ -1325,11 +1358,17 @@ module.exports = {
1325
1358
  token, joinId, extJsonStr
1326
1359
  })
1327
1360
  },
1361
+ yuyueLike: data => {
1362
+ return request('/yuyue/like', true, 'post', data)
1363
+ },
1328
1364
  yuyueJoinDelete: (token, joinId) => {
1329
1365
  return request('/yuyue/delJoin', true, 'post', {
1330
1366
  token, id: joinId
1331
1367
  })
1332
1368
  },
1369
+ yuyueServered: data => {
1370
+ return request('/yuyue/servered', true, 'post', data)
1371
+ },
1333
1372
  yuyueMyJoinInfo: (token, joinId) => {
1334
1373
  return request('/yuyue/join/info', true, 'post', {
1335
1374
  token, joinId
@@ -1347,7 +1386,7 @@ module.exports = {
1347
1386
  yuyueTeamMembers: (data) => {
1348
1387
  return request('/yuyue/info/team/members', true, 'post', data)
1349
1388
  },
1350
- yuyueTeamDeleteMember: (token, joinId) => {
1389
+ yuyueTeamDeleteMember: data => {
1351
1390
  return request('/yuyue/info/team/members/del', true, 'post', data)
1352
1391
  },
1353
1392
  register_email: (data) => {
@@ -1915,6 +1954,19 @@ module.exports = {
1915
1954
  jicunGoodsDetail: data => {
1916
1955
  return request('/jicunGoods/detail', true, 'get', data)
1917
1956
  },
1957
+ // stripe
1958
+ stripeAddCard: function stripeAddCard(data) {
1959
+ return request('/pay/stripe/addCard', true, 'post', data);
1960
+ },
1961
+ stripeCardList: function stripeCardList(token) {
1962
+ return request('/pay/stripe/cardList', true, 'get', { token });
1963
+ },
1964
+ stripeDelCard: function stripeDelCard(token, cardId) {
1965
+ return request('/pay/stripe/deleteCard', true, 'post', { token, cardId });
1966
+ },
1967
+ stripeCharge: function stripeCharge(data) {
1968
+ return request('/pay/stripe/charge', true, 'post', data);
1969
+ },
1918
1970
  // ocr
1919
1971
  ocrBusinessLicense: imageUrl => {
1920
1972
  return request('/ocr/businessLicense', true, 'post', { imageUrl })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "24.07.28",
4
- "description": "cms标签云接口升级",
3
+ "version": "24.09.22",
4
+ "description": "增加stripe支付接口",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"