From 60a4cbba61919c3b183ffb3872209cacb2605db7 Mon Sep 17 00:00:00 2001 From: Vernon Keenan Date: Mon, 8 Feb 2021 15:28:46 -0800 Subject: [PATCH] swagger --- api/plex/plex_models/tax_return_panel.go | 6 + .../render_client/account/account_client.go | 59 +++- .../get_render_account_i_q_parameters.go | 143 +++++++++ .../get_render_account_i_q_responses.go | 298 ++++++++++++++++++ .../get_render_account_pand_l_parameters.go | 143 +++++++++ .../get_render_account_pand_l_responses.go | 298 ++++++++++++++++++ .../account/get_render_account_parameters.go | 143 --------- .../account/get_render_account_responses.go | 298 ------------------ .../cors/account_i_q_options_parameters.go | 116 +++++++ ...es.go => account_i_q_options_responses.go} | 24 +- .../cors/account_options_parameters.go | 116 ------- .../cors/account_pand_l_options_parameters.go | 116 +++++++ ...go => account_pand_l_options_responses.go} | 24 +- api/render/render_client/cors/cors_client.go | 74 ++--- .../cors/county_options_parameters.go | 116 ------- .../cors/ingest_options_parameters.go | 116 ------- .../cors/ingest_options_responses.go | 92 ------ .../cors/tax_options_responses.go | 2 +- .../render_client/county/county_client.go | 79 ----- .../county/get_render_county_parameters.go | 143 --------- .../county/get_render_county_responses.go | 298 ------------------ .../ingest/get_render_ingests_parameters.go | 143 --------- .../ingest/get_render_ingests_responses.go | 298 ------------------ .../render_client/ingest/ingest_client.go | 79 ----- api/render/render_client/render_client.go | 10 - .../tax/get_render_taxes_responses.go | 12 +- api/render/render_client/tax/tax_client.go | 4 +- app/meta.go | 4 +- swagger/apex-taxnexus.yaml | 2 +- swagger/auth-taxnexus.yaml | 2 +- swagger/blaze-taxnexus.yaml | 2 +- swagger/board-taxnexus.yaml | 2 +- swagger/crm-taxnexus.yaml | 2 +- swagger/devops-taxnexus.yaml | 2 +- swagger/geo-taxnexus.yaml | 2 +- swagger/gov-gw-taxnexus.yaml | 2 +- swagger/ledger-taxnexus.yaml | 2 +- swagger/metrc-gw-taxnexus.yaml | 2 +- swagger/ops-taxnexus.yaml | 2 +- swagger/pdf-taxnexus.yaml | 2 +- swagger/plex-taxnexus.yaml | 10 +- swagger/regs-taxnexus.yaml | 2 +- swagger/render-taxnexus.yaml | 60 +--- swagger/sf-gate-taxnexus.yaml | 2 +- swagger/stash-taxnexus.yaml | 2 +- swagger/vendor-gw-taxnexus.yaml | 2 +- swagger/workflow-taxnexus.yaml | 2 +- 47 files changed, 1263 insertions(+), 2095 deletions(-) create mode 100644 api/render/render_client/account/get_render_account_i_q_parameters.go create mode 100644 api/render/render_client/account/get_render_account_i_q_responses.go create mode 100644 api/render/render_client/account/get_render_account_pand_l_parameters.go create mode 100644 api/render/render_client/account/get_render_account_pand_l_responses.go delete mode 100644 api/render/render_client/account/get_render_account_parameters.go delete mode 100644 api/render/render_client/account/get_render_account_responses.go create mode 100644 api/render/render_client/cors/account_i_q_options_parameters.go rename api/render/render_client/cors/{account_options_responses.go => account_i_q_options_responses.go} (70%) delete mode 100644 api/render/render_client/cors/account_options_parameters.go create mode 100644 api/render/render_client/cors/account_pand_l_options_parameters.go rename api/render/render_client/cors/{county_options_responses.go => account_pand_l_options_responses.go} (69%) delete mode 100644 api/render/render_client/cors/county_options_parameters.go delete mode 100644 api/render/render_client/cors/ingest_options_parameters.go delete mode 100644 api/render/render_client/cors/ingest_options_responses.go delete mode 100644 api/render/render_client/county/county_client.go delete mode 100644 api/render/render_client/county/get_render_county_parameters.go delete mode 100644 api/render/render_client/county/get_render_county_responses.go delete mode 100644 api/render/render_client/ingest/get_render_ingests_parameters.go delete mode 100644 api/render/render_client/ingest/get_render_ingests_responses.go delete mode 100644 api/render/render_client/ingest/ingest_client.go diff --git a/api/plex/plex_models/tax_return_panel.go b/api/plex/plex_models/tax_return_panel.go index c84a268..a93c77b 100644 --- a/api/plex/plex_models/tax_return_panel.go +++ b/api/plex/plex_models/tax_return_panel.go @@ -231,6 +231,12 @@ type TaxReturnPanel struct { // total taxes total TotalTaxesTotal float64 `json:"TotalTaxesTotal,omitempty"` + + // use tax revenue + UseTaxRevenue []float64 `json:"UseTaxRevenue"` + + // use taxes revenue total + UseTaxesRevenueTotal float64 `json:"UseTaxesRevenueTotal,omitempty"` } // Validate validates this tax return panel diff --git a/api/render/render_client/account/account_client.go b/api/render/render_client/account/account_client.go index 0305bc8..3f0a3b9 100644 --- a/api/render/render_client/account/account_client.go +++ b/api/render/render_client/account/account_client.go @@ -31,31 +31,33 @@ type Client struct { // ClientService is the interface for Client methods type ClientService interface { - GetRenderAccount(params *GetRenderAccountParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenderAccountOK, error) + GetRenderAccountIQ(params *GetRenderAccountIQParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenderAccountIQOK, error) + + GetRenderAccountPandL(params *GetRenderAccountPandLParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenderAccountPandLOK, error) SetTransport(transport runtime.ClientTransport) } /* - GetRenderAccount generates p d f from an account ID + GetRenderAccountIQ generates p d f from an account ID - Generate PDF from an Account ID + Generate Taxnexus IQ PDF from an Account ID */ -func (a *Client) GetRenderAccount(params *GetRenderAccountParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenderAccountOK, error) { +func (a *Client) GetRenderAccountIQ(params *GetRenderAccountIQParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenderAccountIQOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewGetRenderAccountParams() + params = NewGetRenderAccountIQParams() } result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "getRenderAccount", + ID: "getRenderAccountIQ", Method: "GET", - PathPattern: "/accounts", + PathPattern: "/accounts/iq", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &GetRenderAccountReader{formats: a.formats}, + Reader: &GetRenderAccountIQReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -63,13 +65,50 @@ func (a *Client) GetRenderAccount(params *GetRenderAccountParams, authInfo runti if err != nil { return nil, err } - success, ok := result.(*GetRenderAccountOK) + success, ok := result.(*GetRenderAccountIQOK) 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 getRenderAccount: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for getRenderAccountIQ: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + GetRenderAccountPandL generates p d f from an account ID + + Generate Profit and Loss PDF from an Account ID +*/ +func (a *Client) GetRenderAccountPandL(params *GetRenderAccountPandLParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenderAccountPandLOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetRenderAccountPandLParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "getRenderAccountPandL", + Method: "GET", + PathPattern: "/accounts/profitloss", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetRenderAccountPandLReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + success, ok := result.(*GetRenderAccountPandLOK) + 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 getRenderAccountPandL: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } diff --git a/api/render/render_client/account/get_render_account_i_q_parameters.go b/api/render/render_client/account/get_render_account_i_q_parameters.go new file mode 100644 index 0000000..9cc9ab7 --- /dev/null +++ b/api/render/render_client/account/get_render_account_i_q_parameters.go @@ -0,0 +1,143 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package account + +// 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" +) + +// NewGetRenderAccountIQParams creates a new GetRenderAccountIQParams object +// with the default values initialized. +func NewGetRenderAccountIQParams() *GetRenderAccountIQParams { + var () + return &GetRenderAccountIQParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewGetRenderAccountIQParamsWithTimeout creates a new GetRenderAccountIQParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewGetRenderAccountIQParamsWithTimeout(timeout time.Duration) *GetRenderAccountIQParams { + var () + return &GetRenderAccountIQParams{ + + timeout: timeout, + } +} + +// NewGetRenderAccountIQParamsWithContext creates a new GetRenderAccountIQParams object +// with the default values initialized, and the ability to set a context for a request +func NewGetRenderAccountIQParamsWithContext(ctx context.Context) *GetRenderAccountIQParams { + var () + return &GetRenderAccountIQParams{ + + Context: ctx, + } +} + +// NewGetRenderAccountIQParamsWithHTTPClient creates a new GetRenderAccountIQParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewGetRenderAccountIQParamsWithHTTPClient(client *http.Client) *GetRenderAccountIQParams { + var () + return &GetRenderAccountIQParams{ + HTTPClient: client, + } +} + +/*GetRenderAccountIQParams contains all the parameters to send to the API endpoint +for the get render account i q operation typically these are written to a http.Request +*/ +type GetRenderAccountIQParams struct { + + /*AccountID + Taxnexus Id of the Account to be used a record retrieval + + */ + AccountID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the get render account i q params +func (o *GetRenderAccountIQParams) WithTimeout(timeout time.Duration) *GetRenderAccountIQParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get render account i q params +func (o *GetRenderAccountIQParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get render account i q params +func (o *GetRenderAccountIQParams) WithContext(ctx context.Context) *GetRenderAccountIQParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get render account i q params +func (o *GetRenderAccountIQParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get render account i q params +func (o *GetRenderAccountIQParams) WithHTTPClient(client *http.Client) *GetRenderAccountIQParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get render account i q params +func (o *GetRenderAccountIQParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAccountID adds the accountID to the get render account i q params +func (o *GetRenderAccountIQParams) WithAccountID(accountID string) *GetRenderAccountIQParams { + o.SetAccountID(accountID) + return o +} + +// SetAccountID adds the accountId to the get render account i q params +func (o *GetRenderAccountIQParams) SetAccountID(accountID string) { + o.AccountID = accountID +} + +// WriteToRequest writes these params to a swagger request +func (o *GetRenderAccountIQParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // query param accountId + qrAccountID := o.AccountID + qAccountID := qrAccountID + if qAccountID != "" { + if err := r.SetQueryParam("accountId", qAccountID); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/render/render_client/account/get_render_account_i_q_responses.go b/api/render/render_client/account/get_render_account_i_q_responses.go new file mode 100644 index 0000000..2a8bc97 --- /dev/null +++ b/api/render/render_client/account/get_render_account_i_q_responses.go @@ -0,0 +1,298 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package account + +// 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/taxnexus/lib/api/render/render_models" +) + +// GetRenderAccountIQReader is a Reader for the GetRenderAccountIQ structure. +type GetRenderAccountIQReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetRenderAccountIQReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetRenderAccountIQOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewGetRenderAccountIQUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewGetRenderAccountIQForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewGetRenderAccountIQNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewGetRenderAccountIQUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewGetRenderAccountIQInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + + default: + return nil, runtime.NewAPIError("unknown error", response, response.Code()) + } +} + +// NewGetRenderAccountIQOK creates a GetRenderAccountIQOK with default headers values +func NewGetRenderAccountIQOK() *GetRenderAccountIQOK { + return &GetRenderAccountIQOK{} +} + +/*GetRenderAccountIQOK handles this case with default header values. + +Rendered documents response +*/ +type GetRenderAccountIQOK struct { + AccessControlAllowOrigin string + + Payload *render_models.DocumentResponse +} + +func (o *GetRenderAccountIQOK) Error() string { + return fmt.Sprintf("[GET /accounts/iq][%d] getRenderAccountIQOK %+v", 200, o.Payload) +} + +func (o *GetRenderAccountIQOK) GetPayload() *render_models.DocumentResponse { + return o.Payload +} + +func (o *GetRenderAccountIQOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_models.DocumentResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRenderAccountIQUnauthorized creates a GetRenderAccountIQUnauthorized with default headers values +func NewGetRenderAccountIQUnauthorized() *GetRenderAccountIQUnauthorized { + return &GetRenderAccountIQUnauthorized{} +} + +/*GetRenderAccountIQUnauthorized handles this case with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type GetRenderAccountIQUnauthorized struct { + AccessControlAllowOrigin string + + Payload *render_models.Error +} + +func (o *GetRenderAccountIQUnauthorized) Error() string { + return fmt.Sprintf("[GET /accounts/iq][%d] getRenderAccountIQUnauthorized %+v", 401, o.Payload) +} + +func (o *GetRenderAccountIQUnauthorized) GetPayload() *render_models.Error { + return o.Payload +} + +func (o *GetRenderAccountIQUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRenderAccountIQForbidden creates a GetRenderAccountIQForbidden with default headers values +func NewGetRenderAccountIQForbidden() *GetRenderAccountIQForbidden { + return &GetRenderAccountIQForbidden{} +} + +/*GetRenderAccountIQForbidden handles this case with default header values. + +Access forbidden, account lacks access +*/ +type GetRenderAccountIQForbidden struct { + AccessControlAllowOrigin string + + Payload *render_models.Error +} + +func (o *GetRenderAccountIQForbidden) Error() string { + return fmt.Sprintf("[GET /accounts/iq][%d] getRenderAccountIQForbidden %+v", 403, o.Payload) +} + +func (o *GetRenderAccountIQForbidden) GetPayload() *render_models.Error { + return o.Payload +} + +func (o *GetRenderAccountIQForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRenderAccountIQNotFound creates a GetRenderAccountIQNotFound with default headers values +func NewGetRenderAccountIQNotFound() *GetRenderAccountIQNotFound { + return &GetRenderAccountIQNotFound{} +} + +/*GetRenderAccountIQNotFound handles this case with default header values. + +Resource was not found +*/ +type GetRenderAccountIQNotFound struct { + AccessControlAllowOrigin string + + Payload *render_models.Error +} + +func (o *GetRenderAccountIQNotFound) Error() string { + return fmt.Sprintf("[GET /accounts/iq][%d] getRenderAccountIQNotFound %+v", 404, o.Payload) +} + +func (o *GetRenderAccountIQNotFound) GetPayload() *render_models.Error { + return o.Payload +} + +func (o *GetRenderAccountIQNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRenderAccountIQUnprocessableEntity creates a GetRenderAccountIQUnprocessableEntity with default headers values +func NewGetRenderAccountIQUnprocessableEntity() *GetRenderAccountIQUnprocessableEntity { + return &GetRenderAccountIQUnprocessableEntity{} +} + +/*GetRenderAccountIQUnprocessableEntity handles this case with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type GetRenderAccountIQUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *render_models.Error +} + +func (o *GetRenderAccountIQUnprocessableEntity) Error() string { + return fmt.Sprintf("[GET /accounts/iq][%d] getRenderAccountIQUnprocessableEntity %+v", 422, o.Payload) +} + +func (o *GetRenderAccountIQUnprocessableEntity) GetPayload() *render_models.Error { + return o.Payload +} + +func (o *GetRenderAccountIQUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRenderAccountIQInternalServerError creates a GetRenderAccountIQInternalServerError with default headers values +func NewGetRenderAccountIQInternalServerError() *GetRenderAccountIQInternalServerError { + return &GetRenderAccountIQInternalServerError{} +} + +/*GetRenderAccountIQInternalServerError handles this case with default header values. + +Server Internal Error +*/ +type GetRenderAccountIQInternalServerError struct { + AccessControlAllowOrigin string + + Payload *render_models.Error +} + +func (o *GetRenderAccountIQInternalServerError) Error() string { + return fmt.Sprintf("[GET /accounts/iq][%d] getRenderAccountIQInternalServerError %+v", 500, o.Payload) +} + +func (o *GetRenderAccountIQInternalServerError) GetPayload() *render_models.Error { + return o.Payload +} + +func (o *GetRenderAccountIQInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_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/render/render_client/account/get_render_account_pand_l_parameters.go b/api/render/render_client/account/get_render_account_pand_l_parameters.go new file mode 100644 index 0000000..ae2456e --- /dev/null +++ b/api/render/render_client/account/get_render_account_pand_l_parameters.go @@ -0,0 +1,143 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package account + +// 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" +) + +// NewGetRenderAccountPandLParams creates a new GetRenderAccountPandLParams object +// with the default values initialized. +func NewGetRenderAccountPandLParams() *GetRenderAccountPandLParams { + var () + return &GetRenderAccountPandLParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewGetRenderAccountPandLParamsWithTimeout creates a new GetRenderAccountPandLParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewGetRenderAccountPandLParamsWithTimeout(timeout time.Duration) *GetRenderAccountPandLParams { + var () + return &GetRenderAccountPandLParams{ + + timeout: timeout, + } +} + +// NewGetRenderAccountPandLParamsWithContext creates a new GetRenderAccountPandLParams object +// with the default values initialized, and the ability to set a context for a request +func NewGetRenderAccountPandLParamsWithContext(ctx context.Context) *GetRenderAccountPandLParams { + var () + return &GetRenderAccountPandLParams{ + + Context: ctx, + } +} + +// NewGetRenderAccountPandLParamsWithHTTPClient creates a new GetRenderAccountPandLParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewGetRenderAccountPandLParamsWithHTTPClient(client *http.Client) *GetRenderAccountPandLParams { + var () + return &GetRenderAccountPandLParams{ + HTTPClient: client, + } +} + +/*GetRenderAccountPandLParams contains all the parameters to send to the API endpoint +for the get render account pand l operation typically these are written to a http.Request +*/ +type GetRenderAccountPandLParams struct { + + /*AccountID + Taxnexus Id of the Account to be used a record retrieval + + */ + AccountID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the get render account pand l params +func (o *GetRenderAccountPandLParams) WithTimeout(timeout time.Duration) *GetRenderAccountPandLParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get render account pand l params +func (o *GetRenderAccountPandLParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get render account pand l params +func (o *GetRenderAccountPandLParams) WithContext(ctx context.Context) *GetRenderAccountPandLParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get render account pand l params +func (o *GetRenderAccountPandLParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get render account pand l params +func (o *GetRenderAccountPandLParams) WithHTTPClient(client *http.Client) *GetRenderAccountPandLParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get render account pand l params +func (o *GetRenderAccountPandLParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAccountID adds the accountID to the get render account pand l params +func (o *GetRenderAccountPandLParams) WithAccountID(accountID string) *GetRenderAccountPandLParams { + o.SetAccountID(accountID) + return o +} + +// SetAccountID adds the accountId to the get render account pand l params +func (o *GetRenderAccountPandLParams) SetAccountID(accountID string) { + o.AccountID = accountID +} + +// WriteToRequest writes these params to a swagger request +func (o *GetRenderAccountPandLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // query param accountId + qrAccountID := o.AccountID + qAccountID := qrAccountID + if qAccountID != "" { + if err := r.SetQueryParam("accountId", qAccountID); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/render/render_client/account/get_render_account_pand_l_responses.go b/api/render/render_client/account/get_render_account_pand_l_responses.go new file mode 100644 index 0000000..a3b1c03 --- /dev/null +++ b/api/render/render_client/account/get_render_account_pand_l_responses.go @@ -0,0 +1,298 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package account + +// 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/taxnexus/lib/api/render/render_models" +) + +// GetRenderAccountPandLReader is a Reader for the GetRenderAccountPandL structure. +type GetRenderAccountPandLReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetRenderAccountPandLReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetRenderAccountPandLOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewGetRenderAccountPandLUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewGetRenderAccountPandLForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewGetRenderAccountPandLNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewGetRenderAccountPandLUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewGetRenderAccountPandLInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + + default: + return nil, runtime.NewAPIError("unknown error", response, response.Code()) + } +} + +// NewGetRenderAccountPandLOK creates a GetRenderAccountPandLOK with default headers values +func NewGetRenderAccountPandLOK() *GetRenderAccountPandLOK { + return &GetRenderAccountPandLOK{} +} + +/*GetRenderAccountPandLOK handles this case with default header values. + +Rendered documents response +*/ +type GetRenderAccountPandLOK struct { + AccessControlAllowOrigin string + + Payload *render_models.DocumentResponse +} + +func (o *GetRenderAccountPandLOK) Error() string { + return fmt.Sprintf("[GET /accounts/profitloss][%d] getRenderAccountPandLOK %+v", 200, o.Payload) +} + +func (o *GetRenderAccountPandLOK) GetPayload() *render_models.DocumentResponse { + return o.Payload +} + +func (o *GetRenderAccountPandLOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_models.DocumentResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRenderAccountPandLUnauthorized creates a GetRenderAccountPandLUnauthorized with default headers values +func NewGetRenderAccountPandLUnauthorized() *GetRenderAccountPandLUnauthorized { + return &GetRenderAccountPandLUnauthorized{} +} + +/*GetRenderAccountPandLUnauthorized handles this case with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type GetRenderAccountPandLUnauthorized struct { + AccessControlAllowOrigin string + + Payload *render_models.Error +} + +func (o *GetRenderAccountPandLUnauthorized) Error() string { + return fmt.Sprintf("[GET /accounts/profitloss][%d] getRenderAccountPandLUnauthorized %+v", 401, o.Payload) +} + +func (o *GetRenderAccountPandLUnauthorized) GetPayload() *render_models.Error { + return o.Payload +} + +func (o *GetRenderAccountPandLUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRenderAccountPandLForbidden creates a GetRenderAccountPandLForbidden with default headers values +func NewGetRenderAccountPandLForbidden() *GetRenderAccountPandLForbidden { + return &GetRenderAccountPandLForbidden{} +} + +/*GetRenderAccountPandLForbidden handles this case with default header values. + +Access forbidden, account lacks access +*/ +type GetRenderAccountPandLForbidden struct { + AccessControlAllowOrigin string + + Payload *render_models.Error +} + +func (o *GetRenderAccountPandLForbidden) Error() string { + return fmt.Sprintf("[GET /accounts/profitloss][%d] getRenderAccountPandLForbidden %+v", 403, o.Payload) +} + +func (o *GetRenderAccountPandLForbidden) GetPayload() *render_models.Error { + return o.Payload +} + +func (o *GetRenderAccountPandLForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRenderAccountPandLNotFound creates a GetRenderAccountPandLNotFound with default headers values +func NewGetRenderAccountPandLNotFound() *GetRenderAccountPandLNotFound { + return &GetRenderAccountPandLNotFound{} +} + +/*GetRenderAccountPandLNotFound handles this case with default header values. + +Resource was not found +*/ +type GetRenderAccountPandLNotFound struct { + AccessControlAllowOrigin string + + Payload *render_models.Error +} + +func (o *GetRenderAccountPandLNotFound) Error() string { + return fmt.Sprintf("[GET /accounts/profitloss][%d] getRenderAccountPandLNotFound %+v", 404, o.Payload) +} + +func (o *GetRenderAccountPandLNotFound) GetPayload() *render_models.Error { + return o.Payload +} + +func (o *GetRenderAccountPandLNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRenderAccountPandLUnprocessableEntity creates a GetRenderAccountPandLUnprocessableEntity with default headers values +func NewGetRenderAccountPandLUnprocessableEntity() *GetRenderAccountPandLUnprocessableEntity { + return &GetRenderAccountPandLUnprocessableEntity{} +} + +/*GetRenderAccountPandLUnprocessableEntity handles this case with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type GetRenderAccountPandLUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *render_models.Error +} + +func (o *GetRenderAccountPandLUnprocessableEntity) Error() string { + return fmt.Sprintf("[GET /accounts/profitloss][%d] getRenderAccountPandLUnprocessableEntity %+v", 422, o.Payload) +} + +func (o *GetRenderAccountPandLUnprocessableEntity) GetPayload() *render_models.Error { + return o.Payload +} + +func (o *GetRenderAccountPandLUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRenderAccountPandLInternalServerError creates a GetRenderAccountPandLInternalServerError with default headers values +func NewGetRenderAccountPandLInternalServerError() *GetRenderAccountPandLInternalServerError { + return &GetRenderAccountPandLInternalServerError{} +} + +/*GetRenderAccountPandLInternalServerError handles this case with default header values. + +Server Internal Error +*/ +type GetRenderAccountPandLInternalServerError struct { + AccessControlAllowOrigin string + + Payload *render_models.Error +} + +func (o *GetRenderAccountPandLInternalServerError) Error() string { + return fmt.Sprintf("[GET /accounts/profitloss][%d] getRenderAccountPandLInternalServerError %+v", 500, o.Payload) +} + +func (o *GetRenderAccountPandLInternalServerError) GetPayload() *render_models.Error { + return o.Payload +} + +func (o *GetRenderAccountPandLInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response header Access-Control-Allow-Origin + o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") + + o.Payload = new(render_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/render/render_client/account/get_render_account_parameters.go b/api/render/render_client/account/get_render_account_parameters.go deleted file mode 100644 index 825f5e8..0000000 --- a/api/render/render_client/account/get_render_account_parameters.go +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package account - -// 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" -) - -// NewGetRenderAccountParams creates a new GetRenderAccountParams object -// with the default values initialized. -func NewGetRenderAccountParams() *GetRenderAccountParams { - var () - return &GetRenderAccountParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetRenderAccountParamsWithTimeout creates a new GetRenderAccountParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetRenderAccountParamsWithTimeout(timeout time.Duration) *GetRenderAccountParams { - var () - return &GetRenderAccountParams{ - - timeout: timeout, - } -} - -// NewGetRenderAccountParamsWithContext creates a new GetRenderAccountParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetRenderAccountParamsWithContext(ctx context.Context) *GetRenderAccountParams { - var () - return &GetRenderAccountParams{ - - Context: ctx, - } -} - -// NewGetRenderAccountParamsWithHTTPClient creates a new GetRenderAccountParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetRenderAccountParamsWithHTTPClient(client *http.Client) *GetRenderAccountParams { - var () - return &GetRenderAccountParams{ - HTTPClient: client, - } -} - -/*GetRenderAccountParams contains all the parameters to send to the API endpoint -for the get render account operation typically these are written to a http.Request -*/ -type GetRenderAccountParams struct { - - /*AccountID - Taxnexus Id of the Account to be used a record retrieval - - */ - AccountID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get render account params -func (o *GetRenderAccountParams) WithTimeout(timeout time.Duration) *GetRenderAccountParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get render account params -func (o *GetRenderAccountParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get render account params -func (o *GetRenderAccountParams) WithContext(ctx context.Context) *GetRenderAccountParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get render account params -func (o *GetRenderAccountParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get render account params -func (o *GetRenderAccountParams) WithHTTPClient(client *http.Client) *GetRenderAccountParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get render account params -func (o *GetRenderAccountParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAccountID adds the accountID to the get render account params -func (o *GetRenderAccountParams) WithAccountID(accountID string) *GetRenderAccountParams { - o.SetAccountID(accountID) - return o -} - -// SetAccountID adds the accountId to the get render account params -func (o *GetRenderAccountParams) SetAccountID(accountID string) { - o.AccountID = accountID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetRenderAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param accountId - qrAccountID := o.AccountID - qAccountID := qrAccountID - if qAccountID != "" { - if err := r.SetQueryParam("accountId", qAccountID); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/render/render_client/account/get_render_account_responses.go b/api/render/render_client/account/get_render_account_responses.go deleted file mode 100644 index 4443776..0000000 --- a/api/render/render_client/account/get_render_account_responses.go +++ /dev/null @@ -1,298 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package account - -// 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/taxnexus/lib/api/render/render_models" -) - -// GetRenderAccountReader is a Reader for the GetRenderAccount structure. -type GetRenderAccountReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetRenderAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetRenderAccountOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetRenderAccountUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetRenderAccountForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetRenderAccountNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetRenderAccountUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetRenderAccountInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - - default: - return nil, runtime.NewAPIError("unknown error", response, response.Code()) - } -} - -// NewGetRenderAccountOK creates a GetRenderAccountOK with default headers values -func NewGetRenderAccountOK() *GetRenderAccountOK { - return &GetRenderAccountOK{} -} - -/*GetRenderAccountOK handles this case with default header values. - -Rendered documents response -*/ -type GetRenderAccountOK struct { - AccessControlAllowOrigin string - - Payload *render_models.DocumentResponse -} - -func (o *GetRenderAccountOK) Error() string { - return fmt.Sprintf("[GET /accounts][%d] getRenderAccountOK %+v", 200, o.Payload) -} - -func (o *GetRenderAccountOK) GetPayload() *render_models.DocumentResponse { - return o.Payload -} - -func (o *GetRenderAccountOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.DocumentResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderAccountUnauthorized creates a GetRenderAccountUnauthorized with default headers values -func NewGetRenderAccountUnauthorized() *GetRenderAccountUnauthorized { - return &GetRenderAccountUnauthorized{} -} - -/*GetRenderAccountUnauthorized handles this case with default header values. - -Access unauthorized, invalid API-KEY was used -*/ -type GetRenderAccountUnauthorized struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderAccountUnauthorized) Error() string { - return fmt.Sprintf("[GET /accounts][%d] getRenderAccountUnauthorized %+v", 401, o.Payload) -} - -func (o *GetRenderAccountUnauthorized) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderAccountUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderAccountForbidden creates a GetRenderAccountForbidden with default headers values -func NewGetRenderAccountForbidden() *GetRenderAccountForbidden { - return &GetRenderAccountForbidden{} -} - -/*GetRenderAccountForbidden handles this case with default header values. - -Access forbidden, account lacks access -*/ -type GetRenderAccountForbidden struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderAccountForbidden) Error() string { - return fmt.Sprintf("[GET /accounts][%d] getRenderAccountForbidden %+v", 403, o.Payload) -} - -func (o *GetRenderAccountForbidden) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderAccountForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderAccountNotFound creates a GetRenderAccountNotFound with default headers values -func NewGetRenderAccountNotFound() *GetRenderAccountNotFound { - return &GetRenderAccountNotFound{} -} - -/*GetRenderAccountNotFound handles this case with default header values. - -Resource was not found -*/ -type GetRenderAccountNotFound struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderAccountNotFound) Error() string { - return fmt.Sprintf("[GET /accounts][%d] getRenderAccountNotFound %+v", 404, o.Payload) -} - -func (o *GetRenderAccountNotFound) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderAccountNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderAccountUnprocessableEntity creates a GetRenderAccountUnprocessableEntity with default headers values -func NewGetRenderAccountUnprocessableEntity() *GetRenderAccountUnprocessableEntity { - return &GetRenderAccountUnprocessableEntity{} -} - -/*GetRenderAccountUnprocessableEntity handles this case with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetRenderAccountUnprocessableEntity struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderAccountUnprocessableEntity) Error() string { - return fmt.Sprintf("[GET /accounts][%d] getRenderAccountUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *GetRenderAccountUnprocessableEntity) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderAccountUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderAccountInternalServerError creates a GetRenderAccountInternalServerError with default headers values -func NewGetRenderAccountInternalServerError() *GetRenderAccountInternalServerError { - return &GetRenderAccountInternalServerError{} -} - -/*GetRenderAccountInternalServerError handles this case with default header values. - -Server Internal Error -*/ -type GetRenderAccountInternalServerError struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderAccountInternalServerError) Error() string { - return fmt.Sprintf("[GET /accounts][%d] getRenderAccountInternalServerError %+v", 500, o.Payload) -} - -func (o *GetRenderAccountInternalServerError) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderAccountInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_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/render/render_client/cors/account_i_q_options_parameters.go b/api/render/render_client/cors/account_i_q_options_parameters.go new file mode 100644 index 0000000..6a347d3 --- /dev/null +++ b/api/render/render_client/cors/account_i_q_options_parameters.go @@ -0,0 +1,116 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package cors + +// 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" +) + +// NewAccountIQOptionsParams creates a new AccountIQOptionsParams object +// with the default values initialized. +func NewAccountIQOptionsParams() *AccountIQOptionsParams { + + return &AccountIQOptionsParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewAccountIQOptionsParamsWithTimeout creates a new AccountIQOptionsParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewAccountIQOptionsParamsWithTimeout(timeout time.Duration) *AccountIQOptionsParams { + + return &AccountIQOptionsParams{ + + timeout: timeout, + } +} + +// NewAccountIQOptionsParamsWithContext creates a new AccountIQOptionsParams object +// with the default values initialized, and the ability to set a context for a request +func NewAccountIQOptionsParamsWithContext(ctx context.Context) *AccountIQOptionsParams { + + return &AccountIQOptionsParams{ + + Context: ctx, + } +} + +// NewAccountIQOptionsParamsWithHTTPClient creates a new AccountIQOptionsParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewAccountIQOptionsParamsWithHTTPClient(client *http.Client) *AccountIQOptionsParams { + + return &AccountIQOptionsParams{ + HTTPClient: client, + } +} + +/*AccountIQOptionsParams contains all the parameters to send to the API endpoint +for the account i q options operation typically these are written to a http.Request +*/ +type AccountIQOptionsParams struct { + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the account i q options params +func (o *AccountIQOptionsParams) WithTimeout(timeout time.Duration) *AccountIQOptionsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the account i q options params +func (o *AccountIQOptionsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the account i q options params +func (o *AccountIQOptionsParams) WithContext(ctx context.Context) *AccountIQOptionsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the account i q options params +func (o *AccountIQOptionsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the account i q options params +func (o *AccountIQOptionsParams) WithHTTPClient(client *http.Client) *AccountIQOptionsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the account i q options params +func (o *AccountIQOptionsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WriteToRequest writes these params to a swagger request +func (o *AccountIQOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/render/render_client/cors/account_options_responses.go b/api/render/render_client/cors/account_i_q_options_responses.go similarity index 70% rename from api/render/render_client/cors/account_options_responses.go rename to api/render/render_client/cors/account_i_q_options_responses.go index 324e979..5711b1c 100644 --- a/api/render/render_client/cors/account_options_responses.go +++ b/api/render/render_client/cors/account_i_q_options_responses.go @@ -16,16 +16,16 @@ import ( "github.com/go-openapi/strfmt" ) -// AccountOptionsReader is a Reader for the AccountOptions structure. -type AccountOptionsReader struct { +// AccountIQOptionsReader is a Reader for the AccountIQOptions structure. +type AccountIQOptionsReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. -func (o *AccountOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { +func (o *AccountIQOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: - result := NewAccountOptionsOK() + result := NewAccountIQOptionsOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -36,16 +36,16 @@ func (o *AccountOptionsReader) ReadResponse(response runtime.ClientResponse, con } } -// NewAccountOptionsOK creates a AccountOptionsOK with default headers values -func NewAccountOptionsOK() *AccountOptionsOK { - return &AccountOptionsOK{} +// NewAccountIQOptionsOK creates a AccountIQOptionsOK with default headers values +func NewAccountIQOptionsOK() *AccountIQOptionsOK { + return &AccountIQOptionsOK{} } -/*AccountOptionsOK handles this case with default header values. +/*AccountIQOptionsOK handles this case with default header values. CORS OPTIONS response */ -type AccountOptionsOK struct { +type AccountIQOptionsOK struct { AccessControlAllowCredentials string AccessControlAllowHeaders string @@ -61,11 +61,11 @@ type AccountOptionsOK struct { CacheControl string } -func (o *AccountOptionsOK) Error() string { - return fmt.Sprintf("[OPTIONS /accounts][%d] accountOptionsOK ", 200) +func (o *AccountIQOptionsOK) Error() string { + return fmt.Sprintf("[OPTIONS /accounts/iq][%d] accountIQOptionsOK ", 200) } -func (o *AccountOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *AccountIQOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response header Access-Control-Allow-Credentials o.AccessControlAllowCredentials = response.GetHeader("Access-Control-Allow-Credentials") diff --git a/api/render/render_client/cors/account_options_parameters.go b/api/render/render_client/cors/account_options_parameters.go deleted file mode 100644 index 777b99c..0000000 --- a/api/render/render_client/cors/account_options_parameters.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// 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" -) - -// NewAccountOptionsParams creates a new AccountOptionsParams object -// with the default values initialized. -func NewAccountOptionsParams() *AccountOptionsParams { - - return &AccountOptionsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewAccountOptionsParamsWithTimeout creates a new AccountOptionsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewAccountOptionsParamsWithTimeout(timeout time.Duration) *AccountOptionsParams { - - return &AccountOptionsParams{ - - timeout: timeout, - } -} - -// NewAccountOptionsParamsWithContext creates a new AccountOptionsParams object -// with the default values initialized, and the ability to set a context for a request -func NewAccountOptionsParamsWithContext(ctx context.Context) *AccountOptionsParams { - - return &AccountOptionsParams{ - - Context: ctx, - } -} - -// NewAccountOptionsParamsWithHTTPClient creates a new AccountOptionsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewAccountOptionsParamsWithHTTPClient(client *http.Client) *AccountOptionsParams { - - return &AccountOptionsParams{ - HTTPClient: client, - } -} - -/*AccountOptionsParams contains all the parameters to send to the API endpoint -for the account options operation typically these are written to a http.Request -*/ -type AccountOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the account options params -func (o *AccountOptionsParams) WithTimeout(timeout time.Duration) *AccountOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the account options params -func (o *AccountOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the account options params -func (o *AccountOptionsParams) WithContext(ctx context.Context) *AccountOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the account options params -func (o *AccountOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the account options params -func (o *AccountOptionsParams) WithHTTPClient(client *http.Client) *AccountOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the account options params -func (o *AccountOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *AccountOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/render/render_client/cors/account_pand_l_options_parameters.go b/api/render/render_client/cors/account_pand_l_options_parameters.go new file mode 100644 index 0000000..1326ea4 --- /dev/null +++ b/api/render/render_client/cors/account_pand_l_options_parameters.go @@ -0,0 +1,116 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package cors + +// 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" +) + +// NewAccountPandLOptionsParams creates a new AccountPandLOptionsParams object +// with the default values initialized. +func NewAccountPandLOptionsParams() *AccountPandLOptionsParams { + + return &AccountPandLOptionsParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewAccountPandLOptionsParamsWithTimeout creates a new AccountPandLOptionsParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewAccountPandLOptionsParamsWithTimeout(timeout time.Duration) *AccountPandLOptionsParams { + + return &AccountPandLOptionsParams{ + + timeout: timeout, + } +} + +// NewAccountPandLOptionsParamsWithContext creates a new AccountPandLOptionsParams object +// with the default values initialized, and the ability to set a context for a request +func NewAccountPandLOptionsParamsWithContext(ctx context.Context) *AccountPandLOptionsParams { + + return &AccountPandLOptionsParams{ + + Context: ctx, + } +} + +// NewAccountPandLOptionsParamsWithHTTPClient creates a new AccountPandLOptionsParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewAccountPandLOptionsParamsWithHTTPClient(client *http.Client) *AccountPandLOptionsParams { + + return &AccountPandLOptionsParams{ + HTTPClient: client, + } +} + +/*AccountPandLOptionsParams contains all the parameters to send to the API endpoint +for the account pand l options operation typically these are written to a http.Request +*/ +type AccountPandLOptionsParams struct { + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the account pand l options params +func (o *AccountPandLOptionsParams) WithTimeout(timeout time.Duration) *AccountPandLOptionsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the account pand l options params +func (o *AccountPandLOptionsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the account pand l options params +func (o *AccountPandLOptionsParams) WithContext(ctx context.Context) *AccountPandLOptionsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the account pand l options params +func (o *AccountPandLOptionsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the account pand l options params +func (o *AccountPandLOptionsParams) WithHTTPClient(client *http.Client) *AccountPandLOptionsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the account pand l options params +func (o *AccountPandLOptionsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WriteToRequest writes these params to a swagger request +func (o *AccountPandLOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/render/render_client/cors/county_options_responses.go b/api/render/render_client/cors/account_pand_l_options_responses.go similarity index 69% rename from api/render/render_client/cors/county_options_responses.go rename to api/render/render_client/cors/account_pand_l_options_responses.go index 61aa5a5..813b9f1 100644 --- a/api/render/render_client/cors/county_options_responses.go +++ b/api/render/render_client/cors/account_pand_l_options_responses.go @@ -16,16 +16,16 @@ import ( "github.com/go-openapi/strfmt" ) -// CountyOptionsReader is a Reader for the CountyOptions structure. -type CountyOptionsReader struct { +// AccountPandLOptionsReader is a Reader for the AccountPandLOptions structure. +type AccountPandLOptionsReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. -func (o *CountyOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { +func (o *AccountPandLOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: - result := NewCountyOptionsOK() + result := NewAccountPandLOptionsOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -36,16 +36,16 @@ func (o *CountyOptionsReader) ReadResponse(response runtime.ClientResponse, cons } } -// NewCountyOptionsOK creates a CountyOptionsOK with default headers values -func NewCountyOptionsOK() *CountyOptionsOK { - return &CountyOptionsOK{} +// NewAccountPandLOptionsOK creates a AccountPandLOptionsOK with default headers values +func NewAccountPandLOptionsOK() *AccountPandLOptionsOK { + return &AccountPandLOptionsOK{} } -/*CountyOptionsOK handles this case with default header values. +/*AccountPandLOptionsOK handles this case with default header values. CORS OPTIONS response */ -type CountyOptionsOK struct { +type AccountPandLOptionsOK struct { AccessControlAllowCredentials string AccessControlAllowHeaders string @@ -61,11 +61,11 @@ type CountyOptionsOK struct { CacheControl string } -func (o *CountyOptionsOK) Error() string { - return fmt.Sprintf("[OPTIONS /counties][%d] countyOptionsOK ", 200) +func (o *AccountPandLOptionsOK) Error() string { + return fmt.Sprintf("[OPTIONS /accounts/profitloss][%d] accountPandLOptionsOK ", 200) } -func (o *CountyOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *AccountPandLOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response header Access-Control-Allow-Credentials o.AccessControlAllowCredentials = response.GetHeader("Access-Control-Allow-Credentials") diff --git a/api/render/render_client/cors/cors_client.go b/api/render/render_client/cors/cors_client.go index daafb5c..5d06554 100644 --- a/api/render/render_client/cors/cors_client.go +++ b/api/render/render_client/cors/cors_client.go @@ -31,11 +31,9 @@ type Client struct { // ClientService is the interface for Client methods type ClientService interface { - AccountOptions(params *AccountOptionsParams) (*AccountOptionsOK, error) + AccountIQOptions(params *AccountIQOptionsParams) (*AccountIQOptionsOK, error) - CountyOptions(params *CountyOptionsParams) (*CountyOptionsOK, error) - - IngestOptions(params *IngestOptionsParams) (*IngestOptionsOK, error) + AccountPandLOptions(params *AccountPandLOptionsParams) (*AccountPandLOptionsOK, error) TaxOptions(params *TaxOptionsParams) (*TaxOptionsOK, error) @@ -43,104 +41,70 @@ type ClientService interface { } /* - AccountOptions CORS support + AccountIQOptions CORS support */ -func (a *Client) AccountOptions(params *AccountOptionsParams) (*AccountOptionsOK, error) { +func (a *Client) AccountIQOptions(params *AccountIQOptionsParams) (*AccountIQOptionsOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewAccountOptionsParams() + params = NewAccountIQOptionsParams() } result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "accountOptions", + ID: "accountIQOptions", Method: "OPTIONS", - PathPattern: "/accounts", + PathPattern: "/accounts/iq", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &AccountOptionsReader{formats: a.formats}, + Reader: &AccountIQOptionsReader{formats: a.formats}, Context: params.Context, Client: params.HTTPClient, }) if err != nil { return nil, err } - success, ok := result.(*AccountOptionsOK) + success, ok := result.(*AccountIQOptionsOK) 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 accountOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for accountIQOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - CountyOptions CORS support + AccountPandLOptions CORS support */ -func (a *Client) CountyOptions(params *CountyOptionsParams) (*CountyOptionsOK, error) { +func (a *Client) AccountPandLOptions(params *AccountPandLOptionsParams) (*AccountPandLOptionsOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewCountyOptionsParams() + params = NewAccountPandLOptionsParams() } result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "countyOptions", + ID: "accountPandLOptions", Method: "OPTIONS", - PathPattern: "/counties", + PathPattern: "/accounts/profitloss", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &CountyOptionsReader{formats: a.formats}, + Reader: &AccountPandLOptionsReader{formats: a.formats}, Context: params.Context, Client: params.HTTPClient, }) if err != nil { return nil, err } - success, ok := result.(*CountyOptionsOK) + success, ok := result.(*AccountPandLOptionsOK) 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 countyOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* - IngestOptions CORS support -*/ -func (a *Client) IngestOptions(params *IngestOptionsParams) (*IngestOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewIngestOptionsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ingestOptions", - Method: "OPTIONS", - PathPattern: "/ingests", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &IngestOptionsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*IngestOptionsOK) - 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 ingestOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for accountPandLOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } @@ -156,7 +120,7 @@ func (a *Client) TaxOptions(params *TaxOptionsParams) (*TaxOptionsOK, error) { result, err := a.transport.Submit(&runtime.ClientOperation{ ID: "taxOptions", Method: "OPTIONS", - PathPattern: "/taxes", + PathPattern: "/accounts/tax", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, diff --git a/api/render/render_client/cors/county_options_parameters.go b/api/render/render_client/cors/county_options_parameters.go deleted file mode 100644 index c776a19..0000000 --- a/api/render/render_client/cors/county_options_parameters.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// 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" -) - -// NewCountyOptionsParams creates a new CountyOptionsParams object -// with the default values initialized. -func NewCountyOptionsParams() *CountyOptionsParams { - - return &CountyOptionsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCountyOptionsParamsWithTimeout creates a new CountyOptionsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCountyOptionsParamsWithTimeout(timeout time.Duration) *CountyOptionsParams { - - return &CountyOptionsParams{ - - timeout: timeout, - } -} - -// NewCountyOptionsParamsWithContext creates a new CountyOptionsParams object -// with the default values initialized, and the ability to set a context for a request -func NewCountyOptionsParamsWithContext(ctx context.Context) *CountyOptionsParams { - - return &CountyOptionsParams{ - - Context: ctx, - } -} - -// NewCountyOptionsParamsWithHTTPClient creates a new CountyOptionsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCountyOptionsParamsWithHTTPClient(client *http.Client) *CountyOptionsParams { - - return &CountyOptionsParams{ - HTTPClient: client, - } -} - -/*CountyOptionsParams contains all the parameters to send to the API endpoint -for the county options operation typically these are written to a http.Request -*/ -type CountyOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the county options params -func (o *CountyOptionsParams) WithTimeout(timeout time.Duration) *CountyOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the county options params -func (o *CountyOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the county options params -func (o *CountyOptionsParams) WithContext(ctx context.Context) *CountyOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the county options params -func (o *CountyOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the county options params -func (o *CountyOptionsParams) WithHTTPClient(client *http.Client) *CountyOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the county options params -func (o *CountyOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CountyOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/render/render_client/cors/ingest_options_parameters.go b/api/render/render_client/cors/ingest_options_parameters.go deleted file mode 100644 index a7c0bbb..0000000 --- a/api/render/render_client/cors/ingest_options_parameters.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// 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" -) - -// NewIngestOptionsParams creates a new IngestOptionsParams object -// with the default values initialized. -func NewIngestOptionsParams() *IngestOptionsParams { - - return &IngestOptionsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewIngestOptionsParamsWithTimeout creates a new IngestOptionsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewIngestOptionsParamsWithTimeout(timeout time.Duration) *IngestOptionsParams { - - return &IngestOptionsParams{ - - timeout: timeout, - } -} - -// NewIngestOptionsParamsWithContext creates a new IngestOptionsParams object -// with the default values initialized, and the ability to set a context for a request -func NewIngestOptionsParamsWithContext(ctx context.Context) *IngestOptionsParams { - - return &IngestOptionsParams{ - - Context: ctx, - } -} - -// NewIngestOptionsParamsWithHTTPClient creates a new IngestOptionsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewIngestOptionsParamsWithHTTPClient(client *http.Client) *IngestOptionsParams { - - return &IngestOptionsParams{ - HTTPClient: client, - } -} - -/*IngestOptionsParams contains all the parameters to send to the API endpoint -for the ingest options operation typically these are written to a http.Request -*/ -type IngestOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the ingest options params -func (o *IngestOptionsParams) WithTimeout(timeout time.Duration) *IngestOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the ingest options params -func (o *IngestOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the ingest options params -func (o *IngestOptionsParams) WithContext(ctx context.Context) *IngestOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the ingest options params -func (o *IngestOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the ingest options params -func (o *IngestOptionsParams) WithHTTPClient(client *http.Client) *IngestOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the ingest options params -func (o *IngestOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *IngestOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/render/render_client/cors/ingest_options_responses.go b/api/render/render_client/cors/ingest_options_responses.go deleted file mode 100644 index ae22168..0000000 --- a/api/render/render_client/cors/ingest_options_responses.go +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// 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" -) - -// IngestOptionsReader is a Reader for the IngestOptions structure. -type IngestOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *IngestOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewIngestOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - - default: - return nil, runtime.NewAPIError("unknown error", response, response.Code()) - } -} - -// NewIngestOptionsOK creates a IngestOptionsOK with default headers values -func NewIngestOptionsOK() *IngestOptionsOK { - return &IngestOptionsOK{} -} - -/*IngestOptionsOK handles this case with default header values. - -CORS OPTIONS response -*/ -type IngestOptionsOK struct { - AccessControlAllowCredentials string - - AccessControlAllowHeaders string - - AccessControlAllowMethods string - - AccessControlAllowOrigin string - - AccessControlExposeHeaders string - - AccessControlMaxAge string - - CacheControl string -} - -func (o *IngestOptionsOK) Error() string { - return fmt.Sprintf("[OPTIONS /ingests][%d] ingestOptionsOK ", 200) -} - -func (o *IngestOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Credentials - o.AccessControlAllowCredentials = response.GetHeader("Access-Control-Allow-Credentials") - - // response header Access-Control-Allow-Headers - o.AccessControlAllowHeaders = response.GetHeader("Access-Control-Allow-Headers") - - // response header Access-Control-Allow-Methods - o.AccessControlAllowMethods = response.GetHeader("Access-Control-Allow-Methods") - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - // response header Access-Control-Expose-Headers - o.AccessControlExposeHeaders = response.GetHeader("Access-Control-Expose-Headers") - - // response header Access-Control-Max-Age - o.AccessControlMaxAge = response.GetHeader("Access-Control-Max-Age") - - // response header Cache-Control - o.CacheControl = response.GetHeader("Cache-Control") - - return nil -} diff --git a/api/render/render_client/cors/tax_options_responses.go b/api/render/render_client/cors/tax_options_responses.go index cd28fa9..1a8d2c9 100644 --- a/api/render/render_client/cors/tax_options_responses.go +++ b/api/render/render_client/cors/tax_options_responses.go @@ -62,7 +62,7 @@ type TaxOptionsOK struct { } func (o *TaxOptionsOK) Error() string { - return fmt.Sprintf("[OPTIONS /taxes][%d] taxOptionsOK ", 200) + return fmt.Sprintf("[OPTIONS /accounts/tax][%d] taxOptionsOK ", 200) } func (o *TaxOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/api/render/render_client/county/county_client.go b/api/render/render_client/county/county_client.go deleted file mode 100644 index cb31fcc..0000000 --- a/api/render/render_client/county/county_client.go +++ /dev/null @@ -1,79 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package county - -// 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 county API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for county API -*/ -type Client struct { - transport runtime.ClientTransport - formats strfmt.Registry -} - -// ClientService is the interface for Client methods -type ClientService interface { - GetRenderCounty(params *GetRenderCountyParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenderCountyOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* - GetRenderCounty generates p d f from a county ID - - Generate a County Report PDF -*/ -func (a *Client) GetRenderCounty(params *GetRenderCountyParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenderCountyOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetRenderCountyParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "getRenderCounty", - Method: "GET", - PathPattern: "/counties", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetRenderCountyReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetRenderCountyOK) - 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 getRenderCounty: 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/render/render_client/county/get_render_county_parameters.go b/api/render/render_client/county/get_render_county_parameters.go deleted file mode 100644 index 239d0dd..0000000 --- a/api/render/render_client/county/get_render_county_parameters.go +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package county - -// 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" -) - -// NewGetRenderCountyParams creates a new GetRenderCountyParams object -// with the default values initialized. -func NewGetRenderCountyParams() *GetRenderCountyParams { - var () - return &GetRenderCountyParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetRenderCountyParamsWithTimeout creates a new GetRenderCountyParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetRenderCountyParamsWithTimeout(timeout time.Duration) *GetRenderCountyParams { - var () - return &GetRenderCountyParams{ - - timeout: timeout, - } -} - -// NewGetRenderCountyParamsWithContext creates a new GetRenderCountyParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetRenderCountyParamsWithContext(ctx context.Context) *GetRenderCountyParams { - var () - return &GetRenderCountyParams{ - - Context: ctx, - } -} - -// NewGetRenderCountyParamsWithHTTPClient creates a new GetRenderCountyParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetRenderCountyParamsWithHTTPClient(client *http.Client) *GetRenderCountyParams { - var () - return &GetRenderCountyParams{ - HTTPClient: client, - } -} - -/*GetRenderCountyParams contains all the parameters to send to the API endpoint -for the get render county operation typically these are written to a http.Request -*/ -type GetRenderCountyParams struct { - - /*CountyID - The County ID - - */ - CountyID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get render county params -func (o *GetRenderCountyParams) WithTimeout(timeout time.Duration) *GetRenderCountyParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get render county params -func (o *GetRenderCountyParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get render county params -func (o *GetRenderCountyParams) WithContext(ctx context.Context) *GetRenderCountyParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get render county params -func (o *GetRenderCountyParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get render county params -func (o *GetRenderCountyParams) WithHTTPClient(client *http.Client) *GetRenderCountyParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get render county params -func (o *GetRenderCountyParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCountyID adds the countyID to the get render county params -func (o *GetRenderCountyParams) WithCountyID(countyID string) *GetRenderCountyParams { - o.SetCountyID(countyID) - return o -} - -// SetCountyID adds the countyId to the get render county params -func (o *GetRenderCountyParams) SetCountyID(countyID string) { - o.CountyID = countyID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetRenderCountyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param countyId - qrCountyID := o.CountyID - qCountyID := qrCountyID - if qCountyID != "" { - if err := r.SetQueryParam("countyId", qCountyID); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/render/render_client/county/get_render_county_responses.go b/api/render/render_client/county/get_render_county_responses.go deleted file mode 100644 index 47685a4..0000000 --- a/api/render/render_client/county/get_render_county_responses.go +++ /dev/null @@ -1,298 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package county - -// 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/taxnexus/lib/api/render/render_models" -) - -// GetRenderCountyReader is a Reader for the GetRenderCounty structure. -type GetRenderCountyReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetRenderCountyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetRenderCountyOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetRenderCountyUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetRenderCountyForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetRenderCountyNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetRenderCountyUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetRenderCountyInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - - default: - return nil, runtime.NewAPIError("unknown error", response, response.Code()) - } -} - -// NewGetRenderCountyOK creates a GetRenderCountyOK with default headers values -func NewGetRenderCountyOK() *GetRenderCountyOK { - return &GetRenderCountyOK{} -} - -/*GetRenderCountyOK handles this case with default header values. - -Rendered documents response -*/ -type GetRenderCountyOK struct { - AccessControlAllowOrigin string - - Payload *render_models.DocumentResponse -} - -func (o *GetRenderCountyOK) Error() string { - return fmt.Sprintf("[GET /counties][%d] getRenderCountyOK %+v", 200, o.Payload) -} - -func (o *GetRenderCountyOK) GetPayload() *render_models.DocumentResponse { - return o.Payload -} - -func (o *GetRenderCountyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.DocumentResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderCountyUnauthorized creates a GetRenderCountyUnauthorized with default headers values -func NewGetRenderCountyUnauthorized() *GetRenderCountyUnauthorized { - return &GetRenderCountyUnauthorized{} -} - -/*GetRenderCountyUnauthorized handles this case with default header values. - -Access unauthorized, invalid API-KEY was used -*/ -type GetRenderCountyUnauthorized struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderCountyUnauthorized) Error() string { - return fmt.Sprintf("[GET /counties][%d] getRenderCountyUnauthorized %+v", 401, o.Payload) -} - -func (o *GetRenderCountyUnauthorized) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderCountyUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderCountyForbidden creates a GetRenderCountyForbidden with default headers values -func NewGetRenderCountyForbidden() *GetRenderCountyForbidden { - return &GetRenderCountyForbidden{} -} - -/*GetRenderCountyForbidden handles this case with default header values. - -Access forbidden, account lacks access -*/ -type GetRenderCountyForbidden struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderCountyForbidden) Error() string { - return fmt.Sprintf("[GET /counties][%d] getRenderCountyForbidden %+v", 403, o.Payload) -} - -func (o *GetRenderCountyForbidden) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderCountyForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderCountyNotFound creates a GetRenderCountyNotFound with default headers values -func NewGetRenderCountyNotFound() *GetRenderCountyNotFound { - return &GetRenderCountyNotFound{} -} - -/*GetRenderCountyNotFound handles this case with default header values. - -Resource was not found -*/ -type GetRenderCountyNotFound struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderCountyNotFound) Error() string { - return fmt.Sprintf("[GET /counties][%d] getRenderCountyNotFound %+v", 404, o.Payload) -} - -func (o *GetRenderCountyNotFound) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderCountyNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderCountyUnprocessableEntity creates a GetRenderCountyUnprocessableEntity with default headers values -func NewGetRenderCountyUnprocessableEntity() *GetRenderCountyUnprocessableEntity { - return &GetRenderCountyUnprocessableEntity{} -} - -/*GetRenderCountyUnprocessableEntity handles this case with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetRenderCountyUnprocessableEntity struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderCountyUnprocessableEntity) Error() string { - return fmt.Sprintf("[GET /counties][%d] getRenderCountyUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *GetRenderCountyUnprocessableEntity) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderCountyUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderCountyInternalServerError creates a GetRenderCountyInternalServerError with default headers values -func NewGetRenderCountyInternalServerError() *GetRenderCountyInternalServerError { - return &GetRenderCountyInternalServerError{} -} - -/*GetRenderCountyInternalServerError handles this case with default header values. - -Server Internal Error -*/ -type GetRenderCountyInternalServerError struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderCountyInternalServerError) Error() string { - return fmt.Sprintf("[GET /counties][%d] getRenderCountyInternalServerError %+v", 500, o.Payload) -} - -func (o *GetRenderCountyInternalServerError) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderCountyInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_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/render/render_client/ingest/get_render_ingests_parameters.go b/api/render/render_client/ingest/get_render_ingests_parameters.go deleted file mode 100644 index 10f1278..0000000 --- a/api/render/render_client/ingest/get_render_ingests_parameters.go +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package ingest - -// 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" -) - -// NewGetRenderIngestsParams creates a new GetRenderIngestsParams object -// with the default values initialized. -func NewGetRenderIngestsParams() *GetRenderIngestsParams { - var () - return &GetRenderIngestsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetRenderIngestsParamsWithTimeout creates a new GetRenderIngestsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetRenderIngestsParamsWithTimeout(timeout time.Duration) *GetRenderIngestsParams { - var () - return &GetRenderIngestsParams{ - - timeout: timeout, - } -} - -// NewGetRenderIngestsParamsWithContext creates a new GetRenderIngestsParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetRenderIngestsParamsWithContext(ctx context.Context) *GetRenderIngestsParams { - var () - return &GetRenderIngestsParams{ - - Context: ctx, - } -} - -// NewGetRenderIngestsParamsWithHTTPClient creates a new GetRenderIngestsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetRenderIngestsParamsWithHTTPClient(client *http.Client) *GetRenderIngestsParams { - var () - return &GetRenderIngestsParams{ - HTTPClient: client, - } -} - -/*GetRenderIngestsParams contains all the parameters to send to the API endpoint -for the get render ingests operation typically these are written to a http.Request -*/ -type GetRenderIngestsParams struct { - - /*IngestID - Taxnexus Id of the Invoice to be retrieved - - */ - IngestID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get render ingests params -func (o *GetRenderIngestsParams) WithTimeout(timeout time.Duration) *GetRenderIngestsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get render ingests params -func (o *GetRenderIngestsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get render ingests params -func (o *GetRenderIngestsParams) WithContext(ctx context.Context) *GetRenderIngestsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get render ingests params -func (o *GetRenderIngestsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get render ingests params -func (o *GetRenderIngestsParams) WithHTTPClient(client *http.Client) *GetRenderIngestsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get render ingests params -func (o *GetRenderIngestsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithIngestID adds the ingestID to the get render ingests params -func (o *GetRenderIngestsParams) WithIngestID(ingestID string) *GetRenderIngestsParams { - o.SetIngestID(ingestID) - return o -} - -// SetIngestID adds the ingestId to the get render ingests params -func (o *GetRenderIngestsParams) SetIngestID(ingestID string) { - o.IngestID = ingestID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetRenderIngestsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param ingestId - qrIngestID := o.IngestID - qIngestID := qrIngestID - if qIngestID != "" { - if err := r.SetQueryParam("ingestId", qIngestID); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/render/render_client/ingest/get_render_ingests_responses.go b/api/render/render_client/ingest/get_render_ingests_responses.go deleted file mode 100644 index e360c24..0000000 --- a/api/render/render_client/ingest/get_render_ingests_responses.go +++ /dev/null @@ -1,298 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package ingest - -// 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/taxnexus/lib/api/render/render_models" -) - -// GetRenderIngestsReader is a Reader for the GetRenderIngests structure. -type GetRenderIngestsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetRenderIngestsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetRenderIngestsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetRenderIngestsUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetRenderIngestsForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetRenderIngestsNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetRenderIngestsUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetRenderIngestsInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - - default: - return nil, runtime.NewAPIError("unknown error", response, response.Code()) - } -} - -// NewGetRenderIngestsOK creates a GetRenderIngestsOK with default headers values -func NewGetRenderIngestsOK() *GetRenderIngestsOK { - return &GetRenderIngestsOK{} -} - -/*GetRenderIngestsOK handles this case with default header values. - -Rendered documents response -*/ -type GetRenderIngestsOK struct { - AccessControlAllowOrigin string - - Payload *render_models.DocumentResponse -} - -func (o *GetRenderIngestsOK) Error() string { - return fmt.Sprintf("[GET /ingests][%d] getRenderIngestsOK %+v", 200, o.Payload) -} - -func (o *GetRenderIngestsOK) GetPayload() *render_models.DocumentResponse { - return o.Payload -} - -func (o *GetRenderIngestsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.DocumentResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderIngestsUnauthorized creates a GetRenderIngestsUnauthorized with default headers values -func NewGetRenderIngestsUnauthorized() *GetRenderIngestsUnauthorized { - return &GetRenderIngestsUnauthorized{} -} - -/*GetRenderIngestsUnauthorized handles this case with default header values. - -Access unauthorized, invalid API-KEY was used -*/ -type GetRenderIngestsUnauthorized struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderIngestsUnauthorized) Error() string { - return fmt.Sprintf("[GET /ingests][%d] getRenderIngestsUnauthorized %+v", 401, o.Payload) -} - -func (o *GetRenderIngestsUnauthorized) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderIngestsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderIngestsForbidden creates a GetRenderIngestsForbidden with default headers values -func NewGetRenderIngestsForbidden() *GetRenderIngestsForbidden { - return &GetRenderIngestsForbidden{} -} - -/*GetRenderIngestsForbidden handles this case with default header values. - -Access forbidden, account lacks access -*/ -type GetRenderIngestsForbidden struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderIngestsForbidden) Error() string { - return fmt.Sprintf("[GET /ingests][%d] getRenderIngestsForbidden %+v", 403, o.Payload) -} - -func (o *GetRenderIngestsForbidden) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderIngestsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderIngestsNotFound creates a GetRenderIngestsNotFound with default headers values -func NewGetRenderIngestsNotFound() *GetRenderIngestsNotFound { - return &GetRenderIngestsNotFound{} -} - -/*GetRenderIngestsNotFound handles this case with default header values. - -Resource was not found -*/ -type GetRenderIngestsNotFound struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderIngestsNotFound) Error() string { - return fmt.Sprintf("[GET /ingests][%d] getRenderIngestsNotFound %+v", 404, o.Payload) -} - -func (o *GetRenderIngestsNotFound) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderIngestsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderIngestsUnprocessableEntity creates a GetRenderIngestsUnprocessableEntity with default headers values -func NewGetRenderIngestsUnprocessableEntity() *GetRenderIngestsUnprocessableEntity { - return &GetRenderIngestsUnprocessableEntity{} -} - -/*GetRenderIngestsUnprocessableEntity handles this case with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetRenderIngestsUnprocessableEntity struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderIngestsUnprocessableEntity) Error() string { - return fmt.Sprintf("[GET /ingests][%d] getRenderIngestsUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *GetRenderIngestsUnprocessableEntity) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderIngestsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRenderIngestsInternalServerError creates a GetRenderIngestsInternalServerError with default headers values -func NewGetRenderIngestsInternalServerError() *GetRenderIngestsInternalServerError { - return &GetRenderIngestsInternalServerError{} -} - -/*GetRenderIngestsInternalServerError handles this case with default header values. - -Server Internal Error -*/ -type GetRenderIngestsInternalServerError struct { - AccessControlAllowOrigin string - - Payload *render_models.Error -} - -func (o *GetRenderIngestsInternalServerError) Error() string { - return fmt.Sprintf("[GET /ingests][%d] getRenderIngestsInternalServerError %+v", 500, o.Payload) -} - -func (o *GetRenderIngestsInternalServerError) GetPayload() *render_models.Error { - return o.Payload -} - -func (o *GetRenderIngestsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Access-Control-Allow-Origin - o.AccessControlAllowOrigin = response.GetHeader("Access-Control-Allow-Origin") - - o.Payload = new(render_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/render/render_client/ingest/ingest_client.go b/api/render/render_client/ingest/ingest_client.go deleted file mode 100644 index 6853081..0000000 --- a/api/render/render_client/ingest/ingest_client.go +++ /dev/null @@ -1,79 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// All Code Copyright(c) 2018-2021 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package ingest - -// 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 ingest API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for ingest API -*/ -type Client struct { - transport runtime.ClientTransport - formats strfmt.Registry -} - -// ClientService is the interface for Client methods -type ClientService interface { - GetRenderIngests(params *GetRenderIngestsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenderIngestsOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* - GetRenderIngests generates p d f from an ingest ID - - Generate PDF from a Ingest ID -*/ -func (a *Client) GetRenderIngests(params *GetRenderIngestsParams, authInfo runtime.ClientAuthInfoWriter) (*GetRenderIngestsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetRenderIngestsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "getRenderIngests", - Method: "GET", - PathPattern: "/ingests", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetRenderIngestsReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetRenderIngestsOK) - 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 getRenderIngests: 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/render/render_client/render_client.go b/api/render/render_client/render_client.go index 9e00544..d87c18d 100644 --- a/api/render/render_client/render_client.go +++ b/api/render/render_client/render_client.go @@ -16,8 +16,6 @@ import ( "code.tnxs.net/taxnexus/lib/api/render/render_client/account" "code.tnxs.net/taxnexus/lib/api/render/render_client/cors" - "code.tnxs.net/taxnexus/lib/api/render/render_client/county" - "code.tnxs.net/taxnexus/lib/api/render/render_client/ingest" "code.tnxs.net/taxnexus/lib/api/render/render_client/tax" ) @@ -65,8 +63,6 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *Render { cli.Transport = transport cli.Account = account.New(transport, formats) cli.Cors = cors.New(transport, formats) - cli.County = county.New(transport, formats) - cli.Ingest = ingest.New(transport, formats) cli.Tax = tax.New(transport, formats) return cli } @@ -116,10 +112,6 @@ type Render struct { Cors cors.ClientService - County county.ClientService - - Ingest ingest.ClientService - Tax tax.ClientService Transport runtime.ClientTransport @@ -130,7 +122,5 @@ func (c *Render) SetTransport(transport runtime.ClientTransport) { c.Transport = transport c.Account.SetTransport(transport) c.Cors.SetTransport(transport) - c.County.SetTransport(transport) - c.Ingest.SetTransport(transport) c.Tax.SetTransport(transport) } diff --git a/api/render/render_client/tax/get_render_taxes_responses.go b/api/render/render_client/tax/get_render_taxes_responses.go index 0cd104b..8cd67b3 100644 --- a/api/render/render_client/tax/get_render_taxes_responses.go +++ b/api/render/render_client/tax/get_render_taxes_responses.go @@ -85,7 +85,7 @@ type GetRenderTaxesOK struct { } func (o *GetRenderTaxesOK) Error() string { - return fmt.Sprintf("[GET /taxes][%d] getRenderTaxesOK %+v", 200, o.Payload) + return fmt.Sprintf("[GET /accounts/tax][%d] getRenderTaxesOK %+v", 200, o.Payload) } func (o *GetRenderTaxesOK) GetPayload() *render_models.DocumentResponse { @@ -123,7 +123,7 @@ type GetRenderTaxesUnauthorized struct { } func (o *GetRenderTaxesUnauthorized) Error() string { - return fmt.Sprintf("[GET /taxes][%d] getRenderTaxesUnauthorized %+v", 401, o.Payload) + return fmt.Sprintf("[GET /accounts/tax][%d] getRenderTaxesUnauthorized %+v", 401, o.Payload) } func (o *GetRenderTaxesUnauthorized) GetPayload() *render_models.Error { @@ -161,7 +161,7 @@ type GetRenderTaxesForbidden struct { } func (o *GetRenderTaxesForbidden) Error() string { - return fmt.Sprintf("[GET /taxes][%d] getRenderTaxesForbidden %+v", 403, o.Payload) + return fmt.Sprintf("[GET /accounts/tax][%d] getRenderTaxesForbidden %+v", 403, o.Payload) } func (o *GetRenderTaxesForbidden) GetPayload() *render_models.Error { @@ -199,7 +199,7 @@ type GetRenderTaxesNotFound struct { } func (o *GetRenderTaxesNotFound) Error() string { - return fmt.Sprintf("[GET /taxes][%d] getRenderTaxesNotFound %+v", 404, o.Payload) + return fmt.Sprintf("[GET /accounts/tax][%d] getRenderTaxesNotFound %+v", 404, o.Payload) } func (o *GetRenderTaxesNotFound) GetPayload() *render_models.Error { @@ -237,7 +237,7 @@ type GetRenderTaxesUnprocessableEntity struct { } func (o *GetRenderTaxesUnprocessableEntity) Error() string { - return fmt.Sprintf("[GET /taxes][%d] getRenderTaxesUnprocessableEntity %+v", 422, o.Payload) + return fmt.Sprintf("[GET /accounts/tax][%d] getRenderTaxesUnprocessableEntity %+v", 422, o.Payload) } func (o *GetRenderTaxesUnprocessableEntity) GetPayload() *render_models.Error { @@ -275,7 +275,7 @@ type GetRenderTaxesInternalServerError struct { } func (o *GetRenderTaxesInternalServerError) Error() string { - return fmt.Sprintf("[GET /taxes][%d] getRenderTaxesInternalServerError %+v", 500, o.Payload) + return fmt.Sprintf("[GET /accounts/tax][%d] getRenderTaxesInternalServerError %+v", 500, o.Payload) } func (o *GetRenderTaxesInternalServerError) GetPayload() *render_models.Error { diff --git a/api/render/render_client/tax/tax_client.go b/api/render/render_client/tax/tax_client.go index 6aa5c9b..00295c2 100644 --- a/api/render/render_client/tax/tax_client.go +++ b/api/render/render_client/tax/tax_client.go @@ -37,7 +37,7 @@ type ClientService interface { } /* - GetRenderTaxes taxes summary by account + GetRenderTaxes returns tax return p d f Return a summary tax report for an Account */ @@ -50,7 +50,7 @@ func (a *Client) GetRenderTaxes(params *GetRenderTaxesParams, authInfo runtime.C result, err := a.transport.Submit(&runtime.ClientOperation{ ID: "getRenderTaxes", Method: "GET", - PathPattern: "/taxes", + PathPattern: "/accounts/tax", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, diff --git a/app/meta.go b/app/meta.go index e591c44..a4ff5d0 100644 --- a/app/meta.go +++ b/app/meta.go @@ -35,7 +35,7 @@ func NewResponseMeta() *ResponseMeta { Poffset: 0, Setsize: 1, }, - ServerInfo: "Taxnexus v1.2.7 - Go", + ServerInfo: "Taxnexus v1.3.0 - Go", ServerTimestamp: fmt.Sprint(time.Now().Local()), } } @@ -46,7 +46,7 @@ func NewResponseMetaWithPagination(p *Pagination) *ResponseMeta { Contact: "Contact Taxnexus at https://taxnexus.net/, info@taxnexus.net or +1-510-679-1900", Copyright: "Taxnexus API and all Taxnexus content is Copyright (c) 2018-2020 by Taxnexus, Inc. All Rights Reserved.", //nolint:lll // response text License: "Proprietary - Do Not Copy", - ServerInfo: "Taxnexus v1.2.7 - Go", + ServerInfo: "Taxnexus v1.3.0 - Go", ServerTimestamp: fmt.Sprint(time.Now()), Pagination: p, } diff --git a/swagger/apex-taxnexus.yaml b/swagger/apex-taxnexus.yaml index 3439977..14e5948 100644 --- a/swagger/apex-taxnexus.yaml +++ b/swagger/apex-taxnexus.yaml @@ -1,7 +1,7 @@ swagger: "2.0" info: title: "apex" - version: 1.2.7 + version: 1.3.0 description: "Salesforce Gateway Apex Client" termsOfService: "http://taxnexus.net/terms/" contact: diff --git a/swagger/auth-taxnexus.yaml b/swagger/auth-taxnexus.yaml index 60c6431..ab9008b 100644 --- a/swagger/auth-taxnexus.yaml +++ b/swagger/auth-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: "1.2.7" + version: "1.3.0" title: "auth" description: "Authentication Microservice" termsOfService: "http://taxnexus.net/terms/" diff --git a/swagger/blaze-taxnexus.yaml b/swagger/blaze-taxnexus.yaml index 37a487b..2f8a4a7 100644 --- a/swagger/blaze-taxnexus.yaml +++ b/swagger/blaze-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 contact: email: "noc@taxnexus.net" license: diff --git a/swagger/board-taxnexus.yaml b/swagger/board-taxnexus.yaml index f428ecc..5a37f17 100644 --- a/swagger/board-taxnexus.yaml +++ b/swagger/board-taxnexus.yaml @@ -7,7 +7,7 @@ info: email: noc@taxnexus.net license: name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." - version: 1.2.7 + version: 1.3.0 schemes: - http host: "board.fabric.tnxs.net:8080" diff --git a/swagger/crm-taxnexus.yaml b/swagger/crm-taxnexus.yaml index fd87fee..91cc07a 100644 --- a/swagger/crm-taxnexus.yaml +++ b/swagger/crm-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "crm" description: "Customer Information Microservice" termsOfService: "http://taxnexus.net/terms/" diff --git a/swagger/devops-taxnexus.yaml b/swagger/devops-taxnexus.yaml index 33e942e..52d5d33 100644 --- a/swagger/devops-taxnexus.yaml +++ b/swagger/devops-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "devops" description: "System Operations Microservice" termsOfService: "http://taxnexus.net/terms/" diff --git a/swagger/geo-taxnexus.yaml b/swagger/geo-taxnexus.yaml index 9f55424..699c4ab 100644 --- a/swagger/geo-taxnexus.yaml +++ b/swagger/geo-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "geo" description: "Geographic Microservice" termsOfService: "http://taxnexus.net/terms/" diff --git a/swagger/gov-gw-taxnexus.yaml b/swagger/gov-gw-taxnexus.yaml index 1aae8be..5822764 100644 --- a/swagger/gov-gw-taxnexus.yaml +++ b/swagger/gov-gw-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "gov-gw" description: "Goverment Services Gateway" termsOfService: "http://taxnexus.net/terms/" diff --git a/swagger/ledger-taxnexus.yaml b/swagger/ledger-taxnexus.yaml index 4677582..8f526ab 100644 --- a/swagger/ledger-taxnexus.yaml +++ b/swagger/ledger-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "ledger" description: "Ledger Microservice" termsOfService: "http://taxnexus.net/terms/" diff --git a/swagger/metrc-gw-taxnexus.yaml b/swagger/metrc-gw-taxnexus.yaml index c5ee7b8..5f44524 100644 --- a/swagger/metrc-gw-taxnexus.yaml +++ b/swagger/metrc-gw-taxnexus.yaml @@ -20,7 +20,7 @@ info: name: "Proprietary" termsOfService: "https://www.taxnexus.com/terms/" title: metrc-gw - version: 1.2.7 + version: 1.3.0 consumes: - "application/json" produces: diff --git a/swagger/ops-taxnexus.yaml b/swagger/ops-taxnexus.yaml index fce0877..df92d49 100644 --- a/swagger/ops-taxnexus.yaml +++ b/swagger/ops-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "ops" description: "Taxnexus Finance Microservice" termsOfService: "http://taxnexus.net/terms/" diff --git a/swagger/pdf-taxnexus.yaml b/swagger/pdf-taxnexus.yaml index b9d1200..d73411d 100644 --- a/swagger/pdf-taxnexus.yaml +++ b/swagger/pdf-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "pdf" description: "PDF Delivery" termsOfService: "http://taxnexus.net/terms/" diff --git a/swagger/plex-taxnexus.yaml b/swagger/plex-taxnexus.yaml index 5d74cc9..44586a8 100644 --- a/swagger/plex-taxnexus.yaml +++ b/swagger/plex-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "plex" description: "System Operations Microservice" termsOfService: "http://taxnexus.net/terms/" @@ -684,6 +684,14 @@ definitions: TotalTaxesTotal: format: double type: number + UseTaxRevenue: + items: + format: double + type: number + type: array + UseTaxesRevenueTotal: + format: double + type: number type: object TaxReturnResponse: description: An array of Tax Return Objects diff --git a/swagger/regs-taxnexus.yaml b/swagger/regs-taxnexus.yaml index cb8557f..5b423e0 100644 --- a/swagger/regs-taxnexus.yaml +++ b/swagger/regs-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "regs" description: "Regulatory Microservice" termsOfService: "http://taxnexus.net/terms/" diff --git a/swagger/render-taxnexus.yaml b/swagger/render-taxnexus.yaml index 2916b3c..46a1c13 100644 --- a/swagger/render-taxnexus.yaml +++ b/swagger/render-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: render description: Print Rendering Microservice termsOfService: http://taxnexus.net/terms/ @@ -170,10 +170,10 @@ responses: Cache-Control: type: string paths: - /accounts: + /accounts/iq: get: - description: Generate PDF from an Account ID - operationId: getRenderAccount + description: Generate Taxnexus IQ PDF from an Account ID + operationId: getRenderAccountIQ parameters: - $ref: "#/parameters/accountIdQueryRequired" responses: @@ -196,18 +196,18 @@ paths: - Account options: description: CORS support - operationId: accountOptions + operationId: accountIQOptions responses: "200": $ref: "#/responses/CORSResponse" tags: - cors - /counties: + /accounts/profitloss: get: - description: Generate a County Report PDF - operationId: getRenderCounty + description: Generate Profit and Loss PDF from an Account ID + operationId: getRenderAccountPandL parameters: - - $ref: "#/parameters/countyIdRequiredQuery" + - $ref: "#/parameters/accountIdQueryRequired" responses: "200": $ref: "#/responses/DocumentResponse" @@ -223,50 +223,18 @@ paths: $ref: "#/responses/ServerError" security: - ApiKeyAuth: [] - summary: Generate PDF from a County ID + summary: Generate PDF from an Account ID tags: - - County + - Account options: description: CORS support - operationId: countyOptions + operationId: accountPandLOptions responses: "200": $ref: "#/responses/CORSResponse" tags: - cors - /ingests: - get: - description: Generate PDF from a Ingest ID - operationId: getRenderIngests - parameters: - - $ref: "#/parameters/ingestIdQueryRequired" - responses: - "200": - $ref: "#/responses/DocumentResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Generate PDF from an Ingest ID - tags: - - Ingest - options: - description: CORS support - operationId: ingestOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - /taxes: + /accounts/tax: get: description: Return a summary tax report for an Account operationId: getRenderTaxes @@ -290,7 +258,7 @@ paths: $ref: "#/responses/ServerError" security: - ApiKeyAuth: [] - summary: Tax Summary by Account + summary: Return Tax Return PDF tags: - Tax options: diff --git a/swagger/sf-gate-taxnexus.yaml b/swagger/sf-gate-taxnexus.yaml index 009c267..9806141 100644 --- a/swagger/sf-gate-taxnexus.yaml +++ b/swagger/sf-gate-taxnexus.yaml @@ -1,7 +1,7 @@ swagger: "2.0" info: title: "sf-gate" - version: 1.2.7 + version: 1.3.0 description: "Salesforce Gateway Microservice" termsOfService: "http://taxnexus.net/terms/" contact: diff --git a/swagger/stash-taxnexus.yaml b/swagger/stash-taxnexus.yaml index 1a9c2b1..659f6df 100644 --- a/swagger/stash-taxnexus.yaml +++ b/swagger/stash-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "stash" description: "PDF Storage Microservice" termsOfService: "http://taxnexus.net/terms/" diff --git a/swagger/vendor-gw-taxnexus.yaml b/swagger/vendor-gw-taxnexus.yaml index ff547fb..796759e 100644 --- a/swagger/vendor-gw-taxnexus.yaml +++ b/swagger/vendor-gw-taxnexus.yaml @@ -11,7 +11,7 @@ basePath: "/v1" schemes: - "http" info: - version: 1.2.7 + version: 1.3.0 title: "vendor-gw" contact: email: "noc@taxnexus.net" diff --git a/swagger/workflow-taxnexus.yaml b/swagger/workflow-taxnexus.yaml index 02f690d..b24b189 100644 --- a/swagger/workflow-taxnexus.yaml +++ b/swagger/workflow-taxnexus.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 1.2.7 + version: 1.3.0 title: "workflow" description: "Workflow Microservice" termsOfService: "http://taxnexus.net/terms/"