Skip to content

Commit 2e950a0

Browse files
publish jdcloud-sdk-go version 1.3.13
1 parent 15ae9fe commit 2e950a0

108 files changed

Lines changed: 6885 additions & 62 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

services/partner/ChangeLog.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
1+
2024-05-23 version: 1.3.13
2+
渠道账单
3+
2024-03-01 version: 1.3.12
4+
渠道调账
5+
2023-11-08 version: 1.3.11
6+
渠道账单
7+
2022-07-18 version: 1.3.8
8+
代付
9+
2021-09-17 version: 1.3.7
10+
新建服务商
11+
2021-09-17 version: 1.3.6
12+
1、新增上传邮件审批附件接口
13+
2、新增查询返还政策明细接口
14+
3、添加、修改返还政策接口新增请求字段approveFileId
15+
4、添加、修改返还政策接口支持批量政策条件操作
16+
5、修改productType的字段类型为string
17+
6、新增创建合同接口
18+
2021-09-06 version: 1.3.5
19+
服务商新增发票信息
20+
2021-06-30 version: 1.3.4
21+
服务商合同
22+
2020-10-20 version: 1.3.3
23+
合作协议
24+
2020-10-20 version: 1.3.2
25+
合作信息修改
26+
2020-10-20 version: 1.3.1
27+
1.合作伙伴管理员设置
28+
2.合作信息优化
29+
3.审批流程展示
30+
2020-08-03 version: 1.3.0
31+
合作伙伴二期
32+
2020-07-20 version: 1.2.3
33+
合作伙伴打标
34+
2020-06-15 version: 1.2.2
35+
伙伴招募表单适配saas加速器伙伴招募计划
36+
2020-06-15 version: 1.2.1
37+
控制台展示优化
38+
2020-05-13 version: 1.2.0
39+
添加二级服务商验证erp/pin
40+
2020-04-10 version: 1.1.9
41+
合作伙伴管理后台
42+
2020-03-31 version: 1.1.8
43+
1.合作伙伴申请改版
44+
2020-03-10 version: 1.1.7
45+
1. 离职卡点需求,按erp查询其名下是否有管理服务商
46+
2020-02-25 version: 1.1.6
47+
1. 接口参数调整
48+
2020-01-13 version: 1.1.5
49+
1. 删除二级服务商
150
2019-12-17 version: 1.1.4
251
1. 查询服务商下每个客户消费数据接口添加pin条件
352
2019-12-05 version: 1.1.3
Lines changed: 324 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,324 @@
1+
// Copyright 2018 JDCLOUD.COM
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+
package apis
18+
19+
import (
20+
"github.com/jdcloud-api/jdcloud-sdk-go/core"
21+
partner "github.com/jdcloud-api/jdcloud-sdk-go/services/partner/models"
22+
)
23+
24+
type AddCoProductRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* 区域(如:cn-north-1) */
29+
RegionId string `json:"regionId"`
30+
31+
/* 合作id (Optional) */
32+
CooperationId *string `json:"cooperationId"`
33+
34+
/* 合作产品名称 (Optional) */
35+
ProductName *string `json:"productName"`
36+
37+
/* 合作名称 (Optional) */
38+
Name *string `json:"name"`
39+
40+
/* 产品类型 (Optional) */
41+
ProductType *int `json:"productType"`
42+
43+
/* 产品模式 (Optional) */
44+
ProductMode *int `json:"productMode"`
45+
46+
/* 产品简介 (Optional) */
47+
ProductDesc *string `json:"productDesc"`
48+
49+
/* 目标客户 (Optional) */
50+
TargetCustomer *string `json:"targetCustomer"`
51+
52+
/* 市场规模 (Optional) */
53+
MarketSize *string `json:"marketSize"`
54+
55+
/* 主要竞品 (Optional) */
56+
ComparableProduct *string `json:"comparableProduct"`
57+
58+
/* 售卖形态 1套/n年、2套/n月、3套、4次 (Optional) */
59+
SellingForm *int `json:"sellingForm"`
60+
61+
/* 售卖方式 1直销,2渠道,3代理 (Optional) */
62+
SellingMode *string `json:"sellingMode"`
63+
64+
/* 定价 (Optional) */
65+
Pricing *string `json:"pricing"`
66+
67+
/* 产品状态 (Optional) */
68+
ProductStatus *int `json:"productStatus"`
69+
70+
/* 收入预测 (Optional) */
71+
IncomeForecast *string `json:"incomeForecast"`
72+
73+
/* 成本结构 (Optional) */
74+
CostStructure *string `json:"costStructure"`
75+
76+
/* 毛利率预测 (Optional) */
77+
GrossMarginForecast *string `json:"grossMarginForecast"`
78+
79+
/* 定价策略 1市场对标, 2总成本加成,3变动成本加成 (Optional) */
80+
PricingStrategy *int `json:"pricingStrategy"`
81+
82+
/* 结算方式 1固定金额结算,2实际售价固定比例结算,3实际售价浮动比例结算 (Optional) */
83+
SettlementMode *int `json:"settlementMode"`
84+
85+
/* 结算周期 1周结后付款、2月结后付款、3季结后付款、4年结后付款,5 PO预付款 (Optional) */
86+
SettlementCycle *int `json:"settlementCycle"`
87+
88+
/* 风险及建议 (Optional) */
89+
RiskSuggestion *string `json:"riskSuggestion"`
90+
91+
/* erp (Optional) */
92+
Erp *string `json:"erp"`
93+
94+
/* 产品唯一标识id (Optional) */
95+
Uuid *string `json:"uuid"`
96+
}
97+
98+
/*
99+
* param regionId: 区域(如:cn-north-1) (Required)
100+
*
101+
* @Deprecated, not compatible when mandatory parameters changed
102+
*/
103+
func NewAddCoProductRequest(
104+
regionId string,
105+
) *AddCoProductRequest {
106+
107+
return &AddCoProductRequest{
108+
JDCloudRequest: core.JDCloudRequest{
109+
URL: "/regions/{regionId}/CooperationInfo:addCoProduct",
110+
Method: "POST",
111+
Header: nil,
112+
Version: "v1",
113+
},
114+
RegionId: regionId,
115+
}
116+
}
117+
118+
/*
119+
* param regionId: 区域(如:cn-north-1) (Required)
120+
* param cooperationId: 合作id (Optional)
121+
* param productName: 合作产品名称 (Optional)
122+
* param name: 合作名称 (Optional)
123+
* param productType: 产品类型 (Optional)
124+
* param productMode: 产品模式 (Optional)
125+
* param productDesc: 产品简介 (Optional)
126+
* param targetCustomer: 目标客户 (Optional)
127+
* param marketSize: 市场规模 (Optional)
128+
* param comparableProduct: 主要竞品 (Optional)
129+
* param sellingForm: 售卖形态 1套/n年、2套/n月、3套、4次 (Optional)
130+
* param sellingMode: 售卖方式 1直销,2渠道,3代理 (Optional)
131+
* param pricing: 定价 (Optional)
132+
* param productStatus: 产品状态 (Optional)
133+
* param incomeForecast: 收入预测 (Optional)
134+
* param costStructure: 成本结构 (Optional)
135+
* param grossMarginForecast: 毛利率预测 (Optional)
136+
* param pricingStrategy: 定价策略 1市场对标, 2总成本加成,3变动成本加成 (Optional)
137+
* param settlementMode: 结算方式 1固定金额结算,2实际售价固定比例结算,3实际售价浮动比例结算 (Optional)
138+
* param settlementCycle: 结算周期 1周结后付款、2月结后付款、3季结后付款、4年结后付款,5 PO预付款 (Optional)
139+
* param riskSuggestion: 风险及建议 (Optional)
140+
* param erp: erp (Optional)
141+
* param uuid: 产品唯一标识id (Optional)
142+
*/
143+
func NewAddCoProductRequestWithAllParams(
144+
regionId string,
145+
cooperationId *string,
146+
productName *string,
147+
name *string,
148+
productType *int,
149+
productMode *int,
150+
productDesc *string,
151+
targetCustomer *string,
152+
marketSize *string,
153+
comparableProduct *string,
154+
sellingForm *int,
155+
sellingMode *string,
156+
pricing *string,
157+
productStatus *int,
158+
incomeForecast *string,
159+
costStructure *string,
160+
grossMarginForecast *string,
161+
pricingStrategy *int,
162+
settlementMode *int,
163+
settlementCycle *int,
164+
riskSuggestion *string,
165+
erp *string,
166+
uuid *string,
167+
) *AddCoProductRequest {
168+
169+
return &AddCoProductRequest{
170+
JDCloudRequest: core.JDCloudRequest{
171+
URL: "/regions/{regionId}/CooperationInfo:addCoProduct",
172+
Method: "POST",
173+
Header: nil,
174+
Version: "v1",
175+
},
176+
RegionId: regionId,
177+
CooperationId: cooperationId,
178+
ProductName: productName,
179+
Name: name,
180+
ProductType: productType,
181+
ProductMode: productMode,
182+
ProductDesc: productDesc,
183+
TargetCustomer: targetCustomer,
184+
MarketSize: marketSize,
185+
ComparableProduct: comparableProduct,
186+
SellingForm: sellingForm,
187+
SellingMode: sellingMode,
188+
Pricing: pricing,
189+
ProductStatus: productStatus,
190+
IncomeForecast: incomeForecast,
191+
CostStructure: costStructure,
192+
GrossMarginForecast: grossMarginForecast,
193+
PricingStrategy: pricingStrategy,
194+
SettlementMode: settlementMode,
195+
SettlementCycle: settlementCycle,
196+
RiskSuggestion: riskSuggestion,
197+
Erp: erp,
198+
Uuid: uuid,
199+
}
200+
}
201+
202+
/* This constructor has better compatible ability when API parameters changed */
203+
func NewAddCoProductRequestWithoutParam() *AddCoProductRequest {
204+
205+
return &AddCoProductRequest{
206+
JDCloudRequest: core.JDCloudRequest{
207+
URL: "/regions/{regionId}/CooperationInfo:addCoProduct",
208+
Method: "POST",
209+
Header: nil,
210+
Version: "v1",
211+
},
212+
}
213+
}
214+
215+
/* param regionId: 区域(如:cn-north-1)(Required) */
216+
func (r *AddCoProductRequest) SetRegionId(regionId string) {
217+
r.RegionId = regionId
218+
}
219+
/* param cooperationId: 合作id(Optional) */
220+
func (r *AddCoProductRequest) SetCooperationId(cooperationId string) {
221+
r.CooperationId = &cooperationId
222+
}
223+
/* param productName: 合作产品名称(Optional) */
224+
func (r *AddCoProductRequest) SetProductName(productName string) {
225+
r.ProductName = &productName
226+
}
227+
/* param name: 合作名称(Optional) */
228+
func (r *AddCoProductRequest) SetName(name string) {
229+
r.Name = &name
230+
}
231+
/* param productType: 产品类型(Optional) */
232+
func (r *AddCoProductRequest) SetProductType(productType int) {
233+
r.ProductType = &productType
234+
}
235+
/* param productMode: 产品模式(Optional) */
236+
func (r *AddCoProductRequest) SetProductMode(productMode int) {
237+
r.ProductMode = &productMode
238+
}
239+
/* param productDesc: 产品简介(Optional) */
240+
func (r *AddCoProductRequest) SetProductDesc(productDesc string) {
241+
r.ProductDesc = &productDesc
242+
}
243+
/* param targetCustomer: 目标客户(Optional) */
244+
func (r *AddCoProductRequest) SetTargetCustomer(targetCustomer string) {
245+
r.TargetCustomer = &targetCustomer
246+
}
247+
/* param marketSize: 市场规模(Optional) */
248+
func (r *AddCoProductRequest) SetMarketSize(marketSize string) {
249+
r.MarketSize = &marketSize
250+
}
251+
/* param comparableProduct: 主要竞品(Optional) */
252+
func (r *AddCoProductRequest) SetComparableProduct(comparableProduct string) {
253+
r.ComparableProduct = &comparableProduct
254+
}
255+
/* param sellingForm: 售卖形态 1套/n年、2套/n月、3套、4次(Optional) */
256+
func (r *AddCoProductRequest) SetSellingForm(sellingForm int) {
257+
r.SellingForm = &sellingForm
258+
}
259+
/* param sellingMode: 售卖方式 1直销,2渠道,3代理(Optional) */
260+
func (r *AddCoProductRequest) SetSellingMode(sellingMode string) {
261+
r.SellingMode = &sellingMode
262+
}
263+
/* param pricing: 定价(Optional) */
264+
func (r *AddCoProductRequest) SetPricing(pricing string) {
265+
r.Pricing = &pricing
266+
}
267+
/* param productStatus: 产品状态(Optional) */
268+
func (r *AddCoProductRequest) SetProductStatus(productStatus int) {
269+
r.ProductStatus = &productStatus
270+
}
271+
/* param incomeForecast: 收入预测(Optional) */
272+
func (r *AddCoProductRequest) SetIncomeForecast(incomeForecast string) {
273+
r.IncomeForecast = &incomeForecast
274+
}
275+
/* param costStructure: 成本结构(Optional) */
276+
func (r *AddCoProductRequest) SetCostStructure(costStructure string) {
277+
r.CostStructure = &costStructure
278+
}
279+
/* param grossMarginForecast: 毛利率预测(Optional) */
280+
func (r *AddCoProductRequest) SetGrossMarginForecast(grossMarginForecast string) {
281+
r.GrossMarginForecast = &grossMarginForecast
282+
}
283+
/* param pricingStrategy: 定价策略 1市场对标, 2总成本加成,3变动成本加成(Optional) */
284+
func (r *AddCoProductRequest) SetPricingStrategy(pricingStrategy int) {
285+
r.PricingStrategy = &pricingStrategy
286+
}
287+
/* param settlementMode: 结算方式 1固定金额结算,2实际售价固定比例结算,3实际售价浮动比例结算(Optional) */
288+
func (r *AddCoProductRequest) SetSettlementMode(settlementMode int) {
289+
r.SettlementMode = &settlementMode
290+
}
291+
/* param settlementCycle: 结算周期 1周结后付款、2月结后付款、3季结后付款、4年结后付款,5 PO预付款(Optional) */
292+
func (r *AddCoProductRequest) SetSettlementCycle(settlementCycle int) {
293+
r.SettlementCycle = &settlementCycle
294+
}
295+
/* param riskSuggestion: 风险及建议(Optional) */
296+
func (r *AddCoProductRequest) SetRiskSuggestion(riskSuggestion string) {
297+
r.RiskSuggestion = &riskSuggestion
298+
}
299+
/* param erp: erp(Optional) */
300+
func (r *AddCoProductRequest) SetErp(erp string) {
301+
r.Erp = &erp
302+
}
303+
/* param uuid: 产品唯一标识id(Optional) */
304+
func (r *AddCoProductRequest) SetUuid(uuid string) {
305+
r.Uuid = &uuid
306+
}
307+
308+
309+
// GetRegionId returns path parameter 'regionId' if exist,
310+
// otherwise return empty string
311+
func (r AddCoProductRequest) GetRegionId() string {
312+
return r.RegionId
313+
}
314+
315+
type AddCoProductResponse struct {
316+
RequestID string `json:"requestId"`
317+
Error core.ErrorResponse `json:"error"`
318+
Result AddCoProductResult `json:"result"`
319+
}
320+
321+
type AddCoProductResult struct {
322+
Result bool `json:"result"`
323+
RequestId string `json:"requestId"`
324+
}

0 commit comments

Comments
 (0)