diff --git a/model/app.go b/model/app.go index 53e4234..3c19ed3 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:"active,omitempty"` // required - AllowDisable bool `json:"allowDisable,omitempty"` // required + Active bool `json:"activ"` // required + AllowDisable bool `json:"allowDisable"` // required AppSecret string `json:"appSecret,omitempty"` Author string `json:"author,omitempty"` CmsBlocks []AppCmsBlock `json:"cmsBlocks,omitempty"` - Configurable bool `json:"configurable,omitempty"` // required + Configurable bool `json:"configurable"` // 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 eacf5c8..fb6990a 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,omitempty"` + OpenNewTab bool `json:"openNewTab"` 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 417fdaa..4cfeac0 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,omitempty"` // required + Active bool `json:"active"` // 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 d03e79e..bbe2719 100644 --- a/model/category.go +++ b/model/category.go @@ -3,7 +3,7 @@ package model import "time" type Category struct { - Active bool `json:"active,omitempty"` + Active bool `json:"active"` 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,omitempty"` // required + DisplayNestedProducts bool `json:"displayNestedProducts"` // 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,omitempty"` + LinkNewTab bool `json:"linkNewTab"` 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,omitempty"` + Visible bool `json:"visible"` } diff --git a/model/category_translation.go b/model/category_translation.go index d55b6db..d9d6539 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,omitempty"` + LinkNewTab bool `json:"linkNewTab"` 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 b54f2e3..4abe915 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,omitempty"` + Locked bool `json:"locked"` 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 b1c1f41..82f0ba8 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,omitempty"` + Locked bool `json:"locked"` 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 b388ef8..da4181d 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,omitempty"` + Locked bool `json:"locked"` 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 89ee6d5..2269416 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,omitempty"` + Locked bool `json:"locked"` 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 9f47004..ca60fdf 100644 --- a/model/country.go +++ b/model/country.go @@ -3,18 +3,18 @@ package model import "time" type Country struct { - Active bool `json:"active,omitempty"` + Active bool `json:"active"` AddressFormat string `json:"addressFormat,omitempty"` // required - CheckVatIdPattern bool `json:"checkVatIdPattern,omitempty"` + CheckVatIdPattern bool `json:"checkVatIdPattern"` CompanyTax interface{} `json:"companyTax,omitempty"` - CompanyTaxFree bool `json:"companyTaxFree,omitempty"` + CompanyTaxFree bool `json:"companyTaxFree"` 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,omitempty"` - ForceStateInRegistration bool `json:"forceStateInRegistration,omitempty"` + DisplayStateInRegistration bool `json:"displayStateInRegistration"` + ForceStateInRegistration bool `json:"forceStateInRegistration"` 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,omitempty"` + ShippingAvailable bool `json:"shippingAvailable"` States []CountryState `json:"states,omitempty"` - TaxFree bool `json:"taxFree,omitempty"` + TaxFree bool `json:"taxFree"` 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,omitempty"` + VatIdRequired bool `json:"vatIdRequired"` } diff --git a/model/country_state.go b/model/country_state.go index 78104f2..10bcdc0 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,omitempty"` + Active bool `json:"active"` 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 02a1e44..30c222c 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,omitempty"` + IsSystemDefault bool `json:"isSystemDefault"` ItemRounding Rounding `json:"itemRounding,omitempty"` // required Name string `json:"name,omitempty"` // required Orders []Order `json:"orders,omitempty"` @@ -29,7 +29,7 @@ type Currency struct { } type Rounding struct { - Decimals int64 `json:"decimals,omitempty"` // required - Intervals int64 `json:"intervals,omitempty"` // required - RoundForNet bool `json:"roundForNet,omitempty"` // required + Decimals int64 `json:"decimals,omitempty"` // required + Intervals int64 `json:"intervals,omitempty"` // required + RoundForNet bool `json:"roundForNet"` // required } diff --git a/model/custom_field.go b/model/custom_field.go index c68fbc9..f291be0 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,omitempty"` + Active bool `json:"active"` 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 8155f00..7341a7a 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,omitempty"` + Active bool `json:"active"` 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,omitempty"` + Global bool `json:"global"` 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 d441db9..88b050f 100644 --- a/model/customer.go +++ b/model/customer.go @@ -3,7 +3,7 @@ package model import "time" type Customer struct { - Active bool `json:"active,omitempty"` + 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,omitempty"` + 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,omitempty"` + 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,omitempty"` + Newsletter bool `json:"newsletter"` 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 6b5338e..871834c 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,omitempty"` + DisplayGross bool `json:"displayGross"` Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` // required - RegistrationActive bool `json:"registrationActive,omitempty"` + RegistrationActive bool `json:"registrationActive"` RegistrationIntroduction string `json:"registrationIntroduction,omitempty"` - RegistrationOnlyCompanyRegistration bool `json:"registrationOnlyCompanyRegistration,omitempty"` + RegistrationOnlyCompanyRegistration bool `json:"registrationOnlyCompanyRegistration"` 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 a3284f1..26e4f8e 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,omitempty"` + RegistrationOnlyCompanyRegistration bool `json:"registrationOnlyCompanyRegistration"` 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 cdd2dfb..985a3db 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,omitempty"` + Encrypted bool `json:"encrypted"` 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 8bbb036..6fa84e1 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,omitempty"` - Static bool `json:"static,omitempty"` + Sent bool `json:"sent"` + Static bool `json:"static"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/document_base_config.go b/model/document_base_config.go index 7f4d5f0..d75d77b 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,omitempty"` // required + Global bool `json:"global"` // 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 8aa6773..723be0d 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,omitempty"` + Active bool `json:"active"` 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 e84b8ea..c2b993e 100644 --- a/model/flow.go +++ b/model/flow.go @@ -3,13 +3,13 @@ package model import "time" type Flow struct { - Active bool `json:"active,omitempty"` + Active bool `json:"active"` 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,omitempty"` + Invalid bool `json:"invalid"` 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 5a4f2c7..7d74f92 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,omitempty"` + TrueCase bool `json:"trueCase"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/import_export_profile.go b/model/import_export_profile.go index be845fa..55dc02c 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,omitempty"` + SystemDefault bool `json:"systemDefault"` 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 946279a..1574ffe 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,omitempty"` + Admin bool `json:"admin"` 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,omitempty"` + WriteAccess bool `json:"writeAccess"` } diff --git a/model/landing_page.go b/model/landing_page.go index c42b0db..daa980a 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,omitempty"` + Active bool `json:"active"` 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 c7fc39e..564dca4 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,omitempty"` + SystemDefault bool `json:"systemDefault"` 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 3eb041e..75f7b18 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,omitempty"` + SystemDefault bool `json:"systemDefault"` 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 45bc0cc..d838c9e 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,omitempty"` + HasFile bool `json:"hasFile"` 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,omitempty"` + Private bool `json:"private"` 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 75738bd..a6fbe4b 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,omitempty"` + UseParentConfiguration bool `json:"useParentConfiguration"` } diff --git a/model/media_folder_configuration.go b/model/media_folder_configuration.go index 25377ca..43c9c48 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,omitempty"` + CreateThumbnails bool `json:"createThumbnails"` CustomFields interface{} `json:"customFields,omitempty"` Id string `json:"id,omitempty"` - KeepAspectRatio bool `json:"keepAspectRatio,omitempty"` + KeepAspectRatio bool `json:"keepAspectRatio"` MediaFolders []MediaFolder `json:"mediaFolders,omitempty"` MediaThumbnailSizes []MediaThumbnailSize `json:"mediaThumbnailSizes,omitempty"` MediaThumbnailSizesRo interface{} `json:"mediaThumbnailSizesRo,omitempty"` - NoAssociation bool `json:"noAssociation,omitempty"` - Private bool `json:"private,omitempty"` + NoAssociation bool `json:"noAssociation"` + Private bool `json:"private"` ThumbnailQuality float64 `json:"thumbnailQuality,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/notification.go b/model/notification.go index 06ab0ba..98996be 100644 --- a/model/notification.go +++ b/model/notification.go @@ -3,7 +3,7 @@ package model import "time" type Notification struct { - AdminOnly bool `json:"adminOnly,omitempty"` + AdminOnly bool `json:"adminOnly"` 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 64f6424..e76bb13 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,omitempty"` + Global bool `json:"global"` 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 41a1fc1..3dc4413 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,omitempty"` // required + Global bool `json:"global"` // 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 03398c1..65e0af3 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,omitempty"` + Good bool `json:"good"` 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,omitempty"` - Stackable bool `json:"stackable,omitempty"` + Removable bool `json:"removable"` + Stackable bool `json:"stackable"` 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 01794e7..0c5c8b7 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,omitempty"` - AfterOrderEnabled bool `json:"afterOrderEnabled,omitempty"` + Active bool `json:"active"` + AfterOrderEnabled bool `json:"afterOrderEnabled"` AppPaymentMethod *AppPaymentMethod `json:"appPaymentMethod,omitempty"` - Asynchronous bool `json:"asynchronous,omitempty"` + Asynchronous bool `json:"asynchronous"` 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,omitempty"` + Prepared bool `json:"prepared"` SalesChannelDefaultAssignments []SalesChannel `json:"salesChannelDefaultAssignments,omitempty"` SalesChannels []SalesChannel `json:"salesChannels,omitempty"` - Synchronous bool `json:"synchronous,omitempty"` + Synchronous bool `json:"synchronous"` 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 957c730..906033b 100644 --- a/model/plugin.go +++ b/model/plugin.go @@ -3,7 +3,7 @@ package model import "time" type Plugin struct { - Active bool `json:"active,omitempty"` + Active bool `json:"active"` 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,omitempty"` + ManagedByComposer bool `json:"managedByComposer"` 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 b239d21..db492ed 100644 --- a/model/product.go +++ b/model/product.go @@ -5,7 +5,7 @@ import "time" type Product struct { Active bool `json:"active"` AutoIncrement float64 `json:"autoIncrement,omitempty"` - Available bool `json:"available,omitempty"` + Available bool `json:"available"` 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,omitempty"` + CustomFieldSetSelectionActive bool `json:"customFieldSetSelectionActive"` CustomSearchKeywords interface{} `json:"customSearchKeywords,omitempty"` DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"` DeliveryTimeId string `json:"deliveryTimeId,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,omitempty"` + MarkAsTopseller bool `json:"markAsTopseller"` 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,omitempty"` + ShippingFree bool `json:"shippingFree"` 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 64ff481..e6a38be 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,omitempty"` + Active bool `json:"active"` 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 a7e54ef..c116d15 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,omitempty"` // required + GenerateByCronjob bool `json:"generateByCronjob"` // required GeneratedAt *time.Time `json:"generatedAt,omitempty"` HeaderTemplate string `json:"headerTemplate,omitempty"` Id string `json:"id,omitempty"` - IncludeVariants bool `json:"includeVariants,omitempty"` + IncludeVariants bool `json:"includeVariants"` Interval float64 `json:"interval,omitempty"` // required - PausedSchedule bool `json:"pausedSchedule,omitempty"` + PausedSchedule bool `json:"pausedSchedule"` 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 4714181..e0ffe88 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,omitempty"` + Linked bool `json:"linked"` } type OrderPrice struct { diff --git a/model/product_review.go b/model/product_review.go index c2221b4..173e511 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,omitempty"` + Status bool `json:"status"` 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 1b95b21..c7983a6 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,omitempty"` // required + AndLogic bool `json:"andLogic"` // 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 b64aebf..e7d40ac 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,omitempty"` // required + Ranking int64 `json:"ranking,omitempty"` // required + Searchable bool `json:"searchable"` // required SearchConfig *ProductSearchConfig `json:"searchConfig,omitempty"` SearchConfigId string `json:"searchConfigId,omitempty"` // required - Tokenize bool `json:"tokenize,omitempty"` // required + Tokenize bool `json:"tokenize"` // required UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/product_sorting.go b/model/product_sorting.go index c35399d..0839871 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,omitempty"` // required + Active bool `json:"active"` // 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,omitempty"` + Locked bool `json:"locked"` 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 81e0a5e..2861d67 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,omitempty"` + Invalid bool `json:"invalid"` 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 add31b1..c709388 100644 --- a/model/promotion.go +++ b/model/promotion.go @@ -3,15 +3,15 @@ package model import "time" type Promotion struct { - Active bool `json:"active,omitempty"` // required + Active bool `json:"active"` // required CartRules []Rule `json:"cartRules,omitempty"` Code string `json:"code,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` - CustomerRestriction bool `json:"customerRestriction,omitempty"` + CustomerRestriction bool `json:"customerRestriction"` CustomFields interface{} `json:"customFields,omitempty"` Discounts []PromotionDiscount `json:"discounts,omitempty"` ExclusionIds interface{} `json:"exclusionIds,omitempty"` - Exclusive bool `json:"exclusive,omitempty"` // required + Exclusive bool `json:"exclusive"` // 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,omitempty"` // required - Priority int64 `json:"priority,omitempty"` // required + PreventCombination bool `json:"preventCombination"` // 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,omitempty"` // required - UseIndividualCodes bool `json:"useIndividualCodes,omitempty"` // required - UseSetGroups bool `json:"useSetGroups,omitempty"` // required + UseCodes bool `json:"useCodes"` // required + UseIndividualCodes bool `json:"useIndividualCodes"` // required + UseSetGroups bool `json:"useSetGroups"` // 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 aa68537..3711ea3 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,omitempty"` // required + ConsiderAdvancedRules bool `json:"considerAdvancedRules"` // 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 cb07fc6..156d0dc 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,omitempty"` + Filterable bool `json:"filterable"` 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,omitempty"` + VisibleOnProductDetailPage bool `json:"visibleOnProductDetailPage"` } diff --git a/model/rule.go b/model/rule.go index c01ce4e..6d0480f 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"` 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 176a7a8..27e669a 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,omitempty"` + Active bool `json:"active"` 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,omitempty"` // required + HomeEnabled bool `json:"homeEnabled"` // 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,omitempty"` + HreflangActive bool `json:"hreflangActive"` 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,omitempty"` + Maintenance bool `json:"maintenance"` 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 f076b2c..7a2020e 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,omitempty"` - AnonymizeIp bool `json:"anonymizeIp,omitempty"` + Active bool `json:"active"` + AnonymizeIp bool `json:"anonymizeIp"` 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,omitempty"` + TrackOrders bool `json:"trackOrders"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` } diff --git a/model/sales_channel_domain.go b/model/sales_channel_domain.go index 303654c..9ad2f08 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,omitempty"` + HreflangUseOnlyLocale bool `json:"hreflangUseOnlyLocale"` 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 44554f2..5ca2a46 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,omitempty"` + HomeEnabled bool `json:"homeEnabled"` 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 2bab91d..4fe05aa 100644 --- a/model/script.go +++ b/model/script.go @@ -3,7 +3,7 @@ package model import "time" type Script struct { - Active bool `json:"active,omitempty"` // required + Active bool `json:"active"` // 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 17bbe72..de61b67 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,omitempty"` - IsDeleted bool `json:"isDeleted,omitempty"` - IsModified bool `json:"isModified,omitempty"` + IsCanonical bool `json:"isCanonical"` + IsDeleted bool `json:"isDeleted"` + IsModified bool `json:"isModified"` 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 342e95c..0508d1a 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,omitempty"` + IsValid bool `json:"isValid"` 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 9a01057..46d23a7 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,omitempty"` + Active bool `json:"active"` 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 8762794..86278db 100644 --- a/model/tax.go +++ b/model/tax.go @@ -16,7 +16,7 @@ type Tax struct { } type CTax struct { - Enabled bool `json:"enabled,omitempty"` // required + Enabled bool `json:"enabled"` // required CurrencyId string `json:"currencyId,omitempty"` // required Amount float64 `json:"amount,omitempty"` // required } diff --git a/model/theme.go b/model/theme.go index 8a1169d..a74e46e 100644 --- a/model/theme.go +++ b/model/theme.go @@ -3,7 +3,7 @@ package model import "time" type Theme struct { - Active bool `json:"active,omitempty"` // required + Active bool `json:"active"` // 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 aa1911f..db25405 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,omitempty"` - Admin bool `json:"admin,omitempty"` + Active bool `json:"active"` + Admin bool `json:"admin"` 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 a70f9f4..67c0584 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,omitempty"` + WriteAccess bool `json:"writeAccess"` } diff --git a/model/version_commit.go b/model/version_commit.go index 09f7b07..7e0cc7d 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,omitempty"` + IsMerge bool `json:"isMerge"` 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 2e161ce..87717d7 100644 --- a/model/webhook.go +++ b/model/webhook.go @@ -3,7 +3,7 @@ package model import "time" type Webhook struct { - Active bool `json:"active,omitempty"` + Active bool `json:"active"` App *App `json:"app,omitempty"` AppId string `json:"appId,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"`