-
Notifications
You must be signed in to change notification settings - Fork 15
/
reverseorder_.go
73 lines (64 loc) · 3.21 KB
/
reverseorder_.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package tiktok
type RejectReverseRequest struct {
ReverseOrderID string `json:"reverse_order_id"`
ReverseRejectReasonKey string `json:"reverse_reject_reason_key"`
ReverseRejectComments string `json:"reverse_reject_comments"`
}
type GetReverseListRequest struct {
UpdateTimeFrom int `json:"update_time_from,omitempty"`
UpdateTimeTo int `json:"update_time_to,omitempty"`
ReverseType int `json:"reverse_type,omitempty" example:"REFUND_ONLY = 2 RETURN_AND_REFUND = 3 REQUEST_CANCEL = 4"`
SortBy int `json:"sort_by,omitempty" example:"REQUEST_TIME=0(default) UPDATE_TIME=1 REFUND_TOTAL=2"`
SortType int `json:"sort_type,omitempty" example:"ASC=0 DESC=1(default)"`
Offset int `json:"offset" validate:"min=0"`
Size int `json:"size" validate:"required,min=1,max=100"`
ReverseOrderStatus int `json:"reverse_order_status,omitempty"`
OrderID int `json:"order_id,omitempty"`
ReverseOrderID int `json:"reverse_order_id,omitempty"`
}
type GetReverseReasonRequest struct {
ReverseActionType int `json:"reverse_action_type,omitempty" url:"reverse_action_type,omitempty" example:"Available value: CANCEL = 1;REFUND = 2;RETURN_AND_REFUND = 3;REQUEST_CANCEL_REFUND = 4 "`
ReasonType int `json:"reason_type,omitempty" url:"reason_type,omitempty" example:"Available value: STARTE_REVERSE = 1; REJECT_APPLY = 2; REJECT_PARCEL = 3"`
}
type ReverseReason struct {
ReverseReasonKey string `json:"reverse_reason_key"`
ReverseReason string `json:"reverse_reason"`
AvailableOrderStatusList []int `json:"available_order_status_list"`
}
type ReverseReasonList struct {
ReverseReasonList []ReverseReason `json:"reverse_reason_list"`
}
type ReturnItem struct {
ReturnProductID string `json:"return_product_id"`
ReturnProductName string `json:"return_product_name"`
SkuID string `json:"sku_id"`
SellerSku string `json:"seller_sku"`
SkuName string `json:"sku_name"`
ReturnQuantity int `json:"return_quantity"`
ProductImages string `json:"product_images"`
}
type ReverseRecord struct {
Description string `json:"description"`
UpdateTime int `json:"update_time"`
ReasonText string `json:"reason_text"`
AdditionalMessage string `json:"additional_message"`
AdditionalImageList []string `json:"additional_image_list"`
}
type Reverse struct {
ReverseOrderID string `json:"reverse_order_id"`
OrderID string `json:"order_id"`
RefundTotal string `json:"refund_total"`
Currency string `json:"currency"`
ReverseType int `json:"reverse_type"`
ReturnReason string `json:"return_reason"`
ReturnItemList []ReturnItem `json:"return_item_list"`
ReverseStatusValue int `json:"reverse_status_value"`
ReverseRequestTime int `json:"reverse_request_time"`
ReverseUpdateTime int `json:"reverse_update_time"`
ReturnTrackingID string `json:"return_tracking_id"`
ReverseRecordList []ReverseRecord `json:"reverse_record_list"`
}
type ReverseOrdersList struct {
ReverseList []Reverse `json:"reverse_list"`
More bool `json:"more"`
}