Skip to content

Commit

Permalink
Merge pull request #15 from husennasrullah/master
Browse files Browse the repository at this point in the history
feat: add field attribute in salesorder struct
  • Loading branch information
zidni722 authored Feb 5, 2024
2 parents a87e6fe + cab3697 commit b610704
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions model/sales_attributes.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package model

import "time"

type SalesAttribute struct {
ID int64 `json:"id"`
OrderID int64 `json:"order_id"`
AttributeName string `json:"attribute_name"`
AttributeValue string `json:"attribute_value"`
CreatedAt time.Time `json:"created_at"`
}
1 change: 1 addition & 0 deletions model/sales_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ type SalesOrder struct {
SessionId int `json:"session_id"`
SessionDate string `json:"session_date"`
SessionTime string `json:"session_time"`
Attribute *SalesAttribute `json:"attribute"`
}

type SalesOrderItemGroup struct {
Expand Down

0 comments on commit b610704

Please sign in to comment.