From 04234835fbc60a776a2d20f190b9c4ba497626a3 Mon Sep 17 00:00:00 2001 From: Valentin Kaiser Date: Tue, 17 Dec 2024 17:10:24 +0100 Subject: [PATCH] [FIX] boolean are pointer now to satisfy omitempty --- model/app.go | 6 +++--- model/app_action_button.go | 2 +- model/app_template.go | 2 +- model/category.go | 8 ++++---- model/category_translation.go | 2 +- model/cms_block.go | 2 +- model/cms_page.go | 2 +- model/cms_section.go | 2 +- model/cms_slot.go | 2 +- model/country.go | 16 ++++++++-------- model/country_state.go | 2 +- model/currency.go | 4 ++-- model/custom_field.go | 2 +- model/custom_field_set.go | 4 ++-- model/customer.go | 8 ++++---- model/customer_group.go | 6 +++--- model/customer_group_translation.go | 2 +- model/dead_message.go | 2 +- model/document.go | 4 ++-- model/document_base_config.go | 2 +- model/event_action.go | 2 +- model/flow.go | 4 ++-- model/flow_sequence.go | 2 +- model/import_export_profile.go | 2 +- model/integration.go | 4 ++-- model/landing_page.go | 2 +- model/mail_header_footer.go | 2 +- model/mail_template.go | 2 +- model/media.go | 4 ++-- model/media_folder.go | 2 +- model/media_folder_configuration.go | 8 ++++---- model/notification.go | 2 +- model/number_range.go | 2 +- model/number_range_type.go | 2 +- model/order_line_item.go | 6 +++--- model/payment_method.go | 10 +++++----- model/plugin.go | 4 ++-- model/product.go | 12 ++++++------ model/product_cross_selling.go | 2 +- model/product_export.go | 6 +++--- model/product_price.go | 2 +- model/product_review.go | 2 +- model/product_search_config.go | 2 +- model/product_search_config_field.go | 6 +++--- model/product_sorting.go | 4 ++-- model/product_stream.go | 2 +- model/promotion.go | 16 ++++++++-------- model/promotion_discount.go | 2 +- model/property_group.go | 4 ++-- model/rule.go | 2 +- model/sales_channel.go | 8 ++++---- model/sales_channel_analytics.go | 6 +++--- model/sales_channel_domain.go | 2 +- model/sales_channel_translation.go | 2 +- model/script.go | 2 +- model/seo_url.go | 6 +++--- model/seo_url_template.go | 2 +- model/shipping_method.go | 2 +- model/tax.go | 2 +- model/theme.go | 2 +- model/user.go | 4 ++-- model/user_access_key.go | 2 +- model/version_commit.go | 2 +- model/webhook.go | 2 +- 64 files changed, 123 insertions(+), 123 deletions(-) diff --git a/model/app.go b/model/app.go index 3c19ed3..9607e29 100644 --- a/model/app.go +++ b/model/app.go @@ -6,12 +6,12 @@ type App struct { AclRole *AclRole `json:"aclRole,omitempty"` AclRoleId string `json:"aclRoleId,omitempty"` // required ActionButtons []AppActionButton `json:"actionButtons,omitempty"` - Active bool `json:"activ"` // required - AllowDisable bool `json:"allowDisable"` // required + Active *bool `json:"activ,omitempty"` // required + AllowDisable *bool `json:"allowDisable,omitempty"` // required AppSecret string `json:"appSecret,omitempty"` Author string `json:"author,omitempty"` CmsBlocks []AppCmsBlock `json:"cmsBlocks,omitempty"` - Configurable bool `json:"configurable"` // required + Configurable *bool `json:"configurable,omitempty"` // required Cookies interface{} `json:"cookies,omitempty"` Copyright string `json:"copyright,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` diff --git a/model/app_action_button.go b/model/app_action_button.go index fb6990a..63a0922 100644 --- a/model/app_action_button.go +++ b/model/app_action_button.go @@ -10,7 +10,7 @@ type AppActionButton struct { Entity string `json:"entity,omitempty"` // required Id string `json:"id,omitempty"` Label string `json:"label,omitempty"` // required - OpenNewTab bool `json:"openNewTab"` + OpenNewTab *bool `json:"openNewTab,omitempty"` Translated interface{} `json:"translated,omitempty"` Translations []AppActionButtonTranslation `json:"translations,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/model/app_template.go b/model/app_template.go index 4cfeac0..8e8d9f3 100644 --- a/model/app_template.go +++ b/model/app_template.go @@ -3,7 +3,7 @@ package model import "time" type AppTemplate struct { - Active bool `json:"active"` // required + Active *bool `json:"active,omitempty"` // required App *App `json:"app,omitempty"` AppId string `json:"appId,omitempty"` // required CreatedAt *time.Time `json:"createdAt,omitempty"` diff --git a/model/category.go b/model/category.go index bbe2719..0a729f8 100644 --- a/model/category.go +++ b/model/category.go @@ -3,7 +3,7 @@ package model import "time" type Category struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` AfterCategoryId string `json:"afterCategoryId,omitempty"` AfterCategoryVersionId string `json:"afterCategoryVersionId,omitempty"` AutoIncrement float64 `json:"autoIncrement,omitempty"` @@ -16,14 +16,14 @@ type Category struct { CreatedAt *time.Time `json:"createdAt,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` Description string `json:"description"` - DisplayNestedProducts bool `json:"displayNestedProducts"` // required + DisplayNestedProducts *bool `json:"displayNestedProducts,omitempty"` // required ExternalLink string `json:"externalLink,omitempty"` FooterSalesChannels []SalesChannel `json:"footerSalesChannels,omitempty"` Id string `json:"id,omitempty"` InternalLink string `json:"internalLink,omitempty"` Keywords string `json:"keywords,omitempty"` Level float64 `json:"level,omitempty"` - LinkNewTab bool `json:"linkNewTab"` + LinkNewTab *bool `json:"linkNewTab,omitempty"` LinkType string `json:"linkType,omitempty"` MainCategories []MainCategory `json:"mainCategories,omitempty"` Media *Media `json:"media,omitempty"` @@ -50,5 +50,5 @@ type Category struct { Type string `json:"type,omitempty"` // required UpdatedAt *time.Time `json:"updatedAt,omitempty"` VersionId string `json:"versionId,omitempty"` - Visible bool `json:"visible"` + Visible *bool `json:"visible,omitempty"` } diff --git a/model/category_translation.go b/model/category_translation.go index d9d6539..969013c 100644 --- a/model/category_translation.go +++ b/model/category_translation.go @@ -15,7 +15,7 @@ type CategoryTranslation struct { Keywords string `json:"keywords,omitempty"` Language *Language `json:"language,omitempty"` LanguageId string `json:"languageId,omitempty"` - LinkNewTab bool `json:"linkNewTab"` + LinkNewTab *bool `json:"linkNewTab,omitempty"` LinkType string `json:"linkType,omitempty"` MetaDescription string `json:"metaDescription,omitempty"` MetaTitle string `json:"metaTitle,omitempty"` diff --git a/model/cms_block.go b/model/cms_block.go index 4abe915..1b78f8a 100644 --- a/model/cms_block.go +++ b/model/cms_block.go @@ -12,7 +12,7 @@ type CmsBlock struct { CssClass string `json:"cssClass,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` Id string `json:"id,omitempty"` - Locked bool `json:"locked"` + Locked *bool `json:"locked,omitempty"` MarginBottom string `json:"marginBottom,omitempty"` MarginLeft string `json:"marginLeft,omitempty"` MarginRight string `json:"marginRight,omitempty"` diff --git a/model/cms_page.go b/model/cms_page.go index 82f0ba8..2f2bf97 100644 --- a/model/cms_page.go +++ b/model/cms_page.go @@ -11,7 +11,7 @@ type CmsPage struct { HomeSalesChannels []SalesChannel `json:"homeSalesChannels,omitempty"` Id string `json:"id,omitempty"` LandingPages []LandingPage `json:"landingPages,omitempty"` - Locked bool `json:"locked"` + Locked *bool `json:"locked,omitempty"` Name string `json:"name,omitempty"` PreviewMedia *Media `json:"previewMedia,omitempty"` PreviewMediaId string `json:"previewMediaId,omitempty"` diff --git a/model/cms_section.go b/model/cms_section.go index da4181d..b6c7327 100644 --- a/model/cms_section.go +++ b/model/cms_section.go @@ -13,7 +13,7 @@ type CmsSection struct { CssClass string `json:"cssClass,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` Id string `json:"id,omitempty"` - Locked bool `json:"locked"` + Locked *bool `json:"locked,omitempty"` MobileBehavior string `json:"mobileBehavior,omitempty"` Name string `json:"name,omitempty"` Page *CmsPage `json:"page,omitempty"` diff --git a/model/cms_slot.go b/model/cms_slot.go index 2269416..2d6bd28 100644 --- a/model/cms_slot.go +++ b/model/cms_slot.go @@ -11,7 +11,7 @@ type CmsSlot struct { CustomFields interface{} `json:"customFields,omitempty"` Data interface{} `json:"data,omitempty"` Id string `json:"id,omitempty"` - Locked bool `json:"locked"` + Locked *bool `json:"locked,omitempty"` Slot string `json:"slot,omitempty"` // required Translated interface{} `json:"translated,omitempty"` Translations []CmsSlotTranslation `json:"translations,omitempty"` diff --git a/model/country.go b/model/country.go index ca60fdf..7f10aba 100644 --- a/model/country.go +++ b/model/country.go @@ -3,18 +3,18 @@ package model import "time" type Country struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` AddressFormat string `json:"addressFormat,omitempty"` // required - CheckVatIdPattern bool `json:"checkVatIdPattern"` + CheckVatIdPattern *bool `json:"checkVatIdPattern,omitempty"` CompanyTax interface{} `json:"companyTax,omitempty"` - CompanyTaxFree bool `json:"companyTaxFree"` + CompanyTaxFree *bool `json:"companyTaxFree,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` CurrencyCountryRoundings []CurrencyCountryRounding `json:"currencyCountryRoundings,omitempty"` CustomerAddresses []CustomerAddress `json:"customerAddresses,omitempty"` CustomerTax *CTax `json:"customerTax,omitempty"` CustomFields *CTax `json:"customFields,omitempty"` - DisplayStateInRegistration bool `json:"displayStateInRegistration"` - ForceStateInRegistration bool `json:"forceStateInRegistration"` + DisplayStateInRegistration *bool `json:"displayStateInRegistration,omitempty"` + ForceStateInRegistration *bool `json:"forceStateInRegistration,omitempty"` Id string `json:"id,omitempty"` Iso string `json:"iso,omitempty"` Iso3 string `json:"iso3,omitempty"` @@ -23,13 +23,13 @@ type Country struct { Position float64 `json:"position,omitempty"` SalesChannelDefaultAssignments []SalesChannel `json:"salesChannelDefaultAssignments,omitempty"` SalesChannels []SalesChannel `json:"salesChannels,omitempty"` - ShippingAvailable bool `json:"shippingAvailable"` + ShippingAvailable *bool `json:"shippingAvailable,omitempty"` States []CountryState `json:"states,omitempty"` - TaxFree bool `json:"taxFree"` + TaxFree *bool `json:"taxFree,omitempty"` TaxRules []TaxRule `json:"taxRules,omitempty"` Translated interface{} `json:"translated,omitempty"` Translations []CountryTranslation `json:"translations,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` VatIdPattern string `json:"vatIdPattern,omitempty"` - VatIdRequired bool `json:"vatIdRequired"` + VatIdRequired *bool `json:"vatIdRequired,omitempty"` } diff --git a/model/country_state.go b/model/country_state.go index 10bcdc0..e73ba65 100644 --- a/model/country_state.go +++ b/model/country_state.go @@ -3,7 +3,7 @@ package model import "time" type CountryState struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` Country *Country `json:"country,omitempty"` CountryId string `json:"countryId,omitempty"` // required CreatedAt *time.Time `json:"createdAt,omitempty"` diff --git a/model/currency.go b/model/currency.go index 30c222c..0025b63 100644 --- a/model/currency.go +++ b/model/currency.go @@ -9,7 +9,7 @@ type Currency struct { Factor float64 `json:"factor,omitempty"` // required Id string `json:"id,omitempty"` IsoCode string `json:"isoCode,omitempty"` // required - IsSystemDefault bool `json:"isSystemDefault"` + IsSystemDefault *bool `json:"isSystemDefault,omitempty"` ItemRounding Rounding `json:"itemRounding,omitempty"` // required Name string `json:"name,omitempty"` // required Orders []Order `json:"orders,omitempty"` @@ -31,5 +31,5 @@ type Currency struct { type Rounding struct { Decimals int64 `json:"decimals,omitempty"` // required Intervals int64 `json:"intervals,omitempty"` // required - RoundForNet bool `json:"roundForNet"` // required + RoundForNet *bool `json:"roundForNet"` // required } diff --git a/model/custom_field.go b/model/custom_field.go index f291be0..d7f128a 100644 --- a/model/custom_field.go +++ b/model/custom_field.go @@ -3,7 +3,7 @@ package model import "time" type CustomField struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` Config interface{} `json:"config,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` CustomFieldSet *CustomFieldSet `json:"customFieldSet,omitempty"` diff --git a/model/custom_field_set.go b/model/custom_field_set.go index 7341a7a..697baee 100644 --- a/model/custom_field_set.go +++ b/model/custom_field_set.go @@ -3,13 +3,13 @@ package model import "time" type CustomFieldSet struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` App *App `json:"app,omitempty"` AppId string `json:"appId,omitempty"` Config interface{} `json:"config,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` CustomFields []CustomField `json:"customFields,omitempty"` - Global bool `json:"global"` + Global *bool `json:"global,omitempty"` Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` // required Position float64 `json:"position,omitempty"` diff --git a/model/customer.go b/model/customer.go index 88b050f..bb7d824 100644 --- a/model/customer.go +++ b/model/customer.go @@ -3,7 +3,7 @@ package model import "time" type Customer struct { - Active bool `json:"active"` + Active *bool `json:"active"` Addresses []CustomerAddress `json:"addresses,omitempty"` AffiliateCode string `json:"affiliateCode,omitempty"` AutoIncrement float64 `json:"autoIncrement,omitempty"` @@ -23,13 +23,13 @@ type Customer struct { DefaultShippingAddressId string `json:"defaultShippingAddressId,omitempty"` DoubleOptInConfirmDate *time.Time `json:"doubleOptInConfirmDate,omitempty"` DoubleOptInEmailSentDate *time.Time `json:"doubleOptInEmailSentDate,omitempty"` - DoubleOptInRegistration bool `json:"doubleOptInRegistration"` + DoubleOptInRegistration *bool `json:"doubleOptInRegistration"` Email string `json:"email,omitempty"` // required FirstLogin *time.Time `json:"firstLogin,omitempty"` FirstName string `json:"firstName,omitempty"` // required Group *CustomerGroup `json:"group,omitempty"` GroupId string `json:"groupId,omitempty"` // required - Guest bool `json:"guest"` + Guest *bool `json:"guest"` Hash string `json:"hash,omitempty"` Id string `json:"id,omitempty"` Language *Language `json:"language,omitempty"` @@ -41,7 +41,7 @@ type Customer struct { LastPaymentMethodId string `json:"lastPaymentMethodId,omitempty"` LegacyEncoder string `json:"legacyEncoder,omitempty"` LegacyPassword string `json:"legacyPassword,omitempty"` - Newsletter bool `json:"newsletter"` + Newsletter *bool `json:"newsletter,omitempty"` NewsletterSalesChannelIds interface{} `json:"newsletterSalesChannelIds,omitempty"` OrderCount float64 `json:"orderCount,omitempty"` OrderCustomers []OrderCustomer `json:"orderCustomers,omitempty"` diff --git a/model/customer_group.go b/model/customer_group.go index 871834c..46de333 100644 --- a/model/customer_group.go +++ b/model/customer_group.go @@ -6,12 +6,12 @@ type CustomerGroup struct { CreatedAt *time.Time `json:"createdAt,omitempty"` Customers []Customer `json:"customers,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` - DisplayGross bool `json:"displayGross"` + DisplayGross *bool `json:"displayGross,omitempty"` Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` // required - RegistrationActive bool `json:"registrationActive"` + RegistrationActive *bool `json:"registrationActive,omitempty"` RegistrationIntroduction string `json:"registrationIntroduction,omitempty"` - RegistrationOnlyCompanyRegistration bool `json:"registrationOnlyCompanyRegistration"` + RegistrationOnlyCompanyRegistration *bool `json:"registrationOnlyCompanyRegistration,omitempty"` RegistrationSalesChannels []SalesChannel `json:"registrationSalesChannels,omitempty"` RegistrationSeoMetaDescription string `json:"registrationSeoMetaDescription,omitempty"` RegistrationTitle string `json:"registrationTitle,omitempty"` diff --git a/model/customer_group_translation.go b/model/customer_group_translation.go index 26e4f8e..24de05c 100644 --- a/model/customer_group_translation.go +++ b/model/customer_group_translation.go @@ -11,7 +11,7 @@ type CustomerGroupTranslation struct { LanguageId string `json:"languageId,omitempty"` Name string `json:"name,omitempty"` RegistrationIntroduction string `json:"registrationIntroduction,omitempty"` - RegistrationOnlyCompanyRegistration bool `json:"registrationOnlyCompanyRegistration"` + RegistrationOnlyCompanyRegistration *bool `json:"registrationOnlyCompanyRegistration,omitempty"` RegistrationSeoMetaDescription string `json:"registrationSeoMetaDescription,omitempty"` RegistrationTitle string `json:"registrationTitle,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/model/dead_message.go b/model/dead_message.go index 985a3db..43bcc92 100644 --- a/model/dead_message.go +++ b/model/dead_message.go @@ -4,7 +4,7 @@ import "time" type DeadMessage struct { CreatedAt *time.Time `json:"createdAt,omitempty"` - Encrypted bool `json:"encrypted"` + Encrypted *bool `json:"encrypted,omitempty"` ErrorCount float64 `json:"errorCount,omitempty"` Exception string `json:"exception,omitempty"` ExceptionFile string `json:"exceptionFile,omitempty"` diff --git a/model/document.go b/model/document.go index 6fa84e1..42e22bb 100644 --- a/model/document.go +++ b/model/document.go @@ -19,7 +19,7 @@ type Document struct { OrderVersionId string `json:"orderVersionId,omitempty"` ReferencedDocument *Document `json:"referencedDocument,omitempty"` ReferencedDocumentId string `json:"referencedDocumentId,omitempty"` - Sent bool `json:"sent"` - Static bool `json:"static"` + Sent *bool `json:"sent,omitempty"` + Static *bool `json:"static,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/document_base_config.go b/model/document_base_config.go index d75d77b..826f389 100644 --- a/model/document_base_config.go +++ b/model/document_base_config.go @@ -11,7 +11,7 @@ type DocumentBaseConfig struct { DocumentTypeId string `json:"documentTypeId,omitempty"` // required FilenamePrefix string `json:"filenamePrefix,omitempty"` FilenameSuffix string `json:"filenameSuffix,omitempty"` - Global bool `json:"global"` // required + Global *bool `json:"global,omitempty"` // required Id string `json:"id,omitempty"` Logo *Media `json:"logo,omitempty"` LogoId string `json:"logoId,omitempty"` diff --git a/model/event_action.go b/model/event_action.go index 723be0d..837e111 100644 --- a/model/event_action.go +++ b/model/event_action.go @@ -4,7 +4,7 @@ import "time" type EventAction struct { ActionName string `json:"actionName,omitempty"` - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` Config interface{} `json:"config,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` diff --git a/model/flow.go b/model/flow.go index c2b993e..b039fe6 100644 --- a/model/flow.go +++ b/model/flow.go @@ -3,13 +3,13 @@ package model import "time" type Flow struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` Description string `json:"description,omitempty"` EventName string `json:"eventName,omitempty"` // required Id string `json:"id,omitempty"` - Invalid bool `json:"invalid"` + Invalid *bool `json:"invalid,omitempty"` Name string `json:"name,omitempty"` // required Payload interface{} `json:"payload,omitempty"` Priority float64 `json:"priority,omitempty"` diff --git a/model/flow_sequence.go b/model/flow_sequence.go index 7d74f92..ac645ad 100644 --- a/model/flow_sequence.go +++ b/model/flow_sequence.go @@ -17,6 +17,6 @@ type FlowSequence struct { Position float64 `json:"position,omitempty"` Rule *Rule `json:"rule,omitempty"` RuleId string `json:"ruleId,omitempty"` - TrueCase bool `json:"trueCase"` + TrueCase *bool `json:"trueCase,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/import_export_profile.go b/model/import_export_profile.go index 55dc02c..6b1b19c 100644 --- a/model/import_export_profile.go +++ b/model/import_export_profile.go @@ -14,7 +14,7 @@ type ImportExportProfile struct { Mapping interface{} `json:"mapping,omitempty"` Name string `json:"name,omitempty"` SourceEntity string `json:"sourceEntity,omitempty"` // required - SystemDefault bool `json:"systemDefault"` + SystemDefault *bool `json:"systemDefault,omitempty"` Translated interface{} `json:"translated,omitempty"` Translations []ImportExportProfileTranslation `json:"translations,omitempty"` Type string `json:"type,omitempty"` diff --git a/model/integration.go b/model/integration.go index 1574ffe..f3b21c2 100644 --- a/model/integration.go +++ b/model/integration.go @@ -5,7 +5,7 @@ import "time" type Integration struct { AccessKey string `json:"accessKey,omitempty"` // required AclRoles []AclRole `json:"aclRoles,omitempty"` - Admin bool `json:"admin"` + Admin *bool `json:"admin,omitempty"` App *App `json:"app,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` CreatedNotifications []Notification `json:"createdNotifications,omitempty"` @@ -16,5 +16,5 @@ type Integration struct { LastUsageAt *time.Time `json:"lastUsageAt,omitempty"` SecretAccessKey interface{} `json:"secretAccessKey,omitempty"` // required UpdatedAt *time.Time `json:"updatedAt,omitempty"` - WriteAccess bool `json:"writeAccess"` + WriteAccess *bool `json:"writeAccess,omitempty"` } diff --git a/model/landing_page.go b/model/landing_page.go index daa980a..e7958e5 100644 --- a/model/landing_page.go +++ b/model/landing_page.go @@ -3,7 +3,7 @@ package model import "time" type LandingPage struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` CmsPage *CmsPage `json:"cmsPage,omitempty"` CmsPageId string `json:"cmsPageId,omitempty"` CmsPageVersionId string `json:"cmsPageVersionId,omitempty"` diff --git a/model/mail_header_footer.go b/model/mail_header_footer.go index 564dca4..7d9ce55 100644 --- a/model/mail_header_footer.go +++ b/model/mail_header_footer.go @@ -12,7 +12,7 @@ type MailHeaderFooter struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` // required SalesChannels []SalesChannel `json:"salesChannels,omitempty"` - SystemDefault bool `json:"systemDefault"` + SystemDefault *bool `json:"systemDefault,omitempty"` Translated interface{} `json:"translated,omitempty"` Translations []MailHeaderFooterTranslation `json:"translations,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/model/mail_template.go b/model/mail_template.go index 75f7b18..4f3989b 100644 --- a/model/mail_template.go +++ b/model/mail_template.go @@ -14,7 +14,7 @@ type MailTemplate struct { Media []MailTemplateMedia `json:"media,omitempty"` SenderName string `json:"senderName,omitempty"` Subject string `json:"subject,omitempty"` // required - SystemDefault bool `json:"systemDefault"` + SystemDefault *bool `json:"systemDefault,omitempty"` Translated interface{} `json:"translated,omitempty"` Translations []MailTemplateTranslation `json:"translations,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/model/media.go b/model/media.go index d838c9e..9a48625 100644 --- a/model/media.go +++ b/model/media.go @@ -17,7 +17,7 @@ type Media struct { FileExtension string `json:"fileExtension,omitempty"` FileName string `json:"fileName,omitempty"` FileSize float64 `json:"fileSize,omitempty"` - HasFile bool `json:"hasFile"` + HasFile *bool `json:"hasFile,omitempty"` Id string `json:"id,omitempty"` MailTemplateMedia []MailTemplateMedia `json:"mailTemplateMedia,omitempty"` MediaFolder *MediaFolder `json:"mediaFolder,omitempty"` @@ -28,7 +28,7 @@ type Media struct { MimeType string `json:"mimeType,omitempty"` OrderLineItems []OrderLineItem `json:"orderLineItems,omitempty"` PaymentMethods []PaymentMethod `json:"paymentMethods,omitempty"` - Private bool `json:"private"` + Private *bool `json:"private,omitempty"` ProductConfiguratorSettings []ProductConfiguratorSetting `json:"productConfiguratorSettings,omitempty"` ProductManufacturers []ProductManufacturer `json:"productManufacturers,omitempty"` ProductMedia []ProductMedia `json:"productMedia,omitempty"` diff --git a/model/media_folder.go b/model/media_folder.go index a6fbe4b..91aa047 100644 --- a/model/media_folder.go +++ b/model/media_folder.go @@ -17,5 +17,5 @@ type MediaFolder struct { Parent *MediaFolder `json:"parent,omitempty"` ParentId string `json:"parentId,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` - UseParentConfiguration bool `json:"useParentConfiguration"` + UseParentConfiguration *bool `json:"useParentConfiguration,omitempty"` } diff --git a/model/media_folder_configuration.go b/model/media_folder_configuration.go index 43c9c48..83c65c4 100644 --- a/model/media_folder_configuration.go +++ b/model/media_folder_configuration.go @@ -4,15 +4,15 @@ import "time" type MediaFolderConfiguration struct { CreatedAt *time.Time `json:"createdAt,omitempty"` - CreateThumbnails bool `json:"createThumbnails"` + CreateThumbnails *bool `json:"createThumbnails,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` Id string `json:"id,omitempty"` - KeepAspectRatio bool `json:"keepAspectRatio"` + KeepAspectRatio *bool `json:"keepAspectRatio,omitempty"` MediaFolders []MediaFolder `json:"mediaFolders,omitempty"` MediaThumbnailSizes []MediaThumbnailSize `json:"mediaThumbnailSizes,omitempty"` MediaThumbnailSizesRo interface{} `json:"mediaThumbnailSizesRo,omitempty"` - NoAssociation bool `json:"noAssociation"` - Private bool `json:"private"` + NoAssociation *bool `json:"noAssociation,omitempty"` + Private *bool `json:"private,omitempty"` ThumbnailQuality float64 `json:"thumbnailQuality,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/notification.go b/model/notification.go index 98996be..c9b8222 100644 --- a/model/notification.go +++ b/model/notification.go @@ -3,7 +3,7 @@ package model import "time" type Notification struct { - AdminOnly bool `json:"adminOnly"` + AdminOnly *bool `json:"adminOnly,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` CreatedByIntegration *Integration `json:"createdByIntegration,omitempty"` CreatedByIntegrationId string `json:"createdByIntegrationId,omitempty"` diff --git a/model/number_range.go b/model/number_range.go index e76bb13..e8d36d8 100644 --- a/model/number_range.go +++ b/model/number_range.go @@ -6,7 +6,7 @@ type NumberRange struct { CreatedAt *time.Time `json:"createdAt,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` Description string `json:"description,omitempty"` - Global bool `json:"global"` + Global *bool `json:"global,omitempty"` Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` NumberRangeSalesChannels []NumberRangeSalesChannel `json:"numberRangeSalesChannels,omitempty"` diff --git a/model/number_range_type.go b/model/number_range_type.go index 3dc4413..d6d5b33 100644 --- a/model/number_range_type.go +++ b/model/number_range_type.go @@ -5,7 +5,7 @@ import "time" type NumberRangeType struct { CreatedAt *time.Time `json:"createdAt,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` - Global bool `json:"global"` // required + Global *bool `json:"global,omitempty"` // required Id string `json:"id,omitempty"` NumberRanges []NumberRange `json:"numberRanges,omitempty"` NumberRangeSalesChannels []NumberRangeSalesChannel `json:"numberRangeSalesChannels,omitempty"` diff --git a/model/order_line_item.go b/model/order_line_item.go index 65e0af3..ecad3a4 100644 --- a/model/order_line_item.go +++ b/model/order_line_item.go @@ -9,7 +9,7 @@ type OrderLineItem struct { CreatedAt *time.Time `json:"createdAt,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` Description string `json:"description,omitempty"` - Good bool `json:"good"` + Good *bool `json:"good,omitempty"` Id string `json:"id,omitempty"` Identifier string `json:"identifier,omitempty"` // required Label string `json:"label,omitempty"` // required @@ -29,8 +29,8 @@ type OrderLineItem struct { ProductVersionId string `json:"productVersionId,omitempty"` Quantity float64 `json:"quantity,omitempty"` // required ReferencedId string `json:"referencedId,omitempty"` - Removable bool `json:"removable"` - Stackable bool `json:"stackable"` + Removable *bool `json:"removable,omitempty"` + Stackable *bool `json:"stackable,omitempty"` TotalPrice float64 `json:"totalPrice,omitempty"` Type string `json:"type,omitempty"` UnitPrice float64 `json:"unitPrice,omitempty"` diff --git a/model/payment_method.go b/model/payment_method.go index 0c5c8b7..7d2ea14 100644 --- a/model/payment_method.go +++ b/model/payment_method.go @@ -3,10 +3,10 @@ package model import "time" type PaymentMethod struct { - Active bool `json:"active"` - AfterOrderEnabled bool `json:"afterOrderEnabled"` + Active *bool `json:"active,omitempty"` + AfterOrderEnabled *bool `json:"afterOrderEnabled,omitempty"` AppPaymentMethod *AppPaymentMethod `json:"appPaymentMethod,omitempty"` - Asynchronous bool `json:"asynchronous"` + Asynchronous *bool `json:"asynchronous,omitempty"` AvailabilityRule *Rule `json:"availabilityRule,omitempty"` AvailabilityRuleId string `json:"availabilityRuleId,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` @@ -24,10 +24,10 @@ type PaymentMethod struct { Plugin *Plugin `json:"plugin,omitempty"` PluginId string `json:"pluginId,omitempty"` Position float64 `json:"position,omitempty"` - Prepared bool `json:"prepared"` + Prepared *bool `json:"prepared,omitempty"` SalesChannelDefaultAssignments []SalesChannel `json:"salesChannelDefaultAssignments,omitempty"` SalesChannels []SalesChannel `json:"salesChannels,omitempty"` - Synchronous bool `json:"synchronous"` + Synchronous *bool `json:"synchronous,omitempty"` Translated interface{} `json:"translated,omitempty"` Translations []PaymentMethodTranslation `json:"translations,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` diff --git a/model/plugin.go b/model/plugin.go index 906033b..1615e95 100644 --- a/model/plugin.go +++ b/model/plugin.go @@ -3,7 +3,7 @@ package model import "time" type Plugin struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` Author string `json:"author,omitempty"` Autoload interface{} `json:"autoload,omitempty"` // required BaseClass string `json:"baseClass,omitempty"` // required @@ -19,7 +19,7 @@ type Plugin struct { InstalledAt *time.Time `json:"installedAt,omitempty"` Label string `json:"label,omitempty"` // required License string `json:"license,omitempty"` - ManagedByComposer bool `json:"managedByComposer"` + ManagedByComposer *bool `json:"managedByComposer,omitempty"` ManufacturerLink string `json:"manufacturerLink,omitempty"` Name string `json:"name,omitempty"` // required Path string `json:"path,omitempty"` diff --git a/model/product.go b/model/product.go index ce4cef6..8a517f1 100644 --- a/model/product.go +++ b/model/product.go @@ -3,9 +3,9 @@ package model import "time" type Product struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` AutoIncrement float64 `json:"autoIncrement,omitempty"` - Available bool `json:"available,omitempty"` // not changeable + Available *bool `json:"available,omitempty"` // not changeable AvailableStock float64 `json:"availableStock,omitempty"` CanonicalProduct *Product `json:"canonicalProduct,omitempty"` CanonicalProductId string `json:"canonicalProductId,omitempty"` @@ -28,7 +28,7 @@ type Product struct { CrossSellings []ProductCrossSelling `json:"crossSellings,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` CustomFieldSets []CustomFieldSet `json:"customFieldSets,omitempty"` - CustomFieldSetSelectionActive bool `json:"customFieldSetSelectionActive"` + CustomFieldSetSelectionActive *bool `json:"customFieldSetSelectionActive,omitempty"` CustomSearchKeywords interface{} `json:"customSearchKeywords,omitempty"` DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"` DeliveryTimeId string `json:"deliveryTimeId,omitempty"` @@ -39,7 +39,7 @@ type Product struct { FeatureSetId string `json:"featureSetId,omitempty"` Height float64 `json:"height"` Id string `json:"id,omitempty"` - IsCloseout bool `json:"isCloseout"` + IsCloseout *bool `json:"isCloseout,omitempty"` Keywords string `json:"keywords"` Length float64 `json:"length,omitempty"` MainCategories []MainCategory `json:"mainCategories,omitempty"` @@ -47,7 +47,7 @@ type Product struct { Manufacturer *ProductManufacturer `json:"manufacturer,omitempty"` ManufacturerId *string `json:"manufacturerId"` ManufacturerNumber string `json:"manufacturerNumber,omitempty"` - MarkAsTopseller bool `json:"markAsTopseller"` + MarkAsTopseller *bool `json:"markAsTopseller,omitempty"` MaxPurchase float64 `json:"maxPurchase,omitempty"` Media []ProductMedia `json:"media,omitempty"` MetaDescription string `json:"metaDescription"` @@ -80,7 +80,7 @@ type Product struct { Sales float64 `json:"sales,omitempty"` SearchKeywords []ProductSearchKeyword `json:"searchKeywords,omitempty"` SeoUrls []SeoUrl `json:"seoUrls,omitempty"` - ShippingFree bool `json:"shippingFree"` + ShippingFree *bool `json:"shippingFree,omitempty"` SlotConfig interface{} `json:"slotConfig,omitempty"` Stock float64 `json:"stock"` // required StreamIds interface{} `json:"streamIds,omitempty"` diff --git a/model/product_cross_selling.go b/model/product_cross_selling.go index e6a38be..0bddf26 100644 --- a/model/product_cross_selling.go +++ b/model/product_cross_selling.go @@ -3,7 +3,7 @@ package model import "time" type ProductCrossSelling struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` AssignedProducts []ProductCrossSellingAssignedProducts `json:"assignedProducts,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` Id string `json:"id,omitempty"` diff --git a/model/product_export.go b/model/product_export.go index c116d15..1947a5a 100644 --- a/model/product_export.go +++ b/model/product_export.go @@ -12,13 +12,13 @@ type ProductExport struct { FileFormat string `json:"fileFormat,omitempty"` // required FileName string `json:"fileName,omitempty"` // required FooterTemplate string `json:"footerTemplate,omitempty"` - GenerateByCronjob bool `json:"generateByCronjob"` // required + GenerateByCronjob *bool `json:"generateByCronjob,omitempty"` // required GeneratedAt *time.Time `json:"generatedAt,omitempty"` HeaderTemplate string `json:"headerTemplate,omitempty"` Id string `json:"id,omitempty"` - IncludeVariants bool `json:"includeVariants"` + IncludeVariants *bool `json:"includeVariants,omitempty"` Interval float64 `json:"interval,omitempty"` // required - PausedSchedule bool `json:"pausedSchedule"` + PausedSchedule *bool `json:"pausedSchedule,omitempty"` ProductStream *ProductStream `json:"productStream,omitempty"` ProductStreamId string `json:"productStreamId,omitempty"` // required SalesChannel *SalesChannel `json:"salesChannel,omitempty"` diff --git a/model/product_price.go b/model/product_price.go index e0ffe88..69cb340 100644 --- a/model/product_price.go +++ b/model/product_price.go @@ -23,7 +23,7 @@ type Price struct { CurrencyID string `json:"currencyId,omitempty"` Gross float32 `json:"gross"` // required Net float32 `json:"net"` // required - Linked bool `json:"linked"` + Linked *bool `json:"linked,omitempty"` } type OrderPrice struct { diff --git a/model/product_review.go b/model/product_review.go index 173e511..89e319d 100644 --- a/model/product_review.go +++ b/model/product_review.go @@ -20,7 +20,7 @@ type ProductReview struct { ProductVersionId string `json:"productVersionId,omitempty"` SalesChannel *SalesChannel `json:"salesChannel,omitempty"` SalesChannelId string `json:"salesChannelId,omitempty"` // required - Status bool `json:"status"` + Status *bool `json:"status,omitempty"` Title string `json:"title,omitempty"` // required UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/product_search_config.go b/model/product_search_config.go index c7983a6..6782f21 100644 --- a/model/product_search_config.go +++ b/model/product_search_config.go @@ -3,7 +3,7 @@ package model import "time" type ProductSearchConfig struct { - AndLogic bool `json:"andLogic"` // required + AndLogic *bool `json:"andLogic,omitempty"` // required ConfigFields []ProductSearchConfigField `json:"configFields,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` ExcludedTerms interface{} `json:"excludedTerms,omitempty"` diff --git a/model/product_search_config_field.go b/model/product_search_config_field.go index e7d40ac..4f5cfc2 100644 --- a/model/product_search_config_field.go +++ b/model/product_search_config_field.go @@ -8,10 +8,10 @@ type ProductSearchConfigField struct { CustomFieldId string `json:"customFieldId,omitempty"` Field string `json:"field,omitempty"` // required Id string `json:"id,omitempty"` - Ranking int64 `json:"ranking,omitempty"` // required - Searchable bool `json:"searchable"` // required + Ranking int64 `json:"ranking,omitempty"` // required + Searchable *bool `json:"searchable,omitempty"` // required SearchConfig *ProductSearchConfig `json:"searchConfig,omitempty"` SearchConfigId string `json:"searchConfigId,omitempty"` // required - Tokenize bool `json:"tokenize"` // required + Tokenize *bool `json:"tokenize,omitempty"` // required UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/product_sorting.go b/model/product_sorting.go index 0839871..de5c10c 100644 --- a/model/product_sorting.go +++ b/model/product_sorting.go @@ -3,13 +3,13 @@ package model import "time" type ProductSorting struct { - Active bool `json:"active"` // required + Active *bool `json:"active,omitempty"` // required CreatedAt *time.Time `json:"createdAt,omitempty"` Fields interface{} `json:"fields,omitempty"` // required Id string `json:"id,omitempty"` Key string `json:"key,omitempty"` // required Label string `json:"label,omitempty"` // required - Locked bool `json:"locked"` + Locked *bool `json:"locked,omitempty"` Priority int64 `json:"priority,omitempty"` // required Translated interface{} `json:"translated,omitempty"` Translations []ProductSortingTranslation `json:"translations,omitempty"` diff --git a/model/product_stream.go b/model/product_stream.go index 2861d67..22e5f0f 100644 --- a/model/product_stream.go +++ b/model/product_stream.go @@ -10,7 +10,7 @@ type ProductStream struct { Description string `json:"description,omitempty"` Filters []ProductStreamFilter `json:"filters,omitempty"` Id string `json:"id,omitempty"` - Invalid bool `json:"invalid"` + Invalid *bool `json:"invalid,omitempty"` Name string `json:"name,omitempty"` // required ProductCrossSellings []ProductCrossSelling `json:"productCrossSellings,omitempty"` ProductExports []ProductExport `json:"productExports,omitempty"` diff --git a/model/promotion.go b/model/promotion.go index c709388..b1204bf 100644 --- a/model/promotion.go +++ b/model/promotion.go @@ -3,15 +3,15 @@ package model import "time" type Promotion struct { - Active bool `json:"active"` // required + Active *bool `json:"active,omitempty"` // required CartRules []Rule `json:"cartRules,omitempty"` Code string `json:"code,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` - CustomerRestriction bool `json:"customerRestriction"` + CustomerRestriction *bool `json:"customerRestriction,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` Discounts []PromotionDiscount `json:"discounts,omitempty"` ExclusionIds interface{} `json:"exclusionIds,omitempty"` - Exclusive bool `json:"exclusive"` // required + Exclusive *bool `json:"exclusive,omitempty"` // required Id string `json:"id,omitempty"` IndividualCodePattern string `json:"individualCodePattern,omitempty"` IndividualCodes []PromotionIndividualCode `json:"individualCodes,omitempty"` @@ -23,16 +23,16 @@ type Promotion struct { OrdersPerCustomerCount interface{} `json:"ordersPerCustomerCount,omitempty"` PersonaCustomers []Customer `json:"personaCustomers,omitempty"` PersonaRules []Rule `json:"personaRules,omitempty"` - PreventCombination bool `json:"preventCombination"` // required - Priority int64 `json:"priority,omitempty"` // required + PreventCombination *bool `json:"preventCombination,omitempty"` // required + Priority int64 `json:"priority,omitempty"` // required SalesChannels []PromotionSalesChannel `json:"salesChannels,omitempty"` Setgroups []PromotionSetgroup `json:"setgroups,omitempty"` Translated interface{} `json:"translated,omitempty"` Translations []PromotionTranslation `json:"translations,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` - UseCodes bool `json:"useCodes"` // required - UseIndividualCodes bool `json:"useIndividualCodes"` // required - UseSetGroups bool `json:"useSetGroups"` // required + UseCodes *bool `json:"useCodes,omitempty"` // required + UseIndividualCodes *bool `json:"useIndividualCodes,omitempty"` // required + UseSetGroups *bool `json:"useSetGroups,omitempty"` // required ValidFrom *time.Time `json:"validFrom,omitempty"` ValidUntil *time.Time `json:"validUntil,omitempty"` } diff --git a/model/promotion_discount.go b/model/promotion_discount.go index 3711ea3..52bd9b1 100644 --- a/model/promotion_discount.go +++ b/model/promotion_discount.go @@ -4,7 +4,7 @@ import "time" type PromotionDiscount struct { ApplierKey string `json:"applierKey,omitempty"` - ConsiderAdvancedRules bool `json:"considerAdvancedRules"` // required + ConsiderAdvancedRules *bool `json:"considerAdvancedRules,omitempty"` // required CreatedAt *time.Time `json:"createdAt,omitempty"` DiscountRules []Rule `json:"discountRules,omitempty"` Id string `json:"id,omitempty"` diff --git a/model/property_group.go b/model/property_group.go index 156d0dc..1e7b384 100644 --- a/model/property_group.go +++ b/model/property_group.go @@ -7,7 +7,7 @@ type PropertyGroup struct { CustomFields interface{} `json:"customFields,omitempty"` Description string `json:"description,omitempty"` DisplayType string `json:"displayType,omitempty"` // required - Filterable bool `json:"filterable"` + Filterable *bool `json:"filterable,omitempty"` Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` // required Options []PropertyGroupOption `json:"options,omitempty"` @@ -16,5 +16,5 @@ type PropertyGroup struct { Translated interface{} `json:"translated,omitempty"` Translations []PropertyGroupTranslation `json:"translations,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` - VisibleOnProductDetailPage bool `json:"visibleOnProductDetailPage"` + VisibleOnProductDetailPage *bool `json:"visibleOnProductDetailPage,omitempty"` } diff --git a/model/rule.go b/model/rule.go index c01ce4e..403853e 100644 --- a/model/rule.go +++ b/model/rule.go @@ -11,7 +11,7 @@ type Rule struct { EventActions []EventAction `json:"eventActions,omitempty"` FlowSequences []FlowSequence `json:"flowSequences,omitempty"` Id string `json:"id,omitempty"` - Invalid bool `json:"invalid,omitempty"` + Invalid *bool `json:"invalid,omitempty"` ModuleTypes interface{} `json:"moduleTypes,omitempty"` Name string `json:"name,omitempty"` // required OrderPromotions []Promotion `json:"orderPromotions,omitempty"` diff --git a/model/sales_channel.go b/model/sales_channel.go index 27e669a..b067970 100644 --- a/model/sales_channel.go +++ b/model/sales_channel.go @@ -4,7 +4,7 @@ import "time" type SalesChannel struct { AccessKey string `json:"accessKey,omitempty"` // required - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` Analytics *SalesChannelAnalytics `json:"analytics,omitempty"` AnalyticsId string `json:"analyticsId,omitempty"` BoundCustomers []Customer `json:"boundCustomers,omitempty"` @@ -30,13 +30,13 @@ type SalesChannel struct { HomeCmsPage *CmsPage `json:"homeCmsPage,omitempty"` HomeCmsPageId string `json:"homeCmsPageId,omitempty"` HomeCmsPageVersionId string `json:"homeCmsPageVersionId,omitempty"` - HomeEnabled bool `json:"homeEnabled"` // required + HomeEnabled *bool `json:"homeEnabled,omitempty"` // required HomeKeywords string `json:"homeKeywords,omitempty"` HomeMetaDescription string `json:"homeMetaDescription,omitempty"` HomeMetaTitle string `json:"homeMetaTitle,omitempty"` HomeName string `json:"homeName,omitempty"` HomeSlotConfig interface{} `json:"homeSlotConfig,omitempty"` - HreflangActive bool `json:"hreflangActive"` + HreflangActive *bool `json:"hreflangActive,omitempty"` HreflangDefaultDomain *SalesChannelDomain `json:"hreflangDefaultDomain,omitempty"` HreflangDefaultDomainId string `json:"hreflangDefaultDomainId,omitempty"` Id string `json:"id,omitempty"` @@ -47,7 +47,7 @@ type SalesChannel struct { MailHeaderFooter *MailHeaderFooter `json:"mailHeaderFooter,omitempty"` MailHeaderFooterId string `json:"mailHeaderFooterId,omitempty"` MainCategories []MainCategory `json:"mainCategories,omitempty"` - Maintenance bool `json:"maintenance"` + Maintenance *bool `json:"maintenance,omitempty"` MaintenanceIpWhitelist interface{} `json:"maintenanceIpWhitelist,omitempty"` Name string `json:"name,omitempty"` // required NavigationCategory *Category `json:"navigationCategory,omitempty"` diff --git a/model/sales_channel_analytics.go b/model/sales_channel_analytics.go index 7a2020e..265ace6 100644 --- a/model/sales_channel_analytics.go +++ b/model/sales_channel_analytics.go @@ -3,12 +3,12 @@ package model import "time" type SalesChannelAnalytics struct { - Active bool `json:"active"` - AnonymizeIp bool `json:"anonymizeIp"` + Active *bool `json:"active,omitempty"` + AnonymizeIp *bool `json:"anonymizeIp,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` Id string `json:"id,omitempty"` SalesChannel *SalesChannel `json:"salesChannel,omitempty"` TrackingId string `json:"trackingId,omitempty"` - TrackOrders bool `json:"trackOrders"` + TrackOrders *bool `json:"trackOrders,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/sales_channel_domain.go b/model/sales_channel_domain.go index 9ad2f08..dbe586e 100644 --- a/model/sales_channel_domain.go +++ b/model/sales_channel_domain.go @@ -7,7 +7,7 @@ type SalesChannelDomain struct { Currency *Currency `json:"currency,omitempty"` CurrencyId string `json:"currencyId,omitempty"` // required CustomFields interface{} `json:"customFields,omitempty"` - HreflangUseOnlyLocale bool `json:"hreflangUseOnlyLocale"` + HreflangUseOnlyLocale *bool `json:"hreflangUseOnlyLocale,omitempty"` Id string `json:"id,omitempty"` Language *Language `json:"language,omitempty"` LanguageId string `json:"languageId,omitempty"` // required diff --git a/model/sales_channel_translation.go b/model/sales_channel_translation.go index 5ca2a46..1e78537 100644 --- a/model/sales_channel_translation.go +++ b/model/sales_channel_translation.go @@ -5,7 +5,7 @@ import "time" type SalesChannelTranslation struct { CreatedAt *time.Time `json:"createdAt,omitempty"` CustomFields interface{} `json:"customFields,omitempty"` - HomeEnabled bool `json:"homeEnabled"` + HomeEnabled *bool `json:"homeEnabled,omitempty"` HomeKeywords string `json:"homeKeywords,omitempty"` HomeMetaDescription string `json:"homeMetaDescription,omitempty"` HomeMetaTitle string `json:"homeMetaTitle,omitempty"` diff --git a/model/script.go b/model/script.go index 4fe05aa..b4a483f 100644 --- a/model/script.go +++ b/model/script.go @@ -3,7 +3,7 @@ package model import "time" type Script struct { - Active bool `json:"active"` // required + Active *bool `json:"active,omitempty"` // required App *App `json:"app,omitempty"` AppId string `json:"appId,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` diff --git a/model/seo_url.go b/model/seo_url.go index de61b67..74b9cd3 100644 --- a/model/seo_url.go +++ b/model/seo_url.go @@ -7,9 +7,9 @@ type SeoUrl struct { CustomFields interface{} `json:"customFields,omitempty"` ForeignKey string `json:"foreignKey,omitempty"` // required Id string `json:"id,omitempty"` - IsCanonical bool `json:"isCanonical"` - IsDeleted bool `json:"isDeleted"` - IsModified bool `json:"isModified"` + IsCanonical *bool `json:"isCanonical,omitempty"` + IsDeleted *bool `json:"isDeleted,omitempty"` + IsModified *bool `json:"isModified,omitempty"` Language *Language `json:"language,omitempty"` LanguageId string `json:"languageId,omitempty"` // required PathInfo string `json:"pathInfo,omitempty"` // required diff --git a/model/seo_url_template.go b/model/seo_url_template.go index 0508d1a..5f0c5df 100644 --- a/model/seo_url_template.go +++ b/model/seo_url_template.go @@ -7,7 +7,7 @@ type SeoUrlTemplate struct { CustomFields interface{} `json:"customFields,omitempty"` EntityName string `json:"entityName,omitempty"` // required Id string `json:"id,omitempty"` - IsValid bool `json:"isValid"` + IsValid *bool `json:"isValid,omitempty"` RouteName string `json:"routeName,omitempty"` // required SalesChannel *SalesChannel `json:"salesChannel,omitempty"` SalesChannelId string `json:"salesChannelId,omitempty"` diff --git a/model/shipping_method.go b/model/shipping_method.go index 46d23a7..975e1da 100644 --- a/model/shipping_method.go +++ b/model/shipping_method.go @@ -3,7 +3,7 @@ package model import "time" type ShippingMethod struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` AvailabilityRule *Rule `json:"availabilityRule,omitempty"` AvailabilityRuleId string `json:"availabilityRuleId,omitempty"` // required CreatedAt *time.Time `json:"createdAt,omitempty"` diff --git a/model/tax.go b/model/tax.go index 86278db..ead582c 100644 --- a/model/tax.go +++ b/model/tax.go @@ -16,7 +16,7 @@ type Tax struct { } type CTax struct { - Enabled bool `json:"enabled"` // required + Enabled *bool `json:"enabled,omitempty"` // required CurrencyId string `json:"currencyId,omitempty"` // required Amount float64 `json:"amount,omitempty"` // required } diff --git a/model/theme.go b/model/theme.go index a74e46e..558d578 100644 --- a/model/theme.go +++ b/model/theme.go @@ -3,7 +3,7 @@ package model import "time" type Theme struct { - Active bool `json:"active"` // required + Active *bool `json:"active,omitempty"` // required Author string `json:"author,omitempty"` // required BaseConfig interface{} `json:"baseConfig,omitempty"` ChildThemes []Theme `json:"childThemes,omitempty"` diff --git a/model/user.go b/model/user.go index db25405..36f1b10 100644 --- a/model/user.go +++ b/model/user.go @@ -5,8 +5,8 @@ import "time" type User struct { AccessKeys []UserAccessKey `json:"accessKeys,omitempty"` AclRoles []AclRole `json:"aclRoles,omitempty"` - Active bool `json:"active"` - Admin bool `json:"admin"` + Active *bool `json:"active,omitempty"` + Admin *bool `json:"admin,omitempty"` AvatarId string `json:"avatarId,omitempty"` AvatarMedia *Media `json:"avatarMedia,omitempty"` Configs []UserConfig `json:"configs,omitempty"` diff --git a/model/user_access_key.go b/model/user_access_key.go index 67c0584..7067cb4 100644 --- a/model/user_access_key.go +++ b/model/user_access_key.go @@ -12,5 +12,5 @@ type UserAccessKey struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` User *User `json:"user,omitempty"` UserId string `json:"userId,omitempty"` // required - WriteAccess bool `json:"writeAccess"` + WriteAccess *bool `json:"writeAccess,omitempty"` } diff --git a/model/version_commit.go b/model/version_commit.go index 7e0cc7d..3560921 100644 --- a/model/version_commit.go +++ b/model/version_commit.go @@ -8,7 +8,7 @@ type VersionCommit struct { Data []VersionCommitData `json:"data,omitempty"` Id string `json:"id,omitempty"` IntegrationId string `json:"integrationId,omitempty"` - IsMerge bool `json:"isMerge"` + IsMerge *bool `json:"isMerge,omitempty"` Message string `json:"message,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UserId string `json:"userId,omitempty"` diff --git a/model/webhook.go b/model/webhook.go index 87717d7..bc62a84 100644 --- a/model/webhook.go +++ b/model/webhook.go @@ -3,7 +3,7 @@ package model import "time" type Webhook struct { - Active bool `json:"active"` + Active *bool `json:"active,omitempty"` App *App `json:"app,omitempty"` AppId string `json:"appId,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"`