lib/api/research/research_models/company.go

525 lines
12 KiB
Go
Raw Normal View History

// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package research_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"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// Company company
//
// swagger:model Company
type Company struct {
// Account Number
AccountNumber string `json:"AccountNumber,omitempty"`
// Account Source
AccountSource string `json:"AccountSource,omitempty"`
// Annual Revenue
AnnualRevenue string `json:"AnnualRevenue,omitempty"`
// cloud revenue total
CloudRevenueTotal float64 `json:"CloudRevenueTotal,omitempty"`
// The type of cloud company
CloudType string `json:"CloudType,omitempty"`
// The year company started cloud revenue
CloudYear string `json:"CloudYear,omitempty"`
// company products
CompanyProducts *CompanyCompanyProducts `json:"CompanyProducts,omitempty"`
// Created By User ID
CreatedByID string `json:"CreatedByID,omitempty"`
// Created Date
CreatedDate string `json:"CreatedDate,omitempty"`
// Crunchbase URL
CrunchbaseURL string `json:"CrunchbaseURL,omitempty"`
// Description
Description string `json:"Description,omitempty"`
// e i n
EIN string `json:"EIN,omitempty"`
// Earnings Call Date
EarningsCall string `json:"EarningsCall,omitempty"`
// Main Account Email
Email string `json:"Email,omitempty"`
// The amount of equity EquityFunding
EquityFunding float64 `json:"EquityFunding,omitempty"`
// Company Facebook URL
Facebook string `json:"Facebook,omitempty"`
// Fax
Fax string `json:"Fax,omitempty"`
// Date company founded
FoundedDate string `json:"FoundedDate,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`
// IPO Date
IPODate string `json:"IPODate,omitempty"`
// image alt text
ImageAltText string `json:"ImageAltText,omitempty"`
// image URL
ImageURL string `json:"ImageURL,omitempty"`
// Industries
Industries string `json:"Industries,omitempty"`
// Industry
Industry string `json:"Industry,omitempty"`
// industry companies
IndustryCompanies *CompanyIndustryCompanies `json:"IndustryCompanies,omitempty"`
// Last Modified By User ID
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// Company LinkedIn URL
LinkedIn string `json:"LinkedIn,omitempty"`
// listing address
ListingAddress *Address `json:"ListingAddress,omitempty"`
// Headquarters Location Description
Location string `json:"Location,omitempty"`
// Company Logo URL
Logo string `json:"Logo,omitempty"`
// Market Capitalization
MarketCapitalization float64 `json:"MarketCapitalization,omitempty"`
// Name
Name string `json:"Name,omitempty"`
// Number of Investments
NumberInvestments float64 `json:"NumberInvestments,omitempty"`
// Number Of Employees
NumberOfEmployees string `json:"NumberOfEmployees,omitempty"`
// Owner ID
OwnerID string `json:"OwnerID,omitempty"`
// Ownership
Ownership string `json:"Ownership,omitempty"`
// Parent ID
ParentID string `json:"ParentID,omitempty"`
// Phone
Phone string `json:"Phone,omitempty"`
// Publish this record?
Publish bool `json:"Publish,omitempty"`
// Sic
SIC string `json:"SIC,omitempty"`
// Sic Description
SICDesc string `json:"SICDesc,omitempty"`
// A Salesforce-First company?
SalesforceFirst bool `json:"SalesforceFirst,omitempty"`
// Site
Site string `json:"Site,omitempty"`
// Slug
Slug string `json:"Slug,omitempty"`
// Company tagline
TagLine string `json:"TagLine,omitempty"`
// Ticker Symbol
TickerSymbol string `json:"TickerSymbol,omitempty"`
// Twitter URL
Twitter string `json:"Twitter,omitempty"`
// Type
Type string `json:"Type,omitempty"`
// Website
Website string `json:"Website,omitempty"`
// Year Started
YearStarted string `json:"YearStarted,omitempty"`
}
// Validate validates this company
func (m *Company) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateCompanyProducts(formats); err != nil {
res = append(res, err)
}
if err := m.validateIndustryCompanies(formats); err != nil {
res = append(res, err)
}
if err := m.validateListingAddress(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *Company) validateCompanyProducts(formats strfmt.Registry) error {
if swag.IsZero(m.CompanyProducts) { // not required
return nil
}
if m.CompanyProducts != nil {
if err := m.CompanyProducts.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("CompanyProducts")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("CompanyProducts")
}
return err
}
}
return nil
}
func (m *Company) validateIndustryCompanies(formats strfmt.Registry) error {
if swag.IsZero(m.IndustryCompanies) { // not required
return nil
}
if m.IndustryCompanies != nil {
if err := m.IndustryCompanies.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("IndustryCompanies")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("IndustryCompanies")
}
return err
}
}
return nil
}
func (m *Company) validateListingAddress(formats strfmt.Registry) error {
if swag.IsZero(m.ListingAddress) { // not required
return nil
}
if m.ListingAddress != nil {
if err := m.ListingAddress.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("ListingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("ListingAddress")
}
return err
}
}
return nil
}
// ContextValidate validate this company based on the context it is used
func (m *Company) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
if err := m.contextValidateCompanyProducts(ctx, formats); err != nil {
res = append(res, err)
}
if err := m.contextValidateIndustryCompanies(ctx, formats); err != nil {
res = append(res, err)
}
if err := m.contextValidateListingAddress(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *Company) contextValidateCompanyProducts(ctx context.Context, formats strfmt.Registry) error {
if m.CompanyProducts != nil {
if err := m.CompanyProducts.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("CompanyProducts")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("CompanyProducts")
}
return err
}
}
return nil
}
func (m *Company) contextValidateIndustryCompanies(ctx context.Context, formats strfmt.Registry) error {
if m.IndustryCompanies != nil {
if err := m.IndustryCompanies.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("IndustryCompanies")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("IndustryCompanies")
}
return err
}
}
return nil
}
func (m *Company) contextValidateListingAddress(ctx context.Context, formats strfmt.Registry) error {
if m.ListingAddress != nil {
if err := m.ListingAddress.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("ListingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("ListingAddress")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *Company) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Company) UnmarshalBinary(b []byte) error {
var res Company
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// CompanyCompanyProducts Company Products
//
// swagger:model CompanyCompanyProducts
type CompanyCompanyProducts struct {
// items
Items *CompanyProduct `json:"items,omitempty"`
}
// Validate validates this company company products
func (m *CompanyCompanyProducts) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateItems(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *CompanyCompanyProducts) validateItems(formats strfmt.Registry) error {
if swag.IsZero(m.Items) { // not required
return nil
}
if m.Items != nil {
if err := m.Items.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("CompanyProducts" + "." + "items")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("CompanyProducts" + "." + "items")
}
return err
}
}
return nil
}
// ContextValidate validate this company company products based on the context it is used
func (m *CompanyCompanyProducts) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
if err := m.contextValidateItems(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *CompanyCompanyProducts) contextValidateItems(ctx context.Context, formats strfmt.Registry) error {
if m.Items != nil {
if err := m.Items.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("CompanyProducts" + "." + "items")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("CompanyProducts" + "." + "items")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *CompanyCompanyProducts) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *CompanyCompanyProducts) UnmarshalBinary(b []byte) error {
var res CompanyCompanyProducts
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// CompanyIndustryCompanies Industry Companies
//
// swagger:model CompanyIndustryCompanies
type CompanyIndustryCompanies struct {
// items
Items *IndustryCompany `json:"items,omitempty"`
}
// Validate validates this company industry companies
func (m *CompanyIndustryCompanies) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateItems(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *CompanyIndustryCompanies) validateItems(formats strfmt.Registry) error {
if swag.IsZero(m.Items) { // not required
return nil
}
if m.Items != nil {
if err := m.Items.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("IndustryCompanies" + "." + "items")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("IndustryCompanies" + "." + "items")
}
return err
}
}
return nil
}
// ContextValidate validate this company industry companies based on the context it is used
func (m *CompanyIndustryCompanies) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
if err := m.contextValidateItems(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *CompanyIndustryCompanies) contextValidateItems(ctx context.Context, formats strfmt.Registry) error {
if m.Items != nil {
if err := m.Items.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("IndustryCompanies" + "." + "items")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("IndustryCompanies" + "." + "items")
}
return err
}
}
return nil
}
// MarshalBinary interface implementation
func (m *CompanyIndustryCompanies) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *CompanyIndustryCompanies) UnmarshalBinary(b []byte) error {
var res CompanyIndustryCompanies
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}