Skip to content

Commit caf867f

Browse files
publish jdcloud-sdk-go version 1.0.12
1 parent 253e8f7 commit caf867f

8 files changed

Lines changed: 704 additions & 64 deletions

File tree

services/cloudauth/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ Date: 2024-02-20
3232
1.0.11:
3333
Date: 2024-03-12
3434
更新: 增加银行卡三四要素非身份证版接口
35+
36+
1.0.12:
37+
Date: 2024-06-18
38+
更新: 增加失联地址识别接口
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
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+
cloudauth "github.com/jdcloud-api/jdcloud-sdk-go/services/cloudauth/models"
22+
)
23+
24+
type AddressDetailRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* taskId(查询接口返回) */
29+
TaskId string `json:"taskId"`
30+
31+
/* 商户号 */
32+
CustomerCode string `json:"customerCode"`
33+
}
34+
35+
/*
36+
* param taskId: taskId(查询接口返回) (Required)
37+
* param customerCode: 商户号 (Required)
38+
*
39+
* @Deprecated, not compatible when mandatory parameters changed
40+
*/
41+
func NewAddressDetailRequest(
42+
taskId string,
43+
customerCode string,
44+
) *AddressDetailRequest {
45+
46+
return &AddressDetailRequest{
47+
JDCloudRequest: core.JDCloudRequest{
48+
URL: "/address:detail",
49+
Method: "POST",
50+
Header: nil,
51+
Version: "v1",
52+
},
53+
TaskId: taskId,
54+
CustomerCode: customerCode,
55+
}
56+
}
57+
58+
/*
59+
* param taskId: taskId(查询接口返回) (Required)
60+
* param customerCode: 商户号 (Required)
61+
*/
62+
func NewAddressDetailRequestWithAllParams(
63+
taskId string,
64+
customerCode string,
65+
) *AddressDetailRequest {
66+
67+
return &AddressDetailRequest{
68+
JDCloudRequest: core.JDCloudRequest{
69+
URL: "/address:detail",
70+
Method: "POST",
71+
Header: nil,
72+
Version: "v1",
73+
},
74+
TaskId: taskId,
75+
CustomerCode: customerCode,
76+
}
77+
}
78+
79+
/* This constructor has better compatible ability when API parameters changed */
80+
func NewAddressDetailRequestWithoutParam() *AddressDetailRequest {
81+
82+
return &AddressDetailRequest{
83+
JDCloudRequest: core.JDCloudRequest{
84+
URL: "/address:detail",
85+
Method: "POST",
86+
Header: nil,
87+
Version: "v1",
88+
},
89+
}
90+
}
91+
92+
/* param taskId: taskId(查询接口返回)(Required) */
93+
func (r *AddressDetailRequest) SetTaskId(taskId string) {
94+
r.TaskId = taskId
95+
}
96+
/* param customerCode: 商户号(Required) */
97+
func (r *AddressDetailRequest) SetCustomerCode(customerCode string) {
98+
r.CustomerCode = customerCode
99+
}
100+
101+
102+
// GetRegionId returns path parameter 'regionId' if exist,
103+
// otherwise return empty string
104+
func (r AddressDetailRequest) GetRegionId() string {
105+
return ""
106+
}
107+
108+
type AddressDetailResponse struct {
109+
RequestID string `json:"requestId"`
110+
Error core.ErrorResponse `json:"error"`
111+
Result AddressDetailResult `json:"result"`
112+
}
113+
114+
type AddressDetailResult struct {
115+
Code string `json:"code"`
116+
Message string `json:"message"`
117+
Status int `json:"status"`
118+
Comment string `json:"comment"`
119+
RepairedAddressDetails []cloudauth.RepairedAddressDetail `json:"repairedAddressDetails"`
120+
}
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
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+
)
22+
23+
type AddressInfoRequest struct {
24+
25+
core.JDCloudRequest
26+
27+
/* 手机号(手机号和身份证号不能同时为空) (Optional) */
28+
PhoneNumber *string `json:"phoneNumber"`
29+
30+
/* 身份证号(手机号和身份证号不能同时为空) (Optional) */
31+
IdNumber *string `json:"idNumber"`
32+
33+
/* 详细地址 (Optional) */
34+
Address *string `json:"address"`
35+
36+
/* 商户号 */
37+
CustomerCode string `json:"customerCode"`
38+
}
39+
40+
/*
41+
* param customerCode: 商户号 (Required)
42+
*
43+
* @Deprecated, not compatible when mandatory parameters changed
44+
*/
45+
func NewAddressInfoRequest(
46+
customerCode string,
47+
) *AddressInfoRequest {
48+
49+
return &AddressInfoRequest{
50+
JDCloudRequest: core.JDCloudRequest{
51+
URL: "/address:info",
52+
Method: "POST",
53+
Header: nil,
54+
Version: "v1",
55+
},
56+
CustomerCode: customerCode,
57+
}
58+
}
59+
60+
/*
61+
* param phoneNumber: 手机号(手机号和身份证号不能同时为空) (Optional)
62+
* param idNumber: 身份证号(手机号和身份证号不能同时为空) (Optional)
63+
* param address: 详细地址 (Optional)
64+
* param customerCode: 商户号 (Required)
65+
*/
66+
func NewAddressInfoRequestWithAllParams(
67+
phoneNumber *string,
68+
idNumber *string,
69+
address *string,
70+
customerCode string,
71+
) *AddressInfoRequest {
72+
73+
return &AddressInfoRequest{
74+
JDCloudRequest: core.JDCloudRequest{
75+
URL: "/address:info",
76+
Method: "POST",
77+
Header: nil,
78+
Version: "v1",
79+
},
80+
PhoneNumber: phoneNumber,
81+
IdNumber: idNumber,
82+
Address: address,
83+
CustomerCode: customerCode,
84+
}
85+
}
86+
87+
/* This constructor has better compatible ability when API parameters changed */
88+
func NewAddressInfoRequestWithoutParam() *AddressInfoRequest {
89+
90+
return &AddressInfoRequest{
91+
JDCloudRequest: core.JDCloudRequest{
92+
URL: "/address:info",
93+
Method: "POST",
94+
Header: nil,
95+
Version: "v1",
96+
},
97+
}
98+
}
99+
100+
/* param phoneNumber: 手机号(手机号和身份证号不能同时为空)(Optional) */
101+
func (r *AddressInfoRequest) SetPhoneNumber(phoneNumber string) {
102+
r.PhoneNumber = &phoneNumber
103+
}
104+
/* param idNumber: 身份证号(手机号和身份证号不能同时为空)(Optional) */
105+
func (r *AddressInfoRequest) SetIdNumber(idNumber string) {
106+
r.IdNumber = &idNumber
107+
}
108+
/* param address: 详细地址(Optional) */
109+
func (r *AddressInfoRequest) SetAddress(address string) {
110+
r.Address = &address
111+
}
112+
/* param customerCode: 商户号(Required) */
113+
func (r *AddressInfoRequest) SetCustomerCode(customerCode string) {
114+
r.CustomerCode = customerCode
115+
}
116+
117+
118+
// GetRegionId returns path parameter 'regionId' if exist,
119+
// otherwise return empty string
120+
func (r AddressInfoRequest) GetRegionId() string {
121+
return ""
122+
}
123+
124+
type AddressInfoResponse struct {
125+
RequestID string `json:"requestId"`
126+
Error core.ErrorResponse `json:"error"`
127+
Result AddressInfoResult `json:"result"`
128+
}
129+
130+
type AddressInfoResult struct {
131+
ChargeFlag string `json:"chargeFlag"`
132+
Code string `json:"code"`
133+
Message string `json:"message"`
134+
TaskId string `json:"taskId"`
135+
Detail string `json:"detail"`
136+
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
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+
)
22+
23+
type GetAliveResultNewRequest struct {
24+
25+
core.JDCloudRequest
26+
27+
/* 检测token */
28+
Token string `json:"token"`
29+
}
30+
31+
/*
32+
* param token: 检测token (Required)
33+
*
34+
* @Deprecated, not compatible when mandatory parameters changed
35+
*/
36+
func NewGetAliveResultNewRequest(
37+
token string,
38+
) *GetAliveResultNewRequest {
39+
40+
return &GetAliveResultNewRequest{
41+
JDCloudRequest: core.JDCloudRequest{
42+
URL: "/alive:getResultNew",
43+
Method: "POST",
44+
Header: nil,
45+
Version: "v1",
46+
},
47+
Token: token,
48+
}
49+
}
50+
51+
/*
52+
* param token: 检测token (Required)
53+
*/
54+
func NewGetAliveResultNewRequestWithAllParams(
55+
token string,
56+
) *GetAliveResultNewRequest {
57+
58+
return &GetAliveResultNewRequest{
59+
JDCloudRequest: core.JDCloudRequest{
60+
URL: "/alive:getResultNew",
61+
Method: "POST",
62+
Header: nil,
63+
Version: "v1",
64+
},
65+
Token: token,
66+
}
67+
}
68+
69+
/* This constructor has better compatible ability when API parameters changed */
70+
func NewGetAliveResultNewRequestWithoutParam() *GetAliveResultNewRequest {
71+
72+
return &GetAliveResultNewRequest{
73+
JDCloudRequest: core.JDCloudRequest{
74+
URL: "/alive:getResultNew",
75+
Method: "POST",
76+
Header: nil,
77+
Version: "v1",
78+
},
79+
}
80+
}
81+
82+
/* param token: 检测token(Required) */
83+
func (r *GetAliveResultNewRequest) SetToken(token string) {
84+
r.Token = token
85+
}
86+
87+
88+
// GetRegionId returns path parameter 'regionId' if exist,
89+
// otherwise return empty string
90+
func (r GetAliveResultNewRequest) GetRegionId() string {
91+
return ""
92+
}
93+
94+
type GetAliveResultNewResponse struct {
95+
RequestID string `json:"requestId"`
96+
Error core.ErrorResponse `json:"error"`
97+
Result GetAliveResultNewResult `json:"result"`
98+
}
99+
100+
type GetAliveResultNewResult struct {
101+
FaceImage string `json:"faceImage"`
102+
SceneImage string `json:"sceneImage"`
103+
H5Result string `json:"h5Result"`
104+
SmResult string `json:"smResult"`
105+
RxResult string `json:"rxResult"`
106+
Score string `json:"score"`
107+
Desc string `json:"desc"`
108+
}

0 commit comments

Comments
 (0)