// Code generated by go-swagger; DO NOT EDIT. // (c) 2012-2020 by Telnexus LLC // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed package voip_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/strfmt" "github.com/go-openapi/swag" ) // PhoneNumber phone number // // swagger:model PhoneNumber type PhoneNumber struct { // Telnexus Account ID AccountID string `json:"AccountID,omitempty"` // AuthorityID AuthorityID string `json:"AuthorityID,omitempty"` // Telnexus Company ID CompanyID string `json:"CompanyID,omitempty"` // Telnexus Contact ID ContactID string `json:"ContactID,omitempty"` // Telnexus Contract ID ContractID string `json:"ContractID,omitempty"` // Description Description string `json:"Description,omitempty"` // Extension Extension string `json:"Extension,omitempty"` // Fax Line? FaxLine bool `json:"FaxLine,omitempty"` // Telnexus Record ID ID string `json:"ID,omitempty"` // Indicator Indicator string `json:"Indicator,omitempty"` // Local Service LocalService bool `json:"LocalService,omitempty"` // Local Toll LocalToll bool `json:"LocalToll,omitempty"` // Long Distance LongDistance bool `json:"LongDistance,omitempty"` // Losing Carrier LosingCarrier string `json:"LosingCarrier,omitempty"` // Telnexus Opportunity ID OpportunityID string `json:"OpportunityID,omitempty"` // Telnexus Order ID OrderID string `json:"OrderID,omitempty"` // Phone Number PhoneNumber string `json:"PhoneNumber,omitempty"` // Is this number to ported out? PortOut bool `json:"PortOut,omitempty"` // Telnexus Product ID ProductID string `json:"ProductID,omitempty"` // Telnexus Quote ID QuoteID string `json:"QuoteID,omitempty"` // Rate Center Ratecenter string `json:"Ratecenter,omitempty"` // Is this a safety number? Safety bool `json:"Safety,omitempty"` // Number Status Status string `json:"Status,omitempty"` // Subscription ID SubscriptionID string `json:"SubscriptionID,omitempty"` // Tollfree Tollfree string `json:"Tollfree,omitempty"` // Number Type Type string `json:"Type,omitempty"` // Wholesale Vendor ID WholesalerID string `json:"WholesalerID,omitempty"` } // Validate validates this phone number func (m *PhoneNumber) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this phone number based on context it is used func (m *PhoneNumber) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *PhoneNumber) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *PhoneNumber) UnmarshalBinary(b []byte) error { var res PhoneNumber if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }