// Code generated by go-swagger; DO NOT EDIT.

// All Code Copyright(c) 2018-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed

package sf_gate_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"
)

// Backend backend
//
// swagger:model Backend
type Backend struct {

	// The Account that owns this Backend
	Accountid string `json:"accountid,omitempty"`

	// Active
	Active bool `json:"active,omitempty"`

	// apikey
	Apikey string `json:"apikey,omitempty"`

	// Used to identify the State were required
	Applicationname string `json:"applicationname,omitempty"`

	// Authentication Type
	Authtype string `json:"authtype,omitempty"`

	// Backend Name
	Backendname string `json:"backendname,omitempty"`

	// base_url
	Baseurl string `json:"baseurl,omitempty"`

	// callback_url
	Callbackurl string `json:"callbackurl,omitempty"`

	// client_id
	Clientid string `json:"clientid,omitempty"`

	// client_secret
	Clientsecret string `json:"clientsecret,omitempty"`

	// Company
	Companyid string `json:"companyid,omitempty"`

	// Created By
	Createdbyid string `json:"createdbyid,omitempty"`

	// Created Date
	Createddate string `json:"createddate,omitempty"`

	// Description
	Description string `json:"description,omitempty"`

	// Taxnexus Record Id Only; not used in POST
	ID string `json:"id,omitempty"`

	// Last Modified By
	Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`

	// Last Modified Date
	Lastmodifieddate string `json:"lastmodifieddate,omitempty"`

	// login_url
	Loginurl string `json:"loginurl,omitempty"`

	// Management Password
	Managementpassword string `json:"managementpassword,omitempty"`

	// Management URL
	Managementurl string `json:"managementurl,omitempty"`

	// Management Username
	Managementusername string `json:"managementusername,omitempty"`

	// MetrcLicense
	Metrclicense string `json:"metrclicense,omitempty"`

	// MetrcState
	Metrcstate string `json:"metrcstate,omitempty"`

	// Ownerid
	Ownerid string `json:"ownerid,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// Production
	Production bool `json:"production,omitempty"`

	// project_id
	Projectid string `json:"projectid,omitempty"`

	// Provider Credentials
	Providercredentials string `json:"providercredentials,omitempty"`

	// realm
	Realm string `json:"realm,omitempty"`

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

	// Resellerbackendid
	Resellerbackendid string `json:"resellerbackendid,omitempty"`

	// security_token
	Securitytoken string `json:"securitytoken,omitempty"`

	// tenant identifier
	Tenantid string `json:"tenantid,omitempty"`

	// Timeout
	Timeout int64 `json:"timeout,omitempty"`

	// token_uri
	Tokenuri string `json:"tokenuri,omitempty"`

	// Type
	Type string `json:"type,omitempty"`

	// username
	Username string `json:"username,omitempty"`

	// Backend Vendor Name
	Vendor string `json:"vendor,omitempty"`
}

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

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

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