Skip to content

Commit 1be5536

Browse files
publish jdcloud-sdk-go version 0.4.11
1 parent 66b7896 commit 1be5536

85 files changed

Lines changed: 8143 additions & 0 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/invoice/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2019-09-10 version: 0.4.0
2+
2019-09-18 change type name
3+
2019-12-03 add getCompanyCreditInfo interface
4+
2023-01-30 0.4.3 poc 增加使用人、支付人信息
5+
2023-12-18 0.4.7 支持月账单开票
6+
2024-07-24 0.4.10 对外sdk发布
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
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 ArtificialRefundRequest struct {
24+
25+
core.JDCloudRequest
26+
27+
/* 地域编码,参考OpenAPI公共说明 */
28+
RegionId string `json:"regionId"`
29+
30+
/* 退款订单号 (Optional) */
31+
OrderId *string `json:"orderId"`
32+
33+
/* 退款金额 (Optional) */
34+
RefundAmount *string `json:"refundAmount"`
35+
}
36+
37+
/*
38+
* param regionId: 地域编码,参考OpenAPI公共说明 (Required)
39+
*
40+
* @Deprecated, not compatible when mandatory parameters changed
41+
*/
42+
func NewArtificialRefundRequest(
43+
regionId string,
44+
) *ArtificialRefundRequest {
45+
46+
return &ArtificialRefundRequest{
47+
JDCloudRequest: core.JDCloudRequest{
48+
URL: "/regions/{regionId}/invoiceorder:artificialRefund",
49+
Method: "POST",
50+
Header: nil,
51+
Version: "v2",
52+
},
53+
RegionId: regionId,
54+
}
55+
}
56+
57+
/*
58+
* param regionId: 地域编码,参考OpenAPI公共说明 (Required)
59+
* param orderId: 退款订单号 (Optional)
60+
* param refundAmount: 退款金额 (Optional)
61+
*/
62+
func NewArtificialRefundRequestWithAllParams(
63+
regionId string,
64+
orderId *string,
65+
refundAmount *string,
66+
) *ArtificialRefundRequest {
67+
68+
return &ArtificialRefundRequest{
69+
JDCloudRequest: core.JDCloudRequest{
70+
URL: "/regions/{regionId}/invoiceorder:artificialRefund",
71+
Method: "POST",
72+
Header: nil,
73+
Version: "v2",
74+
},
75+
RegionId: regionId,
76+
OrderId: orderId,
77+
RefundAmount: refundAmount,
78+
}
79+
}
80+
81+
/* This constructor has better compatible ability when API parameters changed */
82+
func NewArtificialRefundRequestWithoutParam() *ArtificialRefundRequest {
83+
84+
return &ArtificialRefundRequest{
85+
JDCloudRequest: core.JDCloudRequest{
86+
URL: "/regions/{regionId}/invoiceorder:artificialRefund",
87+
Method: "POST",
88+
Header: nil,
89+
Version: "v2",
90+
},
91+
}
92+
}
93+
94+
/* param regionId: 地域编码,参考OpenAPI公共说明(Required) */
95+
func (r *ArtificialRefundRequest) SetRegionId(regionId string) {
96+
r.RegionId = regionId
97+
}
98+
/* param orderId: 退款订单号(Optional) */
99+
func (r *ArtificialRefundRequest) SetOrderId(orderId string) {
100+
r.OrderId = &orderId
101+
}
102+
/* param refundAmount: 退款金额(Optional) */
103+
func (r *ArtificialRefundRequest) SetRefundAmount(refundAmount string) {
104+
r.RefundAmount = &refundAmount
105+
}
106+
107+
108+
// GetRegionId returns path parameter 'regionId' if exist,
109+
// otherwise return empty string
110+
func (r ArtificialRefundRequest) GetRegionId() string {
111+
return r.RegionId
112+
}
113+
114+
type ArtificialRefundResponse struct {
115+
RequestID string `json:"requestId"`
116+
Error core.ErrorResponse `json:"error"`
117+
Result ArtificialRefundResult `json:"result"`
118+
}
119+
120+
type ArtificialRefundResult struct {
121+
Code int `json:"code"`
122+
Msg string `json:"msg"`
123+
}
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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+
invoice "github.com/jdcloud-api/jdcloud-sdk-go/services/invoice/models"
22+
)
23+
24+
type BatchUpdateInvoiceRefundOrderRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* */
29+
RegionId string `json:"regionId"`
30+
31+
/* pin (Optional) */
32+
Pin *string `json:"pin"`
33+
}
34+
35+
/*
36+
* param regionId: (Required)
37+
*
38+
* @Deprecated, not compatible when mandatory parameters changed
39+
*/
40+
func NewBatchUpdateInvoiceRefundOrderRequest(
41+
regionId string,
42+
) *BatchUpdateInvoiceRefundOrderRequest {
43+
44+
return &BatchUpdateInvoiceRefundOrderRequest{
45+
JDCloudRequest: core.JDCloudRequest{
46+
URL: "/regions/{regionId}/batchUpdateInvoiceRefundOrder",
47+
Method: "POST",
48+
Header: nil,
49+
Version: "v2",
50+
},
51+
RegionId: regionId,
52+
}
53+
}
54+
55+
/*
56+
* param regionId: (Required)
57+
* param pin: pin (Optional)
58+
*/
59+
func NewBatchUpdateInvoiceRefundOrderRequestWithAllParams(
60+
regionId string,
61+
pin *string,
62+
) *BatchUpdateInvoiceRefundOrderRequest {
63+
64+
return &BatchUpdateInvoiceRefundOrderRequest{
65+
JDCloudRequest: core.JDCloudRequest{
66+
URL: "/regions/{regionId}/batchUpdateInvoiceRefundOrder",
67+
Method: "POST",
68+
Header: nil,
69+
Version: "v2",
70+
},
71+
RegionId: regionId,
72+
Pin: pin,
73+
}
74+
}
75+
76+
/* This constructor has better compatible ability when API parameters changed */
77+
func NewBatchUpdateInvoiceRefundOrderRequestWithoutParam() *BatchUpdateInvoiceRefundOrderRequest {
78+
79+
return &BatchUpdateInvoiceRefundOrderRequest{
80+
JDCloudRequest: core.JDCloudRequest{
81+
URL: "/regions/{regionId}/batchUpdateInvoiceRefundOrder",
82+
Method: "POST",
83+
Header: nil,
84+
Version: "v2",
85+
},
86+
}
87+
}
88+
89+
/* param regionId: (Required) */
90+
func (r *BatchUpdateInvoiceRefundOrderRequest) SetRegionId(regionId string) {
91+
r.RegionId = regionId
92+
}
93+
/* param pin: pin(Optional) */
94+
func (r *BatchUpdateInvoiceRefundOrderRequest) SetPin(pin string) {
95+
r.Pin = &pin
96+
}
97+
98+
99+
// GetRegionId returns path parameter 'regionId' if exist,
100+
// otherwise return empty string
101+
func (r BatchUpdateInvoiceRefundOrderRequest) GetRegionId() string {
102+
return r.RegionId
103+
}
104+
105+
type BatchUpdateInvoiceRefundOrderResponse struct {
106+
RequestID string `json:"requestId"`
107+
Error core.ErrorResponse `json:"error"`
108+
Result BatchUpdateInvoiceRefundOrderResult `json:"result"`
109+
}
110+
111+
type BatchUpdateInvoiceRefundOrderResult struct {
112+
Result bool `json:"result"`
113+
}
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
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+
invoice "github.com/jdcloud-api/jdcloud-sdk-go/services/invoice/models"
22+
)
23+
24+
type BillDetailRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* 地域编码,参考OpenAPI公共说明 */
29+
RegionId string `json:"regionId"`
30+
31+
/* 计费账单编号 */
32+
BillId string `json:"billId"`
33+
}
34+
35+
/*
36+
* param regionId: 地域编码,参考OpenAPI公共说明 (Required)
37+
* param billId: 计费账单编号 (Required)
38+
*
39+
* @Deprecated, not compatible when mandatory parameters changed
40+
*/
41+
func NewBillDetailRequest(
42+
regionId string,
43+
billId string,
44+
) *BillDetailRequest {
45+
46+
return &BillDetailRequest{
47+
JDCloudRequest: core.JDCloudRequest{
48+
URL: "/regions/{regionId}/billDetail/{billId}",
49+
Method: "GET",
50+
Header: nil,
51+
Version: "v2",
52+
},
53+
RegionId: regionId,
54+
BillId: billId,
55+
}
56+
}
57+
58+
/*
59+
* param regionId: 地域编码,参考OpenAPI公共说明 (Required)
60+
* param billId: 计费账单编号 (Required)
61+
*/
62+
func NewBillDetailRequestWithAllParams(
63+
regionId string,
64+
billId string,
65+
) *BillDetailRequest {
66+
67+
return &BillDetailRequest{
68+
JDCloudRequest: core.JDCloudRequest{
69+
URL: "/regions/{regionId}/billDetail/{billId}",
70+
Method: "GET",
71+
Header: nil,
72+
Version: "v2",
73+
},
74+
RegionId: regionId,
75+
BillId: billId,
76+
}
77+
}
78+
79+
/* This constructor has better compatible ability when API parameters changed */
80+
func NewBillDetailRequestWithoutParam() *BillDetailRequest {
81+
82+
return &BillDetailRequest{
83+
JDCloudRequest: core.JDCloudRequest{
84+
URL: "/regions/{regionId}/billDetail/{billId}",
85+
Method: "GET",
86+
Header: nil,
87+
Version: "v2",
88+
},
89+
}
90+
}
91+
92+
/* param regionId: 地域编码,参考OpenAPI公共说明(Required) */
93+
func (r *BillDetailRequest) SetRegionId(regionId string) {
94+
r.RegionId = regionId
95+
}
96+
/* param billId: 计费账单编号(Required) */
97+
func (r *BillDetailRequest) SetBillId(billId string) {
98+
r.BillId = billId
99+
}
100+
101+
102+
// GetRegionId returns path parameter 'regionId' if exist,
103+
// otherwise return empty string
104+
func (r BillDetailRequest) GetRegionId() string {
105+
return r.RegionId
106+
}
107+
108+
type BillDetailResponse struct {
109+
RequestID string `json:"requestId"`
110+
Error core.ErrorResponse `json:"error"`
111+
Result BillDetailResult `json:"result"`
112+
}
113+
114+
type BillDetailResult struct {
115+
BillDataList []invoice.BillDataList `json:"billDataList"`
116+
}

0 commit comments

Comments
 (0)