-
Notifications
You must be signed in to change notification settings - Fork 0
/
pricing.go
30 lines (26 loc) · 998 Bytes
/
pricing.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
package shopware
// https://github.com/shopware/platform/tree/6.2/src/Core/Framework/DataAbstractionLayer/Pricing
// Price see:
// https://github.com/shopware/platform/blob/6.2/src/Core/Framework/DataAbstractionLayer/Pricing/Price.php
type Price struct {
CurrencyID string `json:"currencyId"`
Net float64 `json:"net"`
Gross float64 `json:"gross"`
Linked bool `json:"linked"`
ListPrice interface{} `json:"listPrice"`
}
// ListingPrice see:
// https://github.com/shopware/platform/blob/6.2/src/Core/Framework/DataAbstractionLayer/Pricing/ListingPrice.php
type ListingPrice struct {
CurrencyID string `json:"currencyId"`
RuleID string `json:"ruleId"`
From Price `json:"from"`
To Price `json:"to"`
}
// PriceRule see:
// https://github.com/shopware/platform/blob/6.2/src/Core/Framework/DataAbstractionLayer/Pricing/PriceRuleEntity.php
type PriceRule struct {
Entity
RuleID string `json:"ruleId"`
Price []Price `json:"price"`
}