2023-04-06 01:28:58 +00:00
|
|
|
// 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 plex_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"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Company company
|
|
|
|
//
|
|
|
|
// swagger:model Company
|
|
|
|
type Company struct {
|
|
|
|
|
2023-04-07 00:34:49 +00:00
|
|
|
// Account Id
|
2023-04-30 04:48:40 +00:00
|
|
|
AccountID *string `json:"AccountID,omitempty"`
|
2023-04-07 00:34:49 +00:00
|
|
|
|
2023-04-06 01:28:58 +00:00
|
|
|
// Company Number
|
2023-04-30 04:48:40 +00:00
|
|
|
AccountNumber *string `json:"AccountNumber,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// The marketing origin of this Company
|
2023-04-30 04:48:40 +00:00
|
|
|
AccountSource *string `json:"AccountSource,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// active
|
2023-04-30 04:48:40 +00:00
|
|
|
Active *bool `json:"Active,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Annual Revenue Estimate
|
2023-04-30 04:48:40 +00:00
|
|
|
AnnualRevenue *float64 `json:"AnnualRevenue,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
2024-06-28 22:40:38 +00:00
|
|
|
// Salesforce AppExchange URL
|
|
|
|
AppExchange *string `json:"AppExchange,omitempty"`
|
|
|
|
|
2023-04-06 01:28:58 +00:00
|
|
|
// cloud revenue total
|
2023-04-30 04:48:40 +00:00
|
|
|
CloudRevenueTotal *float64 `json:"CloudRevenueTotal,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// The type of cloud company
|
2023-04-30 04:48:40 +00:00
|
|
|
CloudType *string `json:"CloudType,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// The year company started cloud revenue
|
2023-04-30 04:48:40 +00:00
|
|
|
CloudYear *string `json:"CloudYear,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Company Products
|
|
|
|
CompanyProducts []*CompanyProduct `json:"CompanyProducts"`
|
|
|
|
|
2023-04-07 00:34:49 +00:00
|
|
|
// Company Crunchbase URL
|
2023-04-30 04:48:40 +00:00
|
|
|
CrunchbaseURL *string `json:"CrunchbaseURL,omitempty"`
|
2023-04-07 00:34:49 +00:00
|
|
|
|
2023-04-06 01:28:58 +00:00
|
|
|
// Description of the Company
|
2023-04-30 04:48:40 +00:00
|
|
|
Description *string `json:"Description,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Earnings Call Date
|
2023-04-30 04:48:40 +00:00
|
|
|
EarningsCall *string `json:"EarningsCall,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Main Company Email
|
2023-04-30 04:48:40 +00:00
|
|
|
Email *string `json:"Email,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// The amount of equity EquityFunding
|
2023-04-30 04:48:40 +00:00
|
|
|
EquityFunding *float64 `json:"EquityFunding,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Company Facebook URL
|
2023-04-30 04:48:40 +00:00
|
|
|
Facebook *string `json:"Facebook,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Fax number
|
2023-04-30 04:48:40 +00:00
|
|
|
Fax *string `json:"Fax,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Financial Statements
|
|
|
|
FinancialStatements []*FinancialStatement `json:"FinancialStatements"`
|
|
|
|
|
|
|
|
// Date company founded
|
2023-04-30 04:48:40 +00:00
|
|
|
FoundedDate *string `json:"FoundedDate,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
2024-06-27 18:26:58 +00:00
|
|
|
// Full Description of the Company
|
|
|
|
FullDescription *string `json:"FullDescription,omitempty"`
|
|
|
|
|
2023-04-06 01:28:58 +00:00
|
|
|
// Company Id
|
|
|
|
ID string `json:"ID,omitempty"`
|
|
|
|
|
|
|
|
// IPO Date
|
2023-04-30 04:48:40 +00:00
|
|
|
IPODate *string `json:"IPODate,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// image alt text
|
2023-04-30 04:48:40 +00:00
|
|
|
ImageAltText *string `json:"ImageAltText,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// image URL
|
2023-04-30 04:48:40 +00:00
|
|
|
ImageURL *string `json:"ImageURL,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Industries
|
2023-04-30 04:48:40 +00:00
|
|
|
Industries *string `json:"Industries,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Industry
|
2023-04-30 04:48:40 +00:00
|
|
|
Industry *string `json:"Industry,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Similar Companies
|
|
|
|
IndustryCompanies []*IndustryCompany `json:"IndustryCompanies"`
|
|
|
|
|
|
|
|
// Company LinkedIn URL
|
2023-04-30 04:48:40 +00:00
|
|
|
LinkedIn *string `json:"LinkedIn,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// listing address
|
|
|
|
ListingAddress *Address `json:"ListingAddress,omitempty"`
|
|
|
|
|
|
|
|
// Headquarters Location Description
|
2023-04-30 04:48:40 +00:00
|
|
|
Location *string `json:"Location,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Company Logo URL
|
2023-04-30 04:48:40 +00:00
|
|
|
Logo *string `json:"Logo,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Market Capitalization
|
2023-04-30 04:48:40 +00:00
|
|
|
MarketCapitalization *float64 `json:"MarketCapitalization,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Company Name
|
2023-04-30 04:48:40 +00:00
|
|
|
Name *string `json:"Name,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Number of Investments
|
2023-04-30 04:48:40 +00:00
|
|
|
NumberInvestments *float64 `json:"NumberInvestments,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Employee Count Estimate
|
2023-04-30 04:48:40 +00:00
|
|
|
NumberOfEmployees *int64 `json:"NumberOfEmployees,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Ownership
|
2023-04-30 04:48:40 +00:00
|
|
|
Ownership *string `json:"Ownership,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Parent Company
|
2023-04-30 04:48:40 +00:00
|
|
|
ParentID *string `json:"ParentID,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Phone
|
2023-04-30 04:48:40 +00:00
|
|
|
Phone *string `json:"Phone,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Publish this record?
|
2023-04-30 04:48:40 +00:00
|
|
|
Publish *bool `json:"Publish,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// A Salesforce-First company?
|
2023-04-30 04:48:40 +00:00
|
|
|
SalesforceFirst *bool `json:"SalesforceFirst,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Slug
|
2023-04-30 04:48:40 +00:00
|
|
|
Slug *string `json:"Slug,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Company tagline
|
2023-04-30 04:48:40 +00:00
|
|
|
TagLine *string `json:"TagLine,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Ticker Symbol
|
2023-04-30 04:48:40 +00:00
|
|
|
TickerSymbol *string `json:"TickerSymbol,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Twitter URL
|
2023-04-30 04:48:40 +00:00
|
|
|
Twitter *string `json:"Twitter,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Type
|
2023-04-30 04:48:40 +00:00
|
|
|
Type *string `json:"Type,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Website
|
2023-04-30 04:48:40 +00:00
|
|
|
Website *string `json:"Website,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
|
|
|
|
// Year Started
|
2023-04-30 04:48:40 +00:00
|
|
|
YearStarted *string `json:"YearStarted,omitempty"`
|
2023-04-06 01:28:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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.validateFinancialStatements(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
|
|
|
|
}
|
|
|
|
|
|
|
|
for i := 0; i < len(m.CompanyProducts); i++ {
|
|
|
|
if swag.IsZero(m.CompanyProducts[i]) { // not required
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
|
|
|
|
if m.CompanyProducts[i] != nil {
|
|
|
|
if err := m.CompanyProducts[i].Validate(formats); err != nil {
|
|
|
|
if ve, ok := err.(*errors.Validation); ok {
|
|
|
|
return ve.ValidateName("CompanyProducts" + "." + strconv.Itoa(i))
|
|
|
|
} else if ce, ok := err.(*errors.CompositeError); ok {
|
|
|
|
return ce.ValidateName("CompanyProducts" + "." + strconv.Itoa(i))
|
|
|
|
}
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Company) validateFinancialStatements(formats strfmt.Registry) error {
|
|
|
|
if swag.IsZero(m.FinancialStatements) { // not required
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
for i := 0; i < len(m.FinancialStatements); i++ {
|
|
|
|
if swag.IsZero(m.FinancialStatements[i]) { // not required
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
|
|
|
|
if m.FinancialStatements[i] != nil {
|
|
|
|
if err := m.FinancialStatements[i].Validate(formats); err != nil {
|
|
|
|
if ve, ok := err.(*errors.Validation); ok {
|
|
|
|
return ve.ValidateName("FinancialStatements" + "." + strconv.Itoa(i))
|
|
|
|
} else if ce, ok := err.(*errors.CompositeError); ok {
|
|
|
|
return ce.ValidateName("FinancialStatements" + "." + strconv.Itoa(i))
|
|
|
|
}
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Company) validateIndustryCompanies(formats strfmt.Registry) error {
|
|
|
|
if swag.IsZero(m.IndustryCompanies) { // not required
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
for i := 0; i < len(m.IndustryCompanies); i++ {
|
|
|
|
if swag.IsZero(m.IndustryCompanies[i]) { // not required
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
|
|
|
|
if m.IndustryCompanies[i] != nil {
|
|
|
|
if err := m.IndustryCompanies[i].Validate(formats); err != nil {
|
|
|
|
if ve, ok := err.(*errors.Validation); ok {
|
|
|
|
return ve.ValidateName("IndustryCompanies" + "." + strconv.Itoa(i))
|
|
|
|
} else if ce, ok := err.(*errors.CompositeError); ok {
|
|
|
|
return ce.ValidateName("IndustryCompanies" + "." + strconv.Itoa(i))
|
|
|
|
}
|
|
|
|
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.contextValidateFinancialStatements(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 {
|
|
|
|
|
|
|
|
for i := 0; i < len(m.CompanyProducts); i++ {
|
|
|
|
|
|
|
|
if m.CompanyProducts[i] != nil {
|
|
|
|
if err := m.CompanyProducts[i].ContextValidate(ctx, formats); err != nil {
|
|
|
|
if ve, ok := err.(*errors.Validation); ok {
|
|
|
|
return ve.ValidateName("CompanyProducts" + "." + strconv.Itoa(i))
|
|
|
|
} else if ce, ok := err.(*errors.CompositeError); ok {
|
|
|
|
return ce.ValidateName("CompanyProducts" + "." + strconv.Itoa(i))
|
|
|
|
}
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Company) contextValidateFinancialStatements(ctx context.Context, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
for i := 0; i < len(m.FinancialStatements); i++ {
|
|
|
|
|
|
|
|
if m.FinancialStatements[i] != nil {
|
|
|
|
if err := m.FinancialStatements[i].ContextValidate(ctx, formats); err != nil {
|
|
|
|
if ve, ok := err.(*errors.Validation); ok {
|
|
|
|
return ve.ValidateName("FinancialStatements" + "." + strconv.Itoa(i))
|
|
|
|
} else if ce, ok := err.(*errors.CompositeError); ok {
|
|
|
|
return ce.ValidateName("FinancialStatements" + "." + strconv.Itoa(i))
|
|
|
|
}
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Company) contextValidateIndustryCompanies(ctx context.Context, formats strfmt.Registry) error {
|
|
|
|
|
|
|
|
for i := 0; i < len(m.IndustryCompanies); i++ {
|
|
|
|
|
|
|
|
if m.IndustryCompanies[i] != nil {
|
|
|
|
if err := m.IndustryCompanies[i].ContextValidate(ctx, formats); err != nil {
|
|
|
|
if ve, ok := err.(*errors.Validation); ok {
|
|
|
|
return ve.ValidateName("IndustryCompanies" + "." + strconv.Itoa(i))
|
|
|
|
} else if ce, ok := err.(*errors.CompositeError); ok {
|
|
|
|
return ce.ValidateName("IndustryCompanies" + "." + strconv.Itoa(i))
|
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|