v0.2.9 v0.2.9
Vernon Keenan 2021-02-08 15:28:46 -08:00
parent f8f1ee34ea
commit 60a4cbba61
47 changed files with 1263 additions and 2095 deletions

View File

@ -231,6 +231,12 @@ type TaxReturnPanel struct {
// total taxes total // total taxes total
TotalTaxesTotal float64 `json:"TotalTaxesTotal,omitempty"` 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 // Validate validates this tax return panel

View File

@ -31,31 +31,33 @@ type Client struct {
// ClientService is the interface for Client methods // ClientService is the interface for Client methods
type ClientService interface { 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) 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 // TODO: Validate the params before sending
if params == nil { if params == nil {
params = NewGetRenderAccountParams() params = NewGetRenderAccountIQParams()
} }
result, err := a.transport.Submit(&runtime.ClientOperation{ result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "getRenderAccount", ID: "getRenderAccountIQ",
Method: "GET", Method: "GET",
PathPattern: "/accounts", PathPattern: "/accounts/iq",
ProducesMediaTypes: []string{"application/json"}, ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"}, Schemes: []string{"http"},
Params: params, Params: params,
Reader: &GetRenderAccountReader{formats: a.formats}, Reader: &GetRenderAccountIQReader{formats: a.formats},
AuthInfo: authInfo, AuthInfo: authInfo,
Context: params.Context, Context: params.Context,
Client: params.HTTPClient, Client: params.HTTPClient,
@ -63,13 +65,50 @@ func (a *Client) GetRenderAccount(params *GetRenderAccountParams, authInfo runti
if err != nil { if err != nil {
return nil, err return nil, err
} }
success, ok := result.(*GetRenderAccountOK) success, ok := result.(*GetRenderAccountIQOK)
if ok { if ok {
return success, nil return success, nil
} }
// unexpected success response // unexpected success response
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue // 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) panic(msg)
} }

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -16,16 +16,16 @@ import (
"github.com/go-openapi/strfmt" "github.com/go-openapi/strfmt"
) )
// AccountOptionsReader is a Reader for the AccountOptions structure. // AccountIQOptionsReader is a Reader for the AccountIQOptions structure.
type AccountOptionsReader struct { type AccountIQOptionsReader struct {
formats strfmt.Registry formats strfmt.Registry
} }
// ReadResponse reads a server response into the received o. // 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() { switch response.Code() {
case 200: case 200:
result := NewAccountOptionsOK() result := NewAccountIQOptionsOK()
if err := result.readResponse(response, consumer, o.formats); err != nil { if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err return nil, err
} }
@ -36,16 +36,16 @@ func (o *AccountOptionsReader) ReadResponse(response runtime.ClientResponse, con
} }
} }
// NewAccountOptionsOK creates a AccountOptionsOK with default headers values // NewAccountIQOptionsOK creates a AccountIQOptionsOK with default headers values
func NewAccountOptionsOK() *AccountOptionsOK { func NewAccountIQOptionsOK() *AccountIQOptionsOK {
return &AccountOptionsOK{} return &AccountIQOptionsOK{}
} }
/*AccountOptionsOK handles this case with default header values. /*AccountIQOptionsOK handles this case with default header values.
CORS OPTIONS response CORS OPTIONS response
*/ */
type AccountOptionsOK struct { type AccountIQOptionsOK struct {
AccessControlAllowCredentials string AccessControlAllowCredentials string
AccessControlAllowHeaders string AccessControlAllowHeaders string
@ -61,11 +61,11 @@ type AccountOptionsOK struct {
CacheControl string CacheControl string
} }
func (o *AccountOptionsOK) Error() string { func (o *AccountIQOptionsOK) Error() string {
return fmt.Sprintf("[OPTIONS /accounts][%d] accountOptionsOK ", 200) 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 // response header Access-Control-Allow-Credentials
o.AccessControlAllowCredentials = response.GetHeader("Access-Control-Allow-Credentials") o.AccessControlAllowCredentials = response.GetHeader("Access-Control-Allow-Credentials")

View File

@ -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
}

View File

@ -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
}

View File

@ -16,16 +16,16 @@ import (
"github.com/go-openapi/strfmt" "github.com/go-openapi/strfmt"
) )
// CountyOptionsReader is a Reader for the CountyOptions structure. // AccountPandLOptionsReader is a Reader for the AccountPandLOptions structure.
type CountyOptionsReader struct { type AccountPandLOptionsReader struct {
formats strfmt.Registry formats strfmt.Registry
} }
// ReadResponse reads a server response into the received o. // 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() { switch response.Code() {
case 200: case 200:
result := NewCountyOptionsOK() result := NewAccountPandLOptionsOK()
if err := result.readResponse(response, consumer, o.formats); err != nil { if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err return nil, err
} }
@ -36,16 +36,16 @@ func (o *CountyOptionsReader) ReadResponse(response runtime.ClientResponse, cons
} }
} }
// NewCountyOptionsOK creates a CountyOptionsOK with default headers values // NewAccountPandLOptionsOK creates a AccountPandLOptionsOK with default headers values
func NewCountyOptionsOK() *CountyOptionsOK { func NewAccountPandLOptionsOK() *AccountPandLOptionsOK {
return &CountyOptionsOK{} return &AccountPandLOptionsOK{}
} }
/*CountyOptionsOK handles this case with default header values. /*AccountPandLOptionsOK handles this case with default header values.
CORS OPTIONS response CORS OPTIONS response
*/ */
type CountyOptionsOK struct { type AccountPandLOptionsOK struct {
AccessControlAllowCredentials string AccessControlAllowCredentials string
AccessControlAllowHeaders string AccessControlAllowHeaders string
@ -61,11 +61,11 @@ type CountyOptionsOK struct {
CacheControl string CacheControl string
} }
func (o *CountyOptionsOK) Error() string { func (o *AccountPandLOptionsOK) Error() string {
return fmt.Sprintf("[OPTIONS /counties][%d] countyOptionsOK ", 200) 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 // response header Access-Control-Allow-Credentials
o.AccessControlAllowCredentials = response.GetHeader("Access-Control-Allow-Credentials") o.AccessControlAllowCredentials = response.GetHeader("Access-Control-Allow-Credentials")

View File

@ -31,11 +31,9 @@ type Client struct {
// ClientService is the interface for Client methods // ClientService is the interface for Client methods
type ClientService interface { type ClientService interface {
AccountOptions(params *AccountOptionsParams) (*AccountOptionsOK, error) AccountIQOptions(params *AccountIQOptionsParams) (*AccountIQOptionsOK, error)
CountyOptions(params *CountyOptionsParams) (*CountyOptionsOK, error) AccountPandLOptions(params *AccountPandLOptionsParams) (*AccountPandLOptionsOK, error)
IngestOptions(params *IngestOptionsParams) (*IngestOptionsOK, error)
TaxOptions(params *TaxOptionsParams) (*TaxOptionsOK, 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 // TODO: Validate the params before sending
if params == nil { if params == nil {
params = NewAccountOptionsParams() params = NewAccountIQOptionsParams()
} }
result, err := a.transport.Submit(&runtime.ClientOperation{ result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "accountOptions", ID: "accountIQOptions",
Method: "OPTIONS", Method: "OPTIONS",
PathPattern: "/accounts", PathPattern: "/accounts/iq",
ProducesMediaTypes: []string{"application/json"}, ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"}, Schemes: []string{"http"},
Params: params, Params: params,
Reader: &AccountOptionsReader{formats: a.formats}, Reader: &AccountIQOptionsReader{formats: a.formats},
Context: params.Context, Context: params.Context,
Client: params.HTTPClient, Client: params.HTTPClient,
}) })
if err != nil { if err != nil {
return nil, err return nil, err
} }
success, ok := result.(*AccountOptionsOK) success, ok := result.(*AccountIQOptionsOK)
if ok { if ok {
return success, nil return success, nil
} }
// unexpected success response // unexpected success response
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue // 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) 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 // TODO: Validate the params before sending
if params == nil { if params == nil {
params = NewCountyOptionsParams() params = NewAccountPandLOptionsParams()
} }
result, err := a.transport.Submit(&runtime.ClientOperation{ result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "countyOptions", ID: "accountPandLOptions",
Method: "OPTIONS", Method: "OPTIONS",
PathPattern: "/counties", PathPattern: "/accounts/profitloss",
ProducesMediaTypes: []string{"application/json"}, ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"}, Schemes: []string{"http"},
Params: params, Params: params,
Reader: &CountyOptionsReader{formats: a.formats}, Reader: &AccountPandLOptionsReader{formats: a.formats},
Context: params.Context, Context: params.Context,
Client: params.HTTPClient, Client: params.HTTPClient,
}) })
if err != nil { if err != nil {
return nil, err return nil, err
} }
success, ok := result.(*CountyOptionsOK) success, ok := result.(*AccountPandLOptionsOK)
if ok { if ok {
return success, nil return success, nil
} }
// unexpected success response // unexpected success response
// safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue // 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) 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)
}
/*
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)
panic(msg) panic(msg)
} }
@ -156,7 +120,7 @@ func (a *Client) TaxOptions(params *TaxOptionsParams) (*TaxOptionsOK, error) {
result, err := a.transport.Submit(&runtime.ClientOperation{ result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "taxOptions", ID: "taxOptions",
Method: "OPTIONS", Method: "OPTIONS",
PathPattern: "/taxes", PathPattern: "/accounts/tax",
ProducesMediaTypes: []string{"application/json"}, ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"}, Schemes: []string{"http"},

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -62,7 +62,7 @@ type TaxOptionsOK struct {
} }
func (o *TaxOptionsOK) Error() string { 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 { func (o *TaxOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -16,8 +16,6 @@ import (
"code.tnxs.net/taxnexus/lib/api/render/render_client/account" "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/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" "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.Transport = transport
cli.Account = account.New(transport, formats) cli.Account = account.New(transport, formats)
cli.Cors = cors.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) cli.Tax = tax.New(transport, formats)
return cli return cli
} }
@ -116,10 +112,6 @@ type Render struct {
Cors cors.ClientService Cors cors.ClientService
County county.ClientService
Ingest ingest.ClientService
Tax tax.ClientService Tax tax.ClientService
Transport runtime.ClientTransport Transport runtime.ClientTransport
@ -130,7 +122,5 @@ func (c *Render) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport c.Transport = transport
c.Account.SetTransport(transport) c.Account.SetTransport(transport)
c.Cors.SetTransport(transport) c.Cors.SetTransport(transport)
c.County.SetTransport(transport)
c.Ingest.SetTransport(transport)
c.Tax.SetTransport(transport) c.Tax.SetTransport(transport)
} }

View File

@ -85,7 +85,7 @@ type GetRenderTaxesOK struct {
} }
func (o *GetRenderTaxesOK) Error() string { 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 { func (o *GetRenderTaxesOK) GetPayload() *render_models.DocumentResponse {
@ -123,7 +123,7 @@ type GetRenderTaxesUnauthorized struct {
} }
func (o *GetRenderTaxesUnauthorized) Error() string { 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 { func (o *GetRenderTaxesUnauthorized) GetPayload() *render_models.Error {
@ -161,7 +161,7 @@ type GetRenderTaxesForbidden struct {
} }
func (o *GetRenderTaxesForbidden) Error() string { 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 { func (o *GetRenderTaxesForbidden) GetPayload() *render_models.Error {
@ -199,7 +199,7 @@ type GetRenderTaxesNotFound struct {
} }
func (o *GetRenderTaxesNotFound) Error() string { 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 { func (o *GetRenderTaxesNotFound) GetPayload() *render_models.Error {
@ -237,7 +237,7 @@ type GetRenderTaxesUnprocessableEntity struct {
} }
func (o *GetRenderTaxesUnprocessableEntity) Error() string { 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 { func (o *GetRenderTaxesUnprocessableEntity) GetPayload() *render_models.Error {
@ -275,7 +275,7 @@ type GetRenderTaxesInternalServerError struct {
} }
func (o *GetRenderTaxesInternalServerError) Error() string { 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 { func (o *GetRenderTaxesInternalServerError) GetPayload() *render_models.Error {

View File

@ -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 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{ result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "getRenderTaxes", ID: "getRenderTaxes",
Method: "GET", Method: "GET",
PathPattern: "/taxes", PathPattern: "/accounts/tax",
ProducesMediaTypes: []string{"application/json"}, ProducesMediaTypes: []string{"application/json"},
ConsumesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"},
Schemes: []string{"http"}, Schemes: []string{"http"},

View File

@ -35,7 +35,7 @@ func NewResponseMeta() *ResponseMeta {
Poffset: 0, Poffset: 0,
Setsize: 1, Setsize: 1,
}, },
ServerInfo: "Taxnexus v1.2.7 - Go", ServerInfo: "Taxnexus v1.3.0 - Go",
ServerTimestamp: fmt.Sprint(time.Now().Local()), 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", 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 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", License: "Proprietary - Do Not Copy",
ServerInfo: "Taxnexus v1.2.7 - Go", ServerInfo: "Taxnexus v1.3.0 - Go",
ServerTimestamp: fmt.Sprint(time.Now()), ServerTimestamp: fmt.Sprint(time.Now()),
Pagination: p, Pagination: p,
} }

View File

@ -1,7 +1,7 @@
swagger: "2.0" swagger: "2.0"
info: info:
title: "apex" title: "apex"
version: 1.2.7 version: 1.3.0
description: "Salesforce Gateway Apex Client" description: "Salesforce Gateway Apex Client"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"
contact: contact:

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: "1.2.7" version: "1.3.0"
title: "auth" title: "auth"
description: "Authentication Microservice" description: "Authentication Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
contact: contact:
email: "noc@taxnexus.net" email: "noc@taxnexus.net"
license: license:

View File

@ -7,7 +7,7 @@ info:
email: noc@taxnexus.net email: noc@taxnexus.net
license: license:
name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc."
version: 1.2.7 version: 1.3.0
schemes: schemes:
- http - http
host: "board.fabric.tnxs.net:8080" host: "board.fabric.tnxs.net:8080"

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "crm" title: "crm"
description: "Customer Information Microservice" description: "Customer Information Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "devops" title: "devops"
description: "System Operations Microservice" description: "System Operations Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "geo" title: "geo"
description: "Geographic Microservice" description: "Geographic Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "gov-gw" title: "gov-gw"
description: "Goverment Services Gateway" description: "Goverment Services Gateway"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "ledger" title: "ledger"
description: "Ledger Microservice" description: "Ledger Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"

View File

@ -20,7 +20,7 @@ info:
name: "Proprietary" name: "Proprietary"
termsOfService: "https://www.taxnexus.com/terms/" termsOfService: "https://www.taxnexus.com/terms/"
title: metrc-gw title: metrc-gw
version: 1.2.7 version: 1.3.0
consumes: consumes:
- "application/json" - "application/json"
produces: produces:

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "ops" title: "ops"
description: "Taxnexus Finance Microservice" description: "Taxnexus Finance Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "pdf" title: "pdf"
description: "PDF Delivery" description: "PDF Delivery"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "plex" title: "plex"
description: "System Operations Microservice" description: "System Operations Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"
@ -684,6 +684,14 @@ definitions:
TotalTaxesTotal: TotalTaxesTotal:
format: double format: double
type: number type: number
UseTaxRevenue:
items:
format: double
type: number
type: array
UseTaxesRevenueTotal:
format: double
type: number
type: object type: object
TaxReturnResponse: TaxReturnResponse:
description: An array of Tax Return Objects description: An array of Tax Return Objects

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "regs" title: "regs"
description: "Regulatory Microservice" description: "Regulatory Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: render title: render
description: Print Rendering Microservice description: Print Rendering Microservice
termsOfService: http://taxnexus.net/terms/ termsOfService: http://taxnexus.net/terms/
@ -170,10 +170,10 @@ responses:
Cache-Control: Cache-Control:
type: string type: string
paths: paths:
/accounts: /accounts/iq:
get: get:
description: Generate PDF from an Account ID description: Generate Taxnexus IQ PDF from an Account ID
operationId: getRenderAccount operationId: getRenderAccountIQ
parameters: parameters:
- $ref: "#/parameters/accountIdQueryRequired" - $ref: "#/parameters/accountIdQueryRequired"
responses: responses:
@ -196,18 +196,18 @@ paths:
- Account - Account
options: options:
description: CORS support description: CORS support
operationId: accountOptions operationId: accountIQOptions
responses: responses:
"200": "200":
$ref: "#/responses/CORSResponse" $ref: "#/responses/CORSResponse"
tags: tags:
- cors - cors
/counties: /accounts/profitloss:
get: get:
description: Generate a County Report PDF description: Generate Profit and Loss PDF from an Account ID
operationId: getRenderCounty operationId: getRenderAccountPandL
parameters: parameters:
- $ref: "#/parameters/countyIdRequiredQuery" - $ref: "#/parameters/accountIdQueryRequired"
responses: responses:
"200": "200":
$ref: "#/responses/DocumentResponse" $ref: "#/responses/DocumentResponse"
@ -223,50 +223,18 @@ paths:
$ref: "#/responses/ServerError" $ref: "#/responses/ServerError"
security: security:
- ApiKeyAuth: [] - ApiKeyAuth: []
summary: Generate PDF from a County ID summary: Generate PDF from an Account ID
tags: tags:
- County - Account
options: options:
description: CORS support description: CORS support
operationId: countyOptions operationId: accountPandLOptions
responses: responses:
"200": "200":
$ref: "#/responses/CORSResponse" $ref: "#/responses/CORSResponse"
tags: tags:
- cors - cors
/ingests: /accounts/tax:
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:
get: get:
description: Return a summary tax report for an Account description: Return a summary tax report for an Account
operationId: getRenderTaxes operationId: getRenderTaxes
@ -290,7 +258,7 @@ paths:
$ref: "#/responses/ServerError" $ref: "#/responses/ServerError"
security: security:
- ApiKeyAuth: [] - ApiKeyAuth: []
summary: Tax Summary by Account summary: Return Tax Return PDF
tags: tags:
- Tax - Tax
options: options:

View File

@ -1,7 +1,7 @@
swagger: "2.0" swagger: "2.0"
info: info:
title: "sf-gate" title: "sf-gate"
version: 1.2.7 version: 1.3.0
description: "Salesforce Gateway Microservice" description: "Salesforce Gateway Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"
contact: contact:

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "stash" title: "stash"
description: "PDF Storage Microservice" description: "PDF Storage Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"

View File

@ -11,7 +11,7 @@ basePath: "/v1"
schemes: schemes:
- "http" - "http"
info: info:
version: 1.2.7 version: 1.3.0
title: "vendor-gw" title: "vendor-gw"
contact: contact:
email: "noc@taxnexus.net" email: "noc@taxnexus.net"

View File

@ -1,6 +1,6 @@
swagger: "2.0" swagger: "2.0"
info: info:
version: 1.2.7 version: 1.3.0
title: "workflow" title: "workflow"
description: "Workflow Microservice" description: "Workflow Microservice"
termsOfService: "http://taxnexus.net/terms/" termsOfService: "http://taxnexus.net/terms/"