Skip to content

Commit 22d6ec3

Browse files
publish jdcloud-sdk-go version 1.1.13
1 parent caf867f commit 22d6ec3

23 files changed

Lines changed: 466 additions & 25 deletions

services/billing/ChangeLog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2024-07-23 version 1.1.13
2+
查价接口金额类型更新为double
3+
2024-07-22 version 1.1.12
4+
对外账单接口金额类型更新为double
5+
2023-08-25 version 1.1.8
6+
1.接收线下账单,增加合同编码,结构名称
7+
2023-02-07 version 1.1.6
8+
1.调账增加原价、优惠金额参数
9+
10+
2023-02-07 version 1.1.5
11+
1.退款金额计算接口增加代金券退款列表
12+
113
2022-11-21 version 1.1.4
214
1.对外接口返回增加可用区字段
315

services/billing/apis/CalculateTotalPrice.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,17 +205,17 @@ type CalculateTotalPriceResponse struct {
205205
}
206206

207207
type CalculateTotalPriceResult struct {
208-
TotalPrice int `json:"totalPrice"`
209-
TotalPriceScale4 int `json:"totalPriceScale4"`
210-
DiscountedTotalPrice int `json:"discountedTotalPrice"`
211-
TotalDiscount int `json:"totalDiscount"`
208+
TotalPrice float64 `json:"totalPrice"`
209+
TotalPriceScale4 float64 `json:"totalPriceScale4"`
210+
DiscountedTotalPrice float64 `json:"discountedTotalPrice"`
211+
TotalDiscount float64 `json:"totalDiscount"`
212212
AfterFavorableTotalPrice float64 `json:"afterFavorableTotalPrice"`
213213
EraseTotalPrice float64 `json:"eraseTotalPrice"`
214214
List []billing.OrderPriceDetail `json:"list"`
215-
TotalOriginalPrice int `json:"totalOriginalPrice"`
215+
TotalOriginalPrice float64 `json:"totalOriginalPrice"`
216216
FavorableInfos string `json:"favorableInfos"`
217217
Remark string `json:"remark"`
218-
TotalUnitPrice int `json:"totalUnitPrice"`
218+
TotalUnitPrice float64 `json:"totalUnitPrice"`
219219
RefundTotalPrice float64 `json:"refundTotalPrice"`
220220
CashRefundTotalPrice float64 `json:"cashRefundTotalPrice"`
221221
BalanceRefundTotalPrice float64 `json:"balanceRefundTotalPrice"`

services/billing/client/BillingClient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewBillingClient(credential *core.Credential) *BillingClient {
4040
Credential: *credential,
4141
Config: *config,
4242
ServiceName: "billing",
43-
Revision: "1.1.4",
43+
Revision: "1.1.13",
4444
Logger: core.NewDefaultLogger(core.LogInfo),
4545
}}
4646
}

services/billing/models/Bill.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ type Bill struct {
9191
/* 付费代金券金额,2位精度 (Optional) */
9292
PayCashCouponFee int `json:"payCashCouponFee"`
9393

94+
/* 电汇金额,2位精度 (Optional) */
95+
Wire int `json:"wire"`
96+
9497
/* 消费时间 (Optional) */
9598
ConsumeTime string `json:"consumeTime"`
9699

services/billing/models/BillAdjustRecord.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,30 @@ type BillAdjustRecord struct {
2828
/* 资源ID (Optional) */
2929
ResourceId string `json:"resourceId"`
3030

31+
/* 原价 (Optional) */
32+
BillFee float64 `json:"billFee"`
33+
34+
/* 优惠金额 (Optional) */
35+
DiscountFee float64 `json:"discountFee"`
36+
3137
/* 应付金额 (Optional) */
3238
ActualFee float64 `json:"actualFee"`
3339

3440
/* 调整金额 (Optional) */
3541
AdjustFee float64 `json:"adjustFee"`
3642

43+
/* 调整现金金额 (Optional) */
44+
CashPayFee float64 `json:"cashPayFee"`
45+
46+
/* 调整余额金额 (Optional) */
47+
BalancePayFee float64 `json:"balancePayFee"`
48+
49+
/* 调整代金券金额 (Optional) */
50+
CashCouponFee float64 `json:"cashCouponFee"`
51+
52+
/* 代金券券码 (Optional) */
53+
CouponNumber string `json:"couponNumber"`
54+
3755
/* 计费项 (Optional) */
3856
Property string `json:"property"`
3957

services/billing/models/BillItemVo.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ type BillItemVo struct {
6464
/* 现金支付金额:2位精度 (Optional) */
6565
CashPayFee float64 `json:"cashPayFee"`
6666

67+
/* 电汇金额,2位精度 (Optional) */
68+
Wire int `json:"wire"`
69+
6770
/* 单价 (Optional) */
6871
UnitPrice float64 `json:"unitPrice"`
6972

services/billing/models/BillSummary.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,25 @@ type BillSummary struct {
6868
BillTime string `json:"billTime"`
6969

7070
/* 账单总额 (Optional) */
71-
TotalFee int `json:"totalFee"`
71+
TotalFee float64 `json:"totalFee"`
7272

7373
/* 优惠金额 (Optional) */
74-
DiscountFee int `json:"discountFee"`
74+
DiscountFee float64 `json:"discountFee"`
7575

7676
/* 优惠后总价金额 (Optional) */
77-
RealTotalFee int `json:"realTotalFee"`
77+
RealTotalFee float64 `json:"realTotalFee"`
7878

7979
/* 代金券支付金额 (Optional) */
80-
CashCouponPayFee int `json:"cashCouponPayFee"`
80+
CashCouponPayFee float64 `json:"cashCouponPayFee"`
8181

8282
/* 余额支付金额 (Optional) */
83-
BalancePayFee int `json:"balancePayFee"`
83+
BalancePayFee float64 `json:"balancePayFee"`
8484

8585
/* 现金支付金额 (Optional) */
86-
CashPayFee int `json:"cashPayFee"`
86+
CashPayFee float64 `json:"cashPayFee"`
8787

8888
/* 欠费金额 (Optional) */
89-
ArrearFee int `json:"arrearFee"`
89+
ArrearFee float64 `json:"arrearFee"`
9090

9191
/* 标签明细 (Optional) */
9292
TagDetails []ResourceTagVo `json:"tagDetails"`

services/billing/models/BillVo.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ type BillVo struct {
8282
/* 付费代金券金额,2位精度 (Optional) */
8383
PayCashCouponFee int `json:"payCashCouponFee"`
8484

85+
/* 电汇金额,2位精度 (Optional) */
86+
Wire int `json:"wire"`
87+
8588
/* 消费时间 (Optional) */
8689
ConsumeTime string `json:"consumeTime"`
8790

@@ -97,6 +100,12 @@ type BillVo struct {
97100
/* 组织机构代码 (Optional) */
98101
Org string `json:"org"`
99102

103+
/* 组织机构名称 (Optional) */
104+
OrgName string `json:"orgName"`
105+
106+
/* 合同编码 (Optional) */
107+
ContractNumber string `json:"contractNumber"`
108+
100109
/* 交易类型 1、使用 2、 新购 3、续费 4、配置变更 5、退款,不可修改 (Optional) */
101110
TradeType int `json:"tradeType"`
102111

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 models
18+
19+
20+
type NewCustomerBillSummaryCondition struct {
21+
22+
/* 用户pin (Optional) */
23+
PinList []string `json:"pinList"`
24+
25+
/* 账期,yyyyMM (Optional) */
26+
BillDate string `json:"billDate"`
27+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 models
18+
19+
20+
type OrderFee struct {
21+
22+
/* 订单编号 (Optional) */
23+
TransactionNo string `json:"transactionNo"`
24+
25+
/* 订单退款金额 (Optional) */
26+
ActualFee float64 `json:"actualFee"`
27+
28+
/* 现金退款金额 (Optional) */
29+
CashPayFee float64 `json:"cashPayFee"`
30+
31+
/* 余额退款金额 (Optional) */
32+
BalancePayFee float64 `json:"balancePayFee"`
33+
34+
/* 代金券退款金额 (Optional) */
35+
CashCouponFee float64 `json:"cashCouponFee"`
36+
37+
/* 开始时间 (Optional) */
38+
StartTime string `json:"startTime"`
39+
40+
/* 开始时间 (Optional) */
41+
EndTime string `json:"endTime"`
42+
43+
/* 规格 (Optional) */
44+
Formula string `json:"formula"`
45+
46+
/* 时间单位 (Optional) */
47+
TimeUnit int `json:"timeUnit"`
48+
49+
/* 单位长度 (Optional) */
50+
TimeSpan int `json:"timeSpan"`
51+
52+
/* 退款代金券列表 (Optional) */
53+
RefundCouponList []RefundCoupon `json:"refundCouponList"`
54+
}

0 commit comments

Comments
 (0)