diff --git a/api/research/research_client/assets/assets_client.go b/api/research/research_client/assets/assets_client.go
new file mode 100644
index 0000000..37462c5
--- /dev/null
+++ b/api/research/research_client/assets/assets_client.go
@@ -0,0 +1,129 @@
+// 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 assets
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new assets API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for assets API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetAssets(params *GetAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAssetsOK, error)
+
+ PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAssetsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ GetAssets gets a list of assets
+
+ Return a list of all available Assets
+*/
+func (a *Client) GetAssets(params *GetAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAssetsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetAssetsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "getAssets",
+ Method: "GET",
+ PathPattern: "/assets",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetAssetsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetAssetsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for getAssets: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ PostAssets adds a new asset to taxnexus
+
+ Industry record to be added
+*/
+func (a *Client) PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAssetsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewPostAssetsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "postAssets",
+ Method: "POST",
+ PathPattern: "/assets",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &PostAssetsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*PostAssetsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for postAssets: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/api/research/research_client/assets/get_assets_parameters.go b/api/research/research_client/assets/get_assets_parameters.go
new file mode 100644
index 0000000..9c974ab
--- /dev/null
+++ b/api/research/research_client/assets/get_assets_parameters.go
@@ -0,0 +1,272 @@
+// 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 assets
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetAssetsParams creates a new GetAssetsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetAssetsParams() *GetAssetsParams {
+ return &GetAssetsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetAssetsParamsWithTimeout creates a new GetAssetsParams object
+// with the ability to set a timeout on a request.
+func NewGetAssetsParamsWithTimeout(timeout time.Duration) *GetAssetsParams {
+ return &GetAssetsParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetAssetsParamsWithContext creates a new GetAssetsParams object
+// with the ability to set a context for a request.
+func NewGetAssetsParamsWithContext(ctx context.Context) *GetAssetsParams {
+ return &GetAssetsParams{
+ Context: ctx,
+ }
+}
+
+// NewGetAssetsParamsWithHTTPClient creates a new GetAssetsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetAssetsParamsWithHTTPClient(client *http.Client) *GetAssetsParams {
+ return &GetAssetsParams{
+ HTTPClient: client,
+ }
+}
+
+/* GetAssetsParams contains all the parameters to send to the API endpoint
+ for the get assets operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetAssetsParams struct {
+
+ /* Active.
+
+ Only retrieve active records?
+ */
+ Active *bool
+
+ /* AssetID.
+
+ Taxnexus Record Id of an Asset
+ */
+ AssetID *string
+
+ /* Limit.
+
+ How many objects to return at one time
+
+ Format: int64
+ */
+ Limit *int64
+
+ /* Offset.
+
+ How many objects to skip?
+
+ Format: int64
+ */
+ Offset *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get assets params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetAssetsParams) WithDefaults() *GetAssetsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get assets params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetAssetsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get assets params
+func (o *GetAssetsParams) WithTimeout(timeout time.Duration) *GetAssetsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get assets params
+func (o *GetAssetsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get assets params
+func (o *GetAssetsParams) WithContext(ctx context.Context) *GetAssetsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get assets params
+func (o *GetAssetsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get assets params
+func (o *GetAssetsParams) WithHTTPClient(client *http.Client) *GetAssetsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get assets params
+func (o *GetAssetsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithActive adds the active to the get assets params
+func (o *GetAssetsParams) WithActive(active *bool) *GetAssetsParams {
+ o.SetActive(active)
+ return o
+}
+
+// SetActive adds the active to the get assets params
+func (o *GetAssetsParams) SetActive(active *bool) {
+ o.Active = active
+}
+
+// WithAssetID adds the assetID to the get assets params
+func (o *GetAssetsParams) WithAssetID(assetID *string) *GetAssetsParams {
+ o.SetAssetID(assetID)
+ return o
+}
+
+// SetAssetID adds the assetId to the get assets params
+func (o *GetAssetsParams) SetAssetID(assetID *string) {
+ o.AssetID = assetID
+}
+
+// WithLimit adds the limit to the get assets params
+func (o *GetAssetsParams) WithLimit(limit *int64) *GetAssetsParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the get assets params
+func (o *GetAssetsParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the get assets params
+func (o *GetAssetsParams) WithOffset(offset *int64) *GetAssetsParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the get assets params
+func (o *GetAssetsParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Active != nil {
+
+ // query param active
+ var qrActive bool
+
+ if o.Active != nil {
+ qrActive = *o.Active
+ }
+ qActive := swag.FormatBool(qrActive)
+ if qActive != "" {
+
+ if err := r.SetQueryParam("active", qActive); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.AssetID != nil {
+
+ // query param assetId
+ var qrAssetID string
+
+ if o.AssetID != nil {
+ qrAssetID = *o.AssetID
+ }
+ qAssetID := qrAssetID
+ if qAssetID != "" {
+
+ if err := r.SetQueryParam("assetId", qAssetID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/research/research_client/assets/get_assets_responses.go b/api/research/research_client/assets/get_assets_responses.go
new file mode 100644
index 0000000..a298752
--- /dev/null
+++ b/api/research/research_client/assets/get_assets_responses.go
@@ -0,0 +1,323 @@
+// 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 assets
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// GetAssetsReader is a Reader for the GetAssets structure.
+type GetAssetsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetAssetsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetAssetsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetAssetsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetAssetsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewGetAssetsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetAssetsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewGetAssetsOK creates a GetAssetsOK with default headers values
+func NewGetAssetsOK() *GetAssetsOK {
+ return &GetAssetsOK{}
+}
+
+/* GetAssetsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Asset objects with Contacts
+*/
+type GetAssetsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *research_models.AssetResponse
+}
+
+func (o *GetAssetsOK) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsOK %+v", 200, o.Payload)
+}
+func (o *GetAssetsOK) GetPayload() *research_models.AssetResponse {
+ return o.Payload
+}
+
+func (o *GetAssetsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(research_models.AssetResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetAssetsUnauthorized creates a GetAssetsUnauthorized with default headers values
+func NewGetAssetsUnauthorized() *GetAssetsUnauthorized {
+ return &GetAssetsUnauthorized{}
+}
+
+/* GetAssetsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type GetAssetsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetAssetsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsUnauthorized %+v", 401, o.Payload)
+}
+func (o *GetAssetsUnauthorized) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetAssetsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetAssetsForbidden creates a GetAssetsForbidden with default headers values
+func NewGetAssetsForbidden() *GetAssetsForbidden {
+ return &GetAssetsForbidden{}
+}
+
+/* GetAssetsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type GetAssetsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetAssetsForbidden) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsForbidden %+v", 403, o.Payload)
+}
+func (o *GetAssetsForbidden) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetAssetsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetAssetsNotFound creates a GetAssetsNotFound with default headers values
+func NewGetAssetsNotFound() *GetAssetsNotFound {
+ return &GetAssetsNotFound{}
+}
+
+/* GetAssetsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type GetAssetsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetAssetsNotFound) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsNotFound %+v", 404, o.Payload)
+}
+func (o *GetAssetsNotFound) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetAssetsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetAssetsUnprocessableEntity creates a GetAssetsUnprocessableEntity with default headers values
+func NewGetAssetsUnprocessableEntity() *GetAssetsUnprocessableEntity {
+ return &GetAssetsUnprocessableEntity{}
+}
+
+/* GetAssetsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type GetAssetsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetAssetsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *GetAssetsUnprocessableEntity) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetAssetsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetAssetsInternalServerError creates a GetAssetsInternalServerError with default headers values
+func NewGetAssetsInternalServerError() *GetAssetsInternalServerError {
+ return &GetAssetsInternalServerError{}
+}
+
+/* GetAssetsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type GetAssetsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetAssetsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsInternalServerError %+v", 500, o.Payload)
+}
+func (o *GetAssetsInternalServerError) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetAssetsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/research/research_client/assets/post_assets_parameters.go b/api/research/research_client/assets/post_assets_parameters.go
new file mode 100644
index 0000000..a7156cb
--- /dev/null
+++ b/api/research/research_client/assets/post_assets_parameters.go
@@ -0,0 +1,155 @@
+// 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 assets
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// NewPostAssetsParams creates a new PostAssetsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewPostAssetsParams() *PostAssetsParams {
+ return &PostAssetsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewPostAssetsParamsWithTimeout creates a new PostAssetsParams object
+// with the ability to set a timeout on a request.
+func NewPostAssetsParamsWithTimeout(timeout time.Duration) *PostAssetsParams {
+ return &PostAssetsParams{
+ timeout: timeout,
+ }
+}
+
+// NewPostAssetsParamsWithContext creates a new PostAssetsParams object
+// with the ability to set a context for a request.
+func NewPostAssetsParamsWithContext(ctx context.Context) *PostAssetsParams {
+ return &PostAssetsParams{
+ Context: ctx,
+ }
+}
+
+// NewPostAssetsParamsWithHTTPClient creates a new PostAssetsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewPostAssetsParamsWithHTTPClient(client *http.Client) *PostAssetsParams {
+ return &PostAssetsParams{
+ HTTPClient: client,
+ }
+}
+
+/* PostAssetsParams contains all the parameters to send to the API endpoint
+ for the post assets operation.
+
+ Typically these are written to a http.Request.
+*/
+type PostAssetsParams struct {
+
+ /* AssetRequest.
+
+ An array of new Asset records
+ */
+ AssetRequest *research_models.AssetRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the post assets params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostAssetsParams) WithDefaults() *PostAssetsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the post assets params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostAssetsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the post assets params
+func (o *PostAssetsParams) WithTimeout(timeout time.Duration) *PostAssetsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the post assets params
+func (o *PostAssetsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the post assets params
+func (o *PostAssetsParams) WithContext(ctx context.Context) *PostAssetsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the post assets params
+func (o *PostAssetsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the post assets params
+func (o *PostAssetsParams) WithHTTPClient(client *http.Client) *PostAssetsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the post assets params
+func (o *PostAssetsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithAssetRequest adds the assetRequest to the post assets params
+func (o *PostAssetsParams) WithAssetRequest(assetRequest *research_models.AssetRequest) *PostAssetsParams {
+ o.SetAssetRequest(assetRequest)
+ return o
+}
+
+// SetAssetRequest adds the assetRequest to the post assets params
+func (o *PostAssetsParams) SetAssetRequest(assetRequest *research_models.AssetRequest) {
+ o.AssetRequest = assetRequest
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *PostAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.AssetRequest != nil {
+ if err := r.SetBodyParam(o.AssetRequest); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/research/research_client/assets/post_assets_responses.go b/api/research/research_client/assets/post_assets_responses.go
new file mode 100644
index 0000000..cb82a26
--- /dev/null
+++ b/api/research/research_client/assets/post_assets_responses.go
@@ -0,0 +1,323 @@
+// 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 assets
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// PostAssetsReader is a Reader for the PostAssets structure.
+type PostAssetsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *PostAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewPostAssetsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewPostAssetsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewPostAssetsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewPostAssetsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewPostAssetsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewPostAssetsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewPostAssetsOK creates a PostAssetsOK with default headers values
+func NewPostAssetsOK() *PostAssetsOK {
+ return &PostAssetsOK{}
+}
+
+/* PostAssetsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Asset objects with Contacts
+*/
+type PostAssetsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *research_models.AssetResponse
+}
+
+func (o *PostAssetsOK) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsOK %+v", 200, o.Payload)
+}
+func (o *PostAssetsOK) GetPayload() *research_models.AssetResponse {
+ return o.Payload
+}
+
+func (o *PostAssetsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(research_models.AssetResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostAssetsUnauthorized creates a PostAssetsUnauthorized with default headers values
+func NewPostAssetsUnauthorized() *PostAssetsUnauthorized {
+ return &PostAssetsUnauthorized{}
+}
+
+/* PostAssetsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type PostAssetsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostAssetsUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsUnauthorized %+v", 401, o.Payload)
+}
+func (o *PostAssetsUnauthorized) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostAssetsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostAssetsForbidden creates a PostAssetsForbidden with default headers values
+func NewPostAssetsForbidden() *PostAssetsForbidden {
+ return &PostAssetsForbidden{}
+}
+
+/* PostAssetsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type PostAssetsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostAssetsForbidden) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsForbidden %+v", 403, o.Payload)
+}
+func (o *PostAssetsForbidden) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostAssetsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostAssetsNotFound creates a PostAssetsNotFound with default headers values
+func NewPostAssetsNotFound() *PostAssetsNotFound {
+ return &PostAssetsNotFound{}
+}
+
+/* PostAssetsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type PostAssetsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostAssetsNotFound) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsNotFound %+v", 404, o.Payload)
+}
+func (o *PostAssetsNotFound) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostAssetsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostAssetsUnprocessableEntity creates a PostAssetsUnprocessableEntity with default headers values
+func NewPostAssetsUnprocessableEntity() *PostAssetsUnprocessableEntity {
+ return &PostAssetsUnprocessableEntity{}
+}
+
+/* PostAssetsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type PostAssetsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostAssetsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *PostAssetsUnprocessableEntity) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostAssetsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostAssetsInternalServerError creates a PostAssetsInternalServerError with default headers values
+func NewPostAssetsInternalServerError() *PostAssetsInternalServerError {
+ return &PostAssetsInternalServerError{}
+}
+
+/* PostAssetsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type PostAssetsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostAssetsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsInternalServerError %+v", 500, o.Payload)
+}
+func (o *PostAssetsInternalServerError) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostAssetsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/research/research_client/company_products/company_products_client.go b/api/research/research_client/company_products/company_products_client.go
new file mode 100644
index 0000000..1120ca6
--- /dev/null
+++ b/api/research/research_client/company_products/company_products_client.go
@@ -0,0 +1,129 @@
+// 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 company_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new company products API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for company products API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetCompanyProducts(params *GetCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCompanyProductsOK, error)
+
+ PostCompanyProducts(params *PostCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCompanyProductsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ GetCompanyProducts gets a list of companyproducts
+
+ Return a list of all available CompanyProducts
+*/
+func (a *Client) GetCompanyProducts(params *GetCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCompanyProductsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetCompanyProductsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "getCompanyProducts",
+ Method: "GET",
+ PathPattern: "/companyproducts",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetCompanyProductsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetCompanyProductsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for getCompanyProducts: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ PostCompanyProducts adds a new companyproduct to taxnexus
+
+ Industry record to be added
+*/
+func (a *Client) PostCompanyProducts(params *PostCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCompanyProductsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewPostCompanyProductsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "postCompanyProducts",
+ Method: "POST",
+ PathPattern: "/companyproducts",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &PostCompanyProductsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*PostCompanyProductsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for postCompanyProducts: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/api/research/research_client/company_products/get_company_products_parameters.go b/api/research/research_client/company_products/get_company_products_parameters.go
new file mode 100644
index 0000000..592f35f
--- /dev/null
+++ b/api/research/research_client/company_products/get_company_products_parameters.go
@@ -0,0 +1,272 @@
+// 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 company_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetCompanyProductsParams creates a new GetCompanyProductsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetCompanyProductsParams() *GetCompanyProductsParams {
+ return &GetCompanyProductsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetCompanyProductsParamsWithTimeout creates a new GetCompanyProductsParams object
+// with the ability to set a timeout on a request.
+func NewGetCompanyProductsParamsWithTimeout(timeout time.Duration) *GetCompanyProductsParams {
+ return &GetCompanyProductsParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetCompanyProductsParamsWithContext creates a new GetCompanyProductsParams object
+// with the ability to set a context for a request.
+func NewGetCompanyProductsParamsWithContext(ctx context.Context) *GetCompanyProductsParams {
+ return &GetCompanyProductsParams{
+ Context: ctx,
+ }
+}
+
+// NewGetCompanyProductsParamsWithHTTPClient creates a new GetCompanyProductsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetCompanyProductsParamsWithHTTPClient(client *http.Client) *GetCompanyProductsParams {
+ return &GetCompanyProductsParams{
+ HTTPClient: client,
+ }
+}
+
+/* GetCompanyProductsParams contains all the parameters to send to the API endpoint
+ for the get company products operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetCompanyProductsParams struct {
+
+ /* Active.
+
+ Only retrieve active records?
+ */
+ Active *bool
+
+ /* CompanyProductID.
+
+ Taxnexus CompanyProduct record ID
+ */
+ CompanyProductID *string
+
+ /* Limit.
+
+ How many objects to return at one time
+
+ Format: int64
+ */
+ Limit *int64
+
+ /* Offset.
+
+ How many objects to skip?
+
+ Format: int64
+ */
+ Offset *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get company products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetCompanyProductsParams) WithDefaults() *GetCompanyProductsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get company products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetCompanyProductsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get company products params
+func (o *GetCompanyProductsParams) WithTimeout(timeout time.Duration) *GetCompanyProductsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get company products params
+func (o *GetCompanyProductsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get company products params
+func (o *GetCompanyProductsParams) WithContext(ctx context.Context) *GetCompanyProductsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get company products params
+func (o *GetCompanyProductsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get company products params
+func (o *GetCompanyProductsParams) WithHTTPClient(client *http.Client) *GetCompanyProductsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get company products params
+func (o *GetCompanyProductsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithActive adds the active to the get company products params
+func (o *GetCompanyProductsParams) WithActive(active *bool) *GetCompanyProductsParams {
+ o.SetActive(active)
+ return o
+}
+
+// SetActive adds the active to the get company products params
+func (o *GetCompanyProductsParams) SetActive(active *bool) {
+ o.Active = active
+}
+
+// WithCompanyProductID adds the companyProductID to the get company products params
+func (o *GetCompanyProductsParams) WithCompanyProductID(companyProductID *string) *GetCompanyProductsParams {
+ o.SetCompanyProductID(companyProductID)
+ return o
+}
+
+// SetCompanyProductID adds the companyProductId to the get company products params
+func (o *GetCompanyProductsParams) SetCompanyProductID(companyProductID *string) {
+ o.CompanyProductID = companyProductID
+}
+
+// WithLimit adds the limit to the get company products params
+func (o *GetCompanyProductsParams) WithLimit(limit *int64) *GetCompanyProductsParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the get company products params
+func (o *GetCompanyProductsParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the get company products params
+func (o *GetCompanyProductsParams) WithOffset(offset *int64) *GetCompanyProductsParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the get company products params
+func (o *GetCompanyProductsParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetCompanyProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Active != nil {
+
+ // query param active
+ var qrActive bool
+
+ if o.Active != nil {
+ qrActive = *o.Active
+ }
+ qActive := swag.FormatBool(qrActive)
+ if qActive != "" {
+
+ if err := r.SetQueryParam("active", qActive); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.CompanyProductID != nil {
+
+ // query param companyProductId
+ var qrCompanyProductID string
+
+ if o.CompanyProductID != nil {
+ qrCompanyProductID = *o.CompanyProductID
+ }
+ qCompanyProductID := qrCompanyProductID
+ if qCompanyProductID != "" {
+
+ if err := r.SetQueryParam("companyProductId", qCompanyProductID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/research/research_client/company_products/get_company_products_responses.go b/api/research/research_client/company_products/get_company_products_responses.go
new file mode 100644
index 0000000..630f85e
--- /dev/null
+++ b/api/research/research_client/company_products/get_company_products_responses.go
@@ -0,0 +1,323 @@
+// 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 company_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// GetCompanyProductsReader is a Reader for the GetCompanyProducts structure.
+type GetCompanyProductsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetCompanyProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetCompanyProductsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetCompanyProductsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetCompanyProductsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetCompanyProductsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewGetCompanyProductsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetCompanyProductsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewGetCompanyProductsOK creates a GetCompanyProductsOK with default headers values
+func NewGetCompanyProductsOK() *GetCompanyProductsOK {
+ return &GetCompanyProductsOK{}
+}
+
+/* GetCompanyProductsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with an array of CompanyProduct objects
+*/
+type GetCompanyProductsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *research_models.CompanyProductResponse
+}
+
+func (o *GetCompanyProductsOK) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsOK %+v", 200, o.Payload)
+}
+func (o *GetCompanyProductsOK) GetPayload() *research_models.CompanyProductResponse {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(research_models.CompanyProductResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetCompanyProductsUnauthorized creates a GetCompanyProductsUnauthorized with default headers values
+func NewGetCompanyProductsUnauthorized() *GetCompanyProductsUnauthorized {
+ return &GetCompanyProductsUnauthorized{}
+}
+
+/* GetCompanyProductsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type GetCompanyProductsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetCompanyProductsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsUnauthorized %+v", 401, o.Payload)
+}
+func (o *GetCompanyProductsUnauthorized) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetCompanyProductsForbidden creates a GetCompanyProductsForbidden with default headers values
+func NewGetCompanyProductsForbidden() *GetCompanyProductsForbidden {
+ return &GetCompanyProductsForbidden{}
+}
+
+/* GetCompanyProductsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type GetCompanyProductsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetCompanyProductsForbidden) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsForbidden %+v", 403, o.Payload)
+}
+func (o *GetCompanyProductsForbidden) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetCompanyProductsNotFound creates a GetCompanyProductsNotFound with default headers values
+func NewGetCompanyProductsNotFound() *GetCompanyProductsNotFound {
+ return &GetCompanyProductsNotFound{}
+}
+
+/* GetCompanyProductsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type GetCompanyProductsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetCompanyProductsNotFound) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsNotFound %+v", 404, o.Payload)
+}
+func (o *GetCompanyProductsNotFound) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetCompanyProductsUnprocessableEntity creates a GetCompanyProductsUnprocessableEntity with default headers values
+func NewGetCompanyProductsUnprocessableEntity() *GetCompanyProductsUnprocessableEntity {
+ return &GetCompanyProductsUnprocessableEntity{}
+}
+
+/* GetCompanyProductsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type GetCompanyProductsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetCompanyProductsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *GetCompanyProductsUnprocessableEntity) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetCompanyProductsInternalServerError creates a GetCompanyProductsInternalServerError with default headers values
+func NewGetCompanyProductsInternalServerError() *GetCompanyProductsInternalServerError {
+ return &GetCompanyProductsInternalServerError{}
+}
+
+/* GetCompanyProductsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type GetCompanyProductsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetCompanyProductsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsInternalServerError %+v", 500, o.Payload)
+}
+func (o *GetCompanyProductsInternalServerError) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/research/research_client/company_products/post_company_products_parameters.go b/api/research/research_client/company_products/post_company_products_parameters.go
new file mode 100644
index 0000000..889fc5f
--- /dev/null
+++ b/api/research/research_client/company_products/post_company_products_parameters.go
@@ -0,0 +1,155 @@
+// 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 company_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// NewPostCompanyProductsParams creates a new PostCompanyProductsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewPostCompanyProductsParams() *PostCompanyProductsParams {
+ return &PostCompanyProductsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewPostCompanyProductsParamsWithTimeout creates a new PostCompanyProductsParams object
+// with the ability to set a timeout on a request.
+func NewPostCompanyProductsParamsWithTimeout(timeout time.Duration) *PostCompanyProductsParams {
+ return &PostCompanyProductsParams{
+ timeout: timeout,
+ }
+}
+
+// NewPostCompanyProductsParamsWithContext creates a new PostCompanyProductsParams object
+// with the ability to set a context for a request.
+func NewPostCompanyProductsParamsWithContext(ctx context.Context) *PostCompanyProductsParams {
+ return &PostCompanyProductsParams{
+ Context: ctx,
+ }
+}
+
+// NewPostCompanyProductsParamsWithHTTPClient creates a new PostCompanyProductsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewPostCompanyProductsParamsWithHTTPClient(client *http.Client) *PostCompanyProductsParams {
+ return &PostCompanyProductsParams{
+ HTTPClient: client,
+ }
+}
+
+/* PostCompanyProductsParams contains all the parameters to send to the API endpoint
+ for the post company products operation.
+
+ Typically these are written to a http.Request.
+*/
+type PostCompanyProductsParams struct {
+
+ /* ContactRequest.
+
+ An array of new Contact records
+ */
+ ContactRequest *research_models.CompanyProductRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the post company products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostCompanyProductsParams) WithDefaults() *PostCompanyProductsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the post company products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostCompanyProductsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the post company products params
+func (o *PostCompanyProductsParams) WithTimeout(timeout time.Duration) *PostCompanyProductsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the post company products params
+func (o *PostCompanyProductsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the post company products params
+func (o *PostCompanyProductsParams) WithContext(ctx context.Context) *PostCompanyProductsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the post company products params
+func (o *PostCompanyProductsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the post company products params
+func (o *PostCompanyProductsParams) WithHTTPClient(client *http.Client) *PostCompanyProductsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the post company products params
+func (o *PostCompanyProductsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithContactRequest adds the contactRequest to the post company products params
+func (o *PostCompanyProductsParams) WithContactRequest(contactRequest *research_models.CompanyProductRequest) *PostCompanyProductsParams {
+ o.SetContactRequest(contactRequest)
+ return o
+}
+
+// SetContactRequest adds the contactRequest to the post company products params
+func (o *PostCompanyProductsParams) SetContactRequest(contactRequest *research_models.CompanyProductRequest) {
+ o.ContactRequest = contactRequest
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *PostCompanyProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.ContactRequest != nil {
+ if err := r.SetBodyParam(o.ContactRequest); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/research/research_client/company_products/post_company_products_responses.go b/api/research/research_client/company_products/post_company_products_responses.go
new file mode 100644
index 0000000..752fd53
--- /dev/null
+++ b/api/research/research_client/company_products/post_company_products_responses.go
@@ -0,0 +1,323 @@
+// 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 company_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// PostCompanyProductsReader is a Reader for the PostCompanyProducts structure.
+type PostCompanyProductsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *PostCompanyProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewPostCompanyProductsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewPostCompanyProductsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewPostCompanyProductsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewPostCompanyProductsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewPostCompanyProductsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewPostCompanyProductsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewPostCompanyProductsOK creates a PostCompanyProductsOK with default headers values
+func NewPostCompanyProductsOK() *PostCompanyProductsOK {
+ return &PostCompanyProductsOK{}
+}
+
+/* PostCompanyProductsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with an array of CompanyProduct objects
+*/
+type PostCompanyProductsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *research_models.CompanyProductResponse
+}
+
+func (o *PostCompanyProductsOK) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsOK %+v", 200, o.Payload)
+}
+func (o *PostCompanyProductsOK) GetPayload() *research_models.CompanyProductResponse {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(research_models.CompanyProductResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostCompanyProductsUnauthorized creates a PostCompanyProductsUnauthorized with default headers values
+func NewPostCompanyProductsUnauthorized() *PostCompanyProductsUnauthorized {
+ return &PostCompanyProductsUnauthorized{}
+}
+
+/* PostCompanyProductsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type PostCompanyProductsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostCompanyProductsUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsUnauthorized %+v", 401, o.Payload)
+}
+func (o *PostCompanyProductsUnauthorized) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostCompanyProductsForbidden creates a PostCompanyProductsForbidden with default headers values
+func NewPostCompanyProductsForbidden() *PostCompanyProductsForbidden {
+ return &PostCompanyProductsForbidden{}
+}
+
+/* PostCompanyProductsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type PostCompanyProductsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostCompanyProductsForbidden) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsForbidden %+v", 403, o.Payload)
+}
+func (o *PostCompanyProductsForbidden) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostCompanyProductsNotFound creates a PostCompanyProductsNotFound with default headers values
+func NewPostCompanyProductsNotFound() *PostCompanyProductsNotFound {
+ return &PostCompanyProductsNotFound{}
+}
+
+/* PostCompanyProductsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type PostCompanyProductsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostCompanyProductsNotFound) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsNotFound %+v", 404, o.Payload)
+}
+func (o *PostCompanyProductsNotFound) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostCompanyProductsUnprocessableEntity creates a PostCompanyProductsUnprocessableEntity with default headers values
+func NewPostCompanyProductsUnprocessableEntity() *PostCompanyProductsUnprocessableEntity {
+ return &PostCompanyProductsUnprocessableEntity{}
+}
+
+/* PostCompanyProductsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type PostCompanyProductsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostCompanyProductsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *PostCompanyProductsUnprocessableEntity) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostCompanyProductsInternalServerError creates a PostCompanyProductsInternalServerError with default headers values
+func NewPostCompanyProductsInternalServerError() *PostCompanyProductsInternalServerError {
+ return &PostCompanyProductsInternalServerError{}
+}
+
+/* PostCompanyProductsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type PostCompanyProductsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostCompanyProductsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsInternalServerError %+v", 500, o.Payload)
+}
+func (o *PostCompanyProductsInternalServerError) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/research/research_client/industries/get_industries_parameters.go b/api/research/research_client/industries/get_industries_parameters.go
new file mode 100644
index 0000000..6199d81
--- /dev/null
+++ b/api/research/research_client/industries/get_industries_parameters.go
@@ -0,0 +1,272 @@
+// 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 industries
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetIndustriesParams creates a new GetIndustriesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetIndustriesParams() *GetIndustriesParams {
+ return &GetIndustriesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetIndustriesParamsWithTimeout creates a new GetIndustriesParams object
+// with the ability to set a timeout on a request.
+func NewGetIndustriesParamsWithTimeout(timeout time.Duration) *GetIndustriesParams {
+ return &GetIndustriesParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetIndustriesParamsWithContext creates a new GetIndustriesParams object
+// with the ability to set a context for a request.
+func NewGetIndustriesParamsWithContext(ctx context.Context) *GetIndustriesParams {
+ return &GetIndustriesParams{
+ Context: ctx,
+ }
+}
+
+// NewGetIndustriesParamsWithHTTPClient creates a new GetIndustriesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetIndustriesParamsWithHTTPClient(client *http.Client) *GetIndustriesParams {
+ return &GetIndustriesParams{
+ HTTPClient: client,
+ }
+}
+
+/* GetIndustriesParams contains all the parameters to send to the API endpoint
+ for the get industries operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetIndustriesParams struct {
+
+ /* Active.
+
+ Only retrieve active records?
+ */
+ Active *bool
+
+ /* IndustryID.
+
+ Taxnexus Industry record ID
+ */
+ IndustryID *string
+
+ /* Limit.
+
+ How many objects to return at one time
+
+ Format: int64
+ */
+ Limit *int64
+
+ /* Offset.
+
+ How many objects to skip?
+
+ Format: int64
+ */
+ Offset *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get industries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIndustriesParams) WithDefaults() *GetIndustriesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get industries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIndustriesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get industries params
+func (o *GetIndustriesParams) WithTimeout(timeout time.Duration) *GetIndustriesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get industries params
+func (o *GetIndustriesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get industries params
+func (o *GetIndustriesParams) WithContext(ctx context.Context) *GetIndustriesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get industries params
+func (o *GetIndustriesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get industries params
+func (o *GetIndustriesParams) WithHTTPClient(client *http.Client) *GetIndustriesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get industries params
+func (o *GetIndustriesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithActive adds the active to the get industries params
+func (o *GetIndustriesParams) WithActive(active *bool) *GetIndustriesParams {
+ o.SetActive(active)
+ return o
+}
+
+// SetActive adds the active to the get industries params
+func (o *GetIndustriesParams) SetActive(active *bool) {
+ o.Active = active
+}
+
+// WithIndustryID adds the industryID to the get industries params
+func (o *GetIndustriesParams) WithIndustryID(industryID *string) *GetIndustriesParams {
+ o.SetIndustryID(industryID)
+ return o
+}
+
+// SetIndustryID adds the industryId to the get industries params
+func (o *GetIndustriesParams) SetIndustryID(industryID *string) {
+ o.IndustryID = industryID
+}
+
+// WithLimit adds the limit to the get industries params
+func (o *GetIndustriesParams) WithLimit(limit *int64) *GetIndustriesParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the get industries params
+func (o *GetIndustriesParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the get industries params
+func (o *GetIndustriesParams) WithOffset(offset *int64) *GetIndustriesParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the get industries params
+func (o *GetIndustriesParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetIndustriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Active != nil {
+
+ // query param active
+ var qrActive bool
+
+ if o.Active != nil {
+ qrActive = *o.Active
+ }
+ qActive := swag.FormatBool(qrActive)
+ if qActive != "" {
+
+ if err := r.SetQueryParam("active", qActive); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.IndustryID != nil {
+
+ // query param industryId
+ var qrIndustryID string
+
+ if o.IndustryID != nil {
+ qrIndustryID = *o.IndustryID
+ }
+ qIndustryID := qrIndustryID
+ if qIndustryID != "" {
+
+ if err := r.SetQueryParam("industryId", qIndustryID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/research/research_client/industries/get_industries_responses.go b/api/research/research_client/industries/get_industries_responses.go
new file mode 100644
index 0000000..c92d5a1
--- /dev/null
+++ b/api/research/research_client/industries/get_industries_responses.go
@@ -0,0 +1,323 @@
+// 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 industries
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// GetIndustriesReader is a Reader for the GetIndustries structure.
+type GetIndustriesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetIndustriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetIndustriesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetIndustriesUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetIndustriesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetIndustriesNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewGetIndustriesUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetIndustriesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewGetIndustriesOK creates a GetIndustriesOK with default headers values
+func NewGetIndustriesOK() *GetIndustriesOK {
+ return &GetIndustriesOK{}
+}
+
+/* GetIndustriesOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Industry objects
+*/
+type GetIndustriesOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *research_models.IndustryResponse
+}
+
+func (o *GetIndustriesOK) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesOK %+v", 200, o.Payload)
+}
+func (o *GetIndustriesOK) GetPayload() *research_models.IndustryResponse {
+ return o.Payload
+}
+
+func (o *GetIndustriesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(research_models.IndustryResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustriesUnauthorized creates a GetIndustriesUnauthorized with default headers values
+func NewGetIndustriesUnauthorized() *GetIndustriesUnauthorized {
+ return &GetIndustriesUnauthorized{}
+}
+
+/* GetIndustriesUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type GetIndustriesUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetIndustriesUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesUnauthorized %+v", 401, o.Payload)
+}
+func (o *GetIndustriesUnauthorized) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustriesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustriesForbidden creates a GetIndustriesForbidden with default headers values
+func NewGetIndustriesForbidden() *GetIndustriesForbidden {
+ return &GetIndustriesForbidden{}
+}
+
+/* GetIndustriesForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type GetIndustriesForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetIndustriesForbidden) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesForbidden %+v", 403, o.Payload)
+}
+func (o *GetIndustriesForbidden) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustriesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustriesNotFound creates a GetIndustriesNotFound with default headers values
+func NewGetIndustriesNotFound() *GetIndustriesNotFound {
+ return &GetIndustriesNotFound{}
+}
+
+/* GetIndustriesNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type GetIndustriesNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetIndustriesNotFound) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesNotFound %+v", 404, o.Payload)
+}
+func (o *GetIndustriesNotFound) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustriesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustriesUnprocessableEntity creates a GetIndustriesUnprocessableEntity with default headers values
+func NewGetIndustriesUnprocessableEntity() *GetIndustriesUnprocessableEntity {
+ return &GetIndustriesUnprocessableEntity{}
+}
+
+/* GetIndustriesUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type GetIndustriesUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetIndustriesUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *GetIndustriesUnprocessableEntity) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustriesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustriesInternalServerError creates a GetIndustriesInternalServerError with default headers values
+func NewGetIndustriesInternalServerError() *GetIndustriesInternalServerError {
+ return &GetIndustriesInternalServerError{}
+}
+
+/* GetIndustriesInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type GetIndustriesInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetIndustriesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesInternalServerError %+v", 500, o.Payload)
+}
+func (o *GetIndustriesInternalServerError) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustriesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/research/research_client/industries/industries_client.go b/api/research/research_client/industries/industries_client.go
new file mode 100644
index 0000000..16d6c2a
--- /dev/null
+++ b/api/research/research_client/industries/industries_client.go
@@ -0,0 +1,129 @@
+// 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 industries
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new industries API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for industries API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetIndustries(params *GetIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustriesOK, error)
+
+ PostIndustries(params *PostIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustriesOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ GetIndustries gets a list of industries
+
+ Return a list of all available Industries
+*/
+func (a *Client) GetIndustries(params *GetIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustriesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetIndustriesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "getIndustries",
+ Method: "GET",
+ PathPattern: "/industries",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetIndustriesReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetIndustriesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for getIndustries: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ PostIndustries adds a new industry to taxnexus
+
+ Industry record to be added
+*/
+func (a *Client) PostIndustries(params *PostIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustriesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewPostIndustriesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "postIndustries",
+ Method: "POST",
+ PathPattern: "/industries",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &PostIndustriesReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*PostIndustriesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for postIndustries: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/api/research/research_client/industries/post_industries_parameters.go b/api/research/research_client/industries/post_industries_parameters.go
new file mode 100644
index 0000000..99dc6ca
--- /dev/null
+++ b/api/research/research_client/industries/post_industries_parameters.go
@@ -0,0 +1,155 @@
+// 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 industries
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// NewPostIndustriesParams creates a new PostIndustriesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewPostIndustriesParams() *PostIndustriesParams {
+ return &PostIndustriesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewPostIndustriesParamsWithTimeout creates a new PostIndustriesParams object
+// with the ability to set a timeout on a request.
+func NewPostIndustriesParamsWithTimeout(timeout time.Duration) *PostIndustriesParams {
+ return &PostIndustriesParams{
+ timeout: timeout,
+ }
+}
+
+// NewPostIndustriesParamsWithContext creates a new PostIndustriesParams object
+// with the ability to set a context for a request.
+func NewPostIndustriesParamsWithContext(ctx context.Context) *PostIndustriesParams {
+ return &PostIndustriesParams{
+ Context: ctx,
+ }
+}
+
+// NewPostIndustriesParamsWithHTTPClient creates a new PostIndustriesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewPostIndustriesParamsWithHTTPClient(client *http.Client) *PostIndustriesParams {
+ return &PostIndustriesParams{
+ HTTPClient: client,
+ }
+}
+
+/* PostIndustriesParams contains all the parameters to send to the API endpoint
+ for the post industries operation.
+
+ Typically these are written to a http.Request.
+*/
+type PostIndustriesParams struct {
+
+ /* IndustryRequest.
+
+ An array of new Industry records
+ */
+ IndustryRequest *research_models.IndustryRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the post industries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostIndustriesParams) WithDefaults() *PostIndustriesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the post industries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostIndustriesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the post industries params
+func (o *PostIndustriesParams) WithTimeout(timeout time.Duration) *PostIndustriesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the post industries params
+func (o *PostIndustriesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the post industries params
+func (o *PostIndustriesParams) WithContext(ctx context.Context) *PostIndustriesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the post industries params
+func (o *PostIndustriesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the post industries params
+func (o *PostIndustriesParams) WithHTTPClient(client *http.Client) *PostIndustriesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the post industries params
+func (o *PostIndustriesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIndustryRequest adds the industryRequest to the post industries params
+func (o *PostIndustriesParams) WithIndustryRequest(industryRequest *research_models.IndustryRequest) *PostIndustriesParams {
+ o.SetIndustryRequest(industryRequest)
+ return o
+}
+
+// SetIndustryRequest adds the industryRequest to the post industries params
+func (o *PostIndustriesParams) SetIndustryRequest(industryRequest *research_models.IndustryRequest) {
+ o.IndustryRequest = industryRequest
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *PostIndustriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.IndustryRequest != nil {
+ if err := r.SetBodyParam(o.IndustryRequest); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/research/research_client/industries/post_industries_responses.go b/api/research/research_client/industries/post_industries_responses.go
new file mode 100644
index 0000000..e039228
--- /dev/null
+++ b/api/research/research_client/industries/post_industries_responses.go
@@ -0,0 +1,323 @@
+// 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 industries
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// PostIndustriesReader is a Reader for the PostIndustries structure.
+type PostIndustriesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *PostIndustriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewPostIndustriesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewPostIndustriesUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewPostIndustriesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewPostIndustriesNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewPostIndustriesUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewPostIndustriesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewPostIndustriesOK creates a PostIndustriesOK with default headers values
+func NewPostIndustriesOK() *PostIndustriesOK {
+ return &PostIndustriesOK{}
+}
+
+/* PostIndustriesOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Industry objects
+*/
+type PostIndustriesOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *research_models.IndustryResponse
+}
+
+func (o *PostIndustriesOK) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesOK %+v", 200, o.Payload)
+}
+func (o *PostIndustriesOK) GetPayload() *research_models.IndustryResponse {
+ return o.Payload
+}
+
+func (o *PostIndustriesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(research_models.IndustryResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustriesUnauthorized creates a PostIndustriesUnauthorized with default headers values
+func NewPostIndustriesUnauthorized() *PostIndustriesUnauthorized {
+ return &PostIndustriesUnauthorized{}
+}
+
+/* PostIndustriesUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type PostIndustriesUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostIndustriesUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesUnauthorized %+v", 401, o.Payload)
+}
+func (o *PostIndustriesUnauthorized) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustriesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustriesForbidden creates a PostIndustriesForbidden with default headers values
+func NewPostIndustriesForbidden() *PostIndustriesForbidden {
+ return &PostIndustriesForbidden{}
+}
+
+/* PostIndustriesForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type PostIndustriesForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostIndustriesForbidden) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesForbidden %+v", 403, o.Payload)
+}
+func (o *PostIndustriesForbidden) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustriesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustriesNotFound creates a PostIndustriesNotFound with default headers values
+func NewPostIndustriesNotFound() *PostIndustriesNotFound {
+ return &PostIndustriesNotFound{}
+}
+
+/* PostIndustriesNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type PostIndustriesNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostIndustriesNotFound) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesNotFound %+v", 404, o.Payload)
+}
+func (o *PostIndustriesNotFound) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustriesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustriesUnprocessableEntity creates a PostIndustriesUnprocessableEntity with default headers values
+func NewPostIndustriesUnprocessableEntity() *PostIndustriesUnprocessableEntity {
+ return &PostIndustriesUnprocessableEntity{}
+}
+
+/* PostIndustriesUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type PostIndustriesUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostIndustriesUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *PostIndustriesUnprocessableEntity) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustriesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustriesInternalServerError creates a PostIndustriesInternalServerError with default headers values
+func NewPostIndustriesInternalServerError() *PostIndustriesInternalServerError {
+ return &PostIndustriesInternalServerError{}
+}
+
+/* PostIndustriesInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type PostIndustriesInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostIndustriesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesInternalServerError %+v", 500, o.Payload)
+}
+func (o *PostIndustriesInternalServerError) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustriesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/research/research_client/industry_products/industry_products_client.go b/api/research/research_client/industry_products/industry_products_client.go
new file mode 100644
index 0000000..d19a4cb
--- /dev/null
+++ b/api/research/research_client/industry_products/industry_products_client.go
@@ -0,0 +1,86 @@
+// 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 industry_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new industry products API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for industry products API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ PostIndustryproducts(params *PostIndustryproductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustryproductsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ PostIndustryproducts adds a new industryproduct to taxnexus
+
+ Industry record to be added
+*/
+func (a *Client) PostIndustryproducts(params *PostIndustryproductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustryproductsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewPostIndustryproductsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "postIndustryproducts",
+ Method: "POST",
+ PathPattern: "/industryproducts",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &PostIndustryproductsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*PostIndustryproductsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for postIndustryproducts: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/api/research/research_client/industry_products/post_industryproducts_parameters.go b/api/research/research_client/industry_products/post_industryproducts_parameters.go
new file mode 100644
index 0000000..c46c47a
--- /dev/null
+++ b/api/research/research_client/industry_products/post_industryproducts_parameters.go
@@ -0,0 +1,155 @@
+// 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 industry_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// NewPostIndustryproductsParams creates a new PostIndustryproductsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewPostIndustryproductsParams() *PostIndustryproductsParams {
+ return &PostIndustryproductsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewPostIndustryproductsParamsWithTimeout creates a new PostIndustryproductsParams object
+// with the ability to set a timeout on a request.
+func NewPostIndustryproductsParamsWithTimeout(timeout time.Duration) *PostIndustryproductsParams {
+ return &PostIndustryproductsParams{
+ timeout: timeout,
+ }
+}
+
+// NewPostIndustryproductsParamsWithContext creates a new PostIndustryproductsParams object
+// with the ability to set a context for a request.
+func NewPostIndustryproductsParamsWithContext(ctx context.Context) *PostIndustryproductsParams {
+ return &PostIndustryproductsParams{
+ Context: ctx,
+ }
+}
+
+// NewPostIndustryproductsParamsWithHTTPClient creates a new PostIndustryproductsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewPostIndustryproductsParamsWithHTTPClient(client *http.Client) *PostIndustryproductsParams {
+ return &PostIndustryproductsParams{
+ HTTPClient: client,
+ }
+}
+
+/* PostIndustryproductsParams contains all the parameters to send to the API endpoint
+ for the post industryproducts operation.
+
+ Typically these are written to a http.Request.
+*/
+type PostIndustryproductsParams struct {
+
+ /* IndustryRequest.
+
+ An array of new Industry records
+ */
+ IndustryRequest *research_models.IndustryProductRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the post industryproducts params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostIndustryproductsParams) WithDefaults() *PostIndustryproductsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the post industryproducts params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostIndustryproductsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the post industryproducts params
+func (o *PostIndustryproductsParams) WithTimeout(timeout time.Duration) *PostIndustryproductsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the post industryproducts params
+func (o *PostIndustryproductsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the post industryproducts params
+func (o *PostIndustryproductsParams) WithContext(ctx context.Context) *PostIndustryproductsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the post industryproducts params
+func (o *PostIndustryproductsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the post industryproducts params
+func (o *PostIndustryproductsParams) WithHTTPClient(client *http.Client) *PostIndustryproductsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the post industryproducts params
+func (o *PostIndustryproductsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIndustryRequest adds the industryRequest to the post industryproducts params
+func (o *PostIndustryproductsParams) WithIndustryRequest(industryRequest *research_models.IndustryProductRequest) *PostIndustryproductsParams {
+ o.SetIndustryRequest(industryRequest)
+ return o
+}
+
+// SetIndustryRequest adds the industryRequest to the post industryproducts params
+func (o *PostIndustryproductsParams) SetIndustryRequest(industryRequest *research_models.IndustryProductRequest) {
+ o.IndustryRequest = industryRequest
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *PostIndustryproductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.IndustryRequest != nil {
+ if err := r.SetBodyParam(o.IndustryRequest); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/research/research_client/industry_products/post_industryproducts_responses.go b/api/research/research_client/industry_products/post_industryproducts_responses.go
new file mode 100644
index 0000000..47a17ca
--- /dev/null
+++ b/api/research/research_client/industry_products/post_industryproducts_responses.go
@@ -0,0 +1,323 @@
+// 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 industry_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// PostIndustryproductsReader is a Reader for the PostIndustryproducts structure.
+type PostIndustryproductsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *PostIndustryproductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewPostIndustryproductsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewPostIndustryproductsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewPostIndustryproductsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewPostIndustryproductsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewPostIndustryproductsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewPostIndustryproductsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewPostIndustryproductsOK creates a PostIndustryproductsOK with default headers values
+func NewPostIndustryproductsOK() *PostIndustryproductsOK {
+ return &PostIndustryproductsOK{}
+}
+
+/* PostIndustryproductsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Industry objects
+*/
+type PostIndustryproductsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *research_models.IndustryProductResponse
+}
+
+func (o *PostIndustryproductsOK) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsOK %+v", 200, o.Payload)
+}
+func (o *PostIndustryproductsOK) GetPayload() *research_models.IndustryProductResponse {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(research_models.IndustryProductResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustryproductsUnauthorized creates a PostIndustryproductsUnauthorized with default headers values
+func NewPostIndustryproductsUnauthorized() *PostIndustryproductsUnauthorized {
+ return &PostIndustryproductsUnauthorized{}
+}
+
+/* PostIndustryproductsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type PostIndustryproductsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostIndustryproductsUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsUnauthorized %+v", 401, o.Payload)
+}
+func (o *PostIndustryproductsUnauthorized) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustryproductsForbidden creates a PostIndustryproductsForbidden with default headers values
+func NewPostIndustryproductsForbidden() *PostIndustryproductsForbidden {
+ return &PostIndustryproductsForbidden{}
+}
+
+/* PostIndustryproductsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type PostIndustryproductsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostIndustryproductsForbidden) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsForbidden %+v", 403, o.Payload)
+}
+func (o *PostIndustryproductsForbidden) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustryproductsNotFound creates a PostIndustryproductsNotFound with default headers values
+func NewPostIndustryproductsNotFound() *PostIndustryproductsNotFound {
+ return &PostIndustryproductsNotFound{}
+}
+
+/* PostIndustryproductsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type PostIndustryproductsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostIndustryproductsNotFound) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsNotFound %+v", 404, o.Payload)
+}
+func (o *PostIndustryproductsNotFound) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustryproductsUnprocessableEntity creates a PostIndustryproductsUnprocessableEntity with default headers values
+func NewPostIndustryproductsUnprocessableEntity() *PostIndustryproductsUnprocessableEntity {
+ return &PostIndustryproductsUnprocessableEntity{}
+}
+
+/* PostIndustryproductsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type PostIndustryproductsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostIndustryproductsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *PostIndustryproductsUnprocessableEntity) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustryproductsInternalServerError creates a PostIndustryproductsInternalServerError with default headers values
+func NewPostIndustryproductsInternalServerError() *PostIndustryproductsInternalServerError {
+ return &PostIndustryproductsInternalServerError{}
+}
+
+/* PostIndustryproductsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type PostIndustryproductsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *PostIndustryproductsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsInternalServerError %+v", 500, o.Payload)
+}
+func (o *PostIndustryproductsInternalServerError) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/research/research_client/industryproducts/get_industry_products_parameters.go b/api/research/research_client/industryproducts/get_industry_products_parameters.go
new file mode 100644
index 0000000..dcdd2cc
--- /dev/null
+++ b/api/research/research_client/industryproducts/get_industry_products_parameters.go
@@ -0,0 +1,272 @@
+// 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 industryproducts
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetIndustryProductsParams creates a new GetIndustryProductsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetIndustryProductsParams() *GetIndustryProductsParams {
+ return &GetIndustryProductsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetIndustryProductsParamsWithTimeout creates a new GetIndustryProductsParams object
+// with the ability to set a timeout on a request.
+func NewGetIndustryProductsParamsWithTimeout(timeout time.Duration) *GetIndustryProductsParams {
+ return &GetIndustryProductsParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetIndustryProductsParamsWithContext creates a new GetIndustryProductsParams object
+// with the ability to set a context for a request.
+func NewGetIndustryProductsParamsWithContext(ctx context.Context) *GetIndustryProductsParams {
+ return &GetIndustryProductsParams{
+ Context: ctx,
+ }
+}
+
+// NewGetIndustryProductsParamsWithHTTPClient creates a new GetIndustryProductsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetIndustryProductsParamsWithHTTPClient(client *http.Client) *GetIndustryProductsParams {
+ return &GetIndustryProductsParams{
+ HTTPClient: client,
+ }
+}
+
+/* GetIndustryProductsParams contains all the parameters to send to the API endpoint
+ for the get industry products operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetIndustryProductsParams struct {
+
+ /* Active.
+
+ Only retrieve active records?
+ */
+ Active *bool
+
+ /* IndustryProductID.
+
+ Taxnexus IndustryProduct record ID
+ */
+ IndustryProductID *string
+
+ /* Limit.
+
+ How many objects to return at one time
+
+ Format: int64
+ */
+ Limit *int64
+
+ /* Offset.
+
+ How many objects to skip?
+
+ Format: int64
+ */
+ Offset *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get industry products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIndustryProductsParams) WithDefaults() *GetIndustryProductsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get industry products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIndustryProductsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get industry products params
+func (o *GetIndustryProductsParams) WithTimeout(timeout time.Duration) *GetIndustryProductsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get industry products params
+func (o *GetIndustryProductsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get industry products params
+func (o *GetIndustryProductsParams) WithContext(ctx context.Context) *GetIndustryProductsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get industry products params
+func (o *GetIndustryProductsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get industry products params
+func (o *GetIndustryProductsParams) WithHTTPClient(client *http.Client) *GetIndustryProductsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get industry products params
+func (o *GetIndustryProductsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithActive adds the active to the get industry products params
+func (o *GetIndustryProductsParams) WithActive(active *bool) *GetIndustryProductsParams {
+ o.SetActive(active)
+ return o
+}
+
+// SetActive adds the active to the get industry products params
+func (o *GetIndustryProductsParams) SetActive(active *bool) {
+ o.Active = active
+}
+
+// WithIndustryProductID adds the industryProductID to the get industry products params
+func (o *GetIndustryProductsParams) WithIndustryProductID(industryProductID *string) *GetIndustryProductsParams {
+ o.SetIndustryProductID(industryProductID)
+ return o
+}
+
+// SetIndustryProductID adds the industryProductId to the get industry products params
+func (o *GetIndustryProductsParams) SetIndustryProductID(industryProductID *string) {
+ o.IndustryProductID = industryProductID
+}
+
+// WithLimit adds the limit to the get industry products params
+func (o *GetIndustryProductsParams) WithLimit(limit *int64) *GetIndustryProductsParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the get industry products params
+func (o *GetIndustryProductsParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the get industry products params
+func (o *GetIndustryProductsParams) WithOffset(offset *int64) *GetIndustryProductsParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the get industry products params
+func (o *GetIndustryProductsParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetIndustryProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Active != nil {
+
+ // query param active
+ var qrActive bool
+
+ if o.Active != nil {
+ qrActive = *o.Active
+ }
+ qActive := swag.FormatBool(qrActive)
+ if qActive != "" {
+
+ if err := r.SetQueryParam("active", qActive); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.IndustryProductID != nil {
+
+ // query param industryProductId
+ var qrIndustryProductID string
+
+ if o.IndustryProductID != nil {
+ qrIndustryProductID = *o.IndustryProductID
+ }
+ qIndustryProductID := qrIndustryProductID
+ if qIndustryProductID != "" {
+
+ if err := r.SetQueryParam("industryProductId", qIndustryProductID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/research/research_client/industryproducts/get_industry_products_responses.go b/api/research/research_client/industryproducts/get_industry_products_responses.go
new file mode 100644
index 0000000..2df41fe
--- /dev/null
+++ b/api/research/research_client/industryproducts/get_industry_products_responses.go
@@ -0,0 +1,323 @@
+// 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 industryproducts
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_models"
+)
+
+// GetIndustryProductsReader is a Reader for the GetIndustryProducts structure.
+type GetIndustryProductsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetIndustryProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetIndustryProductsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetIndustryProductsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetIndustryProductsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetIndustryProductsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewGetIndustryProductsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetIndustryProductsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewGetIndustryProductsOK creates a GetIndustryProductsOK with default headers values
+func NewGetIndustryProductsOK() *GetIndustryProductsOK {
+ return &GetIndustryProductsOK{}
+}
+
+/* GetIndustryProductsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Industry objects
+*/
+type GetIndustryProductsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *research_models.IndustryProductResponse
+}
+
+func (o *GetIndustryProductsOK) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsOK %+v", 200, o.Payload)
+}
+func (o *GetIndustryProductsOK) GetPayload() *research_models.IndustryProductResponse {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(research_models.IndustryProductResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustryProductsUnauthorized creates a GetIndustryProductsUnauthorized with default headers values
+func NewGetIndustryProductsUnauthorized() *GetIndustryProductsUnauthorized {
+ return &GetIndustryProductsUnauthorized{}
+}
+
+/* GetIndustryProductsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type GetIndustryProductsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetIndustryProductsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsUnauthorized %+v", 401, o.Payload)
+}
+func (o *GetIndustryProductsUnauthorized) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustryProductsForbidden creates a GetIndustryProductsForbidden with default headers values
+func NewGetIndustryProductsForbidden() *GetIndustryProductsForbidden {
+ return &GetIndustryProductsForbidden{}
+}
+
+/* GetIndustryProductsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type GetIndustryProductsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetIndustryProductsForbidden) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsForbidden %+v", 403, o.Payload)
+}
+func (o *GetIndustryProductsForbidden) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustryProductsNotFound creates a GetIndustryProductsNotFound with default headers values
+func NewGetIndustryProductsNotFound() *GetIndustryProductsNotFound {
+ return &GetIndustryProductsNotFound{}
+}
+
+/* GetIndustryProductsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type GetIndustryProductsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetIndustryProductsNotFound) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsNotFound %+v", 404, o.Payload)
+}
+func (o *GetIndustryProductsNotFound) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustryProductsUnprocessableEntity creates a GetIndustryProductsUnprocessableEntity with default headers values
+func NewGetIndustryProductsUnprocessableEntity() *GetIndustryProductsUnprocessableEntity {
+ return &GetIndustryProductsUnprocessableEntity{}
+}
+
+/* GetIndustryProductsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type GetIndustryProductsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetIndustryProductsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *GetIndustryProductsUnprocessableEntity) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustryProductsInternalServerError creates a GetIndustryProductsInternalServerError with default headers values
+func NewGetIndustryProductsInternalServerError() *GetIndustryProductsInternalServerError {
+ return &GetIndustryProductsInternalServerError{}
+}
+
+/* GetIndustryProductsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type GetIndustryProductsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *research_models.Error
+}
+
+func (o *GetIndustryProductsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsInternalServerError %+v", 500, o.Payload)
+}
+func (o *GetIndustryProductsInternalServerError) GetPayload() *research_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(research_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/research/research_client/industryproducts/industryproducts_client.go b/api/research/research_client/industryproducts/industryproducts_client.go
new file mode 100644
index 0000000..9ec2dfc
--- /dev/null
+++ b/api/research/research_client/industryproducts/industryproducts_client.go
@@ -0,0 +1,86 @@
+// 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 industryproducts
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new industryproducts API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for industryproducts API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetIndustryProducts(params *GetIndustryProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustryProductsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ GetIndustryProducts gets a list of industryproducts
+
+ Return a list of all available IndustryProducts
+*/
+func (a *Client) GetIndustryProducts(params *GetIndustryProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustryProductsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetIndustryProductsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "getIndustryProducts",
+ Method: "GET",
+ PathPattern: "/industryproducts",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetIndustryProductsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetIndustryProductsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for getIndustryProducts: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/api/research/research_client/research_client.go b/api/research/research_client/research_client.go
index e13e5dc..cde4f3e 100644
--- a/api/research/research_client/research_client.go
+++ b/api/research/research_client/research_client.go
@@ -15,10 +15,15 @@ import (
"github.com/go-openapi/strfmt"
"code.tnxs.net/vernonkeenan/lib/api/research/research_client/accounts"
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_client/assets"
"code.tnxs.net/vernonkeenan/lib/api/research/research_client/clusters"
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_client/company_products"
"code.tnxs.net/vernonkeenan/lib/api/research/research_client/contacts"
"code.tnxs.net/vernonkeenan/lib/api/research/research_client/contracts"
"code.tnxs.net/vernonkeenan/lib/api/research/research_client/databases"
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_client/industries"
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_client/industry_products"
+ "code.tnxs.net/vernonkeenan/lib/api/research/research_client/industryproducts"
"code.tnxs.net/vernonkeenan/lib/api/research/research_client/roles"
"code.tnxs.net/vernonkeenan/lib/api/research/research_client/templates"
"code.tnxs.net/vernonkeenan/lib/api/research/research_client/tenants"
@@ -68,10 +73,15 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *Research {
cli := new(Research)
cli.Transport = transport
cli.Accounts = accounts.New(transport, formats)
+ cli.Assets = assets.New(transport, formats)
cli.Clusters = clusters.New(transport, formats)
+ cli.CompanyProducts = company_products.New(transport, formats)
cli.Contacts = contacts.New(transport, formats)
cli.Contracts = contracts.New(transport, formats)
cli.Databases = databases.New(transport, formats)
+ cli.Industries = industries.New(transport, formats)
+ cli.IndustryProducts = industry_products.New(transport, formats)
+ cli.Industryproducts = industryproducts.New(transport, formats)
cli.Roles = roles.New(transport, formats)
cli.Templates = templates.New(transport, formats)
cli.Tenants = tenants.New(transport, formats)
@@ -122,14 +132,24 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
type Research struct {
Accounts accounts.ClientService
+ Assets assets.ClientService
+
Clusters clusters.ClientService
+ CompanyProducts company_products.ClientService
+
Contacts contacts.ClientService
Contracts contracts.ClientService
Databases databases.ClientService
+ Industries industries.ClientService
+
+ IndustryProducts industry_products.ClientService
+
+ Industryproducts industryproducts.ClientService
+
Roles roles.ClientService
Templates templates.ClientService
@@ -145,10 +165,15 @@ type Research struct {
func (c *Research) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
c.Accounts.SetTransport(transport)
+ c.Assets.SetTransport(transport)
c.Clusters.SetTransport(transport)
+ c.CompanyProducts.SetTransport(transport)
c.Contacts.SetTransport(transport)
c.Contracts.SetTransport(transport)
c.Databases.SetTransport(transport)
+ c.Industries.SetTransport(transport)
+ c.IndustryProducts.SetTransport(transport)
+ c.Industryproducts.SetTransport(transport)
c.Roles.SetTransport(transport)
c.Templates.SetTransport(transport)
c.Tenants.SetTransport(transport)
diff --git a/api/research/research_models/account.go b/api/research/research_models/account.go
index b43e98d..17a6b13 100644
--- a/api/research/research_models/account.go
+++ b/api/research/research_models/account.go
@@ -23,287 +23,162 @@ import (
type Account struct {
// Account Number
- Accountnumber string `json:"accountnumber,omitempty"`
+ AccountNumber string `json:"AccountNumber,omitempty"`
// The marketing orgin of this account
- Accountsource string `json:"accountsource,omitempty"`
-
- // Active
- Active bool `json:"active,omitempty"`
-
- // For tax authorities, this account's administrative level, e.g. Local, County, State or Federal
- Administrativelevel string `json:"administrativelevel,omitempty"`
-
- // Rollup Tax Amount
- Amount float64 `json:"amount,omitempty"`
-
- // Amount Invoiced
- Amountinvoiced float64 `json:"amountinvoiced,omitempty"`
-
- // Amount Paid
- Amountpaid float64 `json:"amountpaid,omitempty"`
+ AccountSource string `json:"AccountSource,omitempty"`
// Annual Revenue Estimate
- Annualrevenue float64 `json:"annualrevenue,omitempty"`
+ AnnualRevenue float64 `json:"AnnualRevenue,omitempty"`
- // Account Balance
- Balance float64 `json:"balance,omitempty"`
-
- // billingaddress
- Billingaddress *Address `json:"billingaddress,omitempty"`
+ // billing address
+ BillingAddress *Address `json:"BillingAddress,omitempty"`
// Contact ID
- Billingcontactid string `json:"billingcontactid,omitempty"`
+ BillingContactID string `json:"BillingContactID,omitempty"`
- // Billing Preference
- Billingpreference string `json:"billingpreference,omitempty"`
+ // Date company closed
+ CloseDate string `json:"CloseDate,omitempty"`
- // businessaddress
- Businessaddress *Address `json:"businessaddress,omitempty"`
+ // cloud revenue total
+ CloudRevenueTotal float64 `json:"CloudRevenueTotal,omitempty"`
- // Is this a cannabis customer?
- Cannabiscustomer bool `json:"cannabiscustomer,omitempty"`
+ // cloud type
+ CloudType string `json:"CloudType,omitempty"`
- // Channel Program Level Name
- Channelprogramlevelname string `json:"channelprogramlevelname,omitempty"`
-
- // Channel Program Name
- Channelprogramname string `json:"channelprogramname,omitempty"`
-
- // Client End Date
- Clientenddate string `json:"clientenddate,omitempty"`
-
- // Client Start Date
- Clientstartdate string `json:"clientstartdate,omitempty"`
-
- // The Company ID of this Account
- Companyid string `json:"companyid,omitempty"`
-
- // The Id of the geo coordinates of this account
- Coordinateid string `json:"coordinateid,omitempty"`
+ // cloud year
+ CloudYear string `json:"CloudYear,omitempty"`
// Created By User ID
- Createdbyid string `json:"createdbyid,omitempty"`
+ CreatedByID string `json:"CreatedByID,omitempty"`
// Created Date
- Createddate string `json:"createddate,omitempty"`
+ CreatedDate string `json:"CreatedDate,omitempty"`
- // Customer ID from source system
- Customerid string `json:"customerid,omitempty"`
-
- // Customer Priority
- Customerpriority string `json:"customerpriority,omitempty"`
-
- // D-n-B Company
- Dandbcompanyid string `json:"dandbcompanyid,omitempty"`
-
- // This Account's 'Doing Business As' name
- Dba string `json:"dba,omitempty"`
-
- // defaultaddress
- Defaultaddress *Address `json:"defaultaddress,omitempty"`
-
- // Default Backend ID
- Defaultbackendid string `json:"defaultbackendid,omitempty"`
-
- // Default Delivery Address Contact ID
- Defaultdeliverycontactid string `json:"defaultdeliverycontactid,omitempty"`
-
- // Default End User Contact ID
- Defaultenduserid string `json:"defaultenduserid,omitempty"`
+ // crunchbase URL
+ CrunchbaseURL string `json:"CrunchbaseURL,omitempty"`
// Description
- Description string `json:"description,omitempty"`
+ Description string `json:"Description,omitempty"`
- // D-U-N-S Number
- Dunsnumber string `json:"dunsnumber,omitempty"`
-
- // EIN
- Ein string `json:"ein,omitempty"`
+ // earnings call
+ EarningsCall string `json:"EarningsCall,omitempty"`
// Main Account Email
- Email string `json:"email,omitempty"`
+ Email string `json:"Email,omitempty"`
- // Enrollment Status
- Enrollmentstatus string `json:"enrollmentstatus,omitempty"`
+ // equity funding
+ EquityFunding float64 `json:"EquityFunding,omitempty"`
+
+ // facebook
+ Facebook string `json:"Facebook,omitempty"`
// Fax
- Fax string `json:"fax,omitempty"`
+ Fax string `json:"Fax,omitempty"`
+
+ // founded date
+ FoundedDate string `json:"FoundedDate,omitempty"`
// Taxnexus Account Id
- ID string `json:"id,omitempty"`
+ ID string `json:"ID,omitempty"`
+
+ // IP o date
+ IPODate string `json:"IPODate,omitempty"`
+
+ // industries
+ Industries string `json:"Industries,omitempty"`
// Industry
- Industry string `json:"industry,omitempty"`
-
- // Customer Portal Account
- Iscustomerportal bool `json:"iscustomerportal,omitempty"`
-
- // Partner Account
- Ispartner bool `json:"ispartner,omitempty"`
-
- // ISP Customer?
- Ispcustomer bool `json:"ispcustomer,omitempty"`
-
- // Data.com Key
- Jigsaw string `json:"jigsaw,omitempty"`
+ Industry string `json:"Industry,omitempty"`
// Last Modified By User ID
- Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
- Lastmodifieddate string `json:"lastmodifieddate,omitempty"`
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
- // MSP Customer?
- Mspcustomer bool `json:"mspcustomer,omitempty"`
+ // linked in
+ LinkedIn string `json:"LinkedIn,omitempty"`
- // NAICS Code
- Naicscode string `json:"naicscode,omitempty"`
+ // location
+ Location string `json:"Location,omitempty"`
- // NAICS Description
- Naicsdesc string `json:"naicsdesc,omitempty"`
+ // market capitalization
+ MarketCapitalization float64 `json:"MarketCapitalization,omitempty"`
// Account Name
- Name string `json:"name,omitempty"`
-
- // Employee Count Estimate
- Numberofemployees int64 `json:"numberofemployees,omitempty"`
+ Name string `json:"Name,omitempty"`
// Number of Locations Estimate
- Numberoflocations int64 `json:"numberoflocations,omitempty"`
+ NumberInvestments int64 `json:"NumberInvestments,omitempty"`
- // Open Charges
- Opencharges float64 `json:"opencharges,omitempty"`
-
- // Vendor Order Contact ID
- Ordercontactid string `json:"ordercontactid,omitempty"`
-
- // Order Email
- Orderemail string `json:"orderemail,omitempty"`
+ // Employee Count Estimate
+ NumberOfEmployees int64 `json:"NumberOfEmployees,omitempty"`
// Account Owner User ID
- Ownerid string `json:"ownerid,omitempty"`
+ OwnerID string `json:"OwnerID,omitempty"`
// Ownership
- Ownership string `json:"ownership,omitempty"`
-
- // Parent Foreign Key
- Parentfk string `json:"parentfk,omitempty"`
+ Ownership string `json:"Ownership,omitempty"`
// Parent Account
- Parentid string `json:"parentid,omitempty"`
+ ParentID string `json:"ParentID,omitempty"`
// Phone
- Phone string `json:"phone,omitempty"`
+ Phone string `json:"Phone,omitempty"`
- // The ID of the Place situs record that applies to this Account
- Placeid string `json:"placeid,omitempty"`
-
- // Tax Preparer Contact ID
- Preparerid string `json:"preparerid,omitempty"`
-
- // Rating
- Rating string `json:"rating,omitempty"`
-
- // Rating Engine identifier
- Ratingengineid string `json:"ratingengineid,omitempty"`
-
- // External Reference ID
- Ref string `json:"ref,omitempty"`
-
- // Rollup Revenue Base
- Revenuebase float64 `json:"revenuebase,omitempty"`
-
- // Rollup Revenue Net
- Revenuenet float64 `json:"revenuenet,omitempty"`
-
- // Rollup Revenue Not Taxable
- Revenuenottaxable float64 `json:"revenuenottaxable,omitempty"`
-
- // shippingaddress
- Shippingaddress *Address `json:"shippingaddress,omitempty"`
-
- // Shipping Census Tract
- Shippingcensustract string `json:"shippingcensustract,omitempty"`
-
- // Shipping Contact ID
- Shippingcontactid string `json:"shippingcontactid,omitempty"`
-
- // Shipping County
- Shippingcounty string `json:"shippingcounty,omitempty"`
+ // publish
+ Publish bool `json:"Publish,omitempty"`
// SIC Code
- Sic string `json:"sic,omitempty"`
+ SIC string `json:"SIC,omitempty"`
// SIC Description
- Sicdesc string `json:"sicdesc,omitempty"`
+ SICDesc string `json:"SICDesc,omitempty"`
+
+ // salesforce first
+ SalesforceFirst bool `json:"SalesforceFirst,omitempty"`
+
+ // shipping address
+ ShippingAddress *Address `json:"ShippingAddress,omitempty"`
+
+ // shipping contact ID
+ ShippingContactID string `json:"ShippingContactID,omitempty"`
// Account Site
- Site string `json:"site,omitempty"`
+ Site string `json:"Site,omitempty"`
- // Account Status
- Status string `json:"status,omitempty"`
-
- // Tax Exemption
- Taxexemption string `json:"taxexemption,omitempty"`
-
- // Rollup Tax On Tax
- Taxontax float64 `json:"taxontax,omitempty"`
-
- // Telecom Customer?
- Telecomcustomer bool `json:"telecomcustomer,omitempty"`
+ // tag line
+ TagLine string `json:"TagLine,omitempty"`
// tenant identifier
- Tenantid string `json:"tenantid,omitempty"`
+ TenantID string `json:"TenantID,omitempty"`
- // Ticker Symbol
- Tickersymbol string `json:"tickersymbol,omitempty"`
+ // ticker symbol
+ TickerSymbol string `json:"TickerSymbol,omitempty"`
- // Tradestyle
- Tradestyle string `json:"tradestyle,omitempty"`
+ // twitter
+ Twitter string `json:"Twitter,omitempty"`
// Type
- Type string `json:"type,omitempty"`
-
- // Unapplied Payments
- Unappliedpayments float64 `json:"unappliedpayments,omitempty"`
-
- // Rollup Unit Base
- Unitbase float64 `json:"unitbase,omitempty"`
-
- // Upsell Opportunity
- Upsellopportunity string `json:"upsellopportunity,omitempty"`
+ Type string `json:"Type,omitempty"`
// Website
- Website string `json:"website,omitempty"`
-
- // WHMCS Client ID
- Whmcsclientid int64 `json:"whmcsclientid,omitempty"`
-
- // Xero Contact ID
- Xerocontactid string `json:"xerocontactid,omitempty"`
+ Website string `json:"Website,omitempty"`
// Year Started
- Yearstarted string `json:"yearstarted,omitempty"`
+ YearStarted string `json:"YearStarted,omitempty"`
}
// Validate validates this account
func (m *Account) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateBillingaddress(formats); err != nil {
+ if err := m.validateBillingAddress(formats); err != nil {
res = append(res, err)
}
- if err := m.validateBusinessaddress(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateDefaultaddress(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateShippingaddress(formats); err != nil {
+ if err := m.validateShippingAddress(formats); err != nil {
res = append(res, err)
}
@@ -313,17 +188,17 @@ func (m *Account) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *Account) validateBillingaddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Billingaddress) { // not required
+func (m *Account) validateBillingAddress(formats strfmt.Registry) error {
+ if swag.IsZero(m.BillingAddress) { // not required
return nil
}
- if m.Billingaddress != nil {
- if err := m.Billingaddress.Validate(formats); err != nil {
+ if m.BillingAddress != nil {
+ if err := m.BillingAddress.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("billingaddress")
+ return ve.ValidateName("BillingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("billingaddress")
+ return ce.ValidateName("BillingAddress")
}
return err
}
@@ -332,55 +207,17 @@ func (m *Account) validateBillingaddress(formats strfmt.Registry) error {
return nil
}
-func (m *Account) validateBusinessaddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Businessaddress) { // not required
+func (m *Account) validateShippingAddress(formats strfmt.Registry) error {
+ if swag.IsZero(m.ShippingAddress) { // not required
return nil
}
- if m.Businessaddress != nil {
- if err := m.Businessaddress.Validate(formats); err != nil {
+ if m.ShippingAddress != nil {
+ if err := m.ShippingAddress.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("businessaddress")
+ return ve.ValidateName("ShippingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("businessaddress")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *Account) validateDefaultaddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Defaultaddress) { // not required
- return nil
- }
-
- if m.Defaultaddress != nil {
- if err := m.Defaultaddress.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("defaultaddress")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("defaultaddress")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *Account) validateShippingaddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Shippingaddress) { // not required
- return nil
- }
-
- if m.Shippingaddress != nil {
- if err := m.Shippingaddress.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("shippingaddress")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("shippingaddress")
+ return ce.ValidateName("ShippingAddress")
}
return err
}
@@ -393,19 +230,11 @@ func (m *Account) validateShippingaddress(formats strfmt.Registry) error {
func (m *Account) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateBillingaddress(ctx, formats); err != nil {
+ if err := m.contextValidateBillingAddress(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateBusinessaddress(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateDefaultaddress(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateShippingaddress(ctx, formats); err != nil {
+ if err := m.contextValidateShippingAddress(ctx, formats); err != nil {
res = append(res, err)
}
@@ -415,14 +244,14 @@ func (m *Account) ContextValidate(ctx context.Context, formats strfmt.Registry)
return nil
}
-func (m *Account) contextValidateBillingaddress(ctx context.Context, formats strfmt.Registry) error {
+func (m *Account) contextValidateBillingAddress(ctx context.Context, formats strfmt.Registry) error {
- if m.Billingaddress != nil {
- if err := m.Billingaddress.ContextValidate(ctx, formats); err != nil {
+ if m.BillingAddress != nil {
+ if err := m.BillingAddress.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("billingaddress")
+ return ve.ValidateName("BillingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("billingaddress")
+ return ce.ValidateName("BillingAddress")
}
return err
}
@@ -431,46 +260,14 @@ func (m *Account) contextValidateBillingaddress(ctx context.Context, formats str
return nil
}
-func (m *Account) contextValidateBusinessaddress(ctx context.Context, formats strfmt.Registry) error {
+func (m *Account) contextValidateShippingAddress(ctx context.Context, formats strfmt.Registry) error {
- if m.Businessaddress != nil {
- if err := m.Businessaddress.ContextValidate(ctx, formats); err != nil {
+ if m.ShippingAddress != nil {
+ if err := m.ShippingAddress.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("businessaddress")
+ return ve.ValidateName("ShippingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("businessaddress")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *Account) contextValidateDefaultaddress(ctx context.Context, formats strfmt.Registry) error {
-
- if m.Defaultaddress != nil {
- if err := m.Defaultaddress.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("defaultaddress")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("defaultaddress")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *Account) contextValidateShippingaddress(ctx context.Context, formats strfmt.Registry) error {
-
- if m.Shippingaddress != nil {
- if err := m.Shippingaddress.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("shippingaddress")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("shippingaddress")
+ return ce.ValidateName("ShippingAddress")
}
return err
}
diff --git a/api/research/research_models/asset.go b/api/research/research_models/asset.go
new file mode 100644
index 0000000..bf62efd
--- /dev/null
+++ b/api/research/research_models/asset.go
@@ -0,0 +1,246 @@
+// 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"
+)
+
+// Asset asset
+//
+// swagger:model Asset
+type Asset struct {
+
+ // Account
+ AccountID string `json:"AccountID,omitempty"`
+
+ // address
+ Address *Address `json:"Address,omitempty"`
+
+ // Asset Level
+ AssetLevel float64 `json:"AssetLevel,omitempty"`
+
+ // Asset Provided By
+ AssetProvidedByID string `json:"AssetProvidedByID,omitempty"`
+
+ // Asset Serviced By
+ AssetServicedByID string `json:"AssetServicedByID,omitempty"`
+
+ // Company Product
+ CompanyProductID string `json:"CompanyProductID,omitempty"`
+
+ // Consequence Of Failure
+ ConsequenceOfFailure string `json:"ConsequenceOfFailure,omitempty"`
+
+ // Contact
+ ContactID string `json:"ContactID,omitempty"`
+
+ // Created By
+ CreatedByID string `json:"CreatedByID,omitempty"`
+
+ // Created Date
+ CreatedDate string `json:"CreatedDate,omitempty"`
+
+ // Current Amount
+ CurrentAmount float64 `json:"CurrentAmount,omitempty"`
+
+ // Current Lifecycle End Date
+ CurrentLifecycleEndDate string `json:"CurrentLifecycleEndDate,omitempty"`
+
+ // Current Monthly Recurring Revenue
+ CurrentMrr float64 `json:"CurrentMrr,omitempty"`
+
+ // Current Quantity
+ CurrentQuantity float64 `json:"CurrentQuantity,omitempty"`
+
+ // Description
+ Description string `json:"Description,omitempty"`
+
+ // Digital Asset Status
+ DigitalAssetStatus string `json:"DigitalAssetStatus,omitempty"`
+
+ // External Id
+ ExternalIdentifier string `json:"ExternalIdentifier,omitempty"`
+
+ // Has Lifecycle Management
+ HasLifecycleManagement bool `json:"HasLifecycleManagement,omitempty"`
+
+ // Taxnexus Record Id
+ ID string `json:"ID,omitempty"`
+
+ // Install Date
+ InstallDate string `json:"InstallDate,omitempty"`
+
+ // Competitor Asset
+ IsCompetitorProduct bool `json:"IsCompetitorProduct,omitempty"`
+
+ // Internal Asset
+ IsInternal bool `json:"IsInternal,omitempty"`
+
+ // Last Modified By
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
+
+ // Last Modified Date
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
+
+ // Location
+ LocationID string `json:"LocationID,omitempty"`
+
+ // MIME Type
+ MIMEType string `json:"MIMEType,omitempty"`
+
+ // Manufacture Date
+ ManufactureDate string `json:"ManufactureDate,omitempty"`
+
+ // Asset Name
+ Name string `json:"Name,omitempty"`
+
+ // Parent Asset
+ ParentID string `json:"ParentID,omitempty"`
+
+ // Price
+ Price float64 `json:"Price,omitempty"`
+
+ // Product
+ Product2ID string `json:"Product2ID,omitempty"`
+
+ // Product Code
+ ProductCode string `json:"ProductCode,omitempty"`
+
+ // Product Description
+ ProductDescription string `json:"ProductDescription,omitempty"`
+
+ // Product Family
+ ProductFamily string `json:"ProductFamily,omitempty"`
+
+ // Purchase Date
+ PurchaseDate string `json:"PurchaseDate,omitempty"`
+
+ // Quantity
+ Quantity float64 `json:"Quantity,omitempty"`
+
+ // Root Asset
+ RootAssetID string `json:"RootAssetID,omitempty"`
+
+ // Serial Number
+ SerialNumber string `json:"SerialNumber,omitempty"`
+
+ // Status
+ Status string `json:"Status,omitempty"`
+
+ // Status Reason
+ StatusReason string `json:"StatusReason,omitempty"`
+
+ // Product SKU
+ StockKeepingUnit string `json:"StockKeepingUnit,omitempty"`
+
+ // Tenant ID
+ TenantID string `json:"TenantID,omitempty"`
+
+ // Total Lifecycle Amount
+ TotalLifecycleAmount float64 `json:"TotalLifecycleAmount,omitempty"`
+
+ // Type
+ Type string `json:"Type,omitempty"`
+
+ // URL
+ URL string `json:"URL,omitempty"`
+
+ // Unique Identifier
+ UUID string `json:"UUID,omitempty"`
+
+ // Usage End Date
+ UsageEndDate string `json:"UsageEndDate,omitempty"`
+}
+
+// Validate validates this asset
+func (m *Asset) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAddress(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *Asset) validateAddress(formats strfmt.Registry) error {
+ if swag.IsZero(m.Address) { // not required
+ return nil
+ }
+
+ if m.Address != nil {
+ if err := m.Address.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Address")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Address")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this asset based on the context it is used
+func (m *Asset) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateAddress(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *Asset) contextValidateAddress(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Address != nil {
+ if err := m.Address.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Address")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Address")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *Asset) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *Asset) UnmarshalBinary(b []byte) error {
+ var res Asset
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/asset_request.go b/api/research/research_models/asset_request.go
new file mode 100644
index 0000000..df13c80
--- /dev/null
+++ b/api/research/research_models/asset_request.go
@@ -0,0 +1,120 @@
+// 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"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// AssetRequest An array of Asset objects with Contacts
+//
+// swagger:model AssetRequest
+type AssetRequest struct {
+
+ // data
+ Data []*Asset `json:"Data"`
+}
+
+// Validate validates this asset request
+func (m *AssetRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *AssetRequest) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this asset request based on the context it is used
+func (m *AssetRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *AssetRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *AssetRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *AssetRequest) UnmarshalBinary(b []byte) error {
+ var res AssetRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/asset_response.go b/api/research/research_models/asset_response.go
new file mode 100644
index 0000000..e68a118
--- /dev/null
+++ b/api/research/research_models/asset_response.go
@@ -0,0 +1,166 @@
+// 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"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// AssetResponse An array of Asset objects with Contacts
+//
+// swagger:model AssetResponse
+type AssetResponse struct {
+
+ // data
+ Data []*Asset `json:"Data"`
+
+ // meta
+ Meta *ResponseMeta `json:"Meta,omitempty"`
+}
+
+// Validate validates this asset response
+func (m *AssetResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *AssetResponse) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *AssetResponse) validateMeta(formats strfmt.Registry) error {
+ if swag.IsZero(m.Meta) { // not required
+ return nil
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this asset response based on the context it is used
+func (m *AssetResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *AssetResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *AssetResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *AssetResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *AssetResponse) UnmarshalBinary(b []byte) error {
+ var res AssetResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/company_product.go b/api/research/research_models/company_product.go
new file mode 100644
index 0000000..7946ace
--- /dev/null
+++ b/api/research/research_models/company_product.go
@@ -0,0 +1,81 @@
+// 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/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// CompanyProduct A software product or service vended by a Company
+//
+// swagger:model CompanyProduct
+type CompanyProduct struct {
+
+ // Taxnexus ID of the Company that owns this Product
+ AccountID string `json:"AccountID,omitempty"`
+
+ // Created By User ID
+ CreatedByID string `json:"CreatedByID,omitempty"`
+
+ // Created Date
+ CreatedDate string `json:"CreatedDate,omitempty"`
+
+ // Description of product
+ Description string `json:"Description,omitempty"`
+
+ // Taxnexus Record Id
+ ID string `json:"ID,omitempty"`
+
+ // Last Modified By User ID
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
+
+ // Last Modified Date
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
+
+ // Product Name
+ Name string `json:"Name,omitempty"`
+
+ // TagLine
+ TagLine string `json:"TagLine,omitempty"`
+
+ // Website
+ URL string `json:"URL,omitempty"`
+}
+
+// Validate validates this company product
+func (m *CompanyProduct) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this company product based on context it is used
+func (m *CompanyProduct) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *CompanyProduct) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *CompanyProduct) UnmarshalBinary(b []byte) error {
+ var res CompanyProduct
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/company_product_request.go b/api/research/research_models/company_product_request.go
new file mode 100644
index 0000000..ed9c4d2
--- /dev/null
+++ b/api/research/research_models/company_product_request.go
@@ -0,0 +1,171 @@
+// 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"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// CompanyProductRequest company product request
+//
+// swagger:model CompanyProductRequest
+type CompanyProductRequest struct {
+
+ // data
+ // Required: true
+ Data []*CompanyProduct `json:"data"`
+
+ // meta
+ // Required: true
+ Meta *RequestMeta `json:"meta"`
+}
+
+// Validate validates this company product request
+func (m *CompanyProductRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *CompanyProductRequest) validateData(formats strfmt.Registry) error {
+
+ if err := validate.Required("data", "body", m.Data); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *CompanyProductRequest) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this company product request based on the context it is used
+func (m *CompanyProductRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *CompanyProductRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *CompanyProductRequest) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *CompanyProductRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *CompanyProductRequest) UnmarshalBinary(b []byte) error {
+ var res CompanyProductRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/company_product_response.go b/api/research/research_models/company_product_response.go
new file mode 100644
index 0000000..8bde76a
--- /dev/null
+++ b/api/research/research_models/company_product_response.go
@@ -0,0 +1,166 @@
+// 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"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// CompanyProductResponse company product response
+//
+// swagger:model CompanyProductResponse
+type CompanyProductResponse struct {
+
+ // data
+ Data []*CompanyProduct `json:"data"`
+
+ // meta
+ Meta *ResponseMeta `json:"meta,omitempty"`
+}
+
+// Validate validates this company product response
+func (m *CompanyProductResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *CompanyProductResponse) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *CompanyProductResponse) validateMeta(formats strfmt.Registry) error {
+ if swag.IsZero(m.Meta) { // not required
+ return nil
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this company product response based on the context it is used
+func (m *CompanyProductResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *CompanyProductResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *CompanyProductResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *CompanyProductResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *CompanyProductResponse) UnmarshalBinary(b []byte) error {
+ var res CompanyProductResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/contact.go b/api/research/research_models/contact.go
index e44b815..ef4ca94 100644
--- a/api/research/research_models/contact.go
+++ b/api/research/research_models/contact.go
@@ -23,150 +23,126 @@ import (
type Contact struct {
// The primary account ID of this contact
- Accountid string `json:"accountid,omitempty"`
+ AccountID string `json:"AccountID,omitempty"`
// Assistant Name
- Assistantname string `json:"assistantname,omitempty"`
+ AssistantName string `json:"AssistantName,omitempty"`
// Asst. Phone
- Assistantphone string `json:"assistantphone,omitempty"`
+ AssistantPhone string `json:"AssistantPhone,omitempty"`
// Birthdate
- Birthdate string `json:"birthdate,omitempty"`
+ BirthDate string `json:"BirthDate,omitempty"`
// Created By User ID
- Createdbyid string `json:"createdbyid,omitempty"`
+ CreatedByID string `json:"CreatedByID,omitempty"`
// Created Date
- Createddate string `json:"createddate,omitempty"`
+ CreatedDate string `json:"CreatedDate,omitempty"`
// Department
- Department string `json:"department,omitempty"`
+ Department string `json:"Department,omitempty"`
// Description
- Description string `json:"description,omitempty"`
+ Description string `json:"Description,omitempty"`
// Do Not Call?
- Donotcall bool `json:"donotcall,omitempty"`
+ DoNotCall bool `json:"DoNotCall,omitempty"`
// Email address
- Email string `json:"email,omitempty"`
+ Email string `json:"Email,omitempty"`
// Email Bounce Date
- Emailbounceddate string `json:"emailbounceddate,omitempty"`
+ EmailBounceDate string `json:"EmailBounceDate,omitempty"`
// Email Bounce Reason
- Emailbouncedreason string `json:"emailbouncedreason,omitempty"`
-
- // Taxnexus Enrollment Status
- Enrollmentstatus string `json:"enrollmentstatus,omitempty"`
+ EmailBounceReason string `json:"EmailBounceReason,omitempty"`
// Fax Number
- Fax string `json:"fax,omitempty"`
+ Facebook string `json:"Facebook,omitempty"`
+
+ // fax
+ Fax string `json:"Fax,omitempty"`
// First Name
- Firstname string `json:"firstname,omitempty"`
+ FirstName string `json:"FirstName,omitempty"`
// Email Opt Out
- Hasoptedoutofemail bool `json:"hasoptedoutofemail,omitempty"`
+ HasOptedOutOfEmail bool `json:"HasOptedOutOfEmail,omitempty"`
// Fax Opt Out
- Hasoptedoutoffax bool `json:"hasoptedoutoffax,omitempty"`
+ HasOptedOutOfFax bool `json:"HasOptedOutOfFax,omitempty"`
// Home Phone
- Homephone string `json:"homephone,omitempty"`
+ HomePhone string `json:"HomePhone,omitempty"`
// Taxnexus Record Id
- ID string `json:"id,omitempty"`
+ ID string `json:"ID,omitempty"`
// Does this contact have bounced emails?
- Isemailbounced bool `json:"isemailbounced,omitempty"`
-
- // Is Provisioned?
- Isprovisioned bool `json:"isprovisioned,omitempty"`
+ IsEmailBounced bool `json:"IsEmailBounced,omitempty"`
// Last Modified By User ID
- Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
- Lastmodifieddate string `json:"lastmodifieddate,omitempty"`
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// Last Name
- Lastname string `json:"lastname,omitempty"`
+ LastName string `json:"LastName,omitempty"`
// Lead Source
- Leadsource string `json:"leadsource,omitempty"`
-
- // Level
- Level string `json:"level,omitempty"`
+ LeadSource string `json:"LeadSource,omitempty"`
// LinkedIn Page
- Linkedin string `json:"linkedin,omitempty"`
+ LinkedIn string `json:"LinkedIn,omitempty"`
- // mailingaddress
- Mailingaddress *Address `json:"mailingaddress,omitempty"`
-
- // Mailing Lists
- Mailinglists string `json:"mailinglists,omitempty"`
+ // mailing address
+ MailingAddress *Address `json:"MailingAddress,omitempty"`
// Mobile Phone
- Mobilephone string `json:"mobilephone,omitempty"`
+ MobilePhone string `json:"MobilePhone,omitempty"`
// Full Name
- Name string `json:"name,omitempty"`
+ Name string `json:"Name,omitempty"`
- // otheraddress
- Otheraddress *Address `json:"otheraddress,omitempty"`
+ // other address
+ OtherAddress *Address `json:"OtherAddress,omitempty"`
// Other Phone
- Otherphone string `json:"otherphone,omitempty"`
+ OtherPhone string `json:"OtherPhone,omitempty"`
// The User ID of the user who owns this Contact
- Ownerid string `json:"ownerid,omitempty"`
+ OwnerID string `json:"OwnerID,omitempty"`
// Personal Email Address for this Contact
- Personalemail string `json:"personalemail,omitempty"`
+ PersonalEmail string `json:"PersonalEmail,omitempty"`
// Phone Number
- Phone string `json:"phone,omitempty"`
+ Phone string `json:"Phone,omitempty"`
// URL of a photograph of this User
- Photourl string `json:"photourl,omitempty"`
-
- // Recruiting Status
- Recruitingstatus string `json:"recruitingstatus,omitempty"`
-
- // External reference to this contact, if any
- Ref string `json:"ref,omitempty"`
-
- // Reports To Contact ID
- Reportstoid string `json:"reportstoid,omitempty"`
-
- // Contact Salutation
- Salutation string `json:"salutation,omitempty"`
-
- // The Contact Status
- Status string `json:"status,omitempty"`
+ PhotoURL string `json:"PhotoURL,omitempty"`
// tenant identifier
- Tenantid string `json:"tenantid,omitempty"`
+ TenantID string `json:"TenantID,omitempty"`
// Contact Title
- Title string `json:"title,omitempty"`
+ Title string `json:"Title,omitempty"`
- // Contact Type
- Type string `json:"type,omitempty"`
+ // twitter
+ Twitter string `json:"Twitter,omitempty"`
}
// Validate validates this contact
func (m *Contact) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateMailingaddress(formats); err != nil {
+ if err := m.validateMailingAddress(formats); err != nil {
res = append(res, err)
}
- if err := m.validateOtheraddress(formats); err != nil {
+ if err := m.validateOtherAddress(formats); err != nil {
res = append(res, err)
}
@@ -176,17 +152,17 @@ func (m *Contact) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *Contact) validateMailingaddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Mailingaddress) { // not required
+func (m *Contact) validateMailingAddress(formats strfmt.Registry) error {
+ if swag.IsZero(m.MailingAddress) { // not required
return nil
}
- if m.Mailingaddress != nil {
- if err := m.Mailingaddress.Validate(formats); err != nil {
+ if m.MailingAddress != nil {
+ if err := m.MailingAddress.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("mailingaddress")
+ return ve.ValidateName("MailingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("mailingaddress")
+ return ce.ValidateName("MailingAddress")
}
return err
}
@@ -195,17 +171,17 @@ func (m *Contact) validateMailingaddress(formats strfmt.Registry) error {
return nil
}
-func (m *Contact) validateOtheraddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Otheraddress) { // not required
+func (m *Contact) validateOtherAddress(formats strfmt.Registry) error {
+ if swag.IsZero(m.OtherAddress) { // not required
return nil
}
- if m.Otheraddress != nil {
- if err := m.Otheraddress.Validate(formats); err != nil {
+ if m.OtherAddress != nil {
+ if err := m.OtherAddress.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("otheraddress")
+ return ve.ValidateName("OtherAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("otheraddress")
+ return ce.ValidateName("OtherAddress")
}
return err
}
@@ -218,11 +194,11 @@ func (m *Contact) validateOtheraddress(formats strfmt.Registry) error {
func (m *Contact) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateMailingaddress(ctx, formats); err != nil {
+ if err := m.contextValidateMailingAddress(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateOtheraddress(ctx, formats); err != nil {
+ if err := m.contextValidateOtherAddress(ctx, formats); err != nil {
res = append(res, err)
}
@@ -232,14 +208,14 @@ func (m *Contact) ContextValidate(ctx context.Context, formats strfmt.Registry)
return nil
}
-func (m *Contact) contextValidateMailingaddress(ctx context.Context, formats strfmt.Registry) error {
+func (m *Contact) contextValidateMailingAddress(ctx context.Context, formats strfmt.Registry) error {
- if m.Mailingaddress != nil {
- if err := m.Mailingaddress.ContextValidate(ctx, formats); err != nil {
+ if m.MailingAddress != nil {
+ if err := m.MailingAddress.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("mailingaddress")
+ return ve.ValidateName("MailingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("mailingaddress")
+ return ce.ValidateName("MailingAddress")
}
return err
}
@@ -248,14 +224,14 @@ func (m *Contact) contextValidateMailingaddress(ctx context.Context, formats str
return nil
}
-func (m *Contact) contextValidateOtheraddress(ctx context.Context, formats strfmt.Registry) error {
+func (m *Contact) contextValidateOtherAddress(ctx context.Context, formats strfmt.Registry) error {
- if m.Otheraddress != nil {
- if err := m.Otheraddress.ContextValidate(ctx, formats); err != nil {
+ if m.OtherAddress != nil {
+ if err := m.OtherAddress.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("otheraddress")
+ return ve.ValidateName("OtherAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("otheraddress")
+ return ce.ValidateName("OtherAddress")
}
return err
}
diff --git a/api/research/research_models/industry.go b/api/research/research_models/industry.go
new file mode 100644
index 0000000..23eb89e
--- /dev/null
+++ b/api/research/research_models/industry.go
@@ -0,0 +1,87 @@
+// 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/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// Industry An industry that is being researched
+//
+// swagger:model Industry
+type Industry struct {
+
+ // Created By User ID
+ CreatedByID string `json:"CreatedByID,omitempty"`
+
+ // Created Date
+ CreatedDate string `json:"CreatedDate,omitempty"`
+
+ // Industry Description
+ Description string `json:"Description,omitempty"`
+
+ // Taxnexus Record Id
+ ID string `json:"ID,omitempty"`
+
+ // Last Modified By User ID
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
+
+ // Last Modified Date
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
+
+ // The hierarchical level of this Industry
+ Level string `json:"Level,omitempty"`
+
+ // Industry Name
+ Name string `json:"Name,omitempty"`
+
+ // The ID of the Parent Industry
+ ParentIndustryID string `json:"ParentIndustryID,omitempty"`
+
+ // The full path of this industry, including Parent
+ Path string `json:"Path,omitempty"`
+
+ // The URL of the corresponding page on the CMS
+ SiteURL string `json:"SiteURL,omitempty"`
+
+ // The CMS Slug for this Industry
+ Slug string `json:"Slug,omitempty"`
+}
+
+// Validate validates this industry
+func (m *Industry) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this industry based on context it is used
+func (m *Industry) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *Industry) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *Industry) UnmarshalBinary(b []byte) error {
+ var res Industry
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/industry_product.go b/api/research/research_models/industry_product.go
new file mode 100644
index 0000000..901dba4
--- /dev/null
+++ b/api/research/research_models/industry_product.go
@@ -0,0 +1,75 @@
+// 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/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// IndustryProduct Junction object between Industry and CompanyProduct
+//
+// swagger:model IndustryProduct
+type IndustryProduct struct {
+
+ // company product ID
+ CompanyProductID string `json:"CompanyProductID,omitempty"`
+
+ // Created By User ID
+ CreatedByID string `json:"CreatedByID,omitempty"`
+
+ // Created Date
+ CreatedDate string `json:"CreatedDate,omitempty"`
+
+ // HTML
+ HTML string `json:"HTML,omitempty"`
+
+ // Taxnexus Record Id
+ ID string `json:"ID,omitempty"`
+
+ // industry ID
+ IndustryID string `json:"IndustryID,omitempty"`
+
+ // Last Modified By User ID
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
+
+ // Last Modified Date
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
+}
+
+// Validate validates this industry product
+func (m *IndustryProduct) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this industry product based on context it is used
+func (m *IndustryProduct) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IndustryProduct) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IndustryProduct) UnmarshalBinary(b []byte) error {
+ var res IndustryProduct
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/industry_product_request.go b/api/research/research_models/industry_product_request.go
new file mode 100644
index 0000000..87e479e
--- /dev/null
+++ b/api/research/research_models/industry_product_request.go
@@ -0,0 +1,120 @@
+// 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"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// IndustryProductRequest An array of IndustryProduct objects submitted for processing
+//
+// swagger:model IndustryProductRequest
+type IndustryProductRequest struct {
+
+ // data
+ Data []*IndustryProduct `json:"Data"`
+}
+
+// Validate validates this industry product request
+func (m *IndustryProductRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryProductRequest) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this industry product request based on the context it is used
+func (m *IndustryProductRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryProductRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IndustryProductRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IndustryProductRequest) UnmarshalBinary(b []byte) error {
+ var res IndustryProductRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/industry_product_response.go b/api/research/research_models/industry_product_response.go
new file mode 100644
index 0000000..3ac954b
--- /dev/null
+++ b/api/research/research_models/industry_product_response.go
@@ -0,0 +1,166 @@
+// 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"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// IndustryProductResponse An array of IndustryProduct objects produced in response to a request
+//
+// swagger:model IndustryProductResponse
+type IndustryProductResponse struct {
+
+ // data
+ Data []*IndustryProduct `json:"Data"`
+
+ // meta
+ Meta *ResponseMeta `json:"Meta,omitempty"`
+}
+
+// Validate validates this industry product response
+func (m *IndustryProductResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryProductResponse) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *IndustryProductResponse) validateMeta(formats strfmt.Registry) error {
+ if swag.IsZero(m.Meta) { // not required
+ return nil
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this industry product response based on the context it is used
+func (m *IndustryProductResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryProductResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *IndustryProductResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IndustryProductResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IndustryProductResponse) UnmarshalBinary(b []byte) error {
+ var res IndustryProductResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/industry_request.go b/api/research/research_models/industry_request.go
new file mode 100644
index 0000000..f12d31a
--- /dev/null
+++ b/api/research/research_models/industry_request.go
@@ -0,0 +1,120 @@
+// 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"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// IndustryRequest An array of Industry objects submitted for processing
+//
+// swagger:model IndustryRequest
+type IndustryRequest struct {
+
+ // data
+ Data []*Industry `json:"Data"`
+}
+
+// Validate validates this industry request
+func (m *IndustryRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryRequest) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this industry request based on the context it is used
+func (m *IndustryRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IndustryRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IndustryRequest) UnmarshalBinary(b []byte) error {
+ var res IndustryRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/research/research_models/industry_response.go b/api/research/research_models/industry_response.go
new file mode 100644
index 0000000..22eb019
--- /dev/null
+++ b/api/research/research_models/industry_response.go
@@ -0,0 +1,166 @@
+// 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"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// IndustryResponse An array of Industry objects produced in response to a request
+//
+// swagger:model IndustryResponse
+type IndustryResponse struct {
+
+ // data
+ Data []*Industry `json:"Data"`
+
+ // meta
+ Meta *ResponseMeta `json:"Meta,omitempty"`
+}
+
+// Validate validates this industry response
+func (m *IndustryResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryResponse) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *IndustryResponse) validateMeta(formats strfmt.Registry) error {
+ if swag.IsZero(m.Meta) { // not required
+ return nil
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this industry response based on the context it is used
+func (m *IndustryResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *IndustryResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IndustryResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IndustryResponse) UnmarshalBinary(b []byte) error {
+ var res IndustryResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/assets/assets_client.go b/api/sfgate/sfgate_client/assets/assets_client.go
new file mode 100644
index 0000000..37462c5
--- /dev/null
+++ b/api/sfgate/sfgate_client/assets/assets_client.go
@@ -0,0 +1,129 @@
+// 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 assets
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new assets API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for assets API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetAssets(params *GetAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAssetsOK, error)
+
+ PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAssetsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ GetAssets gets a list of assets
+
+ Return a list of all available Assets
+*/
+func (a *Client) GetAssets(params *GetAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAssetsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetAssetsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "getAssets",
+ Method: "GET",
+ PathPattern: "/assets",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetAssetsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetAssetsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for getAssets: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ PostAssets adds a new asset to taxnexus
+
+ Industry record to be added
+*/
+func (a *Client) PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAssetsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewPostAssetsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "postAssets",
+ Method: "POST",
+ PathPattern: "/assets",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &PostAssetsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*PostAssetsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for postAssets: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/api/sfgate/sfgate_client/assets/get_assets_parameters.go b/api/sfgate/sfgate_client/assets/get_assets_parameters.go
new file mode 100644
index 0000000..9c974ab
--- /dev/null
+++ b/api/sfgate/sfgate_client/assets/get_assets_parameters.go
@@ -0,0 +1,272 @@
+// 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 assets
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetAssetsParams creates a new GetAssetsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetAssetsParams() *GetAssetsParams {
+ return &GetAssetsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetAssetsParamsWithTimeout creates a new GetAssetsParams object
+// with the ability to set a timeout on a request.
+func NewGetAssetsParamsWithTimeout(timeout time.Duration) *GetAssetsParams {
+ return &GetAssetsParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetAssetsParamsWithContext creates a new GetAssetsParams object
+// with the ability to set a context for a request.
+func NewGetAssetsParamsWithContext(ctx context.Context) *GetAssetsParams {
+ return &GetAssetsParams{
+ Context: ctx,
+ }
+}
+
+// NewGetAssetsParamsWithHTTPClient creates a new GetAssetsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetAssetsParamsWithHTTPClient(client *http.Client) *GetAssetsParams {
+ return &GetAssetsParams{
+ HTTPClient: client,
+ }
+}
+
+/* GetAssetsParams contains all the parameters to send to the API endpoint
+ for the get assets operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetAssetsParams struct {
+
+ /* Active.
+
+ Only retrieve active records?
+ */
+ Active *bool
+
+ /* AssetID.
+
+ Taxnexus Record Id of an Asset
+ */
+ AssetID *string
+
+ /* Limit.
+
+ How many objects to return at one time
+
+ Format: int64
+ */
+ Limit *int64
+
+ /* Offset.
+
+ How many objects to skip?
+
+ Format: int64
+ */
+ Offset *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get assets params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetAssetsParams) WithDefaults() *GetAssetsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get assets params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetAssetsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get assets params
+func (o *GetAssetsParams) WithTimeout(timeout time.Duration) *GetAssetsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get assets params
+func (o *GetAssetsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get assets params
+func (o *GetAssetsParams) WithContext(ctx context.Context) *GetAssetsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get assets params
+func (o *GetAssetsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get assets params
+func (o *GetAssetsParams) WithHTTPClient(client *http.Client) *GetAssetsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get assets params
+func (o *GetAssetsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithActive adds the active to the get assets params
+func (o *GetAssetsParams) WithActive(active *bool) *GetAssetsParams {
+ o.SetActive(active)
+ return o
+}
+
+// SetActive adds the active to the get assets params
+func (o *GetAssetsParams) SetActive(active *bool) {
+ o.Active = active
+}
+
+// WithAssetID adds the assetID to the get assets params
+func (o *GetAssetsParams) WithAssetID(assetID *string) *GetAssetsParams {
+ o.SetAssetID(assetID)
+ return o
+}
+
+// SetAssetID adds the assetId to the get assets params
+func (o *GetAssetsParams) SetAssetID(assetID *string) {
+ o.AssetID = assetID
+}
+
+// WithLimit adds the limit to the get assets params
+func (o *GetAssetsParams) WithLimit(limit *int64) *GetAssetsParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the get assets params
+func (o *GetAssetsParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the get assets params
+func (o *GetAssetsParams) WithOffset(offset *int64) *GetAssetsParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the get assets params
+func (o *GetAssetsParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Active != nil {
+
+ // query param active
+ var qrActive bool
+
+ if o.Active != nil {
+ qrActive = *o.Active
+ }
+ qActive := swag.FormatBool(qrActive)
+ if qActive != "" {
+
+ if err := r.SetQueryParam("active", qActive); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.AssetID != nil {
+
+ // query param assetId
+ var qrAssetID string
+
+ if o.AssetID != nil {
+ qrAssetID = *o.AssetID
+ }
+ qAssetID := qrAssetID
+ if qAssetID != "" {
+
+ if err := r.SetQueryParam("assetId", qAssetID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/assets/get_assets_responses.go b/api/sfgate/sfgate_client/assets/get_assets_responses.go
new file mode 100644
index 0000000..8fa71ab
--- /dev/null
+++ b/api/sfgate/sfgate_client/assets/get_assets_responses.go
@@ -0,0 +1,323 @@
+// 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 assets
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// GetAssetsReader is a Reader for the GetAssets structure.
+type GetAssetsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetAssetsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetAssetsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetAssetsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetAssetsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewGetAssetsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetAssetsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewGetAssetsOK creates a GetAssetsOK with default headers values
+func NewGetAssetsOK() *GetAssetsOK {
+ return &GetAssetsOK{}
+}
+
+/* GetAssetsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Asset objects with Contacts
+*/
+type GetAssetsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *sfgate_models.AssetResponse
+}
+
+func (o *GetAssetsOK) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsOK %+v", 200, o.Payload)
+}
+func (o *GetAssetsOK) GetPayload() *sfgate_models.AssetResponse {
+ return o.Payload
+}
+
+func (o *GetAssetsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(sfgate_models.AssetResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetAssetsUnauthorized creates a GetAssetsUnauthorized with default headers values
+func NewGetAssetsUnauthorized() *GetAssetsUnauthorized {
+ return &GetAssetsUnauthorized{}
+}
+
+/* GetAssetsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type GetAssetsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetAssetsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsUnauthorized %+v", 401, o.Payload)
+}
+func (o *GetAssetsUnauthorized) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetAssetsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetAssetsForbidden creates a GetAssetsForbidden with default headers values
+func NewGetAssetsForbidden() *GetAssetsForbidden {
+ return &GetAssetsForbidden{}
+}
+
+/* GetAssetsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type GetAssetsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetAssetsForbidden) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsForbidden %+v", 403, o.Payload)
+}
+func (o *GetAssetsForbidden) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetAssetsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetAssetsNotFound creates a GetAssetsNotFound with default headers values
+func NewGetAssetsNotFound() *GetAssetsNotFound {
+ return &GetAssetsNotFound{}
+}
+
+/* GetAssetsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type GetAssetsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetAssetsNotFound) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsNotFound %+v", 404, o.Payload)
+}
+func (o *GetAssetsNotFound) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetAssetsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetAssetsUnprocessableEntity creates a GetAssetsUnprocessableEntity with default headers values
+func NewGetAssetsUnprocessableEntity() *GetAssetsUnprocessableEntity {
+ return &GetAssetsUnprocessableEntity{}
+}
+
+/* GetAssetsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type GetAssetsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetAssetsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *GetAssetsUnprocessableEntity) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetAssetsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetAssetsInternalServerError creates a GetAssetsInternalServerError with default headers values
+func NewGetAssetsInternalServerError() *GetAssetsInternalServerError {
+ return &GetAssetsInternalServerError{}
+}
+
+/* GetAssetsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type GetAssetsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetAssetsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /assets][%d] getAssetsInternalServerError %+v", 500, o.Payload)
+}
+func (o *GetAssetsInternalServerError) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetAssetsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/assets/post_assets_parameters.go b/api/sfgate/sfgate_client/assets/post_assets_parameters.go
new file mode 100644
index 0000000..47502b2
--- /dev/null
+++ b/api/sfgate/sfgate_client/assets/post_assets_parameters.go
@@ -0,0 +1,155 @@
+// 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 assets
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// NewPostAssetsParams creates a new PostAssetsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewPostAssetsParams() *PostAssetsParams {
+ return &PostAssetsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewPostAssetsParamsWithTimeout creates a new PostAssetsParams object
+// with the ability to set a timeout on a request.
+func NewPostAssetsParamsWithTimeout(timeout time.Duration) *PostAssetsParams {
+ return &PostAssetsParams{
+ timeout: timeout,
+ }
+}
+
+// NewPostAssetsParamsWithContext creates a new PostAssetsParams object
+// with the ability to set a context for a request.
+func NewPostAssetsParamsWithContext(ctx context.Context) *PostAssetsParams {
+ return &PostAssetsParams{
+ Context: ctx,
+ }
+}
+
+// NewPostAssetsParamsWithHTTPClient creates a new PostAssetsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewPostAssetsParamsWithHTTPClient(client *http.Client) *PostAssetsParams {
+ return &PostAssetsParams{
+ HTTPClient: client,
+ }
+}
+
+/* PostAssetsParams contains all the parameters to send to the API endpoint
+ for the post assets operation.
+
+ Typically these are written to a http.Request.
+*/
+type PostAssetsParams struct {
+
+ /* AssetRequest.
+
+ An array of new Asset records
+ */
+ AssetRequest *sfgate_models.AssetRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the post assets params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostAssetsParams) WithDefaults() *PostAssetsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the post assets params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostAssetsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the post assets params
+func (o *PostAssetsParams) WithTimeout(timeout time.Duration) *PostAssetsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the post assets params
+func (o *PostAssetsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the post assets params
+func (o *PostAssetsParams) WithContext(ctx context.Context) *PostAssetsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the post assets params
+func (o *PostAssetsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the post assets params
+func (o *PostAssetsParams) WithHTTPClient(client *http.Client) *PostAssetsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the post assets params
+func (o *PostAssetsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithAssetRequest adds the assetRequest to the post assets params
+func (o *PostAssetsParams) WithAssetRequest(assetRequest *sfgate_models.AssetRequest) *PostAssetsParams {
+ o.SetAssetRequest(assetRequest)
+ return o
+}
+
+// SetAssetRequest adds the assetRequest to the post assets params
+func (o *PostAssetsParams) SetAssetRequest(assetRequest *sfgate_models.AssetRequest) {
+ o.AssetRequest = assetRequest
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *PostAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.AssetRequest != nil {
+ if err := r.SetBodyParam(o.AssetRequest); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/assets/post_assets_responses.go b/api/sfgate/sfgate_client/assets/post_assets_responses.go
new file mode 100644
index 0000000..70bcb68
--- /dev/null
+++ b/api/sfgate/sfgate_client/assets/post_assets_responses.go
@@ -0,0 +1,323 @@
+// 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 assets
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// PostAssetsReader is a Reader for the PostAssets structure.
+type PostAssetsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *PostAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewPostAssetsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewPostAssetsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewPostAssetsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewPostAssetsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewPostAssetsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewPostAssetsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewPostAssetsOK creates a PostAssetsOK with default headers values
+func NewPostAssetsOK() *PostAssetsOK {
+ return &PostAssetsOK{}
+}
+
+/* PostAssetsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Asset objects with Contacts
+*/
+type PostAssetsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *sfgate_models.AssetResponse
+}
+
+func (o *PostAssetsOK) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsOK %+v", 200, o.Payload)
+}
+func (o *PostAssetsOK) GetPayload() *sfgate_models.AssetResponse {
+ return o.Payload
+}
+
+func (o *PostAssetsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(sfgate_models.AssetResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostAssetsUnauthorized creates a PostAssetsUnauthorized with default headers values
+func NewPostAssetsUnauthorized() *PostAssetsUnauthorized {
+ return &PostAssetsUnauthorized{}
+}
+
+/* PostAssetsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type PostAssetsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostAssetsUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsUnauthorized %+v", 401, o.Payload)
+}
+func (o *PostAssetsUnauthorized) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostAssetsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostAssetsForbidden creates a PostAssetsForbidden with default headers values
+func NewPostAssetsForbidden() *PostAssetsForbidden {
+ return &PostAssetsForbidden{}
+}
+
+/* PostAssetsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type PostAssetsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostAssetsForbidden) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsForbidden %+v", 403, o.Payload)
+}
+func (o *PostAssetsForbidden) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostAssetsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostAssetsNotFound creates a PostAssetsNotFound with default headers values
+func NewPostAssetsNotFound() *PostAssetsNotFound {
+ return &PostAssetsNotFound{}
+}
+
+/* PostAssetsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type PostAssetsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostAssetsNotFound) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsNotFound %+v", 404, o.Payload)
+}
+func (o *PostAssetsNotFound) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostAssetsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostAssetsUnprocessableEntity creates a PostAssetsUnprocessableEntity with default headers values
+func NewPostAssetsUnprocessableEntity() *PostAssetsUnprocessableEntity {
+ return &PostAssetsUnprocessableEntity{}
+}
+
+/* PostAssetsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type PostAssetsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostAssetsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *PostAssetsUnprocessableEntity) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostAssetsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostAssetsInternalServerError creates a PostAssetsInternalServerError with default headers values
+func NewPostAssetsInternalServerError() *PostAssetsInternalServerError {
+ return &PostAssetsInternalServerError{}
+}
+
+/* PostAssetsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type PostAssetsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostAssetsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /assets][%d] postAssetsInternalServerError %+v", 500, o.Payload)
+}
+func (o *PostAssetsInternalServerError) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostAssetsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/company_products/company_products_client.go b/api/sfgate/sfgate_client/company_products/company_products_client.go
new file mode 100644
index 0000000..1120ca6
--- /dev/null
+++ b/api/sfgate/sfgate_client/company_products/company_products_client.go
@@ -0,0 +1,129 @@
+// 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 company_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new company products API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for company products API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetCompanyProducts(params *GetCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCompanyProductsOK, error)
+
+ PostCompanyProducts(params *PostCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCompanyProductsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ GetCompanyProducts gets a list of companyproducts
+
+ Return a list of all available CompanyProducts
+*/
+func (a *Client) GetCompanyProducts(params *GetCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCompanyProductsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetCompanyProductsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "getCompanyProducts",
+ Method: "GET",
+ PathPattern: "/companyproducts",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetCompanyProductsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetCompanyProductsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for getCompanyProducts: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ PostCompanyProducts adds a new companyproduct to taxnexus
+
+ Industry record to be added
+*/
+func (a *Client) PostCompanyProducts(params *PostCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCompanyProductsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewPostCompanyProductsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "postCompanyProducts",
+ Method: "POST",
+ PathPattern: "/companyproducts",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &PostCompanyProductsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*PostCompanyProductsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for postCompanyProducts: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go b/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go
new file mode 100644
index 0000000..592f35f
--- /dev/null
+++ b/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go
@@ -0,0 +1,272 @@
+// 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 company_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetCompanyProductsParams creates a new GetCompanyProductsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetCompanyProductsParams() *GetCompanyProductsParams {
+ return &GetCompanyProductsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetCompanyProductsParamsWithTimeout creates a new GetCompanyProductsParams object
+// with the ability to set a timeout on a request.
+func NewGetCompanyProductsParamsWithTimeout(timeout time.Duration) *GetCompanyProductsParams {
+ return &GetCompanyProductsParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetCompanyProductsParamsWithContext creates a new GetCompanyProductsParams object
+// with the ability to set a context for a request.
+func NewGetCompanyProductsParamsWithContext(ctx context.Context) *GetCompanyProductsParams {
+ return &GetCompanyProductsParams{
+ Context: ctx,
+ }
+}
+
+// NewGetCompanyProductsParamsWithHTTPClient creates a new GetCompanyProductsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetCompanyProductsParamsWithHTTPClient(client *http.Client) *GetCompanyProductsParams {
+ return &GetCompanyProductsParams{
+ HTTPClient: client,
+ }
+}
+
+/* GetCompanyProductsParams contains all the parameters to send to the API endpoint
+ for the get company products operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetCompanyProductsParams struct {
+
+ /* Active.
+
+ Only retrieve active records?
+ */
+ Active *bool
+
+ /* CompanyProductID.
+
+ Taxnexus CompanyProduct record ID
+ */
+ CompanyProductID *string
+
+ /* Limit.
+
+ How many objects to return at one time
+
+ Format: int64
+ */
+ Limit *int64
+
+ /* Offset.
+
+ How many objects to skip?
+
+ Format: int64
+ */
+ Offset *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get company products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetCompanyProductsParams) WithDefaults() *GetCompanyProductsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get company products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetCompanyProductsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get company products params
+func (o *GetCompanyProductsParams) WithTimeout(timeout time.Duration) *GetCompanyProductsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get company products params
+func (o *GetCompanyProductsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get company products params
+func (o *GetCompanyProductsParams) WithContext(ctx context.Context) *GetCompanyProductsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get company products params
+func (o *GetCompanyProductsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get company products params
+func (o *GetCompanyProductsParams) WithHTTPClient(client *http.Client) *GetCompanyProductsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get company products params
+func (o *GetCompanyProductsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithActive adds the active to the get company products params
+func (o *GetCompanyProductsParams) WithActive(active *bool) *GetCompanyProductsParams {
+ o.SetActive(active)
+ return o
+}
+
+// SetActive adds the active to the get company products params
+func (o *GetCompanyProductsParams) SetActive(active *bool) {
+ o.Active = active
+}
+
+// WithCompanyProductID adds the companyProductID to the get company products params
+func (o *GetCompanyProductsParams) WithCompanyProductID(companyProductID *string) *GetCompanyProductsParams {
+ o.SetCompanyProductID(companyProductID)
+ return o
+}
+
+// SetCompanyProductID adds the companyProductId to the get company products params
+func (o *GetCompanyProductsParams) SetCompanyProductID(companyProductID *string) {
+ o.CompanyProductID = companyProductID
+}
+
+// WithLimit adds the limit to the get company products params
+func (o *GetCompanyProductsParams) WithLimit(limit *int64) *GetCompanyProductsParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the get company products params
+func (o *GetCompanyProductsParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the get company products params
+func (o *GetCompanyProductsParams) WithOffset(offset *int64) *GetCompanyProductsParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the get company products params
+func (o *GetCompanyProductsParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetCompanyProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Active != nil {
+
+ // query param active
+ var qrActive bool
+
+ if o.Active != nil {
+ qrActive = *o.Active
+ }
+ qActive := swag.FormatBool(qrActive)
+ if qActive != "" {
+
+ if err := r.SetQueryParam("active", qActive); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.CompanyProductID != nil {
+
+ // query param companyProductId
+ var qrCompanyProductID string
+
+ if o.CompanyProductID != nil {
+ qrCompanyProductID = *o.CompanyProductID
+ }
+ qCompanyProductID := qrCompanyProductID
+ if qCompanyProductID != "" {
+
+ if err := r.SetQueryParam("companyProductId", qCompanyProductID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/company_products/get_company_products_responses.go b/api/sfgate/sfgate_client/company_products/get_company_products_responses.go
new file mode 100644
index 0000000..d9159f0
--- /dev/null
+++ b/api/sfgate/sfgate_client/company_products/get_company_products_responses.go
@@ -0,0 +1,323 @@
+// 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 company_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// GetCompanyProductsReader is a Reader for the GetCompanyProducts structure.
+type GetCompanyProductsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetCompanyProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetCompanyProductsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetCompanyProductsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetCompanyProductsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetCompanyProductsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewGetCompanyProductsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetCompanyProductsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewGetCompanyProductsOK creates a GetCompanyProductsOK with default headers values
+func NewGetCompanyProductsOK() *GetCompanyProductsOK {
+ return &GetCompanyProductsOK{}
+}
+
+/* GetCompanyProductsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with an array of CompanyProduct objects
+*/
+type GetCompanyProductsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *sfgate_models.CompanyProductResponse
+}
+
+func (o *GetCompanyProductsOK) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsOK %+v", 200, o.Payload)
+}
+func (o *GetCompanyProductsOK) GetPayload() *sfgate_models.CompanyProductResponse {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(sfgate_models.CompanyProductResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetCompanyProductsUnauthorized creates a GetCompanyProductsUnauthorized with default headers values
+func NewGetCompanyProductsUnauthorized() *GetCompanyProductsUnauthorized {
+ return &GetCompanyProductsUnauthorized{}
+}
+
+/* GetCompanyProductsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type GetCompanyProductsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetCompanyProductsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsUnauthorized %+v", 401, o.Payload)
+}
+func (o *GetCompanyProductsUnauthorized) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetCompanyProductsForbidden creates a GetCompanyProductsForbidden with default headers values
+func NewGetCompanyProductsForbidden() *GetCompanyProductsForbidden {
+ return &GetCompanyProductsForbidden{}
+}
+
+/* GetCompanyProductsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type GetCompanyProductsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetCompanyProductsForbidden) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsForbidden %+v", 403, o.Payload)
+}
+func (o *GetCompanyProductsForbidden) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetCompanyProductsNotFound creates a GetCompanyProductsNotFound with default headers values
+func NewGetCompanyProductsNotFound() *GetCompanyProductsNotFound {
+ return &GetCompanyProductsNotFound{}
+}
+
+/* GetCompanyProductsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type GetCompanyProductsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetCompanyProductsNotFound) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsNotFound %+v", 404, o.Payload)
+}
+func (o *GetCompanyProductsNotFound) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetCompanyProductsUnprocessableEntity creates a GetCompanyProductsUnprocessableEntity with default headers values
+func NewGetCompanyProductsUnprocessableEntity() *GetCompanyProductsUnprocessableEntity {
+ return &GetCompanyProductsUnprocessableEntity{}
+}
+
+/* GetCompanyProductsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type GetCompanyProductsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetCompanyProductsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *GetCompanyProductsUnprocessableEntity) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetCompanyProductsInternalServerError creates a GetCompanyProductsInternalServerError with default headers values
+func NewGetCompanyProductsInternalServerError() *GetCompanyProductsInternalServerError {
+ return &GetCompanyProductsInternalServerError{}
+}
+
+/* GetCompanyProductsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type GetCompanyProductsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetCompanyProductsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsInternalServerError %+v", 500, o.Payload)
+}
+func (o *GetCompanyProductsInternalServerError) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetCompanyProductsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/company_products/post_company_products_parameters.go b/api/sfgate/sfgate_client/company_products/post_company_products_parameters.go
new file mode 100644
index 0000000..40ec733
--- /dev/null
+++ b/api/sfgate/sfgate_client/company_products/post_company_products_parameters.go
@@ -0,0 +1,155 @@
+// 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 company_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// NewPostCompanyProductsParams creates a new PostCompanyProductsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewPostCompanyProductsParams() *PostCompanyProductsParams {
+ return &PostCompanyProductsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewPostCompanyProductsParamsWithTimeout creates a new PostCompanyProductsParams object
+// with the ability to set a timeout on a request.
+func NewPostCompanyProductsParamsWithTimeout(timeout time.Duration) *PostCompanyProductsParams {
+ return &PostCompanyProductsParams{
+ timeout: timeout,
+ }
+}
+
+// NewPostCompanyProductsParamsWithContext creates a new PostCompanyProductsParams object
+// with the ability to set a context for a request.
+func NewPostCompanyProductsParamsWithContext(ctx context.Context) *PostCompanyProductsParams {
+ return &PostCompanyProductsParams{
+ Context: ctx,
+ }
+}
+
+// NewPostCompanyProductsParamsWithHTTPClient creates a new PostCompanyProductsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewPostCompanyProductsParamsWithHTTPClient(client *http.Client) *PostCompanyProductsParams {
+ return &PostCompanyProductsParams{
+ HTTPClient: client,
+ }
+}
+
+/* PostCompanyProductsParams contains all the parameters to send to the API endpoint
+ for the post company products operation.
+
+ Typically these are written to a http.Request.
+*/
+type PostCompanyProductsParams struct {
+
+ /* ContactRequest.
+
+ An array of new Contact records
+ */
+ ContactRequest *sfgate_models.CompanyProductRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the post company products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostCompanyProductsParams) WithDefaults() *PostCompanyProductsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the post company products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostCompanyProductsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the post company products params
+func (o *PostCompanyProductsParams) WithTimeout(timeout time.Duration) *PostCompanyProductsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the post company products params
+func (o *PostCompanyProductsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the post company products params
+func (o *PostCompanyProductsParams) WithContext(ctx context.Context) *PostCompanyProductsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the post company products params
+func (o *PostCompanyProductsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the post company products params
+func (o *PostCompanyProductsParams) WithHTTPClient(client *http.Client) *PostCompanyProductsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the post company products params
+func (o *PostCompanyProductsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithContactRequest adds the contactRequest to the post company products params
+func (o *PostCompanyProductsParams) WithContactRequest(contactRequest *sfgate_models.CompanyProductRequest) *PostCompanyProductsParams {
+ o.SetContactRequest(contactRequest)
+ return o
+}
+
+// SetContactRequest adds the contactRequest to the post company products params
+func (o *PostCompanyProductsParams) SetContactRequest(contactRequest *sfgate_models.CompanyProductRequest) {
+ o.ContactRequest = contactRequest
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *PostCompanyProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.ContactRequest != nil {
+ if err := r.SetBodyParam(o.ContactRequest); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/company_products/post_company_products_responses.go b/api/sfgate/sfgate_client/company_products/post_company_products_responses.go
new file mode 100644
index 0000000..a652a99
--- /dev/null
+++ b/api/sfgate/sfgate_client/company_products/post_company_products_responses.go
@@ -0,0 +1,323 @@
+// 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 company_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// PostCompanyProductsReader is a Reader for the PostCompanyProducts structure.
+type PostCompanyProductsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *PostCompanyProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewPostCompanyProductsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewPostCompanyProductsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewPostCompanyProductsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewPostCompanyProductsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewPostCompanyProductsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewPostCompanyProductsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewPostCompanyProductsOK creates a PostCompanyProductsOK with default headers values
+func NewPostCompanyProductsOK() *PostCompanyProductsOK {
+ return &PostCompanyProductsOK{}
+}
+
+/* PostCompanyProductsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with an array of CompanyProduct objects
+*/
+type PostCompanyProductsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *sfgate_models.CompanyProductResponse
+}
+
+func (o *PostCompanyProductsOK) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsOK %+v", 200, o.Payload)
+}
+func (o *PostCompanyProductsOK) GetPayload() *sfgate_models.CompanyProductResponse {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(sfgate_models.CompanyProductResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostCompanyProductsUnauthorized creates a PostCompanyProductsUnauthorized with default headers values
+func NewPostCompanyProductsUnauthorized() *PostCompanyProductsUnauthorized {
+ return &PostCompanyProductsUnauthorized{}
+}
+
+/* PostCompanyProductsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type PostCompanyProductsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostCompanyProductsUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsUnauthorized %+v", 401, o.Payload)
+}
+func (o *PostCompanyProductsUnauthorized) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostCompanyProductsForbidden creates a PostCompanyProductsForbidden with default headers values
+func NewPostCompanyProductsForbidden() *PostCompanyProductsForbidden {
+ return &PostCompanyProductsForbidden{}
+}
+
+/* PostCompanyProductsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type PostCompanyProductsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostCompanyProductsForbidden) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsForbidden %+v", 403, o.Payload)
+}
+func (o *PostCompanyProductsForbidden) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostCompanyProductsNotFound creates a PostCompanyProductsNotFound with default headers values
+func NewPostCompanyProductsNotFound() *PostCompanyProductsNotFound {
+ return &PostCompanyProductsNotFound{}
+}
+
+/* PostCompanyProductsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type PostCompanyProductsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostCompanyProductsNotFound) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsNotFound %+v", 404, o.Payload)
+}
+func (o *PostCompanyProductsNotFound) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostCompanyProductsUnprocessableEntity creates a PostCompanyProductsUnprocessableEntity with default headers values
+func NewPostCompanyProductsUnprocessableEntity() *PostCompanyProductsUnprocessableEntity {
+ return &PostCompanyProductsUnprocessableEntity{}
+}
+
+/* PostCompanyProductsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type PostCompanyProductsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostCompanyProductsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *PostCompanyProductsUnprocessableEntity) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostCompanyProductsInternalServerError creates a PostCompanyProductsInternalServerError with default headers values
+func NewPostCompanyProductsInternalServerError() *PostCompanyProductsInternalServerError {
+ return &PostCompanyProductsInternalServerError{}
+}
+
+/* PostCompanyProductsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type PostCompanyProductsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostCompanyProductsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsInternalServerError %+v", 500, o.Payload)
+}
+func (o *PostCompanyProductsInternalServerError) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostCompanyProductsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/industries/get_industries_parameters.go b/api/sfgate/sfgate_client/industries/get_industries_parameters.go
new file mode 100644
index 0000000..6199d81
--- /dev/null
+++ b/api/sfgate/sfgate_client/industries/get_industries_parameters.go
@@ -0,0 +1,272 @@
+// 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 industries
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetIndustriesParams creates a new GetIndustriesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetIndustriesParams() *GetIndustriesParams {
+ return &GetIndustriesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetIndustriesParamsWithTimeout creates a new GetIndustriesParams object
+// with the ability to set a timeout on a request.
+func NewGetIndustriesParamsWithTimeout(timeout time.Duration) *GetIndustriesParams {
+ return &GetIndustriesParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetIndustriesParamsWithContext creates a new GetIndustriesParams object
+// with the ability to set a context for a request.
+func NewGetIndustriesParamsWithContext(ctx context.Context) *GetIndustriesParams {
+ return &GetIndustriesParams{
+ Context: ctx,
+ }
+}
+
+// NewGetIndustriesParamsWithHTTPClient creates a new GetIndustriesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetIndustriesParamsWithHTTPClient(client *http.Client) *GetIndustriesParams {
+ return &GetIndustriesParams{
+ HTTPClient: client,
+ }
+}
+
+/* GetIndustriesParams contains all the parameters to send to the API endpoint
+ for the get industries operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetIndustriesParams struct {
+
+ /* Active.
+
+ Only retrieve active records?
+ */
+ Active *bool
+
+ /* IndustryID.
+
+ Taxnexus Industry record ID
+ */
+ IndustryID *string
+
+ /* Limit.
+
+ How many objects to return at one time
+
+ Format: int64
+ */
+ Limit *int64
+
+ /* Offset.
+
+ How many objects to skip?
+
+ Format: int64
+ */
+ Offset *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get industries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIndustriesParams) WithDefaults() *GetIndustriesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get industries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIndustriesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get industries params
+func (o *GetIndustriesParams) WithTimeout(timeout time.Duration) *GetIndustriesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get industries params
+func (o *GetIndustriesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get industries params
+func (o *GetIndustriesParams) WithContext(ctx context.Context) *GetIndustriesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get industries params
+func (o *GetIndustriesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get industries params
+func (o *GetIndustriesParams) WithHTTPClient(client *http.Client) *GetIndustriesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get industries params
+func (o *GetIndustriesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithActive adds the active to the get industries params
+func (o *GetIndustriesParams) WithActive(active *bool) *GetIndustriesParams {
+ o.SetActive(active)
+ return o
+}
+
+// SetActive adds the active to the get industries params
+func (o *GetIndustriesParams) SetActive(active *bool) {
+ o.Active = active
+}
+
+// WithIndustryID adds the industryID to the get industries params
+func (o *GetIndustriesParams) WithIndustryID(industryID *string) *GetIndustriesParams {
+ o.SetIndustryID(industryID)
+ return o
+}
+
+// SetIndustryID adds the industryId to the get industries params
+func (o *GetIndustriesParams) SetIndustryID(industryID *string) {
+ o.IndustryID = industryID
+}
+
+// WithLimit adds the limit to the get industries params
+func (o *GetIndustriesParams) WithLimit(limit *int64) *GetIndustriesParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the get industries params
+func (o *GetIndustriesParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the get industries params
+func (o *GetIndustriesParams) WithOffset(offset *int64) *GetIndustriesParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the get industries params
+func (o *GetIndustriesParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetIndustriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Active != nil {
+
+ // query param active
+ var qrActive bool
+
+ if o.Active != nil {
+ qrActive = *o.Active
+ }
+ qActive := swag.FormatBool(qrActive)
+ if qActive != "" {
+
+ if err := r.SetQueryParam("active", qActive); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.IndustryID != nil {
+
+ // query param industryId
+ var qrIndustryID string
+
+ if o.IndustryID != nil {
+ qrIndustryID = *o.IndustryID
+ }
+ qIndustryID := qrIndustryID
+ if qIndustryID != "" {
+
+ if err := r.SetQueryParam("industryId", qIndustryID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/industries/get_industries_responses.go b/api/sfgate/sfgate_client/industries/get_industries_responses.go
new file mode 100644
index 0000000..51c3bb0
--- /dev/null
+++ b/api/sfgate/sfgate_client/industries/get_industries_responses.go
@@ -0,0 +1,323 @@
+// 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 industries
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// GetIndustriesReader is a Reader for the GetIndustries structure.
+type GetIndustriesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetIndustriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetIndustriesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetIndustriesUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetIndustriesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetIndustriesNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewGetIndustriesUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetIndustriesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewGetIndustriesOK creates a GetIndustriesOK with default headers values
+func NewGetIndustriesOK() *GetIndustriesOK {
+ return &GetIndustriesOK{}
+}
+
+/* GetIndustriesOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Industry objects
+*/
+type GetIndustriesOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *sfgate_models.IndustryResponse
+}
+
+func (o *GetIndustriesOK) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesOK %+v", 200, o.Payload)
+}
+func (o *GetIndustriesOK) GetPayload() *sfgate_models.IndustryResponse {
+ return o.Payload
+}
+
+func (o *GetIndustriesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(sfgate_models.IndustryResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustriesUnauthorized creates a GetIndustriesUnauthorized with default headers values
+func NewGetIndustriesUnauthorized() *GetIndustriesUnauthorized {
+ return &GetIndustriesUnauthorized{}
+}
+
+/* GetIndustriesUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type GetIndustriesUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetIndustriesUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesUnauthorized %+v", 401, o.Payload)
+}
+func (o *GetIndustriesUnauthorized) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustriesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustriesForbidden creates a GetIndustriesForbidden with default headers values
+func NewGetIndustriesForbidden() *GetIndustriesForbidden {
+ return &GetIndustriesForbidden{}
+}
+
+/* GetIndustriesForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type GetIndustriesForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetIndustriesForbidden) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesForbidden %+v", 403, o.Payload)
+}
+func (o *GetIndustriesForbidden) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustriesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustriesNotFound creates a GetIndustriesNotFound with default headers values
+func NewGetIndustriesNotFound() *GetIndustriesNotFound {
+ return &GetIndustriesNotFound{}
+}
+
+/* GetIndustriesNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type GetIndustriesNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetIndustriesNotFound) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesNotFound %+v", 404, o.Payload)
+}
+func (o *GetIndustriesNotFound) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustriesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustriesUnprocessableEntity creates a GetIndustriesUnprocessableEntity with default headers values
+func NewGetIndustriesUnprocessableEntity() *GetIndustriesUnprocessableEntity {
+ return &GetIndustriesUnprocessableEntity{}
+}
+
+/* GetIndustriesUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type GetIndustriesUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetIndustriesUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *GetIndustriesUnprocessableEntity) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustriesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustriesInternalServerError creates a GetIndustriesInternalServerError with default headers values
+func NewGetIndustriesInternalServerError() *GetIndustriesInternalServerError {
+ return &GetIndustriesInternalServerError{}
+}
+
+/* GetIndustriesInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type GetIndustriesInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetIndustriesInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /industries][%d] getIndustriesInternalServerError %+v", 500, o.Payload)
+}
+func (o *GetIndustriesInternalServerError) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustriesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/industries/industries_client.go b/api/sfgate/sfgate_client/industries/industries_client.go
new file mode 100644
index 0000000..16d6c2a
--- /dev/null
+++ b/api/sfgate/sfgate_client/industries/industries_client.go
@@ -0,0 +1,129 @@
+// 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 industries
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new industries API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for industries API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetIndustries(params *GetIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustriesOK, error)
+
+ PostIndustries(params *PostIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustriesOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ GetIndustries gets a list of industries
+
+ Return a list of all available Industries
+*/
+func (a *Client) GetIndustries(params *GetIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustriesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetIndustriesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "getIndustries",
+ Method: "GET",
+ PathPattern: "/industries",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetIndustriesReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetIndustriesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for getIndustries: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ PostIndustries adds a new industry to taxnexus
+
+ Industry record to be added
+*/
+func (a *Client) PostIndustries(params *PostIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustriesOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewPostIndustriesParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "postIndustries",
+ Method: "POST",
+ PathPattern: "/industries",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &PostIndustriesReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*PostIndustriesOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for postIndustries: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/api/sfgate/sfgate_client/industries/post_industries_parameters.go b/api/sfgate/sfgate_client/industries/post_industries_parameters.go
new file mode 100644
index 0000000..684ad76
--- /dev/null
+++ b/api/sfgate/sfgate_client/industries/post_industries_parameters.go
@@ -0,0 +1,155 @@
+// 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 industries
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// NewPostIndustriesParams creates a new PostIndustriesParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewPostIndustriesParams() *PostIndustriesParams {
+ return &PostIndustriesParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewPostIndustriesParamsWithTimeout creates a new PostIndustriesParams object
+// with the ability to set a timeout on a request.
+func NewPostIndustriesParamsWithTimeout(timeout time.Duration) *PostIndustriesParams {
+ return &PostIndustriesParams{
+ timeout: timeout,
+ }
+}
+
+// NewPostIndustriesParamsWithContext creates a new PostIndustriesParams object
+// with the ability to set a context for a request.
+func NewPostIndustriesParamsWithContext(ctx context.Context) *PostIndustriesParams {
+ return &PostIndustriesParams{
+ Context: ctx,
+ }
+}
+
+// NewPostIndustriesParamsWithHTTPClient creates a new PostIndustriesParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewPostIndustriesParamsWithHTTPClient(client *http.Client) *PostIndustriesParams {
+ return &PostIndustriesParams{
+ HTTPClient: client,
+ }
+}
+
+/* PostIndustriesParams contains all the parameters to send to the API endpoint
+ for the post industries operation.
+
+ Typically these are written to a http.Request.
+*/
+type PostIndustriesParams struct {
+
+ /* IndustryRequest.
+
+ An array of new Industry records
+ */
+ IndustryRequest *sfgate_models.IndustryRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the post industries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostIndustriesParams) WithDefaults() *PostIndustriesParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the post industries params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostIndustriesParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the post industries params
+func (o *PostIndustriesParams) WithTimeout(timeout time.Duration) *PostIndustriesParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the post industries params
+func (o *PostIndustriesParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the post industries params
+func (o *PostIndustriesParams) WithContext(ctx context.Context) *PostIndustriesParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the post industries params
+func (o *PostIndustriesParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the post industries params
+func (o *PostIndustriesParams) WithHTTPClient(client *http.Client) *PostIndustriesParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the post industries params
+func (o *PostIndustriesParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIndustryRequest adds the industryRequest to the post industries params
+func (o *PostIndustriesParams) WithIndustryRequest(industryRequest *sfgate_models.IndustryRequest) *PostIndustriesParams {
+ o.SetIndustryRequest(industryRequest)
+ return o
+}
+
+// SetIndustryRequest adds the industryRequest to the post industries params
+func (o *PostIndustriesParams) SetIndustryRequest(industryRequest *sfgate_models.IndustryRequest) {
+ o.IndustryRequest = industryRequest
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *PostIndustriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.IndustryRequest != nil {
+ if err := r.SetBodyParam(o.IndustryRequest); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/industries/post_industries_responses.go b/api/sfgate/sfgate_client/industries/post_industries_responses.go
new file mode 100644
index 0000000..4da8a6f
--- /dev/null
+++ b/api/sfgate/sfgate_client/industries/post_industries_responses.go
@@ -0,0 +1,323 @@
+// 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 industries
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// PostIndustriesReader is a Reader for the PostIndustries structure.
+type PostIndustriesReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *PostIndustriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewPostIndustriesOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewPostIndustriesUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewPostIndustriesForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewPostIndustriesNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewPostIndustriesUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewPostIndustriesInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewPostIndustriesOK creates a PostIndustriesOK with default headers values
+func NewPostIndustriesOK() *PostIndustriesOK {
+ return &PostIndustriesOK{}
+}
+
+/* PostIndustriesOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Industry objects
+*/
+type PostIndustriesOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *sfgate_models.IndustryResponse
+}
+
+func (o *PostIndustriesOK) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesOK %+v", 200, o.Payload)
+}
+func (o *PostIndustriesOK) GetPayload() *sfgate_models.IndustryResponse {
+ return o.Payload
+}
+
+func (o *PostIndustriesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(sfgate_models.IndustryResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustriesUnauthorized creates a PostIndustriesUnauthorized with default headers values
+func NewPostIndustriesUnauthorized() *PostIndustriesUnauthorized {
+ return &PostIndustriesUnauthorized{}
+}
+
+/* PostIndustriesUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type PostIndustriesUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostIndustriesUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesUnauthorized %+v", 401, o.Payload)
+}
+func (o *PostIndustriesUnauthorized) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustriesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustriesForbidden creates a PostIndustriesForbidden with default headers values
+func NewPostIndustriesForbidden() *PostIndustriesForbidden {
+ return &PostIndustriesForbidden{}
+}
+
+/* PostIndustriesForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type PostIndustriesForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostIndustriesForbidden) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesForbidden %+v", 403, o.Payload)
+}
+func (o *PostIndustriesForbidden) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustriesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustriesNotFound creates a PostIndustriesNotFound with default headers values
+func NewPostIndustriesNotFound() *PostIndustriesNotFound {
+ return &PostIndustriesNotFound{}
+}
+
+/* PostIndustriesNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type PostIndustriesNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostIndustriesNotFound) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesNotFound %+v", 404, o.Payload)
+}
+func (o *PostIndustriesNotFound) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustriesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustriesUnprocessableEntity creates a PostIndustriesUnprocessableEntity with default headers values
+func NewPostIndustriesUnprocessableEntity() *PostIndustriesUnprocessableEntity {
+ return &PostIndustriesUnprocessableEntity{}
+}
+
+/* PostIndustriesUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type PostIndustriesUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostIndustriesUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *PostIndustriesUnprocessableEntity) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustriesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustriesInternalServerError creates a PostIndustriesInternalServerError with default headers values
+func NewPostIndustriesInternalServerError() *PostIndustriesInternalServerError {
+ return &PostIndustriesInternalServerError{}
+}
+
+/* PostIndustriesInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type PostIndustriesInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostIndustriesInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /industries][%d] postIndustriesInternalServerError %+v", 500, o.Payload)
+}
+func (o *PostIndustriesInternalServerError) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustriesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/industry_products/industry_products_client.go b/api/sfgate/sfgate_client/industry_products/industry_products_client.go
new file mode 100644
index 0000000..d19a4cb
--- /dev/null
+++ b/api/sfgate/sfgate_client/industry_products/industry_products_client.go
@@ -0,0 +1,86 @@
+// 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 industry_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new industry products API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for industry products API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ PostIndustryproducts(params *PostIndustryproductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustryproductsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ PostIndustryproducts adds a new industryproduct to taxnexus
+
+ Industry record to be added
+*/
+func (a *Client) PostIndustryproducts(params *PostIndustryproductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustryproductsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewPostIndustryproductsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "postIndustryproducts",
+ Method: "POST",
+ PathPattern: "/industryproducts",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &PostIndustryproductsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*PostIndustryproductsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for postIndustryproducts: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/api/sfgate/sfgate_client/industry_products/post_industryproducts_parameters.go b/api/sfgate/sfgate_client/industry_products/post_industryproducts_parameters.go
new file mode 100644
index 0000000..e89598b
--- /dev/null
+++ b/api/sfgate/sfgate_client/industry_products/post_industryproducts_parameters.go
@@ -0,0 +1,155 @@
+// 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 industry_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// NewPostIndustryproductsParams creates a new PostIndustryproductsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewPostIndustryproductsParams() *PostIndustryproductsParams {
+ return &PostIndustryproductsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewPostIndustryproductsParamsWithTimeout creates a new PostIndustryproductsParams object
+// with the ability to set a timeout on a request.
+func NewPostIndustryproductsParamsWithTimeout(timeout time.Duration) *PostIndustryproductsParams {
+ return &PostIndustryproductsParams{
+ timeout: timeout,
+ }
+}
+
+// NewPostIndustryproductsParamsWithContext creates a new PostIndustryproductsParams object
+// with the ability to set a context for a request.
+func NewPostIndustryproductsParamsWithContext(ctx context.Context) *PostIndustryproductsParams {
+ return &PostIndustryproductsParams{
+ Context: ctx,
+ }
+}
+
+// NewPostIndustryproductsParamsWithHTTPClient creates a new PostIndustryproductsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewPostIndustryproductsParamsWithHTTPClient(client *http.Client) *PostIndustryproductsParams {
+ return &PostIndustryproductsParams{
+ HTTPClient: client,
+ }
+}
+
+/* PostIndustryproductsParams contains all the parameters to send to the API endpoint
+ for the post industryproducts operation.
+
+ Typically these are written to a http.Request.
+*/
+type PostIndustryproductsParams struct {
+
+ /* IndustryRequest.
+
+ An array of new Industry records
+ */
+ IndustryRequest *sfgate_models.IndustryProductRequest
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the post industryproducts params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostIndustryproductsParams) WithDefaults() *PostIndustryproductsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the post industryproducts params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *PostIndustryproductsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the post industryproducts params
+func (o *PostIndustryproductsParams) WithTimeout(timeout time.Duration) *PostIndustryproductsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the post industryproducts params
+func (o *PostIndustryproductsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the post industryproducts params
+func (o *PostIndustryproductsParams) WithContext(ctx context.Context) *PostIndustryproductsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the post industryproducts params
+func (o *PostIndustryproductsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the post industryproducts params
+func (o *PostIndustryproductsParams) WithHTTPClient(client *http.Client) *PostIndustryproductsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the post industryproducts params
+func (o *PostIndustryproductsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIndustryRequest adds the industryRequest to the post industryproducts params
+func (o *PostIndustryproductsParams) WithIndustryRequest(industryRequest *sfgate_models.IndustryProductRequest) *PostIndustryproductsParams {
+ o.SetIndustryRequest(industryRequest)
+ return o
+}
+
+// SetIndustryRequest adds the industryRequest to the post industryproducts params
+func (o *PostIndustryproductsParams) SetIndustryRequest(industryRequest *sfgate_models.IndustryProductRequest) {
+ o.IndustryRequest = industryRequest
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *PostIndustryproductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.IndustryRequest != nil {
+ if err := r.SetBodyParam(o.IndustryRequest); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go b/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go
new file mode 100644
index 0000000..1882d0e
--- /dev/null
+++ b/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go
@@ -0,0 +1,323 @@
+// 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 industry_products
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// PostIndustryproductsReader is a Reader for the PostIndustryproducts structure.
+type PostIndustryproductsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *PostIndustryproductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewPostIndustryproductsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewPostIndustryproductsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewPostIndustryproductsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewPostIndustryproductsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewPostIndustryproductsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewPostIndustryproductsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewPostIndustryproductsOK creates a PostIndustryproductsOK with default headers values
+func NewPostIndustryproductsOK() *PostIndustryproductsOK {
+ return &PostIndustryproductsOK{}
+}
+
+/* PostIndustryproductsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Industry objects
+*/
+type PostIndustryproductsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *sfgate_models.IndustryProductResponse
+}
+
+func (o *PostIndustryproductsOK) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsOK %+v", 200, o.Payload)
+}
+func (o *PostIndustryproductsOK) GetPayload() *sfgate_models.IndustryProductResponse {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(sfgate_models.IndustryProductResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustryproductsUnauthorized creates a PostIndustryproductsUnauthorized with default headers values
+func NewPostIndustryproductsUnauthorized() *PostIndustryproductsUnauthorized {
+ return &PostIndustryproductsUnauthorized{}
+}
+
+/* PostIndustryproductsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type PostIndustryproductsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostIndustryproductsUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsUnauthorized %+v", 401, o.Payload)
+}
+func (o *PostIndustryproductsUnauthorized) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustryproductsForbidden creates a PostIndustryproductsForbidden with default headers values
+func NewPostIndustryproductsForbidden() *PostIndustryproductsForbidden {
+ return &PostIndustryproductsForbidden{}
+}
+
+/* PostIndustryproductsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type PostIndustryproductsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostIndustryproductsForbidden) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsForbidden %+v", 403, o.Payload)
+}
+func (o *PostIndustryproductsForbidden) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustryproductsNotFound creates a PostIndustryproductsNotFound with default headers values
+func NewPostIndustryproductsNotFound() *PostIndustryproductsNotFound {
+ return &PostIndustryproductsNotFound{}
+}
+
+/* PostIndustryproductsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type PostIndustryproductsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostIndustryproductsNotFound) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsNotFound %+v", 404, o.Payload)
+}
+func (o *PostIndustryproductsNotFound) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustryproductsUnprocessableEntity creates a PostIndustryproductsUnprocessableEntity with default headers values
+func NewPostIndustryproductsUnprocessableEntity() *PostIndustryproductsUnprocessableEntity {
+ return &PostIndustryproductsUnprocessableEntity{}
+}
+
+/* PostIndustryproductsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type PostIndustryproductsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostIndustryproductsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *PostIndustryproductsUnprocessableEntity) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewPostIndustryproductsInternalServerError creates a PostIndustryproductsInternalServerError with default headers values
+func NewPostIndustryproductsInternalServerError() *PostIndustryproductsInternalServerError {
+ return &PostIndustryproductsInternalServerError{}
+}
+
+/* PostIndustryproductsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type PostIndustryproductsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *PostIndustryproductsInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsInternalServerError %+v", 500, o.Payload)
+}
+func (o *PostIndustryproductsInternalServerError) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *PostIndustryproductsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go b/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go
new file mode 100644
index 0000000..dcdd2cc
--- /dev/null
+++ b/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go
@@ -0,0 +1,272 @@
+// 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 industryproducts
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewGetIndustryProductsParams creates a new GetIndustryProductsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetIndustryProductsParams() *GetIndustryProductsParams {
+ return &GetIndustryProductsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetIndustryProductsParamsWithTimeout creates a new GetIndustryProductsParams object
+// with the ability to set a timeout on a request.
+func NewGetIndustryProductsParamsWithTimeout(timeout time.Duration) *GetIndustryProductsParams {
+ return &GetIndustryProductsParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetIndustryProductsParamsWithContext creates a new GetIndustryProductsParams object
+// with the ability to set a context for a request.
+func NewGetIndustryProductsParamsWithContext(ctx context.Context) *GetIndustryProductsParams {
+ return &GetIndustryProductsParams{
+ Context: ctx,
+ }
+}
+
+// NewGetIndustryProductsParamsWithHTTPClient creates a new GetIndustryProductsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetIndustryProductsParamsWithHTTPClient(client *http.Client) *GetIndustryProductsParams {
+ return &GetIndustryProductsParams{
+ HTTPClient: client,
+ }
+}
+
+/* GetIndustryProductsParams contains all the parameters to send to the API endpoint
+ for the get industry products operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetIndustryProductsParams struct {
+
+ /* Active.
+
+ Only retrieve active records?
+ */
+ Active *bool
+
+ /* IndustryProductID.
+
+ Taxnexus IndustryProduct record ID
+ */
+ IndustryProductID *string
+
+ /* Limit.
+
+ How many objects to return at one time
+
+ Format: int64
+ */
+ Limit *int64
+
+ /* Offset.
+
+ How many objects to skip?
+
+ Format: int64
+ */
+ Offset *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get industry products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIndustryProductsParams) WithDefaults() *GetIndustryProductsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get industry products params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetIndustryProductsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get industry products params
+func (o *GetIndustryProductsParams) WithTimeout(timeout time.Duration) *GetIndustryProductsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get industry products params
+func (o *GetIndustryProductsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get industry products params
+func (o *GetIndustryProductsParams) WithContext(ctx context.Context) *GetIndustryProductsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get industry products params
+func (o *GetIndustryProductsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get industry products params
+func (o *GetIndustryProductsParams) WithHTTPClient(client *http.Client) *GetIndustryProductsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get industry products params
+func (o *GetIndustryProductsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithActive adds the active to the get industry products params
+func (o *GetIndustryProductsParams) WithActive(active *bool) *GetIndustryProductsParams {
+ o.SetActive(active)
+ return o
+}
+
+// SetActive adds the active to the get industry products params
+func (o *GetIndustryProductsParams) SetActive(active *bool) {
+ o.Active = active
+}
+
+// WithIndustryProductID adds the industryProductID to the get industry products params
+func (o *GetIndustryProductsParams) WithIndustryProductID(industryProductID *string) *GetIndustryProductsParams {
+ o.SetIndustryProductID(industryProductID)
+ return o
+}
+
+// SetIndustryProductID adds the industryProductId to the get industry products params
+func (o *GetIndustryProductsParams) SetIndustryProductID(industryProductID *string) {
+ o.IndustryProductID = industryProductID
+}
+
+// WithLimit adds the limit to the get industry products params
+func (o *GetIndustryProductsParams) WithLimit(limit *int64) *GetIndustryProductsParams {
+ o.SetLimit(limit)
+ return o
+}
+
+// SetLimit adds the limit to the get industry products params
+func (o *GetIndustryProductsParams) SetLimit(limit *int64) {
+ o.Limit = limit
+}
+
+// WithOffset adds the offset to the get industry products params
+func (o *GetIndustryProductsParams) WithOffset(offset *int64) *GetIndustryProductsParams {
+ o.SetOffset(offset)
+ return o
+}
+
+// SetOffset adds the offset to the get industry products params
+func (o *GetIndustryProductsParams) SetOffset(offset *int64) {
+ o.Offset = offset
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetIndustryProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Active != nil {
+
+ // query param active
+ var qrActive bool
+
+ if o.Active != nil {
+ qrActive = *o.Active
+ }
+ qActive := swag.FormatBool(qrActive)
+ if qActive != "" {
+
+ if err := r.SetQueryParam("active", qActive); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.IndustryProductID != nil {
+
+ // query param industryProductId
+ var qrIndustryProductID string
+
+ if o.IndustryProductID != nil {
+ qrIndustryProductID = *o.IndustryProductID
+ }
+ qIndustryProductID := qrIndustryProductID
+ if qIndustryProductID != "" {
+
+ if err := r.SetQueryParam("industryProductId", qIndustryProductID); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Limit != nil {
+
+ // query param limit
+ var qrLimit int64
+
+ if o.Limit != nil {
+ qrLimit = *o.Limit
+ }
+ qLimit := swag.FormatInt64(qrLimit)
+ if qLimit != "" {
+
+ if err := r.SetQueryParam("limit", qLimit); err != nil {
+ return err
+ }
+ }
+ }
+
+ if o.Offset != nil {
+
+ // query param offset
+ var qrOffset int64
+
+ if o.Offset != nil {
+ qrOffset = *o.Offset
+ }
+ qOffset := swag.FormatInt64(qrOffset)
+ if qOffset != "" {
+
+ if err := r.SetQueryParam("offset", qOffset); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go b/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go
new file mode 100644
index 0000000..8fafeab
--- /dev/null
+++ b/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go
@@ -0,0 +1,323 @@
+// 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 industryproducts
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models"
+)
+
+// GetIndustryProductsReader is a Reader for the GetIndustryProducts structure.
+type GetIndustryProductsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetIndustryProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetIndustryProductsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetIndustryProductsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetIndustryProductsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetIndustryProductsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewGetIndustryProductsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetIndustryProductsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
+ }
+}
+
+// NewGetIndustryProductsOK creates a GetIndustryProductsOK with default headers values
+func NewGetIndustryProductsOK() *GetIndustryProductsOK {
+ return &GetIndustryProductsOK{}
+}
+
+/* GetIndustryProductsOK describes a response with status code 200, with default header values.
+
+Taxnexus Response with Industry objects
+*/
+type GetIndustryProductsOK struct {
+ AccessControlAllowOrigin string
+ CacheControl string
+
+ Payload *sfgate_models.IndustryProductResponse
+}
+
+func (o *GetIndustryProductsOK) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsOK %+v", 200, o.Payload)
+}
+func (o *GetIndustryProductsOK) GetPayload() *sfgate_models.IndustryProductResponse {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ // hydrates response header Cache-Control
+ hdrCacheControl := response.GetHeader("Cache-Control")
+
+ if hdrCacheControl != "" {
+ o.CacheControl = hdrCacheControl
+ }
+
+ o.Payload = new(sfgate_models.IndustryProductResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustryProductsUnauthorized creates a GetIndustryProductsUnauthorized with default headers values
+func NewGetIndustryProductsUnauthorized() *GetIndustryProductsUnauthorized {
+ return &GetIndustryProductsUnauthorized{}
+}
+
+/* GetIndustryProductsUnauthorized describes a response with status code 401, with default header values.
+
+Access unauthorized, invalid API-KEY was used
+*/
+type GetIndustryProductsUnauthorized struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetIndustryProductsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsUnauthorized %+v", 401, o.Payload)
+}
+func (o *GetIndustryProductsUnauthorized) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustryProductsForbidden creates a GetIndustryProductsForbidden with default headers values
+func NewGetIndustryProductsForbidden() *GetIndustryProductsForbidden {
+ return &GetIndustryProductsForbidden{}
+}
+
+/* GetIndustryProductsForbidden describes a response with status code 403, with default header values.
+
+Access forbidden, account lacks access
+*/
+type GetIndustryProductsForbidden struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetIndustryProductsForbidden) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsForbidden %+v", 403, o.Payload)
+}
+func (o *GetIndustryProductsForbidden) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustryProductsNotFound creates a GetIndustryProductsNotFound with default headers values
+func NewGetIndustryProductsNotFound() *GetIndustryProductsNotFound {
+ return &GetIndustryProductsNotFound{}
+}
+
+/* GetIndustryProductsNotFound describes a response with status code 404, with default header values.
+
+Resource was not found
+*/
+type GetIndustryProductsNotFound struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetIndustryProductsNotFound) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsNotFound %+v", 404, o.Payload)
+}
+func (o *GetIndustryProductsNotFound) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustryProductsUnprocessableEntity creates a GetIndustryProductsUnprocessableEntity with default headers values
+func NewGetIndustryProductsUnprocessableEntity() *GetIndustryProductsUnprocessableEntity {
+ return &GetIndustryProductsUnprocessableEntity{}
+}
+
+/* GetIndustryProductsUnprocessableEntity describes a response with status code 422, with default header values.
+
+Unprocessable Entity, likely a bad parameter
+*/
+type GetIndustryProductsUnprocessableEntity struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetIndustryProductsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsUnprocessableEntity %+v", 422, o.Payload)
+}
+func (o *GetIndustryProductsUnprocessableEntity) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetIndustryProductsInternalServerError creates a GetIndustryProductsInternalServerError with default headers values
+func NewGetIndustryProductsInternalServerError() *GetIndustryProductsInternalServerError {
+ return &GetIndustryProductsInternalServerError{}
+}
+
+/* GetIndustryProductsInternalServerError describes a response with status code 500, with default header values.
+
+Server Internal Error
+*/
+type GetIndustryProductsInternalServerError struct {
+ AccessControlAllowOrigin string
+
+ Payload *sfgate_models.Error
+}
+
+func (o *GetIndustryProductsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsInternalServerError %+v", 500, o.Payload)
+}
+func (o *GetIndustryProductsInternalServerError) GetPayload() *sfgate_models.Error {
+ return o.Payload
+}
+
+func (o *GetIndustryProductsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // hydrates response header Access-Control-Allow-Origin
+ hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
+
+ if hdrAccessControlAllowOrigin != "" {
+ o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
+ }
+
+ o.Payload = new(sfgate_models.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go b/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go
new file mode 100644
index 0000000..9ec2dfc
--- /dev/null
+++ b/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go
@@ -0,0 +1,86 @@
+// 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 industryproducts
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new industryproducts API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for industryproducts API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetIndustryProducts(params *GetIndustryProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustryProductsOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ GetIndustryProducts gets a list of industryproducts
+
+ Return a list of all available IndustryProducts
+*/
+func (a *Client) GetIndustryProducts(params *GetIndustryProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustryProductsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetIndustryProductsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "getIndustryProducts",
+ Method: "GET",
+ PathPattern: "/industryproducts",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetIndustryProductsReader{formats: a.formats},
+ AuthInfo: authInfo,
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetIndustryProductsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for getIndustryProducts: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/api/sfgate/sfgate_client/sfgate_client.go b/api/sfgate/sfgate_client/sfgate_client.go
index b7bd804..c46d71d 100644
--- a/api/sfgate/sfgate_client/sfgate_client.go
+++ b/api/sfgate/sfgate_client/sfgate_client.go
@@ -15,10 +15,15 @@ import (
"github.com/go-openapi/strfmt"
"code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/accounts"
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/assets"
"code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/clusters"
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/company_products"
"code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/contacts"
"code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/contracts"
"code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/databases"
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/industries"
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/industry_products"
+ "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/industryproducts"
"code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/roles"
"code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/templates"
"code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/tenants"
@@ -68,10 +73,15 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *Sfgate {
cli := new(Sfgate)
cli.Transport = transport
cli.Accounts = accounts.New(transport, formats)
+ cli.Assets = assets.New(transport, formats)
cli.Clusters = clusters.New(transport, formats)
+ cli.CompanyProducts = company_products.New(transport, formats)
cli.Contacts = contacts.New(transport, formats)
cli.Contracts = contracts.New(transport, formats)
cli.Databases = databases.New(transport, formats)
+ cli.Industries = industries.New(transport, formats)
+ cli.IndustryProducts = industry_products.New(transport, formats)
+ cli.Industryproducts = industryproducts.New(transport, formats)
cli.Roles = roles.New(transport, formats)
cli.Templates = templates.New(transport, formats)
cli.Tenants = tenants.New(transport, formats)
@@ -122,14 +132,24 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
type Sfgate struct {
Accounts accounts.ClientService
+ Assets assets.ClientService
+
Clusters clusters.ClientService
+ CompanyProducts company_products.ClientService
+
Contacts contacts.ClientService
Contracts contracts.ClientService
Databases databases.ClientService
+ Industries industries.ClientService
+
+ IndustryProducts industry_products.ClientService
+
+ Industryproducts industryproducts.ClientService
+
Roles roles.ClientService
Templates templates.ClientService
@@ -145,10 +165,15 @@ type Sfgate struct {
func (c *Sfgate) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
c.Accounts.SetTransport(transport)
+ c.Assets.SetTransport(transport)
c.Clusters.SetTransport(transport)
+ c.CompanyProducts.SetTransport(transport)
c.Contacts.SetTransport(transport)
c.Contracts.SetTransport(transport)
c.Databases.SetTransport(transport)
+ c.Industries.SetTransport(transport)
+ c.IndustryProducts.SetTransport(transport)
+ c.Industryproducts.SetTransport(transport)
c.Roles.SetTransport(transport)
c.Templates.SetTransport(transport)
c.Tenants.SetTransport(transport)
diff --git a/api/sfgate/sfgate_models/account.go b/api/sfgate/sfgate_models/account.go
index 8a18496..35d1aeb 100644
--- a/api/sfgate/sfgate_models/account.go
+++ b/api/sfgate/sfgate_models/account.go
@@ -23,287 +23,162 @@ import (
type Account struct {
// Account Number
- Accountnumber string `json:"accountnumber,omitempty"`
+ AccountNumber string `json:"AccountNumber,omitempty"`
// The marketing orgin of this account
- Accountsource string `json:"accountsource,omitempty"`
-
- // Active
- Active bool `json:"active,omitempty"`
-
- // For tax authorities, this account's administrative level, e.g. Local, County, State or Federal
- Administrativelevel string `json:"administrativelevel,omitempty"`
-
- // Rollup Tax Amount
- Amount float64 `json:"amount,omitempty"`
-
- // Amount Invoiced
- Amountinvoiced float64 `json:"amountinvoiced,omitempty"`
-
- // Amount Paid
- Amountpaid float64 `json:"amountpaid,omitempty"`
+ AccountSource string `json:"AccountSource,omitempty"`
// Annual Revenue Estimate
- Annualrevenue float64 `json:"annualrevenue,omitempty"`
+ AnnualRevenue float64 `json:"AnnualRevenue,omitempty"`
- // Account Balance
- Balance float64 `json:"balance,omitempty"`
-
- // billingaddress
- Billingaddress *Address `json:"billingaddress,omitempty"`
+ // billing address
+ BillingAddress *Address `json:"BillingAddress,omitempty"`
// Contact ID
- Billingcontactid string `json:"billingcontactid,omitempty"`
+ BillingContactID string `json:"BillingContactID,omitempty"`
- // Billing Preference
- Billingpreference string `json:"billingpreference,omitempty"`
+ // Date company closed
+ CloseDate string `json:"CloseDate,omitempty"`
- // businessaddress
- Businessaddress *Address `json:"businessaddress,omitempty"`
+ // cloud revenue total
+ CloudRevenueTotal float64 `json:"CloudRevenueTotal,omitempty"`
- // Is this a cannabis customer?
- Cannabiscustomer bool `json:"cannabiscustomer,omitempty"`
+ // cloud type
+ CloudType string `json:"CloudType,omitempty"`
- // Channel Program Level Name
- Channelprogramlevelname string `json:"channelprogramlevelname,omitempty"`
-
- // Channel Program Name
- Channelprogramname string `json:"channelprogramname,omitempty"`
-
- // Client End Date
- Clientenddate string `json:"clientenddate,omitempty"`
-
- // Client Start Date
- Clientstartdate string `json:"clientstartdate,omitempty"`
-
- // The Company ID of this Account
- Companyid string `json:"companyid,omitempty"`
-
- // The Id of the geo coordinates of this account
- Coordinateid string `json:"coordinateid,omitempty"`
+ // cloud year
+ CloudYear string `json:"CloudYear,omitempty"`
// Created By User ID
- Createdbyid string `json:"createdbyid,omitempty"`
+ CreatedByID string `json:"CreatedByID,omitempty"`
// Created Date
- Createddate string `json:"createddate,omitempty"`
+ CreatedDate string `json:"CreatedDate,omitempty"`
- // Customer ID from source system
- Customerid string `json:"customerid,omitempty"`
-
- // Customer Priority
- Customerpriority string `json:"customerpriority,omitempty"`
-
- // D-n-B Company
- Dandbcompanyid string `json:"dandbcompanyid,omitempty"`
-
- // This Account's 'Doing Business As' name
- Dba string `json:"dba,omitempty"`
-
- // defaultaddress
- Defaultaddress *Address `json:"defaultaddress,omitempty"`
-
- // Default Backend ID
- Defaultbackendid string `json:"defaultbackendid,omitempty"`
-
- // Default Delivery Address Contact ID
- Defaultdeliverycontactid string `json:"defaultdeliverycontactid,omitempty"`
-
- // Default End User Contact ID
- Defaultenduserid string `json:"defaultenduserid,omitempty"`
+ // crunchbase URL
+ CrunchbaseURL string `json:"CrunchbaseURL,omitempty"`
// Description
- Description string `json:"description,omitempty"`
+ Description string `json:"Description,omitempty"`
- // D-U-N-S Number
- Dunsnumber string `json:"dunsnumber,omitempty"`
-
- // EIN
- Ein string `json:"ein,omitempty"`
+ // earnings call
+ EarningsCall string `json:"EarningsCall,omitempty"`
// Main Account Email
- Email string `json:"email,omitempty"`
+ Email string `json:"Email,omitempty"`
- // Enrollment Status
- Enrollmentstatus string `json:"enrollmentstatus,omitempty"`
+ // equity funding
+ EquityFunding float64 `json:"EquityFunding,omitempty"`
+
+ // facebook
+ Facebook string `json:"Facebook,omitempty"`
// Fax
- Fax string `json:"fax,omitempty"`
+ Fax string `json:"Fax,omitempty"`
+
+ // founded date
+ FoundedDate string `json:"FoundedDate,omitempty"`
// Taxnexus Account Id
- ID string `json:"id,omitempty"`
+ ID string `json:"ID,omitempty"`
+
+ // IP o date
+ IPODate string `json:"IPODate,omitempty"`
+
+ // industries
+ Industries string `json:"Industries,omitempty"`
// Industry
- Industry string `json:"industry,omitempty"`
-
- // Customer Portal Account
- Iscustomerportal bool `json:"iscustomerportal,omitempty"`
-
- // Partner Account
- Ispartner bool `json:"ispartner,omitempty"`
-
- // ISP Customer?
- Ispcustomer bool `json:"ispcustomer,omitempty"`
-
- // Data.com Key
- Jigsaw string `json:"jigsaw,omitempty"`
+ Industry string `json:"Industry,omitempty"`
// Last Modified By User ID
- Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
- Lastmodifieddate string `json:"lastmodifieddate,omitempty"`
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
- // MSP Customer?
- Mspcustomer bool `json:"mspcustomer,omitempty"`
+ // linked in
+ LinkedIn string `json:"LinkedIn,omitempty"`
- // NAICS Code
- Naicscode string `json:"naicscode,omitempty"`
+ // location
+ Location string `json:"Location,omitempty"`
- // NAICS Description
- Naicsdesc string `json:"naicsdesc,omitempty"`
+ // market capitalization
+ MarketCapitalization float64 `json:"MarketCapitalization,omitempty"`
// Account Name
- Name string `json:"name,omitempty"`
-
- // Employee Count Estimate
- Numberofemployees int64 `json:"numberofemployees,omitempty"`
+ Name string `json:"Name,omitempty"`
// Number of Locations Estimate
- Numberoflocations int64 `json:"numberoflocations,omitempty"`
+ NumberInvestments int64 `json:"NumberInvestments,omitempty"`
- // Open Charges
- Opencharges float64 `json:"opencharges,omitempty"`
-
- // Vendor Order Contact ID
- Ordercontactid string `json:"ordercontactid,omitempty"`
-
- // Order Email
- Orderemail string `json:"orderemail,omitempty"`
+ // Employee Count Estimate
+ NumberOfEmployees int64 `json:"NumberOfEmployees,omitempty"`
// Account Owner User ID
- Ownerid string `json:"ownerid,omitempty"`
+ OwnerID string `json:"OwnerID,omitempty"`
// Ownership
- Ownership string `json:"ownership,omitempty"`
-
- // Parent Foreign Key
- Parentfk string `json:"parentfk,omitempty"`
+ Ownership string `json:"Ownership,omitempty"`
// Parent Account
- Parentid string `json:"parentid,omitempty"`
+ ParentID string `json:"ParentID,omitempty"`
// Phone
- Phone string `json:"phone,omitempty"`
+ Phone string `json:"Phone,omitempty"`
- // The ID of the Place situs record that applies to this Account
- Placeid string `json:"placeid,omitempty"`
-
- // Tax Preparer Contact ID
- Preparerid string `json:"preparerid,omitempty"`
-
- // Rating
- Rating string `json:"rating,omitempty"`
-
- // Rating Engine identifier
- Ratingengineid string `json:"ratingengineid,omitempty"`
-
- // External Reference ID
- Ref string `json:"ref,omitempty"`
-
- // Rollup Revenue Base
- Revenuebase float64 `json:"revenuebase,omitempty"`
-
- // Rollup Revenue Net
- Revenuenet float64 `json:"revenuenet,omitempty"`
-
- // Rollup Revenue Not Taxable
- Revenuenottaxable float64 `json:"revenuenottaxable,omitempty"`
-
- // shippingaddress
- Shippingaddress *Address `json:"shippingaddress,omitempty"`
-
- // Shipping Census Tract
- Shippingcensustract string `json:"shippingcensustract,omitempty"`
-
- // Shipping Contact ID
- Shippingcontactid string `json:"shippingcontactid,omitempty"`
-
- // Shipping County
- Shippingcounty string `json:"shippingcounty,omitempty"`
+ // publish
+ Publish bool `json:"Publish,omitempty"`
// SIC Code
- Sic string `json:"sic,omitempty"`
+ SIC string `json:"SIC,omitempty"`
// SIC Description
- Sicdesc string `json:"sicdesc,omitempty"`
+ SICDesc string `json:"SICDesc,omitempty"`
+
+ // salesforce first
+ SalesforceFirst bool `json:"SalesforceFirst,omitempty"`
+
+ // shipping address
+ ShippingAddress *Address `json:"ShippingAddress,omitempty"`
+
+ // shipping contact ID
+ ShippingContactID string `json:"ShippingContactID,omitempty"`
// Account Site
- Site string `json:"site,omitempty"`
+ Site string `json:"Site,omitempty"`
- // Account Status
- Status string `json:"status,omitempty"`
-
- // Tax Exemption
- Taxexemption string `json:"taxexemption,omitempty"`
-
- // Rollup Tax On Tax
- Taxontax float64 `json:"taxontax,omitempty"`
-
- // Telecom Customer?
- Telecomcustomer bool `json:"telecomcustomer,omitempty"`
+ // tag line
+ TagLine string `json:"TagLine,omitempty"`
// tenant identifier
- Tenantid string `json:"tenantid,omitempty"`
+ TenantID string `json:"TenantID,omitempty"`
- // Ticker Symbol
- Tickersymbol string `json:"tickersymbol,omitempty"`
+ // ticker symbol
+ TickerSymbol string `json:"TickerSymbol,omitempty"`
- // Tradestyle
- Tradestyle string `json:"tradestyle,omitempty"`
+ // twitter
+ Twitter string `json:"Twitter,omitempty"`
// Type
- Type string `json:"type,omitempty"`
-
- // Unapplied Payments
- Unappliedpayments float64 `json:"unappliedpayments,omitempty"`
-
- // Rollup Unit Base
- Unitbase float64 `json:"unitbase,omitempty"`
-
- // Upsell Opportunity
- Upsellopportunity string `json:"upsellopportunity,omitempty"`
+ Type string `json:"Type,omitempty"`
// Website
- Website string `json:"website,omitempty"`
-
- // WHMCS Client ID
- Whmcsclientid int64 `json:"whmcsclientid,omitempty"`
-
- // Xero Contact ID
- Xerocontactid string `json:"xerocontactid,omitempty"`
+ Website string `json:"Website,omitempty"`
// Year Started
- Yearstarted string `json:"yearstarted,omitempty"`
+ YearStarted string `json:"YearStarted,omitempty"`
}
// Validate validates this account
func (m *Account) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateBillingaddress(formats); err != nil {
+ if err := m.validateBillingAddress(formats); err != nil {
res = append(res, err)
}
- if err := m.validateBusinessaddress(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateDefaultaddress(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateShippingaddress(formats); err != nil {
+ if err := m.validateShippingAddress(formats); err != nil {
res = append(res, err)
}
@@ -313,17 +188,17 @@ func (m *Account) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *Account) validateBillingaddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Billingaddress) { // not required
+func (m *Account) validateBillingAddress(formats strfmt.Registry) error {
+ if swag.IsZero(m.BillingAddress) { // not required
return nil
}
- if m.Billingaddress != nil {
- if err := m.Billingaddress.Validate(formats); err != nil {
+ if m.BillingAddress != nil {
+ if err := m.BillingAddress.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("billingaddress")
+ return ve.ValidateName("BillingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("billingaddress")
+ return ce.ValidateName("BillingAddress")
}
return err
}
@@ -332,55 +207,17 @@ func (m *Account) validateBillingaddress(formats strfmt.Registry) error {
return nil
}
-func (m *Account) validateBusinessaddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Businessaddress) { // not required
+func (m *Account) validateShippingAddress(formats strfmt.Registry) error {
+ if swag.IsZero(m.ShippingAddress) { // not required
return nil
}
- if m.Businessaddress != nil {
- if err := m.Businessaddress.Validate(formats); err != nil {
+ if m.ShippingAddress != nil {
+ if err := m.ShippingAddress.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("businessaddress")
+ return ve.ValidateName("ShippingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("businessaddress")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *Account) validateDefaultaddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Defaultaddress) { // not required
- return nil
- }
-
- if m.Defaultaddress != nil {
- if err := m.Defaultaddress.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("defaultaddress")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("defaultaddress")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *Account) validateShippingaddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Shippingaddress) { // not required
- return nil
- }
-
- if m.Shippingaddress != nil {
- if err := m.Shippingaddress.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("shippingaddress")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("shippingaddress")
+ return ce.ValidateName("ShippingAddress")
}
return err
}
@@ -393,19 +230,11 @@ func (m *Account) validateShippingaddress(formats strfmt.Registry) error {
func (m *Account) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateBillingaddress(ctx, formats); err != nil {
+ if err := m.contextValidateBillingAddress(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateBusinessaddress(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateDefaultaddress(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateShippingaddress(ctx, formats); err != nil {
+ if err := m.contextValidateShippingAddress(ctx, formats); err != nil {
res = append(res, err)
}
@@ -415,14 +244,14 @@ func (m *Account) ContextValidate(ctx context.Context, formats strfmt.Registry)
return nil
}
-func (m *Account) contextValidateBillingaddress(ctx context.Context, formats strfmt.Registry) error {
+func (m *Account) contextValidateBillingAddress(ctx context.Context, formats strfmt.Registry) error {
- if m.Billingaddress != nil {
- if err := m.Billingaddress.ContextValidate(ctx, formats); err != nil {
+ if m.BillingAddress != nil {
+ if err := m.BillingAddress.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("billingaddress")
+ return ve.ValidateName("BillingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("billingaddress")
+ return ce.ValidateName("BillingAddress")
}
return err
}
@@ -431,46 +260,14 @@ func (m *Account) contextValidateBillingaddress(ctx context.Context, formats str
return nil
}
-func (m *Account) contextValidateBusinessaddress(ctx context.Context, formats strfmt.Registry) error {
+func (m *Account) contextValidateShippingAddress(ctx context.Context, formats strfmt.Registry) error {
- if m.Businessaddress != nil {
- if err := m.Businessaddress.ContextValidate(ctx, formats); err != nil {
+ if m.ShippingAddress != nil {
+ if err := m.ShippingAddress.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("businessaddress")
+ return ve.ValidateName("ShippingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("businessaddress")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *Account) contextValidateDefaultaddress(ctx context.Context, formats strfmt.Registry) error {
-
- if m.Defaultaddress != nil {
- if err := m.Defaultaddress.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("defaultaddress")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("defaultaddress")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *Account) contextValidateShippingaddress(ctx context.Context, formats strfmt.Registry) error {
-
- if m.Shippingaddress != nil {
- if err := m.Shippingaddress.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("shippingaddress")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("shippingaddress")
+ return ce.ValidateName("ShippingAddress")
}
return err
}
diff --git a/api/sfgate/sfgate_models/asset.go b/api/sfgate/sfgate_models/asset.go
new file mode 100644
index 0000000..25f6f69
--- /dev/null
+++ b/api/sfgate/sfgate_models/asset.go
@@ -0,0 +1,246 @@
+// 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 sfgate_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"
+)
+
+// Asset asset
+//
+// swagger:model Asset
+type Asset struct {
+
+ // Account
+ AccountID string `json:"AccountID,omitempty"`
+
+ // address
+ Address *Address `json:"Address,omitempty"`
+
+ // Asset Level
+ AssetLevel float64 `json:"AssetLevel,omitempty"`
+
+ // Asset Provided By
+ AssetProvidedByID string `json:"AssetProvidedByID,omitempty"`
+
+ // Asset Serviced By
+ AssetServicedByID string `json:"AssetServicedByID,omitempty"`
+
+ // Company Product
+ CompanyProductID string `json:"CompanyProductID,omitempty"`
+
+ // Consequence Of Failure
+ ConsequenceOfFailure string `json:"ConsequenceOfFailure,omitempty"`
+
+ // Contact
+ ContactID string `json:"ContactID,omitempty"`
+
+ // Created By
+ CreatedByID string `json:"CreatedByID,omitempty"`
+
+ // Created Date
+ CreatedDate string `json:"CreatedDate,omitempty"`
+
+ // Current Amount
+ CurrentAmount float64 `json:"CurrentAmount,omitempty"`
+
+ // Current Lifecycle End Date
+ CurrentLifecycleEndDate string `json:"CurrentLifecycleEndDate,omitempty"`
+
+ // Current Monthly Recurring Revenue
+ CurrentMrr float64 `json:"CurrentMrr,omitempty"`
+
+ // Current Quantity
+ CurrentQuantity float64 `json:"CurrentQuantity,omitempty"`
+
+ // Description
+ Description string `json:"Description,omitempty"`
+
+ // Digital Asset Status
+ DigitalAssetStatus string `json:"DigitalAssetStatus,omitempty"`
+
+ // External Id
+ ExternalIdentifier string `json:"ExternalIdentifier,omitempty"`
+
+ // Has Lifecycle Management
+ HasLifecycleManagement bool `json:"HasLifecycleManagement,omitempty"`
+
+ // Taxnexus Record Id
+ ID string `json:"ID,omitempty"`
+
+ // Install Date
+ InstallDate string `json:"InstallDate,omitempty"`
+
+ // Competitor Asset
+ IsCompetitorProduct bool `json:"IsCompetitorProduct,omitempty"`
+
+ // Internal Asset
+ IsInternal bool `json:"IsInternal,omitempty"`
+
+ // Last Modified By
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
+
+ // Last Modified Date
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
+
+ // Location
+ LocationID string `json:"LocationID,omitempty"`
+
+ // MIME Type
+ MIMEType string `json:"MIMEType,omitempty"`
+
+ // Manufacture Date
+ ManufactureDate string `json:"ManufactureDate,omitempty"`
+
+ // Asset Name
+ Name string `json:"Name,omitempty"`
+
+ // Parent Asset
+ ParentID string `json:"ParentID,omitempty"`
+
+ // Price
+ Price float64 `json:"Price,omitempty"`
+
+ // Product
+ Product2ID string `json:"Product2ID,omitempty"`
+
+ // Product Code
+ ProductCode string `json:"ProductCode,omitempty"`
+
+ // Product Description
+ ProductDescription string `json:"ProductDescription,omitempty"`
+
+ // Product Family
+ ProductFamily string `json:"ProductFamily,omitempty"`
+
+ // Purchase Date
+ PurchaseDate string `json:"PurchaseDate,omitempty"`
+
+ // Quantity
+ Quantity float64 `json:"Quantity,omitempty"`
+
+ // Root Asset
+ RootAssetID string `json:"RootAssetID,omitempty"`
+
+ // Serial Number
+ SerialNumber string `json:"SerialNumber,omitempty"`
+
+ // Status
+ Status string `json:"Status,omitempty"`
+
+ // Status Reason
+ StatusReason string `json:"StatusReason,omitempty"`
+
+ // Product SKU
+ StockKeepingUnit string `json:"StockKeepingUnit,omitempty"`
+
+ // Tenant ID
+ TenantID string `json:"TenantID,omitempty"`
+
+ // Total Lifecycle Amount
+ TotalLifecycleAmount float64 `json:"TotalLifecycleAmount,omitempty"`
+
+ // Type
+ Type string `json:"Type,omitempty"`
+
+ // URL
+ URL string `json:"URL,omitempty"`
+
+ // Unique Identifier
+ UUID string `json:"UUID,omitempty"`
+
+ // Usage End Date
+ UsageEndDate string `json:"UsageEndDate,omitempty"`
+}
+
+// Validate validates this asset
+func (m *Asset) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateAddress(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *Asset) validateAddress(formats strfmt.Registry) error {
+ if swag.IsZero(m.Address) { // not required
+ return nil
+ }
+
+ if m.Address != nil {
+ if err := m.Address.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Address")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Address")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this asset based on the context it is used
+func (m *Asset) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateAddress(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *Asset) contextValidateAddress(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Address != nil {
+ if err := m.Address.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Address")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Address")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *Asset) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *Asset) UnmarshalBinary(b []byte) error {
+ var res Asset
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/asset_request.go b/api/sfgate/sfgate_models/asset_request.go
new file mode 100644
index 0000000..d4db092
--- /dev/null
+++ b/api/sfgate/sfgate_models/asset_request.go
@@ -0,0 +1,120 @@
+// 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 sfgate_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"
+)
+
+// AssetRequest An array of Asset objects with Contacts
+//
+// swagger:model AssetRequest
+type AssetRequest struct {
+
+ // data
+ Data []*Asset `json:"Data"`
+}
+
+// Validate validates this asset request
+func (m *AssetRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *AssetRequest) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this asset request based on the context it is used
+func (m *AssetRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *AssetRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *AssetRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *AssetRequest) UnmarshalBinary(b []byte) error {
+ var res AssetRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/asset_response.go b/api/sfgate/sfgate_models/asset_response.go
new file mode 100644
index 0000000..78a04ec
--- /dev/null
+++ b/api/sfgate/sfgate_models/asset_response.go
@@ -0,0 +1,166 @@
+// 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 sfgate_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"
+)
+
+// AssetResponse An array of Asset objects with Contacts
+//
+// swagger:model AssetResponse
+type AssetResponse struct {
+
+ // data
+ Data []*Asset `json:"Data"`
+
+ // meta
+ Meta *ResponseMeta `json:"Meta,omitempty"`
+}
+
+// Validate validates this asset response
+func (m *AssetResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *AssetResponse) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *AssetResponse) validateMeta(formats strfmt.Registry) error {
+ if swag.IsZero(m.Meta) { // not required
+ return nil
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this asset response based on the context it is used
+func (m *AssetResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *AssetResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *AssetResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *AssetResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *AssetResponse) UnmarshalBinary(b []byte) error {
+ var res AssetResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/company_product.go b/api/sfgate/sfgate_models/company_product.go
new file mode 100644
index 0000000..9e0b5f0
--- /dev/null
+++ b/api/sfgate/sfgate_models/company_product.go
@@ -0,0 +1,81 @@
+// 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 sfgate_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"
+)
+
+// CompanyProduct A software product or service vended by a Company
+//
+// swagger:model CompanyProduct
+type CompanyProduct struct {
+
+ // Taxnexus ID of the Company that owns this Product
+ AccountID string `json:"AccountID,omitempty"`
+
+ // Created By User ID
+ CreatedByID string `json:"CreatedByID,omitempty"`
+
+ // Created Date
+ CreatedDate string `json:"CreatedDate,omitempty"`
+
+ // Description of product
+ Description string `json:"Description,omitempty"`
+
+ // Taxnexus Record Id
+ ID string `json:"ID,omitempty"`
+
+ // Last Modified By User ID
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
+
+ // Last Modified Date
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
+
+ // Product Name
+ Name string `json:"Name,omitempty"`
+
+ // TagLine
+ TagLine string `json:"TagLine,omitempty"`
+
+ // Website
+ URL string `json:"URL,omitempty"`
+}
+
+// Validate validates this company product
+func (m *CompanyProduct) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this company product based on context it is used
+func (m *CompanyProduct) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *CompanyProduct) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *CompanyProduct) UnmarshalBinary(b []byte) error {
+ var res CompanyProduct
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/company_product_request.go b/api/sfgate/sfgate_models/company_product_request.go
new file mode 100644
index 0000000..aea18b0
--- /dev/null
+++ b/api/sfgate/sfgate_models/company_product_request.go
@@ -0,0 +1,171 @@
+// 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 sfgate_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"
+ "github.com/go-openapi/validate"
+)
+
+// CompanyProductRequest company product request
+//
+// swagger:model CompanyProductRequest
+type CompanyProductRequest struct {
+
+ // data
+ // Required: true
+ Data []*CompanyProduct `json:"data"`
+
+ // meta
+ // Required: true
+ Meta *RequestMeta `json:"meta"`
+}
+
+// Validate validates this company product request
+func (m *CompanyProductRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *CompanyProductRequest) validateData(formats strfmt.Registry) error {
+
+ if err := validate.Required("data", "body", m.Data); err != nil {
+ return err
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *CompanyProductRequest) validateMeta(formats strfmt.Registry) error {
+
+ if err := validate.Required("meta", "body", m.Meta); err != nil {
+ return err
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this company product request based on the context it is used
+func (m *CompanyProductRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *CompanyProductRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *CompanyProductRequest) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *CompanyProductRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *CompanyProductRequest) UnmarshalBinary(b []byte) error {
+ var res CompanyProductRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/company_product_response.go b/api/sfgate/sfgate_models/company_product_response.go
new file mode 100644
index 0000000..fda893f
--- /dev/null
+++ b/api/sfgate/sfgate_models/company_product_response.go
@@ -0,0 +1,166 @@
+// 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 sfgate_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"
+)
+
+// CompanyProductResponse company product response
+//
+// swagger:model CompanyProductResponse
+type CompanyProductResponse struct {
+
+ // data
+ Data []*CompanyProduct `json:"data"`
+
+ // meta
+ Meta *ResponseMeta `json:"meta,omitempty"`
+}
+
+// Validate validates this company product response
+func (m *CompanyProductResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *CompanyProductResponse) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *CompanyProductResponse) validateMeta(formats strfmt.Registry) error {
+ if swag.IsZero(m.Meta) { // not required
+ return nil
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this company product response based on the context it is used
+func (m *CompanyProductResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *CompanyProductResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *CompanyProductResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *CompanyProductResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *CompanyProductResponse) UnmarshalBinary(b []byte) error {
+ var res CompanyProductResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/contact.go b/api/sfgate/sfgate_models/contact.go
index fe938c9..8ac6ebb 100644
--- a/api/sfgate/sfgate_models/contact.go
+++ b/api/sfgate/sfgate_models/contact.go
@@ -23,150 +23,126 @@ import (
type Contact struct {
// The primary account ID of this contact
- Accountid string `json:"accountid,omitempty"`
+ AccountID string `json:"AccountID,omitempty"`
// Assistant Name
- Assistantname string `json:"assistantname,omitempty"`
+ AssistantName string `json:"AssistantName,omitempty"`
// Asst. Phone
- Assistantphone string `json:"assistantphone,omitempty"`
+ AssistantPhone string `json:"AssistantPhone,omitempty"`
// Birthdate
- Birthdate string `json:"birthdate,omitempty"`
+ BirthDate string `json:"BirthDate,omitempty"`
// Created By User ID
- Createdbyid string `json:"createdbyid,omitempty"`
+ CreatedByID string `json:"CreatedByID,omitempty"`
// Created Date
- Createddate string `json:"createddate,omitempty"`
+ CreatedDate string `json:"CreatedDate,omitempty"`
// Department
- Department string `json:"department,omitempty"`
+ Department string `json:"Department,omitempty"`
// Description
- Description string `json:"description,omitempty"`
+ Description string `json:"Description,omitempty"`
// Do Not Call?
- Donotcall bool `json:"donotcall,omitempty"`
+ DoNotCall bool `json:"DoNotCall,omitempty"`
// Email address
- Email string `json:"email,omitempty"`
+ Email string `json:"Email,omitempty"`
// Email Bounce Date
- Emailbounceddate string `json:"emailbounceddate,omitempty"`
+ EmailBounceDate string `json:"EmailBounceDate,omitempty"`
// Email Bounce Reason
- Emailbouncedreason string `json:"emailbouncedreason,omitempty"`
-
- // Taxnexus Enrollment Status
- Enrollmentstatus string `json:"enrollmentstatus,omitempty"`
+ EmailBounceReason string `json:"EmailBounceReason,omitempty"`
// Fax Number
- Fax string `json:"fax,omitempty"`
+ Facebook string `json:"Facebook,omitempty"`
+
+ // fax
+ Fax string `json:"Fax,omitempty"`
// First Name
- Firstname string `json:"firstname,omitempty"`
+ FirstName string `json:"FirstName,omitempty"`
// Email Opt Out
- Hasoptedoutofemail bool `json:"hasoptedoutofemail,omitempty"`
+ HasOptedOutOfEmail bool `json:"HasOptedOutOfEmail,omitempty"`
// Fax Opt Out
- Hasoptedoutoffax bool `json:"hasoptedoutoffax,omitempty"`
+ HasOptedOutOfFax bool `json:"HasOptedOutOfFax,omitempty"`
// Home Phone
- Homephone string `json:"homephone,omitempty"`
+ HomePhone string `json:"HomePhone,omitempty"`
// Taxnexus Record Id
- ID string `json:"id,omitempty"`
+ ID string `json:"ID,omitempty"`
// Does this contact have bounced emails?
- Isemailbounced bool `json:"isemailbounced,omitempty"`
-
- // Is Provisioned?
- Isprovisioned bool `json:"isprovisioned,omitempty"`
+ IsEmailBounced bool `json:"IsEmailBounced,omitempty"`
// Last Modified By User ID
- Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
- Lastmodifieddate string `json:"lastmodifieddate,omitempty"`
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// Last Name
- Lastname string `json:"lastname,omitempty"`
+ LastName string `json:"LastName,omitempty"`
// Lead Source
- Leadsource string `json:"leadsource,omitempty"`
-
- // Level
- Level string `json:"level,omitempty"`
+ LeadSource string `json:"LeadSource,omitempty"`
// LinkedIn Page
- Linkedin string `json:"linkedin,omitempty"`
+ LinkedIn string `json:"LinkedIn,omitempty"`
- // mailingaddress
- Mailingaddress *Address `json:"mailingaddress,omitempty"`
-
- // Mailing Lists
- Mailinglists string `json:"mailinglists,omitempty"`
+ // mailing address
+ MailingAddress *Address `json:"MailingAddress,omitempty"`
// Mobile Phone
- Mobilephone string `json:"mobilephone,omitempty"`
+ MobilePhone string `json:"MobilePhone,omitempty"`
// Full Name
- Name string `json:"name,omitempty"`
+ Name string `json:"Name,omitempty"`
- // otheraddress
- Otheraddress *Address `json:"otheraddress,omitempty"`
+ // other address
+ OtherAddress *Address `json:"OtherAddress,omitempty"`
// Other Phone
- Otherphone string `json:"otherphone,omitempty"`
+ OtherPhone string `json:"OtherPhone,omitempty"`
// The User ID of the user who owns this Contact
- Ownerid string `json:"ownerid,omitempty"`
+ OwnerID string `json:"OwnerID,omitempty"`
// Personal Email Address for this Contact
- Personalemail string `json:"personalemail,omitempty"`
+ PersonalEmail string `json:"PersonalEmail,omitempty"`
// Phone Number
- Phone string `json:"phone,omitempty"`
+ Phone string `json:"Phone,omitempty"`
// URL of a photograph of this User
- Photourl string `json:"photourl,omitempty"`
-
- // Recruiting Status
- Recruitingstatus string `json:"recruitingstatus,omitempty"`
-
- // External reference to this contact, if any
- Ref string `json:"ref,omitempty"`
-
- // Reports To Contact ID
- Reportstoid string `json:"reportstoid,omitempty"`
-
- // Contact Salutation
- Salutation string `json:"salutation,omitempty"`
-
- // The Contact Status
- Status string `json:"status,omitempty"`
+ PhotoURL string `json:"PhotoURL,omitempty"`
// tenant identifier
- Tenantid string `json:"tenantid,omitempty"`
+ TenantID string `json:"TenantID,omitempty"`
// Contact Title
- Title string `json:"title,omitempty"`
+ Title string `json:"Title,omitempty"`
- // Contact Type
- Type string `json:"type,omitempty"`
+ // twitter
+ Twitter string `json:"Twitter,omitempty"`
}
// Validate validates this contact
func (m *Contact) Validate(formats strfmt.Registry) error {
var res []error
- if err := m.validateMailingaddress(formats); err != nil {
+ if err := m.validateMailingAddress(formats); err != nil {
res = append(res, err)
}
- if err := m.validateOtheraddress(formats); err != nil {
+ if err := m.validateOtherAddress(formats); err != nil {
res = append(res, err)
}
@@ -176,17 +152,17 @@ func (m *Contact) Validate(formats strfmt.Registry) error {
return nil
}
-func (m *Contact) validateMailingaddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Mailingaddress) { // not required
+func (m *Contact) validateMailingAddress(formats strfmt.Registry) error {
+ if swag.IsZero(m.MailingAddress) { // not required
return nil
}
- if m.Mailingaddress != nil {
- if err := m.Mailingaddress.Validate(formats); err != nil {
+ if m.MailingAddress != nil {
+ if err := m.MailingAddress.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("mailingaddress")
+ return ve.ValidateName("MailingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("mailingaddress")
+ return ce.ValidateName("MailingAddress")
}
return err
}
@@ -195,17 +171,17 @@ func (m *Contact) validateMailingaddress(formats strfmt.Registry) error {
return nil
}
-func (m *Contact) validateOtheraddress(formats strfmt.Registry) error {
- if swag.IsZero(m.Otheraddress) { // not required
+func (m *Contact) validateOtherAddress(formats strfmt.Registry) error {
+ if swag.IsZero(m.OtherAddress) { // not required
return nil
}
- if m.Otheraddress != nil {
- if err := m.Otheraddress.Validate(formats); err != nil {
+ if m.OtherAddress != nil {
+ if err := m.OtherAddress.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("otheraddress")
+ return ve.ValidateName("OtherAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("otheraddress")
+ return ce.ValidateName("OtherAddress")
}
return err
}
@@ -218,11 +194,11 @@ func (m *Contact) validateOtheraddress(formats strfmt.Registry) error {
func (m *Contact) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
- if err := m.contextValidateMailingaddress(ctx, formats); err != nil {
+ if err := m.contextValidateMailingAddress(ctx, formats); err != nil {
res = append(res, err)
}
- if err := m.contextValidateOtheraddress(ctx, formats); err != nil {
+ if err := m.contextValidateOtherAddress(ctx, formats); err != nil {
res = append(res, err)
}
@@ -232,14 +208,14 @@ func (m *Contact) ContextValidate(ctx context.Context, formats strfmt.Registry)
return nil
}
-func (m *Contact) contextValidateMailingaddress(ctx context.Context, formats strfmt.Registry) error {
+func (m *Contact) contextValidateMailingAddress(ctx context.Context, formats strfmt.Registry) error {
- if m.Mailingaddress != nil {
- if err := m.Mailingaddress.ContextValidate(ctx, formats); err != nil {
+ if m.MailingAddress != nil {
+ if err := m.MailingAddress.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("mailingaddress")
+ return ve.ValidateName("MailingAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("mailingaddress")
+ return ce.ValidateName("MailingAddress")
}
return err
}
@@ -248,14 +224,14 @@ func (m *Contact) contextValidateMailingaddress(ctx context.Context, formats str
return nil
}
-func (m *Contact) contextValidateOtheraddress(ctx context.Context, formats strfmt.Registry) error {
+func (m *Contact) contextValidateOtherAddress(ctx context.Context, formats strfmt.Registry) error {
- if m.Otheraddress != nil {
- if err := m.Otheraddress.ContextValidate(ctx, formats); err != nil {
+ if m.OtherAddress != nil {
+ if err := m.OtherAddress.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("otheraddress")
+ return ve.ValidateName("OtherAddress")
} else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("otheraddress")
+ return ce.ValidateName("OtherAddress")
}
return err
}
diff --git a/api/sfgate/sfgate_models/industry.go b/api/sfgate/sfgate_models/industry.go
new file mode 100644
index 0000000..75036b0
--- /dev/null
+++ b/api/sfgate/sfgate_models/industry.go
@@ -0,0 +1,87 @@
+// 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 sfgate_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"
+)
+
+// Industry An industry that is being researched
+//
+// swagger:model Industry
+type Industry struct {
+
+ // Created By User ID
+ CreatedByID string `json:"CreatedByID,omitempty"`
+
+ // Created Date
+ CreatedDate string `json:"CreatedDate,omitempty"`
+
+ // Industry Description
+ Description string `json:"Description,omitempty"`
+
+ // Taxnexus Record Id
+ ID string `json:"ID,omitempty"`
+
+ // Last Modified By User ID
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
+
+ // Last Modified Date
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
+
+ // The hierarchical level of this Industry
+ Level string `json:"Level,omitempty"`
+
+ // Industry Name
+ Name string `json:"Name,omitempty"`
+
+ // The ID of the Parent Industry
+ ParentIndustryID string `json:"ParentIndustryID,omitempty"`
+
+ // The full path of this industry, including Parent
+ Path string `json:"Path,omitempty"`
+
+ // The URL of the corresponding page on the CMS
+ SiteURL string `json:"SiteURL,omitempty"`
+
+ // The CMS Slug for this Industry
+ Slug string `json:"Slug,omitempty"`
+}
+
+// Validate validates this industry
+func (m *Industry) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this industry based on context it is used
+func (m *Industry) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *Industry) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *Industry) UnmarshalBinary(b []byte) error {
+ var res Industry
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/industry_product.go b/api/sfgate/sfgate_models/industry_product.go
new file mode 100644
index 0000000..451b54a
--- /dev/null
+++ b/api/sfgate/sfgate_models/industry_product.go
@@ -0,0 +1,75 @@
+// 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 sfgate_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"
+)
+
+// IndustryProduct Junction object between Industry and CompanyProduct
+//
+// swagger:model IndustryProduct
+type IndustryProduct struct {
+
+ // company product ID
+ CompanyProductID string `json:"CompanyProductID,omitempty"`
+
+ // Created By User ID
+ CreatedByID string `json:"CreatedByID,omitempty"`
+
+ // Created Date
+ CreatedDate string `json:"CreatedDate,omitempty"`
+
+ // HTML
+ HTML string `json:"HTML,omitempty"`
+
+ // Taxnexus Record Id
+ ID string `json:"ID,omitempty"`
+
+ // industry ID
+ IndustryID string `json:"IndustryID,omitempty"`
+
+ // Last Modified By User ID
+ LastModifiedByID string `json:"LastModifiedByID,omitempty"`
+
+ // Last Modified Date
+ LastModifiedDate string `json:"LastModifiedDate,omitempty"`
+}
+
+// Validate validates this industry product
+func (m *IndustryProduct) Validate(formats strfmt.Registry) error {
+ return nil
+}
+
+// ContextValidate validates this industry product based on context it is used
+func (m *IndustryProduct) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IndustryProduct) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IndustryProduct) UnmarshalBinary(b []byte) error {
+ var res IndustryProduct
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/industry_product_request.go b/api/sfgate/sfgate_models/industry_product_request.go
new file mode 100644
index 0000000..678e935
--- /dev/null
+++ b/api/sfgate/sfgate_models/industry_product_request.go
@@ -0,0 +1,120 @@
+// 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 sfgate_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"
+)
+
+// IndustryProductRequest An array of IndustryProduct objects submitted for processing
+//
+// swagger:model IndustryProductRequest
+type IndustryProductRequest struct {
+
+ // data
+ Data []*IndustryProduct `json:"Data"`
+}
+
+// Validate validates this industry product request
+func (m *IndustryProductRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryProductRequest) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this industry product request based on the context it is used
+func (m *IndustryProductRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryProductRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IndustryProductRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IndustryProductRequest) UnmarshalBinary(b []byte) error {
+ var res IndustryProductRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/industry_product_response.go b/api/sfgate/sfgate_models/industry_product_response.go
new file mode 100644
index 0000000..3ed5a28
--- /dev/null
+++ b/api/sfgate/sfgate_models/industry_product_response.go
@@ -0,0 +1,166 @@
+// 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 sfgate_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"
+)
+
+// IndustryProductResponse An array of IndustryProduct objects produced in response to a request
+//
+// swagger:model IndustryProductResponse
+type IndustryProductResponse struct {
+
+ // data
+ Data []*IndustryProduct `json:"Data"`
+
+ // meta
+ Meta *ResponseMeta `json:"Meta,omitempty"`
+}
+
+// Validate validates this industry product response
+func (m *IndustryProductResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryProductResponse) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *IndustryProductResponse) validateMeta(formats strfmt.Registry) error {
+ if swag.IsZero(m.Meta) { // not required
+ return nil
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this industry product response based on the context it is used
+func (m *IndustryProductResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryProductResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *IndustryProductResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IndustryProductResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IndustryProductResponse) UnmarshalBinary(b []byte) error {
+ var res IndustryProductResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/industry_request.go b/api/sfgate/sfgate_models/industry_request.go
new file mode 100644
index 0000000..502cfa8
--- /dev/null
+++ b/api/sfgate/sfgate_models/industry_request.go
@@ -0,0 +1,120 @@
+// 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 sfgate_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"
+)
+
+// IndustryRequest An array of Industry objects submitted for processing
+//
+// swagger:model IndustryRequest
+type IndustryRequest struct {
+
+ // data
+ Data []*Industry `json:"Data"`
+}
+
+// Validate validates this industry request
+func (m *IndustryRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryRequest) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this industry request based on the context it is used
+func (m *IndustryRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IndustryRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IndustryRequest) UnmarshalBinary(b []byte) error {
+ var res IndustryRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/api/sfgate/sfgate_models/industry_response.go b/api/sfgate/sfgate_models/industry_response.go
new file mode 100644
index 0000000..bf05dd1
--- /dev/null
+++ b/api/sfgate/sfgate_models/industry_response.go
@@ -0,0 +1,166 @@
+// 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 sfgate_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"
+)
+
+// IndustryResponse An array of Industry objects produced in response to a request
+//
+// swagger:model IndustryResponse
+type IndustryResponse struct {
+
+ // data
+ Data []*Industry `json:"Data"`
+
+ // meta
+ Meta *ResponseMeta `json:"Meta,omitempty"`
+}
+
+// Validate validates this industry response
+func (m *IndustryResponse) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateData(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMeta(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryResponse) validateData(formats strfmt.Registry) error {
+ if swag.IsZero(m.Data) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Data); i++ {
+ if swag.IsZero(m.Data[i]) { // not required
+ continue
+ }
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *IndustryResponse) validateMeta(formats strfmt.Registry) error {
+ if swag.IsZero(m.Meta) { // not required
+ return nil
+ }
+
+ if m.Meta != nil {
+ if err := m.Meta.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// ContextValidate validate this industry response based on the context it is used
+func (m *IndustryResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateData(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateMeta(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *IndustryResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Data); i++ {
+
+ if m.Data[i] != nil {
+ if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Data" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Data" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+func (m *IndustryResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.Meta != nil {
+ if err := m.Meta.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("Meta")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("Meta")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *IndustryResponse) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *IndustryResponse) UnmarshalBinary(b []byte) error {
+ var res IndustryResponse
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/client/sf-gate/.openapi-generator/FILES b/client/sf-gate/.openapi-generator/FILES
index 36e108e..f300ad6 100644
--- a/client/sf-gate/.openapi-generator/FILES
+++ b/client/sf-gate/.openapi-generator/FILES
@@ -8,10 +8,18 @@ docs/AccountRequest.md
docs/AccountResponse.md
docs/AccountsApi.md
docs/Address.md
+docs/Asset.md
+docs/AssetRequest.md
+docs/AssetResponse.md
+docs/AssetsApi.md
docs/Cluster.md
docs/ClusterRequest.md
docs/ClusterResponse.md
docs/ClustersApi.md
+docs/CompanyProduct.md
+docs/CompanyProductRequest.md
+docs/CompanyProductResponse.md
+docs/CompanyProductsApi.md
docs/Contact.md
docs/ContactRequest.md
docs/ContactResponse.md
@@ -26,6 +34,15 @@ docs/DatabaseResponse.md
docs/DatabasesApi.md
docs/DeleteResponse.md
docs/Error.md
+docs/IndustriesApi.md
+docs/Industry.md
+docs/IndustryProduct.md
+docs/IndustryProductRequest.md
+docs/IndustryProductResponse.md
+docs/IndustryProductsApi.md
+docs/IndustryRequest.md
+docs/IndustryResponse.md
+docs/IndustryproductsApi.md
docs/InvalidError.md
docs/InvalidErrorAllOf.md
docs/Message.md
@@ -53,10 +70,15 @@ mocha.opts
package.json
src/ApiClient.js
src/api/AccountsApi.js
+src/api/AssetsApi.js
src/api/ClustersApi.js
+src/api/CompanyProductsApi.js
src/api/ContactsApi.js
src/api/ContractsApi.js
src/api/DatabasesApi.js
+src/api/IndustriesApi.js
+src/api/IndustryProductsApi.js
+src/api/IndustryproductsApi.js
src/api/RolesApi.js
src/api/TemplatesApi.js
src/api/TenantsApi.js
@@ -66,9 +88,15 @@ src/model/Account.js
src/model/AccountRequest.js
src/model/AccountResponse.js
src/model/Address.js
+src/model/Asset.js
+src/model/AssetRequest.js
+src/model/AssetResponse.js
src/model/Cluster.js
src/model/ClusterRequest.js
src/model/ClusterResponse.js
+src/model/CompanyProduct.js
+src/model/CompanyProductRequest.js
+src/model/CompanyProductResponse.js
src/model/Contact.js
src/model/ContactRequest.js
src/model/ContactResponse.js
@@ -80,6 +108,12 @@ src/model/DatabaseRequest.js
src/model/DatabaseResponse.js
src/model/DeleteResponse.js
src/model/Error.js
+src/model/Industry.js
+src/model/IndustryProduct.js
+src/model/IndustryProductRequest.js
+src/model/IndustryProductResponse.js
+src/model/IndustryRequest.js
+src/model/IndustryResponse.js
src/model/InvalidError.js
src/model/InvalidErrorAllOf.js
src/model/Message.js
@@ -99,10 +133,15 @@ src/model/User.js
src/model/UserResponse.js
src/model/UserRole.js
test/api/AccountsApi.spec.js
+test/api/AssetsApi.spec.js
test/api/ClustersApi.spec.js
+test/api/CompanyProductsApi.spec.js
test/api/ContactsApi.spec.js
test/api/ContractsApi.spec.js
test/api/DatabasesApi.spec.js
+test/api/IndustriesApi.spec.js
+test/api/IndustryProductsApi.spec.js
+test/api/IndustryproductsApi.spec.js
test/api/RolesApi.spec.js
test/api/TemplatesApi.spec.js
test/api/TenantsApi.spec.js
@@ -111,9 +150,15 @@ test/model/Account.spec.js
test/model/AccountRequest.spec.js
test/model/AccountResponse.spec.js
test/model/Address.spec.js
+test/model/Asset.spec.js
+test/model/AssetRequest.spec.js
+test/model/AssetResponse.spec.js
test/model/Cluster.spec.js
test/model/ClusterRequest.spec.js
test/model/ClusterResponse.spec.js
+test/model/CompanyProduct.spec.js
+test/model/CompanyProductRequest.spec.js
+test/model/CompanyProductResponse.spec.js
test/model/Contact.spec.js
test/model/ContactRequest.spec.js
test/model/ContactResponse.spec.js
@@ -125,6 +170,12 @@ test/model/DatabaseRequest.spec.js
test/model/DatabaseResponse.spec.js
test/model/DeleteResponse.spec.js
test/model/Error.spec.js
+test/model/Industry.spec.js
+test/model/IndustryProduct.spec.js
+test/model/IndustryProductRequest.spec.js
+test/model/IndustryProductResponse.spec.js
+test/model/IndustryRequest.spec.js
+test/model/IndustryResponse.spec.js
test/model/InvalidError.spec.js
test/model/InvalidErrorAllOf.spec.js
test/model/Message.spec.js
diff --git a/client/sf-gate/README.md b/client/sf-gate/README.md
index 437a91c..80a9a9d 100644
--- a/client/sf-gate/README.md
+++ b/client/sf-gate/README.md
@@ -132,9 +132,13 @@ Class | Method | HTTP request | Description
*SfGate.AccountsApi* | [**getAccounts**](docs/AccountsApi.md#getAccounts) | **GET** /accounts | Get a list of accounts
*SfGate.AccountsApi* | [**postAccounts**](docs/AccountsApi.md#postAccounts) | **POST** /accounts | Add a new account to Taxnexus
*SfGate.AccountsApi* | [**putAccount**](docs/AccountsApi.md#putAccount) | **PUT** /accounts | Update a single account
+*SfGate.AssetsApi* | [**getAssets**](docs/AssetsApi.md#getAssets) | **GET** /assets | Get a list of assets
+*SfGate.AssetsApi* | [**postAssets**](docs/AssetsApi.md#postAssets) | **POST** /assets | Add a new asset to Taxnexus
*SfGate.ClustersApi* | [**getClusters**](docs/ClustersApi.md#getClusters) | **GET** /clusters | Get a list Clusters
*SfGate.ClustersApi* | [**postClusters**](docs/ClustersApi.md#postClusters) | **POST** /clusters | Create new Clusters
*SfGate.ClustersApi* | [**putClusters**](docs/ClustersApi.md#putClusters) | **PUT** /clusters | Update Clusters
+*SfGate.CompanyProductsApi* | [**getCompanyProducts**](docs/CompanyProductsApi.md#getCompanyProducts) | **GET** /companyproducts | Get a list of companyproducts
+*SfGate.CompanyProductsApi* | [**postCompanyProducts**](docs/CompanyProductsApi.md#postCompanyProducts) | **POST** /companyproducts | Add a new companyproduct to Taxnexus
*SfGate.ContactsApi* | [**getContacts**](docs/ContactsApi.md#getContacts) | **GET** /contacts | Get a Contact record
*SfGate.ContactsApi* | [**postContacts**](docs/ContactsApi.md#postContacts) | **POST** /contacts | Add a new Contacts to Taxnexus
*SfGate.ContractsApi* | [**getContracts**](docs/ContractsApi.md#getContracts) | **GET** /contracts | Get a list of contracts
@@ -142,6 +146,10 @@ Class | Method | HTTP request | Description
*SfGate.DatabasesApi* | [**getDatabases**](docs/DatabasesApi.md#getDatabases) | **GET** /databases | Get a list Databases
*SfGate.DatabasesApi* | [**postDatabases**](docs/DatabasesApi.md#postDatabases) | **POST** /databases | Create new Databases
*SfGate.DatabasesApi* | [**putDatabases**](docs/DatabasesApi.md#putDatabases) | **PUT** /databases | Update Databases
+*SfGate.IndustriesApi* | [**getIndustries**](docs/IndustriesApi.md#getIndustries) | **GET** /industries | Get a list of industries
+*SfGate.IndustriesApi* | [**postIndustries**](docs/IndustriesApi.md#postIndustries) | **POST** /industries | Add a new industry to Taxnexus
+*SfGate.IndustryProductsApi* | [**postIndustryproducts**](docs/IndustryProductsApi.md#postIndustryproducts) | **POST** /industryproducts | Add a new industryproduct to Taxnexus
+*SfGate.IndustryproductsApi* | [**getIndustryProducts**](docs/IndustryproductsApi.md#getIndustryProducts) | **GET** /industryproducts | Get a list of industryproducts
*SfGate.RolesApi* | [**getRoles**](docs/RolesApi.md#getRoles) | **GET** /roles | Get a list of Roles
*SfGate.TemplatesApi* | [**getTemplates**](docs/TemplatesApi.md#getTemplates) | **GET** /templates | Get PDF Rendering Templates
*SfGate.TenantsApi* | [**getTenants**](docs/TenantsApi.md#getTenants) | **GET** /tenants | Get a list Tenants
@@ -156,9 +164,15 @@ Class | Method | HTTP request | Description
- [SfGate.AccountRequest](docs/AccountRequest.md)
- [SfGate.AccountResponse](docs/AccountResponse.md)
- [SfGate.Address](docs/Address.md)
+ - [SfGate.Asset](docs/Asset.md)
+ - [SfGate.AssetRequest](docs/AssetRequest.md)
+ - [SfGate.AssetResponse](docs/AssetResponse.md)
- [SfGate.Cluster](docs/Cluster.md)
- [SfGate.ClusterRequest](docs/ClusterRequest.md)
- [SfGate.ClusterResponse](docs/ClusterResponse.md)
+ - [SfGate.CompanyProduct](docs/CompanyProduct.md)
+ - [SfGate.CompanyProductRequest](docs/CompanyProductRequest.md)
+ - [SfGate.CompanyProductResponse](docs/CompanyProductResponse.md)
- [SfGate.Contact](docs/Contact.md)
- [SfGate.ContactRequest](docs/ContactRequest.md)
- [SfGate.ContactResponse](docs/ContactResponse.md)
@@ -170,6 +184,12 @@ Class | Method | HTTP request | Description
- [SfGate.DatabaseResponse](docs/DatabaseResponse.md)
- [SfGate.DeleteResponse](docs/DeleteResponse.md)
- [SfGate.Error](docs/Error.md)
+ - [SfGate.Industry](docs/Industry.md)
+ - [SfGate.IndustryProduct](docs/IndustryProduct.md)
+ - [SfGate.IndustryProductRequest](docs/IndustryProductRequest.md)
+ - [SfGate.IndustryProductResponse](docs/IndustryProductResponse.md)
+ - [SfGate.IndustryRequest](docs/IndustryRequest.md)
+ - [SfGate.IndustryResponse](docs/IndustryResponse.md)
- [SfGate.InvalidError](docs/InvalidError.md)
- [SfGate.InvalidErrorAllOf](docs/InvalidErrorAllOf.md)
- [SfGate.Message](docs/Message.md)
diff --git a/client/sf-gate/docs/Account.md b/client/sf-gate/docs/Account.md
index 56254b7..83f002d 100644
--- a/client/sf-gate/docs/Account.md
+++ b/client/sf-gate/docs/Account.md
@@ -4,93 +4,54 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**tenantid** | **String** | tenant identifier | [optional]
-**accountnumber** | **String** | Account Number | [optional]
-**accountsource** | **String** | The marketing orgin of this account | [optional]
-**active** | **Boolean** | Active | [optional]
-**administrativelevel** | **String** | For tax authorities, this account's administrative level, e.g. Local, County, State or Federal | [optional]
-**amount** | **Number** | Rollup Tax Amount | [optional]
-**amountinvoiced** | **Number** | Amount Invoiced | [optional]
-**amountpaid** | **Number** | Amount Paid | [optional]
-**annualrevenue** | **Number** | Annual Revenue Estimate | [optional]
-**balance** | **Number** | Account Balance | [optional]
-**billingaddress** | [**Address**](Address.md) | | [optional]
-**billingcontactid** | **String** | Contact ID | [optional]
-**billingpreference** | **String** | Billing Preference | [optional]
-**businessaddress** | [**Address**](Address.md) | | [optional]
-**cannabiscustomer** | **Boolean** | Is this a cannabis customer? | [optional]
-**channelprogramlevelname** | **String** | Channel Program Level Name | [optional]
-**channelprogramname** | **String** | Channel Program Name | [optional]
-**clientenddate** | **String** | Client End Date | [optional]
-**clientstartdate** | **String** | Client Start Date | [optional]
-**companyid** | **String** | The Company ID of this Account | [optional]
-**coordinateid** | **String** | The Id of the geo coordinates of this account | [optional]
-**createdbyid** | **String** | Created By User ID | [optional]
-**createddate** | **String** | Created Date | [optional]
-**customerid** | **String** | Customer ID from source system | [optional]
-**customerpriority** | **String** | Customer Priority | [optional]
-**dandbcompanyid** | **String** | D-n-B Company | [optional]
-**dba** | **String** | This Account's 'Doing Business As' name | [optional]
-**defaultaddress** | [**Address**](Address.md) | | [optional]
-**defaultbackendid** | **String** | Default Backend ID | [optional]
-**defaultdeliverycontactid** | **String** | Default Delivery Address Contact ID | [optional]
-**defaultenduserid** | **String** | Default End User Contact ID | [optional]
+**tenantID** | **String** | tenant identifier | [optional]
+**ID** | **String** | Taxnexus Account Id | [optional]
+**accountNumber** | **String** | Account Number | [optional]
+**accountSource** | **String** | The marketing orgin of this account | [optional]
+**annualRevenue** | **Number** | Annual Revenue Estimate | [optional]
+**billingAddress** | [**Address**](Address.md) | | [optional]
+**billingContactID** | **String** | Contact ID | [optional]
+**createdByID** | **String** | Created By User ID | [optional]
+**createdDate** | **String** | Created Date | [optional]
+**closeDate** | **String** | Date company closed | [optional]
+**cloudRevenueTotal** | **Number** | | [optional]
+**cloudType** | **String** | | [optional]
+**cloudYear** | **String** | | [optional]
+**crunchbaseURL** | **String** | | [optional]
**description** | **String** | Description | [optional]
-**dunsnumber** | **String** | D-U-N-S Number | [optional]
-**ein** | **String** | EIN | [optional]
+**earningsCall** | **String** | | [optional]
**email** | **String** | Main Account Email | [optional]
-**enrollmentstatus** | **String** | Enrollment Status | [optional]
+**equityFunding** | **Number** | | [optional]
**fax** | **String** | Fax | [optional]
-**id** | **String** | Taxnexus Account Id | [optional]
+**foundedDate** | **String** | | [optional]
**industry** | **String** | Industry | [optional]
-**iscustomerportal** | **Boolean** | Customer Portal Account | [optional]
-**ispartner** | **Boolean** | Partner Account | [optional]
-**ispcustomer** | **Boolean** | ISP Customer? | [optional]
-**jigsaw** | **String** | Data.com Key | [optional]
-**lastmodifiedbyid** | **String** | Last Modified By User ID | [optional]
-**lastmodifieddate** | **String** | Last Modified Date | [optional]
-**mspcustomer** | **Boolean** | MSP Customer? | [optional]
-**naicscode** | **String** | NAICS Code | [optional]
-**naicsdesc** | **String** | NAICS Description | [optional]
+**facebook** | **String** | | [optional]
+**industries** | **String** | | [optional]
+**iPODate** | **String** | | [optional]
+**lastModifiedByID** | **String** | Last Modified By User ID | [optional]
+**lastModifiedDate** | **String** | Last Modified Date | [optional]
+**linkedIn** | **String** | | [optional]
+**location** | **String** | | [optional]
+**marketCapitalization** | **Number** | | [optional]
**name** | **String** | Account Name | [optional]
-**numberofemployees** | **Number** | Employee Count Estimate | [optional]
-**numberoflocations** | **Number** | Number of Locations Estimate | [optional]
-**opencharges** | **Number** | Open Charges | [optional]
-**ordercontactid** | **String** | Vendor Order Contact ID | [optional]
-**orderemail** | **String** | Order Email | [optional]
-**ownerid** | **String** | Account Owner User ID | [optional]
+**numberOfEmployees** | **Number** | Employee Count Estimate | [optional]
+**numberInvestments** | **Number** | Number of Locations Estimate | [optional]
+**ownerID** | **String** | Account Owner User ID | [optional]
**ownership** | **String** | Ownership | [optional]
-**parentfk** | **String** | Parent Foreign Key | [optional]
-**parentid** | **String** | Parent Account | [optional]
+**parentID** | **String** | Parent Account | [optional]
**phone** | **String** | Phone | [optional]
-**placeid** | **String** | The ID of the Place situs record that applies to this Account | [optional]
-**preparerid** | **String** | Tax Preparer Contact ID | [optional]
-**rating** | **String** | Rating | [optional]
-**ratingengineid** | **String** | Rating Engine identifier | [optional]
-**ref** | **String** | External Reference ID | [optional]
-**revenuebase** | **Number** | Rollup Revenue Base | [optional]
-**revenuenet** | **Number** | Rollup Revenue Net | [optional]
-**revenuenottaxable** | **Number** | Rollup Revenue Not Taxable | [optional]
-**shippingaddress** | [**Address**](Address.md) | | [optional]
-**shippingcensustract** | **String** | Shipping Census Tract | [optional]
-**shippingcounty** | **String** | Shipping County | [optional]
-**shippingcontactid** | **String** | Shipping Contact ID | [optional]
-**sic** | **String** | SIC Code | [optional]
-**sicdesc** | **String** | SIC Description | [optional]
+**publish** | **Boolean** | | [optional]
+**salesforceFirst** | **Boolean** | | [optional]
+**shippingAddress** | [**Address**](Address.md) | | [optional]
+**shippingContactID** | **String** | | [optional]
+**SIC** | **String** | SIC Code | [optional]
+**sICDesc** | **String** | SIC Description | [optional]
**site** | **String** | Account Site | [optional]
-**status** | **String** | Account Status | [optional]
-**taxexemption** | **String** | Tax Exemption | [optional]
-**taxontax** | **Number** | Rollup Tax On Tax | [optional]
-**telecomcustomer** | **Boolean** | Telecom Customer? | [optional]
-**tickersymbol** | **String** | Ticker Symbol | [optional]
-**tradestyle** | **String** | Tradestyle | [optional]
+**tagLine** | **String** | | [optional]
+**tickerSymbol** | **String** | | [optional]
**type** | **String** | Type | [optional]
-**unappliedpayments** | **Number** | Unapplied Payments | [optional]
-**unitbase** | **Number** | Rollup Unit Base | [optional]
-**upsellopportunity** | **String** | Upsell Opportunity | [optional]
+**twitter** | **String** | | [optional]
**website** | **String** | Website | [optional]
-**whmcsclientid** | **Number** | WHMCS Client ID | [optional]
-**xerocontactid** | **String** | Xero Contact ID | [optional]
-**yearstarted** | **String** | Year Started | [optional]
+**yearStarted** | **String** | Year Started | [optional]
diff --git a/client/sf-gate/docs/Asset.md b/client/sf-gate/docs/Asset.md
new file mode 100644
index 0000000..6488c6d
--- /dev/null
+++ b/client/sf-gate/docs/Asset.md
@@ -0,0 +1,55 @@
+# SfGate.Asset
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ID** | **String** | Taxnexus Record Id | [optional]
+**accountID** | **String** | Account | [optional]
+**address** | [**Address**](Address.md) | | [optional]
+**assetLevel** | **Number** | Asset Level | [optional]
+**name** | **String** | Asset Name | [optional]
+**assetProvidedByID** | **String** | Asset Provided By | [optional]
+**assetServicedByID** | **String** | Asset Serviced By | [optional]
+**companyProductID** | **String** | Company Product | [optional]
+**isCompetitorProduct** | **Boolean** | Competitor Asset | [optional]
+**consequenceOfFailure** | **String** | Consequence Of Failure | [optional]
+**contactID** | **String** | Contact | [optional]
+**createdByID** | **String** | Created By | [optional]
+**createdDate** | **String** | Created Date | [optional]
+**currentAmount** | **Number** | Current Amount | [optional]
+**currentLifecycleEndDate** | **String** | Current Lifecycle End Date | [optional]
+**currentMrr** | **Number** | Current Monthly Recurring Revenue | [optional]
+**currentQuantity** | **Number** | Current Quantity | [optional]
+**description** | **String** | Description | [optional]
+**digitalAssetStatus** | **String** | Digital Asset Status | [optional]
+**externalIdentifier** | **String** | External Id | [optional]
+**hasLifecycleManagement** | **Boolean** | Has Lifecycle Management | [optional]
+**installDate** | **String** | Install Date | [optional]
+**isInternal** | **Boolean** | Internal Asset | [optional]
+**lastModifiedByID** | **String** | Last Modified By | [optional]
+**lastModifiedDate** | **String** | Last Modified Date | [optional]
+**locationID** | **String** | Location | [optional]
+**manufactureDate** | **String** | Manufacture Date | [optional]
+**mIMEType** | **String** | MIME Type | [optional]
+**parentID** | **String** | Parent Asset | [optional]
+**price** | **Number** | Price | [optional]
+**product2ID** | **String** | Product | [optional]
+**productCode** | **String** | Product Code | [optional]
+**productDescription** | **String** | Product Description | [optional]
+**productFamily** | **String** | Product Family | [optional]
+**stockKeepingUnit** | **String** | Product SKU | [optional]
+**purchaseDate** | **String** | Purchase Date | [optional]
+**quantity** | **Number** | Quantity | [optional]
+**rootAssetID** | **String** | Root Asset | [optional]
+**serialNumber** | **String** | Serial Number | [optional]
+**status** | **String** | Status | [optional]
+**statusReason** | **String** | Status Reason | [optional]
+**tenantID** | **String** | Tenant ID | [optional]
+**totalLifecycleAmount** | **Number** | Total Lifecycle Amount | [optional]
+**type** | **String** | Type | [optional]
+**UUID** | **String** | Unique Identifier | [optional]
+**URL** | **String** | URL | [optional]
+**usageEndDate** | **String** | Usage End Date | [optional]
+
+
diff --git a/client/sf-gate/docs/AssetRequest.md b/client/sf-gate/docs/AssetRequest.md
new file mode 100644
index 0000000..0fddab4
--- /dev/null
+++ b/client/sf-gate/docs/AssetRequest.md
@@ -0,0 +1,9 @@
+# SfGate.AssetRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**[Asset]**](Asset.md) | | [optional]
+
+
diff --git a/client/sf-gate/docs/AssetResponse.md b/client/sf-gate/docs/AssetResponse.md
new file mode 100644
index 0000000..c9d63b9
--- /dev/null
+++ b/client/sf-gate/docs/AssetResponse.md
@@ -0,0 +1,10 @@
+# SfGate.AssetResponse
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**[Asset]**](Asset.md) | | [optional]
+**meta** | [**ResponseMeta**](ResponseMeta.md) | | [optional]
+
+
diff --git a/client/sf-gate/docs/AssetsApi.md b/client/sf-gate/docs/AssetsApi.md
new file mode 100644
index 0000000..c595896
--- /dev/null
+++ b/client/sf-gate/docs/AssetsApi.md
@@ -0,0 +1,120 @@
+# SfGate.AssetsApi
+
+All URIs are relative to *http://sf-gate.vernonkeenan.com:8080/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**getAssets**](AssetsApi.md#getAssets) | **GET** /assets | Get a list of assets
+[**postAssets**](AssetsApi.md#postAssets) | **POST** /assets | Add a new asset to Taxnexus
+
+
+
+## getAssets
+
+> AssetResponse getAssets(opts)
+
+Get a list of assets
+
+Return a list of all available Assets
+
+### Example
+
+```javascript
+import SfGate from 'sf_gate';
+let defaultClient = SfGate.ApiClient.instance;
+// Configure API key authorization: ApiKeyAuth
+let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix = 'Token';
+
+let apiInstance = new SfGate.AssetsApi();
+let opts = {
+ 'limit': 789, // Number | How many objects to return at one time
+ 'offset': 789, // Number | How many objects to skip?
+ 'active': true, // Boolean | Only retrieve active records?
+ 'assetId': "assetId_example" // String | Taxnexus Record Id of an Asset
+};
+apiInstance.getAssets(opts, (error, data, response) => {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+});
+```
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **limit** | **Number**| How many objects to return at one time | [optional]
+ **offset** | **Number**| How many objects to skip? | [optional]
+ **active** | **Boolean**| Only retrieve active records? | [optional]
+ **assetId** | **String**| Taxnexus Record Id of an Asset | [optional]
+
+### Return type
+
+[**AssetResponse**](AssetResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+
+## postAssets
+
+> AssetResponse postAssets(assetRequest)
+
+Add a new asset to Taxnexus
+
+Industry record to be added
+
+### Example
+
+```javascript
+import SfGate from 'sf_gate';
+let defaultClient = SfGate.ApiClient.instance;
+// Configure API key authorization: ApiKeyAuth
+let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix = 'Token';
+
+let apiInstance = new SfGate.AssetsApi();
+let assetRequest = new SfGate.AssetRequest(); // AssetRequest | An array of new Asset records
+apiInstance.postAssets(assetRequest, (error, data, response) => {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+});
+```
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **assetRequest** | [**AssetRequest**](AssetRequest.md)| An array of new Asset records |
+
+### Return type
+
+[**AssetResponse**](AssetResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
diff --git a/client/sf-gate/docs/CompanyProduct.md b/client/sf-gate/docs/CompanyProduct.md
new file mode 100644
index 0000000..346780f
--- /dev/null
+++ b/client/sf-gate/docs/CompanyProduct.md
@@ -0,0 +1,18 @@
+# SfGate.CompanyProduct
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ID** | **String** | Taxnexus Record Id | [optional]
+**createdByID** | **String** | Created By User ID | [optional]
+**createdDate** | **String** | Created Date | [optional]
+**lastModifiedByID** | **String** | Last Modified By User ID | [optional]
+**lastModifiedDate** | **String** | Last Modified Date | [optional]
+**accountID** | **String** | Taxnexus ID of the Company that owns this Product | [optional]
+**description** | **String** | Description of product | [optional]
+**name** | **String** | Product Name | [optional]
+**tagLine** | **String** | TagLine | [optional]
+**URL** | **String** | Website | [optional]
+
+
diff --git a/client/sf-gate/docs/CompanyProductRequest.md b/client/sf-gate/docs/CompanyProductRequest.md
new file mode 100644
index 0000000..5d672a3
--- /dev/null
+++ b/client/sf-gate/docs/CompanyProductRequest.md
@@ -0,0 +1,10 @@
+# SfGate.CompanyProductRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**[CompanyProduct]**](CompanyProduct.md) | |
+**meta** | [**RequestMeta**](RequestMeta.md) | |
+
+
diff --git a/client/sf-gate/docs/CompanyProductResponse.md b/client/sf-gate/docs/CompanyProductResponse.md
new file mode 100644
index 0000000..bf2275a
--- /dev/null
+++ b/client/sf-gate/docs/CompanyProductResponse.md
@@ -0,0 +1,10 @@
+# SfGate.CompanyProductResponse
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**[CompanyProduct]**](CompanyProduct.md) | | [optional]
+**meta** | [**ResponseMeta**](ResponseMeta.md) | | [optional]
+
+
diff --git a/client/sf-gate/docs/CompanyProductsApi.md b/client/sf-gate/docs/CompanyProductsApi.md
new file mode 100644
index 0000000..d913323
--- /dev/null
+++ b/client/sf-gate/docs/CompanyProductsApi.md
@@ -0,0 +1,120 @@
+# SfGate.CompanyProductsApi
+
+All URIs are relative to *http://sf-gate.vernonkeenan.com:8080/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**getCompanyProducts**](CompanyProductsApi.md#getCompanyProducts) | **GET** /companyproducts | Get a list of companyproducts
+[**postCompanyProducts**](CompanyProductsApi.md#postCompanyProducts) | **POST** /companyproducts | Add a new companyproduct to Taxnexus
+
+
+
+## getCompanyProducts
+
+> CompanyProductResponse getCompanyProducts(opts)
+
+Get a list of companyproducts
+
+Return a list of all available CompanyProducts
+
+### Example
+
+```javascript
+import SfGate from 'sf_gate';
+let defaultClient = SfGate.ApiClient.instance;
+// Configure API key authorization: ApiKeyAuth
+let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix = 'Token';
+
+let apiInstance = new SfGate.CompanyProductsApi();
+let opts = {
+ 'limit': 789, // Number | How many objects to return at one time
+ 'offset': 789, // Number | How many objects to skip?
+ 'active': true, // Boolean | Only retrieve active records?
+ 'companyProductId': "companyProductId_example" // String | Taxnexus CompanyProduct record ID
+};
+apiInstance.getCompanyProducts(opts, (error, data, response) => {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+});
+```
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **limit** | **Number**| How many objects to return at one time | [optional]
+ **offset** | **Number**| How many objects to skip? | [optional]
+ **active** | **Boolean**| Only retrieve active records? | [optional]
+ **companyProductId** | **String**| Taxnexus CompanyProduct record ID | [optional]
+
+### Return type
+
+[**CompanyProductResponse**](CompanyProductResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+
+## postCompanyProducts
+
+> CompanyProductResponse postCompanyProducts(contactRequest)
+
+Add a new companyproduct to Taxnexus
+
+Industry record to be added
+
+### Example
+
+```javascript
+import SfGate from 'sf_gate';
+let defaultClient = SfGate.ApiClient.instance;
+// Configure API key authorization: ApiKeyAuth
+let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix = 'Token';
+
+let apiInstance = new SfGate.CompanyProductsApi();
+let contactRequest = new SfGate.CompanyProductRequest(); // CompanyProductRequest | An array of new Contact records
+apiInstance.postCompanyProducts(contactRequest, (error, data, response) => {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+});
+```
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **contactRequest** | [**CompanyProductRequest**](CompanyProductRequest.md)| An array of new Contact records |
+
+### Return type
+
+[**CompanyProductResponse**](CompanyProductResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
diff --git a/client/sf-gate/docs/Contact.md b/client/sf-gate/docs/Contact.md
index 4c4ed56..9885641 100644
--- a/client/sf-gate/docs/Contact.md
+++ b/client/sf-gate/docs/Contact.md
@@ -4,50 +4,42 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**tenantid** | **String** | tenant identifier | [optional]
-**accountid** | **String** | The primary account ID of this contact | [optional]
-**assistantname** | **String** | Assistant Name | [optional]
-**assistantphone** | **String** | Asst. Phone | [optional]
-**birthdate** | **String** | Birthdate | [optional]
-**createdbyid** | **String** | Created By User ID | [optional]
-**createddate** | **String** | Created Date | [optional]
+**tenantID** | **String** | tenant identifier | [optional]
+**ID** | **String** | Taxnexus Record Id | [optional]
+**accountID** | **String** | The primary account ID of this contact | [optional]
+**assistantName** | **String** | Assistant Name | [optional]
+**assistantPhone** | **String** | Asst. Phone | [optional]
+**birthDate** | **String** | Birthdate | [optional]
+**createdByID** | **String** | Created By User ID | [optional]
+**createdDate** | **String** | Created Date | [optional]
**department** | **String** | Department | [optional]
**description** | **String** | Description | [optional]
-**donotcall** | **Boolean** | Do Not Call? | [optional]
+**doNotCall** | **Boolean** | Do Not Call? | [optional]
**email** | **String** | Email address | [optional]
-**emailbounceddate** | **String** | Email Bounce Date | [optional]
-**emailbouncedreason** | **String** | Email Bounce Reason | [optional]
-**enrollmentstatus** | **String** | Taxnexus Enrollment Status | [optional]
-**fax** | **String** | Fax Number | [optional]
-**firstname** | **String** | First Name | [optional]
-**hasoptedoutofemail** | **Boolean** | Email Opt Out | [optional]
-**hasoptedoutoffax** | **Boolean** | Fax Opt Out | [optional]
-**homephone** | **String** | Home Phone | [optional]
-**id** | **String** | Taxnexus Record Id | [optional]
-**isemailbounced** | **Boolean** | Does this contact have bounced emails? | [optional]
-**isprovisioned** | **Boolean** | Is Provisioned? | [optional]
-**lastmodifiedbyid** | **String** | Last Modified By User ID | [optional]
-**lastmodifieddate** | **String** | Last Modified Date | [optional]
-**lastname** | **String** | Last Name | [optional]
-**leadsource** | **String** | Lead Source | [optional]
-**level** | **String** | Level | [optional]
-**linkedin** | **String** | LinkedIn Page | [optional]
-**mailingaddress** | [**Address**](Address.md) | | [optional]
-**mailinglists** | **String** | Mailing Lists | [optional]
-**mobilephone** | **String** | Mobile Phone | [optional]
+**emailBounceDate** | **String** | Email Bounce Date | [optional]
+**emailBounceReason** | **String** | Email Bounce Reason | [optional]
+**fax** | **String** | | [optional]
+**facebook** | **String** | Fax Number | [optional]
+**firstName** | **String** | First Name | [optional]
+**hasOptedOutOfEmail** | **Boolean** | Email Opt Out | [optional]
+**hasOptedOutOfFax** | **Boolean** | Fax Opt Out | [optional]
+**homePhone** | **String** | Home Phone | [optional]
+**isEmailBounced** | **Boolean** | Does this contact have bounced emails? | [optional]
+**lastModifiedByID** | **String** | Last Modified By User ID | [optional]
+**lastModifiedDate** | **String** | Last Modified Date | [optional]
+**lastName** | **String** | Last Name | [optional]
+**leadSource** | **String** | Lead Source | [optional]
+**linkedIn** | **String** | LinkedIn Page | [optional]
+**mailingAddress** | [**Address**](Address.md) | | [optional]
+**mobilePhone** | **String** | Mobile Phone | [optional]
**name** | **String** | Full Name | [optional]
-**otheraddress** | [**Address**](Address.md) | | [optional]
-**otherphone** | **String** | Other Phone | [optional]
-**ownerid** | **String** | The User ID of the user who owns this Contact | [optional]
-**personalemail** | **String** | Personal Email Address for this Contact | [optional]
+**otherAddress** | [**Address**](Address.md) | | [optional]
+**otherPhone** | **String** | Other Phone | [optional]
+**ownerID** | **String** | The User ID of the user who owns this Contact | [optional]
+**personalEmail** | **String** | Personal Email Address for this Contact | [optional]
**phone** | **String** | Phone Number | [optional]
-**photourl** | **String** | URL of a photograph of this User | [optional]
-**recruitingstatus** | **String** | Recruiting Status | [optional]
-**ref** | **String** | External reference to this contact, if any | [optional]
-**reportstoid** | **String** | Reports To Contact ID | [optional]
-**salutation** | **String** | Contact Salutation | [optional]
-**status** | **String** | The Contact Status | [optional]
+**photoURL** | **String** | URL of a photograph of this User | [optional]
**title** | **String** | Contact Title | [optional]
-**type** | **String** | Contact Type | [optional]
+**twitter** | **String** | | [optional]
diff --git a/client/sf-gate/docs/IndustriesApi.md b/client/sf-gate/docs/IndustriesApi.md
new file mode 100644
index 0000000..32128ca
--- /dev/null
+++ b/client/sf-gate/docs/IndustriesApi.md
@@ -0,0 +1,120 @@
+# SfGate.IndustriesApi
+
+All URIs are relative to *http://sf-gate.vernonkeenan.com:8080/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**getIndustries**](IndustriesApi.md#getIndustries) | **GET** /industries | Get a list of industries
+[**postIndustries**](IndustriesApi.md#postIndustries) | **POST** /industries | Add a new industry to Taxnexus
+
+
+
+## getIndustries
+
+> IndustryResponse getIndustries(opts)
+
+Get a list of industries
+
+Return a list of all available Industries
+
+### Example
+
+```javascript
+import SfGate from 'sf_gate';
+let defaultClient = SfGate.ApiClient.instance;
+// Configure API key authorization: ApiKeyAuth
+let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix = 'Token';
+
+let apiInstance = new SfGate.IndustriesApi();
+let opts = {
+ 'limit': 789, // Number | How many objects to return at one time
+ 'offset': 789, // Number | How many objects to skip?
+ 'active': true, // Boolean | Only retrieve active records?
+ 'industryId': "industryId_example" // String | Taxnexus Industry record ID
+};
+apiInstance.getIndustries(opts, (error, data, response) => {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+});
+```
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **limit** | **Number**| How many objects to return at one time | [optional]
+ **offset** | **Number**| How many objects to skip? | [optional]
+ **active** | **Boolean**| Only retrieve active records? | [optional]
+ **industryId** | **String**| Taxnexus Industry record ID | [optional]
+
+### Return type
+
+[**IndustryResponse**](IndustryResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+
+## postIndustries
+
+> IndustryResponse postIndustries(industryRequest)
+
+Add a new industry to Taxnexus
+
+Industry record to be added
+
+### Example
+
+```javascript
+import SfGate from 'sf_gate';
+let defaultClient = SfGate.ApiClient.instance;
+// Configure API key authorization: ApiKeyAuth
+let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix = 'Token';
+
+let apiInstance = new SfGate.IndustriesApi();
+let industryRequest = new SfGate.IndustryRequest(); // IndustryRequest | An array of new Industry records
+apiInstance.postIndustries(industryRequest, (error, data, response) => {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+});
+```
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **industryRequest** | [**IndustryRequest**](IndustryRequest.md)| An array of new Industry records |
+
+### Return type
+
+[**IndustryResponse**](IndustryResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
diff --git a/client/sf-gate/docs/Industry.md b/client/sf-gate/docs/Industry.md
new file mode 100644
index 0000000..f198fcc
--- /dev/null
+++ b/client/sf-gate/docs/Industry.md
@@ -0,0 +1,20 @@
+# SfGate.Industry
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ID** | **String** | Taxnexus Record Id | [optional]
+**createdByID** | **String** | Created By User ID | [optional]
+**createdDate** | **String** | Created Date | [optional]
+**lastModifiedByID** | **String** | Last Modified By User ID | [optional]
+**lastModifiedDate** | **String** | Last Modified Date | [optional]
+**name** | **String** | Industry Name | [optional]
+**description** | **String** | Industry Description | [optional]
+**parentIndustryID** | **String** | The ID of the Parent Industry | [optional]
+**level** | **String** | The hierarchical level of this Industry | [optional]
+**path** | **String** | The full path of this industry, including Parent | [optional]
+**slug** | **String** | The CMS Slug for this Industry | [optional]
+**siteURL** | **String** | The URL of the corresponding page on the CMS | [optional]
+
+
diff --git a/client/sf-gate/docs/IndustryProduct.md b/client/sf-gate/docs/IndustryProduct.md
new file mode 100644
index 0000000..56ece57
--- /dev/null
+++ b/client/sf-gate/docs/IndustryProduct.md
@@ -0,0 +1,16 @@
+# SfGate.IndustryProduct
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ID** | **String** | Taxnexus Record Id | [optional]
+**createdByID** | **String** | Created By User ID | [optional]
+**createdDate** | **String** | Created Date | [optional]
+**lastModifiedByID** | **String** | Last Modified By User ID | [optional]
+**lastModifiedDate** | **String** | Last Modified Date | [optional]
+**industryID** | **String** | | [optional]
+**HTML** | **String** | | [optional]
+**companyProductID** | **String** | | [optional]
+
+
diff --git a/client/sf-gate/docs/IndustryProductRequest.md b/client/sf-gate/docs/IndustryProductRequest.md
new file mode 100644
index 0000000..3da678d
--- /dev/null
+++ b/client/sf-gate/docs/IndustryProductRequest.md
@@ -0,0 +1,9 @@
+# SfGate.IndustryProductRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**[IndustryProduct]**](IndustryProduct.md) | | [optional]
+
+
diff --git a/client/sf-gate/docs/IndustryProductResponse.md b/client/sf-gate/docs/IndustryProductResponse.md
new file mode 100644
index 0000000..abfdf4f
--- /dev/null
+++ b/client/sf-gate/docs/IndustryProductResponse.md
@@ -0,0 +1,10 @@
+# SfGate.IndustryProductResponse
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**[IndustryProduct]**](IndustryProduct.md) | | [optional]
+**meta** | [**ResponseMeta**](ResponseMeta.md) | | [optional]
+
+
diff --git a/client/sf-gate/docs/IndustryProductsApi.md b/client/sf-gate/docs/IndustryProductsApi.md
new file mode 100644
index 0000000..ea0d87a
--- /dev/null
+++ b/client/sf-gate/docs/IndustryProductsApi.md
@@ -0,0 +1,60 @@
+# SfGate.IndustryProductsApi
+
+All URIs are relative to *http://sf-gate.vernonkeenan.com:8080/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**postIndustryproducts**](IndustryProductsApi.md#postIndustryproducts) | **POST** /industryproducts | Add a new industryproduct to Taxnexus
+
+
+
+## postIndustryproducts
+
+> IndustryProductResponse postIndustryproducts(industryRequest)
+
+Add a new industryproduct to Taxnexus
+
+Industry record to be added
+
+### Example
+
+```javascript
+import SfGate from 'sf_gate';
+let defaultClient = SfGate.ApiClient.instance;
+// Configure API key authorization: ApiKeyAuth
+let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix = 'Token';
+
+let apiInstance = new SfGate.IndustryProductsApi();
+let industryRequest = new SfGate.IndustryProductRequest(); // IndustryProductRequest | An array of new Industry records
+apiInstance.postIndustryproducts(industryRequest, (error, data, response) => {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+});
+```
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **industryRequest** | [**IndustryProductRequest**](IndustryProductRequest.md)| An array of new Industry records |
+
+### Return type
+
+[**IndustryProductResponse**](IndustryProductResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
diff --git a/client/sf-gate/docs/IndustryRequest.md b/client/sf-gate/docs/IndustryRequest.md
new file mode 100644
index 0000000..0736351
--- /dev/null
+++ b/client/sf-gate/docs/IndustryRequest.md
@@ -0,0 +1,9 @@
+# SfGate.IndustryRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**[Industry]**](Industry.md) | | [optional]
+
+
diff --git a/client/sf-gate/docs/IndustryResponse.md b/client/sf-gate/docs/IndustryResponse.md
new file mode 100644
index 0000000..2bff767
--- /dev/null
+++ b/client/sf-gate/docs/IndustryResponse.md
@@ -0,0 +1,10 @@
+# SfGate.IndustryResponse
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**data** | [**[Industry]**](Industry.md) | | [optional]
+**meta** | [**ResponseMeta**](ResponseMeta.md) | | [optional]
+
+
diff --git a/client/sf-gate/docs/IndustryproductsApi.md b/client/sf-gate/docs/IndustryproductsApi.md
new file mode 100644
index 0000000..fae3f00
--- /dev/null
+++ b/client/sf-gate/docs/IndustryproductsApi.md
@@ -0,0 +1,68 @@
+# SfGate.IndustryproductsApi
+
+All URIs are relative to *http://sf-gate.vernonkeenan.com:8080/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**getIndustryProducts**](IndustryproductsApi.md#getIndustryProducts) | **GET** /industryproducts | Get a list of industryproducts
+
+
+
+## getIndustryProducts
+
+> IndustryProductResponse getIndustryProducts(opts)
+
+Get a list of industryproducts
+
+Return a list of all available IndustryProducts
+
+### Example
+
+```javascript
+import SfGate from 'sf_gate';
+let defaultClient = SfGate.ApiClient.instance;
+// Configure API key authorization: ApiKeyAuth
+let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
+ApiKeyAuth.apiKey = 'YOUR API KEY';
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//ApiKeyAuth.apiKeyPrefix = 'Token';
+
+let apiInstance = new SfGate.IndustryproductsApi();
+let opts = {
+ 'limit': 789, // Number | How many objects to return at one time
+ 'offset': 789, // Number | How many objects to skip?
+ 'active': true, // Boolean | Only retrieve active records?
+ 'industryProductId': "industryProductId_example" // String | Taxnexus IndustryProduct record ID
+};
+apiInstance.getIndustryProducts(opts, (error, data, response) => {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+});
+```
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **limit** | **Number**| How many objects to return at one time | [optional]
+ **offset** | **Number**| How many objects to skip? | [optional]
+ **active** | **Boolean**| Only retrieve active records? | [optional]
+ **industryProductId** | **String**| Taxnexus IndustryProduct record ID | [optional]
+
+### Return type
+
+[**IndustryProductResponse**](IndustryProductResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
diff --git a/client/sf-gate/src/api/AssetsApi.js b/client/sf-gate/src/api/AssetsApi.js
new file mode 100644
index 0000000..0ee2ccf
--- /dev/null
+++ b/client/sf-gate/src/api/AssetsApi.js
@@ -0,0 +1,129 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from "../ApiClient";
+import AssetRequest from '../model/AssetRequest';
+import AssetResponse from '../model/AssetResponse';
+import Error from '../model/Error';
+
+/**
+* Assets service.
+* @module api/AssetsApi
+* @version 0.0.2
+*/
+export default class AssetsApi {
+
+ /**
+ * Constructs a new AssetsApi.
+ * @alias module:api/AssetsApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ constructor(apiClient) {
+ this.apiClient = apiClient || ApiClient.instance;
+ }
+
+
+ /**
+ * Callback function to receive the result of the getAssets operation.
+ * @callback module:api/AssetsApi~getAssetsCallback
+ * @param {String} error Error message, if any.
+ * @param {module:model/AssetResponse} data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * Get a list of assets
+ * Return a list of all available Assets
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.limit How many objects to return at one time
+ * @param {Number} opts.offset How many objects to skip?
+ * @param {Boolean} opts.active Only retrieve active records?
+ * @param {String} opts.assetId Taxnexus Record Id of an Asset
+ * @param {module:api/AssetsApi~getAssetsCallback} callback The callback function, accepting three arguments: error, data, response
+ * data is of type: {@link module:model/AssetResponse}
+ */
+ getAssets(opts, callback) {
+ opts = opts || {};
+ let postBody = null;
+
+ let pathParams = {
+ };
+ let queryParams = {
+ 'limit': opts['limit'],
+ 'offset': opts['offset'],
+ 'active': opts['active'],
+ 'assetId': opts['assetId']
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = ['ApiKeyAuth'];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = AssetResponse;
+ return this.apiClient.callApi(
+ '/assets', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null, callback
+ );
+ }
+
+ /**
+ * Callback function to receive the result of the postAssets operation.
+ * @callback module:api/AssetsApi~postAssetsCallback
+ * @param {String} error Error message, if any.
+ * @param {module:model/AssetResponse} data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * Add a new asset to Taxnexus
+ * Industry record to be added
+ * @param {module:model/AssetRequest} assetRequest An array of new Asset records
+ * @param {module:api/AssetsApi~postAssetsCallback} callback The callback function, accepting three arguments: error, data, response
+ * data is of type: {@link module:model/AssetResponse}
+ */
+ postAssets(assetRequest, callback) {
+ let postBody = assetRequest;
+ // verify the required parameter 'assetRequest' is set
+ if (assetRequest === undefined || assetRequest === null) {
+ throw new Error("Missing the required parameter 'assetRequest' when calling postAssets");
+ }
+
+ let pathParams = {
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = ['ApiKeyAuth'];
+ let contentTypes = ['application/json'];
+ let accepts = ['application/json'];
+ let returnType = AssetResponse;
+ return this.apiClient.callApi(
+ '/assets', 'POST',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null, callback
+ );
+ }
+
+
+}
diff --git a/client/sf-gate/src/api/CompanyProductsApi.js b/client/sf-gate/src/api/CompanyProductsApi.js
new file mode 100644
index 0000000..63d08b3
--- /dev/null
+++ b/client/sf-gate/src/api/CompanyProductsApi.js
@@ -0,0 +1,129 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from "../ApiClient";
+import CompanyProductRequest from '../model/CompanyProductRequest';
+import CompanyProductResponse from '../model/CompanyProductResponse';
+import Error from '../model/Error';
+
+/**
+* CompanyProducts service.
+* @module api/CompanyProductsApi
+* @version 0.0.2
+*/
+export default class CompanyProductsApi {
+
+ /**
+ * Constructs a new CompanyProductsApi.
+ * @alias module:api/CompanyProductsApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ constructor(apiClient) {
+ this.apiClient = apiClient || ApiClient.instance;
+ }
+
+
+ /**
+ * Callback function to receive the result of the getCompanyProducts operation.
+ * @callback module:api/CompanyProductsApi~getCompanyProductsCallback
+ * @param {String} error Error message, if any.
+ * @param {module:model/CompanyProductResponse} data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * Get a list of companyproducts
+ * Return a list of all available CompanyProducts
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.limit How many objects to return at one time
+ * @param {Number} opts.offset How many objects to skip?
+ * @param {Boolean} opts.active Only retrieve active records?
+ * @param {String} opts.companyProductId Taxnexus CompanyProduct record ID
+ * @param {module:api/CompanyProductsApi~getCompanyProductsCallback} callback The callback function, accepting three arguments: error, data, response
+ * data is of type: {@link module:model/CompanyProductResponse}
+ */
+ getCompanyProducts(opts, callback) {
+ opts = opts || {};
+ let postBody = null;
+
+ let pathParams = {
+ };
+ let queryParams = {
+ 'limit': opts['limit'],
+ 'offset': opts['offset'],
+ 'active': opts['active'],
+ 'companyProductId': opts['companyProductId']
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = ['ApiKeyAuth'];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = CompanyProductResponse;
+ return this.apiClient.callApi(
+ '/companyproducts', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null, callback
+ );
+ }
+
+ /**
+ * Callback function to receive the result of the postCompanyProducts operation.
+ * @callback module:api/CompanyProductsApi~postCompanyProductsCallback
+ * @param {String} error Error message, if any.
+ * @param {module:model/CompanyProductResponse} data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * Add a new companyproduct to Taxnexus
+ * Industry record to be added
+ * @param {module:model/CompanyProductRequest} contactRequest An array of new Contact records
+ * @param {module:api/CompanyProductsApi~postCompanyProductsCallback} callback The callback function, accepting three arguments: error, data, response
+ * data is of type: {@link module:model/CompanyProductResponse}
+ */
+ postCompanyProducts(contactRequest, callback) {
+ let postBody = contactRequest;
+ // verify the required parameter 'contactRequest' is set
+ if (contactRequest === undefined || contactRequest === null) {
+ throw new Error("Missing the required parameter 'contactRequest' when calling postCompanyProducts");
+ }
+
+ let pathParams = {
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = ['ApiKeyAuth'];
+ let contentTypes = ['application/json'];
+ let accepts = ['application/json'];
+ let returnType = CompanyProductResponse;
+ return this.apiClient.callApi(
+ '/companyproducts', 'POST',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null, callback
+ );
+ }
+
+
+}
diff --git a/client/sf-gate/src/api/IndustriesApi.js b/client/sf-gate/src/api/IndustriesApi.js
new file mode 100644
index 0000000..3d43039
--- /dev/null
+++ b/client/sf-gate/src/api/IndustriesApi.js
@@ -0,0 +1,129 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from "../ApiClient";
+import Error from '../model/Error';
+import IndustryRequest from '../model/IndustryRequest';
+import IndustryResponse from '../model/IndustryResponse';
+
+/**
+* Industries service.
+* @module api/IndustriesApi
+* @version 0.0.2
+*/
+export default class IndustriesApi {
+
+ /**
+ * Constructs a new IndustriesApi.
+ * @alias module:api/IndustriesApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ constructor(apiClient) {
+ this.apiClient = apiClient || ApiClient.instance;
+ }
+
+
+ /**
+ * Callback function to receive the result of the getIndustries operation.
+ * @callback module:api/IndustriesApi~getIndustriesCallback
+ * @param {String} error Error message, if any.
+ * @param {module:model/IndustryResponse} data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * Get a list of industries
+ * Return a list of all available Industries
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.limit How many objects to return at one time
+ * @param {Number} opts.offset How many objects to skip?
+ * @param {Boolean} opts.active Only retrieve active records?
+ * @param {String} opts.industryId Taxnexus Industry record ID
+ * @param {module:api/IndustriesApi~getIndustriesCallback} callback The callback function, accepting three arguments: error, data, response
+ * data is of type: {@link module:model/IndustryResponse}
+ */
+ getIndustries(opts, callback) {
+ opts = opts || {};
+ let postBody = null;
+
+ let pathParams = {
+ };
+ let queryParams = {
+ 'limit': opts['limit'],
+ 'offset': opts['offset'],
+ 'active': opts['active'],
+ 'industryId': opts['industryId']
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = ['ApiKeyAuth'];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = IndustryResponse;
+ return this.apiClient.callApi(
+ '/industries', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null, callback
+ );
+ }
+
+ /**
+ * Callback function to receive the result of the postIndustries operation.
+ * @callback module:api/IndustriesApi~postIndustriesCallback
+ * @param {String} error Error message, if any.
+ * @param {module:model/IndustryResponse} data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * Add a new industry to Taxnexus
+ * Industry record to be added
+ * @param {module:model/IndustryRequest} industryRequest An array of new Industry records
+ * @param {module:api/IndustriesApi~postIndustriesCallback} callback The callback function, accepting three arguments: error, data, response
+ * data is of type: {@link module:model/IndustryResponse}
+ */
+ postIndustries(industryRequest, callback) {
+ let postBody = industryRequest;
+ // verify the required parameter 'industryRequest' is set
+ if (industryRequest === undefined || industryRequest === null) {
+ throw new Error("Missing the required parameter 'industryRequest' when calling postIndustries");
+ }
+
+ let pathParams = {
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = ['ApiKeyAuth'];
+ let contentTypes = ['application/json'];
+ let accepts = ['application/json'];
+ let returnType = IndustryResponse;
+ return this.apiClient.callApi(
+ '/industries', 'POST',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null, callback
+ );
+ }
+
+
+}
diff --git a/client/sf-gate/src/api/IndustryProductsApi.js b/client/sf-gate/src/api/IndustryProductsApi.js
new file mode 100644
index 0000000..ab780c8
--- /dev/null
+++ b/client/sf-gate/src/api/IndustryProductsApi.js
@@ -0,0 +1,82 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from "../ApiClient";
+import Error from '../model/Error';
+import IndustryProductRequest from '../model/IndustryProductRequest';
+import IndustryProductResponse from '../model/IndustryProductResponse';
+
+/**
+* IndustryProducts service.
+* @module api/IndustryProductsApi
+* @version 0.0.2
+*/
+export default class IndustryProductsApi {
+
+ /**
+ * Constructs a new IndustryProductsApi.
+ * @alias module:api/IndustryProductsApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ constructor(apiClient) {
+ this.apiClient = apiClient || ApiClient.instance;
+ }
+
+
+ /**
+ * Callback function to receive the result of the postIndustryproducts operation.
+ * @callback module:api/IndustryProductsApi~postIndustryproductsCallback
+ * @param {String} error Error message, if any.
+ * @param {module:model/IndustryProductResponse} data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * Add a new industryproduct to Taxnexus
+ * Industry record to be added
+ * @param {module:model/IndustryProductRequest} industryRequest An array of new Industry records
+ * @param {module:api/IndustryProductsApi~postIndustryproductsCallback} callback The callback function, accepting three arguments: error, data, response
+ * data is of type: {@link module:model/IndustryProductResponse}
+ */
+ postIndustryproducts(industryRequest, callback) {
+ let postBody = industryRequest;
+ // verify the required parameter 'industryRequest' is set
+ if (industryRequest === undefined || industryRequest === null) {
+ throw new Error("Missing the required parameter 'industryRequest' when calling postIndustryproducts");
+ }
+
+ let pathParams = {
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = ['ApiKeyAuth'];
+ let contentTypes = ['application/json'];
+ let accepts = ['application/json'];
+ let returnType = IndustryProductResponse;
+ return this.apiClient.callApi(
+ '/industryproducts', 'POST',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null, callback
+ );
+ }
+
+
+}
diff --git a/client/sf-gate/src/api/IndustryproductsApi.js b/client/sf-gate/src/api/IndustryproductsApi.js
new file mode 100644
index 0000000..1e84614
--- /dev/null
+++ b/client/sf-gate/src/api/IndustryproductsApi.js
@@ -0,0 +1,86 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from "../ApiClient";
+import Error from '../model/Error';
+import IndustryProductResponse from '../model/IndustryProductResponse';
+
+/**
+* Industryproducts service.
+* @module api/IndustryproductsApi
+* @version 0.0.2
+*/
+export default class IndustryproductsApi {
+
+ /**
+ * Constructs a new IndustryproductsApi.
+ * @alias module:api/IndustryproductsApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ constructor(apiClient) {
+ this.apiClient = apiClient || ApiClient.instance;
+ }
+
+
+ /**
+ * Callback function to receive the result of the getIndustryProducts operation.
+ * @callback module:api/IndustryproductsApi~getIndustryProductsCallback
+ * @param {String} error Error message, if any.
+ * @param {module:model/IndustryProductResponse} data The data returned by the service call.
+ * @param {String} response The complete HTTP response.
+ */
+
+ /**
+ * Get a list of industryproducts
+ * Return a list of all available IndustryProducts
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.limit How many objects to return at one time
+ * @param {Number} opts.offset How many objects to skip?
+ * @param {Boolean} opts.active Only retrieve active records?
+ * @param {String} opts.industryProductId Taxnexus IndustryProduct record ID
+ * @param {module:api/IndustryproductsApi~getIndustryProductsCallback} callback The callback function, accepting three arguments: error, data, response
+ * data is of type: {@link module:model/IndustryProductResponse}
+ */
+ getIndustryProducts(opts, callback) {
+ opts = opts || {};
+ let postBody = null;
+
+ let pathParams = {
+ };
+ let queryParams = {
+ 'limit': opts['limit'],
+ 'offset': opts['offset'],
+ 'active': opts['active'],
+ 'industryProductId': opts['industryProductId']
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = ['ApiKeyAuth'];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = IndustryProductResponse;
+ return this.apiClient.callApi(
+ '/industryproducts', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null, callback
+ );
+ }
+
+
+}
diff --git a/client/sf-gate/src/index.js b/client/sf-gate/src/index.js
index e26b8e5..2d849cf 100644
--- a/client/sf-gate/src/index.js
+++ b/client/sf-gate/src/index.js
@@ -17,9 +17,15 @@ import Account from './model/Account';
import AccountRequest from './model/AccountRequest';
import AccountResponse from './model/AccountResponse';
import Address from './model/Address';
+import Asset from './model/Asset';
+import AssetRequest from './model/AssetRequest';
+import AssetResponse from './model/AssetResponse';
import Cluster from './model/Cluster';
import ClusterRequest from './model/ClusterRequest';
import ClusterResponse from './model/ClusterResponse';
+import CompanyProduct from './model/CompanyProduct';
+import CompanyProductRequest from './model/CompanyProductRequest';
+import CompanyProductResponse from './model/CompanyProductResponse';
import Contact from './model/Contact';
import ContactRequest from './model/ContactRequest';
import ContactResponse from './model/ContactResponse';
@@ -31,6 +37,12 @@ import DatabaseRequest from './model/DatabaseRequest';
import DatabaseResponse from './model/DatabaseResponse';
import DeleteResponse from './model/DeleteResponse';
import Error from './model/Error';
+import Industry from './model/Industry';
+import IndustryProduct from './model/IndustryProduct';
+import IndustryProductRequest from './model/IndustryProductRequest';
+import IndustryProductResponse from './model/IndustryProductResponse';
+import IndustryRequest from './model/IndustryRequest';
+import IndustryResponse from './model/IndustryResponse';
import InvalidError from './model/InvalidError';
import InvalidErrorAllOf from './model/InvalidErrorAllOf';
import Message from './model/Message';
@@ -50,10 +62,15 @@ import User from './model/User';
import UserResponse from './model/UserResponse';
import UserRole from './model/UserRole';
import AccountsApi from './api/AccountsApi';
+import AssetsApi from './api/AssetsApi';
import ClustersApi from './api/ClustersApi';
+import CompanyProductsApi from './api/CompanyProductsApi';
import ContactsApi from './api/ContactsApi';
import ContractsApi from './api/ContractsApi';
import DatabasesApi from './api/DatabasesApi';
+import IndustriesApi from './api/IndustriesApi';
+import IndustryProductsApi from './api/IndustryProductsApi';
+import IndustryproductsApi from './api/IndustryproductsApi';
import RolesApi from './api/RolesApi';
import TemplatesApi from './api/TemplatesApi';
import TenantsApi from './api/TenantsApi';
@@ -122,6 +139,24 @@ export {
*/
Address,
+ /**
+ * The Asset model constructor.
+ * @property {module:model/Asset}
+ */
+ Asset,
+
+ /**
+ * The AssetRequest model constructor.
+ * @property {module:model/AssetRequest}
+ */
+ AssetRequest,
+
+ /**
+ * The AssetResponse model constructor.
+ * @property {module:model/AssetResponse}
+ */
+ AssetResponse,
+
/**
* The Cluster model constructor.
* @property {module:model/Cluster}
@@ -140,6 +175,24 @@ export {
*/
ClusterResponse,
+ /**
+ * The CompanyProduct model constructor.
+ * @property {module:model/CompanyProduct}
+ */
+ CompanyProduct,
+
+ /**
+ * The CompanyProductRequest model constructor.
+ * @property {module:model/CompanyProductRequest}
+ */
+ CompanyProductRequest,
+
+ /**
+ * The CompanyProductResponse model constructor.
+ * @property {module:model/CompanyProductResponse}
+ */
+ CompanyProductResponse,
+
/**
* The Contact model constructor.
* @property {module:model/Contact}
@@ -206,6 +259,42 @@ export {
*/
Error,
+ /**
+ * The Industry model constructor.
+ * @property {module:model/Industry}
+ */
+ Industry,
+
+ /**
+ * The IndustryProduct model constructor.
+ * @property {module:model/IndustryProduct}
+ */
+ IndustryProduct,
+
+ /**
+ * The IndustryProductRequest model constructor.
+ * @property {module:model/IndustryProductRequest}
+ */
+ IndustryProductRequest,
+
+ /**
+ * The IndustryProductResponse model constructor.
+ * @property {module:model/IndustryProductResponse}
+ */
+ IndustryProductResponse,
+
+ /**
+ * The IndustryRequest model constructor.
+ * @property {module:model/IndustryRequest}
+ */
+ IndustryRequest,
+
+ /**
+ * The IndustryResponse model constructor.
+ * @property {module:model/IndustryResponse}
+ */
+ IndustryResponse,
+
/**
* The InvalidError model constructor.
* @property {module:model/InvalidError}
@@ -320,12 +409,24 @@ export {
*/
AccountsApi,
+ /**
+ * The AssetsApi service constructor.
+ * @property {module:api/AssetsApi}
+ */
+ AssetsApi,
+
/**
* The ClustersApi service constructor.
* @property {module:api/ClustersApi}
*/
ClustersApi,
+ /**
+ * The CompanyProductsApi service constructor.
+ * @property {module:api/CompanyProductsApi}
+ */
+ CompanyProductsApi,
+
/**
* The ContactsApi service constructor.
* @property {module:api/ContactsApi}
@@ -344,6 +445,24 @@ export {
*/
DatabasesApi,
+ /**
+ * The IndustriesApi service constructor.
+ * @property {module:api/IndustriesApi}
+ */
+ IndustriesApi,
+
+ /**
+ * The IndustryProductsApi service constructor.
+ * @property {module:api/IndustryProductsApi}
+ */
+ IndustryProductsApi,
+
+ /**
+ * The IndustryproductsApi service constructor.
+ * @property {module:api/IndustryproductsApi}
+ */
+ IndustryproductsApi,
+
/**
* The RolesApi service constructor.
* @property {module:api/RolesApi}
diff --git a/client/sf-gate/src/model/Account.js b/client/sf-gate/src/model/Account.js
index 170b184..f664a61 100644
--- a/client/sf-gate/src/model/Account.js
+++ b/client/sf-gate/src/model/Account.js
@@ -48,269 +48,152 @@ class Account {
if (data) {
obj = obj || new Account();
- if (data.hasOwnProperty('tenantid')) {
- obj['tenantid'] = ApiClient.convertToType(data['tenantid'], 'String');
+ if (data.hasOwnProperty('TenantID')) {
+ obj['TenantID'] = ApiClient.convertToType(data['TenantID'], 'String');
}
- if (data.hasOwnProperty('accountnumber')) {
- obj['accountnumber'] = ApiClient.convertToType(data['accountnumber'], 'String');
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = ApiClient.convertToType(data['ID'], 'String');
}
- if (data.hasOwnProperty('accountsource')) {
- obj['accountsource'] = ApiClient.convertToType(data['accountsource'], 'String');
+ if (data.hasOwnProperty('AccountNumber')) {
+ obj['AccountNumber'] = ApiClient.convertToType(data['AccountNumber'], 'String');
}
- if (data.hasOwnProperty('active')) {
- obj['active'] = ApiClient.convertToType(data['active'], 'Boolean');
+ if (data.hasOwnProperty('AccountSource')) {
+ obj['AccountSource'] = ApiClient.convertToType(data['AccountSource'], 'String');
}
- if (data.hasOwnProperty('administrativelevel')) {
- obj['administrativelevel'] = ApiClient.convertToType(data['administrativelevel'], 'String');
+ if (data.hasOwnProperty('AnnualRevenue')) {
+ obj['AnnualRevenue'] = ApiClient.convertToType(data['AnnualRevenue'], 'Number');
}
- if (data.hasOwnProperty('amount')) {
- obj['amount'] = ApiClient.convertToType(data['amount'], 'Number');
+ if (data.hasOwnProperty('BillingAddress')) {
+ obj['BillingAddress'] = Address.constructFromObject(data['BillingAddress']);
}
- if (data.hasOwnProperty('amountinvoiced')) {
- obj['amountinvoiced'] = ApiClient.convertToType(data['amountinvoiced'], 'Number');
+ if (data.hasOwnProperty('BillingContactID')) {
+ obj['BillingContactID'] = ApiClient.convertToType(data['BillingContactID'], 'String');
}
- if (data.hasOwnProperty('amountpaid')) {
- obj['amountpaid'] = ApiClient.convertToType(data['amountpaid'], 'Number');
+ if (data.hasOwnProperty('CreatedByID')) {
+ obj['CreatedByID'] = ApiClient.convertToType(data['CreatedByID'], 'String');
}
- if (data.hasOwnProperty('annualrevenue')) {
- obj['annualrevenue'] = ApiClient.convertToType(data['annualrevenue'], 'Number');
+ if (data.hasOwnProperty('CreatedDate')) {
+ obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'String');
}
- if (data.hasOwnProperty('balance')) {
- obj['balance'] = ApiClient.convertToType(data['balance'], 'Number');
+ if (data.hasOwnProperty('CloseDate')) {
+ obj['CloseDate'] = ApiClient.convertToType(data['CloseDate'], 'String');
}
- if (data.hasOwnProperty('billingaddress')) {
- obj['billingaddress'] = Address.constructFromObject(data['billingaddress']);
+ if (data.hasOwnProperty('CloudRevenueTotal')) {
+ obj['CloudRevenueTotal'] = ApiClient.convertToType(data['CloudRevenueTotal'], 'Number');
}
- if (data.hasOwnProperty('billingcontactid')) {
- obj['billingcontactid'] = ApiClient.convertToType(data['billingcontactid'], 'String');
+ if (data.hasOwnProperty('CloudType')) {
+ obj['CloudType'] = ApiClient.convertToType(data['CloudType'], 'String');
}
- if (data.hasOwnProperty('billingpreference')) {
- obj['billingpreference'] = ApiClient.convertToType(data['billingpreference'], 'String');
+ if (data.hasOwnProperty('CloudYear')) {
+ obj['CloudYear'] = ApiClient.convertToType(data['CloudYear'], 'String');
}
- if (data.hasOwnProperty('businessaddress')) {
- obj['businessaddress'] = Address.constructFromObject(data['businessaddress']);
+ if (data.hasOwnProperty('CrunchbaseURL')) {
+ obj['CrunchbaseURL'] = ApiClient.convertToType(data['CrunchbaseURL'], 'String');
}
- if (data.hasOwnProperty('cannabiscustomer')) {
- obj['cannabiscustomer'] = ApiClient.convertToType(data['cannabiscustomer'], 'Boolean');
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = ApiClient.convertToType(data['Description'], 'String');
}
- if (data.hasOwnProperty('channelprogramlevelname')) {
- obj['channelprogramlevelname'] = ApiClient.convertToType(data['channelprogramlevelname'], 'String');
+ if (data.hasOwnProperty('EarningsCall')) {
+ obj['EarningsCall'] = ApiClient.convertToType(data['EarningsCall'], 'String');
}
- if (data.hasOwnProperty('channelprogramname')) {
- obj['channelprogramname'] = ApiClient.convertToType(data['channelprogramname'], 'String');
+ if (data.hasOwnProperty('Email')) {
+ obj['Email'] = ApiClient.convertToType(data['Email'], 'String');
}
- if (data.hasOwnProperty('clientenddate')) {
- obj['clientenddate'] = ApiClient.convertToType(data['clientenddate'], 'String');
+ if (data.hasOwnProperty('EquityFunding')) {
+ obj['EquityFunding'] = ApiClient.convertToType(data['EquityFunding'], 'Number');
}
- if (data.hasOwnProperty('clientstartdate')) {
- obj['clientstartdate'] = ApiClient.convertToType(data['clientstartdate'], 'String');
+ if (data.hasOwnProperty('Fax')) {
+ obj['Fax'] = ApiClient.convertToType(data['Fax'], 'String');
}
- if (data.hasOwnProperty('companyid')) {
- obj['companyid'] = ApiClient.convertToType(data['companyid'], 'String');
+ if (data.hasOwnProperty('FoundedDate')) {
+ obj['FoundedDate'] = ApiClient.convertToType(data['FoundedDate'], 'String');
}
- if (data.hasOwnProperty('coordinateid')) {
- obj['coordinateid'] = ApiClient.convertToType(data['coordinateid'], 'String');
+ if (data.hasOwnProperty('Industry')) {
+ obj['Industry'] = ApiClient.convertToType(data['Industry'], 'String');
}
- if (data.hasOwnProperty('createdbyid')) {
- obj['createdbyid'] = ApiClient.convertToType(data['createdbyid'], 'String');
+ if (data.hasOwnProperty('Facebook')) {
+ obj['Facebook'] = ApiClient.convertToType(data['Facebook'], 'String');
}
- if (data.hasOwnProperty('createddate')) {
- obj['createddate'] = ApiClient.convertToType(data['createddate'], 'String');
+ if (data.hasOwnProperty('Industries')) {
+ obj['Industries'] = ApiClient.convertToType(data['Industries'], 'String');
}
- if (data.hasOwnProperty('customerid')) {
- obj['customerid'] = ApiClient.convertToType(data['customerid'], 'String');
+ if (data.hasOwnProperty('IPODate')) {
+ obj['IPODate'] = ApiClient.convertToType(data['IPODate'], 'String');
}
- if (data.hasOwnProperty('customerpriority')) {
- obj['customerpriority'] = ApiClient.convertToType(data['customerpriority'], 'String');
+ if (data.hasOwnProperty('LastModifiedByID')) {
+ obj['LastModifiedByID'] = ApiClient.convertToType(data['LastModifiedByID'], 'String');
}
- if (data.hasOwnProperty('dandbcompanyid')) {
- obj['dandbcompanyid'] = ApiClient.convertToType(data['dandbcompanyid'], 'String');
+ if (data.hasOwnProperty('LastModifiedDate')) {
+ obj['LastModifiedDate'] = ApiClient.convertToType(data['LastModifiedDate'], 'String');
}
- if (data.hasOwnProperty('dba')) {
- obj['dba'] = ApiClient.convertToType(data['dba'], 'String');
+ if (data.hasOwnProperty('LinkedIn')) {
+ obj['LinkedIn'] = ApiClient.convertToType(data['LinkedIn'], 'String');
}
- if (data.hasOwnProperty('defaultaddress')) {
- obj['defaultaddress'] = Address.constructFromObject(data['defaultaddress']);
+ if (data.hasOwnProperty('Location')) {
+ obj['Location'] = ApiClient.convertToType(data['Location'], 'String');
}
- if (data.hasOwnProperty('defaultbackendid')) {
- obj['defaultbackendid'] = ApiClient.convertToType(data['defaultbackendid'], 'String');
+ if (data.hasOwnProperty('MarketCapitalization')) {
+ obj['MarketCapitalization'] = ApiClient.convertToType(data['MarketCapitalization'], 'Number');
}
- if (data.hasOwnProperty('defaultdeliverycontactid')) {
- obj['defaultdeliverycontactid'] = ApiClient.convertToType(data['defaultdeliverycontactid'], 'String');
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
}
- if (data.hasOwnProperty('defaultenduserid')) {
- obj['defaultenduserid'] = ApiClient.convertToType(data['defaultenduserid'], 'String');
+ if (data.hasOwnProperty('NumberOfEmployees')) {
+ obj['NumberOfEmployees'] = ApiClient.convertToType(data['NumberOfEmployees'], 'Number');
}
- if (data.hasOwnProperty('description')) {
- obj['description'] = ApiClient.convertToType(data['description'], 'String');
+ if (data.hasOwnProperty('NumberInvestments')) {
+ obj['NumberInvestments'] = ApiClient.convertToType(data['NumberInvestments'], 'Number');
}
- if (data.hasOwnProperty('dunsnumber')) {
- obj['dunsnumber'] = ApiClient.convertToType(data['dunsnumber'], 'String');
+ if (data.hasOwnProperty('OwnerID')) {
+ obj['OwnerID'] = ApiClient.convertToType(data['OwnerID'], 'String');
}
- if (data.hasOwnProperty('ein')) {
- obj['ein'] = ApiClient.convertToType(data['ein'], 'String');
+ if (data.hasOwnProperty('Ownership')) {
+ obj['Ownership'] = ApiClient.convertToType(data['Ownership'], 'String');
}
- if (data.hasOwnProperty('email')) {
- obj['email'] = ApiClient.convertToType(data['email'], 'String');
+ if (data.hasOwnProperty('ParentID')) {
+ obj['ParentID'] = ApiClient.convertToType(data['ParentID'], 'String');
}
- if (data.hasOwnProperty('enrollmentstatus')) {
- obj['enrollmentstatus'] = ApiClient.convertToType(data['enrollmentstatus'], 'String');
+ if (data.hasOwnProperty('Phone')) {
+ obj['Phone'] = ApiClient.convertToType(data['Phone'], 'String');
}
- if (data.hasOwnProperty('fax')) {
- obj['fax'] = ApiClient.convertToType(data['fax'], 'String');
+ if (data.hasOwnProperty('Publish')) {
+ obj['Publish'] = ApiClient.convertToType(data['Publish'], 'Boolean');
}
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'String');
+ if (data.hasOwnProperty('SalesforceFirst')) {
+ obj['SalesforceFirst'] = ApiClient.convertToType(data['SalesforceFirst'], 'Boolean');
}
- if (data.hasOwnProperty('industry')) {
- obj['industry'] = ApiClient.convertToType(data['industry'], 'String');
+ if (data.hasOwnProperty('ShippingAddress')) {
+ obj['ShippingAddress'] = Address.constructFromObject(data['ShippingAddress']);
}
- if (data.hasOwnProperty('iscustomerportal')) {
- obj['iscustomerportal'] = ApiClient.convertToType(data['iscustomerportal'], 'Boolean');
+ if (data.hasOwnProperty('ShippingContactID')) {
+ obj['ShippingContactID'] = ApiClient.convertToType(data['ShippingContactID'], 'String');
}
- if (data.hasOwnProperty('ispartner')) {
- obj['ispartner'] = ApiClient.convertToType(data['ispartner'], 'Boolean');
+ if (data.hasOwnProperty('SIC')) {
+ obj['SIC'] = ApiClient.convertToType(data['SIC'], 'String');
}
- if (data.hasOwnProperty('ispcustomer')) {
- obj['ispcustomer'] = ApiClient.convertToType(data['ispcustomer'], 'Boolean');
+ if (data.hasOwnProperty('SICDesc')) {
+ obj['SICDesc'] = ApiClient.convertToType(data['SICDesc'], 'String');
}
- if (data.hasOwnProperty('jigsaw')) {
- obj['jigsaw'] = ApiClient.convertToType(data['jigsaw'], 'String');
+ if (data.hasOwnProperty('Site')) {
+ obj['Site'] = ApiClient.convertToType(data['Site'], 'String');
}
- if (data.hasOwnProperty('lastmodifiedbyid')) {
- obj['lastmodifiedbyid'] = ApiClient.convertToType(data['lastmodifiedbyid'], 'String');
+ if (data.hasOwnProperty('TagLine')) {
+ obj['TagLine'] = ApiClient.convertToType(data['TagLine'], 'String');
}
- if (data.hasOwnProperty('lastmodifieddate')) {
- obj['lastmodifieddate'] = ApiClient.convertToType(data['lastmodifieddate'], 'String');
+ if (data.hasOwnProperty('TickerSymbol')) {
+ obj['TickerSymbol'] = ApiClient.convertToType(data['TickerSymbol'], 'String');
}
- if (data.hasOwnProperty('mspcustomer')) {
- obj['mspcustomer'] = ApiClient.convertToType(data['mspcustomer'], 'Boolean');
+ if (data.hasOwnProperty('Type')) {
+ obj['Type'] = ApiClient.convertToType(data['Type'], 'String');
}
- if (data.hasOwnProperty('naicscode')) {
- obj['naicscode'] = ApiClient.convertToType(data['naicscode'], 'String');
+ if (data.hasOwnProperty('Twitter')) {
+ obj['Twitter'] = ApiClient.convertToType(data['Twitter'], 'String');
}
- if (data.hasOwnProperty('naicsdesc')) {
- obj['naicsdesc'] = ApiClient.convertToType(data['naicsdesc'], 'String');
+ if (data.hasOwnProperty('Website')) {
+ obj['Website'] = ApiClient.convertToType(data['Website'], 'String');
}
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('numberofemployees')) {
- obj['numberofemployees'] = ApiClient.convertToType(data['numberofemployees'], 'Number');
- }
- if (data.hasOwnProperty('numberoflocations')) {
- obj['numberoflocations'] = ApiClient.convertToType(data['numberoflocations'], 'Number');
- }
- if (data.hasOwnProperty('opencharges')) {
- obj['opencharges'] = ApiClient.convertToType(data['opencharges'], 'Number');
- }
- if (data.hasOwnProperty('ordercontactid')) {
- obj['ordercontactid'] = ApiClient.convertToType(data['ordercontactid'], 'String');
- }
- if (data.hasOwnProperty('orderemail')) {
- obj['orderemail'] = ApiClient.convertToType(data['orderemail'], 'String');
- }
- if (data.hasOwnProperty('ownerid')) {
- obj['ownerid'] = ApiClient.convertToType(data['ownerid'], 'String');
- }
- if (data.hasOwnProperty('ownership')) {
- obj['ownership'] = ApiClient.convertToType(data['ownership'], 'String');
- }
- if (data.hasOwnProperty('parentfk')) {
- obj['parentfk'] = ApiClient.convertToType(data['parentfk'], 'String');
- }
- if (data.hasOwnProperty('parentid')) {
- obj['parentid'] = ApiClient.convertToType(data['parentid'], 'String');
- }
- if (data.hasOwnProperty('phone')) {
- obj['phone'] = ApiClient.convertToType(data['phone'], 'String');
- }
- if (data.hasOwnProperty('placeid')) {
- obj['placeid'] = ApiClient.convertToType(data['placeid'], 'String');
- }
- if (data.hasOwnProperty('preparerid')) {
- obj['preparerid'] = ApiClient.convertToType(data['preparerid'], 'String');
- }
- if (data.hasOwnProperty('rating')) {
- obj['rating'] = ApiClient.convertToType(data['rating'], 'String');
- }
- if (data.hasOwnProperty('ratingengineid')) {
- obj['ratingengineid'] = ApiClient.convertToType(data['ratingengineid'], 'String');
- }
- if (data.hasOwnProperty('ref')) {
- obj['ref'] = ApiClient.convertToType(data['ref'], 'String');
- }
- if (data.hasOwnProperty('revenuebase')) {
- obj['revenuebase'] = ApiClient.convertToType(data['revenuebase'], 'Number');
- }
- if (data.hasOwnProperty('revenuenet')) {
- obj['revenuenet'] = ApiClient.convertToType(data['revenuenet'], 'Number');
- }
- if (data.hasOwnProperty('revenuenottaxable')) {
- obj['revenuenottaxable'] = ApiClient.convertToType(data['revenuenottaxable'], 'Number');
- }
- if (data.hasOwnProperty('shippingaddress')) {
- obj['shippingaddress'] = Address.constructFromObject(data['shippingaddress']);
- }
- if (data.hasOwnProperty('shippingcensustract')) {
- obj['shippingcensustract'] = ApiClient.convertToType(data['shippingcensustract'], 'String');
- }
- if (data.hasOwnProperty('shippingcounty')) {
- obj['shippingcounty'] = ApiClient.convertToType(data['shippingcounty'], 'String');
- }
- if (data.hasOwnProperty('shippingcontactid')) {
- obj['shippingcontactid'] = ApiClient.convertToType(data['shippingcontactid'], 'String');
- }
- if (data.hasOwnProperty('sic')) {
- obj['sic'] = ApiClient.convertToType(data['sic'], 'String');
- }
- if (data.hasOwnProperty('sicdesc')) {
- obj['sicdesc'] = ApiClient.convertToType(data['sicdesc'], 'String');
- }
- if (data.hasOwnProperty('site')) {
- obj['site'] = ApiClient.convertToType(data['site'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'String');
- }
- if (data.hasOwnProperty('taxexemption')) {
- obj['taxexemption'] = ApiClient.convertToType(data['taxexemption'], 'String');
- }
- if (data.hasOwnProperty('taxontax')) {
- obj['taxontax'] = ApiClient.convertToType(data['taxontax'], 'Number');
- }
- if (data.hasOwnProperty('telecomcustomer')) {
- obj['telecomcustomer'] = ApiClient.convertToType(data['telecomcustomer'], 'Boolean');
- }
- if (data.hasOwnProperty('tickersymbol')) {
- obj['tickersymbol'] = ApiClient.convertToType(data['tickersymbol'], 'String');
- }
- if (data.hasOwnProperty('tradestyle')) {
- obj['tradestyle'] = ApiClient.convertToType(data['tradestyle'], 'String');
- }
- if (data.hasOwnProperty('type')) {
- obj['type'] = ApiClient.convertToType(data['type'], 'String');
- }
- if (data.hasOwnProperty('unappliedpayments')) {
- obj['unappliedpayments'] = ApiClient.convertToType(data['unappliedpayments'], 'Number');
- }
- if (data.hasOwnProperty('unitbase')) {
- obj['unitbase'] = ApiClient.convertToType(data['unitbase'], 'Number');
- }
- if (data.hasOwnProperty('upsellopportunity')) {
- obj['upsellopportunity'] = ApiClient.convertToType(data['upsellopportunity'], 'String');
- }
- if (data.hasOwnProperty('website')) {
- obj['website'] = ApiClient.convertToType(data['website'], 'String');
- }
- if (data.hasOwnProperty('whmcsclientid')) {
- obj['whmcsclientid'] = ApiClient.convertToType(data['whmcsclientid'], 'Number');
- }
- if (data.hasOwnProperty('xerocontactid')) {
- obj['xerocontactid'] = ApiClient.convertToType(data['xerocontactid'], 'String');
- }
- if (data.hasOwnProperty('yearstarted')) {
- obj['yearstarted'] = ApiClient.convertToType(data['yearstarted'], 'String');
+ if (data.hasOwnProperty('YearStarted')) {
+ obj['YearStarted'] = ApiClient.convertToType(data['YearStarted'], 'String');
}
}
return obj;
@@ -321,527 +204,276 @@ class Account {
/**
* tenant identifier
- * @member {String} tenantid
+ * @member {String} TenantID
*/
-Account.prototype['tenantid'] = undefined;
-
-/**
- * Account Number
- * @member {String} accountnumber
- */
-Account.prototype['accountnumber'] = undefined;
-
-/**
- * The marketing orgin of this account
- * @member {String} accountsource
- */
-Account.prototype['accountsource'] = undefined;
-
-/**
- * Active
- * @member {Boolean} active
- */
-Account.prototype['active'] = undefined;
-
-/**
- * For tax authorities, this account's administrative level, e.g. Local, County, State or Federal
- * @member {String} administrativelevel
- */
-Account.prototype['administrativelevel'] = undefined;
-
-/**
- * Rollup Tax Amount
- * @member {Number} amount
- */
-Account.prototype['amount'] = undefined;
-
-/**
- * Amount Invoiced
- * @member {Number} amountinvoiced
- */
-Account.prototype['amountinvoiced'] = undefined;
-
-/**
- * Amount Paid
- * @member {Number} amountpaid
- */
-Account.prototype['amountpaid'] = undefined;
-
-/**
- * Annual Revenue Estimate
- * @member {Number} annualrevenue
- */
-Account.prototype['annualrevenue'] = undefined;
-
-/**
- * Account Balance
- * @member {Number} balance
- */
-Account.prototype['balance'] = undefined;
-
-/**
- * @member {module:model/Address} billingaddress
- */
-Account.prototype['billingaddress'] = undefined;
-
-/**
- * Contact ID
- * @member {String} billingcontactid
- */
-Account.prototype['billingcontactid'] = undefined;
-
-/**
- * Billing Preference
- * @member {String} billingpreference
- */
-Account.prototype['billingpreference'] = undefined;
-
-/**
- * @member {module:model/Address} businessaddress
- */
-Account.prototype['businessaddress'] = undefined;
-
-/**
- * Is this a cannabis customer?
- * @member {Boolean} cannabiscustomer
- */
-Account.prototype['cannabiscustomer'] = undefined;
-
-/**
- * Channel Program Level Name
- * @member {String} channelprogramlevelname
- */
-Account.prototype['channelprogramlevelname'] = undefined;
-
-/**
- * Channel Program Name
- * @member {String} channelprogramname
- */
-Account.prototype['channelprogramname'] = undefined;
-
-/**
- * Client End Date
- * @member {String} clientenddate
- */
-Account.prototype['clientenddate'] = undefined;
-
-/**
- * Client Start Date
- * @member {String} clientstartdate
- */
-Account.prototype['clientstartdate'] = undefined;
-
-/**
- * The Company ID of this Account
- * @member {String} companyid
- */
-Account.prototype['companyid'] = undefined;
-
-/**
- * The Id of the geo coordinates of this account
- * @member {String} coordinateid
- */
-Account.prototype['coordinateid'] = undefined;
-
-/**
- * Created By User ID
- * @member {String} createdbyid
- */
-Account.prototype['createdbyid'] = undefined;
-
-/**
- * Created Date
- * @member {String} createddate
- */
-Account.prototype['createddate'] = undefined;
-
-/**
- * Customer ID from source system
- * @member {String} customerid
- */
-Account.prototype['customerid'] = undefined;
-
-/**
- * Customer Priority
- * @member {String} customerpriority
- */
-Account.prototype['customerpriority'] = undefined;
-
-/**
- * D-n-B Company
- * @member {String} dandbcompanyid
- */
-Account.prototype['dandbcompanyid'] = undefined;
-
-/**
- * This Account's 'Doing Business As' name
- * @member {String} dba
- */
-Account.prototype['dba'] = undefined;
-
-/**
- * @member {module:model/Address} defaultaddress
- */
-Account.prototype['defaultaddress'] = undefined;
-
-/**
- * Default Backend ID
- * @member {String} defaultbackendid
- */
-Account.prototype['defaultbackendid'] = undefined;
-
-/**
- * Default Delivery Address Contact ID
- * @member {String} defaultdeliverycontactid
- */
-Account.prototype['defaultdeliverycontactid'] = undefined;
-
-/**
- * Default End User Contact ID
- * @member {String} defaultenduserid
- */
-Account.prototype['defaultenduserid'] = undefined;
-
-/**
- * Description
- * @member {String} description
- */
-Account.prototype['description'] = undefined;
-
-/**
- * D-U-N-S Number
- * @member {String} dunsnumber
- */
-Account.prototype['dunsnumber'] = undefined;
-
-/**
- * EIN
- * @member {String} ein
- */
-Account.prototype['ein'] = undefined;
-
-/**
- * Main Account Email
- * @member {String} email
- */
-Account.prototype['email'] = undefined;
-
-/**
- * Enrollment Status
- * @member {String} enrollmentstatus
- */
-Account.prototype['enrollmentstatus'] = undefined;
-
-/**
- * Fax
- * @member {String} fax
- */
-Account.prototype['fax'] = undefined;
+Account.prototype['TenantID'] = undefined;
/**
* Taxnexus Account Id
- * @member {String} id
+ * @member {String} ID
*/
-Account.prototype['id'] = undefined;
+Account.prototype['ID'] = undefined;
+
+/**
+ * Account Number
+ * @member {String} AccountNumber
+ */
+Account.prototype['AccountNumber'] = undefined;
+
+/**
+ * The marketing orgin of this account
+ * @member {String} AccountSource
+ */
+Account.prototype['AccountSource'] = undefined;
+
+/**
+ * Annual Revenue Estimate
+ * @member {Number} AnnualRevenue
+ */
+Account.prototype['AnnualRevenue'] = undefined;
+
+/**
+ * @member {module:model/Address} BillingAddress
+ */
+Account.prototype['BillingAddress'] = undefined;
+
+/**
+ * Contact ID
+ * @member {String} BillingContactID
+ */
+Account.prototype['BillingContactID'] = undefined;
+
+/**
+ * Created By User ID
+ * @member {String} CreatedByID
+ */
+Account.prototype['CreatedByID'] = undefined;
+
+/**
+ * Created Date
+ * @member {String} CreatedDate
+ */
+Account.prototype['CreatedDate'] = undefined;
+
+/**
+ * Date company closed
+ * @member {String} CloseDate
+ */
+Account.prototype['CloseDate'] = undefined;
+
+/**
+ * @member {Number} CloudRevenueTotal
+ */
+Account.prototype['CloudRevenueTotal'] = undefined;
+
+/**
+ * @member {String} CloudType
+ */
+Account.prototype['CloudType'] = undefined;
+
+/**
+ * @member {String} CloudYear
+ */
+Account.prototype['CloudYear'] = undefined;
+
+/**
+ * @member {String} CrunchbaseURL
+ */
+Account.prototype['CrunchbaseURL'] = undefined;
+
+/**
+ * Description
+ * @member {String} Description
+ */
+Account.prototype['Description'] = undefined;
+
+/**
+ * @member {String} EarningsCall
+ */
+Account.prototype['EarningsCall'] = undefined;
+
+/**
+ * Main Account Email
+ * @member {String} Email
+ */
+Account.prototype['Email'] = undefined;
+
+/**
+ * @member {Number} EquityFunding
+ */
+Account.prototype['EquityFunding'] = undefined;
+
+/**
+ * Fax
+ * @member {String} Fax
+ */
+Account.prototype['Fax'] = undefined;
+
+/**
+ * @member {String} FoundedDate
+ */
+Account.prototype['FoundedDate'] = undefined;
/**
* Industry
- * @member {String} industry
+ * @member {String} Industry
*/
-Account.prototype['industry'] = undefined;
+Account.prototype['Industry'] = undefined;
/**
- * Customer Portal Account
- * @member {Boolean} iscustomerportal
+ * @member {String} Facebook
*/
-Account.prototype['iscustomerportal'] = undefined;
+Account.prototype['Facebook'] = undefined;
/**
- * Partner Account
- * @member {Boolean} ispartner
+ * @member {String} Industries
*/
-Account.prototype['ispartner'] = undefined;
+Account.prototype['Industries'] = undefined;
/**
- * ISP Customer?
- * @member {Boolean} ispcustomer
+ * @member {String} IPODate
*/
-Account.prototype['ispcustomer'] = undefined;
-
-/**
- * Data.com Key
- * @member {String} jigsaw
- */
-Account.prototype['jigsaw'] = undefined;
+Account.prototype['IPODate'] = undefined;
/**
* Last Modified By User ID
- * @member {String} lastmodifiedbyid
+ * @member {String} LastModifiedByID
*/
-Account.prototype['lastmodifiedbyid'] = undefined;
+Account.prototype['LastModifiedByID'] = undefined;
/**
* Last Modified Date
- * @member {String} lastmodifieddate
+ * @member {String} LastModifiedDate
*/
-Account.prototype['lastmodifieddate'] = undefined;
+Account.prototype['LastModifiedDate'] = undefined;
/**
- * MSP Customer?
- * @member {Boolean} mspcustomer
+ * @member {String} LinkedIn
*/
-Account.prototype['mspcustomer'] = undefined;
+Account.prototype['LinkedIn'] = undefined;
/**
- * NAICS Code
- * @member {String} naicscode
+ * @member {String} Location
*/
-Account.prototype['naicscode'] = undefined;
+Account.prototype['Location'] = undefined;
/**
- * NAICS Description
- * @member {String} naicsdesc
+ * @member {Number} MarketCapitalization
*/
-Account.prototype['naicsdesc'] = undefined;
+Account.prototype['MarketCapitalization'] = undefined;
/**
* Account Name
- * @member {String} name
+ * @member {String} Name
*/
-Account.prototype['name'] = undefined;
+Account.prototype['Name'] = undefined;
/**
* Employee Count Estimate
- * @member {Number} numberofemployees
+ * @member {Number} NumberOfEmployees
*/
-Account.prototype['numberofemployees'] = undefined;
+Account.prototype['NumberOfEmployees'] = undefined;
/**
* Number of Locations Estimate
- * @member {Number} numberoflocations
+ * @member {Number} NumberInvestments
*/
-Account.prototype['numberoflocations'] = undefined;
-
-/**
- * Open Charges
- * @member {Number} opencharges
- */
-Account.prototype['opencharges'] = undefined;
-
-/**
- * Vendor Order Contact ID
- * @member {String} ordercontactid
- */
-Account.prototype['ordercontactid'] = undefined;
-
-/**
- * Order Email
- * @member {String} orderemail
- */
-Account.prototype['orderemail'] = undefined;
+Account.prototype['NumberInvestments'] = undefined;
/**
* Account Owner User ID
- * @member {String} ownerid
+ * @member {String} OwnerID
*/
-Account.prototype['ownerid'] = undefined;
+Account.prototype['OwnerID'] = undefined;
/**
* Ownership
- * @member {String} ownership
+ * @member {String} Ownership
*/
-Account.prototype['ownership'] = undefined;
-
-/**
- * Parent Foreign Key
- * @member {String} parentfk
- */
-Account.prototype['parentfk'] = undefined;
+Account.prototype['Ownership'] = undefined;
/**
* Parent Account
- * @member {String} parentid
+ * @member {String} ParentID
*/
-Account.prototype['parentid'] = undefined;
+Account.prototype['ParentID'] = undefined;
/**
* Phone
- * @member {String} phone
+ * @member {String} Phone
*/
-Account.prototype['phone'] = undefined;
+Account.prototype['Phone'] = undefined;
/**
- * The ID of the Place situs record that applies to this Account
- * @member {String} placeid
+ * @member {Boolean} Publish
*/
-Account.prototype['placeid'] = undefined;
+Account.prototype['Publish'] = undefined;
/**
- * Tax Preparer Contact ID
- * @member {String} preparerid
+ * @member {Boolean} SalesforceFirst
*/
-Account.prototype['preparerid'] = undefined;
+Account.prototype['SalesforceFirst'] = undefined;
/**
- * Rating
- * @member {String} rating
+ * @member {module:model/Address} ShippingAddress
*/
-Account.prototype['rating'] = undefined;
+Account.prototype['ShippingAddress'] = undefined;
/**
- * Rating Engine identifier
- * @member {String} ratingengineid
+ * @member {String} ShippingContactID
*/
-Account.prototype['ratingengineid'] = undefined;
-
-/**
- * External Reference ID
- * @member {String} ref
- */
-Account.prototype['ref'] = undefined;
-
-/**
- * Rollup Revenue Base
- * @member {Number} revenuebase
- */
-Account.prototype['revenuebase'] = undefined;
-
-/**
- * Rollup Revenue Net
- * @member {Number} revenuenet
- */
-Account.prototype['revenuenet'] = undefined;
-
-/**
- * Rollup Revenue Not Taxable
- * @member {Number} revenuenottaxable
- */
-Account.prototype['revenuenottaxable'] = undefined;
-
-/**
- * @member {module:model/Address} shippingaddress
- */
-Account.prototype['shippingaddress'] = undefined;
-
-/**
- * Shipping Census Tract
- * @member {String} shippingcensustract
- */
-Account.prototype['shippingcensustract'] = undefined;
-
-/**
- * Shipping County
- * @member {String} shippingcounty
- */
-Account.prototype['shippingcounty'] = undefined;
-
-/**
- * Shipping Contact ID
- * @member {String} shippingcontactid
- */
-Account.prototype['shippingcontactid'] = undefined;
+Account.prototype['ShippingContactID'] = undefined;
/**
* SIC Code
- * @member {String} sic
+ * @member {String} SIC
*/
-Account.prototype['sic'] = undefined;
+Account.prototype['SIC'] = undefined;
/**
* SIC Description
- * @member {String} sicdesc
+ * @member {String} SICDesc
*/
-Account.prototype['sicdesc'] = undefined;
+Account.prototype['SICDesc'] = undefined;
/**
* Account Site
- * @member {String} site
+ * @member {String} Site
*/
-Account.prototype['site'] = undefined;
+Account.prototype['Site'] = undefined;
/**
- * Account Status
- * @member {String} status
+ * @member {String} TagLine
*/
-Account.prototype['status'] = undefined;
+Account.prototype['TagLine'] = undefined;
/**
- * Tax Exemption
- * @member {String} taxexemption
+ * @member {String} TickerSymbol
*/
-Account.prototype['taxexemption'] = undefined;
-
-/**
- * Rollup Tax On Tax
- * @member {Number} taxontax
- */
-Account.prototype['taxontax'] = undefined;
-
-/**
- * Telecom Customer?
- * @member {Boolean} telecomcustomer
- */
-Account.prototype['telecomcustomer'] = undefined;
-
-/**
- * Ticker Symbol
- * @member {String} tickersymbol
- */
-Account.prototype['tickersymbol'] = undefined;
-
-/**
- * Tradestyle
- * @member {String} tradestyle
- */
-Account.prototype['tradestyle'] = undefined;
+Account.prototype['TickerSymbol'] = undefined;
/**
* Type
- * @member {String} type
+ * @member {String} Type
*/
-Account.prototype['type'] = undefined;
+Account.prototype['Type'] = undefined;
/**
- * Unapplied Payments
- * @member {Number} unappliedpayments
+ * @member {String} Twitter
*/
-Account.prototype['unappliedpayments'] = undefined;
-
-/**
- * Rollup Unit Base
- * @member {Number} unitbase
- */
-Account.prototype['unitbase'] = undefined;
-
-/**
- * Upsell Opportunity
- * @member {String} upsellopportunity
- */
-Account.prototype['upsellopportunity'] = undefined;
+Account.prototype['Twitter'] = undefined;
/**
* Website
- * @member {String} website
+ * @member {String} Website
*/
-Account.prototype['website'] = undefined;
-
-/**
- * WHMCS Client ID
- * @member {Number} whmcsclientid
- */
-Account.prototype['whmcsclientid'] = undefined;
-
-/**
- * Xero Contact ID
- * @member {String} xerocontactid
- */
-Account.prototype['xerocontactid'] = undefined;
+Account.prototype['Website'] = undefined;
/**
* Year Started
- * @member {String} yearstarted
+ * @member {String} YearStarted
*/
-Account.prototype['yearstarted'] = undefined;
+Account.prototype['YearStarted'] = undefined;
diff --git a/client/sf-gate/src/model/Asset.js b/client/sf-gate/src/model/Asset.js
new file mode 100644
index 0000000..88dc32b
--- /dev/null
+++ b/client/sf-gate/src/model/Asset.js
@@ -0,0 +1,486 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import Address from './Address';
+
+/**
+ * The Asset model module.
+ * @module model/Asset
+ * @version 0.0.2
+ */
+class Asset {
+ /**
+ * Constructs a new Asset
.
+ * @alias module:model/Asset
+ */
+ constructor() {
+
+ Asset.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a Asset
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Asset} obj Optional instance to populate.
+ * @return {module:model/Asset} The populated Asset
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Asset();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = ApiClient.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('AccountID')) {
+ obj['AccountID'] = ApiClient.convertToType(data['AccountID'], 'String');
+ }
+ if (data.hasOwnProperty('Address')) {
+ obj['Address'] = Address.constructFromObject(data['Address']);
+ }
+ if (data.hasOwnProperty('AssetLevel')) {
+ obj['AssetLevel'] = ApiClient.convertToType(data['AssetLevel'], 'Number');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('AssetProvidedByID')) {
+ obj['AssetProvidedByID'] = ApiClient.convertToType(data['AssetProvidedByID'], 'String');
+ }
+ if (data.hasOwnProperty('AssetServicedByID')) {
+ obj['AssetServicedByID'] = ApiClient.convertToType(data['AssetServicedByID'], 'String');
+ }
+ if (data.hasOwnProperty('CompanyProductID')) {
+ obj['CompanyProductID'] = ApiClient.convertToType(data['CompanyProductID'], 'String');
+ }
+ if (data.hasOwnProperty('IsCompetitorProduct')) {
+ obj['IsCompetitorProduct'] = ApiClient.convertToType(data['IsCompetitorProduct'], 'Boolean');
+ }
+ if (data.hasOwnProperty('ConsequenceOfFailure')) {
+ obj['ConsequenceOfFailure'] = ApiClient.convertToType(data['ConsequenceOfFailure'], 'String');
+ }
+ if (data.hasOwnProperty('ContactID')) {
+ obj['ContactID'] = ApiClient.convertToType(data['ContactID'], 'String');
+ }
+ if (data.hasOwnProperty('CreatedByID')) {
+ obj['CreatedByID'] = ApiClient.convertToType(data['CreatedByID'], 'String');
+ }
+ if (data.hasOwnProperty('CreatedDate')) {
+ obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'String');
+ }
+ if (data.hasOwnProperty('CurrentAmount')) {
+ obj['CurrentAmount'] = ApiClient.convertToType(data['CurrentAmount'], 'Number');
+ }
+ if (data.hasOwnProperty('CurrentLifecycleEndDate')) {
+ obj['CurrentLifecycleEndDate'] = ApiClient.convertToType(data['CurrentLifecycleEndDate'], 'String');
+ }
+ if (data.hasOwnProperty('CurrentMrr')) {
+ obj['CurrentMrr'] = ApiClient.convertToType(data['CurrentMrr'], 'Number');
+ }
+ if (data.hasOwnProperty('CurrentQuantity')) {
+ obj['CurrentQuantity'] = ApiClient.convertToType(data['CurrentQuantity'], 'Number');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = ApiClient.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('DigitalAssetStatus')) {
+ obj['DigitalAssetStatus'] = ApiClient.convertToType(data['DigitalAssetStatus'], 'String');
+ }
+ if (data.hasOwnProperty('ExternalIdentifier')) {
+ obj['ExternalIdentifier'] = ApiClient.convertToType(data['ExternalIdentifier'], 'String');
+ }
+ if (data.hasOwnProperty('HasLifecycleManagement')) {
+ obj['HasLifecycleManagement'] = ApiClient.convertToType(data['HasLifecycleManagement'], 'Boolean');
+ }
+ if (data.hasOwnProperty('InstallDate')) {
+ obj['InstallDate'] = ApiClient.convertToType(data['InstallDate'], 'String');
+ }
+ if (data.hasOwnProperty('IsInternal')) {
+ obj['IsInternal'] = ApiClient.convertToType(data['IsInternal'], 'Boolean');
+ }
+ if (data.hasOwnProperty('LastModifiedByID')) {
+ obj['LastModifiedByID'] = ApiClient.convertToType(data['LastModifiedByID'], 'String');
+ }
+ if (data.hasOwnProperty('LastModifiedDate')) {
+ obj['LastModifiedDate'] = ApiClient.convertToType(data['LastModifiedDate'], 'String');
+ }
+ if (data.hasOwnProperty('LocationID')) {
+ obj['LocationID'] = ApiClient.convertToType(data['LocationID'], 'String');
+ }
+ if (data.hasOwnProperty('ManufactureDate')) {
+ obj['ManufactureDate'] = ApiClient.convertToType(data['ManufactureDate'], 'String');
+ }
+ if (data.hasOwnProperty('MIMEType')) {
+ obj['MIMEType'] = ApiClient.convertToType(data['MIMEType'], 'String');
+ }
+ if (data.hasOwnProperty('ParentID')) {
+ obj['ParentID'] = ApiClient.convertToType(data['ParentID'], 'String');
+ }
+ if (data.hasOwnProperty('Price')) {
+ obj['Price'] = ApiClient.convertToType(data['Price'], 'Number');
+ }
+ if (data.hasOwnProperty('Product2ID')) {
+ obj['Product2ID'] = ApiClient.convertToType(data['Product2ID'], 'String');
+ }
+ if (data.hasOwnProperty('ProductCode')) {
+ obj['ProductCode'] = ApiClient.convertToType(data['ProductCode'], 'String');
+ }
+ if (data.hasOwnProperty('ProductDescription')) {
+ obj['ProductDescription'] = ApiClient.convertToType(data['ProductDescription'], 'String');
+ }
+ if (data.hasOwnProperty('ProductFamily')) {
+ obj['ProductFamily'] = ApiClient.convertToType(data['ProductFamily'], 'String');
+ }
+ if (data.hasOwnProperty('StockKeepingUnit')) {
+ obj['StockKeepingUnit'] = ApiClient.convertToType(data['StockKeepingUnit'], 'String');
+ }
+ if (data.hasOwnProperty('PurchaseDate')) {
+ obj['PurchaseDate'] = ApiClient.convertToType(data['PurchaseDate'], 'String');
+ }
+ if (data.hasOwnProperty('Quantity')) {
+ obj['Quantity'] = ApiClient.convertToType(data['Quantity'], 'Number');
+ }
+ if (data.hasOwnProperty('RootAssetID')) {
+ obj['RootAssetID'] = ApiClient.convertToType(data['RootAssetID'], 'String');
+ }
+ if (data.hasOwnProperty('SerialNumber')) {
+ obj['SerialNumber'] = ApiClient.convertToType(data['SerialNumber'], 'String');
+ }
+ if (data.hasOwnProperty('Status')) {
+ obj['Status'] = ApiClient.convertToType(data['Status'], 'String');
+ }
+ if (data.hasOwnProperty('StatusReason')) {
+ obj['StatusReason'] = ApiClient.convertToType(data['StatusReason'], 'String');
+ }
+ if (data.hasOwnProperty('TenantID')) {
+ obj['TenantID'] = ApiClient.convertToType(data['TenantID'], 'String');
+ }
+ if (data.hasOwnProperty('TotalLifecycleAmount')) {
+ obj['TotalLifecycleAmount'] = ApiClient.convertToType(data['TotalLifecycleAmount'], 'Number');
+ }
+ if (data.hasOwnProperty('Type')) {
+ obj['Type'] = ApiClient.convertToType(data['Type'], 'String');
+ }
+ if (data.hasOwnProperty('UUID')) {
+ obj['UUID'] = ApiClient.convertToType(data['UUID'], 'String');
+ }
+ if (data.hasOwnProperty('URL')) {
+ obj['URL'] = ApiClient.convertToType(data['URL'], 'String');
+ }
+ if (data.hasOwnProperty('UsageEndDate')) {
+ obj['UsageEndDate'] = ApiClient.convertToType(data['UsageEndDate'], 'String');
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * Taxnexus Record Id
+ * @member {String} ID
+ */
+Asset.prototype['ID'] = undefined;
+
+/**
+ * Account
+ * @member {String} AccountID
+ */
+Asset.prototype['AccountID'] = undefined;
+
+/**
+ * @member {module:model/Address} Address
+ */
+Asset.prototype['Address'] = undefined;
+
+/**
+ * Asset Level
+ * @member {Number} AssetLevel
+ */
+Asset.prototype['AssetLevel'] = undefined;
+
+/**
+ * Asset Name
+ * @member {String} Name
+ */
+Asset.prototype['Name'] = undefined;
+
+/**
+ * Asset Provided By
+ * @member {String} AssetProvidedByID
+ */
+Asset.prototype['AssetProvidedByID'] = undefined;
+
+/**
+ * Asset Serviced By
+ * @member {String} AssetServicedByID
+ */
+Asset.prototype['AssetServicedByID'] = undefined;
+
+/**
+ * Company Product
+ * @member {String} CompanyProductID
+ */
+Asset.prototype['CompanyProductID'] = undefined;
+
+/**
+ * Competitor Asset
+ * @member {Boolean} IsCompetitorProduct
+ */
+Asset.prototype['IsCompetitorProduct'] = undefined;
+
+/**
+ * Consequence Of Failure
+ * @member {String} ConsequenceOfFailure
+ */
+Asset.prototype['ConsequenceOfFailure'] = undefined;
+
+/**
+ * Contact
+ * @member {String} ContactID
+ */
+Asset.prototype['ContactID'] = undefined;
+
+/**
+ * Created By
+ * @member {String} CreatedByID
+ */
+Asset.prototype['CreatedByID'] = undefined;
+
+/**
+ * Created Date
+ * @member {String} CreatedDate
+ */
+Asset.prototype['CreatedDate'] = undefined;
+
+/**
+ * Current Amount
+ * @member {Number} CurrentAmount
+ */
+Asset.prototype['CurrentAmount'] = undefined;
+
+/**
+ * Current Lifecycle End Date
+ * @member {String} CurrentLifecycleEndDate
+ */
+Asset.prototype['CurrentLifecycleEndDate'] = undefined;
+
+/**
+ * Current Monthly Recurring Revenue
+ * @member {Number} CurrentMrr
+ */
+Asset.prototype['CurrentMrr'] = undefined;
+
+/**
+ * Current Quantity
+ * @member {Number} CurrentQuantity
+ */
+Asset.prototype['CurrentQuantity'] = undefined;
+
+/**
+ * Description
+ * @member {String} Description
+ */
+Asset.prototype['Description'] = undefined;
+
+/**
+ * Digital Asset Status
+ * @member {String} DigitalAssetStatus
+ */
+Asset.prototype['DigitalAssetStatus'] = undefined;
+
+/**
+ * External Id
+ * @member {String} ExternalIdentifier
+ */
+Asset.prototype['ExternalIdentifier'] = undefined;
+
+/**
+ * Has Lifecycle Management
+ * @member {Boolean} HasLifecycleManagement
+ */
+Asset.prototype['HasLifecycleManagement'] = undefined;
+
+/**
+ * Install Date
+ * @member {String} InstallDate
+ */
+Asset.prototype['InstallDate'] = undefined;
+
+/**
+ * Internal Asset
+ * @member {Boolean} IsInternal
+ */
+Asset.prototype['IsInternal'] = undefined;
+
+/**
+ * Last Modified By
+ * @member {String} LastModifiedByID
+ */
+Asset.prototype['LastModifiedByID'] = undefined;
+
+/**
+ * Last Modified Date
+ * @member {String} LastModifiedDate
+ */
+Asset.prototype['LastModifiedDate'] = undefined;
+
+/**
+ * Location
+ * @member {String} LocationID
+ */
+Asset.prototype['LocationID'] = undefined;
+
+/**
+ * Manufacture Date
+ * @member {String} ManufactureDate
+ */
+Asset.prototype['ManufactureDate'] = undefined;
+
+/**
+ * MIME Type
+ * @member {String} MIMEType
+ */
+Asset.prototype['MIMEType'] = undefined;
+
+/**
+ * Parent Asset
+ * @member {String} ParentID
+ */
+Asset.prototype['ParentID'] = undefined;
+
+/**
+ * Price
+ * @member {Number} Price
+ */
+Asset.prototype['Price'] = undefined;
+
+/**
+ * Product
+ * @member {String} Product2ID
+ */
+Asset.prototype['Product2ID'] = undefined;
+
+/**
+ * Product Code
+ * @member {String} ProductCode
+ */
+Asset.prototype['ProductCode'] = undefined;
+
+/**
+ * Product Description
+ * @member {String} ProductDescription
+ */
+Asset.prototype['ProductDescription'] = undefined;
+
+/**
+ * Product Family
+ * @member {String} ProductFamily
+ */
+Asset.prototype['ProductFamily'] = undefined;
+
+/**
+ * Product SKU
+ * @member {String} StockKeepingUnit
+ */
+Asset.prototype['StockKeepingUnit'] = undefined;
+
+/**
+ * Purchase Date
+ * @member {String} PurchaseDate
+ */
+Asset.prototype['PurchaseDate'] = undefined;
+
+/**
+ * Quantity
+ * @member {Number} Quantity
+ */
+Asset.prototype['Quantity'] = undefined;
+
+/**
+ * Root Asset
+ * @member {String} RootAssetID
+ */
+Asset.prototype['RootAssetID'] = undefined;
+
+/**
+ * Serial Number
+ * @member {String} SerialNumber
+ */
+Asset.prototype['SerialNumber'] = undefined;
+
+/**
+ * Status
+ * @member {String} Status
+ */
+Asset.prototype['Status'] = undefined;
+
+/**
+ * Status Reason
+ * @member {String} StatusReason
+ */
+Asset.prototype['StatusReason'] = undefined;
+
+/**
+ * Tenant ID
+ * @member {String} TenantID
+ */
+Asset.prototype['TenantID'] = undefined;
+
+/**
+ * Total Lifecycle Amount
+ * @member {Number} TotalLifecycleAmount
+ */
+Asset.prototype['TotalLifecycleAmount'] = undefined;
+
+/**
+ * Type
+ * @member {String} Type
+ */
+Asset.prototype['Type'] = undefined;
+
+/**
+ * Unique Identifier
+ * @member {String} UUID
+ */
+Asset.prototype['UUID'] = undefined;
+
+/**
+ * URL
+ * @member {String} URL
+ */
+Asset.prototype['URL'] = undefined;
+
+/**
+ * Usage End Date
+ * @member {String} UsageEndDate
+ */
+Asset.prototype['UsageEndDate'] = undefined;
+
+
+
+
+
+
+export default Asset;
+
diff --git a/client/sf-gate/src/model/AssetRequest.js b/client/sf-gate/src/model/AssetRequest.js
new file mode 100644
index 0000000..957e105
--- /dev/null
+++ b/client/sf-gate/src/model/AssetRequest.js
@@ -0,0 +1,73 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import Asset from './Asset';
+
+/**
+ * The AssetRequest model module.
+ * @module model/AssetRequest
+ * @version 0.0.2
+ */
+class AssetRequest {
+ /**
+ * Constructs a new AssetRequest
.
+ * An array of Asset objects with Contacts
+ * @alias module:model/AssetRequest
+ */
+ constructor() {
+
+ AssetRequest.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a AssetRequest
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/AssetRequest} obj Optional instance to populate.
+ * @return {module:model/AssetRequest} The populated AssetRequest
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new AssetRequest();
+
+ if (data.hasOwnProperty('Data')) {
+ obj['Data'] = ApiClient.convertToType(data['Data'], [Asset]);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * @member {Array.} Data
+ */
+AssetRequest.prototype['Data'] = undefined;
+
+
+
+
+
+
+export default AssetRequest;
+
diff --git a/client/sf-gate/src/model/AssetResponse.js b/client/sf-gate/src/model/AssetResponse.js
new file mode 100644
index 0000000..9787cad
--- /dev/null
+++ b/client/sf-gate/src/model/AssetResponse.js
@@ -0,0 +1,82 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import Asset from './Asset';
+import ResponseMeta from './ResponseMeta';
+
+/**
+ * The AssetResponse model module.
+ * @module model/AssetResponse
+ * @version 0.0.2
+ */
+class AssetResponse {
+ /**
+ * Constructs a new AssetResponse
.
+ * An array of Asset objects with Contacts
+ * @alias module:model/AssetResponse
+ */
+ constructor() {
+
+ AssetResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a AssetResponse
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/AssetResponse} obj Optional instance to populate.
+ * @return {module:model/AssetResponse} The populated AssetResponse
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new AssetResponse();
+
+ if (data.hasOwnProperty('Data')) {
+ obj['Data'] = ApiClient.convertToType(data['Data'], [Asset]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = ResponseMeta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * @member {Array.} Data
+ */
+AssetResponse.prototype['Data'] = undefined;
+
+/**
+ * @member {module:model/ResponseMeta} Meta
+ */
+AssetResponse.prototype['Meta'] = undefined;
+
+
+
+
+
+
+export default AssetResponse;
+
diff --git a/client/sf-gate/src/model/CompanyProduct.js b/client/sf-gate/src/model/CompanyProduct.js
new file mode 100644
index 0000000..d591b7b
--- /dev/null
+++ b/client/sf-gate/src/model/CompanyProduct.js
@@ -0,0 +1,154 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The CompanyProduct model module.
+ * @module model/CompanyProduct
+ * @version 0.0.2
+ */
+class CompanyProduct {
+ /**
+ * Constructs a new CompanyProduct
.
+ * A software product or service vended by a Company
+ * @alias module:model/CompanyProduct
+ */
+ constructor() {
+
+ CompanyProduct.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a CompanyProduct
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CompanyProduct} obj Optional instance to populate.
+ * @return {module:model/CompanyProduct} The populated CompanyProduct
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CompanyProduct();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = ApiClient.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('CreatedByID')) {
+ obj['CreatedByID'] = ApiClient.convertToType(data['CreatedByID'], 'String');
+ }
+ if (data.hasOwnProperty('CreatedDate')) {
+ obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'String');
+ }
+ if (data.hasOwnProperty('LastModifiedByID')) {
+ obj['LastModifiedByID'] = ApiClient.convertToType(data['LastModifiedByID'], 'String');
+ }
+ if (data.hasOwnProperty('LastModifiedDate')) {
+ obj['LastModifiedDate'] = ApiClient.convertToType(data['LastModifiedDate'], 'String');
+ }
+ if (data.hasOwnProperty('AccountID')) {
+ obj['AccountID'] = ApiClient.convertToType(data['AccountID'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = ApiClient.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('TagLine')) {
+ obj['TagLine'] = ApiClient.convertToType(data['TagLine'], 'String');
+ }
+ if (data.hasOwnProperty('URL')) {
+ obj['URL'] = ApiClient.convertToType(data['URL'], 'String');
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * Taxnexus Record Id
+ * @member {String} ID
+ */
+CompanyProduct.prototype['ID'] = undefined;
+
+/**
+ * Created By User ID
+ * @member {String} CreatedByID
+ */
+CompanyProduct.prototype['CreatedByID'] = undefined;
+
+/**
+ * Created Date
+ * @member {String} CreatedDate
+ */
+CompanyProduct.prototype['CreatedDate'] = undefined;
+
+/**
+ * Last Modified By User ID
+ * @member {String} LastModifiedByID
+ */
+CompanyProduct.prototype['LastModifiedByID'] = undefined;
+
+/**
+ * Last Modified Date
+ * @member {String} LastModifiedDate
+ */
+CompanyProduct.prototype['LastModifiedDate'] = undefined;
+
+/**
+ * Taxnexus ID of the Company that owns this Product
+ * @member {String} AccountID
+ */
+CompanyProduct.prototype['AccountID'] = undefined;
+
+/**
+ * Description of product
+ * @member {String} Description
+ */
+CompanyProduct.prototype['Description'] = undefined;
+
+/**
+ * Product Name
+ * @member {String} Name
+ */
+CompanyProduct.prototype['Name'] = undefined;
+
+/**
+ * TagLine
+ * @member {String} TagLine
+ */
+CompanyProduct.prototype['TagLine'] = undefined;
+
+/**
+ * Website
+ * @member {String} URL
+ */
+CompanyProduct.prototype['URL'] = undefined;
+
+
+
+
+
+
+export default CompanyProduct;
+
diff --git a/client/sf-gate/src/model/CompanyProductRequest.js b/client/sf-gate/src/model/CompanyProductRequest.js
new file mode 100644
index 0000000..e58f4b2
--- /dev/null
+++ b/client/sf-gate/src/model/CompanyProductRequest.js
@@ -0,0 +1,85 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import CompanyProduct from './CompanyProduct';
+import RequestMeta from './RequestMeta';
+
+/**
+ * The CompanyProductRequest model module.
+ * @module model/CompanyProductRequest
+ * @version 0.0.2
+ */
+class CompanyProductRequest {
+ /**
+ * Constructs a new CompanyProductRequest
.
+ * @alias module:model/CompanyProductRequest
+ * @param data {Array.}
+ * @param meta {module:model/RequestMeta}
+ */
+ constructor(data, meta) {
+
+ CompanyProductRequest.initialize(this, data, meta);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, data, meta) {
+ obj['data'] = data;
+ obj['meta'] = meta;
+ }
+
+ /**
+ * Constructs a CompanyProductRequest
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CompanyProductRequest} obj Optional instance to populate.
+ * @return {module:model/CompanyProductRequest} The populated CompanyProductRequest
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CompanyProductRequest();
+
+ if (data.hasOwnProperty('data')) {
+ obj['data'] = ApiClient.convertToType(data['data'], [CompanyProduct]);
+ }
+ if (data.hasOwnProperty('meta')) {
+ obj['meta'] = RequestMeta.constructFromObject(data['meta']);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * @member {Array.} data
+ */
+CompanyProductRequest.prototype['data'] = undefined;
+
+/**
+ * @member {module:model/RequestMeta} meta
+ */
+CompanyProductRequest.prototype['meta'] = undefined;
+
+
+
+
+
+
+export default CompanyProductRequest;
+
diff --git a/client/sf-gate/src/model/CompanyProductResponse.js b/client/sf-gate/src/model/CompanyProductResponse.js
new file mode 100644
index 0000000..512d441
--- /dev/null
+++ b/client/sf-gate/src/model/CompanyProductResponse.js
@@ -0,0 +1,81 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import CompanyProduct from './CompanyProduct';
+import ResponseMeta from './ResponseMeta';
+
+/**
+ * The CompanyProductResponse model module.
+ * @module model/CompanyProductResponse
+ * @version 0.0.2
+ */
+class CompanyProductResponse {
+ /**
+ * Constructs a new CompanyProductResponse
.
+ * @alias module:model/CompanyProductResponse
+ */
+ constructor() {
+
+ CompanyProductResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a CompanyProductResponse
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CompanyProductResponse} obj Optional instance to populate.
+ * @return {module:model/CompanyProductResponse} The populated CompanyProductResponse
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CompanyProductResponse();
+
+ if (data.hasOwnProperty('data')) {
+ obj['data'] = ApiClient.convertToType(data['data'], [CompanyProduct]);
+ }
+ if (data.hasOwnProperty('meta')) {
+ obj['meta'] = ResponseMeta.constructFromObject(data['meta']);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * @member {Array.} data
+ */
+CompanyProductResponse.prototype['data'] = undefined;
+
+/**
+ * @member {module:model/ResponseMeta} meta
+ */
+CompanyProductResponse.prototype['meta'] = undefined;
+
+
+
+
+
+
+export default CompanyProductResponse;
+
diff --git a/client/sf-gate/src/model/Contact.js b/client/sf-gate/src/model/Contact.js
index 38dce2b..94ac13e 100644
--- a/client/sf-gate/src/model/Contact.js
+++ b/client/sf-gate/src/model/Contact.js
@@ -48,140 +48,116 @@ class Contact {
if (data) {
obj = obj || new Contact();
- if (data.hasOwnProperty('tenantid')) {
- obj['tenantid'] = ApiClient.convertToType(data['tenantid'], 'String');
+ if (data.hasOwnProperty('TenantID')) {
+ obj['TenantID'] = ApiClient.convertToType(data['TenantID'], 'String');
}
- if (data.hasOwnProperty('accountid')) {
- obj['accountid'] = ApiClient.convertToType(data['accountid'], 'String');
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = ApiClient.convertToType(data['ID'], 'String');
}
- if (data.hasOwnProperty('assistantname')) {
- obj['assistantname'] = ApiClient.convertToType(data['assistantname'], 'String');
+ if (data.hasOwnProperty('AccountID')) {
+ obj['AccountID'] = ApiClient.convertToType(data['AccountID'], 'String');
}
- if (data.hasOwnProperty('assistantphone')) {
- obj['assistantphone'] = ApiClient.convertToType(data['assistantphone'], 'String');
+ if (data.hasOwnProperty('AssistantName')) {
+ obj['AssistantName'] = ApiClient.convertToType(data['AssistantName'], 'String');
}
- if (data.hasOwnProperty('birthdate')) {
- obj['birthdate'] = ApiClient.convertToType(data['birthdate'], 'String');
+ if (data.hasOwnProperty('AssistantPhone')) {
+ obj['AssistantPhone'] = ApiClient.convertToType(data['AssistantPhone'], 'String');
}
- if (data.hasOwnProperty('createdbyid')) {
- obj['createdbyid'] = ApiClient.convertToType(data['createdbyid'], 'String');
+ if (data.hasOwnProperty('BirthDate')) {
+ obj['BirthDate'] = ApiClient.convertToType(data['BirthDate'], 'String');
}
- if (data.hasOwnProperty('createddate')) {
- obj['createddate'] = ApiClient.convertToType(data['createddate'], 'String');
+ if (data.hasOwnProperty('CreatedByID')) {
+ obj['CreatedByID'] = ApiClient.convertToType(data['CreatedByID'], 'String');
}
- if (data.hasOwnProperty('department')) {
- obj['department'] = ApiClient.convertToType(data['department'], 'String');
+ if (data.hasOwnProperty('CreatedDate')) {
+ obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'String');
}
- if (data.hasOwnProperty('description')) {
- obj['description'] = ApiClient.convertToType(data['description'], 'String');
+ if (data.hasOwnProperty('Department')) {
+ obj['Department'] = ApiClient.convertToType(data['Department'], 'String');
}
- if (data.hasOwnProperty('donotcall')) {
- obj['donotcall'] = ApiClient.convertToType(data['donotcall'], 'Boolean');
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = ApiClient.convertToType(data['Description'], 'String');
}
- if (data.hasOwnProperty('email')) {
- obj['email'] = ApiClient.convertToType(data['email'], 'String');
+ if (data.hasOwnProperty('DoNotCall')) {
+ obj['DoNotCall'] = ApiClient.convertToType(data['DoNotCall'], 'Boolean');
}
- if (data.hasOwnProperty('emailbounceddate')) {
- obj['emailbounceddate'] = ApiClient.convertToType(data['emailbounceddate'], 'String');
+ if (data.hasOwnProperty('Email')) {
+ obj['Email'] = ApiClient.convertToType(data['Email'], 'String');
}
- if (data.hasOwnProperty('emailbouncedreason')) {
- obj['emailbouncedreason'] = ApiClient.convertToType(data['emailbouncedreason'], 'String');
+ if (data.hasOwnProperty('EmailBounceDate')) {
+ obj['EmailBounceDate'] = ApiClient.convertToType(data['EmailBounceDate'], 'String');
}
- if (data.hasOwnProperty('enrollmentstatus')) {
- obj['enrollmentstatus'] = ApiClient.convertToType(data['enrollmentstatus'], 'String');
+ if (data.hasOwnProperty('EmailBounceReason')) {
+ obj['EmailBounceReason'] = ApiClient.convertToType(data['EmailBounceReason'], 'String');
}
- if (data.hasOwnProperty('fax')) {
- obj['fax'] = ApiClient.convertToType(data['fax'], 'String');
+ if (data.hasOwnProperty('Fax')) {
+ obj['Fax'] = ApiClient.convertToType(data['Fax'], 'String');
}
- if (data.hasOwnProperty('firstname')) {
- obj['firstname'] = ApiClient.convertToType(data['firstname'], 'String');
+ if (data.hasOwnProperty('Facebook')) {
+ obj['Facebook'] = ApiClient.convertToType(data['Facebook'], 'String');
}
- if (data.hasOwnProperty('hasoptedoutofemail')) {
- obj['hasoptedoutofemail'] = ApiClient.convertToType(data['hasoptedoutofemail'], 'Boolean');
+ if (data.hasOwnProperty('FirstName')) {
+ obj['FirstName'] = ApiClient.convertToType(data['FirstName'], 'String');
}
- if (data.hasOwnProperty('hasoptedoutoffax')) {
- obj['hasoptedoutoffax'] = ApiClient.convertToType(data['hasoptedoutoffax'], 'Boolean');
+ if (data.hasOwnProperty('HasOptedOutOfEmail')) {
+ obj['HasOptedOutOfEmail'] = ApiClient.convertToType(data['HasOptedOutOfEmail'], 'Boolean');
}
- if (data.hasOwnProperty('homephone')) {
- obj['homephone'] = ApiClient.convertToType(data['homephone'], 'String');
+ if (data.hasOwnProperty('HasOptedOutOfFax')) {
+ obj['HasOptedOutOfFax'] = ApiClient.convertToType(data['HasOptedOutOfFax'], 'Boolean');
}
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'String');
+ if (data.hasOwnProperty('HomePhone')) {
+ obj['HomePhone'] = ApiClient.convertToType(data['HomePhone'], 'String');
}
- if (data.hasOwnProperty('isemailbounced')) {
- obj['isemailbounced'] = ApiClient.convertToType(data['isemailbounced'], 'Boolean');
+ if (data.hasOwnProperty('IsEmailBounced')) {
+ obj['IsEmailBounced'] = ApiClient.convertToType(data['IsEmailBounced'], 'Boolean');
}
- if (data.hasOwnProperty('isprovisioned')) {
- obj['isprovisioned'] = ApiClient.convertToType(data['isprovisioned'], 'Boolean');
+ if (data.hasOwnProperty('LastModifiedByID')) {
+ obj['LastModifiedByID'] = ApiClient.convertToType(data['LastModifiedByID'], 'String');
}
- if (data.hasOwnProperty('lastmodifiedbyid')) {
- obj['lastmodifiedbyid'] = ApiClient.convertToType(data['lastmodifiedbyid'], 'String');
+ if (data.hasOwnProperty('LastModifiedDate')) {
+ obj['LastModifiedDate'] = ApiClient.convertToType(data['LastModifiedDate'], 'String');
}
- if (data.hasOwnProperty('lastmodifieddate')) {
- obj['lastmodifieddate'] = ApiClient.convertToType(data['lastmodifieddate'], 'String');
+ if (data.hasOwnProperty('LastName')) {
+ obj['LastName'] = ApiClient.convertToType(data['LastName'], 'String');
}
- if (data.hasOwnProperty('lastname')) {
- obj['lastname'] = ApiClient.convertToType(data['lastname'], 'String');
+ if (data.hasOwnProperty('LeadSource')) {
+ obj['LeadSource'] = ApiClient.convertToType(data['LeadSource'], 'String');
}
- if (data.hasOwnProperty('leadsource')) {
- obj['leadsource'] = ApiClient.convertToType(data['leadsource'], 'String');
+ if (data.hasOwnProperty('LinkedIn')) {
+ obj['LinkedIn'] = ApiClient.convertToType(data['LinkedIn'], 'String');
}
- if (data.hasOwnProperty('level')) {
- obj['level'] = ApiClient.convertToType(data['level'], 'String');
+ if (data.hasOwnProperty('MailingAddress')) {
+ obj['MailingAddress'] = Address.constructFromObject(data['MailingAddress']);
}
- if (data.hasOwnProperty('linkedin')) {
- obj['linkedin'] = ApiClient.convertToType(data['linkedin'], 'String');
+ if (data.hasOwnProperty('MobilePhone')) {
+ obj['MobilePhone'] = ApiClient.convertToType(data['MobilePhone'], 'String');
}
- if (data.hasOwnProperty('mailingaddress')) {
- obj['mailingaddress'] = Address.constructFromObject(data['mailingaddress']);
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
}
- if (data.hasOwnProperty('mailinglists')) {
- obj['mailinglists'] = ApiClient.convertToType(data['mailinglists'], 'String');
+ if (data.hasOwnProperty('OtherAddress')) {
+ obj['OtherAddress'] = Address.constructFromObject(data['OtherAddress']);
}
- if (data.hasOwnProperty('mobilephone')) {
- obj['mobilephone'] = ApiClient.convertToType(data['mobilephone'], 'String');
+ if (data.hasOwnProperty('OtherPhone')) {
+ obj['OtherPhone'] = ApiClient.convertToType(data['OtherPhone'], 'String');
}
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ if (data.hasOwnProperty('OwnerID')) {
+ obj['OwnerID'] = ApiClient.convertToType(data['OwnerID'], 'String');
}
- if (data.hasOwnProperty('otheraddress')) {
- obj['otheraddress'] = Address.constructFromObject(data['otheraddress']);
+ if (data.hasOwnProperty('PersonalEmail')) {
+ obj['PersonalEmail'] = ApiClient.convertToType(data['PersonalEmail'], 'String');
}
- if (data.hasOwnProperty('otherphone')) {
- obj['otherphone'] = ApiClient.convertToType(data['otherphone'], 'String');
+ if (data.hasOwnProperty('Phone')) {
+ obj['Phone'] = ApiClient.convertToType(data['Phone'], 'String');
}
- if (data.hasOwnProperty('ownerid')) {
- obj['ownerid'] = ApiClient.convertToType(data['ownerid'], 'String');
+ if (data.hasOwnProperty('PhotoURL')) {
+ obj['PhotoURL'] = ApiClient.convertToType(data['PhotoURL'], 'String');
}
- if (data.hasOwnProperty('personalemail')) {
- obj['personalemail'] = ApiClient.convertToType(data['personalemail'], 'String');
+ if (data.hasOwnProperty('Title')) {
+ obj['Title'] = ApiClient.convertToType(data['Title'], 'String');
}
- if (data.hasOwnProperty('phone')) {
- obj['phone'] = ApiClient.convertToType(data['phone'], 'String');
- }
- if (data.hasOwnProperty('photourl')) {
- obj['photourl'] = ApiClient.convertToType(data['photourl'], 'String');
- }
- if (data.hasOwnProperty('recruitingstatus')) {
- obj['recruitingstatus'] = ApiClient.convertToType(data['recruitingstatus'], 'String');
- }
- if (data.hasOwnProperty('ref')) {
- obj['ref'] = ApiClient.convertToType(data['ref'], 'String');
- }
- if (data.hasOwnProperty('reportstoid')) {
- obj['reportstoid'] = ApiClient.convertToType(data['reportstoid'], 'String');
- }
- if (data.hasOwnProperty('salutation')) {
- obj['salutation'] = ApiClient.convertToType(data['salutation'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'String');
- }
- if (data.hasOwnProperty('title')) {
- obj['title'] = ApiClient.convertToType(data['title'], 'String');
- }
- if (data.hasOwnProperty('type')) {
- obj['type'] = ApiClient.convertToType(data['type'], 'String');
+ if (data.hasOwnProperty('Twitter')) {
+ obj['Twitter'] = ApiClient.convertToType(data['Twitter'], 'String');
}
}
return obj;
@@ -192,271 +168,221 @@ class Contact {
/**
* tenant identifier
- * @member {String} tenantid
+ * @member {String} TenantID
*/
-Contact.prototype['tenantid'] = undefined;
-
-/**
- * The primary account ID of this contact
- * @member {String} accountid
- */
-Contact.prototype['accountid'] = undefined;
-
-/**
- * Assistant Name
- * @member {String} assistantname
- */
-Contact.prototype['assistantname'] = undefined;
-
-/**
- * Asst. Phone
- * @member {String} assistantphone
- */
-Contact.prototype['assistantphone'] = undefined;
-
-/**
- * Birthdate
- * @member {String} birthdate
- */
-Contact.prototype['birthdate'] = undefined;
-
-/**
- * Created By User ID
- * @member {String} createdbyid
- */
-Contact.prototype['createdbyid'] = undefined;
-
-/**
- * Created Date
- * @member {String} createddate
- */
-Contact.prototype['createddate'] = undefined;
-
-/**
- * Department
- * @member {String} department
- */
-Contact.prototype['department'] = undefined;
-
-/**
- * Description
- * @member {String} description
- */
-Contact.prototype['description'] = undefined;
-
-/**
- * Do Not Call?
- * @member {Boolean} donotcall
- */
-Contact.prototype['donotcall'] = undefined;
-
-/**
- * Email address
- * @member {String} email
- */
-Contact.prototype['email'] = undefined;
-
-/**
- * Email Bounce Date
- * @member {String} emailbounceddate
- */
-Contact.prototype['emailbounceddate'] = undefined;
-
-/**
- * Email Bounce Reason
- * @member {String} emailbouncedreason
- */
-Contact.prototype['emailbouncedreason'] = undefined;
-
-/**
- * Taxnexus Enrollment Status
- * @member {String} enrollmentstatus
- */
-Contact.prototype['enrollmentstatus'] = undefined;
-
-/**
- * Fax Number
- * @member {String} fax
- */
-Contact.prototype['fax'] = undefined;
-
-/**
- * First Name
- * @member {String} firstname
- */
-Contact.prototype['firstname'] = undefined;
-
-/**
- * Email Opt Out
- * @member {Boolean} hasoptedoutofemail
- */
-Contact.prototype['hasoptedoutofemail'] = undefined;
-
-/**
- * Fax Opt Out
- * @member {Boolean} hasoptedoutoffax
- */
-Contact.prototype['hasoptedoutoffax'] = undefined;
-
-/**
- * Home Phone
- * @member {String} homephone
- */
-Contact.prototype['homephone'] = undefined;
+Contact.prototype['TenantID'] = undefined;
/**
* Taxnexus Record Id
- * @member {String} id
+ * @member {String} ID
*/
-Contact.prototype['id'] = undefined;
+Contact.prototype['ID'] = undefined;
+
+/**
+ * The primary account ID of this contact
+ * @member {String} AccountID
+ */
+Contact.prototype['AccountID'] = undefined;
+
+/**
+ * Assistant Name
+ * @member {String} AssistantName
+ */
+Contact.prototype['AssistantName'] = undefined;
+
+/**
+ * Asst. Phone
+ * @member {String} AssistantPhone
+ */
+Contact.prototype['AssistantPhone'] = undefined;
+
+/**
+ * Birthdate
+ * @member {String} BirthDate
+ */
+Contact.prototype['BirthDate'] = undefined;
+
+/**
+ * Created By User ID
+ * @member {String} CreatedByID
+ */
+Contact.prototype['CreatedByID'] = undefined;
+
+/**
+ * Created Date
+ * @member {String} CreatedDate
+ */
+Contact.prototype['CreatedDate'] = undefined;
+
+/**
+ * Department
+ * @member {String} Department
+ */
+Contact.prototype['Department'] = undefined;
+
+/**
+ * Description
+ * @member {String} Description
+ */
+Contact.prototype['Description'] = undefined;
+
+/**
+ * Do Not Call?
+ * @member {Boolean} DoNotCall
+ */
+Contact.prototype['DoNotCall'] = undefined;
+
+/**
+ * Email address
+ * @member {String} Email
+ */
+Contact.prototype['Email'] = undefined;
+
+/**
+ * Email Bounce Date
+ * @member {String} EmailBounceDate
+ */
+Contact.prototype['EmailBounceDate'] = undefined;
+
+/**
+ * Email Bounce Reason
+ * @member {String} EmailBounceReason
+ */
+Contact.prototype['EmailBounceReason'] = undefined;
+
+/**
+ * @member {String} Fax
+ */
+Contact.prototype['Fax'] = undefined;
+
+/**
+ * Fax Number
+ * @member {String} Facebook
+ */
+Contact.prototype['Facebook'] = undefined;
+
+/**
+ * First Name
+ * @member {String} FirstName
+ */
+Contact.prototype['FirstName'] = undefined;
+
+/**
+ * Email Opt Out
+ * @member {Boolean} HasOptedOutOfEmail
+ */
+Contact.prototype['HasOptedOutOfEmail'] = undefined;
+
+/**
+ * Fax Opt Out
+ * @member {Boolean} HasOptedOutOfFax
+ */
+Contact.prototype['HasOptedOutOfFax'] = undefined;
+
+/**
+ * Home Phone
+ * @member {String} HomePhone
+ */
+Contact.prototype['HomePhone'] = undefined;
/**
* Does this contact have bounced emails?
- * @member {Boolean} isemailbounced
+ * @member {Boolean} IsEmailBounced
*/
-Contact.prototype['isemailbounced'] = undefined;
-
-/**
- * Is Provisioned?
- * @member {Boolean} isprovisioned
- */
-Contact.prototype['isprovisioned'] = undefined;
+Contact.prototype['IsEmailBounced'] = undefined;
/**
* Last Modified By User ID
- * @member {String} lastmodifiedbyid
+ * @member {String} LastModifiedByID
*/
-Contact.prototype['lastmodifiedbyid'] = undefined;
+Contact.prototype['LastModifiedByID'] = undefined;
/**
* Last Modified Date
- * @member {String} lastmodifieddate
+ * @member {String} LastModifiedDate
*/
-Contact.prototype['lastmodifieddate'] = undefined;
+Contact.prototype['LastModifiedDate'] = undefined;
/**
* Last Name
- * @member {String} lastname
+ * @member {String} LastName
*/
-Contact.prototype['lastname'] = undefined;
+Contact.prototype['LastName'] = undefined;
/**
* Lead Source
- * @member {String} leadsource
+ * @member {String} LeadSource
*/
-Contact.prototype['leadsource'] = undefined;
-
-/**
- * Level
- * @member {String} level
- */
-Contact.prototype['level'] = undefined;
+Contact.prototype['LeadSource'] = undefined;
/**
* LinkedIn Page
- * @member {String} linkedin
+ * @member {String} LinkedIn
*/
-Contact.prototype['linkedin'] = undefined;
+Contact.prototype['LinkedIn'] = undefined;
/**
- * @member {module:model/Address} mailingaddress
+ * @member {module:model/Address} MailingAddress
*/
-Contact.prototype['mailingaddress'] = undefined;
-
-/**
- * Mailing Lists
- * @member {String} mailinglists
- */
-Contact.prototype['mailinglists'] = undefined;
+Contact.prototype['MailingAddress'] = undefined;
/**
* Mobile Phone
- * @member {String} mobilephone
+ * @member {String} MobilePhone
*/
-Contact.prototype['mobilephone'] = undefined;
+Contact.prototype['MobilePhone'] = undefined;
/**
* Full Name
- * @member {String} name
+ * @member {String} Name
*/
-Contact.prototype['name'] = undefined;
+Contact.prototype['Name'] = undefined;
/**
- * @member {module:model/Address} otheraddress
+ * @member {module:model/Address} OtherAddress
*/
-Contact.prototype['otheraddress'] = undefined;
+Contact.prototype['OtherAddress'] = undefined;
/**
* Other Phone
- * @member {String} otherphone
+ * @member {String} OtherPhone
*/
-Contact.prototype['otherphone'] = undefined;
+Contact.prototype['OtherPhone'] = undefined;
/**
* The User ID of the user who owns this Contact
- * @member {String} ownerid
+ * @member {String} OwnerID
*/
-Contact.prototype['ownerid'] = undefined;
+Contact.prototype['OwnerID'] = undefined;
/**
* Personal Email Address for this Contact
- * @member {String} personalemail
+ * @member {String} PersonalEmail
*/
-Contact.prototype['personalemail'] = undefined;
+Contact.prototype['PersonalEmail'] = undefined;
/**
* Phone Number
- * @member {String} phone
+ * @member {String} Phone
*/
-Contact.prototype['phone'] = undefined;
+Contact.prototype['Phone'] = undefined;
/**
* URL of a photograph of this User
- * @member {String} photourl
+ * @member {String} PhotoURL
*/
-Contact.prototype['photourl'] = undefined;
-
-/**
- * Recruiting Status
- * @member {String} recruitingstatus
- */
-Contact.prototype['recruitingstatus'] = undefined;
-
-/**
- * External reference to this contact, if any
- * @member {String} ref
- */
-Contact.prototype['ref'] = undefined;
-
-/**
- * Reports To Contact ID
- * @member {String} reportstoid
- */
-Contact.prototype['reportstoid'] = undefined;
-
-/**
- * Contact Salutation
- * @member {String} salutation
- */
-Contact.prototype['salutation'] = undefined;
-
-/**
- * The Contact Status
- * @member {String} status
- */
-Contact.prototype['status'] = undefined;
+Contact.prototype['PhotoURL'] = undefined;
/**
* Contact Title
- * @member {String} title
+ * @member {String} Title
*/
-Contact.prototype['title'] = undefined;
+Contact.prototype['Title'] = undefined;
/**
- * Contact Type
- * @member {String} type
+ * @member {String} Twitter
*/
-Contact.prototype['type'] = undefined;
+Contact.prototype['Twitter'] = undefined;
diff --git a/client/sf-gate/src/model/Industry.js b/client/sf-gate/src/model/Industry.js
new file mode 100644
index 0000000..2770e3c
--- /dev/null
+++ b/client/sf-gate/src/model/Industry.js
@@ -0,0 +1,172 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The Industry model module.
+ * @module model/Industry
+ * @version 0.0.2
+ */
+class Industry {
+ /**
+ * Constructs a new Industry
.
+ * An industry that is being researched
+ * @alias module:model/Industry
+ */
+ constructor() {
+
+ Industry.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a Industry
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Industry} obj Optional instance to populate.
+ * @return {module:model/Industry} The populated Industry
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Industry();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = ApiClient.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('CreatedByID')) {
+ obj['CreatedByID'] = ApiClient.convertToType(data['CreatedByID'], 'String');
+ }
+ if (data.hasOwnProperty('CreatedDate')) {
+ obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'String');
+ }
+ if (data.hasOwnProperty('LastModifiedByID')) {
+ obj['LastModifiedByID'] = ApiClient.convertToType(data['LastModifiedByID'], 'String');
+ }
+ if (data.hasOwnProperty('LastModifiedDate')) {
+ obj['LastModifiedDate'] = ApiClient.convertToType(data['LastModifiedDate'], 'String');
+ }
+ if (data.hasOwnProperty('Name')) {
+ obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
+ }
+ if (data.hasOwnProperty('Description')) {
+ obj['Description'] = ApiClient.convertToType(data['Description'], 'String');
+ }
+ if (data.hasOwnProperty('ParentIndustryID')) {
+ obj['ParentIndustryID'] = ApiClient.convertToType(data['ParentIndustryID'], 'String');
+ }
+ if (data.hasOwnProperty('Level')) {
+ obj['Level'] = ApiClient.convertToType(data['Level'], 'String');
+ }
+ if (data.hasOwnProperty('Path')) {
+ obj['Path'] = ApiClient.convertToType(data['Path'], 'String');
+ }
+ if (data.hasOwnProperty('Slug')) {
+ obj['Slug'] = ApiClient.convertToType(data['Slug'], 'String');
+ }
+ if (data.hasOwnProperty('SiteURL')) {
+ obj['SiteURL'] = ApiClient.convertToType(data['SiteURL'], 'String');
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * Taxnexus Record Id
+ * @member {String} ID
+ */
+Industry.prototype['ID'] = undefined;
+
+/**
+ * Created By User ID
+ * @member {String} CreatedByID
+ */
+Industry.prototype['CreatedByID'] = undefined;
+
+/**
+ * Created Date
+ * @member {String} CreatedDate
+ */
+Industry.prototype['CreatedDate'] = undefined;
+
+/**
+ * Last Modified By User ID
+ * @member {String} LastModifiedByID
+ */
+Industry.prototype['LastModifiedByID'] = undefined;
+
+/**
+ * Last Modified Date
+ * @member {String} LastModifiedDate
+ */
+Industry.prototype['LastModifiedDate'] = undefined;
+
+/**
+ * Industry Name
+ * @member {String} Name
+ */
+Industry.prototype['Name'] = undefined;
+
+/**
+ * Industry Description
+ * @member {String} Description
+ */
+Industry.prototype['Description'] = undefined;
+
+/**
+ * The ID of the Parent Industry
+ * @member {String} ParentIndustryID
+ */
+Industry.prototype['ParentIndustryID'] = undefined;
+
+/**
+ * The hierarchical level of this Industry
+ * @member {String} Level
+ */
+Industry.prototype['Level'] = undefined;
+
+/**
+ * The full path of this industry, including Parent
+ * @member {String} Path
+ */
+Industry.prototype['Path'] = undefined;
+
+/**
+ * The CMS Slug for this Industry
+ * @member {String} Slug
+ */
+Industry.prototype['Slug'] = undefined;
+
+/**
+ * The URL of the corresponding page on the CMS
+ * @member {String} SiteURL
+ */
+Industry.prototype['SiteURL'] = undefined;
+
+
+
+
+
+
+export default Industry;
+
diff --git a/client/sf-gate/src/model/IndustryProduct.js b/client/sf-gate/src/model/IndustryProduct.js
new file mode 100644
index 0000000..8a01fd0
--- /dev/null
+++ b/client/sf-gate/src/model/IndustryProduct.js
@@ -0,0 +1,133 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The IndustryProduct model module.
+ * @module model/IndustryProduct
+ * @version 0.0.2
+ */
+class IndustryProduct {
+ /**
+ * Constructs a new IndustryProduct
.
+ * Junction object between Industry and CompanyProduct
+ * @alias module:model/IndustryProduct
+ */
+ constructor() {
+
+ IndustryProduct.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a IndustryProduct
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/IndustryProduct} obj Optional instance to populate.
+ * @return {module:model/IndustryProduct} The populated IndustryProduct
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new IndustryProduct();
+
+ if (data.hasOwnProperty('ID')) {
+ obj['ID'] = ApiClient.convertToType(data['ID'], 'String');
+ }
+ if (data.hasOwnProperty('CreatedByID')) {
+ obj['CreatedByID'] = ApiClient.convertToType(data['CreatedByID'], 'String');
+ }
+ if (data.hasOwnProperty('CreatedDate')) {
+ obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'String');
+ }
+ if (data.hasOwnProperty('LastModifiedByID')) {
+ obj['LastModifiedByID'] = ApiClient.convertToType(data['LastModifiedByID'], 'String');
+ }
+ if (data.hasOwnProperty('LastModifiedDate')) {
+ obj['LastModifiedDate'] = ApiClient.convertToType(data['LastModifiedDate'], 'String');
+ }
+ if (data.hasOwnProperty('IndustryID')) {
+ obj['IndustryID'] = ApiClient.convertToType(data['IndustryID'], 'String');
+ }
+ if (data.hasOwnProperty('HTML')) {
+ obj['HTML'] = ApiClient.convertToType(data['HTML'], 'String');
+ }
+ if (data.hasOwnProperty('CompanyProductID')) {
+ obj['CompanyProductID'] = ApiClient.convertToType(data['CompanyProductID'], 'String');
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * Taxnexus Record Id
+ * @member {String} ID
+ */
+IndustryProduct.prototype['ID'] = undefined;
+
+/**
+ * Created By User ID
+ * @member {String} CreatedByID
+ */
+IndustryProduct.prototype['CreatedByID'] = undefined;
+
+/**
+ * Created Date
+ * @member {String} CreatedDate
+ */
+IndustryProduct.prototype['CreatedDate'] = undefined;
+
+/**
+ * Last Modified By User ID
+ * @member {String} LastModifiedByID
+ */
+IndustryProduct.prototype['LastModifiedByID'] = undefined;
+
+/**
+ * Last Modified Date
+ * @member {String} LastModifiedDate
+ */
+IndustryProduct.prototype['LastModifiedDate'] = undefined;
+
+/**
+ * @member {String} IndustryID
+ */
+IndustryProduct.prototype['IndustryID'] = undefined;
+
+/**
+ * @member {String} HTML
+ */
+IndustryProduct.prototype['HTML'] = undefined;
+
+/**
+ * @member {String} CompanyProductID
+ */
+IndustryProduct.prototype['CompanyProductID'] = undefined;
+
+
+
+
+
+
+export default IndustryProduct;
+
diff --git a/client/sf-gate/src/model/IndustryProductRequest.js b/client/sf-gate/src/model/IndustryProductRequest.js
new file mode 100644
index 0000000..a6fa4ae
--- /dev/null
+++ b/client/sf-gate/src/model/IndustryProductRequest.js
@@ -0,0 +1,73 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import IndustryProduct from './IndustryProduct';
+
+/**
+ * The IndustryProductRequest model module.
+ * @module model/IndustryProductRequest
+ * @version 0.0.2
+ */
+class IndustryProductRequest {
+ /**
+ * Constructs a new IndustryProductRequest
.
+ * An array of IndustryProduct objects submitted for processing
+ * @alias module:model/IndustryProductRequest
+ */
+ constructor() {
+
+ IndustryProductRequest.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a IndustryProductRequest
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/IndustryProductRequest} obj Optional instance to populate.
+ * @return {module:model/IndustryProductRequest} The populated IndustryProductRequest
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new IndustryProductRequest();
+
+ if (data.hasOwnProperty('Data')) {
+ obj['Data'] = ApiClient.convertToType(data['Data'], [IndustryProduct]);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * @member {Array.} Data
+ */
+IndustryProductRequest.prototype['Data'] = undefined;
+
+
+
+
+
+
+export default IndustryProductRequest;
+
diff --git a/client/sf-gate/src/model/IndustryProductResponse.js b/client/sf-gate/src/model/IndustryProductResponse.js
new file mode 100644
index 0000000..da0aae5
--- /dev/null
+++ b/client/sf-gate/src/model/IndustryProductResponse.js
@@ -0,0 +1,82 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import IndustryProduct from './IndustryProduct';
+import ResponseMeta from './ResponseMeta';
+
+/**
+ * The IndustryProductResponse model module.
+ * @module model/IndustryProductResponse
+ * @version 0.0.2
+ */
+class IndustryProductResponse {
+ /**
+ * Constructs a new IndustryProductResponse
.
+ * An array of IndustryProduct objects produced in response to a request
+ * @alias module:model/IndustryProductResponse
+ */
+ constructor() {
+
+ IndustryProductResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a IndustryProductResponse
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/IndustryProductResponse} obj Optional instance to populate.
+ * @return {module:model/IndustryProductResponse} The populated IndustryProductResponse
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new IndustryProductResponse();
+
+ if (data.hasOwnProperty('Data')) {
+ obj['Data'] = ApiClient.convertToType(data['Data'], [IndustryProduct]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = ResponseMeta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * @member {Array.} Data
+ */
+IndustryProductResponse.prototype['Data'] = undefined;
+
+/**
+ * @member {module:model/ResponseMeta} Meta
+ */
+IndustryProductResponse.prototype['Meta'] = undefined;
+
+
+
+
+
+
+export default IndustryProductResponse;
+
diff --git a/client/sf-gate/src/model/IndustryRequest.js b/client/sf-gate/src/model/IndustryRequest.js
new file mode 100644
index 0000000..f1a1f94
--- /dev/null
+++ b/client/sf-gate/src/model/IndustryRequest.js
@@ -0,0 +1,73 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import Industry from './Industry';
+
+/**
+ * The IndustryRequest model module.
+ * @module model/IndustryRequest
+ * @version 0.0.2
+ */
+class IndustryRequest {
+ /**
+ * Constructs a new IndustryRequest
.
+ * An array of Industry objects submitted for processing
+ * @alias module:model/IndustryRequest
+ */
+ constructor() {
+
+ IndustryRequest.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a IndustryRequest
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/IndustryRequest} obj Optional instance to populate.
+ * @return {module:model/IndustryRequest} The populated IndustryRequest
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new IndustryRequest();
+
+ if (data.hasOwnProperty('Data')) {
+ obj['Data'] = ApiClient.convertToType(data['Data'], [Industry]);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * @member {Array.} Data
+ */
+IndustryRequest.prototype['Data'] = undefined;
+
+
+
+
+
+
+export default IndustryRequest;
+
diff --git a/client/sf-gate/src/model/IndustryResponse.js b/client/sf-gate/src/model/IndustryResponse.js
new file mode 100644
index 0000000..4fae0a2
--- /dev/null
+++ b/client/sf-gate/src/model/IndustryResponse.js
@@ -0,0 +1,82 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import Industry from './Industry';
+import ResponseMeta from './ResponseMeta';
+
+/**
+ * The IndustryResponse model module.
+ * @module model/IndustryResponse
+ * @version 0.0.2
+ */
+class IndustryResponse {
+ /**
+ * Constructs a new IndustryResponse
.
+ * An array of Industry objects produced in response to a request
+ * @alias module:model/IndustryResponse
+ */
+ constructor() {
+
+ IndustryResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a IndustryResponse
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/IndustryResponse} obj Optional instance to populate.
+ * @return {module:model/IndustryResponse} The populated IndustryResponse
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new IndustryResponse();
+
+ if (data.hasOwnProperty('Data')) {
+ obj['Data'] = ApiClient.convertToType(data['Data'], [Industry]);
+ }
+ if (data.hasOwnProperty('Meta')) {
+ obj['Meta'] = ResponseMeta.constructFromObject(data['Meta']);
+ }
+ }
+ return obj;
+ }
+
+
+}
+
+/**
+ * @member {Array.} Data
+ */
+IndustryResponse.prototype['Data'] = undefined;
+
+/**
+ * @member {module:model/ResponseMeta} Meta
+ */
+IndustryResponse.prototype['Meta'] = undefined;
+
+
+
+
+
+
+export default IndustryResponse;
+
diff --git a/client/sf-gate/test/api/AssetsApi.spec.js b/client/sf-gate/test/api/AssetsApi.spec.js
new file mode 100644
index 0000000..7c7416e
--- /dev/null
+++ b/client/sf-gate/test/api/AssetsApi.spec.js
@@ -0,0 +1,73 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.AssetsApi();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('AssetsApi', function() {
+ describe('getAssets', function() {
+ it('should call getAssets successfully', function(done) {
+ //uncomment below and update the code to test getAssets
+ //instance.getAssets(function(error) {
+ // if (error) throw error;
+ //expect().to.be();
+ //});
+ done();
+ });
+ });
+ describe('postAssets', function() {
+ it('should call postAssets successfully', function(done) {
+ //uncomment below and update the code to test postAssets
+ //instance.postAssets(function(error) {
+ // if (error) throw error;
+ //expect().to.be();
+ //});
+ done();
+ });
+ });
+ });
+
+}));
diff --git a/client/sf-gate/test/api/CompanyProductsApi.spec.js b/client/sf-gate/test/api/CompanyProductsApi.spec.js
new file mode 100644
index 0000000..cb7070a
--- /dev/null
+++ b/client/sf-gate/test/api/CompanyProductsApi.spec.js
@@ -0,0 +1,73 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.CompanyProductsApi();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('CompanyProductsApi', function() {
+ describe('getCompanyProducts', function() {
+ it('should call getCompanyProducts successfully', function(done) {
+ //uncomment below and update the code to test getCompanyProducts
+ //instance.getCompanyProducts(function(error) {
+ // if (error) throw error;
+ //expect().to.be();
+ //});
+ done();
+ });
+ });
+ describe('postCompanyProducts', function() {
+ it('should call postCompanyProducts successfully', function(done) {
+ //uncomment below and update the code to test postCompanyProducts
+ //instance.postCompanyProducts(function(error) {
+ // if (error) throw error;
+ //expect().to.be();
+ //});
+ done();
+ });
+ });
+ });
+
+}));
diff --git a/client/sf-gate/test/api/IndustriesApi.spec.js b/client/sf-gate/test/api/IndustriesApi.spec.js
new file mode 100644
index 0000000..c3803a8
--- /dev/null
+++ b/client/sf-gate/test/api/IndustriesApi.spec.js
@@ -0,0 +1,73 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.IndustriesApi();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('IndustriesApi', function() {
+ describe('getIndustries', function() {
+ it('should call getIndustries successfully', function(done) {
+ //uncomment below and update the code to test getIndustries
+ //instance.getIndustries(function(error) {
+ // if (error) throw error;
+ //expect().to.be();
+ //});
+ done();
+ });
+ });
+ describe('postIndustries', function() {
+ it('should call postIndustries successfully', function(done) {
+ //uncomment below and update the code to test postIndustries
+ //instance.postIndustries(function(error) {
+ // if (error) throw error;
+ //expect().to.be();
+ //});
+ done();
+ });
+ });
+ });
+
+}));
diff --git a/client/sf-gate/test/api/IndustryProductsApi.spec.js b/client/sf-gate/test/api/IndustryProductsApi.spec.js
new file mode 100644
index 0000000..3a887a5
--- /dev/null
+++ b/client/sf-gate/test/api/IndustryProductsApi.spec.js
@@ -0,0 +1,63 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.IndustryProductsApi();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('IndustryProductsApi', function() {
+ describe('postIndustryproducts', function() {
+ it('should call postIndustryproducts successfully', function(done) {
+ //uncomment below and update the code to test postIndustryproducts
+ //instance.postIndustryproducts(function(error) {
+ // if (error) throw error;
+ //expect().to.be();
+ //});
+ done();
+ });
+ });
+ });
+
+}));
diff --git a/client/sf-gate/test/api/IndustryproductsApi.spec.js b/client/sf-gate/test/api/IndustryproductsApi.spec.js
new file mode 100644
index 0000000..14837bd
--- /dev/null
+++ b/client/sf-gate/test/api/IndustryproductsApi.spec.js
@@ -0,0 +1,63 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.IndustryproductsApi();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('IndustryproductsApi', function() {
+ describe('getIndustryProducts', function() {
+ it('should call getIndustryProducts successfully', function(done) {
+ //uncomment below and update the code to test getIndustryProducts
+ //instance.getIndustryProducts(function(error) {
+ // if (error) throw error;
+ //expect().to.be();
+ //});
+ done();
+ });
+ });
+ });
+
+}));
diff --git a/client/sf-gate/test/model/Account.spec.js b/client/sf-gate/test/model/Account.spec.js
index 4031dc0..4c8b791 100644
--- a/client/sf-gate/test/model/Account.spec.js
+++ b/client/sf-gate/test/model/Account.spec.js
@@ -54,530 +54,296 @@
//expect(instance).to.be.a(SfGate.Account);
});
- it('should have the property tenantid (base name: "tenantid")', function() {
- // uncomment below and update the code to test the property tenantid
+ it('should have the property tenantID (base name: "TenantID")', function() {
+ // uncomment below and update the code to test the property tenantID
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property accountnumber (base name: "accountnumber")', function() {
- // uncomment below and update the code to test the property accountnumber
+ it('should have the property ID (base name: "ID")', function() {
+ // uncomment below and update the code to test the property ID
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property accountsource (base name: "accountsource")', function() {
- // uncomment below and update the code to test the property accountsource
+ it('should have the property accountNumber (base name: "AccountNumber")', function() {
+ // uncomment below and update the code to test the property accountNumber
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property active (base name: "active")', function() {
- // uncomment below and update the code to test the property active
+ it('should have the property accountSource (base name: "AccountSource")', function() {
+ // uncomment below and update the code to test the property accountSource
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property administrativelevel (base name: "administrativelevel")', function() {
- // uncomment below and update the code to test the property administrativelevel
+ it('should have the property annualRevenue (base name: "AnnualRevenue")', function() {
+ // uncomment below and update the code to test the property annualRevenue
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property amount (base name: "amount")', function() {
- // uncomment below and update the code to test the property amount
+ it('should have the property billingAddress (base name: "BillingAddress")', function() {
+ // uncomment below and update the code to test the property billingAddress
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property amountinvoiced (base name: "amountinvoiced")', function() {
- // uncomment below and update the code to test the property amountinvoiced
+ it('should have the property billingContactID (base name: "BillingContactID")', function() {
+ // uncomment below and update the code to test the property billingContactID
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property amountpaid (base name: "amountpaid")', function() {
- // uncomment below and update the code to test the property amountpaid
+ it('should have the property createdByID (base name: "CreatedByID")', function() {
+ // uncomment below and update the code to test the property createdByID
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property annualrevenue (base name: "annualrevenue")', function() {
- // uncomment below and update the code to test the property annualrevenue
+ it('should have the property createdDate (base name: "CreatedDate")', function() {
+ // uncomment below and update the code to test the property createdDate
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property balance (base name: "balance")', function() {
- // uncomment below and update the code to test the property balance
+ it('should have the property closeDate (base name: "CloseDate")', function() {
+ // uncomment below and update the code to test the property closeDate
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property billingaddress (base name: "billingaddress")', function() {
- // uncomment below and update the code to test the property billingaddress
+ it('should have the property cloudRevenueTotal (base name: "CloudRevenueTotal")', function() {
+ // uncomment below and update the code to test the property cloudRevenueTotal
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property billingcontactid (base name: "billingcontactid")', function() {
- // uncomment below and update the code to test the property billingcontactid
+ it('should have the property cloudType (base name: "CloudType")', function() {
+ // uncomment below and update the code to test the property cloudType
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property billingpreference (base name: "billingpreference")', function() {
- // uncomment below and update the code to test the property billingpreference
+ it('should have the property cloudYear (base name: "CloudYear")', function() {
+ // uncomment below and update the code to test the property cloudYear
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property businessaddress (base name: "businessaddress")', function() {
- // uncomment below and update the code to test the property businessaddress
+ it('should have the property crunchbaseURL (base name: "CrunchbaseURL")', function() {
+ // uncomment below and update the code to test the property crunchbaseURL
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property cannabiscustomer (base name: "cannabiscustomer")', function() {
- // uncomment below and update the code to test the property cannabiscustomer
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property channelprogramlevelname (base name: "channelprogramlevelname")', function() {
- // uncomment below and update the code to test the property channelprogramlevelname
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property channelprogramname (base name: "channelprogramname")', function() {
- // uncomment below and update the code to test the property channelprogramname
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property clientenddate (base name: "clientenddate")', function() {
- // uncomment below and update the code to test the property clientenddate
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property clientstartdate (base name: "clientstartdate")', function() {
- // uncomment below and update the code to test the property clientstartdate
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property companyid (base name: "companyid")', function() {
- // uncomment below and update the code to test the property companyid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property coordinateid (base name: "coordinateid")', function() {
- // uncomment below and update the code to test the property coordinateid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property createdbyid (base name: "createdbyid")', function() {
- // uncomment below and update the code to test the property createdbyid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property createddate (base name: "createddate")', function() {
- // uncomment below and update the code to test the property createddate
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property customerid (base name: "customerid")', function() {
- // uncomment below and update the code to test the property customerid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property customerpriority (base name: "customerpriority")', function() {
- // uncomment below and update the code to test the property customerpriority
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property dandbcompanyid (base name: "dandbcompanyid")', function() {
- // uncomment below and update the code to test the property dandbcompanyid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property dba (base name: "dba")', function() {
- // uncomment below and update the code to test the property dba
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property defaultaddress (base name: "defaultaddress")', function() {
- // uncomment below and update the code to test the property defaultaddress
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property defaultbackendid (base name: "defaultbackendid")', function() {
- // uncomment below and update the code to test the property defaultbackendid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property defaultdeliverycontactid (base name: "defaultdeliverycontactid")', function() {
- // uncomment below and update the code to test the property defaultdeliverycontactid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property defaultenduserid (base name: "defaultenduserid")', function() {
- // uncomment below and update the code to test the property defaultenduserid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property description (base name: "description")', function() {
+ it('should have the property description (base name: "Description")', function() {
// uncomment below and update the code to test the property description
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property dunsnumber (base name: "dunsnumber")', function() {
- // uncomment below and update the code to test the property dunsnumber
+ it('should have the property earningsCall (base name: "EarningsCall")', function() {
+ // uncomment below and update the code to test the property earningsCall
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property ein (base name: "ein")', function() {
- // uncomment below and update the code to test the property ein
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property email (base name: "email")', function() {
+ it('should have the property email (base name: "Email")', function() {
// uncomment below and update the code to test the property email
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property enrollmentstatus (base name: "enrollmentstatus")', function() {
- // uncomment below and update the code to test the property enrollmentstatus
+ it('should have the property equityFunding (base name: "EquityFunding")', function() {
+ // uncomment below and update the code to test the property equityFunding
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property fax (base name: "fax")', function() {
+ it('should have the property fax (base name: "Fax")', function() {
// uncomment below and update the code to test the property fax
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property id (base name: "id")', function() {
- // uncomment below and update the code to test the property id
+ it('should have the property foundedDate (base name: "FoundedDate")', function() {
+ // uncomment below and update the code to test the property foundedDate
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property industry (base name: "industry")', function() {
+ it('should have the property industry (base name: "Industry")', function() {
// uncomment below and update the code to test the property industry
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property iscustomerportal (base name: "iscustomerportal")', function() {
- // uncomment below and update the code to test the property iscustomerportal
+ it('should have the property facebook (base name: "Facebook")', function() {
+ // uncomment below and update the code to test the property facebook
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property ispartner (base name: "ispartner")', function() {
- // uncomment below and update the code to test the property ispartner
+ it('should have the property industries (base name: "Industries")', function() {
+ // uncomment below and update the code to test the property industries
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property ispcustomer (base name: "ispcustomer")', function() {
- // uncomment below and update the code to test the property ispcustomer
+ it('should have the property iPODate (base name: "IPODate")', function() {
+ // uncomment below and update the code to test the property iPODate
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property jigsaw (base name: "jigsaw")', function() {
- // uncomment below and update the code to test the property jigsaw
+ it('should have the property lastModifiedByID (base name: "LastModifiedByID")', function() {
+ // uncomment below and update the code to test the property lastModifiedByID
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property lastmodifiedbyid (base name: "lastmodifiedbyid")', function() {
- // uncomment below and update the code to test the property lastmodifiedbyid
+ it('should have the property lastModifiedDate (base name: "LastModifiedDate")', function() {
+ // uncomment below and update the code to test the property lastModifiedDate
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property lastmodifieddate (base name: "lastmodifieddate")', function() {
- // uncomment below and update the code to test the property lastmodifieddate
+ it('should have the property linkedIn (base name: "LinkedIn")', function() {
+ // uncomment below and update the code to test the property linkedIn
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property mspcustomer (base name: "mspcustomer")', function() {
- // uncomment below and update the code to test the property mspcustomer
+ it('should have the property location (base name: "Location")', function() {
+ // uncomment below and update the code to test the property location
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property naicscode (base name: "naicscode")', function() {
- // uncomment below and update the code to test the property naicscode
+ it('should have the property marketCapitalization (base name: "MarketCapitalization")', function() {
+ // uncomment below and update the code to test the property marketCapitalization
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property naicsdesc (base name: "naicsdesc")', function() {
- // uncomment below and update the code to test the property naicsdesc
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property name (base name: "name")', function() {
+ it('should have the property name (base name: "Name")', function() {
// uncomment below and update the code to test the property name
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property numberofemployees (base name: "numberofemployees")', function() {
- // uncomment below and update the code to test the property numberofemployees
+ it('should have the property numberOfEmployees (base name: "NumberOfEmployees")', function() {
+ // uncomment below and update the code to test the property numberOfEmployees
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property numberoflocations (base name: "numberoflocations")', function() {
- // uncomment below and update the code to test the property numberoflocations
+ it('should have the property numberInvestments (base name: "NumberInvestments")', function() {
+ // uncomment below and update the code to test the property numberInvestments
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property opencharges (base name: "opencharges")', function() {
- // uncomment below and update the code to test the property opencharges
+ it('should have the property ownerID (base name: "OwnerID")', function() {
+ // uncomment below and update the code to test the property ownerID
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property ordercontactid (base name: "ordercontactid")', function() {
- // uncomment below and update the code to test the property ordercontactid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property orderemail (base name: "orderemail")', function() {
- // uncomment below and update the code to test the property orderemail
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property ownerid (base name: "ownerid")', function() {
- // uncomment below and update the code to test the property ownerid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property ownership (base name: "ownership")', function() {
+ it('should have the property ownership (base name: "Ownership")', function() {
// uncomment below and update the code to test the property ownership
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property parentfk (base name: "parentfk")', function() {
- // uncomment below and update the code to test the property parentfk
+ it('should have the property parentID (base name: "ParentID")', function() {
+ // uncomment below and update the code to test the property parentID
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property parentid (base name: "parentid")', function() {
- // uncomment below and update the code to test the property parentid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property phone (base name: "phone")', function() {
+ it('should have the property phone (base name: "Phone")', function() {
// uncomment below and update the code to test the property phone
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property placeid (base name: "placeid")', function() {
- // uncomment below and update the code to test the property placeid
+ it('should have the property publish (base name: "Publish")', function() {
+ // uncomment below and update the code to test the property publish
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property preparerid (base name: "preparerid")', function() {
- // uncomment below and update the code to test the property preparerid
+ it('should have the property salesforceFirst (base name: "SalesforceFirst")', function() {
+ // uncomment below and update the code to test the property salesforceFirst
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property rating (base name: "rating")', function() {
- // uncomment below and update the code to test the property rating
+ it('should have the property shippingAddress (base name: "ShippingAddress")', function() {
+ // uncomment below and update the code to test the property shippingAddress
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property ratingengineid (base name: "ratingengineid")', function() {
- // uncomment below and update the code to test the property ratingengineid
+ it('should have the property shippingContactID (base name: "ShippingContactID")', function() {
+ // uncomment below and update the code to test the property shippingContactID
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property ref (base name: "ref")', function() {
- // uncomment below and update the code to test the property ref
+ it('should have the property SIC (base name: "SIC")', function() {
+ // uncomment below and update the code to test the property SIC
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property revenuebase (base name: "revenuebase")', function() {
- // uncomment below and update the code to test the property revenuebase
+ it('should have the property sICDesc (base name: "SICDesc")', function() {
+ // uncomment below and update the code to test the property sICDesc
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property revenuenet (base name: "revenuenet")', function() {
- // uncomment below and update the code to test the property revenuenet
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property revenuenottaxable (base name: "revenuenottaxable")', function() {
- // uncomment below and update the code to test the property revenuenottaxable
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property shippingaddress (base name: "shippingaddress")', function() {
- // uncomment below and update the code to test the property shippingaddress
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property shippingcensustract (base name: "shippingcensustract")', function() {
- // uncomment below and update the code to test the property shippingcensustract
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property shippingcounty (base name: "shippingcounty")', function() {
- // uncomment below and update the code to test the property shippingcounty
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property shippingcontactid (base name: "shippingcontactid")', function() {
- // uncomment below and update the code to test the property shippingcontactid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property sic (base name: "sic")', function() {
- // uncomment below and update the code to test the property sic
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property sicdesc (base name: "sicdesc")', function() {
- // uncomment below and update the code to test the property sicdesc
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property site (base name: "site")', function() {
+ it('should have the property site (base name: "Site")', function() {
// uncomment below and update the code to test the property site
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property status (base name: "status")', function() {
- // uncomment below and update the code to test the property status
+ it('should have the property tagLine (base name: "TagLine")', function() {
+ // uncomment below and update the code to test the property tagLine
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property taxexemption (base name: "taxexemption")', function() {
- // uncomment below and update the code to test the property taxexemption
+ it('should have the property tickerSymbol (base name: "TickerSymbol")', function() {
+ // uncomment below and update the code to test the property tickerSymbol
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property taxontax (base name: "taxontax")', function() {
- // uncomment below and update the code to test the property taxontax
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property telecomcustomer (base name: "telecomcustomer")', function() {
- // uncomment below and update the code to test the property telecomcustomer
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property tickersymbol (base name: "tickersymbol")', function() {
- // uncomment below and update the code to test the property tickersymbol
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property tradestyle (base name: "tradestyle")', function() {
- // uncomment below and update the code to test the property tradestyle
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property type (base name: "type")', function() {
+ it('should have the property type (base name: "Type")', function() {
// uncomment below and update the code to test the property type
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property unappliedpayments (base name: "unappliedpayments")', function() {
- // uncomment below and update the code to test the property unappliedpayments
+ it('should have the property twitter (base name: "Twitter")', function() {
+ // uncomment below and update the code to test the property twitter
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property unitbase (base name: "unitbase")', function() {
- // uncomment below and update the code to test the property unitbase
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property upsellopportunity (base name: "upsellopportunity")', function() {
- // uncomment below and update the code to test the property upsellopportunity
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property website (base name: "website")', function() {
+ it('should have the property website (base name: "Website")', function() {
// uncomment below and update the code to test the property website
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
- it('should have the property whmcsclientid (base name: "whmcsclientid")', function() {
- // uncomment below and update the code to test the property whmcsclientid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property xerocontactid (base name: "xerocontactid")', function() {
- // uncomment below and update the code to test the property xerocontactid
- //var instance = new SfGate.Account();
- //expect(instance).to.be();
- });
-
- it('should have the property yearstarted (base name: "yearstarted")', function() {
- // uncomment below and update the code to test the property yearstarted
+ it('should have the property yearStarted (base name: "YearStarted")', function() {
+ // uncomment below and update the code to test the property yearStarted
//var instance = new SfGate.Account();
//expect(instance).to.be();
});
diff --git a/client/sf-gate/test/model/Asset.spec.js b/client/sf-gate/test/model/Asset.spec.js
new file mode 100644
index 0000000..1bf4ba0
--- /dev/null
+++ b/client/sf-gate/test/model/Asset.spec.js
@@ -0,0 +1,341 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.Asset();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('Asset', function() {
+ it('should create an instance of Asset', function() {
+ // uncomment below and update the code to test Asset
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be.a(SfGate.Asset);
+ });
+
+ it('should have the property ID (base name: "ID")', function() {
+ // uncomment below and update the code to test the property ID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property accountID (base name: "AccountID")', function() {
+ // uncomment below and update the code to test the property accountID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property address (base name: "Address")', function() {
+ // uncomment below and update the code to test the property address
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property assetLevel (base name: "AssetLevel")', function() {
+ // uncomment below and update the code to test the property assetLevel
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property name (base name: "Name")', function() {
+ // uncomment below and update the code to test the property name
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property assetProvidedByID (base name: "AssetProvidedByID")', function() {
+ // uncomment below and update the code to test the property assetProvidedByID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property assetServicedByID (base name: "AssetServicedByID")', function() {
+ // uncomment below and update the code to test the property assetServicedByID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property companyProductID (base name: "CompanyProductID")', function() {
+ // uncomment below and update the code to test the property companyProductID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property isCompetitorProduct (base name: "IsCompetitorProduct")', function() {
+ // uncomment below and update the code to test the property isCompetitorProduct
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property consequenceOfFailure (base name: "ConsequenceOfFailure")', function() {
+ // uncomment below and update the code to test the property consequenceOfFailure
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property contactID (base name: "ContactID")', function() {
+ // uncomment below and update the code to test the property contactID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property createdByID (base name: "CreatedByID")', function() {
+ // uncomment below and update the code to test the property createdByID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property createdDate (base name: "CreatedDate")', function() {
+ // uncomment below and update the code to test the property createdDate
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property currentAmount (base name: "CurrentAmount")', function() {
+ // uncomment below and update the code to test the property currentAmount
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property currentLifecycleEndDate (base name: "CurrentLifecycleEndDate")', function() {
+ // uncomment below and update the code to test the property currentLifecycleEndDate
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property currentMrr (base name: "CurrentMrr")', function() {
+ // uncomment below and update the code to test the property currentMrr
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property currentQuantity (base name: "CurrentQuantity")', function() {
+ // uncomment below and update the code to test the property currentQuantity
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property description (base name: "Description")', function() {
+ // uncomment below and update the code to test the property description
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property digitalAssetStatus (base name: "DigitalAssetStatus")', function() {
+ // uncomment below and update the code to test the property digitalAssetStatus
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property externalIdentifier (base name: "ExternalIdentifier")', function() {
+ // uncomment below and update the code to test the property externalIdentifier
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property hasLifecycleManagement (base name: "HasLifecycleManagement")', function() {
+ // uncomment below and update the code to test the property hasLifecycleManagement
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property installDate (base name: "InstallDate")', function() {
+ // uncomment below and update the code to test the property installDate
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property isInternal (base name: "IsInternal")', function() {
+ // uncomment below and update the code to test the property isInternal
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property lastModifiedByID (base name: "LastModifiedByID")', function() {
+ // uncomment below and update the code to test the property lastModifiedByID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property lastModifiedDate (base name: "LastModifiedDate")', function() {
+ // uncomment below and update the code to test the property lastModifiedDate
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property locationID (base name: "LocationID")', function() {
+ // uncomment below and update the code to test the property locationID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property manufactureDate (base name: "ManufactureDate")', function() {
+ // uncomment below and update the code to test the property manufactureDate
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property mIMEType (base name: "MIMEType")', function() {
+ // uncomment below and update the code to test the property mIMEType
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property parentID (base name: "ParentID")', function() {
+ // uncomment below and update the code to test the property parentID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property price (base name: "Price")', function() {
+ // uncomment below and update the code to test the property price
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property product2ID (base name: "Product2ID")', function() {
+ // uncomment below and update the code to test the property product2ID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property productCode (base name: "ProductCode")', function() {
+ // uncomment below and update the code to test the property productCode
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property productDescription (base name: "ProductDescription")', function() {
+ // uncomment below and update the code to test the property productDescription
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property productFamily (base name: "ProductFamily")', function() {
+ // uncomment below and update the code to test the property productFamily
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property stockKeepingUnit (base name: "StockKeepingUnit")', function() {
+ // uncomment below and update the code to test the property stockKeepingUnit
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property purchaseDate (base name: "PurchaseDate")', function() {
+ // uncomment below and update the code to test the property purchaseDate
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property quantity (base name: "Quantity")', function() {
+ // uncomment below and update the code to test the property quantity
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property rootAssetID (base name: "RootAssetID")', function() {
+ // uncomment below and update the code to test the property rootAssetID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property serialNumber (base name: "SerialNumber")', function() {
+ // uncomment below and update the code to test the property serialNumber
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property status (base name: "Status")', function() {
+ // uncomment below and update the code to test the property status
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property statusReason (base name: "StatusReason")', function() {
+ // uncomment below and update the code to test the property statusReason
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property tenantID (base name: "TenantID")', function() {
+ // uncomment below and update the code to test the property tenantID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property totalLifecycleAmount (base name: "TotalLifecycleAmount")', function() {
+ // uncomment below and update the code to test the property totalLifecycleAmount
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property type (base name: "Type")', function() {
+ // uncomment below and update the code to test the property type
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property UUID (base name: "UUID")', function() {
+ // uncomment below and update the code to test the property UUID
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property URL (base name: "URL")', function() {
+ // uncomment below and update the code to test the property URL
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property usageEndDate (base name: "UsageEndDate")', function() {
+ // uncomment below and update the code to test the property usageEndDate
+ //var instance = new SfGate.Asset();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/AssetRequest.spec.js b/client/sf-gate/test/model/AssetRequest.spec.js
new file mode 100644
index 0000000..b79dbf2
--- /dev/null
+++ b/client/sf-gate/test/model/AssetRequest.spec.js
@@ -0,0 +1,65 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.AssetRequest();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('AssetRequest', function() {
+ it('should create an instance of AssetRequest', function() {
+ // uncomment below and update the code to test AssetRequest
+ //var instance = new SfGate.AssetRequest();
+ //expect(instance).to.be.a(SfGate.AssetRequest);
+ });
+
+ it('should have the property data (base name: "Data")', function() {
+ // uncomment below and update the code to test the property data
+ //var instance = new SfGate.AssetRequest();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/AssetResponse.spec.js b/client/sf-gate/test/model/AssetResponse.spec.js
new file mode 100644
index 0000000..0fff639
--- /dev/null
+++ b/client/sf-gate/test/model/AssetResponse.spec.js
@@ -0,0 +1,71 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.AssetResponse();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('AssetResponse', function() {
+ it('should create an instance of AssetResponse', function() {
+ // uncomment below and update the code to test AssetResponse
+ //var instance = new SfGate.AssetResponse();
+ //expect(instance).to.be.a(SfGate.AssetResponse);
+ });
+
+ it('should have the property data (base name: "Data")', function() {
+ // uncomment below and update the code to test the property data
+ //var instance = new SfGate.AssetResponse();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property meta (base name: "Meta")', function() {
+ // uncomment below and update the code to test the property meta
+ //var instance = new SfGate.AssetResponse();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/CompanyProduct.spec.js b/client/sf-gate/test/model/CompanyProduct.spec.js
new file mode 100644
index 0000000..da4d8fc
--- /dev/null
+++ b/client/sf-gate/test/model/CompanyProduct.spec.js
@@ -0,0 +1,119 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.CompanyProduct();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('CompanyProduct', function() {
+ it('should create an instance of CompanyProduct', function() {
+ // uncomment below and update the code to test CompanyProduct
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be.a(SfGate.CompanyProduct);
+ });
+
+ it('should have the property ID (base name: "ID")', function() {
+ // uncomment below and update the code to test the property ID
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property createdByID (base name: "CreatedByID")', function() {
+ // uncomment below and update the code to test the property createdByID
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property createdDate (base name: "CreatedDate")', function() {
+ // uncomment below and update the code to test the property createdDate
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property lastModifiedByID (base name: "LastModifiedByID")', function() {
+ // uncomment below and update the code to test the property lastModifiedByID
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property lastModifiedDate (base name: "LastModifiedDate")', function() {
+ // uncomment below and update the code to test the property lastModifiedDate
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property accountID (base name: "AccountID")', function() {
+ // uncomment below and update the code to test the property accountID
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property description (base name: "Description")', function() {
+ // uncomment below and update the code to test the property description
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property name (base name: "Name")', function() {
+ // uncomment below and update the code to test the property name
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property tagLine (base name: "TagLine")', function() {
+ // uncomment below and update the code to test the property tagLine
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property URL (base name: "URL")', function() {
+ // uncomment below and update the code to test the property URL
+ //var instance = new SfGate.CompanyProduct();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/CompanyProductRequest.spec.js b/client/sf-gate/test/model/CompanyProductRequest.spec.js
new file mode 100644
index 0000000..b44a666
--- /dev/null
+++ b/client/sf-gate/test/model/CompanyProductRequest.spec.js
@@ -0,0 +1,71 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.CompanyProductRequest();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('CompanyProductRequest', function() {
+ it('should create an instance of CompanyProductRequest', function() {
+ // uncomment below and update the code to test CompanyProductRequest
+ //var instance = new SfGate.CompanyProductRequest();
+ //expect(instance).to.be.a(SfGate.CompanyProductRequest);
+ });
+
+ it('should have the property data (base name: "data")', function() {
+ // uncomment below and update the code to test the property data
+ //var instance = new SfGate.CompanyProductRequest();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property meta (base name: "meta")', function() {
+ // uncomment below and update the code to test the property meta
+ //var instance = new SfGate.CompanyProductRequest();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/CompanyProductResponse.spec.js b/client/sf-gate/test/model/CompanyProductResponse.spec.js
new file mode 100644
index 0000000..ba4d582
--- /dev/null
+++ b/client/sf-gate/test/model/CompanyProductResponse.spec.js
@@ -0,0 +1,71 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.CompanyProductResponse();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('CompanyProductResponse', function() {
+ it('should create an instance of CompanyProductResponse', function() {
+ // uncomment below and update the code to test CompanyProductResponse
+ //var instance = new SfGate.CompanyProductResponse();
+ //expect(instance).to.be.a(SfGate.CompanyProductResponse);
+ });
+
+ it('should have the property data (base name: "data")', function() {
+ // uncomment below and update the code to test the property data
+ //var instance = new SfGate.CompanyProductResponse();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property meta (base name: "meta")', function() {
+ // uncomment below and update the code to test the property meta
+ //var instance = new SfGate.CompanyProductResponse();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/Contact.spec.js b/client/sf-gate/test/model/Contact.spec.js
index 66b7f68..6efd6e3 100644
--- a/client/sf-gate/test/model/Contact.spec.js
+++ b/client/sf-gate/test/model/Contact.spec.js
@@ -54,272 +54,224 @@
//expect(instance).to.be.a(SfGate.Contact);
});
- it('should have the property tenantid (base name: "tenantid")', function() {
- // uncomment below and update the code to test the property tenantid
+ it('should have the property tenantID (base name: "TenantID")', function() {
+ // uncomment below and update the code to test the property tenantID
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property accountid (base name: "accountid")', function() {
- // uncomment below and update the code to test the property accountid
+ it('should have the property ID (base name: "ID")', function() {
+ // uncomment below and update the code to test the property ID
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property assistantname (base name: "assistantname")', function() {
- // uncomment below and update the code to test the property assistantname
+ it('should have the property accountID (base name: "AccountID")', function() {
+ // uncomment below and update the code to test the property accountID
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property assistantphone (base name: "assistantphone")', function() {
- // uncomment below and update the code to test the property assistantphone
+ it('should have the property assistantName (base name: "AssistantName")', function() {
+ // uncomment below and update the code to test the property assistantName
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property birthdate (base name: "birthdate")', function() {
- // uncomment below and update the code to test the property birthdate
+ it('should have the property assistantPhone (base name: "AssistantPhone")', function() {
+ // uncomment below and update the code to test the property assistantPhone
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property createdbyid (base name: "createdbyid")', function() {
- // uncomment below and update the code to test the property createdbyid
+ it('should have the property birthDate (base name: "BirthDate")', function() {
+ // uncomment below and update the code to test the property birthDate
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property createddate (base name: "createddate")', function() {
- // uncomment below and update the code to test the property createddate
+ it('should have the property createdByID (base name: "CreatedByID")', function() {
+ // uncomment below and update the code to test the property createdByID
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property department (base name: "department")', function() {
+ it('should have the property createdDate (base name: "CreatedDate")', function() {
+ // uncomment below and update the code to test the property createdDate
+ //var instance = new SfGate.Contact();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property department (base name: "Department")', function() {
// uncomment below and update the code to test the property department
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property description (base name: "description")', function() {
+ it('should have the property description (base name: "Description")', function() {
// uncomment below and update the code to test the property description
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property donotcall (base name: "donotcall")', function() {
- // uncomment below and update the code to test the property donotcall
+ it('should have the property doNotCall (base name: "DoNotCall")', function() {
+ // uncomment below and update the code to test the property doNotCall
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property email (base name: "email")', function() {
+ it('should have the property email (base name: "Email")', function() {
// uncomment below and update the code to test the property email
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property emailbounceddate (base name: "emailbounceddate")', function() {
- // uncomment below and update the code to test the property emailbounceddate
+ it('should have the property emailBounceDate (base name: "EmailBounceDate")', function() {
+ // uncomment below and update the code to test the property emailBounceDate
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property emailbouncedreason (base name: "emailbouncedreason")', function() {
- // uncomment below and update the code to test the property emailbouncedreason
+ it('should have the property emailBounceReason (base name: "EmailBounceReason")', function() {
+ // uncomment below and update the code to test the property emailBounceReason
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property enrollmentstatus (base name: "enrollmentstatus")', function() {
- // uncomment below and update the code to test the property enrollmentstatus
- //var instance = new SfGate.Contact();
- //expect(instance).to.be();
- });
-
- it('should have the property fax (base name: "fax")', function() {
+ it('should have the property fax (base name: "Fax")', function() {
// uncomment below and update the code to test the property fax
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property firstname (base name: "firstname")', function() {
- // uncomment below and update the code to test the property firstname
+ it('should have the property facebook (base name: "Facebook")', function() {
+ // uncomment below and update the code to test the property facebook
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property hasoptedoutofemail (base name: "hasoptedoutofemail")', function() {
- // uncomment below and update the code to test the property hasoptedoutofemail
+ it('should have the property firstName (base name: "FirstName")', function() {
+ // uncomment below and update the code to test the property firstName
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property hasoptedoutoffax (base name: "hasoptedoutoffax")', function() {
- // uncomment below and update the code to test the property hasoptedoutoffax
+ it('should have the property hasOptedOutOfEmail (base name: "HasOptedOutOfEmail")', function() {
+ // uncomment below and update the code to test the property hasOptedOutOfEmail
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property homephone (base name: "homephone")', function() {
- // uncomment below and update the code to test the property homephone
+ it('should have the property hasOptedOutOfFax (base name: "HasOptedOutOfFax")', function() {
+ // uncomment below and update the code to test the property hasOptedOutOfFax
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property id (base name: "id")', function() {
- // uncomment below and update the code to test the property id
+ it('should have the property homePhone (base name: "HomePhone")', function() {
+ // uncomment below and update the code to test the property homePhone
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property isemailbounced (base name: "isemailbounced")', function() {
- // uncomment below and update the code to test the property isemailbounced
+ it('should have the property isEmailBounced (base name: "IsEmailBounced")', function() {
+ // uncomment below and update the code to test the property isEmailBounced
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property isprovisioned (base name: "isprovisioned")', function() {
- // uncomment below and update the code to test the property isprovisioned
+ it('should have the property lastModifiedByID (base name: "LastModifiedByID")', function() {
+ // uncomment below and update the code to test the property lastModifiedByID
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property lastmodifiedbyid (base name: "lastmodifiedbyid")', function() {
- // uncomment below and update the code to test the property lastmodifiedbyid
+ it('should have the property lastModifiedDate (base name: "LastModifiedDate")', function() {
+ // uncomment below and update the code to test the property lastModifiedDate
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property lastmodifieddate (base name: "lastmodifieddate")', function() {
- // uncomment below and update the code to test the property lastmodifieddate
+ it('should have the property lastName (base name: "LastName")', function() {
+ // uncomment below and update the code to test the property lastName
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property lastname (base name: "lastname")', function() {
- // uncomment below and update the code to test the property lastname
+ it('should have the property leadSource (base name: "LeadSource")', function() {
+ // uncomment below and update the code to test the property leadSource
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property leadsource (base name: "leadsource")', function() {
- // uncomment below and update the code to test the property leadsource
+ it('should have the property linkedIn (base name: "LinkedIn")', function() {
+ // uncomment below and update the code to test the property linkedIn
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property level (base name: "level")', function() {
- // uncomment below and update the code to test the property level
+ it('should have the property mailingAddress (base name: "MailingAddress")', function() {
+ // uncomment below and update the code to test the property mailingAddress
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property linkedin (base name: "linkedin")', function() {
- // uncomment below and update the code to test the property linkedin
+ it('should have the property mobilePhone (base name: "MobilePhone")', function() {
+ // uncomment below and update the code to test the property mobilePhone
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property mailingaddress (base name: "mailingaddress")', function() {
- // uncomment below and update the code to test the property mailingaddress
- //var instance = new SfGate.Contact();
- //expect(instance).to.be();
- });
-
- it('should have the property mailinglists (base name: "mailinglists")', function() {
- // uncomment below and update the code to test the property mailinglists
- //var instance = new SfGate.Contact();
- //expect(instance).to.be();
- });
-
- it('should have the property mobilephone (base name: "mobilephone")', function() {
- // uncomment below and update the code to test the property mobilephone
- //var instance = new SfGate.Contact();
- //expect(instance).to.be();
- });
-
- it('should have the property name (base name: "name")', function() {
+ it('should have the property name (base name: "Name")', function() {
// uncomment below and update the code to test the property name
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property otheraddress (base name: "otheraddress")', function() {
- // uncomment below and update the code to test the property otheraddress
+ it('should have the property otherAddress (base name: "OtherAddress")', function() {
+ // uncomment below and update the code to test the property otherAddress
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property otherphone (base name: "otherphone")', function() {
- // uncomment below and update the code to test the property otherphone
+ it('should have the property otherPhone (base name: "OtherPhone")', function() {
+ // uncomment below and update the code to test the property otherPhone
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property ownerid (base name: "ownerid")', function() {
- // uncomment below and update the code to test the property ownerid
+ it('should have the property ownerID (base name: "OwnerID")', function() {
+ // uncomment below and update the code to test the property ownerID
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property personalemail (base name: "personalemail")', function() {
- // uncomment below and update the code to test the property personalemail
+ it('should have the property personalEmail (base name: "PersonalEmail")', function() {
+ // uncomment below and update the code to test the property personalEmail
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property phone (base name: "phone")', function() {
+ it('should have the property phone (base name: "Phone")', function() {
// uncomment below and update the code to test the property phone
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property photourl (base name: "photourl")', function() {
- // uncomment below and update the code to test the property photourl
+ it('should have the property photoURL (base name: "PhotoURL")', function() {
+ // uncomment below and update the code to test the property photoURL
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property recruitingstatus (base name: "recruitingstatus")', function() {
- // uncomment below and update the code to test the property recruitingstatus
- //var instance = new SfGate.Contact();
- //expect(instance).to.be();
- });
-
- it('should have the property ref (base name: "ref")', function() {
- // uncomment below and update the code to test the property ref
- //var instance = new SfGate.Contact();
- //expect(instance).to.be();
- });
-
- it('should have the property reportstoid (base name: "reportstoid")', function() {
- // uncomment below and update the code to test the property reportstoid
- //var instance = new SfGate.Contact();
- //expect(instance).to.be();
- });
-
- it('should have the property salutation (base name: "salutation")', function() {
- // uncomment below and update the code to test the property salutation
- //var instance = new SfGate.Contact();
- //expect(instance).to.be();
- });
-
- it('should have the property status (base name: "status")', function() {
- // uncomment below and update the code to test the property status
- //var instance = new SfGate.Contact();
- //expect(instance).to.be();
- });
-
- it('should have the property title (base name: "title")', function() {
+ it('should have the property title (base name: "Title")', function() {
// uncomment below and update the code to test the property title
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
- it('should have the property type (base name: "type")', function() {
- // uncomment below and update the code to test the property type
+ it('should have the property twitter (base name: "Twitter")', function() {
+ // uncomment below and update the code to test the property twitter
//var instance = new SfGate.Contact();
//expect(instance).to.be();
});
diff --git a/client/sf-gate/test/model/Industry.spec.js b/client/sf-gate/test/model/Industry.spec.js
new file mode 100644
index 0000000..c004e53
--- /dev/null
+++ b/client/sf-gate/test/model/Industry.spec.js
@@ -0,0 +1,131 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.Industry();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('Industry', function() {
+ it('should create an instance of Industry', function() {
+ // uncomment below and update the code to test Industry
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be.a(SfGate.Industry);
+ });
+
+ it('should have the property ID (base name: "ID")', function() {
+ // uncomment below and update the code to test the property ID
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property createdByID (base name: "CreatedByID")', function() {
+ // uncomment below and update the code to test the property createdByID
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property createdDate (base name: "CreatedDate")', function() {
+ // uncomment below and update the code to test the property createdDate
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property lastModifiedByID (base name: "LastModifiedByID")', function() {
+ // uncomment below and update the code to test the property lastModifiedByID
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property lastModifiedDate (base name: "LastModifiedDate")', function() {
+ // uncomment below and update the code to test the property lastModifiedDate
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property name (base name: "Name")', function() {
+ // uncomment below and update the code to test the property name
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property description (base name: "Description")', function() {
+ // uncomment below and update the code to test the property description
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property parentIndustryID (base name: "ParentIndustryID")', function() {
+ // uncomment below and update the code to test the property parentIndustryID
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property level (base name: "Level")', function() {
+ // uncomment below and update the code to test the property level
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property path (base name: "Path")', function() {
+ // uncomment below and update the code to test the property path
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property slug (base name: "Slug")', function() {
+ // uncomment below and update the code to test the property slug
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property siteURL (base name: "SiteURL")', function() {
+ // uncomment below and update the code to test the property siteURL
+ //var instance = new SfGate.Industry();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/IndustryProduct.spec.js b/client/sf-gate/test/model/IndustryProduct.spec.js
new file mode 100644
index 0000000..90b6376
--- /dev/null
+++ b/client/sf-gate/test/model/IndustryProduct.spec.js
@@ -0,0 +1,107 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.IndustryProduct();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('IndustryProduct', function() {
+ it('should create an instance of IndustryProduct', function() {
+ // uncomment below and update the code to test IndustryProduct
+ //var instance = new SfGate.IndustryProduct();
+ //expect(instance).to.be.a(SfGate.IndustryProduct);
+ });
+
+ it('should have the property ID (base name: "ID")', function() {
+ // uncomment below and update the code to test the property ID
+ //var instance = new SfGate.IndustryProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property createdByID (base name: "CreatedByID")', function() {
+ // uncomment below and update the code to test the property createdByID
+ //var instance = new SfGate.IndustryProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property createdDate (base name: "CreatedDate")', function() {
+ // uncomment below and update the code to test the property createdDate
+ //var instance = new SfGate.IndustryProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property lastModifiedByID (base name: "LastModifiedByID")', function() {
+ // uncomment below and update the code to test the property lastModifiedByID
+ //var instance = new SfGate.IndustryProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property lastModifiedDate (base name: "LastModifiedDate")', function() {
+ // uncomment below and update the code to test the property lastModifiedDate
+ //var instance = new SfGate.IndustryProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property industryID (base name: "IndustryID")', function() {
+ // uncomment below and update the code to test the property industryID
+ //var instance = new SfGate.IndustryProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property HTML (base name: "HTML")', function() {
+ // uncomment below and update the code to test the property HTML
+ //var instance = new SfGate.IndustryProduct();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property companyProductID (base name: "CompanyProductID")', function() {
+ // uncomment below and update the code to test the property companyProductID
+ //var instance = new SfGate.IndustryProduct();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/IndustryProductRequest.spec.js b/client/sf-gate/test/model/IndustryProductRequest.spec.js
new file mode 100644
index 0000000..5546b99
--- /dev/null
+++ b/client/sf-gate/test/model/IndustryProductRequest.spec.js
@@ -0,0 +1,65 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.IndustryProductRequest();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('IndustryProductRequest', function() {
+ it('should create an instance of IndustryProductRequest', function() {
+ // uncomment below and update the code to test IndustryProductRequest
+ //var instance = new SfGate.IndustryProductRequest();
+ //expect(instance).to.be.a(SfGate.IndustryProductRequest);
+ });
+
+ it('should have the property data (base name: "Data")', function() {
+ // uncomment below and update the code to test the property data
+ //var instance = new SfGate.IndustryProductRequest();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/IndustryProductResponse.spec.js b/client/sf-gate/test/model/IndustryProductResponse.spec.js
new file mode 100644
index 0000000..8c66d10
--- /dev/null
+++ b/client/sf-gate/test/model/IndustryProductResponse.spec.js
@@ -0,0 +1,71 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.IndustryProductResponse();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('IndustryProductResponse', function() {
+ it('should create an instance of IndustryProductResponse', function() {
+ // uncomment below and update the code to test IndustryProductResponse
+ //var instance = new SfGate.IndustryProductResponse();
+ //expect(instance).to.be.a(SfGate.IndustryProductResponse);
+ });
+
+ it('should have the property data (base name: "Data")', function() {
+ // uncomment below and update the code to test the property data
+ //var instance = new SfGate.IndustryProductResponse();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property meta (base name: "Meta")', function() {
+ // uncomment below and update the code to test the property meta
+ //var instance = new SfGate.IndustryProductResponse();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/IndustryRequest.spec.js b/client/sf-gate/test/model/IndustryRequest.spec.js
new file mode 100644
index 0000000..159680f
--- /dev/null
+++ b/client/sf-gate/test/model/IndustryRequest.spec.js
@@ -0,0 +1,65 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.IndustryRequest();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('IndustryRequest', function() {
+ it('should create an instance of IndustryRequest', function() {
+ // uncomment below and update the code to test IndustryRequest
+ //var instance = new SfGate.IndustryRequest();
+ //expect(instance).to.be.a(SfGate.IndustryRequest);
+ });
+
+ it('should have the property data (base name: "Data")', function() {
+ // uncomment below and update the code to test the property data
+ //var instance = new SfGate.IndustryRequest();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/client/sf-gate/test/model/IndustryResponse.spec.js b/client/sf-gate/test/model/IndustryResponse.spec.js
new file mode 100644
index 0000000..1f75d29
--- /dev/null
+++ b/client/sf-gate/test/model/IndustryResponse.spec.js
@@ -0,0 +1,71 @@
+/**
+ * sf-gate
+ * Customer Information Microservice
+ *
+ * The version of the OpenAPI document: 0.0.2
+ * Contact: noc@taxnexus.net
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.SfGate);
+ }
+}(this, function(expect, SfGate) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new SfGate.IndustryResponse();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('IndustryResponse', function() {
+ it('should create an instance of IndustryResponse', function() {
+ // uncomment below and update the code to test IndustryResponse
+ //var instance = new SfGate.IndustryResponse();
+ //expect(instance).to.be.a(SfGate.IndustryResponse);
+ });
+
+ it('should have the property data (base name: "Data")', function() {
+ // uncomment below and update the code to test the property data
+ //var instance = new SfGate.IndustryResponse();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property meta (base name: "Meta")', function() {
+ // uncomment below and update the code to test the property meta
+ //var instance = new SfGate.IndustryResponse();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/swagger/sf-gate-vernonkeenan.yaml b/swagger/sf-gate-vernonkeenan.yaml
index 789cddd..4321532 100644
--- a/swagger/sf-gate-vernonkeenan.yaml
+++ b/swagger/sf-gate-vernonkeenan.yaml
@@ -47,6 +47,19 @@ parameters:
name: apikey
required: false
type: string
+ assetIdQuery:
+ description: Taxnexus Record Id of an Asset
+ in: query
+ name: assetId
+ required: false
+ type: string
+ assetRequest:
+ description: An array of new Asset records
+ in: body
+ name: assetRequest
+ required: true
+ schema:
+ $ref: "#/definitions/AssetRequest"
clusterIdQuery:
description: Taxnexus Record Id of a Cluster
in: query
@@ -60,6 +73,12 @@ parameters:
required: true
schema:
$ref: "#/definitions/ClusterRequest"
+ companyProductIdQuery:
+ description: Taxnexus CompanyProduct record ID
+ in: query
+ name: companyProductId
+ required: false
+ type: string
contactIdQuery:
description: Taxnexus Record Id of a Contact
in: query
@@ -73,6 +92,13 @@ parameters:
required: true
schema:
$ref: "#/definitions/ContactRequest"
+ companyProductRequest:
+ description: An array of new Contact records
+ in: body
+ name: contactRequest
+ required: true
+ schema:
+ $ref: "#/definitions/CompanyProductRequest"
contractIdQuery:
description: Taxnexus Contact record ID
in: query
@@ -105,6 +131,32 @@ parameters:
name: email
required: false
type: string
+ industryIdQuery:
+ description: Taxnexus Industry record ID
+ in: query
+ name: industryId
+ required: false
+ type: string
+ industryProductIdQuery:
+ description: Taxnexus IndustryProduct record ID
+ in: query
+ name: industryProductId
+ required: false
+ type: string
+ industryRequest:
+ description: An array of new Industry records
+ in: body
+ name: industryRequest
+ required: true
+ schema:
+ $ref: "#/definitions/IndustryRequest"
+ industryProductRequest:
+ description: An array of new Industry records
+ in: body
+ name: industryRequest
+ required: true
+ schema:
+ $ref: "#/definitions/IndustryProductRequest"
limitQuery:
description: "How many objects to return at one time"
format: int64
@@ -173,6 +225,15 @@ responses:
type: string
schema:
$ref: "#/definitions/AccountResponse"
+ AssetResponse:
+ description: Taxnexus Response with Asset objects with Contacts
+ headers:
+ Access-Control-Allow-Origin:
+ type: string
+ Cache-Control:
+ type: string
+ schema:
+ $ref: "#/definitions/AssetResponse"
ClusterResponse:
description: Taxnexus Response with Cluster objects
schema:
@@ -181,6 +242,24 @@ responses:
description: Taxnexus Response with Contact objects
schema:
$ref: "#/definitions/ContactResponse"
+ IndustryResponse:
+ headers:
+ Access-Control-Allow-Origin:
+ type: string
+ Cache-Control:
+ type: string
+ description: Taxnexus Response with Industry objects
+ schema:
+ $ref: "#/definitions/IndustryResponse"
+ IndustryProductResponse:
+ headers:
+ Access-Control-Allow-Origin:
+ type: string
+ Cache-Control:
+ type: string
+ description: Taxnexus Response with Industry objects
+ schema:
+ $ref: "#/definitions/IndustryProductResponse"
ContractResponse:
description: Taxnexus Response with an array of Contract objects
headers:
@@ -190,6 +269,15 @@ responses:
type: string
schema:
$ref: "#/definitions/ContractResponse"
+ CompanyProductResponse:
+ description: Taxnexus Response with an array of CompanyProduct objects
+ headers:
+ Access-Control-Allow-Origin:
+ type: string
+ Cache-Control:
+ type: string
+ schema:
+ $ref: "#/definitions/CompanyProductResponse"
DatabaseResponse:
description: Taxnexus Response with Database objects
schema:
@@ -351,6 +439,56 @@ paths:
summary: Update a single account
tags:
- Accounts
+ /assets:
+ get:
+ description: Return a list of all available Assets
+ operationId: getAssets
+ parameters:
+ - $ref: "#/parameters/limitQuery"
+ - $ref: "#/parameters/offsetQuery"
+ - $ref: "#/parameters/activeQuery"
+ - $ref: "#/parameters/assetIdQuery"
+ responses:
+ "200":
+ $ref: "#/responses/AssetResponse"
+ "401":
+ $ref: "#/responses/Unauthorized"
+ "403":
+ $ref: "#/responses/AccessForbidden"
+ "404":
+ $ref: "#/responses/NotFound"
+ "422":
+ $ref: "#/responses/UnprocessableEntity"
+ "500":
+ $ref: "#/responses/ServerError"
+ security:
+ - ApiKeyAuth: []
+ summary: Get a list of assets
+ tags:
+ - Assets
+ post:
+ description: Industry record to be added
+ operationId: postAssets
+ parameters:
+ - $ref: "#/parameters/assetRequest"
+ responses:
+ "200":
+ $ref: "#/responses/AssetResponse"
+ "401":
+ $ref: "#/responses/Unauthorized"
+ "403":
+ $ref: "#/responses/AccessForbidden"
+ "404":
+ $ref: "#/responses/NotFound"
+ "422":
+ $ref: "#/responses/UnprocessableEntity"
+ "500":
+ $ref: "#/responses/ServerError"
+ security:
+ - ApiKeyAuth: []
+ summary: Add a new asset to Taxnexus
+ tags:
+ - Assets
/clusters:
get:
description: Return a list of Cluster records from the datastore
@@ -423,6 +561,56 @@ paths:
summary: Update Clusters
tags:
- Clusters
+ /companyproducts:
+ get:
+ description: Return a list of all available CompanyProducts
+ operationId: getCompanyProducts
+ parameters:
+ - $ref: "#/parameters/limitQuery"
+ - $ref: "#/parameters/offsetQuery"
+ - $ref: "#/parameters/activeQuery"
+ - $ref: "#/parameters/companyProductIdQuery"
+ responses:
+ "200":
+ $ref: "#/responses/CompanyProductResponse"
+ "401":
+ $ref: "#/responses/Unauthorized"
+ "403":
+ $ref: "#/responses/AccessForbidden"
+ "404":
+ $ref: "#/responses/NotFound"
+ "422":
+ $ref: "#/responses/UnprocessableEntity"
+ "500":
+ $ref: "#/responses/ServerError"
+ security:
+ - ApiKeyAuth: []
+ summary: Get a list of companyproducts
+ tags:
+ - CompanyProducts
+ post:
+ description: Industry record to be added
+ operationId: postCompanyProducts
+ parameters:
+ - $ref: "#/parameters/companyProductRequest"
+ responses:
+ "200":
+ $ref: "#/responses/CompanyProductResponse"
+ "401":
+ $ref: "#/responses/Unauthorized"
+ "403":
+ $ref: "#/responses/AccessForbidden"
+ "404":
+ $ref: "#/responses/NotFound"
+ "422":
+ $ref: "#/responses/UnprocessableEntity"
+ "500":
+ $ref: "#/responses/ServerError"
+ security:
+ - ApiKeyAuth: []
+ summary: Add a new companyproduct to Taxnexus
+ tags:
+ - CompanyProducts
/contacts:
get:
description: Retrieve Contact records from the datastore
@@ -524,6 +712,106 @@ paths:
summary: Add a new contract to Taxnexus
tags:
- Contracts
+ /industryproducts:
+ get:
+ description: Return a list of all available IndustryProducts
+ operationId: getIndustryProducts
+ parameters:
+ - $ref: "#/parameters/limitQuery"
+ - $ref: "#/parameters/offsetQuery"
+ - $ref: "#/parameters/activeQuery"
+ - $ref: "#/parameters/industryProductIdQuery"
+ responses:
+ "200":
+ $ref: "#/responses/IndustryProductResponse"
+ "401":
+ $ref: "#/responses/Unauthorized"
+ "403":
+ $ref: "#/responses/AccessForbidden"
+ "404":
+ $ref: "#/responses/NotFound"
+ "422":
+ $ref: "#/responses/UnprocessableEntity"
+ "500":
+ $ref: "#/responses/ServerError"
+ security:
+ - ApiKeyAuth: []
+ summary: Get a list of industryproducts
+ tags:
+ - Industryproducts
+ post:
+ description: Industry record to be added
+ operationId: postIndustryproducts
+ parameters:
+ - $ref: "#/parameters/industryProductRequest"
+ responses:
+ "200":
+ $ref: "#/responses/IndustryProductResponse"
+ "401":
+ $ref: "#/responses/Unauthorized"
+ "403":
+ $ref: "#/responses/AccessForbidden"
+ "404":
+ $ref: "#/responses/NotFound"
+ "422":
+ $ref: "#/responses/UnprocessableEntity"
+ "500":
+ $ref: "#/responses/ServerError"
+ security:
+ - ApiKeyAuth: []
+ summary: Add a new industryproduct to Taxnexus
+ tags:
+ - IndustryProducts
+ /industries:
+ get:
+ description: Return a list of all available Industries
+ operationId: getIndustries
+ parameters:
+ - $ref: "#/parameters/limitQuery"
+ - $ref: "#/parameters/offsetQuery"
+ - $ref: "#/parameters/activeQuery"
+ - $ref: "#/parameters/industryIdQuery"
+ responses:
+ "200":
+ $ref: "#/responses/IndustryResponse"
+ "401":
+ $ref: "#/responses/Unauthorized"
+ "403":
+ $ref: "#/responses/AccessForbidden"
+ "404":
+ $ref: "#/responses/NotFound"
+ "422":
+ $ref: "#/responses/UnprocessableEntity"
+ "500":
+ $ref: "#/responses/ServerError"
+ security:
+ - ApiKeyAuth: []
+ summary: Get a list of industries
+ tags:
+ - Industries
+ post:
+ description: Industry record to be added
+ operationId: postIndustries
+ parameters:
+ - $ref: "#/parameters/industryRequest"
+ responses:
+ "200":
+ $ref: "#/responses/IndustryResponse"
+ "401":
+ $ref: "#/responses/Unauthorized"
+ "403":
+ $ref: "#/responses/AccessForbidden"
+ "404":
+ $ref: "#/responses/NotFound"
+ "422":
+ $ref: "#/responses/UnprocessableEntity"
+ "500":
+ $ref: "#/responses/ServerError"
+ security:
+ - ApiKeyAuth: []
+ summary: Add a new industry to Taxnexus
+ tags:
+ - Industries
/roles:
get:
description: Return a list of Roles
@@ -751,269 +1039,133 @@ paths:
definitions:
Account:
properties:
- tenantid:
+ TenantID:
description: tenant identifier
type: string
- accountnumber:
+ ID:
+ description: Taxnexus Account Id
+ type: string
+ AccountNumber:
description: Account Number
type: string
- accountsource:
+ AccountSource:
description: The marketing orgin of this account
type: string
- active:
- description: Active
- type: boolean
- administrativelevel:
- description: "For tax authorities, this account's administrative level,
- e.g. Local, County, State or Federal"
- type: string
- amount:
- description: Rollup Tax Amount
- type: number
- amountinvoiced:
- description: Amount Invoiced
- type: number
- amountpaid:
- description: Amount Paid
- type: number
- annualrevenue:
+ AnnualRevenue:
description: Annual Revenue Estimate
format: double
type: number
- balance:
- description: Account Balance
- type: number
- billingaddress:
+ BillingAddress:
$ref: "#/definitions/Address"
- billingcontactid:
+ BillingContactID:
description: Contact ID
type: string
- billingpreference:
- description: Billing Preference
- type: string
- businessaddress:
- $ref: "#/definitions/Address"
- cannabiscustomer:
- type: boolean
- description: Is this a cannabis customer?
- channelprogramlevelname:
- description: Channel Program Level Name
- type: string
- channelprogramname:
- description: Channel Program Name
- type: string
- clientenddate:
- description: Client End Date
- type: string
- clientstartdate:
- description: Client Start Date
- type: string
- companyid:
- description: The Company ID of this Account
- type: string
- coordinateid:
- description: The Id of the geo coordinates of this account
- type: string
- createdbyid:
+ CreatedByID:
description: Created By User ID
type: string
- createddate:
+ CreatedDate:
description: Created Date
type: string
- customerid:
- description: Customer ID from source system
+ CloseDate:
+ description: Date company closed
type: string
- customerpriority:
- description: Customer Priority
+ CloudRevenueTotal:
+ type: number
+ CloudType:
type: string
- dandbcompanyid:
- description: D-n-B Company
+ CloudYear:
type: string
- dba:
- description: This Account's 'Doing Business As' name
+ CrunchbaseURL:
type: string
- defaultaddress:
- $ref: "#/definitions/Address"
- defaultbackendid:
- description: Default Backend ID
- type: string
- defaultdeliverycontactid:
- description: Default Delivery Address Contact ID
- type: string
- defaultenduserid:
- description: Default End User Contact ID
- type: string
- description:
+ Description:
description: Description
type: string
- dunsnumber:
- description: D-U-N-S Number
+ EarningsCall:
type: string
- ein:
- description: EIN
- type: string
- email:
+ Email:
description: Main Account Email
type: string
- enrollmentstatus:
- description: Enrollment Status
- type: string
- fax:
+ EquityFunding:
+ type: number
+ Fax:
description: Fax
type: string
- id:
- description: Taxnexus Account Id
+ FoundedDate:
type: string
- industry:
+ Industry:
description: Industry
type: string
- iscustomerportal:
- description: Customer Portal Account
- type: boolean
- ispartner:
- description: Partner Account
- type: boolean
- ispcustomer:
- description: ISP Customer?
- type: boolean
- jigsaw:
- description: Data.com Key
+ Facebook:
type: string
- lastmodifiedbyid:
+ Industries:
+ type: string
+ IPODate:
+ type: string
+ LastModifiedByID:
description: Last Modified By User ID
type: string
- lastmodifieddate:
+ LastModifiedDate:
description: Last Modified Date
type: string
- mspcustomer:
- description: MSP Customer?
- type: boolean
- naicscode:
- description: NAICS Code
+ LinkedIn:
type: string
- naicsdesc:
- description: NAICS Description
+ Location:
type: string
- name:
+ MarketCapitalization:
+ type: number
+ Name:
description: Account Name
type: string
- numberofemployees:
+ NumberOfEmployees:
description: Employee Count Estimate
type: number
format: int64
- numberoflocations:
+ NumberInvestments:
description: Number of Locations Estimate
type: number
format: int64
- opencharges:
- description: Open Charges
- type: number
- ordercontactid:
- description: Vendor Order Contact ID
- type: string
- orderemail:
- description: Order Email
- type: string
- ownerid:
+ OwnerID:
description: Account Owner User ID
type: string
- ownership:
+ Ownership:
description: Ownership
type: string
- parentfk:
- description: Parent Foreign Key
- type: string
- parentid:
+ ParentID:
description: Parent Account
type: string
- phone:
+ Phone:
description: Phone
type: string
- placeid:
- description: The ID of the Place situs record that applies to this Account
- type: string
- preparerid:
- description: Tax Preparer Contact ID
- type: string
- rating:
- description: Rating
- type: string
- ratingengineid:
- description: Rating Engine identifier
- type: string
- ref:
- description: External Reference ID
- type: string
- revenuebase:
- description: Rollup Revenue Base
- type: number
- revenuenet:
- description: Rollup Revenue Net
- type: number
- revenuenottaxable:
- description: Rollup Revenue Not Taxable
- type: number
- shippingaddress:
+ Publish:
+ type: boolean
+ SalesforceFirst:
+ type: boolean
+ ShippingAddress:
$ref: "#/definitions/Address"
- shippingcensustract:
- description: Shipping Census Tract
+ ShippingContactID:
type: string
- shippingcounty:
- description: Shipping County
- type: string
- shippingcontactid:
- description: Shipping Contact ID
- type: string
- sic:
+ SIC:
description: SIC Code
type: string
- sicdesc:
+ SICDesc:
description: SIC Description
type: string
- site:
+ Site:
description: Account Site
type: string
- status:
- description: Account Status
+ TagLine:
type: string
- taxexemption:
- description: Tax Exemption
+ TickerSymbol:
type: string
- taxontax:
- description: Rollup Tax On Tax
- type: number
- telecomcustomer:
- description: Telecom Customer?
- type: boolean
- tickersymbol:
- description: Ticker Symbol
- type: string
- tradestyle:
- description: Tradestyle
- type: string
- type:
+ Type:
description: Type
type: string
- unappliedpayments:
- description: Unapplied Payments
- type: number
- unitbase:
- description: Rollup Unit Base
- type: number
- upsellopportunity:
- description: Upsell Opportunity
+ Twitter:
type: string
- website:
+ Website:
description: Website
type: string
- whmcsclientid:
- description: WHMCS Client ID
- type: number
- format: int64
- xerocontactid:
- description: Xero Contact ID
- type: string
- yearstarted:
+ YearStarted:
description: Year Started
type: string
type: object
@@ -1063,6 +1215,201 @@ definitions:
- city
- statecode
type: object
+ CompanyProduct:
+ description: A software product or service vended by a Company
+ type: object
+ properties:
+ ID:
+ description: Taxnexus Record Id
+ type: string
+ CreatedByID:
+ description: Created By User ID
+ type: string
+ CreatedDate:
+ description: Created Date
+ type: string
+ LastModifiedByID:
+ description: Last Modified By User ID
+ type: string
+ LastModifiedDate:
+ description: Last Modified Date
+ type: string
+ AccountID:
+ description: Taxnexus ID of the Company that owns this Product
+ type: string
+ Description:
+ description: Description of product
+ type: string
+ Name:
+ description: Product Name
+ type: string
+ TagLine:
+ description: TagLine
+ type: string
+ URL:
+ description: Website
+ type: string
+ Asset:
+ properties:
+ ID:
+ type: string
+ description: Taxnexus Record Id
+ AccountID:
+ type: string
+ description: Account
+ Address:
+ $ref: "#/definitions/Address"
+ AssetLevel:
+ type: number
+ description: Asset Level
+ Name:
+ type: string
+ description: Asset Name
+ AssetProvidedByID:
+ type: string
+ description: Asset Provided By
+ AssetServicedByID:
+ type: string
+ description: Asset Serviced By
+ CompanyProductID:
+ type: string
+ description: Company Product
+ IsCompetitorProduct:
+ type: boolean
+ description: Competitor Asset
+ ConsequenceOfFailure:
+ type: string
+ description: Consequence Of Failure
+ ContactID:
+ type: string
+ description: Contact
+ CreatedByID:
+ type: string
+ description: Created By
+ CreatedDate:
+ type: string
+ description: Created Date
+ CurrentAmount:
+ type: number
+ description: Current Amount
+ CurrentLifecycleEndDate:
+ type: string
+ description: Current Lifecycle End Date
+ CurrentMrr:
+ type: number
+ description: Current Monthly Recurring Revenue
+ CurrentQuantity:
+ type: number
+ description: Current Quantity
+ Description:
+ type: string
+ description: Description
+ DigitalAssetStatus:
+ type: string
+ description: Digital Asset Status
+ ExternalIdentifier:
+ type: string
+ description: External Id
+ HasLifecycleManagement:
+ type: boolean
+ description: Has Lifecycle Management
+ InstallDate:
+ type: string
+ description: Install Date
+ IsInternal:
+ type: boolean
+ description: Internal Asset
+ LastModifiedByID:
+ type: string
+ description: Last Modified By
+ LastModifiedDate:
+ type: string
+ description: Last Modified Date
+ LocationID:
+ type: string
+ description: Location
+ ManufactureDate:
+ type: string
+ description: Manufacture Date
+ MIMEType:
+ type: string
+ description: MIME Type
+ ParentID:
+ type: string
+ description: Parent Asset
+ Price:
+ type: number
+ description: Price
+ Product2ID:
+ type: string
+ description: Product
+ ProductCode:
+ type: string
+ description: Product Code
+ ProductDescription:
+ type: string
+ description: Product Description
+ ProductFamily:
+ type: string
+ description: Product Family
+ StockKeepingUnit:
+ type: string
+ description: Product SKU
+ PurchaseDate:
+ type: string
+ description: Purchase Date
+ Quantity:
+ type: number
+ description: Quantity
+ RootAssetID:
+ type: string
+ description: Root Asset
+ SerialNumber:
+ type: string
+ description: Serial Number
+ Status:
+ type: string
+ description: Status
+ StatusReason:
+ type: string
+ description: Status Reason
+ TenantID:
+ type: string
+ description: Tenant ID
+ TotalLifecycleAmount:
+ type: number
+ description: Total Lifecycle Amount
+ Type:
+ type: string
+ description: Type
+ UUID:
+ type: string
+ description: Unique Identifier
+ URL:
+ type: string
+ description: URL
+ UsageEndDate:
+ type: string
+ description: Usage End Date
+ type: object
+ AssetRequest:
+ description: An array of Asset objects with Contacts
+ properties:
+ Data:
+ items:
+ $ref: "#/definitions/Asset"
+ type: array
+ type: object
+ AssetResponse:
+ description: An array of Asset objects with Contacts
+ properties:
+ Data:
+ items:
+ $ref: "#/definitions/Asset"
+ type: array
+ Meta:
+ $ref: "#/definitions/ResponseMeta"
+ type: object
Cluster:
type: object
properties:
@@ -1141,140 +1488,135 @@ definitions:
type: object
Contact:
properties:
- tenantid:
+ TenantID:
description: tenant identifier
type: string
- accountid:
- description: The primary account ID of this contact
- type: string
- assistantname:
- description: Assistant Name
- type: string
- assistantphone:
- description: Asst. Phone
- type: string
- birthdate:
- description: Birthdate
- type: string
- createdbyid:
- description: Created By User ID
- type: string
- createddate:
- description: Created Date
- type: string
- department:
- description: Department
- type: string
- description:
- description: Description
- type: string
- donotcall:
- description: Do Not Call?
- type: boolean
- email:
- description: Email address
- type: string
- emailbounceddate:
- description: Email Bounce Date
- type: string
- emailbouncedreason:
- description: Email Bounce Reason
- type: string
- enrollmentstatus:
- description: Taxnexus Enrollment Status
- type: string
- fax:
- description: Fax Number
- type: string
- firstname:
- description: First Name
- type: string
- hasoptedoutofemail:
- description: Email Opt Out
- type: boolean
- hasoptedoutoffax:
- description: Fax Opt Out
- type: boolean
- homephone:
- description: Home Phone
- type: string
- id:
+ ID:
description: Taxnexus Record Id
type: string
- isemailbounced:
+ AccountID:
+ description: The primary account ID of this contact
+ type: string
+ AssistantName:
+ description: Assistant Name
+ type: string
+ AssistantPhone:
+ description: Asst. Phone
+ type: string
+ BirthDate:
+ description: Birthdate
+ type: string
+ CreatedByID:
+ description: Created By User ID
+ type: string
+ CreatedDate:
+ description: Created Date
+ type: string
+ Department:
+ description: Department
+ type: string
+ Description:
+ description: Description
+ type: string
+ DoNotCall:
+ description: Do Not Call?
+ type: boolean
+ Email:
+ description: Email address
+ type: string
+ EmailBounceDate:
+ description: Email Bounce Date
+ type: string
+ EmailBounceReason:
+ description: Email Bounce Reason
+ type: string
+ Fax:
+ type: string
+ Facebook:
+ description: Fax Number
+ type: string
+ FirstName:
+ description: First Name
+ type: string
+ HasOptedOutOfEmail:
+ description: Email Opt Out
+ type: boolean
+ HasOptedOutOfFax:
+ description: Fax Opt Out
+ type: boolean
+ HomePhone:
+ description: Home Phone
+ type: string
+ IsEmailBounced:
description: Does this contact have bounced emails?
type: boolean
- isprovisioned:
- description: Is Provisioned?
- type: boolean
- lastmodifiedbyid:
+ LastModifiedByID:
description: Last Modified By User ID
type: string
- lastmodifieddate:
+ LastModifiedDate:
description: Last Modified Date
type: string
- lastname:
+ LastName:
description: Last Name
type: string
- leadsource:
+ LeadSource:
description: Lead Source
type: string
- level:
- description: Level
- type: string
- linkedin:
+ LinkedIn:
description: LinkedIn Page
type: string
- mailingaddress:
+ MailingAddress:
$ref: "#/definitions/Address"
- mailinglists:
- description: Mailing Lists
- type: string
- mobilephone:
+ MobilePhone:
description: Mobile Phone
type: string
- name:
+ Name:
description: Full Name
type: string
- otheraddress:
+ OtherAddress:
$ref: "#/definitions/Address"
- otherphone:
+ OtherPhone:
description: Other Phone
type: string
- ownerid:
+ OwnerID:
description: The User ID of the user who owns this Contact
type: string
- personalemail:
+ PersonalEmail:
description: Personal Email Address for this Contact
type: string
- phone:
+ Phone:
description: Phone Number
type: string
- photourl:
+ PhotoURL:
description: URL of a photograph of this User
type: string
- recruitingstatus:
- description: Recruiting Status
- type: string
- ref:
- description: "External reference to this contact, if any"
- type: string
- reportstoid:
- description: Reports To Contact ID
- type: string
- salutation:
- description: Contact Salutation
- type: string
- status:
- description: The Contact Status
- type: string
- title:
+ Title:
description: Contact Title
type: string
- type:
- description: Contact Type
+ Twitter:
type: string
type: object
+ CompanyProductRequest:
+ properties:
+ data:
+ items:
+ $ref: "#/definitions/CompanyProduct"
+ type: array
+ meta:
+ $ref: "#/definitions/RequestMeta"
+ required:
+ - meta
+ - data
+ type: object
+ CompanyProductResponse:
+ properties:
+ data:
+ items:
+ $ref: "#/definitions/CompanyProduct"
+ type: array
+ meta:
+ $ref: "#/definitions/ResponseMeta"
+ type: object
ContactRequest:
properties:
data:
@@ -1487,6 +1829,107 @@ definitions:
Message:
type: string
type: object
+ IndustryProduct:
+ description: Junction object between Industry and CompanyProduct
+ type: object
+ properties:
+ ID:
+ description: Taxnexus Record Id
+ type: string
+ CreatedByID:
+ description: Created By User ID
+ type: string
+ CreatedDate:
+ description: Created Date
+ type: string
+ LastModifiedByID:
+ description: Last Modified By User ID
+ type: string
+ LastModifiedDate:
+ description: Last Modified Date
+ type: string
+ IndustryID:
+ type: string
+ HTML:
+ type: string
+ CompanyProductID:
+ type: string
+ Industry:
+ description: An industry that is being researched
+ type: object
+ properties:
+ ID:
+ description: Taxnexus Record Id
+ type: string
+ CreatedByID:
+ description: Created By User ID
+ type: string
+ CreatedDate:
+ description: Created Date
+ type: string
+ LastModifiedByID:
+ description: Last Modified By User ID
+ type: string
+ LastModifiedDate:
+ description: Last Modified Date
+ type: string
+ Name:
+ description: Industry Name
+ type: string
+ Description:
+ description: Industry Description
+ type: string
+ ParentIndustryID:
+ description: The ID of the Parent Industry
+ type: string
+ Level:
+ description: The hierarchical level of this Industry
+ type: string
+ Path:
+ description: The full path of this industry, including Parent
+ type: string
+ Slug:
+ description: The CMS Slug for this Industry
+ type: string
+ SiteURL:
+ description: The URL of the corresponding page on the CMS
+ type: string
+ IndustryRequest:
+ description: An array of Industry objects submitted for processing
+ properties:
+ Data:
+ items:
+ $ref: "#/definitions/Industry"
+ type: array
+ type: object
+ IndustryResponse:
+ description: An array of Industry objects produced in response to a request
+ properties:
+ Data:
+ items:
+ $ref: "#/definitions/Industry"
+ type: array
+ Meta:
+ $ref: "#/definitions/ResponseMeta"
+ type: object
+ IndustryProductRequest:
+ description: An array of IndustryProduct objects submitted for processing
+ properties:
+ Data:
+ items:
+ $ref: "#/definitions/IndustryProduct"
+ type: array
+ type: object
+ IndustryProductResponse:
+ description: An array of IndustryProduct objects produced in response to a request
+ properties:
+ Data:
+ items:
+ $ref: "#/definitions/IndustryProduct"
+ type: array
+ Meta:
+ $ref: "#/definitions/ResponseMeta"
+ type: object
InvalidError:
allOf:
- $ref: "#/definitions/Error"