// 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 regs_models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// Authority authority
//
// swagger:model Authority
type Authority struct {

	// Account
	AccountID string `json:"AccountID,omitempty"`

	// Address Line 1
	AddressLine1 string `json:"AddressLine1,omitempty"`

	// Address Line 2
	AddressLine2 string `json:"AddressLine2,omitempty"`

	// Billing Telephone Number
	BTN string `json:"BTN,omitempty"`

	// City
	City string `json:"City,omitempty"`

	// Contact Name
	ContactID string `json:"ContactID,omitempty"`

	// Country
	Country string `json:"Country,omitempty"`

	// Created By User ID
	CreatedByID string `json:"CreatedByID,omitempty"`

	// Created Date
	CreatedDate string `json:"CreatedDate,omitempty"`

	// Authority Date
	Date string `json:"Date,omitempty"`

	// Date Approved
	DateApproved string `json:"DateApproved,omitempty"`

	// Taxnexus Record Identifier
	ID string `json:"ID,omitempty"`

	// Last Modified By User ID
	LastModifiedByID string `json:"LastModifiedByID,omitempty"`

	// Last Modified Date
	LastModifiedDate string `json:"LastModifiedDate,omitempty"`

	// Losing Carrier
	LosingCarrier string `json:"LosingCarrier,omitempty"`

	// Authority Number
	Name string `json:"Name,omitempty"`

	// Name Line 1
	NameLine1 string `json:"NameLine1,omitempty"`

	// Name Line 2
	NameLine2 string `json:"NameLine2,omitempty"`

	// Opportunity Name
	OpportunityID string `json:"OpportunityID,omitempty"`

	// Order Number
	OrderID string `json:"OrderID,omitempty"`

	// UUID Reference the master record that owns this item
	ParentFK string `json:"ParentFK,omitempty"`

	// Zip Code
	PostalCode string `json:"PostalCode,omitempty"`

	// Quote Name
	QuoteID string `json:"QuoteID,omitempty"`

	// Source System identifier for this record, if any
	Ref string `json:"Ref,omitempty"`

	// State
	State string `json:"State,omitempty"`

	// Status
	Status string `json:"Status,omitempty"`

	// ID of the Template for this object instance
	TemplateID string `json:"TemplateID,omitempty"`

	// Tenant that owns this object instance
	TenantID string `json:"TenantID,omitempty"`

	// Transfer Date
	TransferDate string `json:"TransferDate,omitempty"`

	// Authority Type
	Type string `json:"Type,omitempty"`
}

// Validate validates this authority
func (m *Authority) Validate(formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *Authority) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *Authority) UnmarshalBinary(b []byte) error {
	var res Authority
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}