feat(t239): persist freight item metadata
This commit is contained in:
@@ -6,6 +6,7 @@ const (
|
||||
FreightSourceShunyunbao = "SHUNYUNBAO"
|
||||
FreightSyncOrderNumber = "ORDER_NUMBER"
|
||||
FreightSyncCreatedRange = "CREATED_RANGE"
|
||||
FreightCurrencyTWD = "TWD"
|
||||
)
|
||||
|
||||
type FreightSyncStatus string
|
||||
@@ -58,22 +59,24 @@ type FreightOrder struct {
|
||||
}
|
||||
|
||||
type FreightOrderItem struct {
|
||||
ID string
|
||||
FreightOrderID string
|
||||
ExternalItemID string
|
||||
Title string
|
||||
ProductSpec string
|
||||
SKU string
|
||||
Quantity *int
|
||||
ProductThumbRef *string
|
||||
PurchaseStatus *string
|
||||
CanonicalSHA256 string
|
||||
Revision int
|
||||
IsPresent bool
|
||||
FirstSyncRunID string
|
||||
LastSyncRunID string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
ID string
|
||||
FreightOrderID string
|
||||
ExternalItemID string
|
||||
Title string
|
||||
ProductSpec string
|
||||
SKU string
|
||||
Quantity *int
|
||||
ProductThumbRef *string
|
||||
OriginalUnitPriceMinor *int64
|
||||
OriginalCurrency string
|
||||
PurchaseStatus *string
|
||||
CanonicalSHA256 string
|
||||
Revision int
|
||||
IsPresent bool
|
||||
FirstSyncRunID string
|
||||
LastSyncRunID string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type FreightOrderDetail struct {
|
||||
@@ -114,13 +117,15 @@ type FreightSourceOrder struct {
|
||||
}
|
||||
|
||||
type FreightSourceItem struct {
|
||||
ExternalItemID string `json:"external_item_id"`
|
||||
Title string `json:"title"`
|
||||
ProductSpec string `json:"product_spec"`
|
||||
SKU string `json:"sku"`
|
||||
Quantity *int `json:"quantity"`
|
||||
ProductThumbRef *string `json:"product_thumb_ref"`
|
||||
PurchaseStatus *string `json:"purchase_status"`
|
||||
ExternalItemID string `json:"external_item_id"`
|
||||
Title string `json:"title"`
|
||||
ProductSpec string `json:"product_spec"`
|
||||
SKU string `json:"sku"`
|
||||
Quantity *int `json:"quantity"`
|
||||
ProductThumbRef *string `json:"product_thumb_ref"`
|
||||
OriginalUnitPriceMinor *int64 `json:"original_unit_price_minor"`
|
||||
OriginalCurrency string `json:"original_currency"`
|
||||
PurchaseStatus *string `json:"purchase_status"`
|
||||
}
|
||||
|
||||
type FreightImportBatch struct {
|
||||
@@ -142,13 +147,15 @@ type FreightImportOrder struct {
|
||||
}
|
||||
|
||||
type FreightImportItem struct {
|
||||
ID string
|
||||
ExternalItemID string
|
||||
Title string
|
||||
ProductSpec string
|
||||
SKU string
|
||||
Quantity *int
|
||||
ProductThumbRef *string
|
||||
PurchaseStatus *string
|
||||
CanonicalSHA256 string
|
||||
ID string
|
||||
ExternalItemID string
|
||||
Title string
|
||||
ProductSpec string
|
||||
SKU string
|
||||
Quantity *int
|
||||
ProductThumbRef *string
|
||||
OriginalUnitPriceMinor *int64
|
||||
OriginalCurrency string
|
||||
PurchaseStatus *string
|
||||
CanonicalSHA256 string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user