1
This commit is contained in:
@@ -49,7 +49,7 @@ func (a *API) DisAgreeUserCancel(req *request2.AlibabaTclsAelophyRefundDisagreeR
|
|||||||
|
|
||||||
// PartialRefundReason 商户逆向取消订单数据渲染(获取订单商品列表已经取消原因:部分退款)
|
// PartialRefundReason 商户逆向取消订单数据渲染(获取订单商品列表已经取消原因:部分退款)
|
||||||
func (a *API) PartialRefundReason(req *request2.AlibabaTclsAelophyRefundCsapplyrenderRequest) (*domain.AlibabaTclsAelophyRefundCsapplyrenderRefundCsApplyRenderResponseDto, error) {
|
func (a *API) PartialRefundReason(req *request2.AlibabaTclsAelophyRefundCsapplyrenderRequest) (*domain.AlibabaTclsAelophyRefundCsapplyrenderRefundCsApplyRenderResponseDto, error) {
|
||||||
globals.SugarLogger.Debugf("进入 PartialRefundReason")
|
globals.SugarLogger.Debugf("进入 PartialRefundReason: %s", utils.Format4Output(req, false))
|
||||||
client := ability3156.NewAbility3156(&a.client)
|
client := ability3156.NewAbility3156(&a.client)
|
||||||
|
|
||||||
data, _ := client.AlibabaTclsAelophyRefundCsapplyrender(req, a.token)
|
data, _ := client.AlibabaTclsAelophyRefundCsapplyrender(req, a.token)
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ package tao_vegetable
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
domain3156 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/domain"
|
||||||
|
request3156 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/request"
|
||||||
domain591 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability591/domain"
|
domain591 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability591/domain"
|
||||||
request591 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability591/request"
|
request591 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability591/request"
|
||||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||||
@@ -17,13 +19,25 @@ func TestName(t *testing.T) {
|
|||||||
func TestGetOrderDetail(t *testing.T) {
|
func TestGetOrderDetail(t *testing.T) {
|
||||||
requestParam := &request591.AlibabaAelophyOrderGetRequest{OrderGetRequest: &domain591.AlibabaAelophyOrderGetOrderGetRequest{
|
requestParam := &request591.AlibabaAelophyOrderGetRequest{OrderGetRequest: &domain591.AlibabaAelophyOrderGetOrderGetRequest{
|
||||||
StoreId: utils.String2Pointer("JX668594"),
|
StoreId: utils.String2Pointer("JX668594"),
|
||||||
BizOrderId: utils.Int64ToPointer(5000897506838100922),
|
BizOrderId: utils.Int64ToPointer(5000897608046720922),
|
||||||
}}
|
}}
|
||||||
data, err := apiTao.QueryOrderDetail(requestParam)
|
data, err := apiTao.QueryOrderDetail(requestParam)
|
||||||
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
|
||||||
globals.SugarLogger.Debugf("err := %s", utils.Format4Output(err, false))
|
globals.SugarLogger.Debugf("err := %s", utils.Format4Output(err, false))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestPartialRefundReason(t *testing.T) {
|
||||||
|
param := &request3156.AlibabaTclsAelophyRefundCsapplyrenderRequest{
|
||||||
|
RefundCsApplyRenderDTO: &domain3156.AlibabaTclsAelophyRefundCsapplyrenderRefundCsApplyRenderDto{
|
||||||
|
OutOrderId: utils.String2Pointer("1927937966433804887"),
|
||||||
|
StoreId: utils.String2Pointer("JX668998"),
|
||||||
|
OutSubOrderIds: &[]string{"1927937966433804887"},
|
||||||
|
OrderFrom: utils.Int64ToPointer(utils.Str2Int64(TaoVegetableChannelCode)),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
apiTao.PartialRefundReason(param)
|
||||||
|
}
|
||||||
|
|
||||||
func TestQueryAfsOrderDetail(t *testing.T) {
|
func TestQueryAfsOrderDetail(t *testing.T) {
|
||||||
param := &request591.AlibabaWdkOrderRefundGetRequest{
|
param := &request591.AlibabaWdkOrderRefundGetRequest{
|
||||||
BizOrderIds: &[]int64{1924482145266804887},
|
BizOrderIds: &[]int64{1924482145266804887},
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ package tao_vegetable
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
request1475 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/request"
|
request1475 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/request"
|
||||||
domain3156 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/domain"
|
|
||||||
request3156 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/request"
|
|
||||||
domain585 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability585/domain"
|
domain585 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability585/domain"
|
||||||
request585 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability585/request"
|
request585 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability585/request"
|
||||||
domain587 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability587/domain"
|
domain587 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability587/domain"
|
||||||
@@ -193,18 +191,6 @@ func TestGetSkuDetaul(t *testing.T) {
|
|||||||
globals.SugarLogger.Debugf("result := %s ", utils.Format4Output(result, false))
|
globals.SugarLogger.Debugf("result := %s ", utils.Format4Output(result, false))
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestPartialRefundReason(t *testing.T) {
|
|
||||||
param := &request3156.AlibabaTclsAelophyRefundCsapplyrenderRequest{
|
|
||||||
RefundCsApplyRenderDTO: &domain3156.AlibabaTclsAelophyRefundCsapplyrenderRefundCsApplyRenderDto{
|
|
||||||
OutOrderId: utils.String2Pointer("5000897449678380922"),
|
|
||||||
StoreId: utils.String2Pointer("JX668998"),
|
|
||||||
OutSubOrderIds: &[]string{"3422286108419706112"},
|
|
||||||
OrderFrom: utils.Int64ToPointer(utils.Str2Int64(TaoVegetableChannelCode)),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
apiTao.PartialRefundReason(param)
|
|
||||||
}
|
|
||||||
|
|
||||||
func uploadImg(api *API, imgs []string) *string {
|
func uploadImg(api *API, imgs []string) *string {
|
||||||
result := make([]string, 0, 0)
|
result := make([]string, 0, 0)
|
||||||
for _, v := range imgs {
|
for _, v := range imgs {
|
||||||
|
|||||||
Reference in New Issue
Block a user