wechat-sdk-python 0.0.1__tar.gz → 0.1.0__tar.gz

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 (883) hide show
  1. wechat_sdk_python-0.1.0/MANIFEST.in +4 -0
  2. wechat_sdk_python-0.1.0/PKG-INFO +250 -0
  3. wechat_sdk_python-0.1.0/README.md +205 -0
  4. wechat_sdk_python-0.1.0/docs/api-audit-2026-11-28.md +74 -0
  5. wechat_sdk_python-0.1.0/docs/api-audit-matrix-2026-11-28.md +1802 -0
  6. wechat_sdk_python-0.1.0/docs/channels-development-plan.md +163 -0
  7. wechat_sdk_python-0.1.0/docs/miniapp-development-plan.md +107 -0
  8. wechat_sdk_python-0.1.0/docs/miniapp.index.md +222 -0
  9. wechat_sdk_python-0.1.0/docs/pay-development-plan.md +259 -0
  10. wechat_sdk_python-0.1.0/docs/service-development-plan.md +74 -0
  11. wechat_sdk_python-0.1.0/docs/store-api-inventory.md +1010 -0
  12. wechat_sdk_python-0.1.0/docs/store-development-plan.md +65 -0
  13. wechat_sdk_python-0.1.0/docs/subscription-development-plan.md +130 -0
  14. wechat_sdk_python-0.1.0/docs//345/276/256/344/277/241/345/260/217/347/250/213/345/272/217/346/234/215/345/212/241/347/253/257/346/226/207/346/241/243/351/241/265/351/235/242/346/270/205/345/215/225.md +1693 -0
  15. wechat_sdk_python-0.1.0/docs//345/276/256/344/277/241/350/256/242/351/230/205/346/266/210/346/201/257API/346/226/207/346/241/243/345/234/260/345/235/200/346/270/205/345/215/225.md +464 -0
  16. wechat_sdk_python-0.1.0/examples/basic.py +11 -0
  17. wechat_sdk_python-0.1.0/examples/miniapp.py +96 -0
  18. wechat_sdk_python-0.1.0/examples/official_account.py +105 -0
  19. wechat_sdk_python-0.1.0/examples/pay.md +156 -0
  20. {wechat_sdk_python-0.0.1 → wechat_sdk_python-0.1.0}/pyproject.toml +17 -9
  21. wechat_sdk_python-0.1.0/setup.cfg +4 -0
  22. wechat_sdk_python-0.1.0/src/__init__.py +25 -0
  23. wechat_sdk_python-0.1.0/src/_transport.py +161 -0
  24. wechat_sdk_python-0.1.0/src/channels/__init__.py +6 -0
  25. wechat_sdk_python-0.1.0/src/channels/api/__init__.py +1 -0
  26. wechat_sdk_python-0.1.0/src/channels/api/_api.py +24 -0
  27. wechat_sdk_python-0.1.0/src/channels/api/basic.py +243 -0
  28. wechat_sdk_python-0.1.0/src/channels/api/compass.py +99 -0
  29. wechat_sdk_python-0.1.0/src/channels/api/leads.py +175 -0
  30. wechat_sdk_python-0.1.0/src/channels/api/leadslive.py +93 -0
  31. wechat_sdk_python-0.1.0/src/channels/api/live.py +50 -0
  32. wechat_sdk_python-0.1.0/src/channels/api/livedashboard.py +51 -0
  33. wechat_sdk_python-0.1.0/src/channels/api/locallife/__init__.py +23 -0
  34. wechat_sdk_python-0.1.0/src/channels/api/locallife/automatically.py +33 -0
  35. wechat_sdk_python-0.1.0/src/channels/api/locallife/cancel.py +52 -0
  36. wechat_sdk_python-0.1.0/src/channels/api/locallife/funds.py +92 -0
  37. wechat_sdk_python-0.1.0/src/channels/api/locallife/purchasing.py +29 -0
  38. wechat_sdk_python-0.1.0/src/channels/api/locallife/shop.py +338 -0
  39. wechat_sdk_python-0.1.0/src/channels/api/locallife/useing.py +138 -0
  40. wechat_sdk_python-0.1.0/src/channels/api/locallife/voucher.py +71 -0
  41. wechat_sdk_python-0.1.0/src/channels/api/windowproduct.py +152 -0
  42. wechat_sdk_python-0.1.0/src/channels/client.py +149 -0
  43. wechat_sdk_python-0.1.0/src/channels/exceptions/__init__.py +29 -0
  44. wechat_sdk_python-0.1.0/src/channels/models/__init__.py +0 -0
  45. wechat_sdk_python-0.1.0/src/channels/models/basic.py +20 -0
  46. wechat_sdk_python-0.1.0/src/channels/models/compass.py +138 -0
  47. wechat_sdk_python-0.1.0/src/channels/models/leads.py +154 -0
  48. wechat_sdk_python-0.1.0/src/channels/models/leadslive.py +79 -0
  49. wechat_sdk_python-0.1.0/src/channels/models/live.py +39 -0
  50. wechat_sdk_python-0.1.0/src/channels/models/livedashboard.py +280 -0
  51. wechat_sdk_python-0.1.0/src/channels/models/locallife/__init__.py +0 -0
  52. wechat_sdk_python-0.1.0/src/channels/models/locallife/_shared.py +40 -0
  53. wechat_sdk_python-0.1.0/src/channels/models/locallife/automatically.py +342 -0
  54. wechat_sdk_python-0.1.0/src/channels/models/locallife/cancel.py +33 -0
  55. wechat_sdk_python-0.1.0/src/channels/models/locallife/funds.py +85 -0
  56. wechat_sdk_python-0.1.0/src/channels/models/locallife/purchasing.py +864 -0
  57. wechat_sdk_python-0.1.0/src/channels/models/locallife/shop.py +313 -0
  58. wechat_sdk_python-0.1.0/src/channels/models/locallife/useing.py +108 -0
  59. wechat_sdk_python-0.1.0/src/channels/models/locallife/voucher.py +44 -0
  60. wechat_sdk_python-0.1.0/src/channels/models/windowproduct.py +213 -0
  61. wechat_sdk_python-0.1.0/src/channels/response_decoder.py +11 -0
  62. wechat_sdk_python-0.1.0/src/channels/result_processor.py +5 -0
  63. wechat_sdk_python-0.1.0/src/core/__init__.py +36 -0
  64. wechat_sdk_python-0.1.0/src/core/api.py +156 -0
  65. wechat_sdk_python-0.1.0/src/core/client.py +53 -0
  66. wechat_sdk_python-0.1.0/src/core/crypto.py +226 -0
  67. wechat_sdk_python-0.1.0/src/core/exceptions/__init__.py +111 -0
  68. wechat_sdk_python-0.1.0/src/core/models/__init__.py +152 -0
  69. wechat_sdk_python-0.1.0/src/core/models/account.py +161 -0
  70. wechat_sdk_python-0.1.0/src/core/request.py +69 -0
  71. wechat_sdk_python-0.1.0/src/core/response_decoder.py +61 -0
  72. wechat_sdk_python-0.1.0/src/core/responses.py +33 -0
  73. wechat_sdk_python-0.1.0/src/core/result_processor.py +54 -0
  74. wechat_sdk_python-0.1.0/src/core/session.py +100 -0
  75. wechat_sdk_python-0.1.0/src/miniapp/__init__.py +4 -0
  76. wechat_sdk_python-0.1.0/src/miniapp/api/__init__.py +1 -0
  77. wechat_sdk_python-0.1.0/src/miniapp/api/ad.py +294 -0
  78. wechat_sdk_python-0.1.0/src/miniapp/api/b2b/__init__.py +18 -0
  79. wechat_sdk_python-0.1.0/src/miniapp/api/b2b/bill.py +1174 -0
  80. wechat_sdk_python-0.1.0/src/miniapp/api/b2b/notify.py +86 -0
  81. wechat_sdk_python-0.1.0/src/miniapp/api/b2b/store_assistant.py +179 -0
  82. wechat_sdk_python-0.1.0/src/miniapp/api/charge.py +65 -0
  83. wechat_sdk_python-0.1.0/src/miniapp/api/cityservice/__init__.py +18 -0
  84. wechat_sdk_python-0.1.0/src/miniapp/api/cityservice/basic.py +215 -0
  85. wechat_sdk_python-0.1.0/src/miniapp/api/cityservice/elder_medical.py +226 -0
  86. wechat_sdk_python-0.1.0/src/miniapp/api/cityservice/medicalassistant.py +75 -0
  87. wechat_sdk_python-0.1.0/src/miniapp/api/cloudbase/__init__.py +20 -0
  88. wechat_sdk_python-0.1.0/src/miniapp/api/cloudbase/database.py +440 -0
  89. wechat_sdk_python-0.1.0/src/miniapp/api/cloudbase/functions.py +75 -0
  90. wechat_sdk_python-0.1.0/src/miniapp/api/cloudbase/others.py +339 -0
  91. wechat_sdk_python-0.1.0/src/miniapp/api/cloudbase/storage.py +109 -0
  92. wechat_sdk_python-0.1.0/src/miniapp/api/data_analysis/__init__.py +18 -0
  93. wechat_sdk_python-0.1.0/src/miniapp/api/data_analysis/others.py +179 -0
  94. wechat_sdk_python-0.1.0/src/miniapp/api/data_analysis/visit_retain.py +101 -0
  95. wechat_sdk_python-0.1.0/src/miniapp/api/data_analysis/visit_trend.py +106 -0
  96. wechat_sdk_python-0.1.0/src/miniapp/api/drama_others_api.py +296 -0
  97. wechat_sdk_python-0.1.0/src/miniapp/api/express/__init__.py +16 -0
  98. wechat_sdk_python-0.1.0/src/miniapp/api/express/express_by_business.py +540 -0
  99. wechat_sdk_python-0.1.0/src/miniapp/api/express/express_by_provider.py +420 -0
  100. wechat_sdk_python-0.1.0/src/miniapp/api/face.py +83 -0
  101. wechat_sdk_python-0.1.0/src/miniapp/api/hardware_device.py +323 -0
  102. wechat_sdk_python-0.1.0/src/miniapp/api/img_ocr/__init__.py +16 -0
  103. wechat_sdk_python-0.1.0/src/miniapp/api/img_ocr/img.py +115 -0
  104. wechat_sdk_python-0.1.0/src/miniapp/api/img_ocr/ocr.py +214 -0
  105. wechat_sdk_python-0.1.0/src/miniapp/api/immediate_delivery/__init__.py +16 -0
  106. wechat_sdk_python-0.1.0/src/miniapp/api/immediate_delivery/deliver_by_business.py +889 -0
  107. wechat_sdk_python-0.1.0/src/miniapp/api/immediate_delivery/deliver_by_provider.py +85 -0
  108. wechat_sdk_python-0.1.0/src/miniapp/api/kf_mgnt/__init__.py +16 -0
  109. wechat_sdk_python-0.1.0/src/miniapp/api/kf_mgnt/kf_management.py +150 -0
  110. wechat_sdk_python-0.1.0/src/miniapp/api/kf_mgnt/kf_message.py +437 -0
  111. wechat_sdk_python-0.1.0/src/miniapp/api/kf_work.py +77 -0
  112. wechat_sdk_python-0.1.0/src/miniapp/api/laboruse.py +68 -0
  113. wechat_sdk_python-0.1.0/src/miniapp/api/livebroadcast/__init__.py +20 -0
  114. wechat_sdk_python-0.1.0/src/miniapp/api/livebroadcast/commodity_management.py +215 -0
  115. wechat_sdk_python-0.1.0/src/miniapp/api/livebroadcast/role_management.py +101 -0
  116. wechat_sdk_python-0.1.0/src/miniapp/api/livebroadcast/studio_management.py +865 -0
  117. wechat_sdk_python-0.1.0/src/miniapp/api/livebroadcast/subscribe_management.py +70 -0
  118. wechat_sdk_python-0.1.0/src/miniapp/api/minidrama/__init__.py +26 -0
  119. wechat_sdk_python-0.1.0/src/miniapp/api/minidrama/auditdrama.py +426 -0
  120. wechat_sdk_python-0.1.0/src/miniapp/api/minidrama/authorizeapp.py +125 -0
  121. wechat_sdk_python-0.1.0/src/miniapp/api/minidrama/authorizecopyright.py +187 -0
  122. wechat_sdk_python-0.1.0/src/miniapp/api/minidrama/authorizedrama.py +167 -0
  123. wechat_sdk_python-0.1.0/src/miniapp/api/minidrama/usagedata.py +143 -0
  124. wechat_sdk_python-0.1.0/src/miniapp/api/minidrama/vod_fileupload.py +253 -0
  125. wechat_sdk_python-0.1.0/src/miniapp/api/minidrama/vod_media.py +194 -0
  126. wechat_sdk_python-0.1.0/src/miniapp/api/mp_access_token.py +74 -0
  127. wechat_sdk_python-0.1.0/src/miniapp/api/mp_message_management/__init__.py +16 -0
  128. wechat_sdk_python-0.1.0/src/miniapp/api/mp_message_management/subscribe_message.py +333 -0
  129. wechat_sdk_python-0.1.0/src/miniapp/api/mp_message_management/updatable_message.py +133 -0
  130. wechat_sdk_python-0.1.0/src/miniapp/api/nearby_poi.py +186 -0
  131. wechat_sdk_python-0.1.0/src/miniapp/api/novel/__init__.py +20 -0
  132. wechat_sdk_python-0.1.0/src/miniapp/api/novel/auth.py +213 -0
  133. wechat_sdk_python-0.1.0/src/miniapp/api/novel/business.py +611 -0
  134. wechat_sdk_python-0.1.0/src/miniapp/api/novel/other.py +40 -0
  135. wechat_sdk_python-0.1.0/src/miniapp/api/novel/preview.py +57 -0
  136. wechat_sdk_python-0.1.0/src/miniapp/api/open_api_mgnt.py +209 -0
  137. wechat_sdk_python-0.1.0/src/miniapp/api/operation.py +431 -0
  138. wechat_sdk_python-0.1.0/src/miniapp/api/order_shipping.py +488 -0
  139. wechat_sdk_python-0.1.0/src/miniapp/api/plugin_management.py +97 -0
  140. wechat_sdk_python-0.1.0/src/miniapp/api/qrcode_link/__init__.py +20 -0
  141. wechat_sdk_python-0.1.0/src/miniapp/api/qrcode_link/qr_code.py +156 -0
  142. wechat_sdk_python-0.1.0/src/miniapp/api/qrcode_link/short_link.py +46 -0
  143. wechat_sdk_python-0.1.0/src/miniapp/api/qrcode_link/url_link.py +105 -0
  144. wechat_sdk_python-0.1.0/src/miniapp/api/qrcode_link/url_scheme.py +135 -0
  145. wechat_sdk_python-0.1.0/src/miniapp/api/red_packet_cover.py +36 -0
  146. wechat_sdk_python-0.1.0/src/miniapp/api/sec_center/__init__.py +16 -0
  147. wechat_sdk_python-0.1.0/src/miniapp/api/sec_center/safety_control_capability.py +74 -0
  148. wechat_sdk_python-0.1.0/src/miniapp/api/sec_center/sec_check.py +107 -0
  149. wechat_sdk_python-0.1.0/src/miniapp/api/soter.py +40 -0
  150. wechat_sdk_python-0.1.0/src/miniapp/api/student.py +38 -0
  151. wechat_sdk_python-0.1.0/src/miniapp/api/transaction_guarantee/__init__.py +18 -0
  152. wechat_sdk_python-0.1.0/src/miniapp/api/transaction_guarantee/basic.py +57 -0
  153. wechat_sdk_python-0.1.0/src/miniapp/api/transaction_guarantee/comment.py +286 -0
  154. wechat_sdk_python-0.1.0/src/miniapp/api/transaction_guarantee/complaint.py +201 -0
  155. wechat_sdk_python-0.1.0/src/miniapp/api/user_info/__init__.py +18 -0
  156. wechat_sdk_python-0.1.0/src/miniapp/api/user_info/basic_info.py +108 -0
  157. wechat_sdk_python-0.1.0/src/miniapp/api/user_info/internet.py +55 -0
  158. wechat_sdk_python-0.1.0/src/miniapp/api/user_info/phone_number.py +42 -0
  159. wechat_sdk_python-0.1.0/src/miniapp/api/user_login.py +137 -0
  160. wechat_sdk_python-0.1.0/src/miniapp/api/virtual_payment.py +1661 -0
  161. wechat_sdk_python-0.1.0/src/miniapp/api/weixin_express/__init__.py +24 -0
  162. wechat_sdk_python-0.1.0/src/miniapp/api/weixin_express/express_msg.py +166 -0
  163. wechat_sdk_python-0.1.0/src/miniapp/api/weixin_express/express_return.py +147 -0
  164. wechat_sdk_python-0.1.0/src/miniapp/api/weixin_express/express_search.py +166 -0
  165. wechat_sdk_python-0.1.0/src/miniapp/api/weixin_express/freight.py +405 -0
  166. wechat_sdk_python-0.1.0/src/miniapp/api/weixin_express/msgpush.py +107 -0
  167. wechat_sdk_python-0.1.0/src/miniapp/api/weixin_express/same_city_distribution.py +698 -0
  168. wechat_sdk_python-0.1.0/src/miniapp/api/wx_service_market.py +82 -0
  169. wechat_sdk_python-0.1.0/src/miniapp/api/wxsearch.py +37 -0
  170. wechat_sdk_python-0.1.0/src/miniapp/base_api.py +94 -0
  171. wechat_sdk_python-0.1.0/src/miniapp/client.py +320 -0
  172. wechat_sdk_python-0.1.0/src/miniapp/events/__init__.py +191 -0
  173. wechat_sdk_python-0.1.0/src/miniapp/events/contracts.py +349 -0
  174. wechat_sdk_python-0.1.0/src/miniapp/exceptions/__init__.py +29 -0
  175. wechat_sdk_python-0.1.0/src/miniapp/models/__init__.py +0 -0
  176. wechat_sdk_python-0.1.0/src/miniapp/models/ad.py +57 -0
  177. wechat_sdk_python-0.1.0/src/miniapp/models/b2b/__init__.py +0 -0
  178. wechat_sdk_python-0.1.0/src/miniapp/models/b2b/bill.py +579 -0
  179. wechat_sdk_python-0.1.0/src/miniapp/models/b2b/notify.py +49 -0
  180. wechat_sdk_python-0.1.0/src/miniapp/models/b2b/store_assistant.py +109 -0
  181. wechat_sdk_python-0.1.0/src/miniapp/models/charge.py +72 -0
  182. wechat_sdk_python-0.1.0/src/miniapp/models/cityservice/__init__.py +0 -0
  183. wechat_sdk_python-0.1.0/src/miniapp/models/cityservice/basic.py +104 -0
  184. wechat_sdk_python-0.1.0/src/miniapp/models/cityservice/elder_medical.py +101 -0
  185. wechat_sdk_python-0.1.0/src/miniapp/models/cityservice/medicalassistant.py +18 -0
  186. wechat_sdk_python-0.1.0/src/miniapp/models/cloudbase/__init__.py +0 -0
  187. wechat_sdk_python-0.1.0/src/miniapp/models/cloudbase/database.py +163 -0
  188. wechat_sdk_python-0.1.0/src/miniapp/models/cloudbase/functions.py +27 -0
  189. wechat_sdk_python-0.1.0/src/miniapp/models/cloudbase/others.py +210 -0
  190. wechat_sdk_python-0.1.0/src/miniapp/models/cloudbase/storage.py +54 -0
  191. wechat_sdk_python-0.1.0/src/miniapp/models/data_analysis/__init__.py +0 -0
  192. wechat_sdk_python-0.1.0/src/miniapp/models/data_analysis/others.py +228 -0
  193. wechat_sdk_python-0.1.0/src/miniapp/models/data_analysis/visit_retain.py +81 -0
  194. wechat_sdk_python-0.1.0/src/miniapp/models/data_analysis/visit_trend.py +58 -0
  195. wechat_sdk_python-0.1.0/src/miniapp/models/drama_others_api.py +117 -0
  196. wechat_sdk_python-0.1.0/src/miniapp/models/express/__init__.py +0 -0
  197. wechat_sdk_python-0.1.0/src/miniapp/models/express/express_by_business.py +275 -0
  198. wechat_sdk_python-0.1.0/src/miniapp/models/express/express_by_provider.py +142 -0
  199. wechat_sdk_python-0.1.0/src/miniapp/models/face.py +42 -0
  200. wechat_sdk_python-0.1.0/src/miniapp/models/hardware_device.py +164 -0
  201. wechat_sdk_python-0.1.0/src/miniapp/models/img_ocr/__init__.py +0 -0
  202. wechat_sdk_python-0.1.0/src/miniapp/models/img_ocr/_shared.py +45 -0
  203. wechat_sdk_python-0.1.0/src/miniapp/models/img_ocr/img.py +40 -0
  204. wechat_sdk_python-0.1.0/src/miniapp/models/img_ocr/ocr.py +89 -0
  205. wechat_sdk_python-0.1.0/src/miniapp/models/immediate_delivery/__init__.py +0 -0
  206. wechat_sdk_python-0.1.0/src/miniapp/models/immediate_delivery/deliver_by_business.py +370 -0
  207. wechat_sdk_python-0.1.0/src/miniapp/models/immediate_delivery/deliver_by_provider.py +33 -0
  208. wechat_sdk_python-0.1.0/src/miniapp/models/kf_mgnt/__init__.py +0 -0
  209. wechat_sdk_python-0.1.0/src/miniapp/models/kf_mgnt/kf_management.py +89 -0
  210. wechat_sdk_python-0.1.0/src/miniapp/models/kf_mgnt/kf_message.py +162 -0
  211. wechat_sdk_python-0.1.0/src/miniapp/models/kf_work.py +24 -0
  212. wechat_sdk_python-0.1.0/src/miniapp/models/laboruse.py +17 -0
  213. wechat_sdk_python-0.1.0/src/miniapp/models/livebroadcast/__init__.py +0 -0
  214. wechat_sdk_python-0.1.0/src/miniapp/models/livebroadcast/commodity_management.py +138 -0
  215. wechat_sdk_python-0.1.0/src/miniapp/models/livebroadcast/role_management.py +48 -0
  216. wechat_sdk_python-0.1.0/src/miniapp/models/livebroadcast/studio_management.py +363 -0
  217. wechat_sdk_python-0.1.0/src/miniapp/models/livebroadcast/subscribe_management.py +41 -0
  218. wechat_sdk_python-0.1.0/src/miniapp/models/minidrama/__init__.py +0 -0
  219. wechat_sdk_python-0.1.0/src/miniapp/models/minidrama/_shared.py +25 -0
  220. wechat_sdk_python-0.1.0/src/miniapp/models/minidrama/auditdrama.py +352 -0
  221. wechat_sdk_python-0.1.0/src/miniapp/models/minidrama/authorizeapp.py +40 -0
  222. wechat_sdk_python-0.1.0/src/miniapp/models/minidrama/authorizecopyright.py +111 -0
  223. wechat_sdk_python-0.1.0/src/miniapp/models/minidrama/authorizedrama.py +75 -0
  224. wechat_sdk_python-0.1.0/src/miniapp/models/minidrama/usagedata.py +105 -0
  225. wechat_sdk_python-0.1.0/src/miniapp/models/minidrama/vod_fileupload.py +86 -0
  226. wechat_sdk_python-0.1.0/src/miniapp/models/minidrama/vod_media.py +126 -0
  227. wechat_sdk_python-0.1.0/src/miniapp/models/mp_access_token.py +6 -0
  228. wechat_sdk_python-0.1.0/src/miniapp/models/mp_message_management/__init__.py +0 -0
  229. wechat_sdk_python-0.1.0/src/miniapp/models/mp_message_management/subscribe_message.py +158 -0
  230. wechat_sdk_python-0.1.0/src/miniapp/models/mp_message_management/updatable_message.py +40 -0
  231. wechat_sdk_python-0.1.0/src/miniapp/models/nearby_poi.py +102 -0
  232. wechat_sdk_python-0.1.0/src/miniapp/models/novel/__init__.py +0 -0
  233. wechat_sdk_python-0.1.0/src/miniapp/models/novel/auth.py +122 -0
  234. wechat_sdk_python-0.1.0/src/miniapp/models/novel/business.py +314 -0
  235. wechat_sdk_python-0.1.0/src/miniapp/models/novel/other.py +13 -0
  236. wechat_sdk_python-0.1.0/src/miniapp/models/novel/preview.py +42 -0
  237. wechat_sdk_python-0.1.0/src/miniapp/models/open_api_mgnt.py +20 -0
  238. wechat_sdk_python-0.1.0/src/miniapp/models/operation.py +281 -0
  239. wechat_sdk_python-0.1.0/src/miniapp/models/order_shipping.py +270 -0
  240. wechat_sdk_python-0.1.0/src/miniapp/models/plugin_management.py +81 -0
  241. wechat_sdk_python-0.1.0/src/miniapp/models/qrcode_link/__init__.py +0 -0
  242. wechat_sdk_python-0.1.0/src/miniapp/models/qrcode_link/_shared.py +11 -0
  243. wechat_sdk_python-0.1.0/src/miniapp/models/qrcode_link/qr_code.py +63 -0
  244. wechat_sdk_python-0.1.0/src/miniapp/models/qrcode_link/short_link.py +22 -0
  245. wechat_sdk_python-0.1.0/src/miniapp/models/qrcode_link/url_link.py +72 -0
  246. wechat_sdk_python-0.1.0/src/miniapp/models/qrcode_link/url_scheme.py +73 -0
  247. wechat_sdk_python-0.1.0/src/miniapp/models/red_packet_cover.py +25 -0
  248. wechat_sdk_python-0.1.0/src/miniapp/models/sec_center/__init__.py +0 -0
  249. wechat_sdk_python-0.1.0/src/miniapp/models/sec_center/safety_control_capability.py +26 -0
  250. wechat_sdk_python-0.1.0/src/miniapp/models/sec_center/sec_check.py +66 -0
  251. wechat_sdk_python-0.1.0/src/miniapp/models/soter.py +20 -0
  252. wechat_sdk_python-0.1.0/src/miniapp/models/student.py +18 -0
  253. wechat_sdk_python-0.1.0/src/miniapp/models/transaction_guarantee/__init__.py +0 -0
  254. wechat_sdk_python-0.1.0/src/miniapp/models/transaction_guarantee/basic.py +49 -0
  255. wechat_sdk_python-0.1.0/src/miniapp/models/transaction_guarantee/comment.py +315 -0
  256. wechat_sdk_python-0.1.0/src/miniapp/models/transaction_guarantee/complaint.py +121 -0
  257. wechat_sdk_python-0.1.0/src/miniapp/models/user_info/__init__.py +0 -0
  258. wechat_sdk_python-0.1.0/src/miniapp/models/user_info/basic_info.py +42 -0
  259. wechat_sdk_python-0.1.0/src/miniapp/models/user_info/internet.py +23 -0
  260. wechat_sdk_python-0.1.0/src/miniapp/models/user_info/phone_number.py +36 -0
  261. wechat_sdk_python-0.1.0/src/miniapp/models/user_login.py +34 -0
  262. wechat_sdk_python-0.1.0/src/miniapp/models/virtual_payment.py +964 -0
  263. wechat_sdk_python-0.1.0/src/miniapp/models/weixin_express/__init__.py +0 -0
  264. wechat_sdk_python-0.1.0/src/miniapp/models/weixin_express/_shared.py +49 -0
  265. wechat_sdk_python-0.1.0/src/miniapp/models/weixin_express/express_msg.py +60 -0
  266. wechat_sdk_python-0.1.0/src/miniapp/models/weixin_express/express_return.py +45 -0
  267. wechat_sdk_python-0.1.0/src/miniapp/models/weixin_express/express_search.py +60 -0
  268. wechat_sdk_python-0.1.0/src/miniapp/models/weixin_express/freight.py +156 -0
  269. wechat_sdk_python-0.1.0/src/miniapp/models/weixin_express/msgpush.py +30 -0
  270. wechat_sdk_python-0.1.0/src/miniapp/models/weixin_express/same_city_distribution.py +411 -0
  271. wechat_sdk_python-0.1.0/src/miniapp/models/wx_service_market.py +36 -0
  272. wechat_sdk_python-0.1.0/src/miniapp/models/wxsearch.py +12 -0
  273. wechat_sdk_python-0.1.0/src/miniapp/response_decoder.py +15 -0
  274. wechat_sdk_python-0.1.0/src/miniapp/result_processor.py +23 -0
  275. wechat_sdk_python-0.1.0/src/miniapp/security.py +6 -0
  276. wechat_sdk_python-0.1.0/src/official_account/__init__.py +5 -0
  277. wechat_sdk_python-0.1.0/src/official_account/api/__init__.py +1 -0
  278. wechat_sdk_python-0.1.0/src/official_account/api/apimanage.py +145 -0
  279. wechat_sdk_python-0.1.0/src/official_account/api/base.py +154 -0
  280. wechat_sdk_python-0.1.0/src/official_account/api/customer/__init__.py +13 -0
  281. wechat_sdk_python-0.1.0/src/official_account/api/customer/message.py +227 -0
  282. wechat_sdk_python-0.1.0/src/official_account/api/customer/messctrl.py +143 -0
  283. wechat_sdk_python-0.1.0/src/official_account/api/customer/servicermanage.py +226 -0
  284. wechat_sdk_python-0.1.0/src/official_account/api/custommenu.py +207 -0
  285. wechat_sdk_python-0.1.0/src/official_account/api/draftbox/__init__.py +11 -0
  286. wechat_sdk_python-0.1.0/src/official_account/api/draftbox/draftmanage.py +238 -0
  287. wechat_sdk_python-0.1.0/src/official_account/api/draftbox/shop.py +44 -0
  288. wechat_sdk_python-0.1.0/src/official_account/api/invoice/__init__.py +18 -0
  289. wechat_sdk_python-0.1.0/src/official_account/api/invoice/auth.py +226 -0
  290. wechat_sdk_python-0.1.0/src/official_account/api/invoice/fiscal_receipt.py +142 -0
  291. wechat_sdk_python-0.1.0/src/official_account/api/invoice/name.py +127 -0
  292. wechat_sdk_python-0.1.0/src/official_account/api/invoice/platform.py +201 -0
  293. wechat_sdk_python-0.1.0/src/official_account/api/invoice/reimburser.py +149 -0
  294. wechat_sdk_python-0.1.0/src/official_account/api/leaving.py +318 -0
  295. wechat_sdk_python-0.1.0/src/official_account/api/material/__init__.py +11 -0
  296. wechat_sdk_python-0.1.0/src/official_account/api/material/permanent.py +203 -0
  297. wechat_sdk_python-0.1.0/src/official_account/api/material/temporary.py +107 -0
  298. wechat_sdk_python-0.1.0/src/official_account/api/medicalassistant.py +77 -0
  299. wechat_sdk_python-0.1.0/src/official_account/api/nontaxpay.py +527 -0
  300. wechat_sdk_python-0.1.0/src/official_account/api/notify/__init__.py +17 -0
  301. wechat_sdk_python-0.1.0/src/official_account/api/notify/autoreplies.py +34 -0
  302. wechat_sdk_python-0.1.0/src/official_account/api/notify/message.py +463 -0
  303. wechat_sdk_python-0.1.0/src/official_account/api/notify/notify.py +222 -0
  304. wechat_sdk_python-0.1.0/src/official_account/api/notify/subscribe.py +76 -0
  305. wechat_sdk_python-0.1.0/src/official_account/api/notify/template.py +221 -0
  306. wechat_sdk_python-0.1.0/src/official_account/api/onecode.py +248 -0
  307. wechat_sdk_python-0.1.0/src/official_account/api/openpoc/__init__.py +13 -0
  308. wechat_sdk_python-0.1.0/src/official_account/api/openpoc/ai.py +129 -0
  309. wechat_sdk_python-0.1.0/src/official_account/api/openpoc/image.py +82 -0
  310. wechat_sdk_python-0.1.0/src/official_account/api/openpoc/ocr.py +249 -0
  311. wechat_sdk_python-0.1.0/src/official_account/api/public.py +164 -0
  312. wechat_sdk_python-0.1.0/src/official_account/api/qrcode/__init__.py +13 -0
  313. wechat_sdk_python-0.1.0/src/official_account/api/qrcode/qrcodejump.py +169 -0
  314. wechat_sdk_python-0.1.0/src/official_account/api/qrcode/qrcodes.py +54 -0
  315. wechat_sdk_python-0.1.0/src/official_account/api/qrcode/shorten.py +64 -0
  316. wechat_sdk_python-0.1.0/src/official_account/api/stores/__init__.py +9 -0
  317. wechat_sdk_python-0.1.0/src/official_account/api/stores/miniapp.py +486 -0
  318. wechat_sdk_python-0.1.0/src/official_account/api/usermanage/__init__.py +13 -0
  319. wechat_sdk_python-0.1.0/src/official_account/api/usermanage/changeopenid.py +45 -0
  320. wechat_sdk_python-0.1.0/src/official_account/api/usermanage/tag.py +237 -0
  321. wechat_sdk_python-0.1.0/src/official_account/api/usermanage/userinfo.py +210 -0
  322. wechat_sdk_python-0.1.0/src/official_account/api/webdev/__init__.py +12 -0
  323. wechat_sdk_python-0.1.0/src/official_account/api/webdev/access.py +149 -0
  324. wechat_sdk_python-0.1.0/src/official_account/api/webdev/js.py +36 -0
  325. wechat_sdk_python-0.1.0/src/official_account/api/wedata/__init__.py +15 -0
  326. wechat_sdk_python-0.1.0/src/official_account/api/wedata/api.py +77 -0
  327. wechat_sdk_python-0.1.0/src/official_account/api/wedata/mess.py +239 -0
  328. wechat_sdk_python-0.1.0/src/official_account/api/wedata/news.py +333 -0
  329. wechat_sdk_python-0.1.0/src/official_account/api/wedata/user.py +74 -0
  330. wechat_sdk_python-0.1.0/src/official_account/base_api.py +108 -0
  331. wechat_sdk_python-0.1.0/src/official_account/client.py +189 -0
  332. wechat_sdk_python-0.1.0/src/official_account/exceptions/__init__.py +29 -0
  333. wechat_sdk_python-0.1.0/src/official_account/models/__init__.py +0 -0
  334. wechat_sdk_python-0.1.0/src/official_account/models/apimanage.py +31 -0
  335. wechat_sdk_python-0.1.0/src/official_account/models/base.py +11 -0
  336. wechat_sdk_python-0.1.0/src/official_account/models/customer/__init__.py +0 -0
  337. wechat_sdk_python-0.1.0/src/official_account/models/customer/message.py +84 -0
  338. wechat_sdk_python-0.1.0/src/official_account/models/customer/messctrl.py +53 -0
  339. wechat_sdk_python-0.1.0/src/official_account/models/customer/servicermanage.py +108 -0
  340. wechat_sdk_python-0.1.0/src/official_account/models/custommenu.py +243 -0
  341. wechat_sdk_python-0.1.0/src/official_account/models/draftbox/__init__.py +0 -0
  342. wechat_sdk_python-0.1.0/src/official_account/models/draftbox/draftmanage.py +180 -0
  343. wechat_sdk_python-0.1.0/src/official_account/models/draftbox/shop.py +25 -0
  344. wechat_sdk_python-0.1.0/src/official_account/models/invoice/__init__.py +0 -0
  345. wechat_sdk_python-0.1.0/src/official_account/models/invoice/auth.py +178 -0
  346. wechat_sdk_python-0.1.0/src/official_account/models/invoice/fiscal_receipt.py +67 -0
  347. wechat_sdk_python-0.1.0/src/official_account/models/invoice/name.py +53 -0
  348. wechat_sdk_python-0.1.0/src/official_account/models/invoice/platform.py +58 -0
  349. wechat_sdk_python-0.1.0/src/official_account/models/invoice/reimburser.py +104 -0
  350. wechat_sdk_python-0.1.0/src/official_account/models/leaving.py +112 -0
  351. wechat_sdk_python-0.1.0/src/official_account/models/material/__init__.py +0 -0
  352. wechat_sdk_python-0.1.0/src/official_account/models/material/permanent.py +127 -0
  353. wechat_sdk_python-0.1.0/src/official_account/models/material/temporary.py +18 -0
  354. wechat_sdk_python-0.1.0/src/official_account/models/medicalassistant.py +18 -0
  355. wechat_sdk_python-0.1.0/src/official_account/models/nontaxpay.py +318 -0
  356. wechat_sdk_python-0.1.0/src/official_account/models/notify/__init__.py +0 -0
  357. wechat_sdk_python-0.1.0/src/official_account/models/notify/autoreplies.py +108 -0
  358. wechat_sdk_python-0.1.0/src/official_account/models/notify/message.py +153 -0
  359. wechat_sdk_python-0.1.0/src/official_account/models/notify/notify.py +119 -0
  360. wechat_sdk_python-0.1.0/src/official_account/models/notify/subscribe.py +16 -0
  361. wechat_sdk_python-0.1.0/src/official_account/models/notify/template.py +102 -0
  362. wechat_sdk_python-0.1.0/src/official_account/models/onecode.py +143 -0
  363. wechat_sdk_python-0.1.0/src/official_account/models/openpoc/__init__.py +0 -0
  364. wechat_sdk_python-0.1.0/src/official_account/models/openpoc/_shared.py +45 -0
  365. wechat_sdk_python-0.1.0/src/official_account/models/openpoc/ai.py +37 -0
  366. wechat_sdk_python-0.1.0/src/official_account/models/openpoc/image.py +36 -0
  367. wechat_sdk_python-0.1.0/src/official_account/models/openpoc/ocr.py +113 -0
  368. wechat_sdk_python-0.1.0/src/official_account/models/public.py +124 -0
  369. wechat_sdk_python-0.1.0/src/official_account/models/qrcode/__init__.py +0 -0
  370. wechat_sdk_python-0.1.0/src/official_account/models/qrcode/qrcodejump.py +88 -0
  371. wechat_sdk_python-0.1.0/src/official_account/models/qrcode/qrcodes.py +29 -0
  372. wechat_sdk_python-0.1.0/src/official_account/models/qrcode/shorten.py +33 -0
  373. wechat_sdk_python-0.1.0/src/official_account/models/stores/__init__.py +0 -0
  374. wechat_sdk_python-0.1.0/src/official_account/models/stores/miniapp.py +349 -0
  375. wechat_sdk_python-0.1.0/src/official_account/models/usermanage/__init__.py +0 -0
  376. wechat_sdk_python-0.1.0/src/official_account/models/usermanage/_shared.py +9 -0
  377. wechat_sdk_python-0.1.0/src/official_account/models/usermanage/changeopenid.py +25 -0
  378. wechat_sdk_python-0.1.0/src/official_account/models/usermanage/tag.py +71 -0
  379. wechat_sdk_python-0.1.0/src/official_account/models/usermanage/userinfo.py +145 -0
  380. wechat_sdk_python-0.1.0/src/official_account/models/webdev/__init__.py +0 -0
  381. wechat_sdk_python-0.1.0/src/official_account/models/webdev/access.py +91 -0
  382. wechat_sdk_python-0.1.0/src/official_account/models/webdev/js.py +17 -0
  383. wechat_sdk_python-0.1.0/src/official_account/models/wedata/__init__.py +0 -0
  384. wechat_sdk_python-0.1.0/src/official_account/models/wedata/api.py +61 -0
  385. wechat_sdk_python-0.1.0/src/official_account/models/wedata/mess.py +145 -0
  386. wechat_sdk_python-0.1.0/src/official_account/models/wedata/news.py +404 -0
  387. wechat_sdk_python-0.1.0/src/official_account/models/wedata/user.py +50 -0
  388. wechat_sdk_python-0.1.0/src/official_account/response_decoder.py +19 -0
  389. wechat_sdk_python-0.1.0/src/official_account/result_processor.py +34 -0
  390. wechat_sdk_python-0.1.0/src/open_platform/__init__.py +5 -0
  391. wechat_sdk_python-0.1.0/src/open_platform/api/__init__.py +1 -0
  392. wechat_sdk_python-0.1.0/src/open_platform/api/menu.py +7 -0
  393. wechat_sdk_python-0.1.0/src/open_platform/api/message.py +7 -0
  394. wechat_sdk_python-0.1.0/src/open_platform/api/user.py +7 -0
  395. wechat_sdk_python-0.1.0/src/open_platform/client.py +118 -0
  396. wechat_sdk_python-0.1.0/src/open_platform/exceptions/__init__.py +29 -0
  397. wechat_sdk_python-0.1.0/src/open_platform/models/__init__.py +0 -0
  398. wechat_sdk_python-0.1.0/src/open_platform/models/menu.py +1 -0
  399. wechat_sdk_python-0.1.0/src/open_platform/models/message.py +1 -0
  400. wechat_sdk_python-0.1.0/src/open_platform/models/user.py +1 -0
  401. wechat_sdk_python-0.1.0/src/open_platform/parser.py +4 -0
  402. wechat_sdk_python-0.1.0/src/open_platform/response_decoder.py +5 -0
  403. wechat_sdk_python-0.1.0/src/open_platform/result_processor.py +5 -0
  404. wechat_sdk_python-0.1.0/src/pay/__init__.py +10 -0
  405. wechat_sdk_python-0.1.0/src/pay/_frontend.py +24 -0
  406. wechat_sdk_python-0.1.0/src/pay/_resource.py +74 -0
  407. wechat_sdk_python-0.1.0/src/pay/aipay/__init__.py +6 -0
  408. wechat_sdk_python-0.1.0/src/pay/aipay/exceptions/__init__.py +29 -0
  409. wechat_sdk_python-0.1.0/src/pay/aipay/models/__init__.py +0 -0
  410. wechat_sdk_python-0.1.0/src/pay/aipay/models/x402.py +11 -0
  411. wechat_sdk_python-0.1.0/src/pay/aipay/response_decoder.py +9 -0
  412. wechat_sdk_python-0.1.0/src/pay/aipay/result_processor.py +5 -0
  413. wechat_sdk_python-0.1.0/src/pay/aipay/x402.py +149 -0
  414. wechat_sdk_python-0.1.0/src/pay/api/__init__.py +43 -0
  415. wechat_sdk_python-0.1.0/src/pay/api/bill.py +112 -0
  416. wechat_sdk_python-0.1.0/src/pay/api/businesscircle/__init__.py +14 -0
  417. wechat_sdk_python-0.1.0/src/pay/api/businesscircle/parkings.py +55 -0
  418. wechat_sdk_python-0.1.0/src/pay/api/businesscircle/points.py +75 -0
  419. wechat_sdk_python-0.1.0/src/pay/api/businesscircle/user_authorizations.py +36 -0
  420. wechat_sdk_python-0.1.0/src/pay/api/businesscircle/users/__init__.py +8 -0
  421. wechat_sdk_python-0.1.0/src/pay/api/businesscircle/users/points.py +44 -0
  422. wechat_sdk_python-0.1.0/src/pay/api/certificates.py +23 -0
  423. wechat_sdk_python-0.1.0/src/pay/api/combine_transactions/__init__.py +74 -0
  424. wechat_sdk_python-0.1.0/src/pay/api/combine_transactions/app.py +69 -0
  425. wechat_sdk_python-0.1.0/src/pay/api/combine_transactions/h5.py +70 -0
  426. wechat_sdk_python-0.1.0/src/pay/api/combine_transactions/jsapi.py +77 -0
  427. wechat_sdk_python-0.1.0/src/pay/api/combine_transactions/native.py +69 -0
  428. wechat_sdk_python-0.1.0/src/pay/api/fund_app/__init__.py +8 -0
  429. wechat_sdk_python-0.1.0/src/pay/api/fund_app/mch_transfer/__init__.py +12 -0
  430. wechat_sdk_python-0.1.0/src/pay/api/fund_app/mch_transfer/elecsign.py +104 -0
  431. wechat_sdk_python-0.1.0/src/pay/api/fund_app/mch_transfer/transfer_bills.py +275 -0
  432. wechat_sdk_python-0.1.0/src/pay/api/fund_app/mch_transfer/user_confirm_authorization.py +119 -0
  433. wechat_sdk_python-0.1.0/src/pay/api/marketing/__init__.py +12 -0
  434. wechat_sdk_python-0.1.0/src/pay/api/marketing/favor/__init__.py +16 -0
  435. wechat_sdk_python-0.1.0/src/pay/api/marketing/favor/callbacks.py +65 -0
  436. wechat_sdk_python-0.1.0/src/pay/api/marketing/favor/coupon_stocks.py +110 -0
  437. wechat_sdk_python-0.1.0/src/pay/api/marketing/favor/media.py +28 -0
  438. wechat_sdk_python-0.1.0/src/pay/api/marketing/favor/stocks.py +278 -0
  439. wechat_sdk_python-0.1.0/src/pay/api/marketing/favor/users/__init__.py +8 -0
  440. wechat_sdk_python-0.1.0/src/pay/api/marketing/favor/users/coupons.py +147 -0
  441. wechat_sdk_python-0.1.0/src/pay/api/marketing/partnerships.py +101 -0
  442. wechat_sdk_python-0.1.0/src/pay/api/marketing/paygiftactivity/__init__.py +10 -0
  443. wechat_sdk_python-0.1.0/src/pay/api/marketing/paygiftactivity/activities.py +219 -0
  444. wechat_sdk_python-0.1.0/src/pay/api/marketing/paygiftactivity/unique_threshold_activity.py +73 -0
  445. wechat_sdk_python-0.1.0/src/pay/api/med_ins/__init__.py +10 -0
  446. wechat_sdk_python-0.1.0/src/pay/api/med_ins/orders.py +213 -0
  447. wechat_sdk_python-0.1.0/src/pay/api/med_ins/refunds.py +60 -0
  448. wechat_sdk_python-0.1.0/src/pay/api/merchant_service/__init__.py +12 -0
  449. wechat_sdk_python-0.1.0/src/pay/api/merchant_service/complaint_notifications.py +87 -0
  450. wechat_sdk_python-0.1.0/src/pay/api/merchant_service/complaints_v2.py +279 -0
  451. wechat_sdk_python-0.1.0/src/pay/api/merchant_service/images.py +48 -0
  452. wechat_sdk_python-0.1.0/src/pay/api/offlineface/__init__.py +16 -0
  453. wechat_sdk_python-0.1.0/src/pay/api/offlineface/authinfo.py +54 -0
  454. wechat_sdk_python-0.1.0/src/pay/api/offlineface/contracts.py +84 -0
  455. wechat_sdk_python-0.1.0/src/pay/api/offlineface/face_collections.py +68 -0
  456. wechat_sdk_python-0.1.0/src/pay/api/offlineface/repayment_url.py +35 -0
  457. wechat_sdk_python-0.1.0/src/pay/api/offlineface/transactions.py +119 -0
  458. wechat_sdk_python-0.1.0/src/pay/api/offlinefacemch/__init__.py +10 -0
  459. wechat_sdk_python-0.1.0/src/pay/api/offlinefacemch/organizations.py +146 -0
  460. wechat_sdk_python-0.1.0/src/pay/api/offlinefacemch/tokens.py +37 -0
  461. wechat_sdk_python-0.1.0/src/pay/api/order.py +5 -0
  462. wechat_sdk_python-0.1.0/src/pay/api/payscore/__init__.py +8 -0
  463. wechat_sdk_python-0.1.0/src/pay/api/payscore/serviceorder.py +393 -0
  464. wechat_sdk_python-0.1.0/src/pay/api/profitsharing/__init__.py +16 -0
  465. wechat_sdk_python-0.1.0/src/pay/api/profitsharing/bills.py +36 -0
  466. wechat_sdk_python-0.1.0/src/pay/api/profitsharing/orders.py +113 -0
  467. wechat_sdk_python-0.1.0/src/pay/api/profitsharing/receivers.py +83 -0
  468. wechat_sdk_python-0.1.0/src/pay/api/profitsharing/return_orders.py +83 -0
  469. wechat_sdk_python-0.1.0/src/pay/api/profitsharing/transactions.py +25 -0
  470. wechat_sdk_python-0.1.0/src/pay/api/refund/__init__.py +8 -0
  471. wechat_sdk_python-0.1.0/src/pay/api/refund/domestic/__init__.py +8 -0
  472. wechat_sdk_python-0.1.0/src/pay/api/refund/domestic/refunds.py +150 -0
  473. wechat_sdk_python-0.1.0/src/pay/api/security.py +43 -0
  474. wechat_sdk_python-0.1.0/src/pay/api/smartguide/__init__.py +8 -0
  475. wechat_sdk_python-0.1.0/src/pay/api/smartguide/guides.py +189 -0
  476. wechat_sdk_python-0.1.0/src/pay/api/transactions/__init__.py +86 -0
  477. wechat_sdk_python-0.1.0/src/pay/api/transactions/app.py +95 -0
  478. wechat_sdk_python-0.1.0/src/pay/api/transactions/h5.py +96 -0
  479. wechat_sdk_python-0.1.0/src/pay/api/transactions/jsapi.py +106 -0
  480. wechat_sdk_python-0.1.0/src/pay/api/transactions/native.py +98 -0
  481. wechat_sdk_python-0.1.0/src/pay/api/transactions/requests.py +11 -0
  482. wechat_sdk_python-0.1.0/src/pay/api/vehicle/__init__.py +10 -0
  483. wechat_sdk_python-0.1.0/src/pay/api/vehicle/parking/__init__.py +10 -0
  484. wechat_sdk_python-0.1.0/src/pay/api/vehicle/parking/parkings.py +59 -0
  485. wechat_sdk_python-0.1.0/src/pay/api/vehicle/parking/services.py +38 -0
  486. wechat_sdk_python-0.1.0/src/pay/api/vehicle/transactions/__init__.py +31 -0
  487. wechat_sdk_python-0.1.0/src/pay/api/vehicle/transactions/parking.py +84 -0
  488. wechat_sdk_python-0.1.0/src/pay/client.py +305 -0
  489. wechat_sdk_python-0.1.0/src/pay/exceptions/__init__.py +36 -0
  490. wechat_sdk_python-0.1.0/src/pay/frontend.py +229 -0
  491. wechat_sdk_python-0.1.0/src/pay/launch_types.py +99 -0
  492. wechat_sdk_python-0.1.0/src/pay/models/__init__.py +0 -0
  493. wechat_sdk_python-0.1.0/src/pay/models/bill.py +33 -0
  494. wechat_sdk_python-0.1.0/src/pay/models/businesscircle/__init__.py +0 -0
  495. wechat_sdk_python-0.1.0/src/pay/models/businesscircle/parkings.py +16 -0
  496. wechat_sdk_python-0.1.0/src/pay/models/businesscircle/points.py +21 -0
  497. wechat_sdk_python-0.1.0/src/pay/models/businesscircle/user_authorizations.py +18 -0
  498. wechat_sdk_python-0.1.0/src/pay/models/businesscircle/users/__init__.py +0 -0
  499. wechat_sdk_python-0.1.0/src/pay/models/businesscircle/users/points.py +15 -0
  500. wechat_sdk_python-0.1.0/src/pay/models/certificates.py +27 -0
  501. wechat_sdk_python-0.1.0/src/pay/models/combine_transactions/__init__.py +81 -0
  502. wechat_sdk_python-0.1.0/src/pay/models/combine_transactions/app.py +19 -0
  503. wechat_sdk_python-0.1.0/src/pay/models/combine_transactions/h5.py +19 -0
  504. wechat_sdk_python-0.1.0/src/pay/models/combine_transactions/jsapi.py +20 -0
  505. wechat_sdk_python-0.1.0/src/pay/models/combine_transactions/native.py +19 -0
  506. wechat_sdk_python-0.1.0/src/pay/models/fund_app/__init__.py +0 -0
  507. wechat_sdk_python-0.1.0/src/pay/models/fund_app/mch_transfer/__init__.py +0 -0
  508. wechat_sdk_python-0.1.0/src/pay/models/fund_app/mch_transfer/elecsign.py +28 -0
  509. wechat_sdk_python-0.1.0/src/pay/models/fund_app/mch_transfer/transfer_bills.py +112 -0
  510. wechat_sdk_python-0.1.0/src/pay/models/fund_app/mch_transfer/user_confirm_authorization.py +85 -0
  511. wechat_sdk_python-0.1.0/src/pay/models/marketing/__init__.py +0 -0
  512. wechat_sdk_python-0.1.0/src/pay/models/marketing/favor/__init__.py +0 -0
  513. wechat_sdk_python-0.1.0/src/pay/models/marketing/favor/callbacks.py +32 -0
  514. wechat_sdk_python-0.1.0/src/pay/models/marketing/favor/coupon_stocks.py +44 -0
  515. wechat_sdk_python-0.1.0/src/pay/models/marketing/favor/media.py +7 -0
  516. wechat_sdk_python-0.1.0/src/pay/models/marketing/favor/stocks.py +209 -0
  517. wechat_sdk_python-0.1.0/src/pay/models/marketing/favor/users/__init__.py +0 -0
  518. wechat_sdk_python-0.1.0/src/pay/models/marketing/favor/users/coupons.py +118 -0
  519. wechat_sdk_python-0.1.0/src/pay/models/marketing/partnerships.py +62 -0
  520. wechat_sdk_python-0.1.0/src/pay/models/marketing/paygiftactivity/__init__.py +0 -0
  521. wechat_sdk_python-0.1.0/src/pay/models/marketing/paygiftactivity/activities.py +218 -0
  522. wechat_sdk_python-0.1.0/src/pay/models/marketing/paygiftactivity/unique_threshold_activity.py +16 -0
  523. wechat_sdk_python-0.1.0/src/pay/models/med_ins/__init__.py +0 -0
  524. wechat_sdk_python-0.1.0/src/pay/models/med_ins/orders.py +201 -0
  525. wechat_sdk_python-0.1.0/src/pay/models/med_ins/refunds.py +19 -0
  526. wechat_sdk_python-0.1.0/src/pay/models/merchant_service/__init__.py +0 -0
  527. wechat_sdk_python-0.1.0/src/pay/models/merchant_service/complaint_notifications.py +27 -0
  528. wechat_sdk_python-0.1.0/src/pay/models/merchant_service/complaints_v2.py +368 -0
  529. wechat_sdk_python-0.1.0/src/pay/models/merchant_service/images.py +12 -0
  530. wechat_sdk_python-0.1.0/src/pay/models/notifications.py +27 -0
  531. wechat_sdk_python-0.1.0/src/pay/models/offlineface/__init__.py +0 -0
  532. wechat_sdk_python-0.1.0/src/pay/models/offlineface/authinfo.py +20 -0
  533. wechat_sdk_python-0.1.0/src/pay/models/offlineface/contracts.py +33 -0
  534. wechat_sdk_python-0.1.0/src/pay/models/offlineface/face_collections.py +39 -0
  535. wechat_sdk_python-0.1.0/src/pay/models/offlineface/repayment_url.py +13 -0
  536. wechat_sdk_python-0.1.0/src/pay/models/offlineface/transactions.py +93 -0
  537. wechat_sdk_python-0.1.0/src/pay/models/offlinefacemch/__init__.py +0 -0
  538. wechat_sdk_python-0.1.0/src/pay/models/offlinefacemch/organizations.py +60 -0
  539. wechat_sdk_python-0.1.0/src/pay/models/offlinefacemch/tokens.py +16 -0
  540. wechat_sdk_python-0.1.0/src/pay/models/order.py +5 -0
  541. wechat_sdk_python-0.1.0/src/pay/models/payscore/__init__.py +0 -0
  542. wechat_sdk_python-0.1.0/src/pay/models/payscore/serviceorder.py +379 -0
  543. wechat_sdk_python-0.1.0/src/pay/models/profitsharing/__init__.py +0 -0
  544. wechat_sdk_python-0.1.0/src/pay/models/profitsharing/bills.py +16 -0
  545. wechat_sdk_python-0.1.0/src/pay/models/profitsharing/orders.py +59 -0
  546. wechat_sdk_python-0.1.0/src/pay/models/profitsharing/receivers.py +35 -0
  547. wechat_sdk_python-0.1.0/src/pay/models/profitsharing/return_orders.py +50 -0
  548. wechat_sdk_python-0.1.0/src/pay/models/profitsharing/transactions.py +8 -0
  549. wechat_sdk_python-0.1.0/src/pay/models/refund/__init__.py +0 -0
  550. wechat_sdk_python-0.1.0/src/pay/models/refund/domestic/__init__.py +0 -0
  551. wechat_sdk_python-0.1.0/src/pay/models/refund/domestic/refunds.py +132 -0
  552. wechat_sdk_python-0.1.0/src/pay/models/security.py +20 -0
  553. wechat_sdk_python-0.1.0/src/pay/models/smartguide/__init__.py +0 -0
  554. wechat_sdk_python-0.1.0/src/pay/models/smartguide/guides.py +58 -0
  555. wechat_sdk_python-0.1.0/src/pay/models/transactions/__init__.py +76 -0
  556. wechat_sdk_python-0.1.0/src/pay/models/transactions/app.py +26 -0
  557. wechat_sdk_python-0.1.0/src/pay/models/transactions/h5.py +26 -0
  558. wechat_sdk_python-0.1.0/src/pay/models/transactions/jsapi.py +31 -0
  559. wechat_sdk_python-0.1.0/src/pay/models/transactions/native.py +26 -0
  560. wechat_sdk_python-0.1.0/src/pay/models/transactions/requests.py +56 -0
  561. wechat_sdk_python-0.1.0/src/pay/models/vehicle/__init__.py +0 -0
  562. wechat_sdk_python-0.1.0/src/pay/models/vehicle/parking/__init__.py +0 -0
  563. wechat_sdk_python-0.1.0/src/pay/models/vehicle/parking/parkings.py +29 -0
  564. wechat_sdk_python-0.1.0/src/pay/models/vehicle/parking/services.py +24 -0
  565. wechat_sdk_python-0.1.0/src/pay/models/vehicle/transactions/__init__.py +47 -0
  566. wechat_sdk_python-0.1.0/src/pay/models/vehicle/transactions/_shared.py +33 -0
  567. wechat_sdk_python-0.1.0/src/pay/models/vehicle/transactions/parking.py +60 -0
  568. wechat_sdk_python-0.1.0/src/pay/notifications.py +191 -0
  569. wechat_sdk_python-0.1.0/src/pay/response_decoder.py +63 -0
  570. wechat_sdk_python-0.1.0/src/pay/result_processor.py +46 -0
  571. wechat_sdk_python-0.1.0/src/pay/sign.py +157 -0
  572. wechat_sdk_python-0.1.0/src/pay/utils/__init__.py +1 -0
  573. wechat_sdk_python-0.1.0/src/pay/utils/_payment.py +22 -0
  574. wechat_sdk_python-0.1.0/src/pay/v2/__init__.py +3 -0
  575. wechat_sdk_python-0.1.0/src/pay/v2/_resource.py +33 -0
  576. wechat_sdk_python-0.1.0/src/pay/v2/api/__init__.py +31 -0
  577. wechat_sdk_python-0.1.0/src/pay/v2/api/downloadbill.py +69 -0
  578. wechat_sdk_python-0.1.0/src/pay/v2/api/downloadfundflow.py +75 -0
  579. wechat_sdk_python-0.1.0/src/pay/v2/api/face.py +103 -0
  580. wechat_sdk_python-0.1.0/src/pay/v2/api/mch/__init__.py +10 -0
  581. wechat_sdk_python-0.1.0/src/pay/v2/api/mch/customs.py +198 -0
  582. wechat_sdk_python-0.1.0/src/pay/v2/api/mch/newcustoms.py +105 -0
  583. wechat_sdk_python-0.1.0/src/pay/v2/api/micropay.py +109 -0
  584. wechat_sdk_python-0.1.0/src/pay/v2/api/mmpaymkttransfers.py +210 -0
  585. wechat_sdk_python-0.1.0/src/pay/v2/api/orderquery.py +85 -0
  586. wechat_sdk_python-0.1.0/src/pay/v2/api/payitil.py +90 -0
  587. wechat_sdk_python-0.1.0/src/pay/v2/api/refundquery.py +105 -0
  588. wechat_sdk_python-0.1.0/src/pay/v2/api/secapi/__init__.py +91 -0
  589. wechat_sdk_python-0.1.0/src/pay/v2/api/secapi/refund.py +113 -0
  590. wechat_sdk_python-0.1.0/src/pay/v2/api/tools/__init__.py +8 -0
  591. wechat_sdk_python-0.1.0/src/pay/v2/api/tools/authcodetoopenid.py +71 -0
  592. wechat_sdk_python-0.1.0/src/pay/v2/client.py +366 -0
  593. wechat_sdk_python-0.1.0/src/pay/v2/exceptions/__init__.py +34 -0
  594. wechat_sdk_python-0.1.0/src/pay/v2/frontend.py +127 -0
  595. wechat_sdk_python-0.1.0/src/pay/v2/models/__init__.py +0 -0
  596. wechat_sdk_python-0.1.0/src/pay/v2/models/client.py +22 -0
  597. wechat_sdk_python-0.1.0/src/pay/v2/models/downloadbill.py +1 -0
  598. wechat_sdk_python-0.1.0/src/pay/v2/models/downloadfundflow.py +1 -0
  599. wechat_sdk_python-0.1.0/src/pay/v2/models/face.py +20 -0
  600. wechat_sdk_python-0.1.0/src/pay/v2/models/mch/__init__.py +0 -0
  601. wechat_sdk_python-0.1.0/src/pay/v2/models/mch/customs.py +40 -0
  602. wechat_sdk_python-0.1.0/src/pay/v2/models/mch/newcustoms.py +23 -0
  603. wechat_sdk_python-0.1.0/src/pay/v2/models/micropay.py +33 -0
  604. wechat_sdk_python-0.1.0/src/pay/v2/models/mmpaymkttransfers.py +49 -0
  605. wechat_sdk_python-0.1.0/src/pay/v2/models/orderquery.py +35 -0
  606. wechat_sdk_python-0.1.0/src/pay/v2/models/payitil.py +9 -0
  607. wechat_sdk_python-0.1.0/src/pay/v2/models/refundquery.py +27 -0
  608. wechat_sdk_python-0.1.0/src/pay/v2/models/secapi/__init__.py +18 -0
  609. wechat_sdk_python-0.1.0/src/pay/v2/models/secapi/refund.py +31 -0
  610. wechat_sdk_python-0.1.0/src/pay/v2/models/tools/__init__.py +0 -0
  611. wechat_sdk_python-0.1.0/src/pay/v2/models/tools/authcodetoopenid.py +17 -0
  612. wechat_sdk_python-0.1.0/src/pay/v2/response_decoder.py +45 -0
  613. wechat_sdk_python-0.1.0/src/pay/v2/result_processor.py +41 -0
  614. wechat_sdk_python-0.1.0/src/py.typed +0 -0
  615. wechat_sdk_python-0.1.0/src/store/__init__.py +6 -0
  616. wechat_sdk_python-0.1.0/src/store/api/__init__.py +1 -0
  617. wechat_sdk_python-0.1.0/src/store/api/_account.py +248 -0
  618. wechat_sdk_python-0.1.0/src/store/api/_address.py +149 -0
  619. wechat_sdk_python-0.1.0/src/store/api/_api.py +88 -0
  620. wechat_sdk_python-0.1.0/src/store/api/_freight.py +143 -0
  621. wechat_sdk_python-0.1.0/src/store/api/_stock.py +173 -0
  622. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/__init__.py +25 -0
  623. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/balance.py +97 -0
  624. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/basic.py +9 -0
  625. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/category.py +27 -0
  626. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/headsupplier.py +125 -0
  627. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/opentalent/__init__.py +13 -0
  628. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/opentalent/getshop.py +411 -0
  629. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/opentalent/window.py +271 -0
  630. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/order.py +101 -0
  631. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/sharer/__init__.py +23 -0
  632. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/sharer/account.py +235 -0
  633. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/sharer/article.py +101 -0
  634. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/sharer/clue.py +81 -0
  635. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/sharer/coupon.py +283 -0
  636. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/sharer/getshop.py +375 -0
  637. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/sharer/live.py +575 -0
  638. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/sharer/video.py +189 -0
  639. wechat_sdk_python-0.1.0/src/store/api/leagueheadsupplier/shop.py +153 -0
  640. wechat_sdk_python-0.1.0/src/store/api/shop/__init__.py +61 -0
  641. wechat_sdk_python-0.1.0/src/store/api/shop/apimgnt/__init__.py +13 -0
  642. wechat_sdk_python-0.1.0/src/store/api/shop/apimgnt/common.py +29 -0
  643. wechat_sdk_python-0.1.0/src/store/api/shop/apimgnt/resource.py +304 -0
  644. wechat_sdk_python-0.1.0/src/store/api/shop/brand.py +234 -0
  645. wechat_sdk_python-0.1.0/src/store/api/shop/category_rule.py +92 -0
  646. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_aftersale/__init__.py +15 -0
  647. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_aftersale/aftersale.py +724 -0
  648. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_aftersale/complaint.py +156 -0
  649. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_aftersale/guarantee.py +242 -0
  650. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_category.py +226 -0
  651. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_delivery/__init__.py +17 -0
  652. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_delivery/address.py +9 -0
  653. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_delivery/delivery.py +108 -0
  654. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_delivery/ewaybill.py +787 -0
  655. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_delivery/merchant.py +9 -0
  656. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_order.py +875 -0
  657. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_product/__init__.py +19 -0
  658. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_product/gift.py +308 -0
  659. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_product/giftactivity.py +106 -0
  660. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_product/limiteddiscounttask.py +192 -0
  661. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_product/shop.py +1310 -0
  662. wechat_sdk_python-0.1.0/src/store/api/shop/channels_shop_product/stock.py +9 -0
  663. wechat_sdk_python-0.1.0/src/store/api/shop/compass.py +279 -0
  664. wechat_sdk_python-0.1.0/src/store/api/shop/coupon.py +324 -0
  665. wechat_sdk_python-0.1.0/src/store/api/shop/favorite/__init__.py +11 -0
  666. wechat_sdk_python-0.1.0/src/store/api/shop/favorite/shopfavorite.py +23 -0
  667. wechat_sdk_python-0.1.0/src/store/api/shop/funds/__init__.py +15 -0
  668. wechat_sdk_python-0.1.0/src/store/api/shop/funds/bank.py +145 -0
  669. wechat_sdk_python-0.1.0/src/store/api/shop/funds/funds.py +301 -0
  670. wechat_sdk_python-0.1.0/src/store/api/shop/funds/qrcode.py +51 -0
  671. wechat_sdk_python-0.1.0/src/store/api/shop/homepage/__init__.py +17 -0
  672. wechat_sdk_python-0.1.0/src/store/api/shop/homepage/background.py +86 -0
  673. wechat_sdk_python-0.1.0/src/store/api/shop/homepage/banner.py +91 -0
  674. wechat_sdk_python-0.1.0/src/store/api/shop/homepage/shoptype.py +55 -0
  675. wechat_sdk_python-0.1.0/src/store/api/shop/homepage/storewindow.py +119 -0
  676. wechat_sdk_python-0.1.0/src/store/api/shop/kf.py +119 -0
  677. wechat_sdk_python-0.1.0/src/store/api/shop/league/__init__.py +13 -0
  678. wechat_sdk_python-0.1.0/src/store/api/shop/league/item.py +330 -0
  679. wechat_sdk_python-0.1.0/src/store/api/shop/league/promoter.py +136 -0
  680. wechat_sdk_python-0.1.0/src/store/api/shop/miniandstore/__init__.py +13 -0
  681. wechat_sdk_python-0.1.0/src/store/api/shop/miniandstore/basic.py +87 -0
  682. wechat_sdk_python-0.1.0/src/store/api/shop/miniandstore/cooperation_gift.py +321 -0
  683. wechat_sdk_python-0.1.0/src/store/api/shop/platformkf.py +145 -0
  684. wechat_sdk_python-0.1.0/src/store/api/shop/qic.py +153 -0
  685. wechat_sdk_python-0.1.0/src/store/api/shop/storemanage.py +125 -0
  686. wechat_sdk_python-0.1.0/src/store/api/shop/subsidy/__init__.py +11 -0
  687. wechat_sdk_python-0.1.0/src/store/api/shop/subsidy/invoicing.py +137 -0
  688. wechat_sdk_python-0.1.0/src/store/api/shop/supplier/__init__.py +15 -0
  689. wechat_sdk_python-0.1.0/src/store/api/shop/supplier/auto.py +176 -0
  690. wechat_sdk_python-0.1.0/src/store/api/shop/supplier/order.py +213 -0
  691. wechat_sdk_python-0.1.0/src/store/api/shop/supplier/relation.py +69 -0
  692. wechat_sdk_python-0.1.0/src/store/api/shop/supply.py +138 -0
  693. wechat_sdk_python-0.1.0/src/store/api/shop/vip.py +107 -0
  694. wechat_sdk_python-0.1.0/src/store/api/shop/warehouse.py +381 -0
  695. wechat_sdk_python-0.1.0/src/store/api/shop/wecom.py +37 -0
  696. wechat_sdk_python-0.1.0/src/store/api/shop/wxamember/__init__.py +13 -0
  697. wechat_sdk_python-0.1.0/src/store/api/shop/wxamember/shop.py +23 -0
  698. wechat_sdk_python-0.1.0/src/store/api/shop/wxamember/wxa.py +157 -0
  699. wechat_sdk_python-0.1.0/src/store/api/supplier/__init__.py +19 -0
  700. wechat_sdk_python-0.1.0/src/store/api/supplier/account.py +23 -0
  701. wechat_sdk_python-0.1.0/src/store/api/supplier/basics.py +9 -0
  702. wechat_sdk_python-0.1.0/src/store/api/supplier/delivery/__init__.py +15 -0
  703. wechat_sdk_python-0.1.0/src/store/api/supplier/delivery/address.py +9 -0
  704. wechat_sdk_python-0.1.0/src/store/api/supplier/delivery/electronic.py +689 -0
  705. wechat_sdk_python-0.1.0/src/store/api/supplier/delivery/shipping.py +95 -0
  706. wechat_sdk_python-0.1.0/src/store/api/supplier/dropship/__init__.py +13 -0
  707. wechat_sdk_python-0.1.0/src/store/api/supplier/dropship/dropship_order.py +138 -0
  708. wechat_sdk_python-0.1.0/src/store/api/supplier/dropship/dropship_relation.py +113 -0
  709. wechat_sdk_python-0.1.0/src/store/api/supplier/supply/__init__.py +19 -0
  710. wechat_sdk_python-0.1.0/src/store/api/supplier/supply/freight_template.py +9 -0
  711. wechat_sdk_python-0.1.0/src/store/api/supplier/supply/supply_category.py +226 -0
  712. wechat_sdk_python-0.1.0/src/store/api/supplier/supply/supply_order.py +138 -0
  713. wechat_sdk_python-0.1.0/src/store/api/supplier/supply/supply_product.py +639 -0
  714. wechat_sdk_python-0.1.0/src/store/api/supplier/supply/supply_product_stock.py +9 -0
  715. wechat_sdk_python-0.1.0/src/store/api/talent/__init__.py +15 -0
  716. wechat_sdk_python-0.1.0/src/store/api/talent/basics.py +9 -0
  717. wechat_sdk_python-0.1.0/src/store/api/talent/order.py +95 -0
  718. wechat_sdk_python-0.1.0/src/store/api/talent/window.py +67 -0
  719. wechat_sdk_python-0.1.0/src/store/client.py +144 -0
  720. wechat_sdk_python-0.1.0/src/store/exceptions/__init__.py +29 -0
  721. wechat_sdk_python-0.1.0/src/store/models/__init__.py +0 -0
  722. wechat_sdk_python-0.1.0/src/store/models/_account.py +18 -0
  723. wechat_sdk_python-0.1.0/src/store/models/_address.py +70 -0
  724. wechat_sdk_python-0.1.0/src/store/models/_freight.py +158 -0
  725. wechat_sdk_python-0.1.0/src/store/models/_shared.py +49 -0
  726. wechat_sdk_python-0.1.0/src/store/models/_stock.py +164 -0
  727. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/__init__.py +0 -0
  728. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/balance.py +51 -0
  729. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/basic.py +7 -0
  730. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/category.py +146 -0
  731. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/headsupplier.py +117 -0
  732. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/opentalent/__init__.py +0 -0
  733. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/opentalent/getshop.py +280 -0
  734. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/opentalent/window.py +211 -0
  735. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/order.py +246 -0
  736. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/sharer/__init__.py +0 -0
  737. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/sharer/account.py +166 -0
  738. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/sharer/article.py +98 -0
  739. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/sharer/clue.py +114 -0
  740. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/sharer/coupon.py +246 -0
  741. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/sharer/getshop.py +343 -0
  742. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/sharer/live.py +261 -0
  743. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/sharer/video.py +119 -0
  744. wechat_sdk_python-0.1.0/src/store/models/leagueheadsupplier/shop.py +439 -0
  745. wechat_sdk_python-0.1.0/src/store/models/shop/__init__.py +0 -0
  746. wechat_sdk_python-0.1.0/src/store/models/shop/_shared.py +80 -0
  747. wechat_sdk_python-0.1.0/src/store/models/shop/apimgnt/__init__.py +0 -0
  748. wechat_sdk_python-0.1.0/src/store/models/shop/apimgnt/common.py +15 -0
  749. wechat_sdk_python-0.1.0/src/store/models/shop/apimgnt/resource.py +113 -0
  750. wechat_sdk_python-0.1.0/src/store/models/shop/brand.py +261 -0
  751. wechat_sdk_python-0.1.0/src/store/models/shop/category_rule.py +259 -0
  752. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_aftersale/__init__.py +0 -0
  753. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_aftersale/_shared.py +18 -0
  754. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_aftersale/aftersale.py +654 -0
  755. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_aftersale/complaint.py +94 -0
  756. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_aftersale/guarantee.py +329 -0
  757. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_category.py +491 -0
  758. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_delivery/__init__.py +0 -0
  759. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_delivery/address.py +6 -0
  760. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_delivery/delivery.py +32 -0
  761. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_delivery/ewaybill.py +648 -0
  762. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_delivery/merchant.py +13 -0
  763. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_order.py +1183 -0
  764. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_product/__init__.py +0 -0
  765. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_product/_shared.py +10 -0
  766. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_product/gift.py +236 -0
  767. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_product/giftactivity.py +42 -0
  768. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_product/limiteddiscounttask.py +127 -0
  769. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_product/shop.py +945 -0
  770. wechat_sdk_python-0.1.0/src/store/models/shop/channels_shop_product/stock.py +6 -0
  771. wechat_sdk_python-0.1.0/src/store/models/shop/compass.py +370 -0
  772. wechat_sdk_python-0.1.0/src/store/models/shop/coupon.py +228 -0
  773. wechat_sdk_python-0.1.0/src/store/models/shop/favorite/__init__.py +0 -0
  774. wechat_sdk_python-0.1.0/src/store/models/shop/favorite/shopfavorite.py +12 -0
  775. wechat_sdk_python-0.1.0/src/store/models/shop/funds/__init__.py +0 -0
  776. wechat_sdk_python-0.1.0/src/store/models/shop/funds/bank.py +98 -0
  777. wechat_sdk_python-0.1.0/src/store/models/shop/funds/funds.py +344 -0
  778. wechat_sdk_python-0.1.0/src/store/models/shop/funds/qrcode.py +27 -0
  779. wechat_sdk_python-0.1.0/src/store/models/shop/homepage/__init__.py +0 -0
  780. wechat_sdk_python-0.1.0/src/store/models/shop/homepage/background.py +32 -0
  781. wechat_sdk_python-0.1.0/src/store/models/shop/homepage/banner.py +88 -0
  782. wechat_sdk_python-0.1.0/src/store/models/shop/homepage/shoptype.py +47 -0
  783. wechat_sdk_python-0.1.0/src/store/models/shop/homepage/storewindow.py +44 -0
  784. wechat_sdk_python-0.1.0/src/store/models/shop/kf.py +40 -0
  785. wechat_sdk_python-0.1.0/src/store/models/shop/league/__init__.py +0 -0
  786. wechat_sdk_python-0.1.0/src/store/models/shop/league/_shared.py +11 -0
  787. wechat_sdk_python-0.1.0/src/store/models/shop/league/item.py +230 -0
  788. wechat_sdk_python-0.1.0/src/store/models/shop/league/promoter.py +112 -0
  789. wechat_sdk_python-0.1.0/src/store/models/shop/miniandstore/__init__.py +0 -0
  790. wechat_sdk_python-0.1.0/src/store/models/shop/miniandstore/basic.py +38 -0
  791. wechat_sdk_python-0.1.0/src/store/models/shop/miniandstore/cooperation_gift.py +225 -0
  792. wechat_sdk_python-0.1.0/src/store/models/shop/platformkf.py +176 -0
  793. wechat_sdk_python-0.1.0/src/store/models/shop/qic.py +171 -0
  794. wechat_sdk_python-0.1.0/src/store/models/shop/storemanage.py +68 -0
  795. wechat_sdk_python-0.1.0/src/store/models/shop/subsidy/__init__.py +0 -0
  796. wechat_sdk_python-0.1.0/src/store/models/shop/subsidy/invoicing.py +72 -0
  797. wechat_sdk_python-0.1.0/src/store/models/shop/supplier/__init__.py +0 -0
  798. wechat_sdk_python-0.1.0/src/store/models/shop/supplier/auto.py +78 -0
  799. wechat_sdk_python-0.1.0/src/store/models/shop/supplier/order.py +488 -0
  800. wechat_sdk_python-0.1.0/src/store/models/shop/supplier/relation.py +34 -0
  801. wechat_sdk_python-0.1.0/src/store/models/shop/supply.py +334 -0
  802. wechat_sdk_python-0.1.0/src/store/models/shop/vip.py +78 -0
  803. wechat_sdk_python-0.1.0/src/store/models/shop/warehouse.py +172 -0
  804. wechat_sdk_python-0.1.0/src/store/models/shop/wecom.py +23 -0
  805. wechat_sdk_python-0.1.0/src/store/models/shop/wxamember/__init__.py +0 -0
  806. wechat_sdk_python-0.1.0/src/store/models/shop/wxamember/shop.py +35 -0
  807. wechat_sdk_python-0.1.0/src/store/models/shop/wxamember/wxa.py +70 -0
  808. wechat_sdk_python-0.1.0/src/store/models/supplier/__init__.py +0 -0
  809. wechat_sdk_python-0.1.0/src/store/models/supplier/account.py +24 -0
  810. wechat_sdk_python-0.1.0/src/store/models/supplier/basics.py +7 -0
  811. wechat_sdk_python-0.1.0/src/store/models/supplier/delivery/__init__.py +0 -0
  812. wechat_sdk_python-0.1.0/src/store/models/supplier/delivery/address.py +6 -0
  813. wechat_sdk_python-0.1.0/src/store/models/supplier/delivery/electronic.py +560 -0
  814. wechat_sdk_python-0.1.0/src/store/models/supplier/delivery/shipping.py +22 -0
  815. wechat_sdk_python-0.1.0/src/store/models/supplier/dropship/__init__.py +0 -0
  816. wechat_sdk_python-0.1.0/src/store/models/supplier/dropship/dropship_order.py +298 -0
  817. wechat_sdk_python-0.1.0/src/store/models/supplier/dropship/dropship_relation.py +48 -0
  818. wechat_sdk_python-0.1.0/src/store/models/supplier/supply/__init__.py +0 -0
  819. wechat_sdk_python-0.1.0/src/store/models/supplier/supply/_shared.py +43 -0
  820. wechat_sdk_python-0.1.0/src/store/models/supplier/supply/freight_template.py +13 -0
  821. wechat_sdk_python-0.1.0/src/store/models/supplier/supply/supply_category.py +491 -0
  822. wechat_sdk_python-0.1.0/src/store/models/supplier/supply/supply_order.py +373 -0
  823. wechat_sdk_python-0.1.0/src/store/models/supplier/supply/supply_product.py +646 -0
  824. wechat_sdk_python-0.1.0/src/store/models/supplier/supply/supply_product_stock.py +6 -0
  825. wechat_sdk_python-0.1.0/src/store/models/talent/__init__.py +0 -0
  826. wechat_sdk_python-0.1.0/src/store/models/talent/basics.py +7 -0
  827. wechat_sdk_python-0.1.0/src/store/models/talent/order.py +122 -0
  828. wechat_sdk_python-0.1.0/src/store/models/talent/window.py +81 -0
  829. wechat_sdk_python-0.1.0/src/store/response_decoder.py +15 -0
  830. wechat_sdk_python-0.1.0/src/store/result_processor.py +5 -0
  831. wechat_sdk_python-0.1.0/src/work/__init__.py +1 -0
  832. wechat_sdk_python-0.1.0/src/work/api/__init__.py +7 -0
  833. wechat_sdk_python-0.1.0/src/work/api/contact.py +7 -0
  834. wechat_sdk_python-0.1.0/src/work/api/message.py +7 -0
  835. wechat_sdk_python-0.1.0/src/work/client.py +113 -0
  836. wechat_sdk_python-0.1.0/src/work/crypto.py +4 -0
  837. wechat_sdk_python-0.1.0/src/work/exceptions/__init__.py +29 -0
  838. wechat_sdk_python-0.1.0/src/work/models/__init__.py +0 -0
  839. wechat_sdk_python-0.1.0/src/work/models/contact.py +1 -0
  840. wechat_sdk_python-0.1.0/src/work/models/message.py +1 -0
  841. wechat_sdk_python-0.1.0/src/work/response_decoder.py +5 -0
  842. wechat_sdk_python-0.1.0/src/work/result_processor.py +5 -0
  843. wechat_sdk_python-0.1.0/tests/account_contracts.py +175 -0
  844. wechat_sdk_python-0.1.0/tests/fixtures/channels_routes.jsonl +49 -0
  845. wechat_sdk_python-0.1.0/tests/fixtures/miniapp_events.jsonl +32 -0
  846. wechat_sdk_python-0.1.0/tests/fixtures/miniapp_routes.jsonl +437 -0
  847. wechat_sdk_python-0.1.0/tests/fixtures/pay_routes.jsonl +123 -0
  848. wechat_sdk_python-0.1.0/tests/fixtures/pay_v2_responses.json +96 -0
  849. wechat_sdk_python-0.1.0/tests/fixtures/service_routes.txt +215 -0
  850. wechat_sdk_python-0.1.0/tests/fixtures/store_routes.jsonl +459 -0
  851. wechat_sdk_python-0.1.0/tests/fixtures/subscription_routes.txt +136 -0
  852. wechat_sdk_python-0.1.0/tests/test_account_token.py +144 -0
  853. wechat_sdk_python-0.1.0/tests/test_aipay.py +90 -0
  854. wechat_sdk_python-0.1.0/tests/test_channels.py +300 -0
  855. wechat_sdk_python-0.1.0/tests/test_client.py +298 -0
  856. wechat_sdk_python-0.1.0/tests/test_core.py +143 -0
  857. wechat_sdk_python-0.1.0/tests/test_miniapp.py +573 -0
  858. wechat_sdk_python-0.1.0/tests/test_miniapp_security.py +209 -0
  859. wechat_sdk_python-0.1.0/tests/test_module_exceptions.py +283 -0
  860. wechat_sdk_python-0.1.0/tests/test_official_account.py +378 -0
  861. wechat_sdk_python-0.1.0/tests/test_official_account_content.py +344 -0
  862. wechat_sdk_python-0.1.0/tests/test_pay.py +184 -0
  863. wechat_sdk_python-0.1.0/tests/test_pay_protocols.py +535 -0
  864. wechat_sdk_python-0.1.0/tests/test_pay_resources.py +985 -0
  865. wechat_sdk_python-0.1.0/tests/test_request_constraints.py +102 -0
  866. wechat_sdk_python-0.1.0/tests/test_response_types.py +279 -0
  867. wechat_sdk_python-0.1.0/tests/test_store.py +655 -0
  868. wechat_sdk_python-0.1.0/uv.lock +1022 -0
  869. wechat_sdk_python-0.1.0/wechat_sdk_python.egg-info/PKG-INFO +250 -0
  870. wechat_sdk_python-0.1.0/wechat_sdk_python.egg-info/SOURCES.txt +874 -0
  871. wechat_sdk_python-0.1.0/wechat_sdk_python.egg-info/dependency_links.txt +1 -0
  872. wechat_sdk_python-0.1.0/wechat_sdk_python.egg-info/requires.txt +4 -0
  873. wechat_sdk_python-0.1.0/wechat_sdk_python.egg-info/top_level.txt +1 -0
  874. wechat_sdk_python-0.0.1/PKG-INFO +0 -91
  875. wechat_sdk_python-0.0.1/README.md +0 -51
  876. wechat_sdk_python-0.0.1/src/wechat_py/__init__.py +0 -6
  877. wechat_sdk_python-0.0.1/src/wechat_py/client.py +0 -58
  878. wechat_sdk_python-0.0.1/src/wechat_py/exceptions.py +0 -18
  879. wechat_sdk_python-0.0.1/tests/test_client.py +0 -60
  880. wechat_sdk_python-0.0.1/uv.lock +0 -333
  881. {wechat_sdk_python-0.0.1 → wechat_sdk_python-0.1.0}/.gitignore +0 -0
  882. {wechat_sdk_python-0.0.1 → wechat_sdk_python-0.1.0}/.python-version +0 -0
  883. {wechat_sdk_python-0.0.1 → wechat_sdk_python-0.1.0}/LICENSE +0 -0
@@ -0,0 +1,4 @@
1
+ include .gitignore .python-version uv.lock
2
+ recursive-include docs *.md
3
+ recursive-include examples *.py *.md
4
+ recursive-include tests *.py *.json *.jsonl *.txt
@@ -0,0 +1,250 @@
1
+ Metadata-Version: 2.4
2
+ Name: wechat-sdk-python
3
+ Version: 0.1.0
4
+ Summary: A Python SDK foundation for WeChat APIs
5
+ Author: TiyeeJiang
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 TiyeeJiang
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/tiyee/wechat-sdk-python
29
+ Project-URL: Repository, https://github.com/tiyee/wechat-sdk-python
30
+ Project-URL: Issues, https://github.com/tiyee/wechat-sdk-python/issues
31
+ Keywords: wechat,weixin,sdk,api
32
+ Classifier: Development Status :: 2 - Pre-Alpha
33
+ Classifier: Intended Audience :: Developers
34
+ Classifier: Programming Language :: Python :: 3
35
+ Classifier: Programming Language :: Python :: 3.9
36
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
37
+ Requires-Python: >=3.9
38
+ Description-Content-Type: text/markdown
39
+ License-File: LICENSE
40
+ Requires-Dist: httpx<1,>=0.27
41
+ Requires-Dist: cryptography<46,>=41
42
+ Requires-Dist: typing-extensions>=4.6
43
+ Requires-Dist: pydantic<3,>=2.11
44
+ Dynamic: license-file
45
+
46
+ # wechat-sdk-python
47
+
48
+ 用于在 Python 服务端调用微信 API 的同步 SDK,支持 Python 3.9 及以上版本。
49
+
50
+ ## 安装
51
+
52
+ 使用 pip 从 PyPI 安装:
53
+
54
+ ```bash
55
+ python -m pip install wechat-sdk-python
56
+ ```
57
+
58
+ ## 选择客户端
59
+
60
+ | 微信业务 | 导入方式 |
61
+ | --- | --- |
62
+ | 小程序 | `from wechat_sdk.miniapp import MiniAppClient` |
63
+ | 公众号(订阅号、服务号) | `from wechat_sdk.official_account import OfficialAccountClient` |
64
+ | 微信小店 | `from wechat_sdk.store import StoreClient` |
65
+ | 视频号 | `from wechat_sdk.channels import ChannelsClient` |
66
+ | 微信开放平台 | `from wechat_sdk.open_platform import OpenPlatformClient` |
67
+ | 企业微信 | `from wechat_sdk.work.client import WorkClient` |
68
+ | 微信支付 | `from wechat_sdk.pay import PayV2Client, PayV3Client` |
69
+ | x402 支付 | `from wechat_sdk.pay.aipay import X402Client` |
70
+
71
+ 每个客户端对应一个调用账号。小程序、公众号、视频号和微信小店使用该账号的 `app_id` 和 `secret_id` 初始化。首次调用需要全局凭据的接口时,客户端自动获取并缓存 `access_token`,在临近到期时续取。需要读取当前凭据时,调用 `client.get_access_token()`。
72
+
73
+ ## 调用尚未封装的接口
74
+
75
+ 如果 SDK 尚未封装某个微信接口,可以直接调用对应业务客户端的 `request()` 方法。按微信接口文档传入 HTTP 方法和相对路径,用 `params=` 传查询参数,用 `json=` 传 JSON 请求体。
76
+
77
+ 下面以公众号查询用户标签为例,演示如何直接发起请求。将该公众号下用户的 OpenID 写入环境变量 `WECHAT_OPENID`。客户端会自动附加公众号的 `access_token`,检查微信错误码后,再将响应解析为 `UserTagsResponse`。
78
+
79
+ ```python
80
+ from os import environ
81
+
82
+ from wechat_sdk.core.models import BaseResponse
83
+ from wechat_sdk.core.responses import response_parser
84
+ from wechat_sdk.official_account import OfficialAccountClient
85
+
86
+
87
+ class UserTagsResponse(BaseResponse):
88
+ tagid_list: list[int]
89
+
90
+
91
+ with OfficialAccountClient(
92
+ app_id=environ["WECHAT_APP_ID"], secret_id=environ["WECHAT_APP_SECRET"]
93
+ ) as client:
94
+ result = client.request(
95
+ "POST",
96
+ "/cgi-bin/tags/getidlist",
97
+ json={"openid": environ["WECHAT_OPENID"]},
98
+ result_processor=response_parser(UserTagsResponse),
99
+ )
100
+ print(result.tagid_list)
101
+ ```
102
+
103
+ ## 小程序
104
+
105
+ ### 登录
106
+
107
+ 小程序前端调用 `wx.login()` 并将取得的临时登录凭证发给服务端。下面用环境变量 `WECHAT_LOGIN_CODE` 传入这次请求的凭证。
108
+
109
+ ```python
110
+ from os import environ
111
+
112
+ from wechat_sdk.miniapp import MiniAppClient
113
+
114
+ with MiniAppClient(
115
+ app_id=environ["WECHAT_APP_ID"], secret_id=environ["WECHAT_APP_SECRET"]
116
+ ) as client:
117
+ session = client.user_login.code2session(environ["WECHAT_LOGIN_CODE"])
118
+ openid = session.openid
119
+ session_key = session.session_key
120
+ ```
121
+
122
+ `openid` 标识该用户在当前小程序下的身份,`session_key` 供服务端校验用户会话。登录凭证只能使用一次。如果请求超时,请让前端重新调用 `wx.login()` 获取凭证。
123
+
124
+ ### 支付、配送和回调
125
+
126
+ 虚拟支付使用客户端的 `app_key`,B2B 账务使用 `b2b_app_key`,即时配送使用 `delivery_secrets={shopid: 配送密钥}`。接口需要用户态签名时,传入该用户的 `session_key`。
127
+
128
+ 接收小程序事件时,在客户端配置消息推送的 `callback_token`。将原始请求体以及 URL 中的时间戳、随机串和签名交给 `client.callback.receive`,处理后用 `client.callback.reply` 应答。安全模式还需配置 `encoding_aes_key`。[小程序调用与回调示例](examples/miniapp.py)
129
+
130
+ ## 公众号
131
+
132
+ 订阅号和服务号均使用 `OfficialAccountClient`。可通过方法文档查看适用的账号类型和认证条件,例如 `help(client.custommenu.createcustommenu)`。
133
+
134
+ ### 发送模板消息
135
+
136
+ 已认证的服务号选用模板后,将接收用户的 OpenID、模板 ID 和模板数据传给 `sendtemplatemessage`。请将 `thing1` 换成所选模板的字段名。
137
+
138
+ ```python
139
+ from os import environ
140
+
141
+ from wechat_sdk.official_account import OfficialAccountClient
142
+
143
+ with OfficialAccountClient(
144
+ app_id=environ["WECHAT_APP_ID"], secret_id=environ["WECHAT_APP_SECRET"]
145
+ ) as client:
146
+ result = client.notify.template.sendtemplatemessage(
147
+ touser=environ["WECHAT_OPENID"],
148
+ template_id=environ["WECHAT_TEMPLATE_ID"],
149
+ data={"thing1": {"value": "取件通知"}},
150
+ )
151
+ print(result.msgid)
152
+ ```
153
+
154
+ ### 素材与网页授权
155
+
156
+ 使用 `client.notify.message.uploadimage(media)` 上传图文正文图片,可传入图片的文件路径或二进制流,图片须为小于 1 MiB 的 JPEG 或 PNG。从成功上传的响应中读取 `url`,即可在正文中引用图片。
157
+
158
+ 通过 `client.webdev.access` 换取或刷新网页授权凭据后,客户端按 AppID 和 OpenID 保存用户凭据。调用 `client.webdev.access.snsuserinfo(openid)` 可读取该用户的资料。[草稿发布、用户分页和数据查询示例](examples/official_account.py)
159
+
160
+ ## 微信小店接口
161
+
162
+ `StoreClient` 提供商家 `shop`、达人 `talent`、带货机构 `leagueheadsupplier` 和供货商 `supplier` 四个入口。每个客户端绑定一个调用账号,角色入口共用该账号的凭据。[接口清单和官方详情页](docs/store-api-inventory.md)
163
+
164
+ 下面用达人账号查询一笔佣金单。列表里的 `order_id`、`sku_id` 和可选的 `special_id` 都按微信返回的原值传入详情接口。
165
+
166
+ ```python
167
+ from os import environ
168
+
169
+ from wechat_sdk.store import StoreClient
170
+
171
+ with StoreClient(
172
+ app_id=environ["WECHAT_TALENT_APP_ID"],
173
+ secret_id=environ["WECHAT_TALENT_APP_SECRET"],
174
+ ) as client:
175
+ orders = client.talent.order
176
+ page = orders.get_order_list(order_id=environ["WECHAT_ORDER_ID"], page_size=1)
177
+ if page.order_list:
178
+ item = page.order_list[0]
179
+ if item.order_id and item.sku_id:
180
+ detail = orders.get_order_detail(
181
+ order_id=item.order_id, sku_id=item.sku_id, special_id=item.special_id
182
+ )
183
+ ```
184
+
185
+ ## 微信支付
186
+
187
+ 调用微信支付 API v2 时使用 `PayV2Client`,调用 API v3 时使用 `PayV3Client`。
188
+
189
+ 普通商户可通过 V3 客户端创建 Native 订单,取得供用户扫码的 `code_url`。订单金额以分为单位。
190
+
191
+ ```python
192
+ from os import environ
193
+
194
+ from wechat_sdk.pay import PayV3Client
195
+ from wechat_sdk.pay.sign import MerchantCredential, PlatformCredential
196
+
197
+ merchant = MerchantCredential.from_pem_files(
198
+ "1230000109", "apiclient_cert.pem", "apiclient_key.pem"
199
+ )
200
+ platform = PlatformCredential.from_public_key_file("PUB_KEY_ID_...", "pub_key.pem")
201
+ with PayV3Client(app_id="wx...", merchant=merchant, platforms=[platform]) as client:
202
+ transactions = client.transactions
203
+ order = transactions.native.prepay(
204
+ description="商品",
205
+ out_trade_no=environ["WECHAT_ORDER_NO"],
206
+ notify_url="https://merchant.example/pay/notify",
207
+ amount={"total": 125},
208
+ )
209
+ code_url = order.code_url
210
+ ```
211
+
212
+ 用 `code_url` 生成二维码,供用户扫码支付。用原商户订单号调用 `client.transactions.get_order(out_trade_no=...)` 可查询支付状态。下单请求超时后也应先用原单号查单。
213
+
214
+ 商户可同时配置多个可信的平台公钥或证书,客户端按响应头选择公钥验签。接口接收明文敏感字段,默认使用列表中的首个凭据加密,也可用 `wechatpay_serial` 指定加密凭据。[合单、退款、账单下载和支付回调示例](examples/pay.md)
215
+
216
+ ## 返回值与异常
217
+
218
+ 结构化响应可通过属性读取,也可用 `result.model_dump(exclude_unset=True)` 导出微信实际返回的字段。声明返回 `StatusResponse` 的操作接口在成功时返回该对象。下载小程序码、素材等文件时可直接读取返回的 `bytes`。
219
+
220
+ 微信拒绝业务请求时,客户端直接抛出当前模块的异常,即使 HTTP 状态为 200。比如小程序登录失败可捕获 `wechat_sdk.miniapp.exceptions.MiniAppAPIError`,支付 V3 请求失败可捕获 `wechat_sdk.pay.exceptions.PayAPIError`。两者都提供 `errcode`、`errmsg` 和原始 HTTP 响应 `response`。可从 `wechat_sdk` 导入以下异常类型,或用 `ClientException` 统一捕获客户端异常。
221
+
222
+ | 异常 | 调用方可用的信息和处理方式 |
223
+ | --- | --- |
224
+ | `WeChatBusinessError` | 读取 `exc.errcode` 和 `exc.errmsg`,判断凭据无效、参数错误等业务原因。 |
225
+ | `WeChatNetworkError` | 连接中断或超时时,请求结果可能未知。涉及支付时,先查询交易状态。 |
226
+ | `WeChatSystemError` | 微信系统繁忙、响应格式异常或验签失败时,可读取 `exc.status_code` 和 `exc.message`。 |
227
+
228
+ 入参不符合接口约束,或成功响应缺少模型必填字段时,会抛出 `pydantic.ValidationError`。支持 `max_retries` 的客户端默认不自动重试。启用后,仅允许重复发送的 GET、HEAD 请求会在遇到网络故障时自动重试。
229
+
230
+ ## 凭据与通信加密
231
+
232
+ 小程序、公众号、视频号和微信小店默认在客户端实例内缓存凭据。多个实例需要共用凭据时,可传入共享的 `token_store`。服务商代调用时,将授权方的凭据放入对应账号的凭据存储。
233
+
234
+ 小程序、视频号和微信小店在创建业务 Client 时可通过 `encryption` 配置服务通信加密。下例中的 `aes_key` 为 Base64 解码后的 32 字节密钥,`app_private_key` 和 `platform_public_key` 为 RSA 密钥对象。
235
+
236
+ ```python
237
+ with MiniAppClient(
238
+ app_id=app_id,
239
+ secret_id=app_secret,
240
+ encryption={
241
+ "key_serial": key_serial,
242
+ "key": aes_key,
243
+ "private_key": app_private_key,
244
+ "platform_keys": {platform_serial: platform_public_key},
245
+ },
246
+ ) as client:
247
+ phone = client.user_info.phone_number.getphonenumber(code)
248
+ ```
249
+
250
+ 支持服务通信加密的接口会自动加密请求并签名,收到响应后验签并解密。
@@ -0,0 +1,205 @@
1
+ # wechat-sdk-python
2
+
3
+ 用于在 Python 服务端调用微信 API 的同步 SDK,支持 Python 3.9 及以上版本。
4
+
5
+ ## 安装
6
+
7
+ 使用 pip 从 PyPI 安装:
8
+
9
+ ```bash
10
+ python -m pip install wechat-sdk-python
11
+ ```
12
+
13
+ ## 选择客户端
14
+
15
+ | 微信业务 | 导入方式 |
16
+ | --- | --- |
17
+ | 小程序 | `from wechat_sdk.miniapp import MiniAppClient` |
18
+ | 公众号(订阅号、服务号) | `from wechat_sdk.official_account import OfficialAccountClient` |
19
+ | 微信小店 | `from wechat_sdk.store import StoreClient` |
20
+ | 视频号 | `from wechat_sdk.channels import ChannelsClient` |
21
+ | 微信开放平台 | `from wechat_sdk.open_platform import OpenPlatformClient` |
22
+ | 企业微信 | `from wechat_sdk.work.client import WorkClient` |
23
+ | 微信支付 | `from wechat_sdk.pay import PayV2Client, PayV3Client` |
24
+ | x402 支付 | `from wechat_sdk.pay.aipay import X402Client` |
25
+
26
+ 每个客户端对应一个调用账号。小程序、公众号、视频号和微信小店使用该账号的 `app_id` 和 `secret_id` 初始化。首次调用需要全局凭据的接口时,客户端自动获取并缓存 `access_token`,在临近到期时续取。需要读取当前凭据时,调用 `client.get_access_token()`。
27
+
28
+ ## 调用尚未封装的接口
29
+
30
+ 如果 SDK 尚未封装某个微信接口,可以直接调用对应业务客户端的 `request()` 方法。按微信接口文档传入 HTTP 方法和相对路径,用 `params=` 传查询参数,用 `json=` 传 JSON 请求体。
31
+
32
+ 下面以公众号查询用户标签为例,演示如何直接发起请求。将该公众号下用户的 OpenID 写入环境变量 `WECHAT_OPENID`。客户端会自动附加公众号的 `access_token`,检查微信错误码后,再将响应解析为 `UserTagsResponse`。
33
+
34
+ ```python
35
+ from os import environ
36
+
37
+ from wechat_sdk.core.models import BaseResponse
38
+ from wechat_sdk.core.responses import response_parser
39
+ from wechat_sdk.official_account import OfficialAccountClient
40
+
41
+
42
+ class UserTagsResponse(BaseResponse):
43
+ tagid_list: list[int]
44
+
45
+
46
+ with OfficialAccountClient(
47
+ app_id=environ["WECHAT_APP_ID"], secret_id=environ["WECHAT_APP_SECRET"]
48
+ ) as client:
49
+ result = client.request(
50
+ "POST",
51
+ "/cgi-bin/tags/getidlist",
52
+ json={"openid": environ["WECHAT_OPENID"]},
53
+ result_processor=response_parser(UserTagsResponse),
54
+ )
55
+ print(result.tagid_list)
56
+ ```
57
+
58
+ ## 小程序
59
+
60
+ ### 登录
61
+
62
+ 小程序前端调用 `wx.login()` 并将取得的临时登录凭证发给服务端。下面用环境变量 `WECHAT_LOGIN_CODE` 传入这次请求的凭证。
63
+
64
+ ```python
65
+ from os import environ
66
+
67
+ from wechat_sdk.miniapp import MiniAppClient
68
+
69
+ with MiniAppClient(
70
+ app_id=environ["WECHAT_APP_ID"], secret_id=environ["WECHAT_APP_SECRET"]
71
+ ) as client:
72
+ session = client.user_login.code2session(environ["WECHAT_LOGIN_CODE"])
73
+ openid = session.openid
74
+ session_key = session.session_key
75
+ ```
76
+
77
+ `openid` 标识该用户在当前小程序下的身份,`session_key` 供服务端校验用户会话。登录凭证只能使用一次。如果请求超时,请让前端重新调用 `wx.login()` 获取凭证。
78
+
79
+ ### 支付、配送和回调
80
+
81
+ 虚拟支付使用客户端的 `app_key`,B2B 账务使用 `b2b_app_key`,即时配送使用 `delivery_secrets={shopid: 配送密钥}`。接口需要用户态签名时,传入该用户的 `session_key`。
82
+
83
+ 接收小程序事件时,在客户端配置消息推送的 `callback_token`。将原始请求体以及 URL 中的时间戳、随机串和签名交给 `client.callback.receive`,处理后用 `client.callback.reply` 应答。安全模式还需配置 `encoding_aes_key`。[小程序调用与回调示例](examples/miniapp.py)
84
+
85
+ ## 公众号
86
+
87
+ 订阅号和服务号均使用 `OfficialAccountClient`。可通过方法文档查看适用的账号类型和认证条件,例如 `help(client.custommenu.createcustommenu)`。
88
+
89
+ ### 发送模板消息
90
+
91
+ 已认证的服务号选用模板后,将接收用户的 OpenID、模板 ID 和模板数据传给 `sendtemplatemessage`。请将 `thing1` 换成所选模板的字段名。
92
+
93
+ ```python
94
+ from os import environ
95
+
96
+ from wechat_sdk.official_account import OfficialAccountClient
97
+
98
+ with OfficialAccountClient(
99
+ app_id=environ["WECHAT_APP_ID"], secret_id=environ["WECHAT_APP_SECRET"]
100
+ ) as client:
101
+ result = client.notify.template.sendtemplatemessage(
102
+ touser=environ["WECHAT_OPENID"],
103
+ template_id=environ["WECHAT_TEMPLATE_ID"],
104
+ data={"thing1": {"value": "取件通知"}},
105
+ )
106
+ print(result.msgid)
107
+ ```
108
+
109
+ ### 素材与网页授权
110
+
111
+ 使用 `client.notify.message.uploadimage(media)` 上传图文正文图片,可传入图片的文件路径或二进制流,图片须为小于 1 MiB 的 JPEG 或 PNG。从成功上传的响应中读取 `url`,即可在正文中引用图片。
112
+
113
+ 通过 `client.webdev.access` 换取或刷新网页授权凭据后,客户端按 AppID 和 OpenID 保存用户凭据。调用 `client.webdev.access.snsuserinfo(openid)` 可读取该用户的资料。[草稿发布、用户分页和数据查询示例](examples/official_account.py)
114
+
115
+ ## 微信小店接口
116
+
117
+ `StoreClient` 提供商家 `shop`、达人 `talent`、带货机构 `leagueheadsupplier` 和供货商 `supplier` 四个入口。每个客户端绑定一个调用账号,角色入口共用该账号的凭据。[接口清单和官方详情页](docs/store-api-inventory.md)
118
+
119
+ 下面用达人账号查询一笔佣金单。列表里的 `order_id`、`sku_id` 和可选的 `special_id` 都按微信返回的原值传入详情接口。
120
+
121
+ ```python
122
+ from os import environ
123
+
124
+ from wechat_sdk.store import StoreClient
125
+
126
+ with StoreClient(
127
+ app_id=environ["WECHAT_TALENT_APP_ID"],
128
+ secret_id=environ["WECHAT_TALENT_APP_SECRET"],
129
+ ) as client:
130
+ orders = client.talent.order
131
+ page = orders.get_order_list(order_id=environ["WECHAT_ORDER_ID"], page_size=1)
132
+ if page.order_list:
133
+ item = page.order_list[0]
134
+ if item.order_id and item.sku_id:
135
+ detail = orders.get_order_detail(
136
+ order_id=item.order_id, sku_id=item.sku_id, special_id=item.special_id
137
+ )
138
+ ```
139
+
140
+ ## 微信支付
141
+
142
+ 调用微信支付 API v2 时使用 `PayV2Client`,调用 API v3 时使用 `PayV3Client`。
143
+
144
+ 普通商户可通过 V3 客户端创建 Native 订单,取得供用户扫码的 `code_url`。订单金额以分为单位。
145
+
146
+ ```python
147
+ from os import environ
148
+
149
+ from wechat_sdk.pay import PayV3Client
150
+ from wechat_sdk.pay.sign import MerchantCredential, PlatformCredential
151
+
152
+ merchant = MerchantCredential.from_pem_files(
153
+ "1230000109", "apiclient_cert.pem", "apiclient_key.pem"
154
+ )
155
+ platform = PlatformCredential.from_public_key_file("PUB_KEY_ID_...", "pub_key.pem")
156
+ with PayV3Client(app_id="wx...", merchant=merchant, platforms=[platform]) as client:
157
+ transactions = client.transactions
158
+ order = transactions.native.prepay(
159
+ description="商品",
160
+ out_trade_no=environ["WECHAT_ORDER_NO"],
161
+ notify_url="https://merchant.example/pay/notify",
162
+ amount={"total": 125},
163
+ )
164
+ code_url = order.code_url
165
+ ```
166
+
167
+ 用 `code_url` 生成二维码,供用户扫码支付。用原商户订单号调用 `client.transactions.get_order(out_trade_no=...)` 可查询支付状态。下单请求超时后也应先用原单号查单。
168
+
169
+ 商户可同时配置多个可信的平台公钥或证书,客户端按响应头选择公钥验签。接口接收明文敏感字段,默认使用列表中的首个凭据加密,也可用 `wechatpay_serial` 指定加密凭据。[合单、退款、账单下载和支付回调示例](examples/pay.md)
170
+
171
+ ## 返回值与异常
172
+
173
+ 结构化响应可通过属性读取,也可用 `result.model_dump(exclude_unset=True)` 导出微信实际返回的字段。声明返回 `StatusResponse` 的操作接口在成功时返回该对象。下载小程序码、素材等文件时可直接读取返回的 `bytes`。
174
+
175
+ 微信拒绝业务请求时,客户端直接抛出当前模块的异常,即使 HTTP 状态为 200。比如小程序登录失败可捕获 `wechat_sdk.miniapp.exceptions.MiniAppAPIError`,支付 V3 请求失败可捕获 `wechat_sdk.pay.exceptions.PayAPIError`。两者都提供 `errcode`、`errmsg` 和原始 HTTP 响应 `response`。可从 `wechat_sdk` 导入以下异常类型,或用 `ClientException` 统一捕获客户端异常。
176
+
177
+ | 异常 | 调用方可用的信息和处理方式 |
178
+ | --- | --- |
179
+ | `WeChatBusinessError` | 读取 `exc.errcode` 和 `exc.errmsg`,判断凭据无效、参数错误等业务原因。 |
180
+ | `WeChatNetworkError` | 连接中断或超时时,请求结果可能未知。涉及支付时,先查询交易状态。 |
181
+ | `WeChatSystemError` | 微信系统繁忙、响应格式异常或验签失败时,可读取 `exc.status_code` 和 `exc.message`。 |
182
+
183
+ 入参不符合接口约束,或成功响应缺少模型必填字段时,会抛出 `pydantic.ValidationError`。支持 `max_retries` 的客户端默认不自动重试。启用后,仅允许重复发送的 GET、HEAD 请求会在遇到网络故障时自动重试。
184
+
185
+ ## 凭据与通信加密
186
+
187
+ 小程序、公众号、视频号和微信小店默认在客户端实例内缓存凭据。多个实例需要共用凭据时,可传入共享的 `token_store`。服务商代调用时,将授权方的凭据放入对应账号的凭据存储。
188
+
189
+ 小程序、视频号和微信小店在创建业务 Client 时可通过 `encryption` 配置服务通信加密。下例中的 `aes_key` 为 Base64 解码后的 32 字节密钥,`app_private_key` 和 `platform_public_key` 为 RSA 密钥对象。
190
+
191
+ ```python
192
+ with MiniAppClient(
193
+ app_id=app_id,
194
+ secret_id=app_secret,
195
+ encryption={
196
+ "key_serial": key_serial,
197
+ "key": aes_key,
198
+ "private_key": app_private_key,
199
+ "platform_keys": {platform_serial: platform_public_key},
200
+ },
201
+ ) as client:
202
+ phone = client.user_info.phone_number.getphonenumber(code)
203
+ ```
204
+
205
+ 支持服务通信加密的接口会自动加密请求并签名,收到响应后验签并解密。
@@ -0,0 +1,74 @@
1
+ # 微信 SDK 接口审查
2
+
3
+ 2026-11-28 核查了 1,443 个公开入口和调用变体。下表记录修复后的行为,后文保留原审查时的重现结果。每个入口的官方详情页见[逐接口明细](api-audit-matrix-2026-11-28.md)。
4
+
5
+ ## 修复结果
6
+
7
+ | 编号 | 公开接口现在的行为 |
8
+ | --- | --- |
9
+ | A1 | 微信支付分账动账通知验签、解密后,按 `receiver.type` 和 `receiver.account` 校验当前接收商户。覆盖出资商户与接收商户不同、接收方缺失及错投通知。 |
10
+ | A2 | 18 个 B2B 账务入口按实际发送的请求体签名,9 个配送入口按配送账号签名,3 个用户会话入口按本次会话密钥签名。旧的预签名调用仍可使用。[Client 配置](../README.md#L130) · [官方 B2B 签名示例](https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/B2b_store_assistant.html) |
11
+ | A3 | 公众号素材、小程序账单与云存储、短剧媒资和日志、支付代金券明细等接口会检查返回链接的 HTTPS 域名,包括列表中的各条记录。交易、资金、分账账单及转账电子回单也在返回链接时校验。异步任务允许尚未生成的空链接。独立存储或 CDN 主机可按资源配置。[域名配置](../README.md#L132) |
12
+ | A4–A7 | 达人橱窗校验两种翻页方式互斥及页码与页大小的乘积上限,详情接口接受列表返回的整数 ID。客服子商户查询校验两个标识恰好提供一个。投诉和营销图片上传在签名前校验文件名不超过 128 个字符。 |
13
+ | A8 | 短剧媒资详情按 JSON 解析,业务回包须有 `media_info`。二进制内容和缺少媒资详情的业务回包会触发异常。 |
14
+ | D1–D2 | 插件列表可以省略插件 ID,插件申请须提供原因和插件 ID。盲盒款式回传兼容字段表中的对象和示例中的数组,按传入形态发送。 |
15
+ | D3–D4 | 支付分三个接口将单个后付费项目解析为单元素列表。四个 V2 接口允许官方成功示例中缺失的特定字段,缺失值保留为 `None`,逐笔退款金额等原始字段保留。 |
16
+
17
+ 修复后全量离线测试 **1,784 项通过**,Ruff 检查通过。验证使用模拟 HTTP、签名支付回包、加密通知和微信文档示例。真实账号权限、实际下发的全部 CDN 域名、盲盒请求在生产环境接受的形态仍需有权限的账号联调。
18
+
19
+ ## 覆盖范围
20
+
21
+ | 核查对象 | 数量 | 核对结果 |
22
+ | --- | ---: | --- |
23
+ | 小程序、订阅号、服务号、视频号、小店四种角色 | 437、135、209、49、459 个入口,共 1,289 个 | 从当前官方 HTML 导航反查,每个文档入口都能定位到公开 SDK 方法;分组别名分别计算 |
24
+ | 源码中带接口说明的具体方法 | 1,249 个 | 检查 docstring 首行、空行及用途句。对官方详情明确列出英文名的页面,未检出大小写或下划线差异。支付文档常以 HTTP 方法和路径标识操作 |
25
+ | 公开入口与调用变体主表 | 1,443 行 | 同一方法按账号角色、不同订单号或支付渠道可出现多行。含支付 V2、V3、x402、前端辅助入口、通知及 4 个委托取凭据的 Client 方法 |
26
+ | 小程序事件 | 32 页 | 核对文档和事件名称,回放 32 个事件样例,明细中列出 SDK 应答名称 |
27
+ | 普通商户支付官方目录 | 28 个产品栏目的 271 个不同详情页 | 从官方目录反查服务端路由、回调、动态下载和前端调起。开放平台、企业微信的业务资源类当前是扩展壳,缺少可逐项对照的公开业务方法 |
28
+
29
+ 账号接口按资源上实际绑定的方法检查。字段检查覆盖可解析的顶层参数表、公开签名和能识别的请求/返回模型。明细另记有 JSON 样例的入口及校验差异;二进制、XML、委托签名、多个请求模型和没有样例的分支用相应协议或源码核查。既有离线测试 **1,726 项通过**,Ruff 检查通过。以下重现使用本地测试凭据及模拟 HTTP 响应。账号权限、文档矛盾处的线上接受范围、每个嵌套字段的全部组合仍有待实测。[小程序官方导航](https://developers.weixin.qq.com/miniprogram/dev/server/) · [服务号官方导航](https://developers.weixin.qq.com/doc/service/api/) · [订阅号官方导航](https://developers.weixin.qq.com/doc/subscription/api/) · [视频号官方导航](https://developers.weixin.qq.com/doc/channels/api/) · [小店商家官方导航](https://developers.weixin.qq.com/doc/store/shop/API/) · [微信支付普通商户索引](https://pay.weixin.qq.com/doc/v3/merchant/llms.txt)
30
+
31
+ ## 修复前的重现结果
32
+
33
+ ### A1 · P1 · 分账接收方被当成出资商户校验
34
+
35
+ 微信把动账通知投递给分账接收方。解密数据的顶层 `mchid` 表示出资商户,商户类型接收方的账号在 `receiver.account`。SDK 将顶层 `mchid` 与当前 Client 的商户号比较。用出资商户 `456`、接收商户和 Client 均为 `123` 的已签名、已加密通知回放,公开的 `notifications.parse(..., scenario="profitsharing")` 抛出 `PayCryptoError: Unexpected notification merchant`。现有正例只给出与 Client 相同的 `mchid`,连 `receiver` 都没有。修复应按通知接收角色验证 `receiver.type` 和 `receiver.account`,覆盖两个商户号不同的情况。[场景规则](../src/pay/notifications.py#L55) · [商户检查](../src/pay/notifications.py#L138) · [现有测试数据](../tests/test_pay_resources.py#L484) · [微信支付分账动账通知](https://pay.weixin.qq.com/doc/v3/merchant/4012289679.md)
36
+
37
+ ### A2 · P2 · 30 个小程序入口仍要求调用方自行签名
38
+
39
+ B2B 账务有 18 个方法要求传入预先计算的 `pay_sig`,即时配送商户接口有 9 个要求 `delivery_sign`,会话校验、重置和获取用户加密密钥这 3 个入口要求 `signature`。调用方需要自行持有签名逻辑。以会话校验为例,传入 `openid` 和当前用户的 `session_key` 会在 SDK 入口得到“缺少 signature、无法识别 session_key”。三类密钥有不同归属。可以保留现有预签名调用,同时让 Client 针对 B2B 商户、配送账号和本次用户会话分别计算签名。[仓库约定](../AGENTS.md#L19) · [B2B 实现](../src/miniapp/api/b2b/bill.py#L63) · [即时配送实现](../src/miniapp/api/immediate_delivery/deliver_by_business.py#L40) · [会话实现](../src/miniapp/api/user_login.py#L23) · [B2B 密钥说明](https://developers.weixin.qq.com/miniprogram/dev/server/API/B2b/bill/api_addprofitsharingaccount.md) · [配送签名说明](https://developers.weixin.qq.com/miniprogram/dev/server/API/immediate-delivery/deliver-by-business/api_abnormalconfirm.md) · [会话签名说明](https://developers.weixin.qq.com/miniprogram/dev/server/API/user-login/api_checksessionkey.md)
40
+
41
+ ### A3 · P2 · 部分下载地址直接随成功模型返回
42
+
43
+ 公众号 `getMedia` 收到含 `video_url` 的 JSON 时只解析字符串。以模拟响应从公开入口调用,`https://example.invalid/test` 原样出现在返回对象中。小程序虚拟支付订单文件、云存储批量下载链接以及微信支付代金券批次退款/核销明细也有相同的域名校验缺口。影响在于业务调用方会收到未经资源 API 校验的下载地址。小店已有按具体资源检查下载地址的实现。补齐时应按产品确认允许的域名,并保留任务未完成时合法的空地址。[仓库约定](../AGENTS.md#L20) · [公众号素材](../src/official_account/api/material/temporary.py#L70) · [小程序订单文件](../src/miniapp/api/virtual_payment.py#L866) · [云存储](../src/miniapp/api/cloudbase/storage.py#L80) · [代金券明细](../src/pay/api/marketing/favor/stocks.py#L249) · [小店已有的校验](../src/store/api/_api.py#L66) · [微信素材返回说明](https://developers.weixin.qq.com/doc/service/api/material/temporary/api_getmedia.md)
44
+
45
+ ### A4 · P2 · 达人橱窗分页可发出微信明确拒绝的组合
46
+
47
+ `get_product_list(page_size=1, page_index=1, last_buffer="x")` 实际同时发送两种翻页参数;模型也允许 `page_size=500, page_index=21`。官方要求两种翻页方式互斥,并限制 `page_size × page_index ≤ 10000`。SDK 已校验单页上限和起始页码,还需要在同一个请求模型中校验这两条跨字段规则。[入口](../src/store/api/talent/window.py#L19) · [请求模型](../src/store/models/talent/window.py#L58) · [微信翻页规则和错误码](https://developers.weixin.qq.com/doc/store/talent/openapi/window/api_get_product_list.md)
48
+
49
+ ### A5 · P2 · 客服子商户查询允许缺少查询条件
50
+
51
+ `getbusiness()` 实际向 `/cgi-bin/business/get` 发送 `{}`。同时传入 `business_id` 和 `account_name` 也会通过本地校验。官方要求两个标识选填一个。应在请求模型中校验,保证漏填或同时填写时能在发送前定位错误。[入口](../src/miniapp/api/kf_mgnt/kf_management.py#L24) · [请求模型](../src/miniapp/models/kf_mgnt/kf_management.py#L39) · [微信客服子商户查询](https://developers.weixin.qq.com/miniprogram/dev/server/API/kf-mgnt/kf-management/api_getbusiness.md)
52
+
53
+ ### A6 · P2 · 达人橱窗列表返回的商品 ID 不能直接用于详情查询
54
+
55
+ 列表将 `products[].product_id` 解析为 Python `int`;官方列表示例甚至将该 ID 写成带引号的字符串,进入模型后同样会变成整数。详情方法严格要求 `str`。回放列表再将 `products[0].product_id` 原样交给详情方法,得到 `ValidationError(string_type)`。官方明确说明该详情参数来自列表。可以在详情请求边界接受列表返回的整数并转成文档要求的 JSON 字符串,保留已有字符串调用。[列表模型](../src/store/models/talent/window.py#L9) · [详情入口](../src/store/api/talent/window.py#L51) · [微信列表](https://developers.weixin.qq.com/doc/store/talent/openapi/window/api_get_product_list.md) · [微信详情](https://developers.weixin.qq.com/doc/store/talent/openapi/window/api_get_product_detail.md)
56
+
57
+ ### A7 · P3 · 两个微信支付图片上传接口没有限制文件名长度
58
+
59
+ 投诉图片和营销图片共用上传逻辑。两份文档都将 `meta.filename` 限制为 128 个字符;本地仅检查后缀和文件大小,元数据模型允许超过 128 字符的文件名进入签名和上传流程。可以在共用模型上加长度约束,两个入口即可得到一致行为。[上传逻辑](../src/pay/client.py#L245) · [元数据模型](../src/pay/models/merchant_service/images.py#L7) · [微信投诉图片](https://pay.weixin.qq.com/doc/v3/merchant/4012467250.md) · [微信营销图片](https://pay.weixin.qq.com/doc/v3/merchant/4012557233.md)
60
+
61
+ ### A8 · P2 · 查询短剧媒资详情时,非结构化数据可被当成成功结果
62
+
63
+ 短剧 `getMedia` 的官方成功响应是包含 `media_info` 的 JSON,视频和图片通过其中的临时链接提供。此方法选用了文件下载解码器。实测 HTTP 200、`application/octet-stream` 且内容为 `not-json` 时,调用方收到成功返回的 `bytes`。应对该路径按结构化详情处理,使损坏的响应进入错误处理流程;公众号同名素材下载接口有不同的协议。[短剧实现](../src/miniapp/api/minidrama/vod_media.py#L65) · [通用媒体解码器](../src/core/response_decoder.py#L36) · [微信短剧媒资详情](https://developers.weixin.qq.com/miniprogram/dev/server/API/minidrama/vod_media/api_getmedia.md)
64
+
65
+ ## 原审查记录中的官方字段表与示例差异
66
+
67
+ | 编号 | 接口 | 能确认的结果 | 处理依据 |
68
+ | --- | --- | --- | --- |
69
+ | D1 | 小程序插件管理 | `manageplugin(action="list")` 在发请求前因缺少 `plugin_appid` 失败。官方“获取插件列表”成功示例只有 `action`,字段表却把插件 ID 标为必填。该方法还允许 `apply` 缺少文档明确要求的 `reason` | 按 action 校验。列表可覆盖官方的无 ID 用例;申请时检查原因。[实现](../src/miniapp/api/plugin_management.py#L19) · [官方四个操作示例](https://developers.weixin.qq.com/miniprogram/dev/server/API/plugin-management/api_manageplugin.md) |
70
+ | D2 | 小店盲盒款式回传 | `setblindboxitem` 将 `item_list` 限定为字典,传列表得到 `ValidationError(dict_type)`。官方请求示例用数组,字段表标为 object | 在有权限的小店账号确认实际接收形态,补充多条款式用例。[实现](../src/store/api/shop/channels_shop_order.py#L852) · [官方明细和示例](https://developers.weixin.qq.com/doc/store/shop/API/channels-shop-order/api_setblindboxitem.md) |
71
+ | D3 | 支付分查单、修改金额、同步订单 | 三个官方成功应答示例的 `post_payments` 都是单个对象,SDK 解析均报 `list_type`。同页字段表写的是数组 | 需用实际成功应答决定是否兼容单对象。任何兼容处理均应给调用方提供一致的返回形态。[查单](https://pay.weixin.qq.com/doc/v3/merchant/4012587902.md) · [修改金额](https://pay.weixin.qq.com/doc/v3/merchant/4012587957.md) · [同步订单](https://pay.weixin.qq.com/doc/v3/merchant/4012587962.md) |
72
+ | D4 | 支付 V2 付款码支付、发红包、查退款、申请退款 | 解码官方成功 XML 后直接验证模型,分别缺少 `cash_fee`、`send_listid`、四个汇总字段、`total_fee/cash_fee`。其中查退款示例包含 `refund_fee_0`,但缺少表中所列的 `total_fee/cash_fee/refund_fee/coupon_refund_fee` | 这些是文档样例与字段表的差异;本次未观察到真实业务回包缺失。先补上用于说明差异的样例,再按商户回包确定兼容策略。[付款码支付](https://pay.weixin.qq.com/doc/v2/merchant/4011937125.md) · [发红包](https://pay.weixin.qq.com/doc/v2/merchant/4011974053.md) · [查退款](https://pay.weixin.qq.com/doc/v2/merchant/4011939577.md) · [申请退款](https://pay.weixin.qq.com/doc/v2/merchant/4011937624.md) |
73
+
74
+ 明细中的其他示例差异应结合所处段落阅读。例如,小程序码文档专门展示了空路径的失败请求,SDK 拦截该输入符合要求。视频号罗盘详情页把查询参数列为“无”,同时说明支持授权方凭据;当前 SDK 注入 token 的行为仍待有罗盘权限的账号确认。[小程序码失败示例](https://developers.weixin.qq.com/miniprogram/dev/server/API/qrcode-link/qr-code/api_getqrcode.md) · [视频号罗盘详情](https://developers.weixin.qq.com/doc/channels/api/channels/compass/api_getfinderoverall.md)