Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion payments/payments.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,14 @@ const (
TwoDayOrMore DeliveryTimeframe = "two_day_or_more"
)

type ItemType string

const (
DigitalIT ItemType = "digital"
DiscountIT ItemType = "discount"
PhysicalIT ItemType = "physical"
)

type ItemSubType string

const (
Expand Down Expand Up @@ -694,7 +702,7 @@ type (
}

Product struct {
Type string `json:"type,omitempty"`
Type ItemType `json:"type,omitempty"`
SubType ItemSubType `json:"sub_type,omitempty"`
Name string `json:"name,omitempty"`
Quantity int `json:"quantity,omitempty"`
Expand Down