mirror of https://github.com/vernonkeenan/lib
parent
c61c62ad1a
commit
400b81060a
|
@ -0,0 +1,9 @@
|
|||
Copyright (c) 2012-2022, Taxnexus, Inc. All rights reserved.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
14
Makefile
14
Makefile
|
@ -14,7 +14,6 @@ swagger:
|
|||
cp ../stash/swagger/stash-vernonkeenan.yaml ./swagger
|
||||
cp ../sf-gate/swagger/sf-gate-vernonkeenan.yaml ./swagger
|
||||
cp ../research/swagger/research-vernonkeenan.yaml ./swagger
|
||||
cp ../workflow/swagger/workflow-vernonkeenan.yaml ./swagger
|
||||
#
|
||||
rm -rf api
|
||||
#
|
||||
|
@ -107,16 +106,3 @@ swagger:
|
|||
--client-package=research-client \
|
||||
--model-package=research-models \
|
||||
--principal=app.User
|
||||
#
|
||||
# generate workflow client
|
||||
#
|
||||
mkdir api/workflow
|
||||
swagger-new generate client \
|
||||
--log-output=./swagger/logs/generate-workflow-client.log \
|
||||
--copyright-file=./build/COPYRIGHT \
|
||||
--name=workflow \
|
||||
--spec=./swagger/workflow-vernonkeenan.yaml \
|
||||
--target=./api/workflow \
|
||||
--client-package=workflow-client \
|
||||
--model-package=workflow-models \
|
||||
--principal=app.User
|
||||
|
|
|
@ -25,7 +25,7 @@ type Account struct {
|
|||
// Account Number
|
||||
AccountNumber string `json:"AccountNumber,omitempty"`
|
||||
|
||||
// The marketing orgin of this account
|
||||
// The marketing origin of this account
|
||||
AccountSource string `json:"AccountSource,omitempty"`
|
||||
|
||||
// Active
|
||||
|
@ -233,7 +233,7 @@ type Account struct {
|
|||
ShippingCensusTract string `json:"ShippingCensusTract,omitempty"`
|
||||
|
||||
// Shipping Contact ID
|
||||
ShippingConactID string `json:"ShippingConactID,omitempty"`
|
||||
ShippingContactID string `json:"ShippingContactID,omitempty"`
|
||||
|
||||
// Shipping County
|
||||
ShippingCounty string `json:"ShippingCounty,omitempty"`
|
||||
|
|
|
@ -80,7 +80,7 @@ type AccountBasic struct {
|
|||
ShippingAddress *Address `json:"ShippingAddress,omitempty"`
|
||||
|
||||
// Contact ID
|
||||
ShippingConactID string `json:"ShippingConactID,omitempty"`
|
||||
ShippingContactID string `json:"ShippingContactID,omitempty"`
|
||||
|
||||
// Taxpayer Location Designation
|
||||
Site string `json:"Site,omitempty"`
|
||||
|
|
|
@ -1,86 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package app_log
|
||||
|
||||
// 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 app log API client.
|
||||
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
|
||||
return &Client{transport: transport, formats: formats}
|
||||
}
|
||||
|
||||
/*
|
||||
Client for app log API
|
||||
*/
|
||||
type Client struct {
|
||||
transport runtime.ClientTransport
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ClientOption is the option for Client methods
|
||||
type ClientOption func(*runtime.ClientOperation)
|
||||
|
||||
// ClientService is the interface for Client methods
|
||||
type ClientService interface {
|
||||
PostAppLogs(params *PostAppLogsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAppLogsOK, error)
|
||||
|
||||
SetTransport(transport runtime.ClientTransport)
|
||||
}
|
||||
|
||||
/*
|
||||
PostAppLogs posts app log messages
|
||||
|
||||
Insert app log messages into workflow storage
|
||||
*/
|
||||
func (a *Client) PostAppLogs(params *PostAppLogsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAppLogsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewPostAppLogsParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "postAppLogs",
|
||||
Method: "POST",
|
||||
PathPattern: "/applogs",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &PostAppLogsReader{formats: a.formats},
|
||||
AuthInfo: authInfo,
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*PostAppLogsOK)
|
||||
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 postAppLogs: 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
|
||||
}
|
|
@ -1,155 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package app_log
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime"
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_models"
|
||||
)
|
||||
|
||||
// NewPostAppLogsParams creates a new PostAppLogsParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewPostAppLogsParams() *PostAppLogsParams {
|
||||
return &PostAppLogsParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostAppLogsParamsWithTimeout creates a new PostAppLogsParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewPostAppLogsParamsWithTimeout(timeout time.Duration) *PostAppLogsParams {
|
||||
return &PostAppLogsParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostAppLogsParamsWithContext creates a new PostAppLogsParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewPostAppLogsParamsWithContext(ctx context.Context) *PostAppLogsParams {
|
||||
return &PostAppLogsParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostAppLogsParamsWithHTTPClient creates a new PostAppLogsParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewPostAppLogsParamsWithHTTPClient(client *http.Client) *PostAppLogsParams {
|
||||
return &PostAppLogsParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/* PostAppLogsParams contains all the parameters to send to the API endpoint
|
||||
for the post app logs operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostAppLogsParams struct {
|
||||
|
||||
/* AppLogRequest.
|
||||
|
||||
An array of new AppLog records
|
||||
*/
|
||||
AppLogRequest *workflow_models.AppLogRequest
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the post app logs params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostAppLogsParams) WithDefaults() *PostAppLogsParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the post app logs params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostAppLogsParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the post app logs params
|
||||
func (o *PostAppLogsParams) WithTimeout(timeout time.Duration) *PostAppLogsParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the post app logs params
|
||||
func (o *PostAppLogsParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the post app logs params
|
||||
func (o *PostAppLogsParams) WithContext(ctx context.Context) *PostAppLogsParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the post app logs params
|
||||
func (o *PostAppLogsParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the post app logs params
|
||||
func (o *PostAppLogsParams) WithHTTPClient(client *http.Client) *PostAppLogsParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the post app logs params
|
||||
func (o *PostAppLogsParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WithAppLogRequest adds the appLogRequest to the post app logs params
|
||||
func (o *PostAppLogsParams) WithAppLogRequest(appLogRequest *workflow_models.AppLogRequest) *PostAppLogsParams {
|
||||
o.SetAppLogRequest(appLogRequest)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetAppLogRequest adds the appLogRequest to the post app logs params
|
||||
func (o *PostAppLogsParams) SetAppLogRequest(appLogRequest *workflow_models.AppLogRequest) {
|
||||
o.AppLogRequest = appLogRequest
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *PostAppLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
if err := r.SetTimeout(o.timeout); err != nil {
|
||||
return err
|
||||
}
|
||||
var res []error
|
||||
if o.AppLogRequest != nil {
|
||||
if err := r.SetBodyParam(o.AppLogRequest); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
|
@ -1,315 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package app_log
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_models"
|
||||
)
|
||||
|
||||
// PostAppLogsReader is a Reader for the PostAppLogs structure.
|
||||
type PostAppLogsReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *PostAppLogsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 200:
|
||||
result := NewPostAppLogsOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
case 401:
|
||||
result := NewPostAppLogsUnauthorized()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 403:
|
||||
result := NewPostAppLogsForbidden()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 404:
|
||||
result := NewPostAppLogsNotFound()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 422:
|
||||
result := NewPostAppLogsUnprocessableEntity()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 500:
|
||||
result := NewPostAppLogsInternalServerError()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
default:
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostAppLogsOK creates a PostAppLogsOK with default headers values
|
||||
func NewPostAppLogsOK() *PostAppLogsOK {
|
||||
return &PostAppLogsOK{}
|
||||
}
|
||||
|
||||
/* PostAppLogsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Array of AppLogs
|
||||
*/
|
||||
type PostAppLogsOK struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.AppLogResponse
|
||||
}
|
||||
|
||||
func (o *PostAppLogsOK) Error() string {
|
||||
return fmt.Sprintf("[POST /applogs][%d] postAppLogsOK %+v", 200, o.Payload)
|
||||
}
|
||||
func (o *PostAppLogsOK) GetPayload() *workflow_models.AppLogResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostAppLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.AppLogResponse)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostAppLogsUnauthorized creates a PostAppLogsUnauthorized with default headers values
|
||||
func NewPostAppLogsUnauthorized() *PostAppLogsUnauthorized {
|
||||
return &PostAppLogsUnauthorized{}
|
||||
}
|
||||
|
||||
/* PostAppLogsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
type PostAppLogsUnauthorized struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostAppLogsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[POST /applogs][%d] postAppLogsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
func (o *PostAppLogsUnauthorized) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostAppLogsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostAppLogsForbidden creates a PostAppLogsForbidden with default headers values
|
||||
func NewPostAppLogsForbidden() *PostAppLogsForbidden {
|
||||
return &PostAppLogsForbidden{}
|
||||
}
|
||||
|
||||
/* PostAppLogsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
type PostAppLogsForbidden struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostAppLogsForbidden) Error() string {
|
||||
return fmt.Sprintf("[POST /applogs][%d] postAppLogsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
func (o *PostAppLogsForbidden) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostAppLogsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostAppLogsNotFound creates a PostAppLogsNotFound with default headers values
|
||||
func NewPostAppLogsNotFound() *PostAppLogsNotFound {
|
||||
return &PostAppLogsNotFound{}
|
||||
}
|
||||
|
||||
/* PostAppLogsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
type PostAppLogsNotFound struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostAppLogsNotFound) Error() string {
|
||||
return fmt.Sprintf("[POST /applogs][%d] postAppLogsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
func (o *PostAppLogsNotFound) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostAppLogsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostAppLogsUnprocessableEntity creates a PostAppLogsUnprocessableEntity with default headers values
|
||||
func NewPostAppLogsUnprocessableEntity() *PostAppLogsUnprocessableEntity {
|
||||
return &PostAppLogsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PostAppLogsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
type PostAppLogsUnprocessableEntity struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostAppLogsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[POST /applogs][%d] postAppLogsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
func (o *PostAppLogsUnprocessableEntity) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostAppLogsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostAppLogsInternalServerError creates a PostAppLogsInternalServerError with default headers values
|
||||
func NewPostAppLogsInternalServerError() *PostAppLogsInternalServerError {
|
||||
return &PostAppLogsInternalServerError{}
|
||||
}
|
||||
|
||||
/* PostAppLogsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
type PostAppLogsInternalServerError struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostAppLogsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[POST /applogs][%d] postAppLogsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
func (o *PostAppLogsInternalServerError) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostAppLogsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
|
@ -1,130 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package 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"
|
||||
)
|
||||
|
||||
// NewAppLogOptionsParams creates a new AppLogOptionsParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewAppLogOptionsParams() *AppLogOptionsParams {
|
||||
return &AppLogOptionsParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewAppLogOptionsParamsWithTimeout creates a new AppLogOptionsParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewAppLogOptionsParamsWithTimeout(timeout time.Duration) *AppLogOptionsParams {
|
||||
return &AppLogOptionsParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewAppLogOptionsParamsWithContext creates a new AppLogOptionsParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewAppLogOptionsParamsWithContext(ctx context.Context) *AppLogOptionsParams {
|
||||
return &AppLogOptionsParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewAppLogOptionsParamsWithHTTPClient creates a new AppLogOptionsParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewAppLogOptionsParamsWithHTTPClient(client *http.Client) *AppLogOptionsParams {
|
||||
return &AppLogOptionsParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/* AppLogOptionsParams contains all the parameters to send to the API endpoint
|
||||
for the app log options operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type AppLogOptionsParams struct {
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the app log options params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *AppLogOptionsParams) WithDefaults() *AppLogOptionsParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the app log options params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *AppLogOptionsParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the app log options params
|
||||
func (o *AppLogOptionsParams) WithTimeout(timeout time.Duration) *AppLogOptionsParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the app log options params
|
||||
func (o *AppLogOptionsParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the app log options params
|
||||
func (o *AppLogOptionsParams) WithContext(ctx context.Context) *AppLogOptionsParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the app log options params
|
||||
func (o *AppLogOptionsParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the app log options params
|
||||
func (o *AppLogOptionsParams) WithHTTPClient(client *http.Client) *AppLogOptionsParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the app log options params
|
||||
func (o *AppLogOptionsParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *AppLogOptionsParams) 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
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package 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"
|
||||
)
|
||||
|
||||
// AppLogOptionsReader is a Reader for the AppLogOptions structure.
|
||||
type AppLogOptionsReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *AppLogOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 200:
|
||||
result := NewAppLogOptionsOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
default:
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewAppLogOptionsOK creates a AppLogOptionsOK with default headers values
|
||||
func NewAppLogOptionsOK() *AppLogOptionsOK {
|
||||
return &AppLogOptionsOK{}
|
||||
}
|
||||
|
||||
/* AppLogOptionsOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
type AppLogOptionsOK struct {
|
||||
AccessControlAllowCredentials string
|
||||
AccessControlAllowHeaders string
|
||||
AccessControlAllowMethods string
|
||||
AccessControlAllowOrigin string
|
||||
AccessControlExposeHeaders string
|
||||
AccessControlMaxAge string
|
||||
CacheControl string
|
||||
}
|
||||
|
||||
func (o *AppLogOptionsOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /applogs][%d] appLogOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *AppLogOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials")
|
||||
|
||||
if hdrAccessControlAllowCredentials != "" {
|
||||
o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Headers
|
||||
hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers")
|
||||
|
||||
if hdrAccessControlAllowHeaders != "" {
|
||||
o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Methods
|
||||
hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods")
|
||||
|
||||
if hdrAccessControlAllowMethods != "" {
|
||||
o.AccessControlAllowMethods = hdrAccessControlAllowMethods
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Expose-Headers
|
||||
hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers")
|
||||
|
||||
if hdrAccessControlExposeHeaders != "" {
|
||||
o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Max-Age
|
||||
hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age")
|
||||
|
||||
if hdrAccessControlMaxAge != "" {
|
||||
o.AccessControlMaxAge = hdrAccessControlMaxAge
|
||||
}
|
||||
|
||||
// hydrates response header Cache-Control
|
||||
hdrCacheControl := response.GetHeader("Cache-Control")
|
||||
|
||||
if hdrCacheControl != "" {
|
||||
o.CacheControl = hdrCacheControl
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
|
@ -1,203 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package 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"
|
||||
)
|
||||
|
||||
// New creates a new cors API client.
|
||||
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
|
||||
return &Client{transport: transport, formats: formats}
|
||||
}
|
||||
|
||||
/*
|
||||
Client for cors API
|
||||
*/
|
||||
type Client struct {
|
||||
transport runtime.ClientTransport
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ClientOption is the option for Client methods
|
||||
type ClientOption func(*runtime.ClientOperation)
|
||||
|
||||
// ClientService is the interface for Client methods
|
||||
type ClientService interface {
|
||||
AppLogOptions(params *AppLogOptionsParams, opts ...ClientOption) (*AppLogOptionsOK, error)
|
||||
|
||||
EmailMessageOptions(params *EmailMessageOptionsParams, opts ...ClientOption) (*EmailMessageOptionsOK, error)
|
||||
|
||||
OutgoingEmailMessageOptions(params *OutgoingEmailMessageOptionsParams, opts ...ClientOption) (*OutgoingEmailMessageOptionsOK, error)
|
||||
|
||||
TaskOptions(params *TaskOptionsParams, opts ...ClientOption) (*TaskOptionsOK, error)
|
||||
|
||||
SetTransport(transport runtime.ClientTransport)
|
||||
}
|
||||
|
||||
/*
|
||||
AppLogOptions CORS support
|
||||
*/
|
||||
func (a *Client) AppLogOptions(params *AppLogOptionsParams, opts ...ClientOption) (*AppLogOptionsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewAppLogOptionsParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "appLogOptions",
|
||||
Method: "OPTIONS",
|
||||
PathPattern: "/applogs",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &AppLogOptionsReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*AppLogOptionsOK)
|
||||
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 appLogOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result)
|
||||
panic(msg)
|
||||
}
|
||||
|
||||
/*
|
||||
EmailMessageOptions CORS support
|
||||
*/
|
||||
func (a *Client) EmailMessageOptions(params *EmailMessageOptionsParams, opts ...ClientOption) (*EmailMessageOptionsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewEmailMessageOptionsParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "emailMessageOptions",
|
||||
Method: "OPTIONS",
|
||||
PathPattern: "/emailmessages",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &EmailMessageOptionsReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*EmailMessageOptionsOK)
|
||||
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 emailMessageOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result)
|
||||
panic(msg)
|
||||
}
|
||||
|
||||
/*
|
||||
OutgoingEmailMessageOptions CORS support
|
||||
*/
|
||||
func (a *Client) OutgoingEmailMessageOptions(params *OutgoingEmailMessageOptionsParams, opts ...ClientOption) (*OutgoingEmailMessageOptionsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewOutgoingEmailMessageOptionsParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "outgoingEmailMessageOptions",
|
||||
Method: "OPTIONS",
|
||||
PathPattern: "/outgoingemailmessages",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &OutgoingEmailMessageOptionsReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*OutgoingEmailMessageOptionsOK)
|
||||
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 outgoingEmailMessageOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result)
|
||||
panic(msg)
|
||||
}
|
||||
|
||||
/*
|
||||
TaskOptions CORS support
|
||||
*/
|
||||
func (a *Client) TaskOptions(params *TaskOptionsParams, opts ...ClientOption) (*TaskOptionsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewTaskOptionsParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "taskOptions",
|
||||
Method: "OPTIONS",
|
||||
PathPattern: "/tasks",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &TaskOptionsReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*TaskOptionsOK)
|
||||
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 taskOptions: 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
|
||||
}
|
|
@ -1,130 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package 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"
|
||||
)
|
||||
|
||||
// NewEmailMessageOptionsParams creates a new EmailMessageOptionsParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewEmailMessageOptionsParams() *EmailMessageOptionsParams {
|
||||
return &EmailMessageOptionsParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewEmailMessageOptionsParamsWithTimeout creates a new EmailMessageOptionsParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewEmailMessageOptionsParamsWithTimeout(timeout time.Duration) *EmailMessageOptionsParams {
|
||||
return &EmailMessageOptionsParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewEmailMessageOptionsParamsWithContext creates a new EmailMessageOptionsParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewEmailMessageOptionsParamsWithContext(ctx context.Context) *EmailMessageOptionsParams {
|
||||
return &EmailMessageOptionsParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewEmailMessageOptionsParamsWithHTTPClient creates a new EmailMessageOptionsParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewEmailMessageOptionsParamsWithHTTPClient(client *http.Client) *EmailMessageOptionsParams {
|
||||
return &EmailMessageOptionsParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/* EmailMessageOptionsParams contains all the parameters to send to the API endpoint
|
||||
for the email message options operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type EmailMessageOptionsParams struct {
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the email message options params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *EmailMessageOptionsParams) WithDefaults() *EmailMessageOptionsParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the email message options params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *EmailMessageOptionsParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the email message options params
|
||||
func (o *EmailMessageOptionsParams) WithTimeout(timeout time.Duration) *EmailMessageOptionsParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the email message options params
|
||||
func (o *EmailMessageOptionsParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the email message options params
|
||||
func (o *EmailMessageOptionsParams) WithContext(ctx context.Context) *EmailMessageOptionsParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the email message options params
|
||||
func (o *EmailMessageOptionsParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the email message options params
|
||||
func (o *EmailMessageOptionsParams) WithHTTPClient(client *http.Client) *EmailMessageOptionsParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the email message options params
|
||||
func (o *EmailMessageOptionsParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *EmailMessageOptionsParams) 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
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package 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"
|
||||
)
|
||||
|
||||
// EmailMessageOptionsReader is a Reader for the EmailMessageOptions structure.
|
||||
type EmailMessageOptionsReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *EmailMessageOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 200:
|
||||
result := NewEmailMessageOptionsOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
default:
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewEmailMessageOptionsOK creates a EmailMessageOptionsOK with default headers values
|
||||
func NewEmailMessageOptionsOK() *EmailMessageOptionsOK {
|
||||
return &EmailMessageOptionsOK{}
|
||||
}
|
||||
|
||||
/* EmailMessageOptionsOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
type EmailMessageOptionsOK struct {
|
||||
AccessControlAllowCredentials string
|
||||
AccessControlAllowHeaders string
|
||||
AccessControlAllowMethods string
|
||||
AccessControlAllowOrigin string
|
||||
AccessControlExposeHeaders string
|
||||
AccessControlMaxAge string
|
||||
CacheControl string
|
||||
}
|
||||
|
||||
func (o *EmailMessageOptionsOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /emailmessages][%d] emailMessageOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *EmailMessageOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials")
|
||||
|
||||
if hdrAccessControlAllowCredentials != "" {
|
||||
o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Headers
|
||||
hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers")
|
||||
|
||||
if hdrAccessControlAllowHeaders != "" {
|
||||
o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Methods
|
||||
hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods")
|
||||
|
||||
if hdrAccessControlAllowMethods != "" {
|
||||
o.AccessControlAllowMethods = hdrAccessControlAllowMethods
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Expose-Headers
|
||||
hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers")
|
||||
|
||||
if hdrAccessControlExposeHeaders != "" {
|
||||
o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Max-Age
|
||||
hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age")
|
||||
|
||||
if hdrAccessControlMaxAge != "" {
|
||||
o.AccessControlMaxAge = hdrAccessControlMaxAge
|
||||
}
|
||||
|
||||
// hydrates response header Cache-Control
|
||||
hdrCacheControl := response.GetHeader("Cache-Control")
|
||||
|
||||
if hdrCacheControl != "" {
|
||||
o.CacheControl = hdrCacheControl
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
|
@ -1,130 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package 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"
|
||||
)
|
||||
|
||||
// NewOutgoingEmailMessageOptionsParams creates a new OutgoingEmailMessageOptionsParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewOutgoingEmailMessageOptionsParams() *OutgoingEmailMessageOptionsParams {
|
||||
return &OutgoingEmailMessageOptionsParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewOutgoingEmailMessageOptionsParamsWithTimeout creates a new OutgoingEmailMessageOptionsParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewOutgoingEmailMessageOptionsParamsWithTimeout(timeout time.Duration) *OutgoingEmailMessageOptionsParams {
|
||||
return &OutgoingEmailMessageOptionsParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewOutgoingEmailMessageOptionsParamsWithContext creates a new OutgoingEmailMessageOptionsParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewOutgoingEmailMessageOptionsParamsWithContext(ctx context.Context) *OutgoingEmailMessageOptionsParams {
|
||||
return &OutgoingEmailMessageOptionsParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewOutgoingEmailMessageOptionsParamsWithHTTPClient creates a new OutgoingEmailMessageOptionsParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewOutgoingEmailMessageOptionsParamsWithHTTPClient(client *http.Client) *OutgoingEmailMessageOptionsParams {
|
||||
return &OutgoingEmailMessageOptionsParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/* OutgoingEmailMessageOptionsParams contains all the parameters to send to the API endpoint
|
||||
for the outgoing email message options operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type OutgoingEmailMessageOptionsParams struct {
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the outgoing email message options params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *OutgoingEmailMessageOptionsParams) WithDefaults() *OutgoingEmailMessageOptionsParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the outgoing email message options params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *OutgoingEmailMessageOptionsParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the outgoing email message options params
|
||||
func (o *OutgoingEmailMessageOptionsParams) WithTimeout(timeout time.Duration) *OutgoingEmailMessageOptionsParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the outgoing email message options params
|
||||
func (o *OutgoingEmailMessageOptionsParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the outgoing email message options params
|
||||
func (o *OutgoingEmailMessageOptionsParams) WithContext(ctx context.Context) *OutgoingEmailMessageOptionsParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the outgoing email message options params
|
||||
func (o *OutgoingEmailMessageOptionsParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the outgoing email message options params
|
||||
func (o *OutgoingEmailMessageOptionsParams) WithHTTPClient(client *http.Client) *OutgoingEmailMessageOptionsParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the outgoing email message options params
|
||||
func (o *OutgoingEmailMessageOptionsParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *OutgoingEmailMessageOptionsParams) 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
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package 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"
|
||||
)
|
||||
|
||||
// OutgoingEmailMessageOptionsReader is a Reader for the OutgoingEmailMessageOptions structure.
|
||||
type OutgoingEmailMessageOptionsReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *OutgoingEmailMessageOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 200:
|
||||
result := NewOutgoingEmailMessageOptionsOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
default:
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewOutgoingEmailMessageOptionsOK creates a OutgoingEmailMessageOptionsOK with default headers values
|
||||
func NewOutgoingEmailMessageOptionsOK() *OutgoingEmailMessageOptionsOK {
|
||||
return &OutgoingEmailMessageOptionsOK{}
|
||||
}
|
||||
|
||||
/* OutgoingEmailMessageOptionsOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
type OutgoingEmailMessageOptionsOK struct {
|
||||
AccessControlAllowCredentials string
|
||||
AccessControlAllowHeaders string
|
||||
AccessControlAllowMethods string
|
||||
AccessControlAllowOrigin string
|
||||
AccessControlExposeHeaders string
|
||||
AccessControlMaxAge string
|
||||
CacheControl string
|
||||
}
|
||||
|
||||
func (o *OutgoingEmailMessageOptionsOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /outgoingemailmessages][%d] outgoingEmailMessageOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *OutgoingEmailMessageOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials")
|
||||
|
||||
if hdrAccessControlAllowCredentials != "" {
|
||||
o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Headers
|
||||
hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers")
|
||||
|
||||
if hdrAccessControlAllowHeaders != "" {
|
||||
o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Methods
|
||||
hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods")
|
||||
|
||||
if hdrAccessControlAllowMethods != "" {
|
||||
o.AccessControlAllowMethods = hdrAccessControlAllowMethods
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Expose-Headers
|
||||
hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers")
|
||||
|
||||
if hdrAccessControlExposeHeaders != "" {
|
||||
o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Max-Age
|
||||
hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age")
|
||||
|
||||
if hdrAccessControlMaxAge != "" {
|
||||
o.AccessControlMaxAge = hdrAccessControlMaxAge
|
||||
}
|
||||
|
||||
// hydrates response header Cache-Control
|
||||
hdrCacheControl := response.GetHeader("Cache-Control")
|
||||
|
||||
if hdrCacheControl != "" {
|
||||
o.CacheControl = hdrCacheControl
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
|
@ -1,130 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package 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"
|
||||
)
|
||||
|
||||
// NewTaskOptionsParams creates a new TaskOptionsParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewTaskOptionsParams() *TaskOptionsParams {
|
||||
return &TaskOptionsParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewTaskOptionsParamsWithTimeout creates a new TaskOptionsParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewTaskOptionsParamsWithTimeout(timeout time.Duration) *TaskOptionsParams {
|
||||
return &TaskOptionsParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewTaskOptionsParamsWithContext creates a new TaskOptionsParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewTaskOptionsParamsWithContext(ctx context.Context) *TaskOptionsParams {
|
||||
return &TaskOptionsParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewTaskOptionsParamsWithHTTPClient creates a new TaskOptionsParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewTaskOptionsParamsWithHTTPClient(client *http.Client) *TaskOptionsParams {
|
||||
return &TaskOptionsParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/* TaskOptionsParams contains all the parameters to send to the API endpoint
|
||||
for the task options operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type TaskOptionsParams struct {
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the task options params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *TaskOptionsParams) WithDefaults() *TaskOptionsParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the task options params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *TaskOptionsParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the task options params
|
||||
func (o *TaskOptionsParams) WithTimeout(timeout time.Duration) *TaskOptionsParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the task options params
|
||||
func (o *TaskOptionsParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the task options params
|
||||
func (o *TaskOptionsParams) WithContext(ctx context.Context) *TaskOptionsParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the task options params
|
||||
func (o *TaskOptionsParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the task options params
|
||||
func (o *TaskOptionsParams) WithHTTPClient(client *http.Client) *TaskOptionsParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the task options params
|
||||
func (o *TaskOptionsParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *TaskOptionsParams) 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
|
||||
}
|
|
@ -1,113 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package 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"
|
||||
)
|
||||
|
||||
// TaskOptionsReader is a Reader for the TaskOptions structure.
|
||||
type TaskOptionsReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *TaskOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 200:
|
||||
result := NewTaskOptionsOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
default:
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewTaskOptionsOK creates a TaskOptionsOK with default headers values
|
||||
func NewTaskOptionsOK() *TaskOptionsOK {
|
||||
return &TaskOptionsOK{}
|
||||
}
|
||||
|
||||
/* TaskOptionsOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
type TaskOptionsOK struct {
|
||||
AccessControlAllowCredentials string
|
||||
AccessControlAllowHeaders string
|
||||
AccessControlAllowMethods string
|
||||
AccessControlAllowOrigin string
|
||||
AccessControlExposeHeaders string
|
||||
AccessControlMaxAge string
|
||||
CacheControl string
|
||||
}
|
||||
|
||||
func (o *TaskOptionsOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /tasks][%d] taskOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *TaskOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials")
|
||||
|
||||
if hdrAccessControlAllowCredentials != "" {
|
||||
o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Headers
|
||||
hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers")
|
||||
|
||||
if hdrAccessControlAllowHeaders != "" {
|
||||
o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Methods
|
||||
hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods")
|
||||
|
||||
if hdrAccessControlAllowMethods != "" {
|
||||
o.AccessControlAllowMethods = hdrAccessControlAllowMethods
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Expose-Headers
|
||||
hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers")
|
||||
|
||||
if hdrAccessControlExposeHeaders != "" {
|
||||
o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders
|
||||
}
|
||||
|
||||
// hydrates response header Access-Control-Max-Age
|
||||
hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age")
|
||||
|
||||
if hdrAccessControlMaxAge != "" {
|
||||
o.AccessControlMaxAge = hdrAccessControlMaxAge
|
||||
}
|
||||
|
||||
// hydrates response header Cache-Control
|
||||
hdrCacheControl := response.GetHeader("Cache-Control")
|
||||
|
||||
if hdrCacheControl != "" {
|
||||
o.CacheControl = hdrCacheControl
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
|
@ -1,86 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package email_message
|
||||
|
||||
// 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 email message API client.
|
||||
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
|
||||
return &Client{transport: transport, formats: formats}
|
||||
}
|
||||
|
||||
/*
|
||||
Client for email message API
|
||||
*/
|
||||
type Client struct {
|
||||
transport runtime.ClientTransport
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ClientOption is the option for Client methods
|
||||
type ClientOption func(*runtime.ClientOperation)
|
||||
|
||||
// ClientService is the interface for Client methods
|
||||
type ClientService interface {
|
||||
GetEmailMessages(params *GetEmailMessagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEmailMessagesOK, error)
|
||||
|
||||
SetTransport(transport runtime.ClientTransport)
|
||||
}
|
||||
|
||||
/*
|
||||
GetEmailMessages gets email messages from data store
|
||||
|
||||
Retrieves email messages from workflow storage
|
||||
*/
|
||||
func (a *Client) GetEmailMessages(params *GetEmailMessagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEmailMessagesOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewGetEmailMessagesParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "getEmailMessages",
|
||||
Method: "GET",
|
||||
PathPattern: "/emailmessages",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &GetEmailMessagesReader{formats: a.formats},
|
||||
AuthInfo: authInfo,
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*GetEmailMessagesOK)
|
||||
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 getEmailMessages: 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
|
||||
}
|
|
@ -1,165 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package email_message
|
||||
|
||||
// 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"
|
||||
)
|
||||
|
||||
// NewGetEmailMessagesParams creates a new GetEmailMessagesParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewGetEmailMessagesParams() *GetEmailMessagesParams {
|
||||
return &GetEmailMessagesParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetEmailMessagesParamsWithTimeout creates a new GetEmailMessagesParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewGetEmailMessagesParamsWithTimeout(timeout time.Duration) *GetEmailMessagesParams {
|
||||
return &GetEmailMessagesParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetEmailMessagesParamsWithContext creates a new GetEmailMessagesParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewGetEmailMessagesParamsWithContext(ctx context.Context) *GetEmailMessagesParams {
|
||||
return &GetEmailMessagesParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetEmailMessagesParamsWithHTTPClient creates a new GetEmailMessagesParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewGetEmailMessagesParamsWithHTTPClient(client *http.Client) *GetEmailMessagesParams {
|
||||
return &GetEmailMessagesParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/* GetEmailMessagesParams contains all the parameters to send to the API endpoint
|
||||
for the get email messages operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetEmailMessagesParams struct {
|
||||
|
||||
/* EmailMessageID.
|
||||
|
||||
Email Message ID
|
||||
*/
|
||||
EmailMessageID *string
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the get email messages params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetEmailMessagesParams) WithDefaults() *GetEmailMessagesParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the get email messages params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetEmailMessagesParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the get email messages params
|
||||
func (o *GetEmailMessagesParams) WithTimeout(timeout time.Duration) *GetEmailMessagesParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the get email messages params
|
||||
func (o *GetEmailMessagesParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the get email messages params
|
||||
func (o *GetEmailMessagesParams) WithContext(ctx context.Context) *GetEmailMessagesParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the get email messages params
|
||||
func (o *GetEmailMessagesParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the get email messages params
|
||||
func (o *GetEmailMessagesParams) WithHTTPClient(client *http.Client) *GetEmailMessagesParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the get email messages params
|
||||
func (o *GetEmailMessagesParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WithEmailMessageID adds the emailMessageID to the get email messages params
|
||||
func (o *GetEmailMessagesParams) WithEmailMessageID(emailMessageID *string) *GetEmailMessagesParams {
|
||||
o.SetEmailMessageID(emailMessageID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetEmailMessageID adds the emailMessageId to the get email messages params
|
||||
func (o *GetEmailMessagesParams) SetEmailMessageID(emailMessageID *string) {
|
||||
o.EmailMessageID = emailMessageID
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *GetEmailMessagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
if err := r.SetTimeout(o.timeout); err != nil {
|
||||
return err
|
||||
}
|
||||
var res []error
|
||||
|
||||
if o.EmailMessageID != nil {
|
||||
|
||||
// query param emailMessageId
|
||||
var qrEmailMessageID string
|
||||
|
||||
if o.EmailMessageID != nil {
|
||||
qrEmailMessageID = *o.EmailMessageID
|
||||
}
|
||||
qEmailMessageID := qrEmailMessageID
|
||||
if qEmailMessageID != "" {
|
||||
|
||||
if err := r.SetQueryParam("emailMessageId", qEmailMessageID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
|
@ -1,315 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package email_message
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_models"
|
||||
)
|
||||
|
||||
// GetEmailMessagesReader is a Reader for the GetEmailMessages structure.
|
||||
type GetEmailMessagesReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *GetEmailMessagesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 200:
|
||||
result := NewGetEmailMessagesOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
case 401:
|
||||
result := NewGetEmailMessagesUnauthorized()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 403:
|
||||
result := NewGetEmailMessagesForbidden()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 404:
|
||||
result := NewGetEmailMessagesNotFound()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 422:
|
||||
result := NewGetEmailMessagesUnprocessableEntity()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 500:
|
||||
result := NewGetEmailMessagesInternalServerError()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
default:
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetEmailMessagesOK creates a GetEmailMessagesOK with default headers values
|
||||
func NewGetEmailMessagesOK() *GetEmailMessagesOK {
|
||||
return &GetEmailMessagesOK{}
|
||||
}
|
||||
|
||||
/* GetEmailMessagesOK describes a response with status code 200, with default header values.
|
||||
|
||||
Array of Email Messages
|
||||
*/
|
||||
type GetEmailMessagesOK struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.EmailMessagesResponse
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesOK) Error() string {
|
||||
return fmt.Sprintf("[GET /emailmessages][%d] getEmailMessagesOK %+v", 200, o.Payload)
|
||||
}
|
||||
func (o *GetEmailMessagesOK) GetPayload() *workflow_models.EmailMessagesResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.EmailMessagesResponse)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetEmailMessagesUnauthorized creates a GetEmailMessagesUnauthorized with default headers values
|
||||
func NewGetEmailMessagesUnauthorized() *GetEmailMessagesUnauthorized {
|
||||
return &GetEmailMessagesUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetEmailMessagesUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
type GetEmailMessagesUnauthorized struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /emailmessages][%d] getEmailMessagesUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
func (o *GetEmailMessagesUnauthorized) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetEmailMessagesForbidden creates a GetEmailMessagesForbidden with default headers values
|
||||
func NewGetEmailMessagesForbidden() *GetEmailMessagesForbidden {
|
||||
return &GetEmailMessagesForbidden{}
|
||||
}
|
||||
|
||||
/* GetEmailMessagesForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
type GetEmailMessagesForbidden struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /emailmessages][%d] getEmailMessagesForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
func (o *GetEmailMessagesForbidden) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetEmailMessagesNotFound creates a GetEmailMessagesNotFound with default headers values
|
||||
func NewGetEmailMessagesNotFound() *GetEmailMessagesNotFound {
|
||||
return &GetEmailMessagesNotFound{}
|
||||
}
|
||||
|
||||
/* GetEmailMessagesNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
type GetEmailMessagesNotFound struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /emailmessages][%d] getEmailMessagesNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
func (o *GetEmailMessagesNotFound) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetEmailMessagesUnprocessableEntity creates a GetEmailMessagesUnprocessableEntity with default headers values
|
||||
func NewGetEmailMessagesUnprocessableEntity() *GetEmailMessagesUnprocessableEntity {
|
||||
return &GetEmailMessagesUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetEmailMessagesUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
type GetEmailMessagesUnprocessableEntity struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /emailmessages][%d] getEmailMessagesUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
func (o *GetEmailMessagesUnprocessableEntity) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetEmailMessagesInternalServerError creates a GetEmailMessagesInternalServerError with default headers values
|
||||
func NewGetEmailMessagesInternalServerError() *GetEmailMessagesInternalServerError {
|
||||
return &GetEmailMessagesInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetEmailMessagesInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
type GetEmailMessagesInternalServerError struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /emailmessages][%d] getEmailMessagesInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
func (o *GetEmailMessagesInternalServerError) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetEmailMessagesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
|
@ -1,86 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package outgoing_email_message
|
||||
|
||||
// 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 outgoing email message API client.
|
||||
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
|
||||
return &Client{transport: transport, formats: formats}
|
||||
}
|
||||
|
||||
/*
|
||||
Client for outgoing email message API
|
||||
*/
|
||||
type Client struct {
|
||||
transport runtime.ClientTransport
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ClientOption is the option for Client methods
|
||||
type ClientOption func(*runtime.ClientOperation)
|
||||
|
||||
// ClientService is the interface for Client methods
|
||||
type ClientService interface {
|
||||
PostOutgoingEmailMessages(params *PostOutgoingEmailMessagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostOutgoingEmailMessagesOK, error)
|
||||
|
||||
SetTransport(transport runtime.ClientTransport)
|
||||
}
|
||||
|
||||
/*
|
||||
PostOutgoingEmailMessages adds new email messages to the outgoing queue
|
||||
|
||||
Insert new email messages into workflow storage
|
||||
*/
|
||||
func (a *Client) PostOutgoingEmailMessages(params *PostOutgoingEmailMessagesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostOutgoingEmailMessagesOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewPostOutgoingEmailMessagesParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "postOutgoingEmailMessages",
|
||||
Method: "POST",
|
||||
PathPattern: "/outgoingemailmessages",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &PostOutgoingEmailMessagesReader{formats: a.formats},
|
||||
AuthInfo: authInfo,
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*PostOutgoingEmailMessagesOK)
|
||||
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 postOutgoingEmailMessages: 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
|
||||
}
|
|
@ -1,155 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package outgoing_email_message
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime"
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_models"
|
||||
)
|
||||
|
||||
// NewPostOutgoingEmailMessagesParams creates a new PostOutgoingEmailMessagesParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewPostOutgoingEmailMessagesParams() *PostOutgoingEmailMessagesParams {
|
||||
return &PostOutgoingEmailMessagesParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostOutgoingEmailMessagesParamsWithTimeout creates a new PostOutgoingEmailMessagesParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewPostOutgoingEmailMessagesParamsWithTimeout(timeout time.Duration) *PostOutgoingEmailMessagesParams {
|
||||
return &PostOutgoingEmailMessagesParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostOutgoingEmailMessagesParamsWithContext creates a new PostOutgoingEmailMessagesParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewPostOutgoingEmailMessagesParamsWithContext(ctx context.Context) *PostOutgoingEmailMessagesParams {
|
||||
return &PostOutgoingEmailMessagesParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostOutgoingEmailMessagesParamsWithHTTPClient creates a new PostOutgoingEmailMessagesParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewPostOutgoingEmailMessagesParamsWithHTTPClient(client *http.Client) *PostOutgoingEmailMessagesParams {
|
||||
return &PostOutgoingEmailMessagesParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/* PostOutgoingEmailMessagesParams contains all the parameters to send to the API endpoint
|
||||
for the post outgoing email messages operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostOutgoingEmailMessagesParams struct {
|
||||
|
||||
/* OutgoingEmailMessageRequest.
|
||||
|
||||
An array of new Outgoing Email Message records
|
||||
*/
|
||||
OutgoingEmailMessageRequest *workflow_models.OutgoingEmailMessageRequest
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the post outgoing email messages params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostOutgoingEmailMessagesParams) WithDefaults() *PostOutgoingEmailMessagesParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the post outgoing email messages params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostOutgoingEmailMessagesParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the post outgoing email messages params
|
||||
func (o *PostOutgoingEmailMessagesParams) WithTimeout(timeout time.Duration) *PostOutgoingEmailMessagesParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the post outgoing email messages params
|
||||
func (o *PostOutgoingEmailMessagesParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the post outgoing email messages params
|
||||
func (o *PostOutgoingEmailMessagesParams) WithContext(ctx context.Context) *PostOutgoingEmailMessagesParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the post outgoing email messages params
|
||||
func (o *PostOutgoingEmailMessagesParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the post outgoing email messages params
|
||||
func (o *PostOutgoingEmailMessagesParams) WithHTTPClient(client *http.Client) *PostOutgoingEmailMessagesParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the post outgoing email messages params
|
||||
func (o *PostOutgoingEmailMessagesParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WithOutgoingEmailMessageRequest adds the outgoingEmailMessageRequest to the post outgoing email messages params
|
||||
func (o *PostOutgoingEmailMessagesParams) WithOutgoingEmailMessageRequest(outgoingEmailMessageRequest *workflow_models.OutgoingEmailMessageRequest) *PostOutgoingEmailMessagesParams {
|
||||
o.SetOutgoingEmailMessageRequest(outgoingEmailMessageRequest)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetOutgoingEmailMessageRequest adds the outgoingEmailMessageRequest to the post outgoing email messages params
|
||||
func (o *PostOutgoingEmailMessagesParams) SetOutgoingEmailMessageRequest(outgoingEmailMessageRequest *workflow_models.OutgoingEmailMessageRequest) {
|
||||
o.OutgoingEmailMessageRequest = outgoingEmailMessageRequest
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *PostOutgoingEmailMessagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
if err := r.SetTimeout(o.timeout); err != nil {
|
||||
return err
|
||||
}
|
||||
var res []error
|
||||
if o.OutgoingEmailMessageRequest != nil {
|
||||
if err := r.SetBodyParam(o.OutgoingEmailMessageRequest); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
|
@ -1,315 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package outgoing_email_message
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_models"
|
||||
)
|
||||
|
||||
// PostOutgoingEmailMessagesReader is a Reader for the PostOutgoingEmailMessages structure.
|
||||
type PostOutgoingEmailMessagesReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *PostOutgoingEmailMessagesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 200:
|
||||
result := NewPostOutgoingEmailMessagesOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
case 401:
|
||||
result := NewPostOutgoingEmailMessagesUnauthorized()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 403:
|
||||
result := NewPostOutgoingEmailMessagesForbidden()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 404:
|
||||
result := NewPostOutgoingEmailMessagesNotFound()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 422:
|
||||
result := NewPostOutgoingEmailMessagesUnprocessableEntity()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 500:
|
||||
result := NewPostOutgoingEmailMessagesInternalServerError()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
default:
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostOutgoingEmailMessagesOK creates a PostOutgoingEmailMessagesOK with default headers values
|
||||
func NewPostOutgoingEmailMessagesOK() *PostOutgoingEmailMessagesOK {
|
||||
return &PostOutgoingEmailMessagesOK{}
|
||||
}
|
||||
|
||||
/* PostOutgoingEmailMessagesOK describes a response with status code 200, with default header values.
|
||||
|
||||
Array of Email Messages
|
||||
*/
|
||||
type PostOutgoingEmailMessagesOK struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.EmailMessagesResponse
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesOK) Error() string {
|
||||
return fmt.Sprintf("[POST /outgoingemailmessages][%d] postOutgoingEmailMessagesOK %+v", 200, o.Payload)
|
||||
}
|
||||
func (o *PostOutgoingEmailMessagesOK) GetPayload() *workflow_models.EmailMessagesResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.EmailMessagesResponse)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostOutgoingEmailMessagesUnauthorized creates a PostOutgoingEmailMessagesUnauthorized with default headers values
|
||||
func NewPostOutgoingEmailMessagesUnauthorized() *PostOutgoingEmailMessagesUnauthorized {
|
||||
return &PostOutgoingEmailMessagesUnauthorized{}
|
||||
}
|
||||
|
||||
/* PostOutgoingEmailMessagesUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
type PostOutgoingEmailMessagesUnauthorized struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[POST /outgoingemailmessages][%d] postOutgoingEmailMessagesUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
func (o *PostOutgoingEmailMessagesUnauthorized) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostOutgoingEmailMessagesForbidden creates a PostOutgoingEmailMessagesForbidden with default headers values
|
||||
func NewPostOutgoingEmailMessagesForbidden() *PostOutgoingEmailMessagesForbidden {
|
||||
return &PostOutgoingEmailMessagesForbidden{}
|
||||
}
|
||||
|
||||
/* PostOutgoingEmailMessagesForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
type PostOutgoingEmailMessagesForbidden struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesForbidden) Error() string {
|
||||
return fmt.Sprintf("[POST /outgoingemailmessages][%d] postOutgoingEmailMessagesForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
func (o *PostOutgoingEmailMessagesForbidden) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostOutgoingEmailMessagesNotFound creates a PostOutgoingEmailMessagesNotFound with default headers values
|
||||
func NewPostOutgoingEmailMessagesNotFound() *PostOutgoingEmailMessagesNotFound {
|
||||
return &PostOutgoingEmailMessagesNotFound{}
|
||||
}
|
||||
|
||||
/* PostOutgoingEmailMessagesNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
type PostOutgoingEmailMessagesNotFound struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesNotFound) Error() string {
|
||||
return fmt.Sprintf("[POST /outgoingemailmessages][%d] postOutgoingEmailMessagesNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
func (o *PostOutgoingEmailMessagesNotFound) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostOutgoingEmailMessagesUnprocessableEntity creates a PostOutgoingEmailMessagesUnprocessableEntity with default headers values
|
||||
func NewPostOutgoingEmailMessagesUnprocessableEntity() *PostOutgoingEmailMessagesUnprocessableEntity {
|
||||
return &PostOutgoingEmailMessagesUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PostOutgoingEmailMessagesUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
type PostOutgoingEmailMessagesUnprocessableEntity struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[POST /outgoingemailmessages][%d] postOutgoingEmailMessagesUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
func (o *PostOutgoingEmailMessagesUnprocessableEntity) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostOutgoingEmailMessagesInternalServerError creates a PostOutgoingEmailMessagesInternalServerError with default headers values
|
||||
func NewPostOutgoingEmailMessagesInternalServerError() *PostOutgoingEmailMessagesInternalServerError {
|
||||
return &PostOutgoingEmailMessagesInternalServerError{}
|
||||
}
|
||||
|
||||
/* PostOutgoingEmailMessagesInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
type PostOutgoingEmailMessagesInternalServerError struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[POST /outgoingemailmessages][%d] postOutgoingEmailMessagesInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
func (o *PostOutgoingEmailMessagesInternalServerError) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostOutgoingEmailMessagesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
|
@ -1,165 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package task
|
||||
|
||||
// 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"
|
||||
)
|
||||
|
||||
// NewGetTasksParams creates a new GetTasksParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewGetTasksParams() *GetTasksParams {
|
||||
return &GetTasksParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetTasksParamsWithTimeout creates a new GetTasksParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewGetTasksParamsWithTimeout(timeout time.Duration) *GetTasksParams {
|
||||
return &GetTasksParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetTasksParamsWithContext creates a new GetTasksParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewGetTasksParamsWithContext(ctx context.Context) *GetTasksParams {
|
||||
return &GetTasksParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetTasksParamsWithHTTPClient creates a new GetTasksParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewGetTasksParamsWithHTTPClient(client *http.Client) *GetTasksParams {
|
||||
return &GetTasksParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/* GetTasksParams contains all the parameters to send to the API endpoint
|
||||
for the get tasks operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetTasksParams struct {
|
||||
|
||||
/* TaskID.
|
||||
|
||||
Email Message ID
|
||||
*/
|
||||
TaskID *string
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the get tasks params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetTasksParams) WithDefaults() *GetTasksParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the get tasks params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetTasksParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the get tasks params
|
||||
func (o *GetTasksParams) WithTimeout(timeout time.Duration) *GetTasksParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the get tasks params
|
||||
func (o *GetTasksParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the get tasks params
|
||||
func (o *GetTasksParams) WithContext(ctx context.Context) *GetTasksParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the get tasks params
|
||||
func (o *GetTasksParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the get tasks params
|
||||
func (o *GetTasksParams) WithHTTPClient(client *http.Client) *GetTasksParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the get tasks params
|
||||
func (o *GetTasksParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WithTaskID adds the taskID to the get tasks params
|
||||
func (o *GetTasksParams) WithTaskID(taskID *string) *GetTasksParams {
|
||||
o.SetTaskID(taskID)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTaskID adds the taskId to the get tasks params
|
||||
func (o *GetTasksParams) SetTaskID(taskID *string) {
|
||||
o.TaskID = taskID
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *GetTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
if err := r.SetTimeout(o.timeout); err != nil {
|
||||
return err
|
||||
}
|
||||
var res []error
|
||||
|
||||
if o.TaskID != nil {
|
||||
|
||||
// query param taskId
|
||||
var qrTaskID string
|
||||
|
||||
if o.TaskID != nil {
|
||||
qrTaskID = *o.TaskID
|
||||
}
|
||||
qTaskID := qrTaskID
|
||||
if qTaskID != "" {
|
||||
|
||||
if err := r.SetQueryParam("taskId", qTaskID); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
|
@ -1,315 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package task
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_models"
|
||||
)
|
||||
|
||||
// GetTasksReader is a Reader for the GetTasks structure.
|
||||
type GetTasksReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *GetTasksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 200:
|
||||
result := NewGetTasksOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
case 401:
|
||||
result := NewGetTasksUnauthorized()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 403:
|
||||
result := NewGetTasksForbidden()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 404:
|
||||
result := NewGetTasksNotFound()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 422:
|
||||
result := NewGetTasksUnprocessableEntity()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 500:
|
||||
result := NewGetTasksInternalServerError()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
default:
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetTasksOK creates a GetTasksOK with default headers values
|
||||
func NewGetTasksOK() *GetTasksOK {
|
||||
return &GetTasksOK{}
|
||||
}
|
||||
|
||||
/* GetTasksOK describes a response with status code 200, with default header values.
|
||||
|
||||
Array of Tasks
|
||||
*/
|
||||
type GetTasksOK struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.TaskResponse
|
||||
}
|
||||
|
||||
func (o *GetTasksOK) Error() string {
|
||||
return fmt.Sprintf("[GET /tasks][%d] getTasksOK %+v", 200, o.Payload)
|
||||
}
|
||||
func (o *GetTasksOK) GetPayload() *workflow_models.TaskResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetTasksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.TaskResponse)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetTasksUnauthorized creates a GetTasksUnauthorized with default headers values
|
||||
func NewGetTasksUnauthorized() *GetTasksUnauthorized {
|
||||
return &GetTasksUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetTasksUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
type GetTasksUnauthorized struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *GetTasksUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /tasks][%d] getTasksUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
func (o *GetTasksUnauthorized) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetTasksUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetTasksForbidden creates a GetTasksForbidden with default headers values
|
||||
func NewGetTasksForbidden() *GetTasksForbidden {
|
||||
return &GetTasksForbidden{}
|
||||
}
|
||||
|
||||
/* GetTasksForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
type GetTasksForbidden struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *GetTasksForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /tasks][%d] getTasksForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
func (o *GetTasksForbidden) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetTasksForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetTasksNotFound creates a GetTasksNotFound with default headers values
|
||||
func NewGetTasksNotFound() *GetTasksNotFound {
|
||||
return &GetTasksNotFound{}
|
||||
}
|
||||
|
||||
/* GetTasksNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
type GetTasksNotFound struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *GetTasksNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /tasks][%d] getTasksNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
func (o *GetTasksNotFound) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetTasksNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetTasksUnprocessableEntity creates a GetTasksUnprocessableEntity with default headers values
|
||||
func NewGetTasksUnprocessableEntity() *GetTasksUnprocessableEntity {
|
||||
return &GetTasksUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetTasksUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
type GetTasksUnprocessableEntity struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *GetTasksUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /tasks][%d] getTasksUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
func (o *GetTasksUnprocessableEntity) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetTasksUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewGetTasksInternalServerError creates a GetTasksInternalServerError with default headers values
|
||||
func NewGetTasksInternalServerError() *GetTasksInternalServerError {
|
||||
return &GetTasksInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetTasksInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
type GetTasksInternalServerError struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *GetTasksInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /tasks][%d] getTasksInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
func (o *GetTasksInternalServerError) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *GetTasksInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
|
@ -1,155 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package task
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime"
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_models"
|
||||
)
|
||||
|
||||
// NewPostTasksParams creates a new PostTasksParams object,
|
||||
// with the default timeout for this client.
|
||||
//
|
||||
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
||||
//
|
||||
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
||||
func NewPostTasksParams() *PostTasksParams {
|
||||
return &PostTasksParams{
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostTasksParamsWithTimeout creates a new PostTasksParams object
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewPostTasksParamsWithTimeout(timeout time.Duration) *PostTasksParams {
|
||||
return &PostTasksParams{
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostTasksParamsWithContext creates a new PostTasksParams object
|
||||
// with the ability to set a context for a request.
|
||||
func NewPostTasksParamsWithContext(ctx context.Context) *PostTasksParams {
|
||||
return &PostTasksParams{
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostTasksParamsWithHTTPClient creates a new PostTasksParams object
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewPostTasksParamsWithHTTPClient(client *http.Client) *PostTasksParams {
|
||||
return &PostTasksParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/* PostTasksParams contains all the parameters to send to the API endpoint
|
||||
for the post tasks operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostTasksParams struct {
|
||||
|
||||
/* TaskRequest.
|
||||
|
||||
An array of new Task records
|
||||
*/
|
||||
TaskRequest *workflow_models.TaskRequest
|
||||
|
||||
timeout time.Duration
|
||||
Context context.Context
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the post tasks params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostTasksParams) WithDefaults() *PostTasksParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the post tasks params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostTasksParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the post tasks params
|
||||
func (o *PostTasksParams) WithTimeout(timeout time.Duration) *PostTasksParams {
|
||||
o.SetTimeout(timeout)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTimeout adds the timeout to the post tasks params
|
||||
func (o *PostTasksParams) SetTimeout(timeout time.Duration) {
|
||||
o.timeout = timeout
|
||||
}
|
||||
|
||||
// WithContext adds the context to the post tasks params
|
||||
func (o *PostTasksParams) WithContext(ctx context.Context) *PostTasksParams {
|
||||
o.SetContext(ctx)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetContext adds the context to the post tasks params
|
||||
func (o *PostTasksParams) SetContext(ctx context.Context) {
|
||||
o.Context = ctx
|
||||
}
|
||||
|
||||
// WithHTTPClient adds the HTTPClient to the post tasks params
|
||||
func (o *PostTasksParams) WithHTTPClient(client *http.Client) *PostTasksParams {
|
||||
o.SetHTTPClient(client)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetHTTPClient adds the HTTPClient to the post tasks params
|
||||
func (o *PostTasksParams) SetHTTPClient(client *http.Client) {
|
||||
o.HTTPClient = client
|
||||
}
|
||||
|
||||
// WithTaskRequest adds the taskRequest to the post tasks params
|
||||
func (o *PostTasksParams) WithTaskRequest(taskRequest *workflow_models.TaskRequest) *PostTasksParams {
|
||||
o.SetTaskRequest(taskRequest)
|
||||
return o
|
||||
}
|
||||
|
||||
// SetTaskRequest adds the taskRequest to the post tasks params
|
||||
func (o *PostTasksParams) SetTaskRequest(taskRequest *workflow_models.TaskRequest) {
|
||||
o.TaskRequest = taskRequest
|
||||
}
|
||||
|
||||
// WriteToRequest writes these params to a swagger request
|
||||
func (o *PostTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
||||
|
||||
if err := r.SetTimeout(o.timeout); err != nil {
|
||||
return err
|
||||
}
|
||||
var res []error
|
||||
if o.TaskRequest != nil {
|
||||
if err := r.SetBodyParam(o.TaskRequest); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
|
@ -1,315 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package task
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_models"
|
||||
)
|
||||
|
||||
// PostTasksReader is a Reader for the PostTasks structure.
|
||||
type PostTasksReader struct {
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ReadResponse reads a server response into the received o.
|
||||
func (o *PostTasksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
|
||||
switch response.Code() {
|
||||
case 200:
|
||||
result := NewPostTasksOK()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
case 401:
|
||||
result := NewPostTasksUnauthorized()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 403:
|
||||
result := NewPostTasksForbidden()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 404:
|
||||
result := NewPostTasksNotFound()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 422:
|
||||
result := NewPostTasksUnprocessableEntity()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
case 500:
|
||||
result := NewPostTasksInternalServerError()
|
||||
if err := result.readResponse(response, consumer, o.formats); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
default:
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostTasksOK creates a PostTasksOK with default headers values
|
||||
func NewPostTasksOK() *PostTasksOK {
|
||||
return &PostTasksOK{}
|
||||
}
|
||||
|
||||
/* PostTasksOK describes a response with status code 200, with default header values.
|
||||
|
||||
Array of Email Messages
|
||||
*/
|
||||
type PostTasksOK struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.EmailMessagesResponse
|
||||
}
|
||||
|
||||
func (o *PostTasksOK) Error() string {
|
||||
return fmt.Sprintf("[POST /tasks][%d] postTasksOK %+v", 200, o.Payload)
|
||||
}
|
||||
func (o *PostTasksOK) GetPayload() *workflow_models.EmailMessagesResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostTasksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.EmailMessagesResponse)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostTasksUnauthorized creates a PostTasksUnauthorized with default headers values
|
||||
func NewPostTasksUnauthorized() *PostTasksUnauthorized {
|
||||
return &PostTasksUnauthorized{}
|
||||
}
|
||||
|
||||
/* PostTasksUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
type PostTasksUnauthorized struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostTasksUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[POST /tasks][%d] postTasksUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
func (o *PostTasksUnauthorized) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostTasksUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostTasksForbidden creates a PostTasksForbidden with default headers values
|
||||
func NewPostTasksForbidden() *PostTasksForbidden {
|
||||
return &PostTasksForbidden{}
|
||||
}
|
||||
|
||||
/* PostTasksForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
type PostTasksForbidden struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostTasksForbidden) Error() string {
|
||||
return fmt.Sprintf("[POST /tasks][%d] postTasksForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
func (o *PostTasksForbidden) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostTasksForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostTasksNotFound creates a PostTasksNotFound with default headers values
|
||||
func NewPostTasksNotFound() *PostTasksNotFound {
|
||||
return &PostTasksNotFound{}
|
||||
}
|
||||
|
||||
/* PostTasksNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
type PostTasksNotFound struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostTasksNotFound) Error() string {
|
||||
return fmt.Sprintf("[POST /tasks][%d] postTasksNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
func (o *PostTasksNotFound) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostTasksNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostTasksUnprocessableEntity creates a PostTasksUnprocessableEntity with default headers values
|
||||
func NewPostTasksUnprocessableEntity() *PostTasksUnprocessableEntity {
|
||||
return &PostTasksUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PostTasksUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
type PostTasksUnprocessableEntity struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostTasksUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[POST /tasks][%d] postTasksUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
func (o *PostTasksUnprocessableEntity) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostTasksUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// NewPostTasksInternalServerError creates a PostTasksInternalServerError with default headers values
|
||||
func NewPostTasksInternalServerError() *PostTasksInternalServerError {
|
||||
return &PostTasksInternalServerError{}
|
||||
}
|
||||
|
||||
/* PostTasksInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
type PostTasksInternalServerError struct {
|
||||
AccessControlAllowOrigin string
|
||||
|
||||
Payload *workflow_models.Error
|
||||
}
|
||||
|
||||
func (o *PostTasksInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[POST /tasks][%d] postTasksInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
func (o *PostTasksInternalServerError) GetPayload() *workflow_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
||||
func (o *PostTasksInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Origin
|
||||
hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin")
|
||||
|
||||
if hdrAccessControlAllowOrigin != "" {
|
||||
o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin
|
||||
}
|
||||
|
||||
o.Payload = new(workflow_models.Error)
|
||||
|
||||
// response payload
|
||||
if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
|
@ -1,129 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package task
|
||||
|
||||
// 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 task API client.
|
||||
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
|
||||
return &Client{transport: transport, formats: formats}
|
||||
}
|
||||
|
||||
/*
|
||||
Client for task API
|
||||
*/
|
||||
type Client struct {
|
||||
transport runtime.ClientTransport
|
||||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ClientOption is the option for Client methods
|
||||
type ClientOption func(*runtime.ClientOperation)
|
||||
|
||||
// ClientService is the interface for Client methods
|
||||
type ClientService interface {
|
||||
GetTasks(params *GetTasksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTasksOK, error)
|
||||
|
||||
PostTasks(params *PostTasksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTasksOK, error)
|
||||
|
||||
SetTransport(transport runtime.ClientTransport)
|
||||
}
|
||||
|
||||
/*
|
||||
GetTasks gets tasks from data store
|
||||
|
||||
Retrieves tasks from workflow storage
|
||||
*/
|
||||
func (a *Client) GetTasks(params *GetTasksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTasksOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewGetTasksParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "getTasks",
|
||||
Method: "GET",
|
||||
PathPattern: "/tasks",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &GetTasksReader{formats: a.formats},
|
||||
AuthInfo: authInfo,
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*GetTasksOK)
|
||||
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 getTasks: API contract not enforced by server. Client expected to get an error, but got: %T", result)
|
||||
panic(msg)
|
||||
}
|
||||
|
||||
/*
|
||||
PostTasks inserts new tasks
|
||||
|
||||
Insert new tasks into workflow storage
|
||||
*/
|
||||
func (a *Client) PostTasks(params *PostTasksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTasksOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewPostTasksParams()
|
||||
}
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "postTasks",
|
||||
Method: "POST",
|
||||
PathPattern: "/tasks",
|
||||
ProducesMediaTypes: []string{"application/json"},
|
||||
ConsumesMediaTypes: []string{"application/json"},
|
||||
Schemes: []string{"http"},
|
||||
Params: params,
|
||||
Reader: &PostTasksReader{formats: a.formats},
|
||||
AuthInfo: authInfo,
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
success, ok := result.(*PostTasksOK)
|
||||
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 postTasks: 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
|
||||
}
|
|
@ -1,136 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_client
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"github.com/go-openapi/runtime"
|
||||
httptransport "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_client/app_log"
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_client/cors"
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_client/email_message"
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_client/outgoing_email_message"
|
||||
"code.tnxs.net/vernonkeenan/lib/api/workflow/workflow_client/task"
|
||||
)
|
||||
|
||||
// Default workflow HTTP client.
|
||||
var Default = NewHTTPClient(nil)
|
||||
|
||||
const (
|
||||
// DefaultHost is the default Host
|
||||
// found in Meta (info) section of spec file
|
||||
DefaultHost string = "workflow.vernonkeenan.com:8080"
|
||||
// DefaultBasePath is the default BasePath
|
||||
// found in Meta (info) section of spec file
|
||||
DefaultBasePath string = "/v1"
|
||||
)
|
||||
|
||||
// DefaultSchemes are the default schemes found in Meta (info) section of spec file
|
||||
var DefaultSchemes = []string{"http"}
|
||||
|
||||
// NewHTTPClient creates a new workflow HTTP client.
|
||||
func NewHTTPClient(formats strfmt.Registry) *Workflow {
|
||||
return NewHTTPClientWithConfig(formats, nil)
|
||||
}
|
||||
|
||||
// NewHTTPClientWithConfig creates a new workflow HTTP client,
|
||||
// using a customizable transport config.
|
||||
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Workflow {
|
||||
// ensure nullable parameters have default
|
||||
if cfg == nil {
|
||||
cfg = DefaultTransportConfig()
|
||||
}
|
||||
|
||||
// create transport and client
|
||||
transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes)
|
||||
return New(transport, formats)
|
||||
}
|
||||
|
||||
// New creates a new workflow client
|
||||
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Workflow {
|
||||
// ensure nullable parameters have default
|
||||
if formats == nil {
|
||||
formats = strfmt.Default
|
||||
}
|
||||
|
||||
cli := new(Workflow)
|
||||
cli.Transport = transport
|
||||
cli.AppLog = app_log.New(transport, formats)
|
||||
cli.Cors = cors.New(transport, formats)
|
||||
cli.EmailMessage = email_message.New(transport, formats)
|
||||
cli.OutgoingEmailMessage = outgoing_email_message.New(transport, formats)
|
||||
cli.Task = task.New(transport, formats)
|
||||
return cli
|
||||
}
|
||||
|
||||
// DefaultTransportConfig creates a TransportConfig with the
|
||||
// default settings taken from the meta section of the spec file.
|
||||
func DefaultTransportConfig() *TransportConfig {
|
||||
return &TransportConfig{
|
||||
Host: DefaultHost,
|
||||
BasePath: DefaultBasePath,
|
||||
Schemes: DefaultSchemes,
|
||||
}
|
||||
}
|
||||
|
||||
// TransportConfig contains the transport related info,
|
||||
// found in the meta section of the spec file.
|
||||
type TransportConfig struct {
|
||||
Host string
|
||||
BasePath string
|
||||
Schemes []string
|
||||
}
|
||||
|
||||
// WithHost overrides the default host,
|
||||
// provided by the meta section of the spec file.
|
||||
func (cfg *TransportConfig) WithHost(host string) *TransportConfig {
|
||||
cfg.Host = host
|
||||
return cfg
|
||||
}
|
||||
|
||||
// WithBasePath overrides the default basePath,
|
||||
// provided by the meta section of the spec file.
|
||||
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig {
|
||||
cfg.BasePath = basePath
|
||||
return cfg
|
||||
}
|
||||
|
||||
// WithSchemes overrides the default schemes,
|
||||
// provided by the meta section of the spec file.
|
||||
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
|
||||
cfg.Schemes = schemes
|
||||
return cfg
|
||||
}
|
||||
|
||||
// Workflow is a client for workflow
|
||||
type Workflow struct {
|
||||
AppLog app_log.ClientService
|
||||
|
||||
Cors cors.ClientService
|
||||
|
||||
EmailMessage email_message.ClientService
|
||||
|
||||
OutgoingEmailMessage outgoing_email_message.ClientService
|
||||
|
||||
Task task.ClientService
|
||||
|
||||
Transport runtime.ClientTransport
|
||||
}
|
||||
|
||||
// SetTransport changes the transport on the client and all its subresources
|
||||
func (c *Workflow) SetTransport(transport runtime.ClientTransport) {
|
||||
c.Transport = transport
|
||||
c.AppLog.SetTransport(transport)
|
||||
c.Cors.SetTransport(transport)
|
||||
c.EmailMessage.SetTransport(transport)
|
||||
c.OutgoingEmailMessage.SetTransport(transport)
|
||||
c.Task.SetTransport(transport)
|
||||
}
|
|
@ -1,84 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// AppLog Application Log for human consumption
|
||||
//
|
||||
// swagger:model AppLog
|
||||
type AppLog struct {
|
||||
|
||||
// account ID
|
||||
AccountID string `json:"AccountID,omitempty"`
|
||||
|
||||
// company ID
|
||||
CompanyID string `json:"CompanyID,omitempty"`
|
||||
|
||||
// created by ID
|
||||
CreatedByID string `json:"CreatedByID,omitempty"`
|
||||
|
||||
// created date
|
||||
CreatedDate string `json:"CreatedDate,omitempty"`
|
||||
|
||||
// ID
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
||||
// message
|
||||
Message string `json:"Message,omitempty"`
|
||||
|
||||
// object ID
|
||||
ObjectID string `json:"ObjectID,omitempty"`
|
||||
|
||||
// object type
|
||||
ObjectType string `json:"ObjectType,omitempty"`
|
||||
|
||||
// severity
|
||||
Severity string `json:"Severity,omitempty"`
|
||||
|
||||
// source
|
||||
Source string `json:"Source,omitempty"`
|
||||
|
||||
// source timestamp
|
||||
SourceTimestamp string `json:"SourceTimestamp,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this app log
|
||||
func (m *AppLog) Validate(formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this app log based on context it is used
|
||||
func (m *AppLog) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *AppLog) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *AppLog) UnmarshalBinary(b []byte) error {
|
||||
var res AppLog
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,166 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// AppLogRequest An array Taxnexus Application Log objects
|
||||
//
|
||||
// swagger:model AppLogRequest
|
||||
type AppLogRequest struct {
|
||||
|
||||
// data
|
||||
Data []*AppLog `json:"data"`
|
||||
|
||||
// meta
|
||||
Meta *RequestMeta `json:"meta,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this app log request
|
||||
func (m *AppLogRequest) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateData(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.validateMeta(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppLogRequest) validateData(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Data) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
if swag.IsZero(m.Data[i]) { // not required
|
||||
continue
|
||||
}
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppLogRequest) validateMeta(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Meta) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this app log request based on the context it is used
|
||||
func (m *AppLogRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateData(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.contextValidateMeta(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppLogRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppLogRequest) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *AppLogRequest) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *AppLogRequest) UnmarshalBinary(b []byte) error {
|
||||
var res AppLogRequest
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,166 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// AppLogResponse An array Taxnexus Application Log objects
|
||||
//
|
||||
// swagger:model AppLogResponse
|
||||
type AppLogResponse struct {
|
||||
|
||||
// data
|
||||
Data []*AppLog `json:"data"`
|
||||
|
||||
// meta
|
||||
Meta *ResponseMeta `json:"meta,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this app log response
|
||||
func (m *AppLogResponse) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateData(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.validateMeta(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppLogResponse) validateData(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Data) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
if swag.IsZero(m.Data[i]) { // not required
|
||||
continue
|
||||
}
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppLogResponse) validateMeta(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Meta) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this app log response based on the context it is used
|
||||
func (m *AppLogResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateData(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.contextValidateMeta(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppLogResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppLogResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *AppLogResponse) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *AppLogResponse) UnmarshalBinary(b []byte) error {
|
||||
var res AppLogResponse
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,233 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// Document Taxnexus Document
|
||||
//
|
||||
// swagger:model Document
|
||||
type Document struct {
|
||||
|
||||
// archived by ID
|
||||
ArchivedByID string `json:"ArchivedByID,omitempty"`
|
||||
|
||||
// archived date
|
||||
ArchivedDate string `json:"ArchivedDate,omitempty"`
|
||||
|
||||
// author ID
|
||||
AuthorID string `json:"AuthorID,omitempty"`
|
||||
|
||||
// body
|
||||
// Format: byte
|
||||
Body strfmt.Base64 `json:"Body,omitempty"`
|
||||
|
||||
// body length
|
||||
BodyLength int64 `json:"BodyLength,omitempty"`
|
||||
|
||||
// comment count
|
||||
CommentCount int64 `json:"CommentCount,omitempty"`
|
||||
|
||||
// connection ID
|
||||
ConnectionID string `json:"ConnectionID,omitempty"`
|
||||
|
||||
// content asset ID
|
||||
ContentAssetID string `json:"ContentAssetID,omitempty"`
|
||||
|
||||
// content modification date
|
||||
ContentModificationDate string `json:"ContentModificationDate,omitempty"`
|
||||
|
||||
// content size
|
||||
ContentSize int64 `json:"ContentSize,omitempty"`
|
||||
|
||||
// content type
|
||||
ContentType string `json:"ContentType,omitempty"`
|
||||
|
||||
// content version document ID
|
||||
ContentVersionDocumentID string `json:"ContentVersionDocumentID,omitempty"`
|
||||
|
||||
// contnet document ID
|
||||
ContnetDocumentID string `json:"ContnetDocumentID,omitempty"`
|
||||
|
||||
// created by ID
|
||||
CreatedByID string `json:"CreatedByID,omitempty"`
|
||||
|
||||
// created date
|
||||
CreatedDate string `json:"CreatedDate,omitempty"`
|
||||
|
||||
// d date
|
||||
DDate string `json:"DDate,omitempty"`
|
||||
|
||||
// description
|
||||
Description string `json:"Description,omitempty"`
|
||||
|
||||
// developer name
|
||||
DeveloperName string `json:"DeveloperName,omitempty"`
|
||||
|
||||
// discount
|
||||
Discount float64 `json:"Discount,omitempty"`
|
||||
|
||||
// document
|
||||
// Format: byte
|
||||
Document strfmt.Base64 `json:"Document,omitempty"`
|
||||
|
||||
// document ID
|
||||
DocumentID string `json:"DocumentID,omitempty"`
|
||||
|
||||
// document sequence
|
||||
DocumentSequence int64 `json:"DocumentSequence,omitempty"`
|
||||
|
||||
// field
|
||||
Field string `json:"Field,omitempty"`
|
||||
|
||||
// file extension
|
||||
FileExtension string `json:"FileExtension,omitempty"`
|
||||
|
||||
// file type
|
||||
FileType string `json:"FileType,omitempty"`
|
||||
|
||||
// folder ID
|
||||
FolderID string `json:"FolderID,omitempty"`
|
||||
|
||||
// grand total
|
||||
GrandTotal string `json:"GrandTotal,omitempty"`
|
||||
|
||||
// ID
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
||||
// inserted by ID
|
||||
InsertedByID string `json:"InsertedByID,omitempty"`
|
||||
|
||||
// is archived
|
||||
IsArchived bool `json:"IsArchived,omitempty"`
|
||||
|
||||
// is body searchable
|
||||
IsBodySearchable bool `json:"IsBodySearchable,omitempty"`
|
||||
|
||||
// is comment sub
|
||||
IsCommentSub bool `json:"IsCommentSub,omitempty"`
|
||||
|
||||
// is document sub
|
||||
IsDocumentSub bool `json:"IsDocumentSub,omitempty"`
|
||||
|
||||
// is internal use only
|
||||
IsInternalUseOnly bool `json:"IsInternalUseOnly,omitempty"`
|
||||
|
||||
// is public
|
||||
IsPublic bool `json:"IsPublic,omitempty"`
|
||||
|
||||
// is rich text
|
||||
IsRichText bool `json:"IsRichText,omitempty"`
|
||||
|
||||
// keywords
|
||||
Keywords string `json:"Keywords,omitempty"`
|
||||
|
||||
// last modified by ID
|
||||
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
|
||||
|
||||
// last modified date
|
||||
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
|
||||
|
||||
// last viewed date
|
||||
LastViewedDate string `json:"LastViewedDate,omitempty"`
|
||||
|
||||
// latst published version ID
|
||||
LatstPublishedVersionID string `json:"LatstPublishedVersionID,omitempty"`
|
||||
|
||||
// like count
|
||||
LikeCount int64 `json:"LikeCount,omitempty"`
|
||||
|
||||
// link URL
|
||||
LinkURL string `json:"LinkURL,omitempty"`
|
||||
|
||||
// linked entity ID
|
||||
LinkedEntityID string `json:"LinkedEntityID,omitempty"`
|
||||
|
||||
// name
|
||||
Name string `json:"Name,omitempty"`
|
||||
|
||||
// namespace prefix
|
||||
NamespacePrefix string `json:"NamespacePrefix,omitempty"`
|
||||
|
||||
// network scope
|
||||
NetworkScope string `json:"NetworkScope,omitempty"`
|
||||
|
||||
// owner ID
|
||||
OwnerID string `json:"OwnerID,omitempty"`
|
||||
|
||||
// parent ID
|
||||
ParentID string `json:"ParentID,omitempty"`
|
||||
|
||||
// publishstatus
|
||||
Publishstatus string `json:"Publishstatus,omitempty"`
|
||||
|
||||
// quote ID
|
||||
QuoteID string `json:"QuoteID,omitempty"`
|
||||
|
||||
// related record ID
|
||||
RelatedRecordID string `json:"RelatedRecordID,omitempty"`
|
||||
|
||||
// share type
|
||||
ShareType string `json:"ShareType,omitempty"`
|
||||
|
||||
// sharing option
|
||||
SharingOption string `json:"SharingOption,omitempty"`
|
||||
|
||||
// sharing privacy
|
||||
SharingPrivacy string `json:"SharingPrivacy,omitempty"`
|
||||
|
||||
// title
|
||||
Title string `json:"Title,omitempty"`
|
||||
|
||||
// type
|
||||
Type string `json:"Type,omitempty"`
|
||||
|
||||
// URL
|
||||
URL string `json:"URL,omitempty"`
|
||||
|
||||
// user ID
|
||||
UserID string `json:"UserID,omitempty"`
|
||||
|
||||
// visibility
|
||||
Visibility string `json:"Visibility,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this document
|
||||
func (m *Document) Validate(formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this document based on context it is used
|
||||
func (m *Document) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *Document) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *Document) UnmarshalBinary(b []byte) error {
|
||||
var res Document
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,203 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// EmailMessage email message
|
||||
//
|
||||
// swagger:model EmailMessage
|
||||
type EmailMessage struct {
|
||||
|
||||
// activity ID
|
||||
ActivityID string `json:"ActivityID,omitempty"`
|
||||
|
||||
// b c c address
|
||||
BCCAddress string `json:"BCCAddress,omitempty"`
|
||||
|
||||
// c c address
|
||||
CCAddress string `json:"CCAddress,omitempty"`
|
||||
|
||||
// created by ID
|
||||
CreatedByID string `json:"CreatedByID,omitempty"`
|
||||
|
||||
// created date
|
||||
CreatedDate string `json:"CreatedDate,omitempty"`
|
||||
|
||||
// email message ID
|
||||
EmailMessageID string `json:"EmailMessageID,omitempty"`
|
||||
|
||||
// from address
|
||||
FromAddress string `json:"FromAddress,omitempty"`
|
||||
|
||||
// from name
|
||||
FromName string `json:"FromName,omitempty"`
|
||||
|
||||
// HTML
|
||||
// Format: byte
|
||||
HTML strfmt.Base64 `json:"HTML,omitempty"`
|
||||
|
||||
// has attachment
|
||||
HasAttachment bool `json:"HasAttachment,omitempty"`
|
||||
|
||||
// headers
|
||||
Headers *Headers `json:"Headers,omitempty"`
|
||||
|
||||
// ID
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
||||
// incoming
|
||||
Incoming bool `json:"Incoming,omitempty"`
|
||||
|
||||
// is client managed
|
||||
IsClientManaged bool `json:"IsClientManaged,omitempty"`
|
||||
|
||||
// is externally managed
|
||||
IsExternallyManaged bool `json:"IsExternallyManaged,omitempty"`
|
||||
|
||||
// last modified by ID
|
||||
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
|
||||
|
||||
// last modified date
|
||||
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
|
||||
|
||||
// message date
|
||||
MessageDate string `json:"MessageDate,omitempty"`
|
||||
|
||||
// message identifier
|
||||
MessageIdentifier string `json:"MessageIdentifier,omitempty"`
|
||||
|
||||
// parent ID
|
||||
ParentID string `json:"ParentID,omitempty"`
|
||||
|
||||
// related to ID
|
||||
RelatedToID string `json:"RelatedToID,omitempty"`
|
||||
|
||||
// relation address
|
||||
RelationAddress string `json:"RelationAddress,omitempty"`
|
||||
|
||||
// relation ID
|
||||
RelationID string `json:"RelationID,omitempty"`
|
||||
|
||||
// relation object type
|
||||
RelationObjectType string `json:"RelationObjectType,omitempty"`
|
||||
|
||||
// relation type
|
||||
RelationType string `json:"RelationType,omitempty"`
|
||||
|
||||
// reply to email message ID
|
||||
ReplyToEmailMessageID string `json:"ReplyToEmailMessageID,omitempty"`
|
||||
|
||||
// status
|
||||
Status string `json:"Status,omitempty"`
|
||||
|
||||
// subject
|
||||
Subject string `json:"Subject,omitempty"`
|
||||
|
||||
// text
|
||||
// Format: byte
|
||||
Text strfmt.Base64 `json:"Text,omitempty"`
|
||||
|
||||
// thread identifier
|
||||
ThreadIdentifier string `json:"ThreadIdentifier,omitempty"`
|
||||
|
||||
// to address
|
||||
ToAddress string `json:"ToAddress,omitempty"`
|
||||
|
||||
// validated from address
|
||||
ValidatedFromAddress string `json:"ValidatedFromAddress,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this email message
|
||||
func (m *EmailMessage) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateHeaders(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EmailMessage) validateHeaders(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Headers) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if m.Headers != nil {
|
||||
if err := m.Headers.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("Headers")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("Headers")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this email message based on the context it is used
|
||||
func (m *EmailMessage) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateHeaders(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EmailMessage) contextValidateHeaders(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.Headers != nil {
|
||||
if err := m.Headers.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("Headers")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("Headers")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *EmailMessage) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *EmailMessage) UnmarshalBinary(b []byte) error {
|
||||
var res EmailMessage
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,166 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// EmailMessageRequest An array Taxnexus Send Email Message objects
|
||||
//
|
||||
// swagger:model EmailMessageRequest
|
||||
type EmailMessageRequest struct {
|
||||
|
||||
// data
|
||||
Data []*EmailMessage `json:"data"`
|
||||
|
||||
// meta
|
||||
Meta *RequestMeta `json:"meta,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this email message request
|
||||
func (m *EmailMessageRequest) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateData(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.validateMeta(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EmailMessageRequest) validateData(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Data) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
if swag.IsZero(m.Data[i]) { // not required
|
||||
continue
|
||||
}
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EmailMessageRequest) validateMeta(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Meta) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this email message request based on the context it is used
|
||||
func (m *EmailMessageRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateData(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.contextValidateMeta(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EmailMessageRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EmailMessageRequest) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *EmailMessageRequest) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *EmailMessageRequest) UnmarshalBinary(b []byte) error {
|
||||
var res EmailMessageRequest
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,166 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// EmailMessagesResponse An array Taxnexus user objects
|
||||
//
|
||||
// swagger:model EmailMessagesResponse
|
||||
type EmailMessagesResponse struct {
|
||||
|
||||
// data
|
||||
Data []*EmailMessage `json:"data"`
|
||||
|
||||
// meta
|
||||
Meta *ResponseMeta `json:"meta,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this email messages response
|
||||
func (m *EmailMessagesResponse) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateData(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.validateMeta(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EmailMessagesResponse) validateData(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Data) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
if swag.IsZero(m.Data[i]) { // not required
|
||||
continue
|
||||
}
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EmailMessagesResponse) validateMeta(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Meta) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this email messages response based on the context it is used
|
||||
func (m *EmailMessagesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateData(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.contextValidateMeta(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EmailMessagesResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *EmailMessagesResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *EmailMessagesResponse) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *EmailMessagesResponse) UnmarshalBinary(b []byte) error {
|
||||
var res EmailMessagesResponse
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,60 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// Error error
|
||||
//
|
||||
// swagger:model Error
|
||||
type Error struct {
|
||||
|
||||
// code
|
||||
Code int32 `json:"Code,omitempty"`
|
||||
|
||||
// fields
|
||||
Fields string `json:"Fields,omitempty"`
|
||||
|
||||
// message
|
||||
Message string `json:"Message,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this error
|
||||
func (m *Error) Validate(formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this error based on context it is used
|
||||
func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *Error) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *Error) UnmarshalBinary(b []byte) error {
|
||||
var res Error
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,57 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// Headers headers
|
||||
//
|
||||
// swagger:model Headers
|
||||
type Headers struct {
|
||||
|
||||
// key
|
||||
Key string `json:"Key,omitempty"`
|
||||
|
||||
// values
|
||||
Values [][]string `json:"Values"`
|
||||
}
|
||||
|
||||
// Validate validates this headers
|
||||
func (m *Headers) Validate(formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this headers based on context it is used
|
||||
func (m *Headers) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *Headers) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *Headers) UnmarshalBinary(b []byte) error {
|
||||
var res Headers
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,153 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// OutgoingEmailMessage A new email message to be sent
|
||||
//
|
||||
// swagger:model OutgoingEmailMessage
|
||||
type OutgoingEmailMessage struct {
|
||||
|
||||
// b c c address
|
||||
BCCAddress string `json:"BCCAddress,omitempty"`
|
||||
|
||||
// c c address
|
||||
CCAddress string `json:"CCAddress,omitempty"`
|
||||
|
||||
// email message ID
|
||||
EmailMessageID string `json:"EmailMessageID,omitempty"`
|
||||
|
||||
// email template ID
|
||||
EmailTemplateID string `json:"EmailTemplateID,omitempty"`
|
||||
|
||||
// external ID
|
||||
ExternalID string `json:"ExternalID,omitempty"`
|
||||
|
||||
// from contact ID
|
||||
FromContactID string `json:"FromContactID,omitempty"`
|
||||
|
||||
// from name
|
||||
FromName string `json:"FromName,omitempty"`
|
||||
|
||||
// HTML
|
||||
HTML string `json:"HTML,omitempty"`
|
||||
|
||||
// headers
|
||||
Headers *Headers `json:"Headers,omitempty"`
|
||||
|
||||
// ID
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
||||
// subject
|
||||
Subject string `json:"Subject,omitempty"`
|
||||
|
||||
// text
|
||||
Text string `json:"Text,omitempty"`
|
||||
|
||||
// to address
|
||||
ToAddress string `json:"ToAddress,omitempty"`
|
||||
|
||||
// to name
|
||||
ToName string `json:"ToName,omitempty"`
|
||||
|
||||
// validated from address
|
||||
ValidatedFromAddress string `json:"ValidatedFromAddress,omitempty"`
|
||||
|
||||
// who ID
|
||||
WhoID string `json:"WhoID,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this outgoing email message
|
||||
func (m *OutgoingEmailMessage) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateHeaders(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OutgoingEmailMessage) validateHeaders(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Headers) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if m.Headers != nil {
|
||||
if err := m.Headers.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("Headers")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("Headers")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this outgoing email message based on the context it is used
|
||||
func (m *OutgoingEmailMessage) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateHeaders(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OutgoingEmailMessage) contextValidateHeaders(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.Headers != nil {
|
||||
if err := m.Headers.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("Headers")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("Headers")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *OutgoingEmailMessage) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *OutgoingEmailMessage) UnmarshalBinary(b []byte) error {
|
||||
var res OutgoingEmailMessage
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,166 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// OutgoingEmailMessageRequest An array Taxnexus New Email Message objects
|
||||
//
|
||||
// swagger:model OutgoingEmailMessageRequest
|
||||
type OutgoingEmailMessageRequest struct {
|
||||
|
||||
// data
|
||||
Data []*OutgoingEmailMessage `json:"data"`
|
||||
|
||||
// meta
|
||||
Meta *RequestMeta `json:"meta,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this outgoing email message request
|
||||
func (m *OutgoingEmailMessageRequest) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateData(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.validateMeta(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OutgoingEmailMessageRequest) validateData(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Data) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
if swag.IsZero(m.Data[i]) { // not required
|
||||
continue
|
||||
}
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OutgoingEmailMessageRequest) validateMeta(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Meta) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this outgoing email message request based on the context it is used
|
||||
func (m *OutgoingEmailMessageRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateData(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.contextValidateMeta(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OutgoingEmailMessageRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *OutgoingEmailMessageRequest) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *OutgoingEmailMessageRequest) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *OutgoingEmailMessageRequest) UnmarshalBinary(b []byte) error {
|
||||
var res OutgoingEmailMessageRequest
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/go-openapi/validate"
|
||||
)
|
||||
|
||||
// RequestMeta request meta
|
||||
//
|
||||
// swagger:model RequestMeta
|
||||
type RequestMeta struct {
|
||||
|
||||
// Taxnexus Account Number of the Reseller or OEM
|
||||
// Required: true
|
||||
TaxnexusAccount *string `json:"TaxnexusAccount"`
|
||||
}
|
||||
|
||||
// Validate validates this request meta
|
||||
func (m *RequestMeta) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateTaxnexusAccount(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *RequestMeta) validateTaxnexusAccount(formats strfmt.Registry) error {
|
||||
|
||||
if err := validate.Required("TaxnexusAccount", "body", m.TaxnexusAccount); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this request meta based on context it is used
|
||||
func (m *RequestMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *RequestMeta) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *RequestMeta) UnmarshalBinary(b []byte) error {
|
||||
var res RequestMeta
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,84 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// ResponseMeta response meta
|
||||
//
|
||||
// swagger:model ResponseMeta
|
||||
type ResponseMeta struct {
|
||||
|
||||
// Microservice Contact Info
|
||||
Contact string `json:"Contact,omitempty"`
|
||||
|
||||
// Copyright Info
|
||||
Copyright string `json:"Copyright,omitempty"`
|
||||
|
||||
// License Information and Restrictions
|
||||
License string `json:"License,omitempty"`
|
||||
|
||||
// Operation ID
|
||||
OperationID string `json:"OperationID,omitempty"`
|
||||
|
||||
// Request IP Address
|
||||
RequestIP string `json:"RequestIP,omitempty"`
|
||||
|
||||
// Request Type
|
||||
RequestType string `json:"RequestType,omitempty"`
|
||||
|
||||
// Request URL
|
||||
RequestURL string `json:"RequestURL,omitempty"`
|
||||
|
||||
// Data Server Info
|
||||
ServerInfo string `json:"ServerInfo,omitempty"`
|
||||
|
||||
// Data Server Response Time (ms)
|
||||
ServerResponseTime string `json:"ServerResponseTime,omitempty"`
|
||||
|
||||
// Backend Server Timestamp
|
||||
ServerTimestamp string `json:"ServerTimestamp,omitempty"`
|
||||
|
||||
// Taxnexus Account Number used for recording transactions
|
||||
TaxnexusAccount string `json:"TaxnexusAccount,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this response meta
|
||||
func (m *ResponseMeta) Validate(formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this response meta based on context it is used
|
||||
func (m *ResponseMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *ResponseMeta) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *ResponseMeta) UnmarshalBinary(b []byte) error {
|
||||
var res ResponseMeta
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,165 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// Task task
|
||||
//
|
||||
// swagger:model Task
|
||||
type Task struct {
|
||||
|
||||
// API Name
|
||||
APIName string `json:"APIName,omitempty"`
|
||||
|
||||
// Account ID
|
||||
AccountID string `json:"AccountID,omitempty"`
|
||||
|
||||
// Due Date
|
||||
ActivityDate string `json:"ActivityDate,omitempty"`
|
||||
|
||||
// Task description body
|
||||
Body string `json:"Body,omitempty"`
|
||||
|
||||
// Call Result
|
||||
CallDisposition bool `json:"CallDisposition,omitempty"`
|
||||
|
||||
// Call Duration
|
||||
CallDurationInSeconds float64 `json:"CallDurationInSeconds,omitempty"`
|
||||
|
||||
// Call Object Identifier
|
||||
CallObject string `json:"CallObject,omitempty"`
|
||||
|
||||
// Call Type
|
||||
CallType string `json:"CallType,omitempty"`
|
||||
|
||||
// Created By
|
||||
CreatedByID string `json:"CreatedByID,omitempty"`
|
||||
|
||||
// Created Date
|
||||
CreatedDate string `json:"CreatedDate,omitempty"`
|
||||
|
||||
// Comments
|
||||
Description string `json:"Description,omitempty"`
|
||||
|
||||
// Taxnexus Record Id
|
||||
ID string `json:"ID,omitempty"`
|
||||
|
||||
// Inserted User Id
|
||||
InsertedByID string `json:"InsertedByID,omitempty"`
|
||||
|
||||
// Is Task Archived?
|
||||
IsArchived bool `json:"IsArchived,omitempty"`
|
||||
|
||||
// Is Task Closed?
|
||||
IsClosed bool `json:"IsClosed,omitempty"`
|
||||
|
||||
// Is Task a High Priority?
|
||||
IsHighPriority bool `json:"IsHighPriority,omitempty"`
|
||||
|
||||
// Create Recurring Series of Tasks
|
||||
IsRecurrence bool `json:"IsRecurrence,omitempty"`
|
||||
|
||||
// Reminder Set
|
||||
IsReminderSet bool `json:"IsReminderSet,omitempty"`
|
||||
|
||||
// Is Rich Text?
|
||||
IsRichText bool `json:"IsRichText,omitempty"`
|
||||
|
||||
// Public
|
||||
IsVisibleInSelfService bool `json:"IsVisibleInSelfService,omitempty"`
|
||||
|
||||
// Is What?
|
||||
IsWhat bool `json:"IsWhat,omitempty"`
|
||||
|
||||
// Last Modified By
|
||||
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
|
||||
|
||||
// Last Modified Date
|
||||
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
|
||||
|
||||
// Like Count
|
||||
LikeCount float64 `json:"LikeCount,omitempty"`
|
||||
|
||||
// Link URL
|
||||
LinkURL string `json:"LinkURL,omitempty"`
|
||||
|
||||
// Master Label
|
||||
MasterLabel string `json:"MasterLabel,omitempty"`
|
||||
|
||||
// Network Scope
|
||||
NetworkScope string `json:"NetworkScope,omitempty"`
|
||||
|
||||
// Task Owner
|
||||
OwnerID string `json:"OwnerID,omitempty"`
|
||||
|
||||
// Task Parent
|
||||
ParentID string `json:"ParentID,omitempty"`
|
||||
|
||||
// Priority
|
||||
Priority string `json:"Priority,omitempty"`
|
||||
|
||||
// Status
|
||||
Status string `json:"Status,omitempty"`
|
||||
|
||||
// Subject
|
||||
Subject string `json:"Subject,omitempty"`
|
||||
|
||||
// Task Subtype
|
||||
TaskSubtype string `json:"TaskSubtype,omitempty"`
|
||||
|
||||
// Title
|
||||
Title string `json:"Title,omitempty"`
|
||||
|
||||
// Type
|
||||
Type string `json:"Type,omitempty"`
|
||||
|
||||
// Visibility
|
||||
Visibility string `json:"Visibility,omitempty"`
|
||||
|
||||
// Related To
|
||||
WhatID string `json:"WhatID,omitempty"`
|
||||
|
||||
// Name
|
||||
WhoID string `json:"WhoID,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this task
|
||||
func (m *Task) Validate(formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this task based on context it is used
|
||||
func (m *Task) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *Task) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *Task) UnmarshalBinary(b []byte) error {
|
||||
var res Task
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,166 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// TaskRequest An array Taxnexus Task objects
|
||||
//
|
||||
// swagger:model TaskRequest
|
||||
type TaskRequest struct {
|
||||
|
||||
// data
|
||||
Data []*Task `json:"data"`
|
||||
|
||||
// meta
|
||||
Meta *RequestMeta `json:"meta,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this task request
|
||||
func (m *TaskRequest) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateData(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.validateMeta(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TaskRequest) validateData(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Data) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
if swag.IsZero(m.Data[i]) { // not required
|
||||
continue
|
||||
}
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TaskRequest) validateMeta(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Meta) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this task request based on the context it is used
|
||||
func (m *TaskRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateData(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.contextValidateMeta(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TaskRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TaskRequest) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *TaskRequest) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *TaskRequest) UnmarshalBinary(b []byte) error {
|
||||
var res TaskRequest
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
|
@ -1,166 +0,0 @@
|
|||
// Code generated by go-swagger; DO NOT EDIT.
|
||||
|
||||
// (c) 2012-2020 by Taxnexus, Inc.
|
||||
// All rights reserved worldwide.
|
||||
// Proprietary product; unlicensed use is not allowed
|
||||
|
||||
package workflow_models
|
||||
|
||||
// This file was generated by the swagger tool.
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
||||
// TaskResponse An array Taxnexus Task objects
|
||||
//
|
||||
// swagger:model TaskResponse
|
||||
type TaskResponse struct {
|
||||
|
||||
// data
|
||||
Data []*Task `json:"data"`
|
||||
|
||||
// meta
|
||||
Meta *ResponseMeta `json:"meta,omitempty"`
|
||||
}
|
||||
|
||||
// Validate validates this task response
|
||||
func (m *TaskResponse) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateData(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.validateMeta(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TaskResponse) validateData(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Data) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
if swag.IsZero(m.Data[i]) { // not required
|
||||
continue
|
||||
}
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TaskResponse) validateMeta(formats strfmt.Registry) error {
|
||||
if swag.IsZero(m.Meta) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this task response based on the context it is used
|
||||
func (m *TaskResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateData(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.contextValidateMeta(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TaskResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Data); i++ {
|
||||
|
||||
if m.Data[i] != nil {
|
||||
if err := m.Data[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("data" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TaskResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.Meta != nil {
|
||||
if err := m.Meta.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("meta")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("meta")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *TaskResponse) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return swag.WriteJSON(m)
|
||||
}
|
||||
|
||||
// UnmarshalBinary interface implementation
|
||||
func (m *TaskResponse) UnmarshalBinary(b []byte) error {
|
||||
var res TaskResponse
|
||||
if err := swag.ReadJSON(b, &res); err != nil {
|
||||
return err
|
||||
}
|
||||
*m = res
|
||||
return nil
|
||||
}
|
6
go.mod
6
go.mod
|
@ -9,10 +9,10 @@ require (
|
|||
github.com/go-openapi/spec v0.20.6 // indirect
|
||||
github.com/go-openapi/strfmt v0.21.2
|
||||
github.com/go-openapi/swag v0.21.1
|
||||
github.com/go-openapi/validate v0.21.0
|
||||
github.com/go-openapi/validate v0.22.0
|
||||
github.com/go-sql-driver/mysql v1.6.0
|
||||
github.com/prometheus/client_golang v1.12.2
|
||||
github.com/prometheus/common v0.34.0 // indirect
|
||||
github.com/prometheus/common v0.35.0 // indirect
|
||||
github.com/rs/cors v1.8.2
|
||||
github.com/spf13/viper v1.12.0
|
||||
github.com/taxnexus/go-force v1.0.7
|
||||
|
@ -20,6 +20,6 @@ require (
|
|||
go.uber.org/atomic v1.9.0 // indirect
|
||||
go.uber.org/multierr v1.8.0 // indirect
|
||||
go.uber.org/zap v1.21.0
|
||||
golang.org/x/net v0.0.0-20220526153639-5463443f8c37 // indirect
|
||||
golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
|
11
go.sum
11
go.sum
|
@ -167,8 +167,9 @@ github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh
|
|||
github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ=
|
||||
github.com/go-openapi/swag v0.21.1 h1:wm0rhTb5z7qpJRHBdPOMuY4QjVUMbF6/kwoYeRAOrKU=
|
||||
github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ=
|
||||
github.com/go-openapi/validate v0.21.0 h1:+Wqk39yKOhfpLqNLEC0/eViCkzM5FVXVqrvt526+wcI=
|
||||
github.com/go-openapi/validate v0.21.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg=
|
||||
github.com/go-openapi/validate v0.22.0 h1:b0QecH6VslW/TxtpKgzpO1SNG7GU2FsaqKdP1E2T50Y=
|
||||
github.com/go-openapi/validate v0.22.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg=
|
||||
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
|
||||
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
|
||||
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
||||
|
@ -432,8 +433,8 @@ github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8b
|
|||
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
|
||||
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
|
||||
github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls=
|
||||
github.com/prometheus/common v0.34.0 h1:RBmGO9d/FVjqHT0yUGQwBJhkwKV+wPCn7KGpvfab0uE=
|
||||
github.com/prometheus/common v0.34.0/go.mod h1:gB3sOl7P0TvJabZpLY5uQMpUqRCPPCyRLCZYc7JZTNE=
|
||||
github.com/prometheus/common v0.35.0 h1:Eyr+Pw2VymWejHqCugNaQXkAi6KayVNxaHeu6khmFBE=
|
||||
github.com/prometheus/common v0.35.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA=
|
||||
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
|
||||
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
|
||||
github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
|
||||
|
@ -623,8 +624,8 @@ golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su
|
|||
golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
||||
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
||||
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
||||
golang.org/x/net v0.0.0-20220526153639-5463443f8c37 h1:lUkvobShwKsOesNfWWlCS5q7fnbG1MEliIzwu886fn8=
|
||||
golang.org/x/net v0.0.0-20220526153639-5463443f8c37/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||
golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc=
|
||||
golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
swagger: "2.0"
|
||||
info:
|
||||
version: "0.0.1"
|
||||
version: 0.0.2
|
||||
title: "auth"
|
||||
description: "Authentication Microservice"
|
||||
termsOfService: "http://taxnexus.net/terms/"
|
||||
|
@ -59,8 +59,7 @@ paths:
|
|||
get:
|
||||
summary: "Check API Key"
|
||||
operationId: "getUsers"
|
||||
description:
|
||||
"Checks for a valid API key, and returns full user record"
|
||||
description: "Checks for a valid API key, and returns full user record"
|
||||
parameters:
|
||||
- $ref: "#/parameters/apiKeyQuery"
|
||||
tags:
|
||||
|
@ -146,8 +145,7 @@ definitions:
|
|||
description: Backend Server Timestamp
|
||||
type: string
|
||||
TaxnexusAccount:
|
||||
description:
|
||||
Taxnexus Account Number used for recording transactions
|
||||
description: Taxnexus Account Number used for recording transactions
|
||||
type: string
|
||||
type: object
|
||||
User:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
swagger: "2.0"
|
||||
info:
|
||||
version: "1.2.7"
|
||||
version: 0.0.2
|
||||
title: "auth0"
|
||||
description: "Auth0 Swagger Definition"
|
||||
termsOfService: "http://taxnexus.net/terms/"
|
||||
|
|
|
@ -7,7 +7,7 @@ info:
|
|||
email: noc@taxnexus.net
|
||||
license:
|
||||
name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc."
|
||||
version: 0.0.1
|
||||
version: 0.0.2
|
||||
schemes:
|
||||
- http
|
||||
host: "board.vernonkeenan.com:8080"
|
||||
|
@ -151,8 +151,7 @@ paths:
|
|||
- cors
|
||||
"/userauths/{usernamePath}":
|
||||
get:
|
||||
description:
|
||||
Return a single UserAuth object from datastore as a Singleton
|
||||
description: Return a single UserAuth object from datastore as a Singleton
|
||||
operationId: getUserAuth
|
||||
parameters:
|
||||
- $ref: "#/parameters/usernamePath"
|
||||
|
@ -218,8 +217,7 @@ definitions:
|
|||
description: Active
|
||||
type: boolean
|
||||
AdministrativeLevel:
|
||||
description:
|
||||
"For tax authorities, this account's administrative level,
|
||||
description: "For tax authorities, this account's administrative level,
|
||||
e.g. Local, County, State or Federal"
|
||||
type: string
|
||||
Amount:
|
||||
|
@ -390,8 +388,7 @@ definitions:
|
|||
description: Phone
|
||||
type: string
|
||||
PlaceID:
|
||||
description:
|
||||
The ID of the Place situs record that applies to this Account
|
||||
description: The ID of the Place situs record that applies to this Account
|
||||
type: string
|
||||
PreparerID:
|
||||
description: Tax Preparer Contact ID
|
||||
|
@ -650,8 +647,7 @@ definitions:
|
|||
description: Is this database active?
|
||||
type: boolean
|
||||
ClusterID:
|
||||
description:
|
||||
The ID of the Cluster in which this database is deployed
|
||||
description: The ID of the Cluster in which this database is deployed
|
||||
type: string
|
||||
CreatedByID:
|
||||
description: Created By
|
||||
|
@ -675,8 +671,7 @@ definitions:
|
|||
description: Last Modifed Date
|
||||
type: string
|
||||
Microservices:
|
||||
description:
|
||||
List of Taxnexus microservices implemented by this Database
|
||||
description: List of Taxnexus microservices implemented by this Database
|
||||
type: string
|
||||
Status:
|
||||
description: The current status of this Tenant
|
||||
|
@ -969,8 +964,7 @@ definitions:
|
|||
description: The type of Tenant
|
||||
type: string
|
||||
Version:
|
||||
description:
|
||||
The version number of the Tenant Onboarding system used to
|
||||
description: The version number of the Tenant Onboarding system used to
|
||||
create this tenant
|
||||
type: string
|
||||
type: object
|
||||
|
@ -1352,8 +1346,7 @@ responses:
|
|||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
DeleteResponse:
|
||||
description:
|
||||
Taxnexus Response with Message Objects with Delete Status
|
||||
description: Taxnexus Response with Message Objects with Delete Status
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
swagger: "2.0"
|
||||
info:
|
||||
version: 0.0.1
|
||||
version: 0.0.2
|
||||
title: "crm"
|
||||
description: "Customer Information Microservice"
|
||||
termsOfService: "http://taxnexus.net/terms/"
|
||||
|
@ -223,8 +223,7 @@ responses:
|
|||
$ref: "#/definitions/Lead"
|
||||
type: array
|
||||
DeleteResponse:
|
||||
description:
|
||||
Taxnexus Response with Message Objects with Delete Status
|
||||
description: Taxnexus Response with Message Objects with Delete Status
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
|
@ -848,14 +847,13 @@ definitions:
|
|||
description: Account Number
|
||||
type: string
|
||||
AccountSource:
|
||||
description: The marketing orgin of this account
|
||||
description: The marketing origin of this account
|
||||
type: string
|
||||
Active:
|
||||
description: Active
|
||||
type: boolean
|
||||
AdministrativeLevel:
|
||||
description:
|
||||
"For tax authorities, this account's administrative level,
|
||||
description: "For tax authorities, this account's administrative level,
|
||||
e.g. Local, County, State or Federal"
|
||||
type: string
|
||||
Amount:
|
||||
|
@ -1026,8 +1024,7 @@ definitions:
|
|||
description: Phone
|
||||
type: string
|
||||
PlaceID:
|
||||
description:
|
||||
The ID of the Place situs record that applies to this Account
|
||||
description: The ID of the Place situs record that applies to this Account
|
||||
type: string
|
||||
PreparerID:
|
||||
description: Tax Preparer Contact ID
|
||||
|
@ -1064,7 +1061,7 @@ definitions:
|
|||
ShippingCensusTract:
|
||||
description: Shipping Census Tract
|
||||
type: string
|
||||
ShippingConactID:
|
||||
ShippingContactID:
|
||||
description: Shipping Contact ID
|
||||
type: string
|
||||
ShippingCounty:
|
||||
|
@ -1136,8 +1133,7 @@ definitions:
|
|||
description: Taxnexus OEM/Reseller Record Id
|
||||
type: string
|
||||
CoordinateID:
|
||||
description:
|
||||
The id of the Coordinate of the business establishment
|
||||
description: The id of the Coordinate of the business establishment
|
||||
type: string
|
||||
CustomerID:
|
||||
description: Taxpayer Customer Id designated by OEM/Reseller
|
||||
|
@ -1167,8 +1163,7 @@ definitions:
|
|||
description: Taxpayer Account Name (ignored for Tax Processing)
|
||||
type: string
|
||||
ParentFK:
|
||||
description:
|
||||
UUID Reference the master record that owns this item
|
||||
description: UUID Reference the master record that owns this item
|
||||
type: string
|
||||
Phone:
|
||||
description: Taxpayer Public Phone Number
|
||||
|
@ -1182,7 +1177,7 @@ definitions:
|
|||
ShippingAddress:
|
||||
$ref: "#/definitions/Address"
|
||||
description: Shipping Address
|
||||
ShippingConactID:
|
||||
ShippingContactID:
|
||||
description: Contact ID
|
||||
type: string
|
||||
Site:
|
||||
|
@ -1599,8 +1594,7 @@ definitions:
|
|||
description: Backend Server Timestamp
|
||||
type: string
|
||||
TaxnexusAccount:
|
||||
description:
|
||||
Taxnexus Account Number used for recording transactions
|
||||
description: Taxnexus Account Number used for recording transactions
|
||||
type: string
|
||||
type: object
|
||||
Contract:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
swagger: "2.0"
|
||||
info:
|
||||
version: 0.0.1
|
||||
version: 0.0.2
|
||||
title: "devops"
|
||||
description: "System Operations Microservice"
|
||||
termsOfService: "http://taxnexus.net/terms/"
|
||||
|
@ -93,8 +93,7 @@ parameters:
|
|||
required: false
|
||||
type: string
|
||||
accountNumberQuery:
|
||||
description:
|
||||
The Taxnexus Account Number of the Account to be used a record
|
||||
description: The Taxnexus Account Number of the Account to be used a record
|
||||
retrieval
|
||||
in: query
|
||||
name: accountNumber
|
||||
|
@ -277,8 +276,7 @@ responses:
|
|||
schema:
|
||||
$ref: "#/definitions/ClusterResponse"
|
||||
DeveopsDeleteResponse:
|
||||
description:
|
||||
Taxnexus Response with Message Objects with Delete Status
|
||||
description: Taxnexus Response with Message Objects with Delete Status
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
|
@ -559,8 +557,7 @@ paths:
|
|||
- cors
|
||||
"/clusters/{clusterIdPath}":
|
||||
get:
|
||||
description:
|
||||
Return a single Cluster object from datastore as a Singleton
|
||||
description: Return a single Cluster object from datastore as a Singleton
|
||||
operationId: getCluster
|
||||
parameters:
|
||||
- $ref: "#/parameters/clusterIdPath"
|
||||
|
@ -695,8 +692,7 @@ paths:
|
|||
- cors
|
||||
"/databases/{databaseIdPath}":
|
||||
get:
|
||||
description:
|
||||
Return a single Database object from datastore as a Singleton
|
||||
description: Return a single Database object from datastore as a Singleton
|
||||
operationId: getDatabase
|
||||
parameters:
|
||||
- $ref: "#/parameters/databaseIdPath"
|
||||
|
@ -810,8 +806,7 @@ paths:
|
|||
- cors
|
||||
"/templates/{templateIdPath}":
|
||||
get:
|
||||
description:
|
||||
Return a single Template object from datastore as a Singleton
|
||||
description: Return a single Template object from datastore as a Singleton
|
||||
operationId: getTemplate
|
||||
parameters:
|
||||
- $ref: "#/parameters/templateIdPath"
|
||||
|
@ -947,8 +942,7 @@ paths:
|
|||
- cors
|
||||
"/tenants/{tenantIdPath}":
|
||||
get:
|
||||
description:
|
||||
Return a single Tenant object from datastore as a Singleton
|
||||
description: Return a single Tenant object from datastore as a Singleton
|
||||
operationId: getTenant
|
||||
parameters:
|
||||
- $ref: "#/parameters/tenantIdPath"
|
||||
|
@ -1087,8 +1081,7 @@ paths:
|
|||
- cors
|
||||
"/users/{userIdPath}":
|
||||
get:
|
||||
description:
|
||||
Return a single User object from datastore as a Singleton
|
||||
description: Return a single User object from datastore as a Singleton
|
||||
operationId: getUser
|
||||
parameters:
|
||||
- $ref: "#/parameters/userIdPath"
|
||||
|
@ -1213,8 +1206,7 @@ definitions:
|
|||
description: Is this database active?
|
||||
type: boolean
|
||||
ClusterID:
|
||||
description:
|
||||
The ID of the Cluster in which this database is deployed
|
||||
description: The ID of the Cluster in which this database is deployed
|
||||
type: string
|
||||
CreatedByID:
|
||||
description: Created By
|
||||
|
@ -1351,8 +1343,7 @@ definitions:
|
|||
description: Backend Server Timestamp
|
||||
type: string
|
||||
TaxnexusAccount:
|
||||
description:
|
||||
Taxnexus Account Number used for recording transactions
|
||||
description: Taxnexus Account Number used for recording transactions
|
||||
type: string
|
||||
type: object
|
||||
Role:
|
||||
|
@ -1516,8 +1507,7 @@ definitions:
|
|||
description: The type of Tenant
|
||||
type: string
|
||||
Version:
|
||||
description:
|
||||
The version number of the Tenant Onboarding system used to
|
||||
description: The version number of the Tenant Onboarding system used to
|
||||
create this tenant
|
||||
type: string
|
||||
type: object
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
swagger: "2.0"
|
||||
info:
|
||||
version: 0.0.1
|
||||
version: 0.0.2
|
||||
title: "research"
|
||||
description: "Customer Information Microservice"
|
||||
termsOfService: "http://taxnexus.net/terms/"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
swagger: "2.0"
|
||||
info:
|
||||
version: 0.0.1
|
||||
version: 0.0.2
|
||||
title: "sf-gate"
|
||||
description: "Customer Information Microservice"
|
||||
termsOfService: "http://taxnexus.net/terms/"
|
||||
|
@ -195,8 +195,7 @@ responses:
|
|||
schema:
|
||||
$ref: "#/definitions/DatabaseResponse"
|
||||
DeleteResponse:
|
||||
description:
|
||||
Taxnexus Response with Message Objects with Delete Status
|
||||
description: Taxnexus Response with Message Objects with Delete Status
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
|
@ -765,8 +764,7 @@ definitions:
|
|||
description: Active
|
||||
type: boolean
|
||||
administrativelevel:
|
||||
description:
|
||||
"For tax authorities, this account's administrative level,
|
||||
description: "For tax authorities, this account's administrative level,
|
||||
e.g. Local, County, State or Federal"
|
||||
type: string
|
||||
amount:
|
||||
|
@ -932,8 +930,7 @@ definitions:
|
|||
description: Phone
|
||||
type: string
|
||||
placeid:
|
||||
description:
|
||||
The ID of the Place situs record that applies to this Account
|
||||
description: The ID of the Place situs record that applies to this Account
|
||||
type: string
|
||||
preparerid:
|
||||
description: Tax Preparer Contact ID
|
||||
|
@ -1416,8 +1413,7 @@ definitions:
|
|||
description: Is this database active?
|
||||
type: boolean
|
||||
clusterid:
|
||||
description:
|
||||
The ID of the Cluster in which this database is deployed
|
||||
description: The ID of the Cluster in which this database is deployed
|
||||
type: string
|
||||
createdbyid:
|
||||
description: Created By
|
||||
|
@ -1441,8 +1437,7 @@ definitions:
|
|||
description: Last Modifed Date
|
||||
type: string
|
||||
microservices:
|
||||
description:
|
||||
List of Taxnexus microservices implemented by this Database
|
||||
description: List of Taxnexus microservices implemented by this Database
|
||||
type: string
|
||||
status:
|
||||
description: The current status of this Tenant
|
||||
|
@ -1569,8 +1564,7 @@ definitions:
|
|||
description: Backend Server Timestamp
|
||||
type: string
|
||||
TaxnexusAccount:
|
||||
description:
|
||||
Taxnexus Account Number used for recording transactions
|
||||
description: Taxnexus Account Number used for recording transactions
|
||||
type: string
|
||||
type: object
|
||||
TenantRequest:
|
||||
|
@ -1750,8 +1744,7 @@ definitions:
|
|||
description: Type of tenant
|
||||
version:
|
||||
type: string
|
||||
description:
|
||||
The version number of the Tenant Onboarding system used to
|
||||
description: The version number of the Tenant Onboarding system used to
|
||||
create this tenant
|
||||
databases:
|
||||
items:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
swagger: "2.0"
|
||||
info:
|
||||
version: 0.0.1
|
||||
version: 0.0.2
|
||||
title: "stash"
|
||||
description: "PDF Storage Microservice"
|
||||
termsOfService: "http://taxnexus.net/terms/"
|
||||
|
@ -210,7 +210,6 @@ definitions:
|
|||
description: Backend Server Timestamp
|
||||
type: string
|
||||
TaxnexusAccount:
|
||||
description:
|
||||
Taxnexus Account Number used for recording transactions
|
||||
description: Taxnexus Account Number used for recording transactions
|
||||
type: string
|
||||
type: object
|
||||
|
|
|
@ -1,796 +0,0 @@
|
|||
swagger: "2.0"
|
||||
info:
|
||||
version: 0.0.1
|
||||
title: "workflow"
|
||||
description: "Workflow Microservice"
|
||||
termsOfService: "http://taxnexus.net/terms/"
|
||||
contact:
|
||||
email: "noc@taxnexus.net"
|
||||
license:
|
||||
name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc."
|
||||
securityDefinitions:
|
||||
ApiKeyAuth:
|
||||
type: "apiKey"
|
||||
in: "header"
|
||||
name: "X-API-Key"
|
||||
schemes:
|
||||
- "http"
|
||||
basePath: "/v1"
|
||||
host: "workflow.vernonkeenan.com:8080"
|
||||
consumes:
|
||||
- "application/json"
|
||||
produces:
|
||||
- "application/json"
|
||||
parameters:
|
||||
emailMessageIdQuery:
|
||||
description: Email Message ID
|
||||
in: query
|
||||
name: emailMessageId
|
||||
type: string
|
||||
taskIdQuery:
|
||||
description: Email Message ID
|
||||
in: query
|
||||
name: taskId
|
||||
type: string
|
||||
OutgoingEmailMessageRequest:
|
||||
description: An array of new Outgoing Email Message records
|
||||
in: body
|
||||
name: OutgoingEmailMessageRequest
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/OutgoingEmailMessageRequest"
|
||||
AppLogRequest:
|
||||
description: An array of new AppLog records
|
||||
in: body
|
||||
name: AppLogRequest
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/AppLogRequest"
|
||||
TaskRequest:
|
||||
description: An array of new Task records
|
||||
in: body
|
||||
name: TaskRequest
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/definitions/TaskRequest"
|
||||
responses:
|
||||
AppLogResponse:
|
||||
description: "Array of AppLogs"
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/AppLogResponse"
|
||||
EmailMessagesResponse:
|
||||
description: "Array of Email Messages"
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/EmailMessagesResponse"
|
||||
TaskResponse:
|
||||
description: Array of Tasks
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/TaskResponse"
|
||||
AccessForbidden:
|
||||
description: "Access forbidden, account lacks access"
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
NotFound:
|
||||
description: Resource was not found
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
ServerError:
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
description: Server Internal Error
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
Unauthorized:
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
description: "Access Unauthorized, invalid API-KEY was used"
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
UnprocessableEntity:
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
description: "Unprocessable Entity, likely a bad parameter"
|
||||
schema:
|
||||
$ref: "#/definitions/Error"
|
||||
CORSResponse:
|
||||
description: CORS OPTIONS response
|
||||
headers:
|
||||
Access-Control-Allow-Origin:
|
||||
type: string
|
||||
Access-Control-Allow-Headers:
|
||||
type: string
|
||||
Access-Control-Allow-Methods:
|
||||
type: string
|
||||
Access-Control-Expose-Headers:
|
||||
type: string
|
||||
Access-Control-Max-Age:
|
||||
type: string
|
||||
Access-Control-Allow-Credentials:
|
||||
type: string
|
||||
Cache-Control:
|
||||
type: string
|
||||
paths:
|
||||
/applogs:
|
||||
options:
|
||||
operationId: appLogOptions
|
||||
description: CORS support
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/CORSResponse"
|
||||
tags:
|
||||
- cors
|
||||
post:
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Post app log messages
|
||||
operationId: postAppLogs
|
||||
description: Insert app log messages into workflow storage
|
||||
parameters:
|
||||
- $ref: "#/parameters/AppLogRequest"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/AppLogResponse"
|
||||
"401":
|
||||
$ref: "#/responses/Unauthorized"
|
||||
"403":
|
||||
$ref: "#/responses/AccessForbidden"
|
||||
"404":
|
||||
$ref: "#/responses/NotFound"
|
||||
"422":
|
||||
$ref: "#/responses/UnprocessableEntity"
|
||||
"500":
|
||||
$ref: "#/responses/ServerError"
|
||||
tags:
|
||||
- AppLog
|
||||
/tasks:
|
||||
options:
|
||||
operationId: taskOptions
|
||||
description: CORS support
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/CORSResponse"
|
||||
tags:
|
||||
- cors
|
||||
get:
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: "Get tasks from data store"
|
||||
operationId: getTasks
|
||||
description: "Retrieves tasks from workflow storage"
|
||||
parameters:
|
||||
- $ref: "#/parameters/taskIdQuery"
|
||||
tags:
|
||||
- Task
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/TaskResponse"
|
||||
"401":
|
||||
$ref: "#/responses/Unauthorized"
|
||||
"403":
|
||||
$ref: "#/responses/AccessForbidden"
|
||||
"404":
|
||||
$ref: "#/responses/NotFound"
|
||||
"422":
|
||||
$ref: "#/responses/UnprocessableEntity"
|
||||
"500":
|
||||
$ref: "#/responses/ServerError"
|
||||
post:
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Insert new tasks
|
||||
operationId: postTasks
|
||||
description: Insert new tasks into workflow storage
|
||||
parameters:
|
||||
- $ref: "#/parameters/TaskRequest"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/EmailMessagesResponse"
|
||||
"401":
|
||||
$ref: "#/responses/Unauthorized"
|
||||
"403":
|
||||
$ref: "#/responses/AccessForbidden"
|
||||
"404":
|
||||
$ref: "#/responses/NotFound"
|
||||
"422":
|
||||
$ref: "#/responses/UnprocessableEntity"
|
||||
"500":
|
||||
$ref: "#/responses/ServerError"
|
||||
tags:
|
||||
- Task
|
||||
/emailmessages:
|
||||
options:
|
||||
operationId: emailMessageOptions
|
||||
description: CORS support
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/CORSResponse"
|
||||
tags:
|
||||
- cors
|
||||
get:
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: "Get email messages from data store"
|
||||
operationId: getEmailMessages
|
||||
description: "Retrieves email messages from workflow storage"
|
||||
parameters:
|
||||
- $ref: "#/parameters/emailMessageIdQuery"
|
||||
tags:
|
||||
- "EmailMessage"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/EmailMessagesResponse"
|
||||
"401":
|
||||
$ref: "#/responses/Unauthorized"
|
||||
"403":
|
||||
$ref: "#/responses/AccessForbidden"
|
||||
"404":
|
||||
$ref: "#/responses/NotFound"
|
||||
"422":
|
||||
$ref: "#/responses/UnprocessableEntity"
|
||||
"500":
|
||||
$ref: "#/responses/ServerError"
|
||||
/outgoingemailmessages:
|
||||
options:
|
||||
operationId: outgoingEmailMessageOptions
|
||||
description: CORS support
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/CORSResponse"
|
||||
tags:
|
||||
- cors
|
||||
post:
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
summary: Add new email messages to the outgoing queue
|
||||
operationId: postOutgoingEmailMessages
|
||||
description: Insert new email messages into workflow storage
|
||||
parameters:
|
||||
- $ref: "#/parameters/OutgoingEmailMessageRequest"
|
||||
responses:
|
||||
"200":
|
||||
$ref: "#/responses/EmailMessagesResponse"
|
||||
"401":
|
||||
$ref: "#/responses/Unauthorized"
|
||||
"403":
|
||||
$ref: "#/responses/AccessForbidden"
|
||||
"404":
|
||||
$ref: "#/responses/NotFound"
|
||||
"422":
|
||||
$ref: "#/responses/UnprocessableEntity"
|
||||
"500":
|
||||
$ref: "#/responses/ServerError"
|
||||
tags:
|
||||
- OutgoingEmailMessage
|
||||
definitions:
|
||||
AppLog:
|
||||
description: Application Log for human consumption
|
||||
properties:
|
||||
AccountID:
|
||||
type: string
|
||||
CompanyID:
|
||||
type: string
|
||||
CreatedByID:
|
||||
type: string
|
||||
CreatedDate:
|
||||
type: string
|
||||
ID:
|
||||
type: string
|
||||
Message:
|
||||
type: string
|
||||
ObjectID:
|
||||
type: string
|
||||
ObjectType:
|
||||
type: string
|
||||
Severity:
|
||||
type: string
|
||||
Source:
|
||||
type: string
|
||||
SourceTimestamp:
|
||||
type: string
|
||||
type: object
|
||||
AppLogRequest:
|
||||
description: An array Taxnexus Application Log objects
|
||||
properties:
|
||||
data:
|
||||
items:
|
||||
$ref: "#/definitions/AppLog"
|
||||
type: array
|
||||
meta:
|
||||
$ref: "#/definitions/RequestMeta"
|
||||
type: object
|
||||
AppLogResponse:
|
||||
description: An array Taxnexus Application Log objects
|
||||
properties:
|
||||
data:
|
||||
items:
|
||||
$ref: "#/definitions/AppLog"
|
||||
type: array
|
||||
meta:
|
||||
$ref: "#/definitions/ResponseMeta"
|
||||
type: object
|
||||
Document:
|
||||
description: Taxnexus Document
|
||||
properties:
|
||||
ArchivedByID:
|
||||
type: string
|
||||
ArchivedDate:
|
||||
type: string
|
||||
AuthorID:
|
||||
type: string
|
||||
Body:
|
||||
format: byte
|
||||
type: string
|
||||
BodyLength:
|
||||
format: int64
|
||||
type: number
|
||||
CommentCount:
|
||||
format: int64
|
||||
type: number
|
||||
ConnectionID:
|
||||
type: string
|
||||
ContentAssetID:
|
||||
type: string
|
||||
ContentModificationDate:
|
||||
type: string
|
||||
ContentSize:
|
||||
format: int64
|
||||
type: number
|
||||
ContentType:
|
||||
type: string
|
||||
ContentVersionDocumentID:
|
||||
type: string
|
||||
ContnetDocumentID:
|
||||
type: string
|
||||
CreatedByID:
|
||||
type: string
|
||||
CreatedDate:
|
||||
type: string
|
||||
DDate:
|
||||
type: string
|
||||
Description:
|
||||
type: string
|
||||
DeveloperName:
|
||||
type: string
|
||||
Discount:
|
||||
type: number
|
||||
Document:
|
||||
format: byte
|
||||
type: string
|
||||
DocumentID:
|
||||
type: string
|
||||
DocumentSequence:
|
||||
format: int64
|
||||
type: number
|
||||
Field:
|
||||
type: string
|
||||
FileExtension:
|
||||
type: string
|
||||
FileType:
|
||||
type: string
|
||||
FolderID:
|
||||
type: string
|
||||
GrandTotal:
|
||||
type: string
|
||||
ID:
|
||||
type: string
|
||||
InsertedByID:
|
||||
type: string
|
||||
IsArchived:
|
||||
type: boolean
|
||||
IsBodySearchable:
|
||||
type: boolean
|
||||
IsCommentSub:
|
||||
type: boolean
|
||||
IsDocumentSub:
|
||||
type: boolean
|
||||
IsInternalUseOnly:
|
||||
type: boolean
|
||||
IsPublic:
|
||||
type: boolean
|
||||
IsRichText:
|
||||
type: boolean
|
||||
Keywords:
|
||||
type: string
|
||||
LastModifiedByID:
|
||||
type: string
|
||||
LastModifiedDate:
|
||||
type: string
|
||||
LastViewedDate:
|
||||
type: string
|
||||
LatstPublishedVersionID:
|
||||
type: string
|
||||
LikeCount:
|
||||
format: int64
|
||||
type: number
|
||||
LinkURL:
|
||||
type: string
|
||||
LinkedEntityID:
|
||||
type: string
|
||||
Name:
|
||||
type: string
|
||||
NamespacePrefix:
|
||||
type: string
|
||||
NetworkScope:
|
||||
type: string
|
||||
OwnerID:
|
||||
type: string
|
||||
ParentID:
|
||||
type: string
|
||||
Publishstatus:
|
||||
type: string
|
||||
QuoteID:
|
||||
type: string
|
||||
RelatedRecordID:
|
||||
type: string
|
||||
ShareType:
|
||||
type: string
|
||||
SharingOption:
|
||||
type: string
|
||||
SharingPrivacy:
|
||||
type: string
|
||||
Title:
|
||||
type: string
|
||||
Type:
|
||||
type: string
|
||||
URL:
|
||||
type: string
|
||||
UserID:
|
||||
type: string
|
||||
Visibility:
|
||||
type: string
|
||||
type: object
|
||||
EmailMessage:
|
||||
properties:
|
||||
ActivityID:
|
||||
type: string
|
||||
BCCAddress:
|
||||
type: string
|
||||
CCAddress:
|
||||
type: string
|
||||
CreatedByID:
|
||||
type: string
|
||||
CreatedDate:
|
||||
type: string
|
||||
EmailMessageID:
|
||||
type: string
|
||||
FromAddress:
|
||||
type: string
|
||||
FromName:
|
||||
type: string
|
||||
HTML:
|
||||
format: byte
|
||||
type: string
|
||||
HasAttachment:
|
||||
type: boolean
|
||||
Headers:
|
||||
$ref: "#/definitions/Headers"
|
||||
ID:
|
||||
type: string
|
||||
Incoming:
|
||||
type: boolean
|
||||
IsClientManaged:
|
||||
type: boolean
|
||||
IsExternallyManaged:
|
||||
type: boolean
|
||||
LastModifiedByID:
|
||||
type: string
|
||||
LastModifiedDate:
|
||||
type: string
|
||||
MessageDate:
|
||||
type: string
|
||||
MessageIdentifier:
|
||||
type: string
|
||||
ParentID:
|
||||
type: string
|
||||
RelatedToID:
|
||||
type: string
|
||||
RelationAddress:
|
||||
type: string
|
||||
RelationID:
|
||||
type: string
|
||||
RelationObjectType:
|
||||
type: string
|
||||
RelationType:
|
||||
type: string
|
||||
ReplyToEmailMessageID:
|
||||
type: string
|
||||
Status:
|
||||
type: string
|
||||
Subject:
|
||||
type: string
|
||||
Text:
|
||||
format: byte
|
||||
type: string
|
||||
ThreadIdentifier:
|
||||
type: string
|
||||
ToAddress:
|
||||
type: string
|
||||
ValidatedFromAddress:
|
||||
type: string
|
||||
type: object
|
||||
EmailMessageRequest:
|
||||
description: An array Taxnexus Send Email Message objects
|
||||
properties:
|
||||
data:
|
||||
items:
|
||||
$ref: "#/definitions/EmailMessage"
|
||||
type: array
|
||||
meta:
|
||||
$ref: "#/definitions/RequestMeta"
|
||||
type: object
|
||||
EmailMessagesResponse:
|
||||
description: An array Taxnexus user objects
|
||||
properties:
|
||||
data:
|
||||
items:
|
||||
$ref: "#/definitions/EmailMessage"
|
||||
type: array
|
||||
meta:
|
||||
$ref: "#/definitions/ResponseMeta"
|
||||
type: object
|
||||
Error:
|
||||
properties:
|
||||
Code:
|
||||
format: int32
|
||||
type: integer
|
||||
Fields:
|
||||
type: string
|
||||
Message:
|
||||
type: string
|
||||
type: object
|
||||
Headers:
|
||||
type: object
|
||||
properties:
|
||||
Key:
|
||||
type: string
|
||||
Values:
|
||||
items:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: array
|
||||
OutgoingEmailMessage:
|
||||
description: A new email message to be sent
|
||||
properties:
|
||||
BCCAddress:
|
||||
type: string
|
||||
CCAddress:
|
||||
type: string
|
||||
EmailMessageID:
|
||||
type: string
|
||||
EmailTemplateID:
|
||||
type: string
|
||||
ExternalID:
|
||||
type: string
|
||||
FromContactID:
|
||||
type: string
|
||||
FromName:
|
||||
type: string
|
||||
Headers:
|
||||
$ref: "#/definitions/Headers"
|
||||
HTML:
|
||||
type: string
|
||||
ID:
|
||||
type: string
|
||||
Subject:
|
||||
type: string
|
||||
Text:
|
||||
type: string
|
||||
ToAddress:
|
||||
type: string
|
||||
ToName:
|
||||
type: string
|
||||
ValidatedFromAddress:
|
||||
type: string
|
||||
WhoID:
|
||||
type: string
|
||||
type: object
|
||||
OutgoingEmailMessageRequest:
|
||||
description: An array Taxnexus New Email Message objects
|
||||
properties:
|
||||
data:
|
||||
items:
|
||||
$ref: "#/definitions/OutgoingEmailMessage"
|
||||
type: array
|
||||
meta:
|
||||
$ref: "#/definitions/RequestMeta"
|
||||
type: object
|
||||
RequestMeta:
|
||||
properties:
|
||||
TaxnexusAccount:
|
||||
description: Taxnexus Account Number of the Reseller or OEM
|
||||
type: string
|
||||
required:
|
||||
- TaxnexusAccount
|
||||
type: object
|
||||
ResponseMeta:
|
||||
properties:
|
||||
Contact:
|
||||
description: Microservice Contact Info
|
||||
type: string
|
||||
Copyright:
|
||||
description: Copyright Info
|
||||
type: string
|
||||
License:
|
||||
description: License Information and Restrictions
|
||||
type: string
|
||||
OperationID:
|
||||
description: Operation ID
|
||||
type: string
|
||||
RequestIP:
|
||||
description: Request IP Address
|
||||
type: string
|
||||
RequestType:
|
||||
description: Request Type
|
||||
type: string
|
||||
RequestURL:
|
||||
description: Request URL
|
||||
type: string
|
||||
ServerInfo:
|
||||
description: Data Server Info
|
||||
type: string
|
||||
ServerResponseTime:
|
||||
description: Data Server Response Time (ms)
|
||||
type: string
|
||||
ServerTimestamp:
|
||||
description: Backend Server Timestamp
|
||||
type: string
|
||||
TaxnexusAccount:
|
||||
description:
|
||||
Taxnexus Account Number used for recording transactions
|
||||
type: string
|
||||
type: object
|
||||
Task:
|
||||
properties:
|
||||
ID:
|
||||
type: string
|
||||
description: Taxnexus Record Id
|
||||
AccountID:
|
||||
type: string
|
||||
description: Account ID
|
||||
APIName:
|
||||
type: string
|
||||
description: API Name
|
||||
ActivityDate:
|
||||
type: string
|
||||
description: Due Date
|
||||
Body:
|
||||
type: string
|
||||
description: Task description body
|
||||
CallDisposition:
|
||||
type: boolean
|
||||
description: Call Result
|
||||
CallDurationInSeconds:
|
||||
type: number
|
||||
description: Call Duration
|
||||
CallObject:
|
||||
type: string
|
||||
description: Call Object Identifier
|
||||
CallType:
|
||||
type: string
|
||||
description: Call Type
|
||||
CreatedByID:
|
||||
type: string
|
||||
description: Created By
|
||||
CreatedDate:
|
||||
type: string
|
||||
description: Created Date
|
||||
Description:
|
||||
type: string
|
||||
description: Comments
|
||||
InsertedByID:
|
||||
type: string
|
||||
description: Inserted User Id
|
||||
IsArchived:
|
||||
type: boolean
|
||||
description: Is Task Archived?
|
||||
IsClosed:
|
||||
type: boolean
|
||||
description: Is Task Closed?
|
||||
IsHighPriority:
|
||||
type: boolean
|
||||
description: Is Task a High Priority?
|
||||
IsRecurrence:
|
||||
type: boolean
|
||||
description: Create Recurring Series of Tasks
|
||||
IsReminderSet:
|
||||
type: boolean
|
||||
description: Reminder Set
|
||||
IsRichText:
|
||||
type: boolean
|
||||
description: Is Rich Text?
|
||||
IsVisibleInSelfService:
|
||||
type: boolean
|
||||
description: Public
|
||||
IsWhat:
|
||||
type: boolean
|
||||
description: Is What?
|
||||
LastModifiedByID:
|
||||
type: string
|
||||
description: Last Modified By
|
||||
LastModifiedDate:
|
||||
type: string
|
||||
description: Last Modified Date
|
||||
LikeCount:
|
||||
type: number
|
||||
description: Like Count
|
||||
LinkURL:
|
||||
type: string
|
||||
description: Link URL
|
||||
MasterLabel:
|
||||
type: string
|
||||
description: Master Label
|
||||
NetworkScope:
|
||||
type: string
|
||||
description: Network Scope
|
||||
OwnerID:
|
||||
type: string
|
||||
description: Task Owner
|
||||
ParentID:
|
||||
type: string
|
||||
description: Task Parent
|
||||
Priority:
|
||||
type: string
|
||||
description: Priority
|
||||
Status:
|
||||
type: string
|
||||
description: Status
|
||||
Subject:
|
||||
type: string
|
||||
description: Subject
|
||||
TaskSubtype:
|
||||
type: string
|
||||
description: Task Subtype
|
||||
Title:
|
||||
type: string
|
||||
description: Title
|
||||
Type:
|
||||
type: string
|
||||
description: Type
|
||||
Visibility:
|
||||
type: string
|
||||
description: Visibility
|
||||
WhatID:
|
||||
type: string
|
||||
description: Related To
|
||||
WhoID:
|
||||
type: string
|
||||
description: Name
|
||||
TaskRequest:
|
||||
description: An array Taxnexus Task objects
|
||||
properties:
|
||||
data:
|
||||
items:
|
||||
$ref: "#/definitions/Task"
|
||||
type: array
|
||||
meta:
|
||||
$ref: "#/definitions/RequestMeta"
|
||||
type: object
|
||||
TaskResponse:
|
||||
description: An array Taxnexus Task objects
|
||||
properties:
|
||||
data:
|
||||
items:
|
||||
$ref: "#/definitions/Task"
|
||||
type: array
|
||||
meta:
|
||||
$ref: "#/definitions/ResponseMeta"
|
||||
type: object
|
Loading…
Reference in New Issue