From f069f93b17aeab0f3fedac35abd71249949e5337 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Thu, 13 Sep 2018 20:32:26 +0300 Subject: [PATCH] add product & order to channel settings --- v1/types.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/v1/types.go b/v1/types.go index 385728b..4fbf4af 100644 --- a/v1/types.go +++ b/v1/types.go @@ -43,6 +43,20 @@ type ChannelSettings struct { SpamAllowed bool `json:"spam_allowed"` Status Status `json:"status"` Text ChannelSettingsText `json:"text"` + Product Product `json:"product"` + Order Order `json:"order"` +} + +type Product struct { + Creating string `json:"creating"` + Editing string `json:"editing"` + Deleting string `json:"deleting"` +} + +type Order struct { + Creating string `json:"creating"` + Editing string `json:"editing"` + Deleting string `json:"deleting"` } // Status struct