Repository navigation
Expand file tree
/
Copy pathtypes.go
More file actions
197 lines (189 loc) · 11.6 KB
/
Copy pathtypes.go
File metadata and controls
197 lines (189 loc) · 11.6 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
package importer
type ImporterBody struct {
Pk string `json:"pk" mapstructure:"pk"`
Filename string `json:"filename" mapstructure:"filename"`
ImportSettings ImportSettings `json:"importSettings" mapstructure:"importSettings"`
Items []ImportItem `json:"items" mapstructure:"items"`
}
type ImportStatus struct {
ImportID string `json:"importID"`
TenantID string `json:"tenantID"`
Status string `json:"status"`
}
type Item struct {
Pk string `json:"pk"`
Sk string `json:"sk"`
Data map[string]interface{} `json:"data"`
Items interface{} `json:"items"`
}
type ImportSettings struct {
ProductsOnly bool `json:"productsOnly" mapstructure:"productsOnly"`
StockOnly bool `json:"stockOnly" mapstructure:"stockOnly"`
IsMainMenu bool `json:"isMainMenu" mapstructure:"isMainMenu"`
IsNewMenu bool `json:"isNewMenu" mapstructure:"isNewMenu"`
IsActiveMenu bool `json:"isActiveMenu" mapstructure:"isActiveMenu"`
MenuName string `json:"menuName" mapstructure:"menuName"`
LangID string `json:"langID" mapstructure:"langID"`
SelectedStores []string `json:"selectedStores" mapstructure:"selectedStores"`
SelectedLocation string `json:"selectedLocation" mapstructure:"selectedLocation"`
SelectedMenuID string `json:"selectedMenuID" mapstructure:"selectedMenuID"`
}
type ImportItem struct {
ActiveInLocationAutoMenu bool `json:"activeInLocationAutoMenu" dynamo:"activeInLocationAutoMenu"`
AlertLevel *float64 `json:"alertLevel" dynamo:"alertLevel"`
AllowInAutoMenu *bool `json:"allowInAutoMenu" dynamo:"allowInAutoMenu"`
AllowOverridePrice bool `json:"allowOverridePrice" dynamo:"allowOverridePrice"`
AltBarcode1 string `json:"altBarcode1" dynamo:"altBarcode1"`
AltBarcode2 string `json:"altBarcode2" dynamo:"altBarcode2"`
AltBarcode3 string `json:"altBarcode3" dynamo:"altBarcode3"`
AltUnit1 string `json:"altUnit1" dynamo:"altUnit1"`
AltUnit2 string `json:"altUnit2" dynamo:"altUnit2"`
AltUnit3 string `json:"altUnit3" dynamo:"altUnit3"`
AutoAcceptIfStockAvailable bool `json:"autoAcceptIfStockAvailable" dynamo:"autoAcceptIfStockAvailable"`
AutoAcceptToGo bool `json:"autoAcceptToGo" dynamo:"autoAcceptToGo"`
AvailableSelfService bool `json:"availableSelfService" dynamo:"availableSelfService"`
AvailableToGo bool `json:"availableToGo" dynamo:"availableToGo"`
AvailableTA bool `json:"availableTA" dynamo:"availableTA"`
AveCost *float64 `json:"aveCost" dynamo:"aveCost"`
Barcode string `json:"barcode" dynamo:"barcode"`
ButtonName string `json:"buttonName" dynamo:"buttonName"`
Department string `json:"department" dynamo:"department"`
EmbeddedBarcodeType string `json:"embeddedBarcodeType" dynamo:"embeddedBarcodeType"`
Description string `json:"description" dynamo:"description"`
Fri bool `json:"fri" dynamo:"fri"`
FullName string `json:"fullName" dynamo:"fullName"`
Heading1 string `json:"heading1" dynamo:"heading1"`
Heading2 string `json:"heading2" dynamo:"heading2"`
Heading3 string `json:"heading3" dynamo:"heading3"`
Heading4 string `json:"heading4" dynamo:"heading4"`
HostedAccountID string `json:"hostedAccountID" dynamo:"hostedAccountID"`
ItemID string `json:"itemID" dynamo:"id"`
IsIngredient bool `json:"isIngredient" dynamo:"isIngredient"`
IsIngredientOnly bool `json:"isIngredientOnly" dynamo:"isIngredientOnly"`
IsModifierOnly bool `json:"isModifierOnly" dynamo:"isModifierOnly"`
IsProduced bool `json:"isProduced" dynamo:"isProduced"`
IsProductionItem bool `json:"isProductionItem" dynamo:"isProductionItem"`
ItemCost float64 `json:"itemCost" dynamo:"itemCost"`
LastCost *float64 `json:"lastCost" dynamo:"lastCost"`
Mon bool `json:"mon" dynamo:"mon"`
PrepTime string `json:"prepTime" dynamo:"prepTime"`
Price *float64 `json:"price" dynamo:"price"`
PrintSlipName string `json:"printSlipName" dynamo:"printSlipName"`
Printer string `json:"printer" dynamo:"printer"`
PrinterID string `json:"printerID" dynamo:"printerID"`
ProdUnit string `json:"prodUnit" dynamo:"prodUnit"`
PurchaseTaxGroup string `json:"purchaseTaxGroup" dynamo:"purchaseTaxGroup"`
ReOrderLevel *float64 `json:"reOrderLevel" dynamo:"reOrderLevel"`
RequiresManagerSignOff bool `json:"requiresManagerSignOff" dynamo:"requiresManagerSignOff"`
SKU string `json:"sku" dynamo:"sku"`
Sat bool `json:"sat" dynamo:"sat"`
SellingTaxGroup string `json:"sellingTaxGroup" dynamo:"sellingTaxGroup"`
ServeFrom string `json:"serveFrom" dynamo:"serveFrom"`
ServeUntil string `json:"serveUntil" dynamo:"serveUntil"`
StockItemIsActive *bool `json:"stockItemIsActive" dynamo:"stockItemIsActive"`
Sun bool `json:"sun" dynamo:"sun"`
Supplier string `json:"supplier" dynamo:"supplier"`
TargetStockLevel *float64 `json:"targetStockLevel" dynamo:"targetStockLevel"`
TaxCode string `json:"taxCode" dynamo:"taxCode"`
Thur bool `json:"thur" dynamo:"thur"`
TreeID string `json:"treeID" dynamo:"treeID"`
Tue bool `json:"tue" dynamo:"tue"`
Unit string `json:"unit" dynamo:"unit"`
Wed bool `json:"wed" dynamo:"wed"`
QtyAvailable *float64 `json:"qtyAvailable" dynamo:"qtyAvailable"`
}
type ImportMenu struct {
ID string `json:"id" dynamo:"id" gorm:"column:ID;primaryKey;autoIncrement:true"`
Name string `json:"name" dynamo:"name" gorm:"column:Name;type:string"`
Active bool `json:"active" dynamo:"active" gorm:"column:Active;type:int"`
IsArchived bool `json:"isArchived" dynamo:"isArchived" gorm:"column:IsArchived;type:int"`
BusyPublishing bool `json:"busyPublishing" dynamo:"busyPublishing" gorm:"column:BusyPublishing;type:int"`
BusyTranslating bool `json:"busyTranslating" dynamo:"busyTranslating" gorm:"column:BusyTranslating;type:int"`
SellingLocationID string `json:"sellingLocationId" dynamo:"sellingLocationId" gorm:"column:SellingLocationID;type:string"`
MenuTypeID int `json:"menuTypeId" dynamo:"menuTypeId" gorm:"column:MenuTypeID;type:int"`
IsAutoMenu bool `json:"isAutoMenu" dynamo:"isAutoMenu" gorm:"column:IsAutoMenu;type:int"`
TenantID string `json:"tenantId" dynamo:"tenantId" gorm:"column:TenantID;type:string"`
Pk string `gorm:"-"`
}
type ImportResponseData struct {
ItemID string `json:"itemID"`
ItemName string `json:"itemName"`
ErrorMessage string `json:"errorMessage"`
}
type ImportStockAdjustment struct {
SelectedStores []string `json:"selectedStores"`
MenuItemID string `json:"menuItemId"`
StockItemID string `json:"stockItemId"`
ItemName string `json:"itemName"`
SKU string `json:"sku"`
Barcode string `json:"barcode"`
CategoryID string `json:"categoryId"`
CategoryName string `json:"categoryName"`
Quantity *float64 `json:"quantity"`
Price *float64 `json:"price"`
AverageCost *float64 `json:"averageCost"`
LastCost *float64 `json:"lastCost"`
UnitID string `json:"unitId"`
Unit string `json:"unit"`
PriceInclusive float64 `json:"priceInclusive"`
PriceExclusive float64 `json:"priceExclusive"`
TaxPercent float64 `json:"taxPercent"`
TaxGroupID string `json:"taxGroupId"`
TaxTypeID string `json:"taxTypeId"`
RemoteID *string `json:"remoteId"`
ActiveInLocationAutoMenu bool `json:"activeInLocationAutoMenu"`
AlertLevel *float64 `json:"alertLevel"`
AllowInAutoMenu *bool `json:"allowInAutoMenu"`
AllowOverridePrice bool `json:"allowOverridePrice"`
AltBarcode1 string `json:"altBarcode1"`
AltBarcode2 string `json:"altBarcode2"`
AltBarcode3 string `json:"altBarcode3"`
AltUnit1 string `json:"altUnit1"`
AltUnit2 string `json:"altUnit2"`
AltUnit3 string `json:"altUnit3"`
AutoAcceptIfStockAvailable bool `json:"autoAcceptIfStockAvailable"`
AutoAcceptToGo bool `json:"autoAcceptToGo"`
AvailableSelfService bool `json:"availableSelfService"`
AvailableToGo bool `json:"availableToGo"`
AvailableTA bool `json:"availableTA"`
ButtonName string `json:"buttonName"`
Department string `json:"department"`
Description string `json:"description"`
EmbeddedBarcodeType string `json:"embeddedBarcodeType"`
Fri bool `json:"fri"`
FullName string `json:"fullName"`
Heading1 string `json:"heading1"`
Heading2 string `json:"heading2"`
Heading3 string `json:"heading3"`
Heading4 string `json:"heading4"`
HostedAccountID string `json:"hostedAccountID"`
ItemID string `json:"itemID"`
IsIngredient bool `json:"isIngredient"`
IsIngredientOnly bool `json:"isIngredientOnly"`
IsModifierOnly bool `json:"isModifierOnly"`
IsProduced bool `json:"isProduced"`
IsProductionItem bool `json:"isProductionItem"`
ItemCost float64 `json:"itemCost"`
Mon bool `json:"mon"`
PrepTime string `json:"prepTime"`
PrintSlipName string `json:"printSlipName"`
Printer string `json:"printer"`
PrinterID string `json:"printerID"`
ProdUnit string `json:"prodUnit"`
PurchaseTaxGroup string `json:"purchaseTaxGroup"`
ReOrderLevel *float64 `json:"reOrderLevel"`
RequiresManagerSignOff bool `json:"requiresManagerSignOff"`
Sat bool `json:"sat"`
SellingTaxGroup string `json:"sellingTaxGroup"`
ServeFrom string `json:"serveFrom"`
ServeUntil string `json:"serveUntil"`
StockItemIsActive *bool `json:"stockItemIsActive"`
Sun bool `json:"sun"`
Supplier *string `json:"supplier"`
TargetStockLevel *float64 `json:"targetStockLevel"`
TaxCode string `json:"taxCode"`
Thur bool `json:"thur"`
TreeID string `json:"treeID"`
Tue bool `json:"tue"`
Wed bool `json:"wed"`
}