Skip to content

Commit 28913a6

Browse files
committed
publish jdcloud-sdk-python 1.6.54
1 parent bf46337 commit 28913a6

36 files changed

Lines changed: 767 additions & 24 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2019-05-09 version: 0.1.0
2+
1. 初始版本

jdcloud_sdk/services/order/__init__.py

Whitespace-only changes.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 PayOrderRequest(JDCloudRequest):
23+
"""
24+
订单支付
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(PayOrderRequest, self).__init__(
29+
'/regions/{regionId}/order/{orderNumber}:pay', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class PayOrderParameters(object):
34+
35+
def __init__(self, regionId, orderNumber, ):
36+
"""
37+
:param regionId: Region ID
38+
:param orderNumber: orderNumber ID
39+
"""
40+
41+
self.regionId = regionId
42+
self.orderNumber = orderNumber
43+
self.autoPay = None
44+
45+
def setAutoPay(self, autoPay):
46+
"""
47+
:param autoPay: (Optional) 自动支付标示,当为true,才会发生自动支付,后付费的订单直接支付0元,预付费的订单(余额+代金劵)> 订单应付金额,成功,否则支付失败(建议到京东云平台用现金方式支付)
48+
"""
49+
self.autoPay = autoPay
50+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 QueryOrderRequest(JDCloudRequest):
23+
"""
24+
查询订单详情
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(QueryOrderRequest, self).__init__(
29+
'/regions/{regionId}/order/{orderNumber}', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class QueryOrderParameters(object):
34+
35+
def __init__(self, regionId, orderNumber, ):
36+
"""
37+
:param regionId: Region ID
38+
:param orderNumber: orderNumber ID
39+
"""
40+
41+
self.regionId = regionId
42+
self.orderNumber = orderNumber
43+
self.includeDetail = None
44+
45+
def setIncludeDetail(self, includeDetail):
46+
"""
47+
:param includeDetail: (Optional) 是否包含商品详情
48+
"""
49+
self.includeDetail = includeDetail
50+
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 QueryOrdersRequest(JDCloudRequest):
23+
"""
24+
查询订单列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(QueryOrdersRequest, self).__init__(
29+
'/regions/{regionId}/orders', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class QueryOrdersParameters(object):
34+
35+
def __init__(self, regionId, ):
36+
"""
37+
:param regionId: Region ID
38+
"""
39+
40+
self.regionId = regionId
41+
self.queryVo = None
42+
43+
def setQueryVo(self, queryVo):
44+
"""
45+
:param queryVo: (Optional)
46+
"""
47+
self.queryVo = queryVo
48+

jdcloud_sdk/services/order/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 OrderClient(JDCloudClient):
24+
25+
def __init__(self, credential, config=None, logger=None):
26+
if config is None:
27+
config = Config('order.jdcloud-api.com')
28+
29+
super(OrderClient, self).__init__(credential, config, 'order', '0.1.0-v2', logger)

jdcloud_sdk/services/order/client/__init__.py

Whitespace-only changes.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 CreateOrderRequestList(object):
21+
22+
def __init__(self, createOrderRequests=None):
23+
"""
24+
:param createOrderRequests: (Optional)
25+
"""
26+
27+
self.createOrderRequests = createOrderRequests
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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 CreateOrderRequestObject(object):
21+
22+
def __init__(self, appCode=None, az=None, chargeDuration=None, chargeMode=None, chargeUnit=None, customInfo=None, extraInfo=None, formula=None, itemName=None, itemType=None, orderType=None, payType=None, pin=None, promotionInfo=None, quantity=None, region=None, resourceId=None, returnUrl=None, salesAttribute=None, serviceCode=None, serviceProviderName=None, serviceProviderPin=None, siteType=None, sourceId=None, taskId=None):
23+
"""
24+
:param appCode: (Optional) 业务线
25+
:param az: (Optional) 可用区
26+
:param chargeDuration: (Optional) 计费时长
27+
:param chargeMode: (Optional) 计费类型(CONFIG-按配置,FLOW-按用量MONTHLY-包年包月,ONCE-按次付费)
28+
:param chargeUnit: (Optional) 计费时长单位(HOUR-小时,DAY-天,MONTH-月,YEAR-年)
29+
:param customInfo: (Optional) 自定义参数
30+
:param extraInfo: (Optional) 销售属性
31+
:param formula: (Optional) 配置计费项
32+
:param itemName: (Optional) 资源名称
33+
:param itemType: (Optional) 商品类型(COMMON_ITEM-普通商品,ACTIVITY_ITEM-活动商品)
34+
:param orderType: (Optional) 购买订单类型(NEW-新购,RENEW-续费,RESIZE_FORMULA-配置变更)
35+
:param payType: (Optional) 付费类型(PRE_PAID-预付费,POST_PAID-后付费)
36+
:param pin: (Optional) 用户pin
37+
:param promotionInfo: (Optional) 促销明细
38+
:param quantity: (Optional) 数量
39+
:param region: (Optional) 资源地域
40+
:param resourceId: (Optional) 资源id
41+
:param returnUrl: (Optional) 支付成功后的回调地址(例如://inf.jcloud.com),如果需要自己提供回调地址则设置该字段,否则会回调到inf.jdcloud.com
42+
:param salesAttribute: (Optional) 销售属性
43+
:param serviceCode: (Optional) 产品线
44+
:param serviceProviderName: (Optional) 服务商名称
45+
:param serviceProviderPin: (Optional) 服务商pin
46+
:param siteType: (Optional) 站点名称(MAIN_SITE-主站,INTERNATIONAL_SITE-国际站,SUQIAN_DEDICATED_CLOUD-宿迁专有云)
47+
:param sourceId: (Optional) 下单唯一标识
48+
:param taskId: (Optional) 打包标识,打包在一起的产品用相同的taskId
49+
"""
50+
51+
self.appCode = appCode
52+
self.az = az
53+
self.chargeDuration = chargeDuration
54+
self.chargeMode = chargeMode
55+
self.chargeUnit = chargeUnit
56+
self.customInfo = customInfo
57+
self.extraInfo = extraInfo
58+
self.formula = formula
59+
self.itemName = itemName
60+
self.itemType = itemType
61+
self.orderType = orderType
62+
self.payType = payType
63+
self.pin = pin
64+
self.promotionInfo = promotionInfo
65+
self.quantity = quantity
66+
self.region = region
67+
self.resourceId = resourceId
68+
self.returnUrl = returnUrl
69+
self.salesAttribute = salesAttribute
70+
self.serviceCode = serviceCode
71+
self.serviceProviderName = serviceProviderName
72+
self.serviceProviderPin = serviceProviderPin
73+
self.siteType = siteType
74+
self.sourceId = sourceId
75+
self.taskId = taskId

0 commit comments

Comments
 (0)