// Code generated by go-swagger; DO NOT EDIT. // All Code Copyright(c) 2018-2021 by Taxnexus, Inc. // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed package blaze_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "strconv" "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // ProductResponse product response // // swagger:model ProductResponse type ProductResponse struct { // active // Example: true Active bool `json:"active,omitempty"` // assets Assets []*ProductResponseAssetsItems0 `json:"assets"` // automatic re order // Example: false AutomaticReOrder bool `json:"automaticReOrder,omitempty"` // brand // Example: string Brand string `json:"brand,omitempty"` // brand Id // Example: 5cba942502aeca080e3b11e3 BrandID string `json:"brandId,omitempty"` // brand name // Example: Lowell Herb Co BrandName string `json:"brandName,omitempty"` // bundle item results BundleItemResults []string `json:"bundleItemResults"` // bundle items BundleItems []*ProductResponseBundleItemsItems0 `json:"bundleItems"` // by gram // Example: true ByGram bool `json:"byGram,omitempty"` // by prepackage // Example: false ByPrepackage bool `json:"byPrepackage,omitempty"` // cannabis type // Example: DEFAULT CannabisType string `json:"cannabisType,omitempty"` // category Category *ProductResponseCategory `json:"category,omitempty"` // category Id // Example: 5c9fe425e0faca07db94b986 CategoryID string `json:"categoryId,omitempty"` // cbd // Example: 0 Cbd float64 `json:"cbd,omitempty"` // cbda // Example: 0 Cbda float64 `json:"cbda,omitempty"` // cbn // Example: 0 Cbn float64 `json:"cbn,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // company link Id // Example: MTkwNjFTMDE= CompanyLinkID string `json:"companyLinkId,omitempty"` // created // Example: 1555533419406 Created int64 `json:"created,omitempty"` // custom gram type // Example: GRAM CustomGramType string `json:"customGramType,omitempty"` // custom tax info // Example: string CustomTaxInfo string `json:"customTaxInfo,omitempty"` // custom weight // Example: 0 CustomWeight float64 `json:"customWeight,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // description // Example: In this pack: A curated, effect based blend of sativa strains, pre-rolled into seven premium all flower smokes (3.5 grams per pack). All of our products are lab tested, we grow our flowers with only organic fertilizer, and we never use synthetic pesticides. Matches included for your convenience. Description string `json:"description,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // discountable // Example: true Discountable bool `json:"discountable,omitempty"` // enable excise tax // Example: false EnableExciseTax bool `json:"enableExciseTax,omitempty"` // enable mix match // Example: false EnableMixMatch bool `json:"enableMixMatch,omitempty"` // enable weedmap // Example: false EnableWeedmap bool `json:"enableWeedmap,omitempty"` // flower type // Example: Sativa FlowerType string `json:"flowerType,omitempty"` // genetics // Example: string Genetics string `json:"genetics,omitempty"` // id // Example: 5cb78e6b829a5f0834444825 ID string `json:"id,omitempty"` // import Id // Example: string ImportID string `json:"importId,omitempty"` // import src // Example: string ImportSrc string `json:"importSrc,omitempty"` // low inventory notification // Example: false LowInventoryNotification bool `json:"lowInventoryNotification,omitempty"` // low threshold // Example: 0 LowThreshold float64 `json:"lowThreshold,omitempty"` // medical conditions MedicalConditions []string `json:"medicalConditions"` // medicinal // Example: true Medicinal bool `json:"medicinal,omitempty"` // modified // Example: 1556695451723 Modified int64 `json:"modified,omitempty"` // name // Example: Lowell - 3.5g Preroll Pack - Uplifting (S) Name string `json:"name,omitempty"` // notes Notes []string `json:"notes"` // potency // Example: false Potency bool `json:"potency,omitempty"` // potency amount PotencyAmount *ProductResponsePotencyAmount `json:"potencyAmount,omitempty"` // price breaks PriceBreaks []*ProductResponsePriceBreaksItems0 `json:"priceBreaks"` // price includes a l excise // Example: false PriceIncludesALExcise bool `json:"priceIncludesALExcise,omitempty"` // price includes excise // Example: false PriceIncludesExcise bool `json:"priceIncludesExcise,omitempty"` // price ranges PriceRanges []string `json:"priceRanges"` // pricing template Id PricingTemplateID string `json:"pricingTemplateId,omitempty"` // product sale type // Example: Both ProductSaleType string `json:"productSaleType,omitempty"` // product type // Example: REGULAR ProductType string `json:"productType,omitempty"` // qb desktop item ref // Example: string QbDesktopItemRef string `json:"qbDesktopItemRef,omitempty"` // qb item ref // Example: string QbItemRef string `json:"qbItemRef,omitempty"` // quantities Quantities []*ProductResponseQuantitiesItems0 `json:"quantities"` // quantity available // Example: 0 QuantityAvailable float64 `json:"quantityAvailable,omitempty"` // re order level // Example: 0 ReOrderLevel float64 `json:"reOrderLevel,omitempty"` // shop Id // Example: 5c9fe425e0faca07db94b970 ShopID string `json:"shopId,omitempty"` // show in widget // Example: true ShowInWidget bool `json:"showInWidget,omitempty"` // sku // Example: 19061S01 Sku string `json:"sku,omitempty"` // tags Tags []string `json:"tags"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax tables TaxTables []*ProductResponseTaxTablesItems0 `json:"taxTables"` // tax type // Example: Inherit TaxType string `json:"taxType,omitempty"` // thc // Example: 15 Thc float64 `json:"thc,omitempty"` // thca // Example: 0 Thca float64 `json:"thca,omitempty"` // unit price // Example: 40 UnitPrice float64 `json:"unitPrice,omitempty"` // unit value // Example: 1 UnitValue float64 `json:"unitValue,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` // vendor Vendor *ProductResponseVendor `json:"vendor,omitempty"` // vendor Id // Example: 5c82bafa4442190831bcd513 VendorID string `json:"vendorId,omitempty"` // weight per unit // Example: EIGHTH WeightPerUnit string `json:"weightPerUnit,omitempty"` } // Validate validates this product response func (m *ProductResponse) Validate(formats strfmt.Registry) error { var res []error if err := m.validateAssets(formats); err != nil { res = append(res, err) } if err := m.validateBundleItems(formats); err != nil { res = append(res, err) } if err := m.validateCategory(formats); err != nil { res = append(res, err) } if err := m.validatePotencyAmount(formats); err != nil { res = append(res, err) } if err := m.validatePriceBreaks(formats); err != nil { res = append(res, err) } if err := m.validateQuantities(formats); err != nil { res = append(res, err) } if err := m.validateTaxTables(formats); err != nil { res = append(res, err) } if err := m.validateVendor(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *ProductResponse) validateAssets(formats strfmt.Registry) error { if swag.IsZero(m.Assets) { // not required return nil } for i := 0; i < len(m.Assets); i++ { if swag.IsZero(m.Assets[i]) { // not required continue } if m.Assets[i] != nil { if err := m.Assets[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("assets" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponse) validateBundleItems(formats strfmt.Registry) error { if swag.IsZero(m.BundleItems) { // not required return nil } for i := 0; i < len(m.BundleItems); i++ { if swag.IsZero(m.BundleItems[i]) { // not required continue } if m.BundleItems[i] != nil { if err := m.BundleItems[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("bundleItems" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponse) validateCategory(formats strfmt.Registry) error { if swag.IsZero(m.Category) { // not required return nil } if m.Category != nil { if err := m.Category.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("category") } return err } } return nil } func (m *ProductResponse) validatePotencyAmount(formats strfmt.Registry) error { if swag.IsZero(m.PotencyAmount) { // not required return nil } if m.PotencyAmount != nil { if err := m.PotencyAmount.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("potencyAmount") } return err } } return nil } func (m *ProductResponse) validatePriceBreaks(formats strfmt.Registry) error { if swag.IsZero(m.PriceBreaks) { // not required return nil } for i := 0; i < len(m.PriceBreaks); i++ { if swag.IsZero(m.PriceBreaks[i]) { // not required continue } if m.PriceBreaks[i] != nil { if err := m.PriceBreaks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("priceBreaks" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponse) validateQuantities(formats strfmt.Registry) error { if swag.IsZero(m.Quantities) { // not required return nil } for i := 0; i < len(m.Quantities); i++ { if swag.IsZero(m.Quantities[i]) { // not required continue } if m.Quantities[i] != nil { if err := m.Quantities[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("quantities" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponse) validateTaxTables(formats strfmt.Registry) error { if swag.IsZero(m.TaxTables) { // not required return nil } for i := 0; i < len(m.TaxTables); i++ { if swag.IsZero(m.TaxTables[i]) { // not required continue } if m.TaxTables[i] != nil { if err := m.TaxTables[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("taxTables" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponse) validateVendor(formats strfmt.Registry) error { if swag.IsZero(m.Vendor) { // not required return nil } if m.Vendor != nil { if err := m.Vendor.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vendor") } return err } } return nil } // ContextValidate validate this product response based on the context it is used func (m *ProductResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error if err := m.contextValidateAssets(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidateBundleItems(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidateCategory(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidatePotencyAmount(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidatePriceBreaks(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidateQuantities(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidateTaxTables(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidateVendor(ctx, formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *ProductResponse) contextValidateAssets(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Assets); i++ { if m.Assets[i] != nil { if err := m.Assets[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("assets" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponse) contextValidateBundleItems(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.BundleItems); i++ { if m.BundleItems[i] != nil { if err := m.BundleItems[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("bundleItems" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponse) contextValidateCategory(ctx context.Context, formats strfmt.Registry) error { if m.Category != nil { if err := m.Category.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("category") } return err } } return nil } func (m *ProductResponse) contextValidatePotencyAmount(ctx context.Context, formats strfmt.Registry) error { if m.PotencyAmount != nil { if err := m.PotencyAmount.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("potencyAmount") } return err } } return nil } func (m *ProductResponse) contextValidatePriceBreaks(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.PriceBreaks); i++ { if m.PriceBreaks[i] != nil { if err := m.PriceBreaks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("priceBreaks" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponse) contextValidateQuantities(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Quantities); i++ { if m.Quantities[i] != nil { if err := m.Quantities[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("quantities" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponse) contextValidateTaxTables(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.TaxTables); i++ { if m.TaxTables[i] != nil { if err := m.TaxTables[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("taxTables" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponse) contextValidateVendor(ctx context.Context, formats strfmt.Registry) error { if m.Vendor != nil { if err := m.Vendor.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vendor") } return err } } return nil } // MarshalBinary interface implementation func (m *ProductResponse) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponse) UnmarshalBinary(b []byte) error { var res ProductResponse if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseAssetsItems0 product response assets items0 // // swagger:model ProductResponseAssetsItems0 type ProductResponseAssetsItems0 struct { // active // Example: true Active bool `json:"active,omitempty"` // asset type // Example: Photo AssetType string `json:"assetType,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // created // Example: 1555828648113 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5cbc0fa83f8de507ff768bfd ID string `json:"id,omitempty"` // key // Example: 99556cc6-6820-425c-8620-f4ba5a8d601f.jpg Key string `json:"key,omitempty"` // large URL // Example: https://connect-files-public.s3.amazonaws.com/99556cc6-6820-425c-8620-f4ba5a8d601f-800x800.jpg LargeURL string `json:"largeURL,omitempty"` // large x2 URL // Example: https://connect-files-p1.s3.amazonaws.com/99556cc6-6820-425c-8620-f4ba5a8d601f-1600x1600.jpg LargeX2URL string `json:"largeX2URL,omitempty"` // medium URL // Example: https://connect-files-public.s3.amazonaws.com/99556cc6-6820-425c-8620-f4ba5a8d601f-500x500.jpg MediumURL string `json:"mediumURL,omitempty"` // modified // Example: 1555828648113 Modified int64 `json:"modified,omitempty"` // name // Example: Lowell 3 5g.jpg Name string `json:"name,omitempty"` // orig URL // Example: https://connect-files-public.s3.amazonaws.com/99556cc6-6820-425c-8620-f4ba5a8d601f.jpg OrigURL string `json:"origURL,omitempty"` // priority // Example: 0 Priority float64 `json:"priority,omitempty"` // public URL // Example: https://connect-files-public.s3.amazonaws.com/99556cc6-6820-425c-8620-f4ba5a8d601f.jpg PublicURL string `json:"publicURL,omitempty"` // secured // Example: false Secured bool `json:"secured,omitempty"` // thumb URL // Example: https://connect-files-public.s3.amazonaws.com/99556cc6-6820-425c-8620-f4ba5a8d601f-200x200.jpg ThumbURL string `json:"thumbURL,omitempty"` // type // Example: Photo Type string `json:"type,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response assets items0 func (m *ProductResponseAssetsItems0) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response assets items0 based on context it is used func (m *ProductResponseAssetsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseAssetsItems0) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseAssetsItems0) UnmarshalBinary(b []byte) error { var res ProductResponseAssetsItems0 if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseBundleItemsItems0 product response bundle items items0 // // swagger:model ProductResponseBundleItemsItems0 type ProductResponseBundleItemsItems0 struct { // product Id ProductID string `json:"productId,omitempty"` // quantity Quantity float64 `json:"quantity,omitempty"` } // Validate validates this product response bundle items items0 func (m *ProductResponseBundleItemsItems0) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response bundle items items0 based on context it is used func (m *ProductResponseBundleItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseBundleItemsItems0) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseBundleItemsItems0) UnmarshalBinary(b []byte) error { var res ProductResponseBundleItemsItems0 if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseCategory product response category // // swagger:model ProductResponseCategory type ProductResponseCategory struct { // active // Example: true Active bool `json:"active,omitempty"` // cannabis // Example: true Cannabis bool `json:"cannabis,omitempty"` // cannabis type // Example: DEFAULT CannabisType string `json:"cannabisType,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // created // Example: 1553982501834 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // id // Example: 5c9fe425e0faca07db94b986 ID string `json:"id,omitempty"` // low threshold // Example: 0 LowThreshold float64 `json:"lowThreshold,omitempty"` // modified // Example: 1553982501834 Modified int64 `json:"modified,omitempty"` // name // Example: Preroll Name string `json:"name,omitempty"` // photo Photo *ProductResponseCategoryPhoto `json:"photo,omitempty"` // priority // Example: 0 Priority float64 `json:"priority,omitempty"` // shop Id // Example: 5c9fe425e0faca07db94b970 ShopID string `json:"shopId,omitempty"` // unit type // Example: units UnitType string `json:"unitType,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response category func (m *ProductResponseCategory) Validate(formats strfmt.Registry) error { var res []error if err := m.validatePhoto(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *ProductResponseCategory) validatePhoto(formats strfmt.Registry) error { if swag.IsZero(m.Photo) { // not required return nil } if m.Photo != nil { if err := m.Photo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("category" + "." + "photo") } return err } } return nil } // ContextValidate validate this product response category based on the context it is used func (m *ProductResponseCategory) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error if err := m.contextValidatePhoto(ctx, formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *ProductResponseCategory) contextValidatePhoto(ctx context.Context, formats strfmt.Registry) error { if m.Photo != nil { if err := m.Photo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("category" + "." + "photo") } return err } } return nil } // MarshalBinary interface implementation func (m *ProductResponseCategory) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseCategory) UnmarshalBinary(b []byte) error { var res ProductResponseCategory if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseCategoryPhoto product response category photo // // swagger:model ProductResponseCategoryPhoto type ProductResponseCategoryPhoto struct { // active // Example: true Active bool `json:"active,omitempty"` // asset type // Example: Photo AssetType string `json:"assetType,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // created // Example: 1553982501834 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5c9fe425e0faca07db94b97a ID string `json:"id,omitempty"` // key // Example: 420default-Preroll.jpg Key string `json:"key,omitempty"` // large URL // Example: string LargeURL string `json:"largeURL,omitempty"` // large x2 URL // Example: string LargeX2URL string `json:"largeX2URL,omitempty"` // medium URL // Example: string MediumURL string `json:"mediumURL,omitempty"` // modified // Example: 1553982501834 Modified int64 `json:"modified,omitempty"` // name // Example: Preroll.jpg Name string `json:"name,omitempty"` // orig URL // Example: string OrigURL string `json:"origURL,omitempty"` // priority // Example: 0 Priority float64 `json:"priority,omitempty"` // public URL // Example: https://s3.amazonaws.com/connect-files-public/420default-Preroll.jpg PublicURL string `json:"publicURL,omitempty"` // secured // Example: false Secured bool `json:"secured,omitempty"` // thumb URL // Example: string ThumbURL string `json:"thumbURL,omitempty"` // type // Example: Photo Type string `json:"type,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response category photo func (m *ProductResponseCategoryPhoto) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response category photo based on context it is used func (m *ProductResponseCategoryPhoto) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseCategoryPhoto) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseCategoryPhoto) UnmarshalBinary(b []byte) error { var res ProductResponseCategoryPhoto if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponsePotencyAmount product response potency amount // // swagger:model ProductResponsePotencyAmount type ProductResponsePotencyAmount struct { // cbd // Example: 0 Cbd float64 `json:"cbd,omitempty"` // cbda // Example: 0 Cbda float64 `json:"cbda,omitempty"` // cbn // Example: 0 Cbn float64 `json:"cbn,omitempty"` // thc // Example: 0 Thc float64 `json:"thc,omitempty"` // thca // Example: 0 Thca float64 `json:"thca,omitempty"` } // Validate validates this product response potency amount func (m *ProductResponsePotencyAmount) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response potency amount based on context it is used func (m *ProductResponsePotencyAmount) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponsePotencyAmount) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponsePotencyAmount) UnmarshalBinary(b []byte) error { var res ProductResponsePotencyAmount if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponsePriceBreaksItems0 product response price breaks items0 // // swagger:model ProductResponsePriceBreaksItems0 type ProductResponsePriceBreaksItems0 struct { // active // Example: true Active bool `json:"active,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // created // Example: 1555533419417 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // display name // Example: string DisplayName string `json:"displayName,omitempty"` // id // Example: 5cb78e6b829a5f0834444827 ID string `json:"id,omitempty"` // modified // Example: 1555533419417 Modified int64 `json:"modified,omitempty"` // name // Example: 1 each Name string `json:"name,omitempty"` // price // Example: 40 Price float64 `json:"price,omitempty"` // price break type // Example: OneGramUnit PriceBreakType string `json:"priceBreakType,omitempty"` // priority // Example: 0 Priority float64 `json:"priority,omitempty"` // quantity // Example: 1 Quantity float64 `json:"quantity,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response price breaks items0 func (m *ProductResponsePriceBreaksItems0) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response price breaks items0 based on context it is used func (m *ProductResponsePriceBreaksItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponsePriceBreaksItems0) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponsePriceBreaksItems0) UnmarshalBinary(b []byte) error { var res ProductResponsePriceBreaksItems0 if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseQuantitiesItems0 product response quantities items0 // // swagger:model ProductResponseQuantitiesItems0 type ProductResponseQuantitiesItems0 struct { // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // created // Example: 1555633414363 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // id // Example: 5cb91506819d9e04973cc7c2 ID string `json:"id,omitempty"` // inventory Id // Example: 5c9fe425e0faca07db94b992 InventoryID string `json:"inventoryId,omitempty"` // modified // Example: 1555633414363 Modified int64 `json:"modified,omitempty"` // quantity // Example: 0 Quantity float64 `json:"quantity,omitempty"` // shop Id // Example: 5c9fe425e0faca07db94b970 ShopID string `json:"shopId,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response quantities items0 func (m *ProductResponseQuantitiesItems0) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response quantities items0 based on context it is used func (m *ProductResponseQuantitiesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseQuantitiesItems0) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseQuantitiesItems0) UnmarshalBinary(b []byte) error { var res ProductResponseQuantitiesItems0 if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseTaxTablesItems0 product response tax tables items0 // // swagger:model ProductResponseTaxTablesItems0 type ProductResponseTaxTablesItems0 struct { // active // Example: false Active bool `json:"active,omitempty"` // city tax CityTax *ProductResponseTaxTablesItems0CityTax `json:"cityTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // consumer type // Example: AdultUse ConsumerType string `json:"consumerType,omitempty"` // county tax CountyTax *ProductResponseTaxTablesItems0CountyTax `json:"countyTax,omitempty"` // created // Example: 1555609033636 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // federal tax FederalTax *ProductResponseTaxTablesItems0FederalTax `json:"federalTax,omitempty"` // id // Example: 5cb8b5c99c57ec083d307a93 ID string `json:"id,omitempty"` // modified // Example: 1555609033636 Modified int64 `json:"modified,omitempty"` // name // Example: Adult Use Name string `json:"name,omitempty"` // shop Id // Example: 5c9fe425e0faca07db94b970 ShopID string `json:"shopId,omitempty"` // state tax StateTax *ProductResponseTaxTablesItems0StateTax `json:"stateTax,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax type // Example: Custom TaxType string `json:"taxType,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response tax tables items0 func (m *ProductResponseTaxTablesItems0) Validate(formats strfmt.Registry) error { var res []error if err := m.validateCityTax(formats); err != nil { res = append(res, err) } if err := m.validateCountyTax(formats); err != nil { res = append(res, err) } if err := m.validateFederalTax(formats); err != nil { res = append(res, err) } if err := m.validateStateTax(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *ProductResponseTaxTablesItems0) validateCityTax(formats strfmt.Registry) error { if swag.IsZero(m.CityTax) { // not required return nil } if m.CityTax != nil { if err := m.CityTax.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cityTax") } return err } } return nil } func (m *ProductResponseTaxTablesItems0) validateCountyTax(formats strfmt.Registry) error { if swag.IsZero(m.CountyTax) { // not required return nil } if m.CountyTax != nil { if err := m.CountyTax.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("countyTax") } return err } } return nil } func (m *ProductResponseTaxTablesItems0) validateFederalTax(formats strfmt.Registry) error { if swag.IsZero(m.FederalTax) { // not required return nil } if m.FederalTax != nil { if err := m.FederalTax.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("federalTax") } return err } } return nil } func (m *ProductResponseTaxTablesItems0) validateStateTax(formats strfmt.Registry) error { if swag.IsZero(m.StateTax) { // not required return nil } if m.StateTax != nil { if err := m.StateTax.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stateTax") } return err } } return nil } // ContextValidate validate this product response tax tables items0 based on the context it is used func (m *ProductResponseTaxTablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error if err := m.contextValidateCityTax(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidateCountyTax(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidateFederalTax(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidateStateTax(ctx, formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *ProductResponseTaxTablesItems0) contextValidateCityTax(ctx context.Context, formats strfmt.Registry) error { if m.CityTax != nil { if err := m.CityTax.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cityTax") } return err } } return nil } func (m *ProductResponseTaxTablesItems0) contextValidateCountyTax(ctx context.Context, formats strfmt.Registry) error { if m.CountyTax != nil { if err := m.CountyTax.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("countyTax") } return err } } return nil } func (m *ProductResponseTaxTablesItems0) contextValidateFederalTax(ctx context.Context, formats strfmt.Registry) error { if m.FederalTax != nil { if err := m.FederalTax.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("federalTax") } return err } } return nil } func (m *ProductResponseTaxTablesItems0) contextValidateStateTax(ctx context.Context, formats strfmt.Registry) error { if m.StateTax != nil { if err := m.StateTax.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stateTax") } return err } } return nil } // MarshalBinary interface implementation func (m *ProductResponseTaxTablesItems0) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseTaxTablesItems0) UnmarshalBinary(b []byte) error { var res ProductResponseTaxTablesItems0 if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseTaxTablesItems0CityTax product response tax tables items0 city tax // // swagger:model ProductResponseTaxTablesItems0CityTax type ProductResponseTaxTablesItems0CityTax struct { // active // Example: false Active bool `json:"active,omitempty"` // active excise tax // Example: false ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1555609033636 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // id // Example: 5cb8b5c99c57ec083d307a94 ID string `json:"id,omitempty"` // modified // Example: 1555609033636 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c9fe425e0faca07db94b970 ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 0 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: City Territory string `json:"territory,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response tax tables items0 city tax func (m *ProductResponseTaxTablesItems0CityTax) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response tax tables items0 city tax based on context it is used func (m *ProductResponseTaxTablesItems0CityTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseTaxTablesItems0CityTax) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseTaxTablesItems0CityTax) UnmarshalBinary(b []byte) error { var res ProductResponseTaxTablesItems0CityTax if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseTaxTablesItems0CountyTax product response tax tables items0 county tax // // swagger:model ProductResponseTaxTablesItems0CountyTax type ProductResponseTaxTablesItems0CountyTax struct { // active // Example: false Active bool `json:"active,omitempty"` // active excise tax // Example: false ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1555609033636 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // id // Example: 5cb8b5c99c57ec083d307a95 ID string `json:"id,omitempty"` // modified // Example: 1555609033636 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c9fe425e0faca07db94b970 ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 0 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: County Territory string `json:"territory,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response tax tables items0 county tax func (m *ProductResponseTaxTablesItems0CountyTax) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response tax tables items0 county tax based on context it is used func (m *ProductResponseTaxTablesItems0CountyTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseTaxTablesItems0CountyTax) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseTaxTablesItems0CountyTax) UnmarshalBinary(b []byte) error { var res ProductResponseTaxTablesItems0CountyTax if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseTaxTablesItems0FederalTax product response tax tables items0 federal tax // // swagger:model ProductResponseTaxTablesItems0FederalTax type ProductResponseTaxTablesItems0FederalTax struct { // active // Example: false Active bool `json:"active,omitempty"` // active excise tax // Example: false ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1555609033636 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // id // Example: 5cb8b5c99c57ec083d307a97 ID string `json:"id,omitempty"` // modified // Example: 1555609033636 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c9fe425e0faca07db94b970 ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 0 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: Federal Territory string `json:"territory,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response tax tables items0 federal tax func (m *ProductResponseTaxTablesItems0FederalTax) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response tax tables items0 federal tax based on context it is used func (m *ProductResponseTaxTablesItems0FederalTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseTaxTablesItems0FederalTax) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseTaxTablesItems0FederalTax) UnmarshalBinary(b []byte) error { var res ProductResponseTaxTablesItems0FederalTax if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseTaxTablesItems0StateTax product response tax tables items0 state tax // // swagger:model ProductResponseTaxTablesItems0StateTax type ProductResponseTaxTablesItems0StateTax struct { // active // Example: false Active bool `json:"active,omitempty"` // active excise tax // Example: false ActiveExciseTax bool `json:"activeExciseTax,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // compound // Example: false Compound bool `json:"compound,omitempty"` // created // Example: 1555609033636 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // dirty // Example: false Dirty bool `json:"dirty,omitempty"` // id // Example: 5cb8b5c99c57ec083d307a96 ID string `json:"id,omitempty"` // modified // Example: 1555609033636 Modified int64 `json:"modified,omitempty"` // shop Id // Example: 5c9fe425e0faca07db94b970 ShopID string `json:"shopId,omitempty"` // tax order // Example: PostTaxed TaxOrder string `json:"taxOrder,omitempty"` // tax rate // Example: 0 TaxRate float64 `json:"taxRate,omitempty"` // territory // Example: State Territory string `json:"territory,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response tax tables items0 state tax func (m *ProductResponseTaxTablesItems0StateTax) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response tax tables items0 state tax based on context it is used func (m *ProductResponseTaxTablesItems0StateTax) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseTaxTablesItems0StateTax) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseTaxTablesItems0StateTax) UnmarshalBinary(b []byte) error { var res ProductResponseTaxTablesItems0StateTax if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseVendor product response vendor // // swagger:model ProductResponseVendor type ProductResponseVendor struct { // active // Example: true Active bool `json:"active,omitempty"` // additional address list AdditionalAddressList []string `json:"additionalAddressList"` // address Address *ProductResponseVendorAddress `json:"address,omitempty"` // arms length type // Example: ARMS_LENGTH ArmsLengthType string `json:"armsLengthType,omitempty"` // assets Assets []*ProductResponseVendorAssetsItems0 `json:"assets"` // back order enabled // Example: false BackOrderEnabled bool `json:"backOrderEnabled,omitempty"` // brands // Example: ["5cba942502aeca080e3b11e3"] Brands []string `json:"brands"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // company licenses CompanyLicenses []*ProductResponseVendorCompanyLicensesItems0 `json:"companyLicenses"` // company type // Example: string CompanyType string `json:"companyType,omitempty"` // created // Example: 1552071418457 Created int64 `json:"created,omitempty"` // credits // Example: 0 Credits float64 `json:"credits,omitempty"` // dba name // Example: string DbaName string `json:"dbaName,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // description Description string `json:"description,omitempty"` // email Email string `json:"email,omitempty"` // fax Fax string `json:"fax,omitempty"` // first name // Example: Dom FirstName string `json:"firstName,omitempty"` // id // Example: 5c82bafa4442190831bcd513 ID string `json:"id,omitempty"` // import Id // Example: string ImportID string `json:"importId,omitempty"` // last name LastName string `json:"lastName,omitempty"` // licence type // Example: string LicenceType string `json:"licenceType,omitempty"` // license expiration date // Example: 0 LicenseExpirationDate float64 `json:"licenseExpirationDate,omitempty"` // license number LicenseNumber string `json:"licenseNumber,omitempty"` // mobile number // Example: string MobileNumber string `json:"mobileNumber,omitempty"` // modified // Example: 1556175123774 Modified int64 `json:"modified,omitempty"` // name // Example: Lowell Herb Co / The Hacienda Co LLC Name string `json:"name,omitempty"` // notes Notes []string `json:"notes"` // phone Phone string `json:"phone,omitempty"` // qb desktop ref // Example: string QbDesktopRef string `json:"qbDesktopRef,omitempty"` // qb vendor ref QbVendorRef []string `json:"qbVendorRef"` // related entity // Example: false RelatedEntity bool `json:"relatedEntity,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` // vendor key // Example: NWM3ZThjN2I3MjJlZDYwN2U2MWVkYjA2X2xvd2VsbCBoZXJiIGNvIC8gdGhlIGhhY2llbmRhIGNvIGxsYw== VendorKey string `json:"vendorKey,omitempty"` // vendor type // Example: VENDOR VendorType string `json:"vendorType,omitempty"` // website Website string `json:"website,omitempty"` } // Validate validates this product response vendor func (m *ProductResponseVendor) Validate(formats strfmt.Registry) error { var res []error if err := m.validateAddress(formats); err != nil { res = append(res, err) } if err := m.validateAssets(formats); err != nil { res = append(res, err) } if err := m.validateCompanyLicenses(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *ProductResponseVendor) validateAddress(formats strfmt.Registry) error { if swag.IsZero(m.Address) { // not required return nil } if m.Address != nil { if err := m.Address.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vendor" + "." + "address") } return err } } return nil } func (m *ProductResponseVendor) validateAssets(formats strfmt.Registry) error { if swag.IsZero(m.Assets) { // not required return nil } for i := 0; i < len(m.Assets); i++ { if swag.IsZero(m.Assets[i]) { // not required continue } if m.Assets[i] != nil { if err := m.Assets[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vendor" + "." + "assets" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponseVendor) validateCompanyLicenses(formats strfmt.Registry) error { if swag.IsZero(m.CompanyLicenses) { // not required return nil } for i := 0; i < len(m.CompanyLicenses); i++ { if swag.IsZero(m.CompanyLicenses[i]) { // not required continue } if m.CompanyLicenses[i] != nil { if err := m.CompanyLicenses[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vendor" + "." + "companyLicenses" + "." + strconv.Itoa(i)) } return err } } } return nil } // ContextValidate validate this product response vendor based on the context it is used func (m *ProductResponseVendor) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error if err := m.contextValidateAddress(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidateAssets(ctx, formats); err != nil { res = append(res, err) } if err := m.contextValidateCompanyLicenses(ctx, formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *ProductResponseVendor) contextValidateAddress(ctx context.Context, formats strfmt.Registry) error { if m.Address != nil { if err := m.Address.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vendor" + "." + "address") } return err } } return nil } func (m *ProductResponseVendor) contextValidateAssets(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Assets); i++ { if m.Assets[i] != nil { if err := m.Assets[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vendor" + "." + "assets" + "." + strconv.Itoa(i)) } return err } } } return nil } func (m *ProductResponseVendor) contextValidateCompanyLicenses(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.CompanyLicenses); i++ { if m.CompanyLicenses[i] != nil { if err := m.CompanyLicenses[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vendor" + "." + "companyLicenses" + "." + strconv.Itoa(i)) } return err } } } return nil } // MarshalBinary interface implementation func (m *ProductResponseVendor) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseVendor) UnmarshalBinary(b []byte) error { var res ProductResponseVendor if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseVendorAddress product response vendor address // // swagger:model ProductResponseVendorAddress type ProductResponseVendorAddress struct { // address Address string `json:"address,omitempty"` // city City string `json:"city,omitempty"` // company Id // Example: string CompanyID string `json:"companyId,omitempty"` // country // Example: US Country string `json:"country,omitempty"` // created // Example: 1552071418457 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5c82bafa4442190831bcd512 ID string `json:"id,omitempty"` // modified // Example: 1552071418457 Modified int64 `json:"modified,omitempty"` // state State string `json:"state,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` // zip code ZipCode string `json:"zipCode,omitempty"` } // Validate validates this product response vendor address func (m *ProductResponseVendorAddress) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response vendor address based on context it is used func (m *ProductResponseVendorAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseVendorAddress) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseVendorAddress) UnmarshalBinary(b []byte) error { var res ProductResponseVendorAddress if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseVendorAssetsItems0 product response vendor assets items0 // // swagger:model ProductResponseVendorAssetsItems0 type ProductResponseVendorAssetsItems0 struct { // active // Example: true Active bool `json:"active,omitempty"` // asset type // Example: Photo AssetType string `json:"assetType,omitempty"` // company Id // Example: 5c7e8c7b722ed607e61edb06 CompanyID string `json:"companyId,omitempty"` // created // Example: 1556052368662 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5cbf79908a29f808183540e7 ID string `json:"id,omitempty"` // key // Example: c71adc95-bb07-47f2-b9f6-cc4db7936686.png Key string `json:"key,omitempty"` // large URL // Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-800x800.png LargeURL string `json:"largeURL,omitempty"` // large x2 URL // Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-1600x1600.png LargeX2URL string `json:"largeX2URL,omitempty"` // medium URL // Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-500x500.png MediumURL string `json:"mediumURL,omitempty"` // modified // Example: 1556052368662 Modified int64 `json:"modified,omitempty"` // name // Example: Brian Main DL.png Name string `json:"name,omitempty"` // priority // Example: 0 Priority float64 `json:"priority,omitempty"` // secured // Example: true Secured bool `json:"secured,omitempty"` // thumb URL // Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-200x200.png ThumbURL string `json:"thumbURL,omitempty"` // type // Example: Photo Type string `json:"type,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response vendor assets items0 func (m *ProductResponseVendorAssetsItems0) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response vendor assets items0 based on context it is used func (m *ProductResponseVendorAssetsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseVendorAssetsItems0) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseVendorAssetsItems0) UnmarshalBinary(b []byte) error { var res ProductResponseVendorAssetsItems0 if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // ProductResponseVendorCompanyLicensesItems0 product response vendor company licenses items0 // // swagger:model ProductResponseVendorCompanyLicensesItems0 type ProductResponseVendorCompanyLicensesItems0 struct { // company type // Example: RETAILER CompanyType string `json:"companyType,omitempty"` // created // Example: 1556175123774 Created int64 `json:"created,omitempty"` // deleted // Example: false Deleted bool `json:"deleted,omitempty"` // id // Example: 5cc159132a77f44828c02d8b ID string `json:"id,omitempty"` // license expiration date // Example: 0 LicenseExpirationDate float64 `json:"licenseExpirationDate,omitempty"` // license number LicenseNumber string `json:"licenseNumber,omitempty"` // license type // Example: string LicenseType string `json:"licenseType,omitempty"` // modified // Example: 1556175123774 Modified int64 `json:"modified,omitempty"` // to default // Example: true ToDefault bool `json:"toDefault,omitempty"` // updated // Example: false Updated bool `json:"updated,omitempty"` } // Validate validates this product response vendor company licenses items0 func (m *ProductResponseVendorCompanyLicensesItems0) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this product response vendor company licenses items0 based on context it is used func (m *ProductResponseVendorCompanyLicensesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *ProductResponseVendorCompanyLicensesItems0) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *ProductResponseVendorCompanyLicensesItems0) UnmarshalBinary(b []byte) error { var res ProductResponseVendorCompanyLicensesItems0 if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }