more cart

This commit is contained in:
2026-07-01 10:40:28 +02:00
parent 75db64ce75
commit b1e99891e9
30 changed files with 1058 additions and 93 deletions
+25 -9
View File
@@ -156,15 +156,17 @@ func (x *Address) GetIsDefaultBilling() bool {
// SetProfile sets the user's core profile information.
type SetProfile struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"`
Phone *string `protobuf:"bytes,3,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
Language *string `protobuf:"bytes,4,opt,name=language,proto3,oneof" json:"language,omitempty"`
Currency *string `protobuf:"bytes,5,opt,name=currency,proto3,oneof" json:"currency,omitempty"`
AvatarUrl *string `protobuf:"bytes,6,opt,name=avatarUrl,proto3,oneof" json:"avatarUrl,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
state protoimpl.MessageState `protogen:"open.v1"`
Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"`
Phone *string `protobuf:"bytes,3,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
Language *string `protobuf:"bytes,4,opt,name=language,proto3,oneof" json:"language,omitempty"`
Currency *string `protobuf:"bytes,5,opt,name=currency,proto3,oneof" json:"currency,omitempty"`
AvatarUrl *string `protobuf:"bytes,6,opt,name=avatarUrl,proto3,oneof" json:"avatarUrl,omitempty"`
OrderEmails *bool `protobuf:"varint,7,opt,name=orderEmails,proto3,oneof" json:"orderEmails,omitempty"`
MarketingEmails *bool `protobuf:"varint,8,opt,name=marketingEmails,proto3,oneof" json:"marketingEmails,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetProfile) Reset() {
@@ -239,6 +241,20 @@ func (x *SetProfile) GetAvatarUrl() string {
return ""
}
func (x *SetProfile) GetOrderEmails() bool {
if x != nil && x.OrderEmails != nil {
return *x.OrderEmails
}
return false
}
func (x *SetProfile) GetMarketingEmails() bool {
if x != nil && x.MarketingEmails != nil {
return *x.MarketingEmails
}
return false
}
// AddAddress adds a new address to the user's address book.
type AddAddress struct {
state protoimpl.MessageState `protogen:"open.v1"`