Skip to content

Commit 77a7727

Browse files
Merge pull request #137 from jdcloud-apigateway/master
publish jdcloud-sdk-python 1.6.107
2 parents a37c8ee + 5ef21f5 commit 77a7727

16 files changed

Lines changed: 458 additions & 1 deletion
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2021-05-31
2+
1. version 0.0.1
3+
2. 初始版本
4+
3. 退款服务

jdcloud_sdk/services/refund/__init__.py

Whitespace-only changes.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescirbeRefundStatusRequest(JDCloudRequest):
23+
"""
24+
查询退款状态
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescirbeRefundStatusRequest, self).__init__(
29+
'/regions/{regionId}/refund:status', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescirbeRefundStatusParameters(object):
34+
35+
def __init__(self, regionId, pin, ):
36+
"""
37+
:param regionId: 地域ID
38+
:param pin:
39+
"""
40+
41+
self.regionId = regionId
42+
self.pin = pin
43+
self.refundId = None
44+
self.resourceId = None
45+
self.pageNumber = None
46+
self.pageSize = None
47+
48+
def setRefundId(self, refundId):
49+
"""
50+
:param refundId: (Optional)
51+
"""
52+
self.refundId = refundId
53+
54+
def setResourceId(self, resourceId):
55+
"""
56+
:param resourceId: (Optional)
57+
"""
58+
self.resourceId = resourceId
59+
60+
def setPageNumber(self, pageNumber):
61+
"""
62+
:param pageNumber: (Optional) 第几页,默认值为0
63+
"""
64+
self.pageNumber = pageNumber
65+
66+
def setPageSize(self, pageSize):
67+
"""
68+
:param pageSize: (Optional) 每页条数,默认为20
69+
"""
70+
self.pageSize = pageSize
71+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class SubmitResourceRefundRequest(JDCloudRequest):
23+
"""
24+
退款并删除资源
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(SubmitResourceRefundRequest, self).__init__(
29+
'/regions/{regionId}/refund:resource', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class SubmitResourceRefundParameters(object):
34+
35+
def __init__(self, regionId, ):
36+
"""
37+
:param regionId: 地域ID
38+
"""
39+
40+
self.regionId = regionId
41+
self.jsonBody = None
42+
43+
def setJsonBody(self, jsonBody):
44+
"""
45+
:param jsonBody: (Optional)
46+
"""
47+
self.jsonBody = jsonBody
48+

jdcloud_sdk/services/refund/apis/__init__.py

Whitespace-only changes.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudclient import JDCloudClient
20+
from jdcloud_sdk.core.config import Config
21+
22+
23+
class RefundClient(JDCloudClient):
24+
25+
def __init__(self, credential, config=None, logger=None):
26+
if config is None:
27+
config = Config('refund.jdcloud-api.com')
28+
29+
super(RefundClient, self).__init__(credential, config, 'refund', '0.0.1', logger)

jdcloud_sdk/services/refund/client/__init__.py

Whitespace-only changes.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class PageInfos(object):
21+
22+
def __init__(self, currentPage=None, pageSize=None, totalRecord=None):
23+
"""
24+
:param currentPage: (Optional) 成功标识
25+
:param pageSize: (Optional)
26+
:param totalRecord: (Optional) 数据
27+
"""
28+
29+
self.currentPage = currentPage
30+
self.pageSize = pageSize
31+
self.totalRecord = totalRecord
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class RefundRecordOrderItemVo(object):
21+
22+
def __init__(self, refundId=None, resourceId=None, resourceName=None, orderNumber=None, orderSubNumber=None, orderItemNumber=None, totalFee=None, discountFee=None, actualFee=None, couponFee=None, balanceFee=None, cashFee=None, couponRefundFee=None, balanceRefundFee=None, cashRefundFee=None, refundFee=None, chooseFlag=None, orderType=None, chargeMode=None, merchantId=None, cashRefundChannel=None, serviceCode=None, appCode=None):
23+
"""
24+
:param refundId: (Optional) 退款单号
25+
:param resourceId: (Optional) 资源id
26+
:param resourceName: (Optional) 资源名称
27+
:param orderNumber: (Optional) 订单号
28+
:param orderSubNumber: (Optional) 子订单号
29+
:param orderItemNumber: (Optional) 订单商品编号
30+
:param totalFee: (Optional) 总订单金额
31+
:param discountFee: (Optional) 订单优惠金额
32+
:param actualFee: (Optional) 实际订单金额
33+
:param couponFee: (Optional) 优惠券支付金额
34+
:param balanceFee: (Optional) 余额支付金额
35+
:param cashFee: (Optional) 现金支付金额
36+
:param couponRefundFee: (Optional) 代金券退款金额
37+
:param balanceRefundFee: (Optional) 余额退款金额
38+
:param cashRefundFee: (Optional) 现金退款金额
39+
:param refundFee: (Optional) 总退款金额
40+
:param chooseFlag: (Optional) 选中标记 0-未选中 1-选中
41+
:param orderType: (Optional) 订单类型 来源于order 1-新购,2-续费,3-配置变更
42+
:param chargeMode: (Optional) 订单计费类型:来源于order 1-按配置,2-按用量,3-按包年/包月,4-一次性付费
43+
:param merchantId: (Optional) 台账业务编号
44+
:param cashRefundChannel: (Optional) 现金退款渠道 1-企业网银,2-个人网银,3-微信支付,4-京东支付,5-线下汇款
45+
:param serviceCode: (Optional) 产品线
46+
:param appCode: (Optional) 产品类目
47+
"""
48+
49+
self.refundId = refundId
50+
self.resourceId = resourceId
51+
self.resourceName = resourceName
52+
self.orderNumber = orderNumber
53+
self.orderSubNumber = orderSubNumber
54+
self.orderItemNumber = orderItemNumber
55+
self.totalFee = totalFee
56+
self.discountFee = discountFee
57+
self.actualFee = actualFee
58+
self.couponFee = couponFee
59+
self.balanceFee = balanceFee
60+
self.cashFee = cashFee
61+
self.couponRefundFee = couponRefundFee
62+
self.balanceRefundFee = balanceRefundFee
63+
self.cashRefundFee = cashRefundFee
64+
self.refundFee = refundFee
65+
self.chooseFlag = chooseFlag
66+
self.orderType = orderType
67+
self.chargeMode = chargeMode
68+
self.merchantId = merchantId
69+
self.cashRefundChannel = cashRefundChannel
70+
self.serviceCode = serviceCode
71+
self.appCode = appCode
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class RefundRecordResp(object):
21+
22+
def __init__(self, isSuccess=None, requestId=None, data=None, message=None):
23+
"""
24+
:param isSuccess: (Optional) 成功标识
25+
:param requestId: (Optional) 请求ID
26+
:param data: (Optional) 数据
27+
:param message: (Optional) 失败/错误原因
28+
"""
29+
30+
self.isSuccess = isSuccess
31+
self.requestId = requestId
32+
self.data = data
33+
self.message = message

0 commit comments

Comments
 (0)