Skip to content

Commit 4bd9aa0

Browse files
committed
修复电子发票-配置开发选项请求类型bug
1 parent 1b50726 commit 4bd9aa0

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.2.42] - 2023-11-15
4+
5+
### Fixed
6+
7+
- 修复电子发票-配置开发选项请求类型bug
8+
39
## [1.2.41] - 2023-09-01
410

511
### Fixed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="wechatpayv3",
9-
version="1.2.41",
9+
version="1.2.42",
1010
author="minibear",
1111
description="微信支付 API v3 Python SDK(python sdk for wechatpay v3)",
1212
long_description=long_description,

wechatpayv3/fapiao.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def fapiao_set_merchant_config(self, callback_url=None):
3333
params = {}
3434
params.update({'callback_url': callback_url})
3535
path = '/v3/new-tax-control-fapiao/merchant/development-config'
36-
return self._core.request(path, method=RequestType.POST, data=params)
36+
return self._core.request(path, method=RequestType.PATCH, data=params)
3737

3838

3939
def fapiao_merchant_config(self):

wechatpayv3/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def refund(self,
179179
sub_mchid=None):
180180
"""申请退款
181181
:param out_refund_no: 商户退款单号,示例值:'1217752501201407033233368018'
182-
:param amount: 金额信息,示例值:{'refund':888, 'total':888, 'currency':'CNY', 'refund_fee':100}
182+
:param amount: 金额信息,示例值:{'refund':888, 'total':888, 'currency':'CNY'}
183183
:param transaction_id: 微信支付订单号,示例值:'1217752501201407033233368018'
184184
:param out_trade_no: 商户订单号,示例值:'1217752501201407033233368018'
185185
:param reason: 退款原因,示例值:'商品已售完'

0 commit comments

Comments
 (0)