From 97cb82375c88344b54fa10317923c1c22f3e76e2 Mon Sep 17 00:00:00 2001 From: Vernon Keenan Date: Sat, 28 May 2022 12:45:41 -0700 Subject: [PATCH] New swagger version --- .vscode/settings.json | 3 + Makefile | 28 +- README.md | 25 +- api/auth/auth_models/user.go | 12 + api/auth/auth_models/user_response.go | 8 + .../crm_client/contracts/contracts_client.go | 258 ++++ .../contracts/delete_contract_parameters.go | 165 +++ .../contracts/delete_contract_responses.go | 315 +++++ .../get_contracts_observable_parameters.go | 200 +++ .../get_contracts_observable_responses.go | 321 +++++ .../contracts/get_contracts_parameters.go | 272 ++++ .../contracts/get_contracts_responses.go | 323 +++++ .../contracts/post_contracts_parameters.go | 155 ++ .../contracts/post_contracts_responses.go | 323 +++++ .../contracts/put_contract_parameters.go | 155 ++ .../contracts/put_contract_responses.go | 323 +++++ .../contract_options_observable_parameters.go | 130 ++ .../contract_options_observable_responses.go | 113 ++ .../cors/contract_options_parameters.go | 130 ++ .../cors/contract_options_responses.go | 113 ++ api/crm/crm_client/cors/cors_client.go | 80 ++ api/crm/crm_client/crm_client.go | 5 + api/crm/crm_models/account.go | 16 + api/crm/crm_models/account_basic.go | 12 + api/crm/crm_models/account_basic_response.go | 8 + api/crm/crm_models/account_request.go | 4 + api/crm/crm_models/account_response.go | 8 + api/crm/crm_models/contact.go | 8 + api/crm/crm_models/contact_request.go | 4 + api/crm/crm_models/contact_response.go | 8 + api/crm/crm_models/contract.go | 238 ++++ api/crm/crm_models/contract_request.go | 120 ++ api/crm/crm_models/contract_response.go | 166 +++ api/crm/crm_models/delete_response.go | 8 + api/crm/crm_models/lead.go | 4 + api/crm/crm_models/lead_request.go | 4 + api/crm/crm_models/lead_response.go | 8 + api/crm/crm_models/response_meta.go | 4 + api/devops/devops_models/cluster_request.go | 4 + api/devops/devops_models/cluster_response.go | 8 + api/devops/devops_models/database.go | 3 - api/devops/devops_models/database_request.go | 4 + api/devops/devops_models/database_response.go | 8 + api/devops/devops_models/delete_response.go | 8 + api/devops/devops_models/response_meta.go | 4 + api/devops/devops_models/role_request.go | 4 + api/devops/devops_models/role_response.go | 8 + api/devops/devops_models/template_request.go | 4 + api/devops/devops_models/template_response.go | 8 + api/devops/devops_models/tenant.go | 12 + api/devops/devops_models/tenant_request.go | 4 + api/devops/devops_models/tenant_response.go | 8 + api/devops/devops_models/user.go | 12 + api/devops/devops_models/user_request.go | 4 + api/devops/devops_models/user_response.go | 8 + .../contracts/contracts_client.go | 129 ++ .../contracts/get_contracts_parameters.go | 272 ++++ .../contracts/get_contracts_responses.go | 323 +++++ .../contracts/post_contracts_parameters.go | 155 ++ .../contracts/post_contracts_responses.go | 323 +++++ .../research_client/research_client.go | 5 + api/research/research_models/account.go | 16 + .../research_models/account_request.go | 8 + .../research_models/account_response.go | 8 + .../research_models/cluster_request.go | 8 + .../research_models/cluster_response.go | 8 + api/research/research_models/contact.go | 8 + .../research_models/contact_request.go | 8 + .../research_models/contact_response.go | 8 + api/research/research_models/contract.go | 238 ++++ .../research_models/contract_request.go | 120 ++ .../research_models/contract_response.go | 166 +++ .../research_models/database_request.go | 8 + .../research_models/database_response.go | 8 + .../research_models/delete_response.go | 8 + api/research/research_models/response_meta.go | 4 + api/research/research_models/role_request.go | 8 + api/research/research_models/role_response.go | 8 + .../research_models/template_response.go | 8 + api/research/research_models/tenant.go | 12 + .../research_models/tenant_request.go | 8 + .../research_models/tenant_response.go | 8 + api/research/research_models/user.go | 12 + api/research/research_models/user_response.go | 8 + .../contracts/contracts_client.go | 129 ++ .../contracts/get_contracts_parameters.go | 272 ++++ .../contracts/get_contracts_responses.go | 323 +++++ .../contracts/post_contracts_parameters.go | 155 ++ .../contracts/post_contracts_responses.go | 323 +++++ api/sfgate/sfgate_client/sfgate_client.go | 5 + api/sfgate/sfgate_models/account.go | 16 + api/sfgate/sfgate_models/account_request.go | 8 + api/sfgate/sfgate_models/account_response.go | 8 + api/sfgate/sfgate_models/cluster_request.go | 8 + api/sfgate/sfgate_models/cluster_response.go | 8 + api/sfgate/sfgate_models/contact.go | 8 + api/sfgate/sfgate_models/contact_request.go | 8 + api/sfgate/sfgate_models/contact_response.go | 8 + api/sfgate/sfgate_models/contract.go | 238 ++++ api/sfgate/sfgate_models/contract_request.go | 120 ++ api/sfgate/sfgate_models/contract_response.go | 166 +++ api/sfgate/sfgate_models/database_request.go | 8 + api/sfgate/sfgate_models/database_response.go | 8 + api/sfgate/sfgate_models/delete_response.go | 8 + api/sfgate/sfgate_models/response_meta.go | 4 + api/sfgate/sfgate_models/role_request.go | 8 + api/sfgate/sfgate_models/role_response.go | 8 + api/sfgate/sfgate_models/template_response.go | 8 + api/sfgate/sfgate_models/tenant.go | 12 + api/sfgate/sfgate_models/tenant_request.go | 8 + api/sfgate/sfgate_models/tenant_response.go | 8 + api/sfgate/sfgate_models/user.go | 12 + api/sfgate/sfgate_models/user_response.go | 8 + api/stash/stash_models/document_response.go | 8 + api/stash/stash_models/p_d_f_request.go | 8 + .../workflow_models/app_log_request.go | 8 + .../workflow_models/app_log_response.go | 8 + api/workflow/workflow_models/email_message.go | 4 + .../workflow_models/email_message_request.go | 8 + .../email_messages_response.go | 8 + .../workflow_models/outgoing_email_message.go | 4 + .../outgoing_email_message_request.go | 8 + api/workflow/workflow_models/task_request.go | 8 + api/workflow/workflow_models/task_response.go | 8 + app/root.go | 2 +- go.mod | 26 +- go.sum | 553 +++++--- ...th-kvision.yaml => auth-vernonkeenan.yaml} | 0 ...d-kvision.yaml => board-vernonkeenan.yaml} | 0 ...crm-kvision.yaml => crm-vernonkeenan.yaml} | 279 ++++ ...-kvision.yaml => devops-vernonkeenan.yaml} | 4 - swagger/research-kvision.yaml | 1258 ----------------- swagger/research-vernonkeenan.yaml | 753 ++++++++++ ...kvision.yaml => sf-gate-vernonkeenan.yaml} | 181 +++ ...h-kvision.yaml => stash-vernonkeenan.yaml} | 0 ...vision.yaml => workflow-vernonkeenan.yaml} | 0 136 files changed, 9646 insertions(+), 1484 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 api/crm/crm_client/contracts/contracts_client.go create mode 100644 api/crm/crm_client/contracts/delete_contract_parameters.go create mode 100644 api/crm/crm_client/contracts/delete_contract_responses.go create mode 100644 api/crm/crm_client/contracts/get_contracts_observable_parameters.go create mode 100644 api/crm/crm_client/contracts/get_contracts_observable_responses.go create mode 100644 api/crm/crm_client/contracts/get_contracts_parameters.go create mode 100644 api/crm/crm_client/contracts/get_contracts_responses.go create mode 100644 api/crm/crm_client/contracts/post_contracts_parameters.go create mode 100644 api/crm/crm_client/contracts/post_contracts_responses.go create mode 100644 api/crm/crm_client/contracts/put_contract_parameters.go create mode 100644 api/crm/crm_client/contracts/put_contract_responses.go create mode 100644 api/crm/crm_client/cors/contract_options_observable_parameters.go create mode 100644 api/crm/crm_client/cors/contract_options_observable_responses.go create mode 100644 api/crm/crm_client/cors/contract_options_parameters.go create mode 100644 api/crm/crm_client/cors/contract_options_responses.go create mode 100644 api/crm/crm_models/contract.go create mode 100644 api/crm/crm_models/contract_request.go create mode 100644 api/crm/crm_models/contract_response.go create mode 100644 api/research/research_client/contracts/contracts_client.go create mode 100644 api/research/research_client/contracts/get_contracts_parameters.go create mode 100644 api/research/research_client/contracts/get_contracts_responses.go create mode 100644 api/research/research_client/contracts/post_contracts_parameters.go create mode 100644 api/research/research_client/contracts/post_contracts_responses.go create mode 100644 api/research/research_models/contract.go create mode 100644 api/research/research_models/contract_request.go create mode 100644 api/research/research_models/contract_response.go create mode 100644 api/sfgate/sfgate_client/contracts/contracts_client.go create mode 100644 api/sfgate/sfgate_client/contracts/get_contracts_parameters.go create mode 100644 api/sfgate/sfgate_client/contracts/get_contracts_responses.go create mode 100644 api/sfgate/sfgate_client/contracts/post_contracts_parameters.go create mode 100644 api/sfgate/sfgate_client/contracts/post_contracts_responses.go create mode 100644 api/sfgate/sfgate_models/contract.go create mode 100644 api/sfgate/sfgate_models/contract_request.go create mode 100644 api/sfgate/sfgate_models/contract_response.go rename swagger/{auth-kvision.yaml => auth-vernonkeenan.yaml} (100%) rename swagger/{board-kvision.yaml => board-vernonkeenan.yaml} (100%) rename swagger/{crm-kvision.yaml => crm-vernonkeenan.yaml} (83%) rename swagger/{devops-kvision.yaml => devops-vernonkeenan.yaml} (99%) delete mode 100644 swagger/research-kvision.yaml create mode 100644 swagger/research-vernonkeenan.yaml rename swagger/{sf-gate-kvision.yaml => sf-gate-vernonkeenan.yaml} (90%) rename swagger/{stash-kvision.yaml => stash-vernonkeenan.yaml} (100%) rename swagger/{workflow-kvision.yaml => workflow-vernonkeenan.yaml} (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e3e5056 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "cSpell.words": ["Gitea", "taxnexus"] +} diff --git a/Makefile b/Makefile index 526f3bc..83829d6 100644 --- a/Makefile +++ b/Makefile @@ -8,13 +8,13 @@ VERNONKEENAN_VERSION ?= 0.0.1 .PHONY: swagger swagger: - cp ../auth/swagger/auth-kvision.yaml ./swagger - cp ../crm/swagger/crm-kvision.yaml ./swagger - cp ../devops/swagger/devops-kvision.yaml ./swagger - cp ../stash/swagger/stash-kvision.yaml ./swagger - cp ../sf-gate/swagger/sf-gate-kvision.yaml ./swagger - cp ../research/swagger/research-kvision.yaml ./swagger - cp ../workflow/swagger/workflow-kvision.yaml ./swagger + cp ../auth/swagger/auth-vernonkeenan.yaml ./swagger + cp ../crm/swagger/crm-vernonkeenan.yaml ./swagger + cp ../devops/swagger/devops-vernonkeenan.yaml ./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 # @@ -37,7 +37,7 @@ swagger: --log-output=./swagger/logs/generate-auth-client.log \ --copyright-file=./build/COPYRIGHT \ --name=auth \ - --spec=./swagger/auth-kvision.yaml \ + --spec=./swagger/auth-vernonkeenan.yaml \ --target=./api/auth \ --client-package=auth-client \ --model-package=auth-models \ @@ -50,7 +50,7 @@ swagger: --log-output=./swagger/logs/generate-crm-client.log \ --copyright-file=./build/COPYRIGHT \ --name=crm \ - --spec=./swagger/crm-kvision.yaml \ + --spec=./swagger/crm-vernonkeenan.yaml \ --target=./api/crm \ --client-package=crm-client \ --model-package=crm-models \ @@ -63,7 +63,7 @@ swagger: --log-output=./swagger/logs/generate-devops-client.log \ --copyright-file=./build/COPYRIGHT \ --name=devops \ - --spec=./swagger/devops-kvision.yaml \ + --spec=./swagger/devops-vernonkeenan.yaml \ --target=./api/devops \ --client-package=devops-client \ --model-package=devops-models \ @@ -76,7 +76,7 @@ swagger: --log-output=./swagger/logs/generate-stash-client.log \ --copyright-file=./build/COPYRIGHT \ --name=stash \ - --spec=./swagger/stash-kvision.yaml \ + --spec=./swagger/stash-vernonkeenan.yaml \ --target=./api/stash \ --client-package=stash-client \ --model-package=stash-models \ @@ -89,7 +89,7 @@ swagger: --log-output=./swagger/logs/generate-sfgate-client.log \ --copyright-file=./build/COPYRIGHT \ --name=sfgate \ - --spec=./swagger/sf-gate-kvision.yaml \ + --spec=./swagger/sf-gate-vernonkeenan.yaml \ --target=./api/sfgate \ --client-package=sfgate-client \ --model-package=sfgate-models \ @@ -102,7 +102,7 @@ swagger: --log-output=./swagger/logs/generate-research-client.log \ --copyright-file=./build/COPYRIGHT \ --name=research \ - --spec=./swagger/sf-gate-kvision.yaml \ + --spec=./swagger/sf-gate-vernonkeenan.yaml \ --target=./api/research \ --client-package=research-client \ --model-package=research-models \ @@ -115,7 +115,7 @@ swagger: --log-output=./swagger/logs/generate-workflow-client.log \ --copyright-file=./build/COPYRIGHT \ --name=workflow \ - --spec=./swagger/workflow-kvision.yaml \ + --spec=./swagger/workflow-vernonkeenan.yaml \ --target=./api/workflow \ --client-package=workflow-client \ --model-package=workflow-models \ diff --git a/README.md b/README.md index 1b9df95..e37006e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,26 @@ # lib -VernonKeenan/KVision Shared Libraries (go) +vernonkeenan Shared Libraries (go) -New Version! +## Dependent Systems + +The Gitea server must be up and running with admin access. + +## Update Procedure + +Prerequisite: All the other repos are cloned locally in adjacent directories. + +* Increment branch number in local repo + +* Generate all OpenAPI libraries and then cleanup modules + +```bash +make swagger +go get -u -f ./... +go mod tidy +``` + +* Commit and push new branch to GitHub +* On GitHub goto set the new branch to default. + +* On Gitea goto and click Synchronize Now. diff --git a/api/auth/auth_models/user.go b/api/auth/auth_models/user.go index fe7592e..18db6b2 100644 --- a/api/auth/auth_models/user.go +++ b/api/auth/auth_models/user.go @@ -229,6 +229,8 @@ func (m *User) validateAddress(formats strfmt.Registry) error { if err := m.Address.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Address") } return err } @@ -251,6 +253,8 @@ func (m *User) validateTenantUsers(formats strfmt.Registry) error { if err := m.TenantUsers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } return err } @@ -275,6 +279,8 @@ func (m *User) validateUserRoles(formats strfmt.Registry) error { if err := m.UserRoles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("UserRoles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("UserRoles" + "." + strconv.Itoa(i)) } return err } @@ -313,6 +319,8 @@ func (m *User) contextValidateAddress(ctx context.Context, formats strfmt.Regist if err := m.Address.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Address") } return err } @@ -329,6 +337,8 @@ func (m *User) contextValidateTenantUsers(ctx context.Context, formats strfmt.Re if err := m.TenantUsers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } return err } @@ -347,6 +357,8 @@ func (m *User) contextValidateUserRoles(ctx context.Context, formats strfmt.Regi if err := m.UserRoles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("UserRoles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("UserRoles" + "." + strconv.Itoa(i)) } return err } diff --git a/api/auth/auth_models/user_response.go b/api/auth/auth_models/user_response.go index 1f1d527..b762478 100644 --- a/api/auth/auth_models/user_response.go +++ b/api/auth/auth_models/user_response.go @@ -62,6 +62,8 @@ func (m *UserResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *UserResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *UserResponse) contextValidateData(ctx context.Context, formats strfmt.R 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 } @@ -131,6 +137,8 @@ func (m *UserResponse) contextValidateMeta(ctx context.Context, formats strfmt.R 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 } diff --git a/api/crm/crm_client/contracts/contracts_client.go b/api/crm/crm_client/contracts/contracts_client.go new file mode 100644 index 0000000..62229df --- /dev/null +++ b/api/crm/crm_client/contracts/contracts_client.go @@ -0,0 +1,258 @@ +// 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 contracts + +// 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 contracts API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for contracts 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 { + DeleteContract(params *DeleteContractParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteContractOK, error) + + GetContracts(params *GetContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsOK, error) + + GetContractsObservable(params *GetContractsObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsObservableOK, error) + + PostContracts(params *PostContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContractsOK, error) + + PutContract(params *PutContractParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutContractOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* + DeleteContract deletes an contract + + Delete Taxnexus Contract record +*/ +func (a *Client) DeleteContract(params *DeleteContractParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteContractOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteContractParams() + } + op := &runtime.ClientOperation{ + ID: "deleteContract", + Method: "DELETE", + PathPattern: "/contracts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteContractReader{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.(*DeleteContractOK) + 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 deleteContract: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + GetContracts gets a list of contracts + + Return a list of all available Contracts +*/ +func (a *Client) GetContracts(params *GetContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetContractsParams() + } + op := &runtime.ClientOperation{ + ID: "getContracts", + Method: "GET", + PathPattern: "/contracts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetContractsReader{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.(*GetContractsOK) + 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 getContracts: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + GetContractsObservable gets taxnexus contracts in an observable array + + A list of contracts in a simple JSON array +*/ +func (a *Client) GetContractsObservable(params *GetContractsObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsObservableOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetContractsObservableParams() + } + op := &runtime.ClientOperation{ + ID: "getContractsObservable", + Method: "GET", + PathPattern: "/contracts/observable", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetContractsObservableReader{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.(*GetContractsObservableOK) + 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 getContractsObservable: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + PostContracts adds a new contract to taxnexus + + Contract record to be added +*/ +func (a *Client) PostContracts(params *PostContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContractsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPostContractsParams() + } + op := &runtime.ClientOperation{ + ID: "postContracts", + Method: "POST", + PathPattern: "/contracts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &PostContractsReader{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.(*PostContractsOK) + 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 postContracts: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + PutContract updates a single contract + + Update a single contract specified by contractId +*/ +func (a *Client) PutContract(params *PutContractParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutContractOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPutContractParams() + } + op := &runtime.ClientOperation{ + ID: "putContract", + Method: "PUT", + PathPattern: "/contracts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &PutContractReader{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.(*PutContractOK) + 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 putContract: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/crm/crm_client/contracts/delete_contract_parameters.go b/api/crm/crm_client/contracts/delete_contract_parameters.go new file mode 100644 index 0000000..5011c98 --- /dev/null +++ b/api/crm/crm_client/contracts/delete_contract_parameters.go @@ -0,0 +1,165 @@ +// 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 contracts + +// 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" +) + +// NewDeleteContractParams creates a new DeleteContractParams 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 NewDeleteContractParams() *DeleteContractParams { + return &DeleteContractParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteContractParamsWithTimeout creates a new DeleteContractParams object +// with the ability to set a timeout on a request. +func NewDeleteContractParamsWithTimeout(timeout time.Duration) *DeleteContractParams { + return &DeleteContractParams{ + timeout: timeout, + } +} + +// NewDeleteContractParamsWithContext creates a new DeleteContractParams object +// with the ability to set a context for a request. +func NewDeleteContractParamsWithContext(ctx context.Context) *DeleteContractParams { + return &DeleteContractParams{ + Context: ctx, + } +} + +// NewDeleteContractParamsWithHTTPClient creates a new DeleteContractParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteContractParamsWithHTTPClient(client *http.Client) *DeleteContractParams { + return &DeleteContractParams{ + HTTPClient: client, + } +} + +/* DeleteContractParams contains all the parameters to send to the API endpoint + for the delete contract operation. + + Typically these are written to a http.Request. +*/ +type DeleteContractParams struct { + + /* ContractID. + + Taxnexus Contact record ID + */ + ContractID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete contract params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteContractParams) WithDefaults() *DeleteContractParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete contract params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteContractParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete contract params +func (o *DeleteContractParams) WithTimeout(timeout time.Duration) *DeleteContractParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete contract params +func (o *DeleteContractParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete contract params +func (o *DeleteContractParams) WithContext(ctx context.Context) *DeleteContractParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete contract params +func (o *DeleteContractParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete contract params +func (o *DeleteContractParams) WithHTTPClient(client *http.Client) *DeleteContractParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete contract params +func (o *DeleteContractParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithContractID adds the contractID to the delete contract params +func (o *DeleteContractParams) WithContractID(contractID *string) *DeleteContractParams { + o.SetContractID(contractID) + return o +} + +// SetContractID adds the contractId to the delete contract params +func (o *DeleteContractParams) SetContractID(contractID *string) { + o.ContractID = contractID +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteContractParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ContractID != nil { + + // query param contractId + var qrContractID string + + if o.ContractID != nil { + qrContractID = *o.ContractID + } + qContractID := qrContractID + if qContractID != "" { + + if err := r.SetQueryParam("contractId", qContractID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/crm/crm_client/contracts/delete_contract_responses.go b/api/crm/crm_client/contracts/delete_contract_responses.go new file mode 100644 index 0000000..d57b694 --- /dev/null +++ b/api/crm/crm_client/contracts/delete_contract_responses.go @@ -0,0 +1,315 @@ +// 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 contracts + +// 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/crm/crm_models" +) + +// DeleteContractReader is a Reader for the DeleteContract structure. +type DeleteContractReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteContractReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewDeleteContractOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewDeleteContractUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewDeleteContractForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewDeleteContractNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewDeleteContractUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewDeleteContractInternalServerError() + 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()) + } +} + +// NewDeleteContractOK creates a DeleteContractOK with default headers values +func NewDeleteContractOK() *DeleteContractOK { + return &DeleteContractOK{} +} + +/* DeleteContractOK describes a response with status code 200, with default header values. + +Taxnexus Response with Message Objects with Delete Status +*/ +type DeleteContractOK struct { + AccessControlAllowOrigin string + + Payload *crm_models.DeleteResponse +} + +func (o *DeleteContractOK) Error() string { + return fmt.Sprintf("[DELETE /contracts][%d] deleteContractOK %+v", 200, o.Payload) +} +func (o *DeleteContractOK) GetPayload() *crm_models.DeleteResponse { + return o.Payload +} + +func (o *DeleteContractOK) 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(crm_models.DeleteResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteContractUnauthorized creates a DeleteContractUnauthorized with default headers values +func NewDeleteContractUnauthorized() *DeleteContractUnauthorized { + return &DeleteContractUnauthorized{} +} + +/* DeleteContractUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type DeleteContractUnauthorized struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *DeleteContractUnauthorized) Error() string { + return fmt.Sprintf("[DELETE /contracts][%d] deleteContractUnauthorized %+v", 401, o.Payload) +} +func (o *DeleteContractUnauthorized) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *DeleteContractUnauthorized) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteContractForbidden creates a DeleteContractForbidden with default headers values +func NewDeleteContractForbidden() *DeleteContractForbidden { + return &DeleteContractForbidden{} +} + +/* DeleteContractForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type DeleteContractForbidden struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *DeleteContractForbidden) Error() string { + return fmt.Sprintf("[DELETE /contracts][%d] deleteContractForbidden %+v", 403, o.Payload) +} +func (o *DeleteContractForbidden) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *DeleteContractForbidden) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteContractNotFound creates a DeleteContractNotFound with default headers values +func NewDeleteContractNotFound() *DeleteContractNotFound { + return &DeleteContractNotFound{} +} + +/* DeleteContractNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type DeleteContractNotFound struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *DeleteContractNotFound) Error() string { + return fmt.Sprintf("[DELETE /contracts][%d] deleteContractNotFound %+v", 404, o.Payload) +} +func (o *DeleteContractNotFound) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *DeleteContractNotFound) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteContractUnprocessableEntity creates a DeleteContractUnprocessableEntity with default headers values +func NewDeleteContractUnprocessableEntity() *DeleteContractUnprocessableEntity { + return &DeleteContractUnprocessableEntity{} +} + +/* DeleteContractUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type DeleteContractUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *DeleteContractUnprocessableEntity) Error() string { + return fmt.Sprintf("[DELETE /contracts][%d] deleteContractUnprocessableEntity %+v", 422, o.Payload) +} +func (o *DeleteContractUnprocessableEntity) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *DeleteContractUnprocessableEntity) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteContractInternalServerError creates a DeleteContractInternalServerError with default headers values +func NewDeleteContractInternalServerError() *DeleteContractInternalServerError { + return &DeleteContractInternalServerError{} +} + +/* DeleteContractInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type DeleteContractInternalServerError struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *DeleteContractInternalServerError) Error() string { + return fmt.Sprintf("[DELETE /contracts][%d] deleteContractInternalServerError %+v", 500, o.Payload) +} +func (o *DeleteContractInternalServerError) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *DeleteContractInternalServerError) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/crm/crm_client/contracts/get_contracts_observable_parameters.go b/api/crm/crm_client/contracts/get_contracts_observable_parameters.go new file mode 100644 index 0000000..19b4fd6 --- /dev/null +++ b/api/crm/crm_client/contracts/get_contracts_observable_parameters.go @@ -0,0 +1,200 @@ +// 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 contracts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetContractsObservableParams creates a new GetContractsObservableParams 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 NewGetContractsObservableParams() *GetContractsObservableParams { + return &GetContractsObservableParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetContractsObservableParamsWithTimeout creates a new GetContractsObservableParams object +// with the ability to set a timeout on a request. +func NewGetContractsObservableParamsWithTimeout(timeout time.Duration) *GetContractsObservableParams { + return &GetContractsObservableParams{ + timeout: timeout, + } +} + +// NewGetContractsObservableParamsWithContext creates a new GetContractsObservableParams object +// with the ability to set a context for a request. +func NewGetContractsObservableParamsWithContext(ctx context.Context) *GetContractsObservableParams { + return &GetContractsObservableParams{ + Context: ctx, + } +} + +// NewGetContractsObservableParamsWithHTTPClient creates a new GetContractsObservableParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetContractsObservableParamsWithHTTPClient(client *http.Client) *GetContractsObservableParams { + return &GetContractsObservableParams{ + HTTPClient: client, + } +} + +/* GetContractsObservableParams contains all the parameters to send to the API endpoint + for the get contracts observable operation. + + Typically these are written to a http.Request. +*/ +type GetContractsObservableParams struct { + + /* Active. + + Only retrieve active records? + */ + Active *bool + + /* ContractID. + + Taxnexus Contact record ID + */ + ContractID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get contracts observable params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetContractsObservableParams) WithDefaults() *GetContractsObservableParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get contracts observable params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetContractsObservableParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get contracts observable params +func (o *GetContractsObservableParams) WithTimeout(timeout time.Duration) *GetContractsObservableParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get contracts observable params +func (o *GetContractsObservableParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get contracts observable params +func (o *GetContractsObservableParams) WithContext(ctx context.Context) *GetContractsObservableParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get contracts observable params +func (o *GetContractsObservableParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get contracts observable params +func (o *GetContractsObservableParams) WithHTTPClient(client *http.Client) *GetContractsObservableParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get contracts observable params +func (o *GetContractsObservableParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithActive adds the active to the get contracts observable params +func (o *GetContractsObservableParams) WithActive(active *bool) *GetContractsObservableParams { + o.SetActive(active) + return o +} + +// SetActive adds the active to the get contracts observable params +func (o *GetContractsObservableParams) SetActive(active *bool) { + o.Active = active +} + +// WithContractID adds the contractID to the get contracts observable params +func (o *GetContractsObservableParams) WithContractID(contractID *string) *GetContractsObservableParams { + o.SetContractID(contractID) + return o +} + +// SetContractID adds the contractId to the get contracts observable params +func (o *GetContractsObservableParams) SetContractID(contractID *string) { + o.ContractID = contractID +} + +// WriteToRequest writes these params to a swagger request +func (o *GetContractsObservableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Active != nil { + + // query param active + var qrActive bool + + if o.Active != nil { + qrActive = *o.Active + } + qActive := swag.FormatBool(qrActive) + if qActive != "" { + + if err := r.SetQueryParam("active", qActive); err != nil { + return err + } + } + } + + if o.ContractID != nil { + + // query param contractId + var qrContractID string + + if o.ContractID != nil { + qrContractID = *o.ContractID + } + qContractID := qrContractID + if qContractID != "" { + + if err := r.SetQueryParam("contractId", qContractID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/crm/crm_client/contracts/get_contracts_observable_responses.go b/api/crm/crm_client/contracts/get_contracts_observable_responses.go new file mode 100644 index 0000000..268a79d --- /dev/null +++ b/api/crm/crm_client/contracts/get_contracts_observable_responses.go @@ -0,0 +1,321 @@ +// 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 contracts + +// 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/crm/crm_models" +) + +// GetContractsObservableReader is a Reader for the GetContractsObservable structure. +type GetContractsObservableReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetContractsObservableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetContractsObservableOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewGetContractsObservableUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewGetContractsObservableForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewGetContractsObservableNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewGetContractsObservableUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewGetContractsObservableInternalServerError() + 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()) + } +} + +// NewGetContractsObservableOK creates a GetContractsObservableOK with default headers values +func NewGetContractsObservableOK() *GetContractsObservableOK { + return &GetContractsObservableOK{} +} + +/* GetContractsObservableOK describes a response with status code 200, with default header values. + +Taxnexus Response with an array of Contract objects +*/ +type GetContractsObservableOK struct { + AccessControlAllowOrigin string + CacheControl string + + Payload []*crm_models.Contract +} + +func (o *GetContractsObservableOK) Error() string { + return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableOK %+v", 200, o.Payload) +} +func (o *GetContractsObservableOK) GetPayload() []*crm_models.Contract { + return o.Payload +} + +func (o *GetContractsObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + // hydrates response header Cache-Control + hdrCacheControl := response.GetHeader("Cache-Control") + + if hdrCacheControl != "" { + o.CacheControl = hdrCacheControl + } + + // response payload + if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsObservableUnauthorized creates a GetContractsObservableUnauthorized with default headers values +func NewGetContractsObservableUnauthorized() *GetContractsObservableUnauthorized { + return &GetContractsObservableUnauthorized{} +} + +/* GetContractsObservableUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type GetContractsObservableUnauthorized struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *GetContractsObservableUnauthorized) Error() string { + return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableUnauthorized %+v", 401, o.Payload) +} +func (o *GetContractsObservableUnauthorized) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *GetContractsObservableUnauthorized) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsObservableForbidden creates a GetContractsObservableForbidden with default headers values +func NewGetContractsObservableForbidden() *GetContractsObservableForbidden { + return &GetContractsObservableForbidden{} +} + +/* GetContractsObservableForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type GetContractsObservableForbidden struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *GetContractsObservableForbidden) Error() string { + return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableForbidden %+v", 403, o.Payload) +} +func (o *GetContractsObservableForbidden) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *GetContractsObservableForbidden) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsObservableNotFound creates a GetContractsObservableNotFound with default headers values +func NewGetContractsObservableNotFound() *GetContractsObservableNotFound { + return &GetContractsObservableNotFound{} +} + +/* GetContractsObservableNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type GetContractsObservableNotFound struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *GetContractsObservableNotFound) Error() string { + return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableNotFound %+v", 404, o.Payload) +} +func (o *GetContractsObservableNotFound) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *GetContractsObservableNotFound) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsObservableUnprocessableEntity creates a GetContractsObservableUnprocessableEntity with default headers values +func NewGetContractsObservableUnprocessableEntity() *GetContractsObservableUnprocessableEntity { + return &GetContractsObservableUnprocessableEntity{} +} + +/* GetContractsObservableUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type GetContractsObservableUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *GetContractsObservableUnprocessableEntity) Error() string { + return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableUnprocessableEntity %+v", 422, o.Payload) +} +func (o *GetContractsObservableUnprocessableEntity) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *GetContractsObservableUnprocessableEntity) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsObservableInternalServerError creates a GetContractsObservableInternalServerError with default headers values +func NewGetContractsObservableInternalServerError() *GetContractsObservableInternalServerError { + return &GetContractsObservableInternalServerError{} +} + +/* GetContractsObservableInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type GetContractsObservableInternalServerError struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *GetContractsObservableInternalServerError) Error() string { + return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableInternalServerError %+v", 500, o.Payload) +} +func (o *GetContractsObservableInternalServerError) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *GetContractsObservableInternalServerError) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/crm/crm_client/contracts/get_contracts_parameters.go b/api/crm/crm_client/contracts/get_contracts_parameters.go new file mode 100644 index 0000000..6f09f33 --- /dev/null +++ b/api/crm/crm_client/contracts/get_contracts_parameters.go @@ -0,0 +1,272 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetContractsParams creates a new GetContractsParams 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 NewGetContractsParams() *GetContractsParams { + return &GetContractsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetContractsParamsWithTimeout creates a new GetContractsParams object +// with the ability to set a timeout on a request. +func NewGetContractsParamsWithTimeout(timeout time.Duration) *GetContractsParams { + return &GetContractsParams{ + timeout: timeout, + } +} + +// NewGetContractsParamsWithContext creates a new GetContractsParams object +// with the ability to set a context for a request. +func NewGetContractsParamsWithContext(ctx context.Context) *GetContractsParams { + return &GetContractsParams{ + Context: ctx, + } +} + +// NewGetContractsParamsWithHTTPClient creates a new GetContractsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetContractsParamsWithHTTPClient(client *http.Client) *GetContractsParams { + return &GetContractsParams{ + HTTPClient: client, + } +} + +/* GetContractsParams contains all the parameters to send to the API endpoint + for the get contracts operation. + + Typically these are written to a http.Request. +*/ +type GetContractsParams struct { + + /* Active. + + Only retrieve active records? + */ + Active *bool + + /* ContractID. + + Taxnexus Contact record ID + */ + ContractID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetContractsParams) WithDefaults() *GetContractsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetContractsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get contracts params +func (o *GetContractsParams) WithTimeout(timeout time.Duration) *GetContractsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get contracts params +func (o *GetContractsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get contracts params +func (o *GetContractsParams) WithContext(ctx context.Context) *GetContractsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get contracts params +func (o *GetContractsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get contracts params +func (o *GetContractsParams) WithHTTPClient(client *http.Client) *GetContractsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get contracts params +func (o *GetContractsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithActive adds the active to the get contracts params +func (o *GetContractsParams) WithActive(active *bool) *GetContractsParams { + o.SetActive(active) + return o +} + +// SetActive adds the active to the get contracts params +func (o *GetContractsParams) SetActive(active *bool) { + o.Active = active +} + +// WithContractID adds the contractID to the get contracts params +func (o *GetContractsParams) WithContractID(contractID *string) *GetContractsParams { + o.SetContractID(contractID) + return o +} + +// SetContractID adds the contractId to the get contracts params +func (o *GetContractsParams) SetContractID(contractID *string) { + o.ContractID = contractID +} + +// WithLimit adds the limit to the get contracts params +func (o *GetContractsParams) WithLimit(limit *int64) *GetContractsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get contracts params +func (o *GetContractsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get contracts params +func (o *GetContractsParams) WithOffset(offset *int64) *GetContractsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get contracts params +func (o *GetContractsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetContractsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Active != nil { + + // query param active + var qrActive bool + + if o.Active != nil { + qrActive = *o.Active + } + qActive := swag.FormatBool(qrActive) + if qActive != "" { + + if err := r.SetQueryParam("active", qActive); err != nil { + return err + } + } + } + + if o.ContractID != nil { + + // query param contractId + var qrContractID string + + if o.ContractID != nil { + qrContractID = *o.ContractID + } + qContractID := qrContractID + if qContractID != "" { + + if err := r.SetQueryParam("contractId", qContractID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/crm/crm_client/contracts/get_contracts_responses.go b/api/crm/crm_client/contracts/get_contracts_responses.go new file mode 100644 index 0000000..0c7d8c8 --- /dev/null +++ b/api/crm/crm_client/contracts/get_contracts_responses.go @@ -0,0 +1,323 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// 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/crm/crm_models" +) + +// GetContractsReader is a Reader for the GetContracts structure. +type GetContractsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetContractsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetContractsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewGetContractsUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewGetContractsForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewGetContractsNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewGetContractsUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewGetContractsInternalServerError() + 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()) + } +} + +// NewGetContractsOK creates a GetContractsOK with default headers values +func NewGetContractsOK() *GetContractsOK { + return &GetContractsOK{} +} + +/* GetContractsOK describes a response with status code 200, with default header values. + +Taxnexus Response with an array of Contract objects +*/ +type GetContractsOK struct { + AccessControlAllowOrigin string + CacheControl string + + Payload *crm_models.ContractResponse +} + +func (o *GetContractsOK) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsOK %+v", 200, o.Payload) +} +func (o *GetContractsOK) GetPayload() *crm_models.ContractResponse { + return o.Payload +} + +func (o *GetContractsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + // hydrates response header Cache-Control + hdrCacheControl := response.GetHeader("Cache-Control") + + if hdrCacheControl != "" { + o.CacheControl = hdrCacheControl + } + + o.Payload = new(crm_models.ContractResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsUnauthorized creates a GetContractsUnauthorized with default headers values +func NewGetContractsUnauthorized() *GetContractsUnauthorized { + return &GetContractsUnauthorized{} +} + +/* GetContractsUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type GetContractsUnauthorized struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *GetContractsUnauthorized) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsUnauthorized %+v", 401, o.Payload) +} +func (o *GetContractsUnauthorized) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *GetContractsUnauthorized) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsForbidden creates a GetContractsForbidden with default headers values +func NewGetContractsForbidden() *GetContractsForbidden { + return &GetContractsForbidden{} +} + +/* GetContractsForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type GetContractsForbidden struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *GetContractsForbidden) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsForbidden %+v", 403, o.Payload) +} +func (o *GetContractsForbidden) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *GetContractsForbidden) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsNotFound creates a GetContractsNotFound with default headers values +func NewGetContractsNotFound() *GetContractsNotFound { + return &GetContractsNotFound{} +} + +/* GetContractsNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type GetContractsNotFound struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *GetContractsNotFound) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsNotFound %+v", 404, o.Payload) +} +func (o *GetContractsNotFound) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *GetContractsNotFound) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsUnprocessableEntity creates a GetContractsUnprocessableEntity with default headers values +func NewGetContractsUnprocessableEntity() *GetContractsUnprocessableEntity { + return &GetContractsUnprocessableEntity{} +} + +/* GetContractsUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type GetContractsUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *GetContractsUnprocessableEntity) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsUnprocessableEntity %+v", 422, o.Payload) +} +func (o *GetContractsUnprocessableEntity) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *GetContractsUnprocessableEntity) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsInternalServerError creates a GetContractsInternalServerError with default headers values +func NewGetContractsInternalServerError() *GetContractsInternalServerError { + return &GetContractsInternalServerError{} +} + +/* GetContractsInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type GetContractsInternalServerError struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *GetContractsInternalServerError) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsInternalServerError %+v", 500, o.Payload) +} +func (o *GetContractsInternalServerError) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *GetContractsInternalServerError) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/crm/crm_client/contracts/post_contracts_parameters.go b/api/crm/crm_client/contracts/post_contracts_parameters.go new file mode 100644 index 0000000..114550e --- /dev/null +++ b/api/crm/crm_client/contracts/post_contracts_parameters.go @@ -0,0 +1,155 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// 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/crm/crm_models" +) + +// NewPostContractsParams creates a new PostContractsParams 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 NewPostContractsParams() *PostContractsParams { + return &PostContractsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPostContractsParamsWithTimeout creates a new PostContractsParams object +// with the ability to set a timeout on a request. +func NewPostContractsParamsWithTimeout(timeout time.Duration) *PostContractsParams { + return &PostContractsParams{ + timeout: timeout, + } +} + +// NewPostContractsParamsWithContext creates a new PostContractsParams object +// with the ability to set a context for a request. +func NewPostContractsParamsWithContext(ctx context.Context) *PostContractsParams { + return &PostContractsParams{ + Context: ctx, + } +} + +// NewPostContractsParamsWithHTTPClient creates a new PostContractsParams object +// with the ability to set a custom HTTPClient for a request. +func NewPostContractsParamsWithHTTPClient(client *http.Client) *PostContractsParams { + return &PostContractsParams{ + HTTPClient: client, + } +} + +/* PostContractsParams contains all the parameters to send to the API endpoint + for the post contracts operation. + + Typically these are written to a http.Request. +*/ +type PostContractsParams struct { + + /* ContractsRequest. + + An array of new Contract records + */ + ContractsRequest *crm_models.ContractRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the post contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PostContractsParams) WithDefaults() *PostContractsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the post contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PostContractsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the post contracts params +func (o *PostContractsParams) WithTimeout(timeout time.Duration) *PostContractsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the post contracts params +func (o *PostContractsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the post contracts params +func (o *PostContractsParams) WithContext(ctx context.Context) *PostContractsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the post contracts params +func (o *PostContractsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the post contracts params +func (o *PostContractsParams) WithHTTPClient(client *http.Client) *PostContractsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the post contracts params +func (o *PostContractsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithContractsRequest adds the contractsRequest to the post contracts params +func (o *PostContractsParams) WithContractsRequest(contractsRequest *crm_models.ContractRequest) *PostContractsParams { + o.SetContractsRequest(contractsRequest) + return o +} + +// SetContractsRequest adds the contractsRequest to the post contracts params +func (o *PostContractsParams) SetContractsRequest(contractsRequest *crm_models.ContractRequest) { + o.ContractsRequest = contractsRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *PostContractsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.ContractsRequest != nil { + if err := r.SetBodyParam(o.ContractsRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/crm/crm_client/contracts/post_contracts_responses.go b/api/crm/crm_client/contracts/post_contracts_responses.go new file mode 100644 index 0000000..84dbc6b --- /dev/null +++ b/api/crm/crm_client/contracts/post_contracts_responses.go @@ -0,0 +1,323 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// 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/crm/crm_models" +) + +// PostContractsReader is a Reader for the PostContracts structure. +type PostContractsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PostContractsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPostContractsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewPostContractsUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewPostContractsForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPostContractsNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewPostContractsUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPostContractsInternalServerError() + 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()) + } +} + +// NewPostContractsOK creates a PostContractsOK with default headers values +func NewPostContractsOK() *PostContractsOK { + return &PostContractsOK{} +} + +/* PostContractsOK describes a response with status code 200, with default header values. + +Taxnexus Response with an array of Contract objects +*/ +type PostContractsOK struct { + AccessControlAllowOrigin string + CacheControl string + + Payload *crm_models.ContractResponse +} + +func (o *PostContractsOK) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsOK %+v", 200, o.Payload) +} +func (o *PostContractsOK) GetPayload() *crm_models.ContractResponse { + return o.Payload +} + +func (o *PostContractsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + // hydrates response header Cache-Control + hdrCacheControl := response.GetHeader("Cache-Control") + + if hdrCacheControl != "" { + o.CacheControl = hdrCacheControl + } + + o.Payload = new(crm_models.ContractResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsUnauthorized creates a PostContractsUnauthorized with default headers values +func NewPostContractsUnauthorized() *PostContractsUnauthorized { + return &PostContractsUnauthorized{} +} + +/* PostContractsUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type PostContractsUnauthorized struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *PostContractsUnauthorized) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsUnauthorized %+v", 401, o.Payload) +} +func (o *PostContractsUnauthorized) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *PostContractsUnauthorized) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsForbidden creates a PostContractsForbidden with default headers values +func NewPostContractsForbidden() *PostContractsForbidden { + return &PostContractsForbidden{} +} + +/* PostContractsForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type PostContractsForbidden struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *PostContractsForbidden) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsForbidden %+v", 403, o.Payload) +} +func (o *PostContractsForbidden) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *PostContractsForbidden) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsNotFound creates a PostContractsNotFound with default headers values +func NewPostContractsNotFound() *PostContractsNotFound { + return &PostContractsNotFound{} +} + +/* PostContractsNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type PostContractsNotFound struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *PostContractsNotFound) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsNotFound %+v", 404, o.Payload) +} +func (o *PostContractsNotFound) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *PostContractsNotFound) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsUnprocessableEntity creates a PostContractsUnprocessableEntity with default headers values +func NewPostContractsUnprocessableEntity() *PostContractsUnprocessableEntity { + return &PostContractsUnprocessableEntity{} +} + +/* PostContractsUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type PostContractsUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *PostContractsUnprocessableEntity) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsUnprocessableEntity %+v", 422, o.Payload) +} +func (o *PostContractsUnprocessableEntity) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *PostContractsUnprocessableEntity) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsInternalServerError creates a PostContractsInternalServerError with default headers values +func NewPostContractsInternalServerError() *PostContractsInternalServerError { + return &PostContractsInternalServerError{} +} + +/* PostContractsInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type PostContractsInternalServerError struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *PostContractsInternalServerError) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsInternalServerError %+v", 500, o.Payload) +} +func (o *PostContractsInternalServerError) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *PostContractsInternalServerError) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/crm/crm_client/contracts/put_contract_parameters.go b/api/crm/crm_client/contracts/put_contract_parameters.go new file mode 100644 index 0000000..51ad12d --- /dev/null +++ b/api/crm/crm_client/contracts/put_contract_parameters.go @@ -0,0 +1,155 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// 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/crm/crm_models" +) + +// NewPutContractParams creates a new PutContractParams 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 NewPutContractParams() *PutContractParams { + return &PutContractParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPutContractParamsWithTimeout creates a new PutContractParams object +// with the ability to set a timeout on a request. +func NewPutContractParamsWithTimeout(timeout time.Duration) *PutContractParams { + return &PutContractParams{ + timeout: timeout, + } +} + +// NewPutContractParamsWithContext creates a new PutContractParams object +// with the ability to set a context for a request. +func NewPutContractParamsWithContext(ctx context.Context) *PutContractParams { + return &PutContractParams{ + Context: ctx, + } +} + +// NewPutContractParamsWithHTTPClient creates a new PutContractParams object +// with the ability to set a custom HTTPClient for a request. +func NewPutContractParamsWithHTTPClient(client *http.Client) *PutContractParams { + return &PutContractParams{ + HTTPClient: client, + } +} + +/* PutContractParams contains all the parameters to send to the API endpoint + for the put contract operation. + + Typically these are written to a http.Request. +*/ +type PutContractParams struct { + + /* ContractsRequest. + + An array of new Contract records + */ + ContractsRequest *crm_models.ContractRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the put contract params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PutContractParams) WithDefaults() *PutContractParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the put contract params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PutContractParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the put contract params +func (o *PutContractParams) WithTimeout(timeout time.Duration) *PutContractParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the put contract params +func (o *PutContractParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the put contract params +func (o *PutContractParams) WithContext(ctx context.Context) *PutContractParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the put contract params +func (o *PutContractParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the put contract params +func (o *PutContractParams) WithHTTPClient(client *http.Client) *PutContractParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the put contract params +func (o *PutContractParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithContractsRequest adds the contractsRequest to the put contract params +func (o *PutContractParams) WithContractsRequest(contractsRequest *crm_models.ContractRequest) *PutContractParams { + o.SetContractsRequest(contractsRequest) + return o +} + +// SetContractsRequest adds the contractsRequest to the put contract params +func (o *PutContractParams) SetContractsRequest(contractsRequest *crm_models.ContractRequest) { + o.ContractsRequest = contractsRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *PutContractParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.ContractsRequest != nil { + if err := r.SetBodyParam(o.ContractsRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/crm/crm_client/contracts/put_contract_responses.go b/api/crm/crm_client/contracts/put_contract_responses.go new file mode 100644 index 0000000..bc1398c --- /dev/null +++ b/api/crm/crm_client/contracts/put_contract_responses.go @@ -0,0 +1,323 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// 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/crm/crm_models" +) + +// PutContractReader is a Reader for the PutContract structure. +type PutContractReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PutContractReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPutContractOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewPutContractUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewPutContractForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPutContractNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewPutContractUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPutContractInternalServerError() + 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()) + } +} + +// NewPutContractOK creates a PutContractOK with default headers values +func NewPutContractOK() *PutContractOK { + return &PutContractOK{} +} + +/* PutContractOK describes a response with status code 200, with default header values. + +Taxnexus Response with an array of Contract objects +*/ +type PutContractOK struct { + AccessControlAllowOrigin string + CacheControl string + + Payload *crm_models.ContractResponse +} + +func (o *PutContractOK) Error() string { + return fmt.Sprintf("[PUT /contracts][%d] putContractOK %+v", 200, o.Payload) +} +func (o *PutContractOK) GetPayload() *crm_models.ContractResponse { + return o.Payload +} + +func (o *PutContractOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + // hydrates response header Cache-Control + hdrCacheControl := response.GetHeader("Cache-Control") + + if hdrCacheControl != "" { + o.CacheControl = hdrCacheControl + } + + o.Payload = new(crm_models.ContractResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutContractUnauthorized creates a PutContractUnauthorized with default headers values +func NewPutContractUnauthorized() *PutContractUnauthorized { + return &PutContractUnauthorized{} +} + +/* PutContractUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type PutContractUnauthorized struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *PutContractUnauthorized) Error() string { + return fmt.Sprintf("[PUT /contracts][%d] putContractUnauthorized %+v", 401, o.Payload) +} +func (o *PutContractUnauthorized) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *PutContractUnauthorized) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutContractForbidden creates a PutContractForbidden with default headers values +func NewPutContractForbidden() *PutContractForbidden { + return &PutContractForbidden{} +} + +/* PutContractForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type PutContractForbidden struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *PutContractForbidden) Error() string { + return fmt.Sprintf("[PUT /contracts][%d] putContractForbidden %+v", 403, o.Payload) +} +func (o *PutContractForbidden) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *PutContractForbidden) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutContractNotFound creates a PutContractNotFound with default headers values +func NewPutContractNotFound() *PutContractNotFound { + return &PutContractNotFound{} +} + +/* PutContractNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type PutContractNotFound struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *PutContractNotFound) Error() string { + return fmt.Sprintf("[PUT /contracts][%d] putContractNotFound %+v", 404, o.Payload) +} +func (o *PutContractNotFound) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *PutContractNotFound) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutContractUnprocessableEntity creates a PutContractUnprocessableEntity with default headers values +func NewPutContractUnprocessableEntity() *PutContractUnprocessableEntity { + return &PutContractUnprocessableEntity{} +} + +/* PutContractUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type PutContractUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *PutContractUnprocessableEntity) Error() string { + return fmt.Sprintf("[PUT /contracts][%d] putContractUnprocessableEntity %+v", 422, o.Payload) +} +func (o *PutContractUnprocessableEntity) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *PutContractUnprocessableEntity) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutContractInternalServerError creates a PutContractInternalServerError with default headers values +func NewPutContractInternalServerError() *PutContractInternalServerError { + return &PutContractInternalServerError{} +} + +/* PutContractInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type PutContractInternalServerError struct { + AccessControlAllowOrigin string + + Payload *crm_models.Error +} + +func (o *PutContractInternalServerError) Error() string { + return fmt.Sprintf("[PUT /contracts][%d] putContractInternalServerError %+v", 500, o.Payload) +} +func (o *PutContractInternalServerError) GetPayload() *crm_models.Error { + return o.Payload +} + +func (o *PutContractInternalServerError) 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(crm_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/crm/crm_client/cors/contract_options_observable_parameters.go b/api/crm/crm_client/cors/contract_options_observable_parameters.go new file mode 100644 index 0000000..dfa0b91 --- /dev/null +++ b/api/crm/crm_client/cors/contract_options_observable_parameters.go @@ -0,0 +1,130 @@ +// 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" +) + +// NewContractOptionsObservableParams creates a new ContractOptionsObservableParams 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 NewContractOptionsObservableParams() *ContractOptionsObservableParams { + return &ContractOptionsObservableParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewContractOptionsObservableParamsWithTimeout creates a new ContractOptionsObservableParams object +// with the ability to set a timeout on a request. +func NewContractOptionsObservableParamsWithTimeout(timeout time.Duration) *ContractOptionsObservableParams { + return &ContractOptionsObservableParams{ + timeout: timeout, + } +} + +// NewContractOptionsObservableParamsWithContext creates a new ContractOptionsObservableParams object +// with the ability to set a context for a request. +func NewContractOptionsObservableParamsWithContext(ctx context.Context) *ContractOptionsObservableParams { + return &ContractOptionsObservableParams{ + Context: ctx, + } +} + +// NewContractOptionsObservableParamsWithHTTPClient creates a new ContractOptionsObservableParams object +// with the ability to set a custom HTTPClient for a request. +func NewContractOptionsObservableParamsWithHTTPClient(client *http.Client) *ContractOptionsObservableParams { + return &ContractOptionsObservableParams{ + HTTPClient: client, + } +} + +/* ContractOptionsObservableParams contains all the parameters to send to the API endpoint + for the contract options observable operation. + + Typically these are written to a http.Request. +*/ +type ContractOptionsObservableParams struct { + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the contract options observable params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ContractOptionsObservableParams) WithDefaults() *ContractOptionsObservableParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the contract options observable params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ContractOptionsObservableParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the contract options observable params +func (o *ContractOptionsObservableParams) WithTimeout(timeout time.Duration) *ContractOptionsObservableParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the contract options observable params +func (o *ContractOptionsObservableParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the contract options observable params +func (o *ContractOptionsObservableParams) WithContext(ctx context.Context) *ContractOptionsObservableParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the contract options observable params +func (o *ContractOptionsObservableParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the contract options observable params +func (o *ContractOptionsObservableParams) WithHTTPClient(client *http.Client) *ContractOptionsObservableParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the contract options observable params +func (o *ContractOptionsObservableParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WriteToRequest writes these params to a swagger request +func (o *ContractOptionsObservableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/crm/crm_client/cors/contract_options_observable_responses.go b/api/crm/crm_client/cors/contract_options_observable_responses.go new file mode 100644 index 0000000..6323fc9 --- /dev/null +++ b/api/crm/crm_client/cors/contract_options_observable_responses.go @@ -0,0 +1,113 @@ +// 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" +) + +// ContractOptionsObservableReader is a Reader for the ContractOptionsObservable structure. +type ContractOptionsObservableReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ContractOptionsObservableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewContractOptionsObservableOK() + 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()) + } +} + +// NewContractOptionsObservableOK creates a ContractOptionsObservableOK with default headers values +func NewContractOptionsObservableOK() *ContractOptionsObservableOK { + return &ContractOptionsObservableOK{} +} + +/* ContractOptionsObservableOK describes a response with status code 200, with default header values. + +CORS OPTIONS response +*/ +type ContractOptionsObservableOK struct { + AccessControlAllowCredentials string + AccessControlAllowHeaders string + AccessControlAllowMethods string + AccessControlAllowOrigin string + AccessControlExposeHeaders string + AccessControlMaxAge string + CacheControl string +} + +func (o *ContractOptionsObservableOK) Error() string { + return fmt.Sprintf("[OPTIONS /contracts/observable][%d] contractOptionsObservableOK ", 200) +} + +func (o *ContractOptionsObservableOK) 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 +} diff --git a/api/crm/crm_client/cors/contract_options_parameters.go b/api/crm/crm_client/cors/contract_options_parameters.go new file mode 100644 index 0000000..c38c00d --- /dev/null +++ b/api/crm/crm_client/cors/contract_options_parameters.go @@ -0,0 +1,130 @@ +// 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" +) + +// NewContractOptionsParams creates a new ContractOptionsParams 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 NewContractOptionsParams() *ContractOptionsParams { + return &ContractOptionsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewContractOptionsParamsWithTimeout creates a new ContractOptionsParams object +// with the ability to set a timeout on a request. +func NewContractOptionsParamsWithTimeout(timeout time.Duration) *ContractOptionsParams { + return &ContractOptionsParams{ + timeout: timeout, + } +} + +// NewContractOptionsParamsWithContext creates a new ContractOptionsParams object +// with the ability to set a context for a request. +func NewContractOptionsParamsWithContext(ctx context.Context) *ContractOptionsParams { + return &ContractOptionsParams{ + Context: ctx, + } +} + +// NewContractOptionsParamsWithHTTPClient creates a new ContractOptionsParams object +// with the ability to set a custom HTTPClient for a request. +func NewContractOptionsParamsWithHTTPClient(client *http.Client) *ContractOptionsParams { + return &ContractOptionsParams{ + HTTPClient: client, + } +} + +/* ContractOptionsParams contains all the parameters to send to the API endpoint + for the contract options operation. + + Typically these are written to a http.Request. +*/ +type ContractOptionsParams struct { + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the contract options params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ContractOptionsParams) WithDefaults() *ContractOptionsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the contract options params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ContractOptionsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the contract options params +func (o *ContractOptionsParams) WithTimeout(timeout time.Duration) *ContractOptionsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the contract options params +func (o *ContractOptionsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the contract options params +func (o *ContractOptionsParams) WithContext(ctx context.Context) *ContractOptionsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the contract options params +func (o *ContractOptionsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the contract options params +func (o *ContractOptionsParams) WithHTTPClient(client *http.Client) *ContractOptionsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the contract options params +func (o *ContractOptionsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WriteToRequest writes these params to a swagger request +func (o *ContractOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/crm/crm_client/cors/contract_options_responses.go b/api/crm/crm_client/cors/contract_options_responses.go new file mode 100644 index 0000000..4745c40 --- /dev/null +++ b/api/crm/crm_client/cors/contract_options_responses.go @@ -0,0 +1,113 @@ +// 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" +) + +// ContractOptionsReader is a Reader for the ContractOptions structure. +type ContractOptionsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ContractOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewContractOptionsOK() + 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()) + } +} + +// NewContractOptionsOK creates a ContractOptionsOK with default headers values +func NewContractOptionsOK() *ContractOptionsOK { + return &ContractOptionsOK{} +} + +/* ContractOptionsOK describes a response with status code 200, with default header values. + +CORS OPTIONS response +*/ +type ContractOptionsOK struct { + AccessControlAllowCredentials string + AccessControlAllowHeaders string + AccessControlAllowMethods string + AccessControlAllowOrigin string + AccessControlExposeHeaders string + AccessControlMaxAge string + CacheControl string +} + +func (o *ContractOptionsOK) Error() string { + return fmt.Sprintf("[OPTIONS /contracts][%d] contractOptionsOK ", 200) +} + +func (o *ContractOptionsOK) 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 +} diff --git a/api/crm/crm_client/cors/cors_client.go b/api/crm/crm_client/cors/cors_client.go index 490cc48..5cd1be6 100644 --- a/api/crm/crm_client/cors/cors_client.go +++ b/api/crm/crm_client/cors/cors_client.go @@ -42,6 +42,10 @@ type ClientService interface { ContactOptionsObservable(params *ContactOptionsObservableParams, opts ...ClientOption) (*ContactOptionsObservableOK, error) + ContractOptions(params *ContractOptionsParams, opts ...ClientOption) (*ContractOptionsOK, error) + + ContractOptionsObservable(params *ContractOptionsObservableParams, opts ...ClientOption) (*ContractOptionsObservableOK, error) + LeadOptions(params *LeadOptionsParams, opts ...ClientOption) (*LeadOptionsOK, error) LeadOptionsObservable(params *LeadOptionsObservableParams, opts ...ClientOption) (*LeadOptionsObservableOK, error) @@ -201,6 +205,82 @@ func (a *Client) ContactOptionsObservable(params *ContactOptionsObservableParams panic(msg) } +/* + ContractOptions CORS support +*/ +func (a *Client) ContractOptions(params *ContractOptionsParams, opts ...ClientOption) (*ContractOptionsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewContractOptionsParams() + } + op := &runtime.ClientOperation{ + ID: "contractOptions", + Method: "OPTIONS", + PathPattern: "/contracts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ContractOptionsReader{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.(*ContractOptionsOK) + 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 contractOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + ContractOptionsObservable CORS support +*/ +func (a *Client) ContractOptionsObservable(params *ContractOptionsObservableParams, opts ...ClientOption) (*ContractOptionsObservableOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewContractOptionsObservableParams() + } + op := &runtime.ClientOperation{ + ID: "contractOptionsObservable", + Method: "OPTIONS", + PathPattern: "/contracts/observable", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ContractOptionsObservableReader{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.(*ContractOptionsObservableOK) + 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 contractOptionsObservable: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* LeadOptions CORS support */ diff --git a/api/crm/crm_client/crm_client.go b/api/crm/crm_client/crm_client.go index ed87325..b0a1530 100644 --- a/api/crm/crm_client/crm_client.go +++ b/api/crm/crm_client/crm_client.go @@ -16,6 +16,7 @@ import ( "code.tnxs.net/vernonkeenan/lib/api/crm/crm_client/accounts" "code.tnxs.net/vernonkeenan/lib/api/crm/crm_client/contacts" + "code.tnxs.net/vernonkeenan/lib/api/crm/crm_client/contracts" "code.tnxs.net/vernonkeenan/lib/api/crm/crm_client/cors" "code.tnxs.net/vernonkeenan/lib/api/crm/crm_client/leads" ) @@ -64,6 +65,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *Crm { cli.Transport = transport cli.Accounts = accounts.New(transport, formats) cli.Contacts = contacts.New(transport, formats) + cli.Contracts = contracts.New(transport, formats) cli.Cors = cors.New(transport, formats) cli.Leads = leads.New(transport, formats) return cli @@ -114,6 +116,8 @@ type Crm struct { Contacts contacts.ClientService + Contracts contracts.ClientService + Cors cors.ClientService Leads leads.ClientService @@ -126,6 +130,7 @@ func (c *Crm) SetTransport(transport runtime.ClientTransport) { c.Transport = transport c.Accounts.SetTransport(transport) c.Contacts.SetTransport(transport) + c.Contracts.SetTransport(transport) c.Cors.SetTransport(transport) c.Leads.SetTransport(transport) } diff --git a/api/crm/crm_models/account.go b/api/crm/crm_models/account.go index 08fa0c0..9d00006 100644 --- a/api/crm/crm_models/account.go +++ b/api/crm/crm_models/account.go @@ -322,6 +322,8 @@ func (m *Account) validateBillingAddress(formats strfmt.Registry) error { if err := m.BillingAddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("BillingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BillingAddress") } return err } @@ -339,6 +341,8 @@ func (m *Account) validateBusinessAddress(formats strfmt.Registry) error { if err := m.BusinessAddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("BusinessAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BusinessAddress") } return err } @@ -356,6 +360,8 @@ func (m *Account) validateDefaultAddress(formats strfmt.Registry) error { if err := m.DefaultAddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("DefaultAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("DefaultAddress") } return err } @@ -373,6 +379,8 @@ func (m *Account) validateShippingAddress(formats strfmt.Registry) error { if err := m.ShippingAddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ShippingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ShippingAddress") } return err } @@ -413,6 +421,8 @@ func (m *Account) contextValidateBillingAddress(ctx context.Context, formats str if err := m.BillingAddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("BillingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BillingAddress") } return err } @@ -427,6 +437,8 @@ func (m *Account) contextValidateBusinessAddress(ctx context.Context, formats st if err := m.BusinessAddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("BusinessAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BusinessAddress") } return err } @@ -441,6 +453,8 @@ func (m *Account) contextValidateDefaultAddress(ctx context.Context, formats str if err := m.DefaultAddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("DefaultAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("DefaultAddress") } return err } @@ -455,6 +469,8 @@ func (m *Account) contextValidateShippingAddress(ctx context.Context, formats st if err := m.ShippingAddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ShippingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ShippingAddress") } return err } diff --git a/api/crm/crm_models/account_basic.go b/api/crm/crm_models/account_basic.go index 3d83649..85d78cf 100644 --- a/api/crm/crm_models/account_basic.go +++ b/api/crm/crm_models/account_basic.go @@ -126,6 +126,8 @@ func (m *AccountBasic) validateBillingAddress(formats strfmt.Registry) error { if err := m.BillingAddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("BillingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BillingAddress") } return err } @@ -143,6 +145,8 @@ func (m *AccountBasic) validateDefaultAddress(formats strfmt.Registry) error { if err := m.DefaultAddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("DefaultAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("DefaultAddress") } return err } @@ -160,6 +164,8 @@ func (m *AccountBasic) validateShippingAddress(formats strfmt.Registry) error { if err := m.ShippingAddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ShippingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ShippingAddress") } return err } @@ -196,6 +202,8 @@ func (m *AccountBasic) contextValidateBillingAddress(ctx context.Context, format if err := m.BillingAddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("BillingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BillingAddress") } return err } @@ -210,6 +218,8 @@ func (m *AccountBasic) contextValidateDefaultAddress(ctx context.Context, format if err := m.DefaultAddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("DefaultAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("DefaultAddress") } return err } @@ -224,6 +234,8 @@ func (m *AccountBasic) contextValidateShippingAddress(ctx context.Context, forma if err := m.ShippingAddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ShippingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ShippingAddress") } return err } diff --git a/api/crm/crm_models/account_basic_response.go b/api/crm/crm_models/account_basic_response.go index 0e9ee7a..067a2e4 100644 --- a/api/crm/crm_models/account_basic_response.go +++ b/api/crm/crm_models/account_basic_response.go @@ -62,6 +62,8 @@ func (m *AccountBasicResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *AccountBasicResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *AccountBasicResponse) contextValidateData(ctx context.Context, formats 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 } @@ -131,6 +137,8 @@ func (m *AccountBasicResponse) contextValidateMeta(ctx context.Context, formats 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 } diff --git a/api/crm/crm_models/account_request.go b/api/crm/crm_models/account_request.go index e4efec4..455d556 100644 --- a/api/crm/crm_models/account_request.go +++ b/api/crm/crm_models/account_request.go @@ -55,6 +55,8 @@ func (m *AccountRequest) validateData(formats strfmt.Registry) error { 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 } @@ -87,6 +89,8 @@ func (m *AccountRequest) contextValidateData(ctx context.Context, formats strfmt 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 } diff --git a/api/crm/crm_models/account_response.go b/api/crm/crm_models/account_response.go index aed5696..7e8f2c6 100644 --- a/api/crm/crm_models/account_response.go +++ b/api/crm/crm_models/account_response.go @@ -62,6 +62,8 @@ func (m *AccountResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *AccountResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *AccountResponse) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *AccountResponse) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/crm/crm_models/contact.go b/api/crm/crm_models/contact.go index a7c7f02..c42d54c 100644 --- a/api/crm/crm_models/contact.go +++ b/api/crm/crm_models/contact.go @@ -185,6 +185,8 @@ func (m *Contact) validateMailingAddress(formats strfmt.Registry) error { if err := m.MailingAddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("MailingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("MailingAddress") } return err } @@ -202,6 +204,8 @@ func (m *Contact) validateOtherAddress(formats strfmt.Registry) error { if err := m.OtherAddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("OtherAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("OtherAddress") } return err } @@ -234,6 +238,8 @@ func (m *Contact) contextValidateMailingAddress(ctx context.Context, formats str if err := m.MailingAddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("MailingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("MailingAddress") } return err } @@ -248,6 +254,8 @@ func (m *Contact) contextValidateOtherAddress(ctx context.Context, formats strfm if err := m.OtherAddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("OtherAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("OtherAddress") } return err } diff --git a/api/crm/crm_models/contact_request.go b/api/crm/crm_models/contact_request.go index 084f593..1abb665 100644 --- a/api/crm/crm_models/contact_request.go +++ b/api/crm/crm_models/contact_request.go @@ -55,6 +55,8 @@ func (m *ContactRequest) validateData(formats strfmt.Registry) error { 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 } @@ -87,6 +89,8 @@ func (m *ContactRequest) contextValidateData(ctx context.Context, formats strfmt 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 } diff --git a/api/crm/crm_models/contact_response.go b/api/crm/crm_models/contact_response.go index c49de6e..51b6d52 100644 --- a/api/crm/crm_models/contact_response.go +++ b/api/crm/crm_models/contact_response.go @@ -62,6 +62,8 @@ func (m *ContactResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *ContactResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *ContactResponse) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *ContactResponse) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/crm/crm_models/contract.go b/api/crm/crm_models/contract.go new file mode 100644 index 0000000..b97edbe --- /dev/null +++ b/api/crm/crm_models/contract.go @@ -0,0 +1,238 @@ +// 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 crm_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" +) + +// Contract contract +// +// swagger:model Contract +type Contract struct { + + // Account + AccountID string `json:"AccountID,omitempty"` + + // Activated By + ActivatedByID string `json:"ActivatedByID,omitempty"` + + // Activated Date + ActivatedDate string `json:"ActivatedDate,omitempty"` + + // Billing Address + BillingAddress *Address `json:"BillingAddress,omitempty"` + + // Billing Contact + BillingContactID string `json:"BillingContactID,omitempty"` + + // Company Signed Date + CompanySignedDate string `json:"CompanySignedDate,omitempty"` + + // Company Signed By + CompanySignedID string `json:"CompanySignedID,omitempty"` + + // Contract Number + ContractNumber string `json:"ContractNumber,omitempty"` + + // Contract Term (months) + ContractTerm float64 `json:"ContractTerm,omitempty"` + + // Created By User ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // Created Date + CreatedDate string `json:"CreatedDate,omitempty"` + + // Customer Signed Date + CustomerSignedDate string `json:"CustomerSignedDate,omitempty"` + + // Customer Signed By + CustomerSignedID string `json:"CustomerSignedID,omitempty"` + + // Customer Signed Title + CustomerSignedTitle string `json:"CustomerSignedTitle,omitempty"` + + // End User + DefaultEndUserID string `json:"DefaultEndUserID,omitempty"` + + // Description + Description string `json:"Description,omitempty"` + + // Contract End Date + EndDate string `json:"EndDate,omitempty"` + + // Hourly Rate + HourlyRate float64 `json:"HourlyRate,omitempty"` + + // Telnexus Record Id + ID string `json:"ID,omitempty"` + + // Last Modified By User ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // Last Modified Date + LastModifiedDate string `json:"LastModifiedDate,omitempty"` + + // Contract Name + Name string `json:"Name,omitempty"` + + // Payment Method + PaymentMethodID string `json:"PaymentMethodID,omitempty"` + + // Payment Terms + PaymentTerms string `json:"PaymentTerms,omitempty"` + + // Perpetual Agreement? + Perpetual bool `json:"Perpetual,omitempty"` + + // Shipping Address + ShippingAddress *Address `json:"ShippingAddress,omitempty"` + + // Shipping Contact + ShippingContactID string `json:"ShippingContactID,omitempty"` + + // Contract Start Date + StartDate string `json:"StartDate,omitempty"` + + // Status + Status string `json:"Status,omitempty"` + + // Tenant Identifier + TenantID string `json:"TenantID,omitempty"` +} + +// Validate validates this contract +func (m *Contract) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateBillingAddress(formats); err != nil { + res = append(res, err) + } + + if err := m.validateShippingAddress(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Contract) validateBillingAddress(formats strfmt.Registry) error { + if swag.IsZero(m.BillingAddress) { // not required + return nil + } + + if m.BillingAddress != nil { + if err := m.BillingAddress.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("BillingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BillingAddress") + } + return err + } + } + + return nil +} + +func (m *Contract) validateShippingAddress(formats strfmt.Registry) error { + if swag.IsZero(m.ShippingAddress) { // not required + return nil + } + + if m.ShippingAddress != nil { + if err := m.ShippingAddress.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("ShippingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ShippingAddress") + } + return err + } + } + + return nil +} + +// ContextValidate validate this contract based on the context it is used +func (m *Contract) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateBillingAddress(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateShippingAddress(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Contract) contextValidateBillingAddress(ctx context.Context, formats strfmt.Registry) error { + + if m.BillingAddress != nil { + if err := m.BillingAddress.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("BillingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BillingAddress") + } + return err + } + } + + return nil +} + +func (m *Contract) contextValidateShippingAddress(ctx context.Context, formats strfmt.Registry) error { + + if m.ShippingAddress != nil { + if err := m.ShippingAddress.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("ShippingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ShippingAddress") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Contract) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Contract) UnmarshalBinary(b []byte) error { + var res Contract + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/crm/crm_models/contract_request.go b/api/crm/crm_models/contract_request.go new file mode 100644 index 0000000..ebdeabd --- /dev/null +++ b/api/crm/crm_models/contract_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package crm_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" +) + +// ContractRequest contract request +// +// swagger:model ContractRequest +type ContractRequest struct { + + // data + Data []*Contract `json:"Data"` +} + +// Validate validates this contract request +func (m *ContractRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ContractRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this contract request based on the context it is used +func (m *ContractRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ContractRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *ContractRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ContractRequest) UnmarshalBinary(b []byte) error { + var res ContractRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/crm/crm_models/contract_response.go b/api/crm/crm_models/contract_response.go new file mode 100644 index 0000000..1d84f19 --- /dev/null +++ b/api/crm/crm_models/contract_response.go @@ -0,0 +1,166 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package crm_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" +) + +// ContractResponse contract response +// +// swagger:model ContractResponse +type ContractResponse struct { + + // data + Data []*Contract `json:"Data"` + + // meta + Meta *ResponseMeta `json:"Meta,omitempty"` +} + +// Validate validates this contract response +func (m *ContractResponse) 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 *ContractResponse) 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 *ContractResponse) 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 contract response based on the context it is used +func (m *ContractResponse) 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 *ContractResponse) 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 *ContractResponse) 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 *ContractResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ContractResponse) UnmarshalBinary(b []byte) error { + var res ContractResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/crm/crm_models/delete_response.go b/api/crm/crm_models/delete_response.go index e86114a..e37720d 100644 --- a/api/crm/crm_models/delete_response.go +++ b/api/crm/crm_models/delete_response.go @@ -62,6 +62,8 @@ func (m *DeleteResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *DeleteResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *DeleteResponse) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -131,6 +137,8 @@ func (m *DeleteResponse) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/crm/crm_models/lead.go b/api/crm/crm_models/lead.go index 7001ae0..4e684f4 100644 --- a/api/crm/crm_models/lead.go +++ b/api/crm/crm_models/lead.go @@ -130,6 +130,8 @@ func (m *Lead) validateAddress(formats strfmt.Registry) error { if err := m.Address.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Address") } return err } @@ -158,6 +160,8 @@ func (m *Lead) contextValidateAddress(ctx context.Context, formats strfmt.Regist if err := m.Address.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Address") } return err } diff --git a/api/crm/crm_models/lead_request.go b/api/crm/crm_models/lead_request.go index 539ed81..c36643f 100644 --- a/api/crm/crm_models/lead_request.go +++ b/api/crm/crm_models/lead_request.go @@ -55,6 +55,8 @@ func (m *LeadRequest) validateData(formats strfmt.Registry) error { 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 } @@ -87,6 +89,8 @@ func (m *LeadRequest) contextValidateData(ctx context.Context, formats strfmt.Re 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 } diff --git a/api/crm/crm_models/lead_response.go b/api/crm/crm_models/lead_response.go index 1c10133..ba9e659 100644 --- a/api/crm/crm_models/lead_response.go +++ b/api/crm/crm_models/lead_response.go @@ -62,6 +62,8 @@ func (m *LeadResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *LeadResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *LeadResponse) contextValidateData(ctx context.Context, formats strfmt.R 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 } @@ -131,6 +137,8 @@ func (m *LeadResponse) contextValidateMeta(ctx context.Context, formats strfmt.R 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 } diff --git a/api/crm/crm_models/response_meta.go b/api/crm/crm_models/response_meta.go index bd5788c..e9d006b 100644 --- a/api/crm/crm_models/response_meta.go +++ b/api/crm/crm_models/response_meta.go @@ -82,6 +82,8 @@ func (m *ResponseMeta) validatePagination(formats strfmt.Registry) error { if err := m.Pagination.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Pagination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Pagination") } return err } @@ -110,6 +112,8 @@ func (m *ResponseMeta) contextValidatePagination(ctx context.Context, formats st if err := m.Pagination.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Pagination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Pagination") } return err } diff --git a/api/devops/devops_models/cluster_request.go b/api/devops/devops_models/cluster_request.go index 75553a5..c901985 100644 --- a/api/devops/devops_models/cluster_request.go +++ b/api/devops/devops_models/cluster_request.go @@ -55,6 +55,8 @@ func (m *ClusterRequest) validateData(formats strfmt.Registry) error { 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 } @@ -87,6 +89,8 @@ func (m *ClusterRequest) contextValidateData(ctx context.Context, formats strfmt 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 } diff --git a/api/devops/devops_models/cluster_response.go b/api/devops/devops_models/cluster_response.go index b35e6fd..6a97cec 100644 --- a/api/devops/devops_models/cluster_response.go +++ b/api/devops/devops_models/cluster_response.go @@ -62,6 +62,8 @@ func (m *ClusterResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *ClusterResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *ClusterResponse) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *ClusterResponse) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/devops/devops_models/database.go b/api/devops/devops_models/database.go index bfd0053..9259c95 100644 --- a/api/devops/devops_models/database.go +++ b/api/devops/devops_models/database.go @@ -48,9 +48,6 @@ type Database struct { // Last Modifed Date LastModifiedDate string `json:"LastModifiedDate,omitempty"` - // List of Taxnexus microservices implemented by this Database - Microservices string `json:"Microservices,omitempty"` - // The current status of this Tenant Status string `json:"Status,omitempty"` diff --git a/api/devops/devops_models/database_request.go b/api/devops/devops_models/database_request.go index 99abe7b..d5fe513 100644 --- a/api/devops/devops_models/database_request.go +++ b/api/devops/devops_models/database_request.go @@ -55,6 +55,8 @@ func (m *DatabaseRequest) validateData(formats strfmt.Registry) error { 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 } @@ -87,6 +89,8 @@ func (m *DatabaseRequest) contextValidateData(ctx context.Context, formats strfm 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 } diff --git a/api/devops/devops_models/database_response.go b/api/devops/devops_models/database_response.go index c2b6078..767dbf8 100644 --- a/api/devops/devops_models/database_response.go +++ b/api/devops/devops_models/database_response.go @@ -62,6 +62,8 @@ func (m *DatabaseResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *DatabaseResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *DatabaseResponse) contextValidateData(ctx context.Context, formats strf 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 } @@ -131,6 +137,8 @@ func (m *DatabaseResponse) contextValidateMeta(ctx context.Context, formats strf 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 } diff --git a/api/devops/devops_models/delete_response.go b/api/devops/devops_models/delete_response.go index e903566..f0b8c46 100644 --- a/api/devops/devops_models/delete_response.go +++ b/api/devops/devops_models/delete_response.go @@ -62,6 +62,8 @@ func (m *DeleteResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *DeleteResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *DeleteResponse) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -131,6 +137,8 @@ func (m *DeleteResponse) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/devops/devops_models/response_meta.go b/api/devops/devops_models/response_meta.go index 67ac126..dda6e3a 100644 --- a/api/devops/devops_models/response_meta.go +++ b/api/devops/devops_models/response_meta.go @@ -82,6 +82,8 @@ func (m *ResponseMeta) validatePagination(formats strfmt.Registry) error { if err := m.Pagination.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Pagination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Pagination") } return err } @@ -110,6 +112,8 @@ func (m *ResponseMeta) contextValidatePagination(ctx context.Context, formats st if err := m.Pagination.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Pagination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Pagination") } return err } diff --git a/api/devops/devops_models/role_request.go b/api/devops/devops_models/role_request.go index 4ebb020..b4c7b66 100644 --- a/api/devops/devops_models/role_request.go +++ b/api/devops/devops_models/role_request.go @@ -55,6 +55,8 @@ func (m *RoleRequest) validateDate(formats strfmt.Registry) error { if err := m.Date[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Date" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Date" + "." + strconv.Itoa(i)) } return err } @@ -87,6 +89,8 @@ func (m *RoleRequest) contextValidateDate(ctx context.Context, formats strfmt.Re if err := m.Date[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Date" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Date" + "." + strconv.Itoa(i)) } return err } diff --git a/api/devops/devops_models/role_response.go b/api/devops/devops_models/role_response.go index 693074f..bd05797 100644 --- a/api/devops/devops_models/role_response.go +++ b/api/devops/devops_models/role_response.go @@ -62,6 +62,8 @@ func (m *RoleResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *RoleResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *RoleResponse) contextValidateData(ctx context.Context, formats strfmt.R 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 } @@ -131,6 +137,8 @@ func (m *RoleResponse) contextValidateMeta(ctx context.Context, formats strfmt.R 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 } diff --git a/api/devops/devops_models/template_request.go b/api/devops/devops_models/template_request.go index 03ab95e..f848753 100644 --- a/api/devops/devops_models/template_request.go +++ b/api/devops/devops_models/template_request.go @@ -55,6 +55,8 @@ func (m *TemplateRequest) validateData(formats strfmt.Registry) error { 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 } @@ -87,6 +89,8 @@ func (m *TemplateRequest) contextValidateData(ctx context.Context, formats strfm 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 } diff --git a/api/devops/devops_models/template_response.go b/api/devops/devops_models/template_response.go index 6a765bb..f5eb10c 100644 --- a/api/devops/devops_models/template_response.go +++ b/api/devops/devops_models/template_response.go @@ -62,6 +62,8 @@ func (m *TemplateResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *TemplateResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *TemplateResponse) contextValidateData(ctx context.Context, formats strf 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 } @@ -131,6 +137,8 @@ func (m *TemplateResponse) contextValidateMeta(ctx context.Context, formats strf 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 } diff --git a/api/devops/devops_models/tenant.go b/api/devops/devops_models/tenant.go index e6490f4..16a3276 100644 --- a/api/devops/devops_models/tenant.go +++ b/api/devops/devops_models/tenant.go @@ -102,6 +102,8 @@ func (m *Tenant) validateDatabases(formats strfmt.Registry) error { if err := m.Databases[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Databases" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Databases" + "." + strconv.Itoa(i)) } return err } @@ -126,6 +128,8 @@ func (m *Tenant) validateRoles(formats strfmt.Registry) error { if err := m.Roles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Roles" + "." + strconv.Itoa(i)) } return err } @@ -150,6 +154,8 @@ func (m *Tenant) validateTenantUsers(formats strfmt.Registry) error { if err := m.TenantUsers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } return err } @@ -190,6 +196,8 @@ func (m *Tenant) contextValidateDatabases(ctx context.Context, formats strfmt.Re if err := m.Databases[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Databases" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Databases" + "." + strconv.Itoa(i)) } return err } @@ -208,6 +216,8 @@ func (m *Tenant) contextValidateRoles(ctx context.Context, formats strfmt.Regist if err := m.Roles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Roles" + "." + strconv.Itoa(i)) } return err } @@ -226,6 +236,8 @@ func (m *Tenant) contextValidateTenantUsers(ctx context.Context, formats strfmt. if err := m.TenantUsers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } return err } diff --git a/api/devops/devops_models/tenant_request.go b/api/devops/devops_models/tenant_request.go index 97e9878..75067d6 100644 --- a/api/devops/devops_models/tenant_request.go +++ b/api/devops/devops_models/tenant_request.go @@ -55,6 +55,8 @@ func (m *TenantRequest) validateData(formats strfmt.Registry) error { 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 } @@ -87,6 +89,8 @@ func (m *TenantRequest) contextValidateData(ctx context.Context, formats strfmt. 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 } diff --git a/api/devops/devops_models/tenant_response.go b/api/devops/devops_models/tenant_response.go index 08bf737..6aa8e49 100644 --- a/api/devops/devops_models/tenant_response.go +++ b/api/devops/devops_models/tenant_response.go @@ -62,6 +62,8 @@ func (m *TenantResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *TenantResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *TenantResponse) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -131,6 +137,8 @@ func (m *TenantResponse) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/devops/devops_models/user.go b/api/devops/devops_models/user.go index 661a802..31939f9 100644 --- a/api/devops/devops_models/user.go +++ b/api/devops/devops_models/user.go @@ -229,6 +229,8 @@ func (m *User) validateAddress(formats strfmt.Registry) error { if err := m.Address.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Address") } return err } @@ -251,6 +253,8 @@ func (m *User) validateTenantUsers(formats strfmt.Registry) error { if err := m.TenantUsers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } return err } @@ -275,6 +279,8 @@ func (m *User) validateUserRoles(formats strfmt.Registry) error { if err := m.UserRoles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("UserRoles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("UserRoles" + "." + strconv.Itoa(i)) } return err } @@ -313,6 +319,8 @@ func (m *User) contextValidateAddress(ctx context.Context, formats strfmt.Regist if err := m.Address.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Address") } return err } @@ -329,6 +337,8 @@ func (m *User) contextValidateTenantUsers(ctx context.Context, formats strfmt.Re if err := m.TenantUsers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } return err } @@ -347,6 +357,8 @@ func (m *User) contextValidateUserRoles(ctx context.Context, formats strfmt.Regi if err := m.UserRoles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("UserRoles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("UserRoles" + "." + strconv.Itoa(i)) } return err } diff --git a/api/devops/devops_models/user_request.go b/api/devops/devops_models/user_request.go index f6b1a39..651b676 100644 --- a/api/devops/devops_models/user_request.go +++ b/api/devops/devops_models/user_request.go @@ -55,6 +55,8 @@ func (m *UserRequest) validateData(formats strfmt.Registry) error { 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 } @@ -87,6 +89,8 @@ func (m *UserRequest) contextValidateData(ctx context.Context, formats strfmt.Re 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 } diff --git a/api/devops/devops_models/user_response.go b/api/devops/devops_models/user_response.go index d423712..f958de2 100644 --- a/api/devops/devops_models/user_response.go +++ b/api/devops/devops_models/user_response.go @@ -62,6 +62,8 @@ func (m *UserResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *UserResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *UserResponse) contextValidateData(ctx context.Context, formats strfmt.R 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 } @@ -131,6 +137,8 @@ func (m *UserResponse) contextValidateMeta(ctx context.Context, formats strfmt.R 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 } diff --git a/api/research/research_client/contracts/contracts_client.go b/api/research/research_client/contracts/contracts_client.go new file mode 100644 index 0000000..15420ab --- /dev/null +++ b/api/research/research_client/contracts/contracts_client.go @@ -0,0 +1,129 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// 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 contracts API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for contracts 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 { + GetContracts(params *GetContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsOK, error) + + PostContracts(params *PostContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContractsOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* + GetContracts gets a list of contracts + + Return a list of all available Contracts +*/ +func (a *Client) GetContracts(params *GetContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetContractsParams() + } + op := &runtime.ClientOperation{ + ID: "getContracts", + Method: "GET", + PathPattern: "/contracts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetContractsReader{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.(*GetContractsOK) + 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 getContracts: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + PostContracts adds a new contract to taxnexus + + Contract record to be added +*/ +func (a *Client) PostContracts(params *PostContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContractsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPostContractsParams() + } + op := &runtime.ClientOperation{ + ID: "postContracts", + Method: "POST", + PathPattern: "/contracts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &PostContractsReader{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.(*PostContractsOK) + 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 postContracts: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/research/research_client/contracts/get_contracts_parameters.go b/api/research/research_client/contracts/get_contracts_parameters.go new file mode 100644 index 0000000..6f09f33 --- /dev/null +++ b/api/research/research_client/contracts/get_contracts_parameters.go @@ -0,0 +1,272 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetContractsParams creates a new GetContractsParams 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 NewGetContractsParams() *GetContractsParams { + return &GetContractsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetContractsParamsWithTimeout creates a new GetContractsParams object +// with the ability to set a timeout on a request. +func NewGetContractsParamsWithTimeout(timeout time.Duration) *GetContractsParams { + return &GetContractsParams{ + timeout: timeout, + } +} + +// NewGetContractsParamsWithContext creates a new GetContractsParams object +// with the ability to set a context for a request. +func NewGetContractsParamsWithContext(ctx context.Context) *GetContractsParams { + return &GetContractsParams{ + Context: ctx, + } +} + +// NewGetContractsParamsWithHTTPClient creates a new GetContractsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetContractsParamsWithHTTPClient(client *http.Client) *GetContractsParams { + return &GetContractsParams{ + HTTPClient: client, + } +} + +/* GetContractsParams contains all the parameters to send to the API endpoint + for the get contracts operation. + + Typically these are written to a http.Request. +*/ +type GetContractsParams struct { + + /* Active. + + Only retrieve active records? + */ + Active *bool + + /* ContractID. + + Taxnexus Contact record ID + */ + ContractID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetContractsParams) WithDefaults() *GetContractsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetContractsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get contracts params +func (o *GetContractsParams) WithTimeout(timeout time.Duration) *GetContractsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get contracts params +func (o *GetContractsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get contracts params +func (o *GetContractsParams) WithContext(ctx context.Context) *GetContractsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get contracts params +func (o *GetContractsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get contracts params +func (o *GetContractsParams) WithHTTPClient(client *http.Client) *GetContractsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get contracts params +func (o *GetContractsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithActive adds the active to the get contracts params +func (o *GetContractsParams) WithActive(active *bool) *GetContractsParams { + o.SetActive(active) + return o +} + +// SetActive adds the active to the get contracts params +func (o *GetContractsParams) SetActive(active *bool) { + o.Active = active +} + +// WithContractID adds the contractID to the get contracts params +func (o *GetContractsParams) WithContractID(contractID *string) *GetContractsParams { + o.SetContractID(contractID) + return o +} + +// SetContractID adds the contractId to the get contracts params +func (o *GetContractsParams) SetContractID(contractID *string) { + o.ContractID = contractID +} + +// WithLimit adds the limit to the get contracts params +func (o *GetContractsParams) WithLimit(limit *int64) *GetContractsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get contracts params +func (o *GetContractsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get contracts params +func (o *GetContractsParams) WithOffset(offset *int64) *GetContractsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get contracts params +func (o *GetContractsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetContractsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Active != nil { + + // query param active + var qrActive bool + + if o.Active != nil { + qrActive = *o.Active + } + qActive := swag.FormatBool(qrActive) + if qActive != "" { + + if err := r.SetQueryParam("active", qActive); err != nil { + return err + } + } + } + + if o.ContractID != nil { + + // query param contractId + var qrContractID string + + if o.ContractID != nil { + qrContractID = *o.ContractID + } + qContractID := qrContractID + if qContractID != "" { + + if err := r.SetQueryParam("contractId", qContractID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/research/research_client/contracts/get_contracts_responses.go b/api/research/research_client/contracts/get_contracts_responses.go new file mode 100644 index 0000000..9c2b7f9 --- /dev/null +++ b/api/research/research_client/contracts/get_contracts_responses.go @@ -0,0 +1,323 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/research/research_models" +) + +// GetContractsReader is a Reader for the GetContracts structure. +type GetContractsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetContractsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetContractsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewGetContractsUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewGetContractsForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewGetContractsNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewGetContractsUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewGetContractsInternalServerError() + 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()) + } +} + +// NewGetContractsOK creates a GetContractsOK with default headers values +func NewGetContractsOK() *GetContractsOK { + return &GetContractsOK{} +} + +/* GetContractsOK describes a response with status code 200, with default header values. + +Taxnexus Response with an array of Contract objects +*/ +type GetContractsOK struct { + AccessControlAllowOrigin string + CacheControl string + + Payload *research_models.ContractResponse +} + +func (o *GetContractsOK) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsOK %+v", 200, o.Payload) +} +func (o *GetContractsOK) GetPayload() *research_models.ContractResponse { + return o.Payload +} + +func (o *GetContractsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + // hydrates response header Cache-Control + hdrCacheControl := response.GetHeader("Cache-Control") + + if hdrCacheControl != "" { + o.CacheControl = hdrCacheControl + } + + o.Payload = new(research_models.ContractResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsUnauthorized creates a GetContractsUnauthorized with default headers values +func NewGetContractsUnauthorized() *GetContractsUnauthorized { + return &GetContractsUnauthorized{} +} + +/* GetContractsUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type GetContractsUnauthorized struct { + AccessControlAllowOrigin string + + Payload *research_models.Error +} + +func (o *GetContractsUnauthorized) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsUnauthorized %+v", 401, o.Payload) +} +func (o *GetContractsUnauthorized) GetPayload() *research_models.Error { + return o.Payload +} + +func (o *GetContractsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(research_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsForbidden creates a GetContractsForbidden with default headers values +func NewGetContractsForbidden() *GetContractsForbidden { + return &GetContractsForbidden{} +} + +/* GetContractsForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type GetContractsForbidden struct { + AccessControlAllowOrigin string + + Payload *research_models.Error +} + +func (o *GetContractsForbidden) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsForbidden %+v", 403, o.Payload) +} +func (o *GetContractsForbidden) GetPayload() *research_models.Error { + return o.Payload +} + +func (o *GetContractsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(research_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsNotFound creates a GetContractsNotFound with default headers values +func NewGetContractsNotFound() *GetContractsNotFound { + return &GetContractsNotFound{} +} + +/* GetContractsNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type GetContractsNotFound struct { + AccessControlAllowOrigin string + + Payload *research_models.Error +} + +func (o *GetContractsNotFound) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsNotFound %+v", 404, o.Payload) +} +func (o *GetContractsNotFound) GetPayload() *research_models.Error { + return o.Payload +} + +func (o *GetContractsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(research_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsUnprocessableEntity creates a GetContractsUnprocessableEntity with default headers values +func NewGetContractsUnprocessableEntity() *GetContractsUnprocessableEntity { + return &GetContractsUnprocessableEntity{} +} + +/* GetContractsUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type GetContractsUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *research_models.Error +} + +func (o *GetContractsUnprocessableEntity) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsUnprocessableEntity %+v", 422, o.Payload) +} +func (o *GetContractsUnprocessableEntity) GetPayload() *research_models.Error { + return o.Payload +} + +func (o *GetContractsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(research_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsInternalServerError creates a GetContractsInternalServerError with default headers values +func NewGetContractsInternalServerError() *GetContractsInternalServerError { + return &GetContractsInternalServerError{} +} + +/* GetContractsInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type GetContractsInternalServerError struct { + AccessControlAllowOrigin string + + Payload *research_models.Error +} + +func (o *GetContractsInternalServerError) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsInternalServerError %+v", 500, o.Payload) +} +func (o *GetContractsInternalServerError) GetPayload() *research_models.Error { + return o.Payload +} + +func (o *GetContractsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(research_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/research/research_client/contracts/post_contracts_parameters.go b/api/research/research_client/contracts/post_contracts_parameters.go new file mode 100644 index 0000000..25015d3 --- /dev/null +++ b/api/research/research_client/contracts/post_contracts_parameters.go @@ -0,0 +1,155 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/research/research_models" +) + +// NewPostContractsParams creates a new PostContractsParams 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 NewPostContractsParams() *PostContractsParams { + return &PostContractsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPostContractsParamsWithTimeout creates a new PostContractsParams object +// with the ability to set a timeout on a request. +func NewPostContractsParamsWithTimeout(timeout time.Duration) *PostContractsParams { + return &PostContractsParams{ + timeout: timeout, + } +} + +// NewPostContractsParamsWithContext creates a new PostContractsParams object +// with the ability to set a context for a request. +func NewPostContractsParamsWithContext(ctx context.Context) *PostContractsParams { + return &PostContractsParams{ + Context: ctx, + } +} + +// NewPostContractsParamsWithHTTPClient creates a new PostContractsParams object +// with the ability to set a custom HTTPClient for a request. +func NewPostContractsParamsWithHTTPClient(client *http.Client) *PostContractsParams { + return &PostContractsParams{ + HTTPClient: client, + } +} + +/* PostContractsParams contains all the parameters to send to the API endpoint + for the post contracts operation. + + Typically these are written to a http.Request. +*/ +type PostContractsParams struct { + + /* ContractsRequest. + + An array of new Contract records + */ + ContractsRequest *research_models.ContractRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the post contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PostContractsParams) WithDefaults() *PostContractsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the post contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PostContractsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the post contracts params +func (o *PostContractsParams) WithTimeout(timeout time.Duration) *PostContractsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the post contracts params +func (o *PostContractsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the post contracts params +func (o *PostContractsParams) WithContext(ctx context.Context) *PostContractsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the post contracts params +func (o *PostContractsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the post contracts params +func (o *PostContractsParams) WithHTTPClient(client *http.Client) *PostContractsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the post contracts params +func (o *PostContractsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithContractsRequest adds the contractsRequest to the post contracts params +func (o *PostContractsParams) WithContractsRequest(contractsRequest *research_models.ContractRequest) *PostContractsParams { + o.SetContractsRequest(contractsRequest) + return o +} + +// SetContractsRequest adds the contractsRequest to the post contracts params +func (o *PostContractsParams) SetContractsRequest(contractsRequest *research_models.ContractRequest) { + o.ContractsRequest = contractsRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *PostContractsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.ContractsRequest != nil { + if err := r.SetBodyParam(o.ContractsRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/research/research_client/contracts/post_contracts_responses.go b/api/research/research_client/contracts/post_contracts_responses.go new file mode 100644 index 0000000..27de979 --- /dev/null +++ b/api/research/research_client/contracts/post_contracts_responses.go @@ -0,0 +1,323 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/research/research_models" +) + +// PostContractsReader is a Reader for the PostContracts structure. +type PostContractsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PostContractsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPostContractsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewPostContractsUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewPostContractsForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPostContractsNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewPostContractsUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPostContractsInternalServerError() + 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()) + } +} + +// NewPostContractsOK creates a PostContractsOK with default headers values +func NewPostContractsOK() *PostContractsOK { + return &PostContractsOK{} +} + +/* PostContractsOK describes a response with status code 200, with default header values. + +Taxnexus Response with an array of Contract objects +*/ +type PostContractsOK struct { + AccessControlAllowOrigin string + CacheControl string + + Payload *research_models.ContractResponse +} + +func (o *PostContractsOK) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsOK %+v", 200, o.Payload) +} +func (o *PostContractsOK) GetPayload() *research_models.ContractResponse { + return o.Payload +} + +func (o *PostContractsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + // hydrates response header Cache-Control + hdrCacheControl := response.GetHeader("Cache-Control") + + if hdrCacheControl != "" { + o.CacheControl = hdrCacheControl + } + + o.Payload = new(research_models.ContractResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsUnauthorized creates a PostContractsUnauthorized with default headers values +func NewPostContractsUnauthorized() *PostContractsUnauthorized { + return &PostContractsUnauthorized{} +} + +/* PostContractsUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type PostContractsUnauthorized struct { + AccessControlAllowOrigin string + + Payload *research_models.Error +} + +func (o *PostContractsUnauthorized) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsUnauthorized %+v", 401, o.Payload) +} +func (o *PostContractsUnauthorized) GetPayload() *research_models.Error { + return o.Payload +} + +func (o *PostContractsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(research_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsForbidden creates a PostContractsForbidden with default headers values +func NewPostContractsForbidden() *PostContractsForbidden { + return &PostContractsForbidden{} +} + +/* PostContractsForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type PostContractsForbidden struct { + AccessControlAllowOrigin string + + Payload *research_models.Error +} + +func (o *PostContractsForbidden) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsForbidden %+v", 403, o.Payload) +} +func (o *PostContractsForbidden) GetPayload() *research_models.Error { + return o.Payload +} + +func (o *PostContractsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(research_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsNotFound creates a PostContractsNotFound with default headers values +func NewPostContractsNotFound() *PostContractsNotFound { + return &PostContractsNotFound{} +} + +/* PostContractsNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type PostContractsNotFound struct { + AccessControlAllowOrigin string + + Payload *research_models.Error +} + +func (o *PostContractsNotFound) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsNotFound %+v", 404, o.Payload) +} +func (o *PostContractsNotFound) GetPayload() *research_models.Error { + return o.Payload +} + +func (o *PostContractsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(research_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsUnprocessableEntity creates a PostContractsUnprocessableEntity with default headers values +func NewPostContractsUnprocessableEntity() *PostContractsUnprocessableEntity { + return &PostContractsUnprocessableEntity{} +} + +/* PostContractsUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type PostContractsUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *research_models.Error +} + +func (o *PostContractsUnprocessableEntity) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsUnprocessableEntity %+v", 422, o.Payload) +} +func (o *PostContractsUnprocessableEntity) GetPayload() *research_models.Error { + return o.Payload +} + +func (o *PostContractsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(research_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsInternalServerError creates a PostContractsInternalServerError with default headers values +func NewPostContractsInternalServerError() *PostContractsInternalServerError { + return &PostContractsInternalServerError{} +} + +/* PostContractsInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type PostContractsInternalServerError struct { + AccessControlAllowOrigin string + + Payload *research_models.Error +} + +func (o *PostContractsInternalServerError) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsInternalServerError %+v", 500, o.Payload) +} +func (o *PostContractsInternalServerError) GetPayload() *research_models.Error { + return o.Payload +} + +func (o *PostContractsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(research_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/research/research_client/research_client.go b/api/research/research_client/research_client.go index 2a96ce2..e13e5dc 100644 --- a/api/research/research_client/research_client.go +++ b/api/research/research_client/research_client.go @@ -17,6 +17,7 @@ import ( "code.tnxs.net/vernonkeenan/lib/api/research/research_client/accounts" "code.tnxs.net/vernonkeenan/lib/api/research/research_client/clusters" "code.tnxs.net/vernonkeenan/lib/api/research/research_client/contacts" + "code.tnxs.net/vernonkeenan/lib/api/research/research_client/contracts" "code.tnxs.net/vernonkeenan/lib/api/research/research_client/databases" "code.tnxs.net/vernonkeenan/lib/api/research/research_client/roles" "code.tnxs.net/vernonkeenan/lib/api/research/research_client/templates" @@ -69,6 +70,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *Research { cli.Accounts = accounts.New(transport, formats) cli.Clusters = clusters.New(transport, formats) cli.Contacts = contacts.New(transport, formats) + cli.Contracts = contracts.New(transport, formats) cli.Databases = databases.New(transport, formats) cli.Roles = roles.New(transport, formats) cli.Templates = templates.New(transport, formats) @@ -124,6 +126,8 @@ type Research struct { Contacts contacts.ClientService + Contracts contracts.ClientService + Databases databases.ClientService Roles roles.ClientService @@ -143,6 +147,7 @@ func (c *Research) SetTransport(transport runtime.ClientTransport) { c.Accounts.SetTransport(transport) c.Clusters.SetTransport(transport) c.Contacts.SetTransport(transport) + c.Contracts.SetTransport(transport) c.Databases.SetTransport(transport) c.Roles.SetTransport(transport) c.Templates.SetTransport(transport) diff --git a/api/research/research_models/account.go b/api/research/research_models/account.go index f60d365..b43e98d 100644 --- a/api/research/research_models/account.go +++ b/api/research/research_models/account.go @@ -322,6 +322,8 @@ func (m *Account) validateBillingaddress(formats strfmt.Registry) error { if err := m.Billingaddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("billingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("billingaddress") } return err } @@ -339,6 +341,8 @@ func (m *Account) validateBusinessaddress(formats strfmt.Registry) error { if err := m.Businessaddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("businessaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("businessaddress") } return err } @@ -356,6 +360,8 @@ func (m *Account) validateDefaultaddress(formats strfmt.Registry) error { if err := m.Defaultaddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("defaultaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("defaultaddress") } return err } @@ -373,6 +379,8 @@ func (m *Account) validateShippingaddress(formats strfmt.Registry) error { if err := m.Shippingaddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shippingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("shippingaddress") } return err } @@ -413,6 +421,8 @@ func (m *Account) contextValidateBillingaddress(ctx context.Context, formats str if err := m.Billingaddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("billingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("billingaddress") } return err } @@ -427,6 +437,8 @@ func (m *Account) contextValidateBusinessaddress(ctx context.Context, formats st if err := m.Businessaddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("businessaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("businessaddress") } return err } @@ -441,6 +453,8 @@ func (m *Account) contextValidateDefaultaddress(ctx context.Context, formats str if err := m.Defaultaddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("defaultaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("defaultaddress") } return err } @@ -455,6 +469,8 @@ func (m *Account) contextValidateShippingaddress(ctx context.Context, formats st if err := m.Shippingaddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shippingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("shippingaddress") } return err } diff --git a/api/research/research_models/account_request.go b/api/research/research_models/account_request.go index eba0590..d5c9dac 100644 --- a/api/research/research_models/account_request.go +++ b/api/research/research_models/account_request.go @@ -62,6 +62,8 @@ func (m *AccountRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *AccountRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *AccountRequest) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -131,6 +137,8 @@ func (m *AccountRequest) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/research/research_models/account_response.go b/api/research/research_models/account_response.go index 8bedcbd..977dbdf 100644 --- a/api/research/research_models/account_response.go +++ b/api/research/research_models/account_response.go @@ -62,6 +62,8 @@ func (m *AccountResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *AccountResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *AccountResponse) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *AccountResponse) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/research/research_models/cluster_request.go b/api/research/research_models/cluster_request.go index e3e1fe1..f2765b2 100644 --- a/api/research/research_models/cluster_request.go +++ b/api/research/research_models/cluster_request.go @@ -66,6 +66,8 @@ func (m *ClusterRequest) validateData(formats strfmt.Registry) error { 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 } @@ -86,6 +88,8 @@ func (m *ClusterRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -120,6 +124,8 @@ func (m *ClusterRequest) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -136,6 +142,8 @@ func (m *ClusterRequest) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/research/research_models/cluster_response.go b/api/research/research_models/cluster_response.go index 997a770..490ee94 100644 --- a/api/research/research_models/cluster_response.go +++ b/api/research/research_models/cluster_response.go @@ -62,6 +62,8 @@ func (m *ClusterResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *ClusterResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *ClusterResponse) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *ClusterResponse) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/research/research_models/contact.go b/api/research/research_models/contact.go index 8494c71..e44b815 100644 --- a/api/research/research_models/contact.go +++ b/api/research/research_models/contact.go @@ -185,6 +185,8 @@ func (m *Contact) validateMailingaddress(formats strfmt.Registry) error { if err := m.Mailingaddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mailingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("mailingaddress") } return err } @@ -202,6 +204,8 @@ func (m *Contact) validateOtheraddress(formats strfmt.Registry) error { if err := m.Otheraddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("otheraddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("otheraddress") } return err } @@ -234,6 +238,8 @@ func (m *Contact) contextValidateMailingaddress(ctx context.Context, formats str if err := m.Mailingaddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mailingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("mailingaddress") } return err } @@ -248,6 +254,8 @@ func (m *Contact) contextValidateOtheraddress(ctx context.Context, formats strfm if err := m.Otheraddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("otheraddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("otheraddress") } return err } diff --git a/api/research/research_models/contact_request.go b/api/research/research_models/contact_request.go index 8158c82..f5cf7f9 100644 --- a/api/research/research_models/contact_request.go +++ b/api/research/research_models/contact_request.go @@ -66,6 +66,8 @@ func (m *ContactRequest) validateData(formats strfmt.Registry) error { 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 } @@ -86,6 +88,8 @@ func (m *ContactRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -120,6 +124,8 @@ func (m *ContactRequest) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -136,6 +142,8 @@ func (m *ContactRequest) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/research/research_models/contact_response.go b/api/research/research_models/contact_response.go index 0003df6..ffb6fcb 100644 --- a/api/research/research_models/contact_response.go +++ b/api/research/research_models/contact_response.go @@ -62,6 +62,8 @@ func (m *ContactResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *ContactResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *ContactResponse) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *ContactResponse) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/research/research_models/contract.go b/api/research/research_models/contract.go new file mode 100644 index 0000000..721e90a --- /dev/null +++ b/api/research/research_models/contract.go @@ -0,0 +1,238 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package research_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Contract contract +// +// swagger:model Contract +type Contract struct { + + // Account + AccountID string `json:"AccountID,omitempty"` + + // Activated By + ActivatedByID string `json:"ActivatedByID,omitempty"` + + // Activated Date + ActivatedDate string `json:"ActivatedDate,omitempty"` + + // Billing Address + BillingAddress *Address `json:"BillingAddress,omitempty"` + + // Billing Contact + BillingContactID string `json:"BillingContactID,omitempty"` + + // Company Signed Date + CompanySignedDate string `json:"CompanySignedDate,omitempty"` + + // Company Signed By + CompanySignedID string `json:"CompanySignedID,omitempty"` + + // Contract Number + ContractNumber string `json:"ContractNumber,omitempty"` + + // Contract Term (months) + ContractTerm float64 `json:"ContractTerm,omitempty"` + + // Created By User ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // Created Date + CreatedDate string `json:"CreatedDate,omitempty"` + + // Customer Signed Date + CustomerSignedDate string `json:"CustomerSignedDate,omitempty"` + + // Customer Signed By + CustomerSignedID string `json:"CustomerSignedID,omitempty"` + + // Customer Signed Title + CustomerSignedTitle string `json:"CustomerSignedTitle,omitempty"` + + // End User + DefaultEndUserID string `json:"DefaultEndUserID,omitempty"` + + // Description + Description string `json:"Description,omitempty"` + + // Contract End Date + EndDate string `json:"EndDate,omitempty"` + + // Hourly Rate + HourlyRate float64 `json:"HourlyRate,omitempty"` + + // Telnexus Record Id + ID string `json:"ID,omitempty"` + + // Last Modified By User ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // Last Modified Date + LastModifiedDate string `json:"LastModifiedDate,omitempty"` + + // Contract Name + Name string `json:"Name,omitempty"` + + // Payment Method + PaymentMethodID string `json:"PaymentMethodID,omitempty"` + + // Payment Terms + PaymentTerms string `json:"PaymentTerms,omitempty"` + + // Perpetual Agreement? + Perpetual bool `json:"Perpetual,omitempty"` + + // Shipping Address + ShippingAddress *Address `json:"ShippingAddress,omitempty"` + + // Shipping Contact + ShippingContactID string `json:"ShippingContactID,omitempty"` + + // Contract Start Date + StartDate string `json:"StartDate,omitempty"` + + // Status + Status string `json:"Status,omitempty"` + + // Tenant Identifier + TenantID string `json:"TenantID,omitempty"` +} + +// Validate validates this contract +func (m *Contract) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateBillingAddress(formats); err != nil { + res = append(res, err) + } + + if err := m.validateShippingAddress(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Contract) validateBillingAddress(formats strfmt.Registry) error { + if swag.IsZero(m.BillingAddress) { // not required + return nil + } + + if m.BillingAddress != nil { + if err := m.BillingAddress.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("BillingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BillingAddress") + } + return err + } + } + + return nil +} + +func (m *Contract) validateShippingAddress(formats strfmt.Registry) error { + if swag.IsZero(m.ShippingAddress) { // not required + return nil + } + + if m.ShippingAddress != nil { + if err := m.ShippingAddress.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("ShippingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ShippingAddress") + } + return err + } + } + + return nil +} + +// ContextValidate validate this contract based on the context it is used +func (m *Contract) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateBillingAddress(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateShippingAddress(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Contract) contextValidateBillingAddress(ctx context.Context, formats strfmt.Registry) error { + + if m.BillingAddress != nil { + if err := m.BillingAddress.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("BillingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BillingAddress") + } + return err + } + } + + return nil +} + +func (m *Contract) contextValidateShippingAddress(ctx context.Context, formats strfmt.Registry) error { + + if m.ShippingAddress != nil { + if err := m.ShippingAddress.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("ShippingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ShippingAddress") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Contract) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Contract) UnmarshalBinary(b []byte) error { + var res Contract + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/research/research_models/contract_request.go b/api/research/research_models/contract_request.go new file mode 100644 index 0000000..ee6b518 --- /dev/null +++ b/api/research/research_models/contract_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package research_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ContractRequest contract request +// +// swagger:model ContractRequest +type ContractRequest struct { + + // data + Data []*Contract `json:"Data"` +} + +// Validate validates this contract request +func (m *ContractRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ContractRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this contract request based on the context it is used +func (m *ContractRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ContractRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *ContractRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ContractRequest) UnmarshalBinary(b []byte) error { + var res ContractRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/research/research_models/contract_response.go b/api/research/research_models/contract_response.go new file mode 100644 index 0000000..d98bad4 --- /dev/null +++ b/api/research/research_models/contract_response.go @@ -0,0 +1,166 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package research_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ContractResponse contract response +// +// swagger:model ContractResponse +type ContractResponse struct { + + // data + Data []*Contract `json:"Data"` + + // meta + Meta *ResponseMeta `json:"Meta,omitempty"` +} + +// Validate validates this contract response +func (m *ContractResponse) 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 *ContractResponse) 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 *ContractResponse) 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 contract response based on the context it is used +func (m *ContractResponse) 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 *ContractResponse) 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 *ContractResponse) 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 *ContractResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ContractResponse) UnmarshalBinary(b []byte) error { + var res ContractResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/research/research_models/database_request.go b/api/research/research_models/database_request.go index f736112..c0d579b 100644 --- a/api/research/research_models/database_request.go +++ b/api/research/research_models/database_request.go @@ -62,6 +62,8 @@ func (m *DatabaseRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *DatabaseRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *DatabaseRequest) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *DatabaseRequest) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/research/research_models/database_response.go b/api/research/research_models/database_response.go index 00393ff..3375d68 100644 --- a/api/research/research_models/database_response.go +++ b/api/research/research_models/database_response.go @@ -62,6 +62,8 @@ func (m *DatabaseResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *DatabaseResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *DatabaseResponse) contextValidateData(ctx context.Context, formats strf 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 } @@ -131,6 +137,8 @@ func (m *DatabaseResponse) contextValidateMeta(ctx context.Context, formats strf 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 } diff --git a/api/research/research_models/delete_response.go b/api/research/research_models/delete_response.go index d94dc89..76dc582 100644 --- a/api/research/research_models/delete_response.go +++ b/api/research/research_models/delete_response.go @@ -62,6 +62,8 @@ func (m *DeleteResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *DeleteResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *DeleteResponse) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -131,6 +137,8 @@ func (m *DeleteResponse) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/research/research_models/response_meta.go b/api/research/research_models/response_meta.go index 5b9c651..021cd85 100644 --- a/api/research/research_models/response_meta.go +++ b/api/research/research_models/response_meta.go @@ -82,6 +82,8 @@ func (m *ResponseMeta) validatePagination(formats strfmt.Registry) error { if err := m.Pagination.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Pagination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Pagination") } return err } @@ -110,6 +112,8 @@ func (m *ResponseMeta) contextValidatePagination(ctx context.Context, formats st if err := m.Pagination.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Pagination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Pagination") } return err } diff --git a/api/research/research_models/role_request.go b/api/research/research_models/role_request.go index 844abac..7694e4c 100644 --- a/api/research/research_models/role_request.go +++ b/api/research/research_models/role_request.go @@ -62,6 +62,8 @@ func (m *RoleRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *RoleRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *RoleRequest) contextValidateData(ctx context.Context, formats strfmt.Re 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 } @@ -131,6 +137,8 @@ func (m *RoleRequest) contextValidateMeta(ctx context.Context, formats strfmt.Re 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 } diff --git a/api/research/research_models/role_response.go b/api/research/research_models/role_response.go index e47fa9f..bdc3a05 100644 --- a/api/research/research_models/role_response.go +++ b/api/research/research_models/role_response.go @@ -62,6 +62,8 @@ func (m *RoleResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *RoleResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *RoleResponse) contextValidateData(ctx context.Context, formats strfmt.R 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 } @@ -131,6 +137,8 @@ func (m *RoleResponse) contextValidateMeta(ctx context.Context, formats strfmt.R 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 } diff --git a/api/research/research_models/template_response.go b/api/research/research_models/template_response.go index 940f8c8..862ae44 100644 --- a/api/research/research_models/template_response.go +++ b/api/research/research_models/template_response.go @@ -62,6 +62,8 @@ func (m *TemplateResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *TemplateResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *TemplateResponse) contextValidateData(ctx context.Context, formats strf 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 } @@ -131,6 +137,8 @@ func (m *TemplateResponse) contextValidateMeta(ctx context.Context, formats strf 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 } diff --git a/api/research/research_models/tenant.go b/api/research/research_models/tenant.go index 9e66bf1..e8bcfa8 100644 --- a/api/research/research_models/tenant.go +++ b/api/research/research_models/tenant.go @@ -102,6 +102,8 @@ func (m *Tenant) validateDatabases(formats strfmt.Registry) error { if err := m.Databases[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("databases" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("databases" + "." + strconv.Itoa(i)) } return err } @@ -126,6 +128,8 @@ func (m *Tenant) validateRoles(formats strfmt.Registry) error { if err := m.Roles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("roles" + "." + strconv.Itoa(i)) } return err } @@ -150,6 +154,8 @@ func (m *Tenant) validateTenantusers(formats strfmt.Registry) error { if err := m.Tenantusers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) } return err } @@ -190,6 +196,8 @@ func (m *Tenant) contextValidateDatabases(ctx context.Context, formats strfmt.Re if err := m.Databases[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("databases" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("databases" + "." + strconv.Itoa(i)) } return err } @@ -208,6 +216,8 @@ func (m *Tenant) contextValidateRoles(ctx context.Context, formats strfmt.Regist if err := m.Roles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("roles" + "." + strconv.Itoa(i)) } return err } @@ -226,6 +236,8 @@ func (m *Tenant) contextValidateTenantusers(ctx context.Context, formats strfmt. if err := m.Tenantusers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) } return err } diff --git a/api/research/research_models/tenant_request.go b/api/research/research_models/tenant_request.go index e0a5b11..8a9190b 100644 --- a/api/research/research_models/tenant_request.go +++ b/api/research/research_models/tenant_request.go @@ -62,6 +62,8 @@ func (m *TenantRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *TenantRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *TenantRequest) contextValidateData(ctx context.Context, formats strfmt. 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 } @@ -131,6 +137,8 @@ func (m *TenantRequest) contextValidateMeta(ctx context.Context, formats strfmt. 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 } diff --git a/api/research/research_models/tenant_response.go b/api/research/research_models/tenant_response.go index 63014ec..3f5051b 100644 --- a/api/research/research_models/tenant_response.go +++ b/api/research/research_models/tenant_response.go @@ -62,6 +62,8 @@ func (m *TenantResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *TenantResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *TenantResponse) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -131,6 +137,8 @@ func (m *TenantResponse) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/research/research_models/user.go b/api/research/research_models/user.go index 68723e4..6e5e129 100644 --- a/api/research/research_models/user.go +++ b/api/research/research_models/user.go @@ -229,6 +229,8 @@ func (m *User) validateAddress(formats strfmt.Registry) error { if err := m.Address.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("address") } return err } @@ -251,6 +253,8 @@ func (m *User) validateTenantusers(formats strfmt.Registry) error { if err := m.Tenantusers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) } return err } @@ -275,6 +279,8 @@ func (m *User) validateUserroles(formats strfmt.Registry) error { if err := m.Userroles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("userroles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("userroles" + "." + strconv.Itoa(i)) } return err } @@ -313,6 +319,8 @@ func (m *User) contextValidateAddress(ctx context.Context, formats strfmt.Regist if err := m.Address.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("address") } return err } @@ -329,6 +337,8 @@ func (m *User) contextValidateTenantusers(ctx context.Context, formats strfmt.Re if err := m.Tenantusers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) } return err } @@ -347,6 +357,8 @@ func (m *User) contextValidateUserroles(ctx context.Context, formats strfmt.Regi if err := m.Userroles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("userroles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("userroles" + "." + strconv.Itoa(i)) } return err } diff --git a/api/research/research_models/user_response.go b/api/research/research_models/user_response.go index 6f4966e..55273fa 100644 --- a/api/research/research_models/user_response.go +++ b/api/research/research_models/user_response.go @@ -62,6 +62,8 @@ func (m *UserResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *UserResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *UserResponse) contextValidateData(ctx context.Context, formats strfmt.R 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 } @@ -131,6 +137,8 @@ func (m *UserResponse) contextValidateMeta(ctx context.Context, formats strfmt.R 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 } diff --git a/api/sfgate/sfgate_client/contracts/contracts_client.go b/api/sfgate/sfgate_client/contracts/contracts_client.go new file mode 100644 index 0000000..15420ab --- /dev/null +++ b/api/sfgate/sfgate_client/contracts/contracts_client.go @@ -0,0 +1,129 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// 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 contracts API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for contracts 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 { + GetContracts(params *GetContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsOK, error) + + PostContracts(params *PostContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContractsOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* + GetContracts gets a list of contracts + + Return a list of all available Contracts +*/ +func (a *Client) GetContracts(params *GetContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetContractsParams() + } + op := &runtime.ClientOperation{ + ID: "getContracts", + Method: "GET", + PathPattern: "/contracts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetContractsReader{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.(*GetContractsOK) + 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 getContracts: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* + PostContracts adds a new contract to taxnexus + + Contract record to be added +*/ +func (a *Client) PostContracts(params *PostContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContractsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPostContractsParams() + } + op := &runtime.ClientOperation{ + ID: "postContracts", + Method: "POST", + PathPattern: "/contracts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &PostContractsReader{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.(*PostContractsOK) + 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 postContracts: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go b/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go new file mode 100644 index 0000000..6f09f33 --- /dev/null +++ b/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go @@ -0,0 +1,272 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetContractsParams creates a new GetContractsParams 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 NewGetContractsParams() *GetContractsParams { + return &GetContractsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetContractsParamsWithTimeout creates a new GetContractsParams object +// with the ability to set a timeout on a request. +func NewGetContractsParamsWithTimeout(timeout time.Duration) *GetContractsParams { + return &GetContractsParams{ + timeout: timeout, + } +} + +// NewGetContractsParamsWithContext creates a new GetContractsParams object +// with the ability to set a context for a request. +func NewGetContractsParamsWithContext(ctx context.Context) *GetContractsParams { + return &GetContractsParams{ + Context: ctx, + } +} + +// NewGetContractsParamsWithHTTPClient creates a new GetContractsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetContractsParamsWithHTTPClient(client *http.Client) *GetContractsParams { + return &GetContractsParams{ + HTTPClient: client, + } +} + +/* GetContractsParams contains all the parameters to send to the API endpoint + for the get contracts operation. + + Typically these are written to a http.Request. +*/ +type GetContractsParams struct { + + /* Active. + + Only retrieve active records? + */ + Active *bool + + /* ContractID. + + Taxnexus Contact record ID + */ + ContractID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetContractsParams) WithDefaults() *GetContractsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetContractsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get contracts params +func (o *GetContractsParams) WithTimeout(timeout time.Duration) *GetContractsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get contracts params +func (o *GetContractsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get contracts params +func (o *GetContractsParams) WithContext(ctx context.Context) *GetContractsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get contracts params +func (o *GetContractsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get contracts params +func (o *GetContractsParams) WithHTTPClient(client *http.Client) *GetContractsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get contracts params +func (o *GetContractsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithActive adds the active to the get contracts params +func (o *GetContractsParams) WithActive(active *bool) *GetContractsParams { + o.SetActive(active) + return o +} + +// SetActive adds the active to the get contracts params +func (o *GetContractsParams) SetActive(active *bool) { + o.Active = active +} + +// WithContractID adds the contractID to the get contracts params +func (o *GetContractsParams) WithContractID(contractID *string) *GetContractsParams { + o.SetContractID(contractID) + return o +} + +// SetContractID adds the contractId to the get contracts params +func (o *GetContractsParams) SetContractID(contractID *string) { + o.ContractID = contractID +} + +// WithLimit adds the limit to the get contracts params +func (o *GetContractsParams) WithLimit(limit *int64) *GetContractsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get contracts params +func (o *GetContractsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get contracts params +func (o *GetContractsParams) WithOffset(offset *int64) *GetContractsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get contracts params +func (o *GetContractsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetContractsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Active != nil { + + // query param active + var qrActive bool + + if o.Active != nil { + qrActive = *o.Active + } + qActive := swag.FormatBool(qrActive) + if qActive != "" { + + if err := r.SetQueryParam("active", qActive); err != nil { + return err + } + } + } + + if o.ContractID != nil { + + // query param contractId + var qrContractID string + + if o.ContractID != nil { + qrContractID = *o.ContractID + } + qContractID := qrContractID + if qContractID != "" { + + if err := r.SetQueryParam("contractId", qContractID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/sfgate/sfgate_client/contracts/get_contracts_responses.go b/api/sfgate/sfgate_client/contracts/get_contracts_responses.go new file mode 100644 index 0000000..666bf41 --- /dev/null +++ b/api/sfgate/sfgate_client/contracts/get_contracts_responses.go @@ -0,0 +1,323 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" +) + +// GetContractsReader is a Reader for the GetContracts structure. +type GetContractsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetContractsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetContractsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewGetContractsUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewGetContractsForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewGetContractsNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewGetContractsUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewGetContractsInternalServerError() + 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()) + } +} + +// NewGetContractsOK creates a GetContractsOK with default headers values +func NewGetContractsOK() *GetContractsOK { + return &GetContractsOK{} +} + +/* GetContractsOK describes a response with status code 200, with default header values. + +Taxnexus Response with an array of Contract objects +*/ +type GetContractsOK struct { + AccessControlAllowOrigin string + CacheControl string + + Payload *sfgate_models.ContractResponse +} + +func (o *GetContractsOK) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsOK %+v", 200, o.Payload) +} +func (o *GetContractsOK) GetPayload() *sfgate_models.ContractResponse { + return o.Payload +} + +func (o *GetContractsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + // hydrates response header Cache-Control + hdrCacheControl := response.GetHeader("Cache-Control") + + if hdrCacheControl != "" { + o.CacheControl = hdrCacheControl + } + + o.Payload = new(sfgate_models.ContractResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsUnauthorized creates a GetContractsUnauthorized with default headers values +func NewGetContractsUnauthorized() *GetContractsUnauthorized { + return &GetContractsUnauthorized{} +} + +/* GetContractsUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type GetContractsUnauthorized struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +func (o *GetContractsUnauthorized) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsUnauthorized %+v", 401, o.Payload) +} +func (o *GetContractsUnauthorized) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *GetContractsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsForbidden creates a GetContractsForbidden with default headers values +func NewGetContractsForbidden() *GetContractsForbidden { + return &GetContractsForbidden{} +} + +/* GetContractsForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type GetContractsForbidden struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +func (o *GetContractsForbidden) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsForbidden %+v", 403, o.Payload) +} +func (o *GetContractsForbidden) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *GetContractsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsNotFound creates a GetContractsNotFound with default headers values +func NewGetContractsNotFound() *GetContractsNotFound { + return &GetContractsNotFound{} +} + +/* GetContractsNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type GetContractsNotFound struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +func (o *GetContractsNotFound) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsNotFound %+v", 404, o.Payload) +} +func (o *GetContractsNotFound) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *GetContractsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsUnprocessableEntity creates a GetContractsUnprocessableEntity with default headers values +func NewGetContractsUnprocessableEntity() *GetContractsUnprocessableEntity { + return &GetContractsUnprocessableEntity{} +} + +/* GetContractsUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type GetContractsUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +func (o *GetContractsUnprocessableEntity) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsUnprocessableEntity %+v", 422, o.Payload) +} +func (o *GetContractsUnprocessableEntity) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *GetContractsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetContractsInternalServerError creates a GetContractsInternalServerError with default headers values +func NewGetContractsInternalServerError() *GetContractsInternalServerError { + return &GetContractsInternalServerError{} +} + +/* GetContractsInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type GetContractsInternalServerError struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +func (o *GetContractsInternalServerError) Error() string { + return fmt.Sprintf("[GET /contracts][%d] getContractsInternalServerError %+v", 500, o.Payload) +} +func (o *GetContractsInternalServerError) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *GetContractsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/sfgate/sfgate_client/contracts/post_contracts_parameters.go b/api/sfgate/sfgate_client/contracts/post_contracts_parameters.go new file mode 100644 index 0000000..05dcf89 --- /dev/null +++ b/api/sfgate/sfgate_client/contracts/post_contracts_parameters.go @@ -0,0 +1,155 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" +) + +// NewPostContractsParams creates a new PostContractsParams 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 NewPostContractsParams() *PostContractsParams { + return &PostContractsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPostContractsParamsWithTimeout creates a new PostContractsParams object +// with the ability to set a timeout on a request. +func NewPostContractsParamsWithTimeout(timeout time.Duration) *PostContractsParams { + return &PostContractsParams{ + timeout: timeout, + } +} + +// NewPostContractsParamsWithContext creates a new PostContractsParams object +// with the ability to set a context for a request. +func NewPostContractsParamsWithContext(ctx context.Context) *PostContractsParams { + return &PostContractsParams{ + Context: ctx, + } +} + +// NewPostContractsParamsWithHTTPClient creates a new PostContractsParams object +// with the ability to set a custom HTTPClient for a request. +func NewPostContractsParamsWithHTTPClient(client *http.Client) *PostContractsParams { + return &PostContractsParams{ + HTTPClient: client, + } +} + +/* PostContractsParams contains all the parameters to send to the API endpoint + for the post contracts operation. + + Typically these are written to a http.Request. +*/ +type PostContractsParams struct { + + /* ContractsRequest. + + An array of new Contract records + */ + ContractsRequest *sfgate_models.ContractRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the post contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PostContractsParams) WithDefaults() *PostContractsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the post contracts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PostContractsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the post contracts params +func (o *PostContractsParams) WithTimeout(timeout time.Duration) *PostContractsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the post contracts params +func (o *PostContractsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the post contracts params +func (o *PostContractsParams) WithContext(ctx context.Context) *PostContractsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the post contracts params +func (o *PostContractsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the post contracts params +func (o *PostContractsParams) WithHTTPClient(client *http.Client) *PostContractsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the post contracts params +func (o *PostContractsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithContractsRequest adds the contractsRequest to the post contracts params +func (o *PostContractsParams) WithContractsRequest(contractsRequest *sfgate_models.ContractRequest) *PostContractsParams { + o.SetContractsRequest(contractsRequest) + return o +} + +// SetContractsRequest adds the contractsRequest to the post contracts params +func (o *PostContractsParams) SetContractsRequest(contractsRequest *sfgate_models.ContractRequest) { + o.ContractsRequest = contractsRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *PostContractsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.ContractsRequest != nil { + if err := r.SetBodyParam(o.ContractsRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/sfgate/sfgate_client/contracts/post_contracts_responses.go b/api/sfgate/sfgate_client/contracts/post_contracts_responses.go new file mode 100644 index 0000000..30c60e3 --- /dev/null +++ b/api/sfgate/sfgate_client/contracts/post_contracts_responses.go @@ -0,0 +1,323 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contracts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" +) + +// PostContractsReader is a Reader for the PostContracts structure. +type PostContractsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PostContractsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPostContractsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewPostContractsUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewPostContractsForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPostContractsNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewPostContractsUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPostContractsInternalServerError() + 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()) + } +} + +// NewPostContractsOK creates a PostContractsOK with default headers values +func NewPostContractsOK() *PostContractsOK { + return &PostContractsOK{} +} + +/* PostContractsOK describes a response with status code 200, with default header values. + +Taxnexus Response with an array of Contract objects +*/ +type PostContractsOK struct { + AccessControlAllowOrigin string + CacheControl string + + Payload *sfgate_models.ContractResponse +} + +func (o *PostContractsOK) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsOK %+v", 200, o.Payload) +} +func (o *PostContractsOK) GetPayload() *sfgate_models.ContractResponse { + return o.Payload +} + +func (o *PostContractsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + // hydrates response header Cache-Control + hdrCacheControl := response.GetHeader("Cache-Control") + + if hdrCacheControl != "" { + o.CacheControl = hdrCacheControl + } + + o.Payload = new(sfgate_models.ContractResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsUnauthorized creates a PostContractsUnauthorized with default headers values +func NewPostContractsUnauthorized() *PostContractsUnauthorized { + return &PostContractsUnauthorized{} +} + +/* PostContractsUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type PostContractsUnauthorized struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +func (o *PostContractsUnauthorized) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsUnauthorized %+v", 401, o.Payload) +} +func (o *PostContractsUnauthorized) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PostContractsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsForbidden creates a PostContractsForbidden with default headers values +func NewPostContractsForbidden() *PostContractsForbidden { + return &PostContractsForbidden{} +} + +/* PostContractsForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type PostContractsForbidden struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +func (o *PostContractsForbidden) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsForbidden %+v", 403, o.Payload) +} +func (o *PostContractsForbidden) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PostContractsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsNotFound creates a PostContractsNotFound with default headers values +func NewPostContractsNotFound() *PostContractsNotFound { + return &PostContractsNotFound{} +} + +/* PostContractsNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type PostContractsNotFound struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +func (o *PostContractsNotFound) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsNotFound %+v", 404, o.Payload) +} +func (o *PostContractsNotFound) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PostContractsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsUnprocessableEntity creates a PostContractsUnprocessableEntity with default headers values +func NewPostContractsUnprocessableEntity() *PostContractsUnprocessableEntity { + return &PostContractsUnprocessableEntity{} +} + +/* PostContractsUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type PostContractsUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +func (o *PostContractsUnprocessableEntity) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsUnprocessableEntity %+v", 422, o.Payload) +} +func (o *PostContractsUnprocessableEntity) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PostContractsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostContractsInternalServerError creates a PostContractsInternalServerError with default headers values +func NewPostContractsInternalServerError() *PostContractsInternalServerError { + return &PostContractsInternalServerError{} +} + +/* PostContractsInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type PostContractsInternalServerError struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +func (o *PostContractsInternalServerError) Error() string { + return fmt.Sprintf("[POST /contracts][%d] postContractsInternalServerError %+v", 500, o.Payload) +} +func (o *PostContractsInternalServerError) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PostContractsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/sfgate/sfgate_client/sfgate_client.go b/api/sfgate/sfgate_client/sfgate_client.go index 2ea09ab..b7bd804 100644 --- a/api/sfgate/sfgate_client/sfgate_client.go +++ b/api/sfgate/sfgate_client/sfgate_client.go @@ -17,6 +17,7 @@ import ( "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/accounts" "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/clusters" "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/contacts" + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/contracts" "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/databases" "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/roles" "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_client/templates" @@ -69,6 +70,7 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *Sfgate { cli.Accounts = accounts.New(transport, formats) cli.Clusters = clusters.New(transport, formats) cli.Contacts = contacts.New(transport, formats) + cli.Contracts = contracts.New(transport, formats) cli.Databases = databases.New(transport, formats) cli.Roles = roles.New(transport, formats) cli.Templates = templates.New(transport, formats) @@ -124,6 +126,8 @@ type Sfgate struct { Contacts contacts.ClientService + Contracts contracts.ClientService + Databases databases.ClientService Roles roles.ClientService @@ -143,6 +147,7 @@ func (c *Sfgate) SetTransport(transport runtime.ClientTransport) { c.Accounts.SetTransport(transport) c.Clusters.SetTransport(transport) c.Contacts.SetTransport(transport) + c.Contracts.SetTransport(transport) c.Databases.SetTransport(transport) c.Roles.SetTransport(transport) c.Templates.SetTransport(transport) diff --git a/api/sfgate/sfgate_models/account.go b/api/sfgate/sfgate_models/account.go index 9cba5ee..8a18496 100644 --- a/api/sfgate/sfgate_models/account.go +++ b/api/sfgate/sfgate_models/account.go @@ -322,6 +322,8 @@ func (m *Account) validateBillingaddress(formats strfmt.Registry) error { if err := m.Billingaddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("billingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("billingaddress") } return err } @@ -339,6 +341,8 @@ func (m *Account) validateBusinessaddress(formats strfmt.Registry) error { if err := m.Businessaddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("businessaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("businessaddress") } return err } @@ -356,6 +360,8 @@ func (m *Account) validateDefaultaddress(formats strfmt.Registry) error { if err := m.Defaultaddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("defaultaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("defaultaddress") } return err } @@ -373,6 +379,8 @@ func (m *Account) validateShippingaddress(formats strfmt.Registry) error { if err := m.Shippingaddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shippingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("shippingaddress") } return err } @@ -413,6 +421,8 @@ func (m *Account) contextValidateBillingaddress(ctx context.Context, formats str if err := m.Billingaddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("billingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("billingaddress") } return err } @@ -427,6 +437,8 @@ func (m *Account) contextValidateBusinessaddress(ctx context.Context, formats st if err := m.Businessaddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("businessaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("businessaddress") } return err } @@ -441,6 +453,8 @@ func (m *Account) contextValidateDefaultaddress(ctx context.Context, formats str if err := m.Defaultaddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("defaultaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("defaultaddress") } return err } @@ -455,6 +469,8 @@ func (m *Account) contextValidateShippingaddress(ctx context.Context, formats st if err := m.Shippingaddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shippingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("shippingaddress") } return err } diff --git a/api/sfgate/sfgate_models/account_request.go b/api/sfgate/sfgate_models/account_request.go index 5f5f533..7e7ec58 100644 --- a/api/sfgate/sfgate_models/account_request.go +++ b/api/sfgate/sfgate_models/account_request.go @@ -62,6 +62,8 @@ func (m *AccountRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *AccountRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *AccountRequest) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -131,6 +137,8 @@ func (m *AccountRequest) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/sfgate/sfgate_models/account_response.go b/api/sfgate/sfgate_models/account_response.go index cb5c12a..80ecd5d 100644 --- a/api/sfgate/sfgate_models/account_response.go +++ b/api/sfgate/sfgate_models/account_response.go @@ -62,6 +62,8 @@ func (m *AccountResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *AccountResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *AccountResponse) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *AccountResponse) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/sfgate/sfgate_models/cluster_request.go b/api/sfgate/sfgate_models/cluster_request.go index 354dc76..4435129 100644 --- a/api/sfgate/sfgate_models/cluster_request.go +++ b/api/sfgate/sfgate_models/cluster_request.go @@ -66,6 +66,8 @@ func (m *ClusterRequest) validateData(formats strfmt.Registry) error { 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 } @@ -86,6 +88,8 @@ func (m *ClusterRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -120,6 +124,8 @@ func (m *ClusterRequest) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -136,6 +142,8 @@ func (m *ClusterRequest) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/sfgate/sfgate_models/cluster_response.go b/api/sfgate/sfgate_models/cluster_response.go index 8d4e9f9..7dd4a3c 100644 --- a/api/sfgate/sfgate_models/cluster_response.go +++ b/api/sfgate/sfgate_models/cluster_response.go @@ -62,6 +62,8 @@ func (m *ClusterResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *ClusterResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *ClusterResponse) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *ClusterResponse) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/sfgate/sfgate_models/contact.go b/api/sfgate/sfgate_models/contact.go index f998e84..fe938c9 100644 --- a/api/sfgate/sfgate_models/contact.go +++ b/api/sfgate/sfgate_models/contact.go @@ -185,6 +185,8 @@ func (m *Contact) validateMailingaddress(formats strfmt.Registry) error { if err := m.Mailingaddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mailingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("mailingaddress") } return err } @@ -202,6 +204,8 @@ func (m *Contact) validateOtheraddress(formats strfmt.Registry) error { if err := m.Otheraddress.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("otheraddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("otheraddress") } return err } @@ -234,6 +238,8 @@ func (m *Contact) contextValidateMailingaddress(ctx context.Context, formats str if err := m.Mailingaddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mailingaddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("mailingaddress") } return err } @@ -248,6 +254,8 @@ func (m *Contact) contextValidateOtheraddress(ctx context.Context, formats strfm if err := m.Otheraddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("otheraddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("otheraddress") } return err } diff --git a/api/sfgate/sfgate_models/contact_request.go b/api/sfgate/sfgate_models/contact_request.go index 6a1bbf2..3ed807c 100644 --- a/api/sfgate/sfgate_models/contact_request.go +++ b/api/sfgate/sfgate_models/contact_request.go @@ -66,6 +66,8 @@ func (m *ContactRequest) validateData(formats strfmt.Registry) error { 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 } @@ -86,6 +88,8 @@ func (m *ContactRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -120,6 +124,8 @@ func (m *ContactRequest) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -136,6 +142,8 @@ func (m *ContactRequest) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/sfgate/sfgate_models/contact_response.go b/api/sfgate/sfgate_models/contact_response.go index 7960fae..99454df 100644 --- a/api/sfgate/sfgate_models/contact_response.go +++ b/api/sfgate/sfgate_models/contact_response.go @@ -62,6 +62,8 @@ func (m *ContactResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *ContactResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *ContactResponse) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *ContactResponse) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/sfgate/sfgate_models/contract.go b/api/sfgate/sfgate_models/contract.go new file mode 100644 index 0000000..c5fa4a0 --- /dev/null +++ b/api/sfgate/sfgate_models/contract.go @@ -0,0 +1,238 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package sfgate_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Contract contract +// +// swagger:model Contract +type Contract struct { + + // Account + AccountID string `json:"AccountID,omitempty"` + + // Activated By + ActivatedByID string `json:"ActivatedByID,omitempty"` + + // Activated Date + ActivatedDate string `json:"ActivatedDate,omitempty"` + + // Billing Address + BillingAddress *Address `json:"BillingAddress,omitempty"` + + // Billing Contact + BillingContactID string `json:"BillingContactID,omitempty"` + + // Company Signed Date + CompanySignedDate string `json:"CompanySignedDate,omitempty"` + + // Company Signed By + CompanySignedID string `json:"CompanySignedID,omitempty"` + + // Contract Number + ContractNumber string `json:"ContractNumber,omitempty"` + + // Contract Term (months) + ContractTerm float64 `json:"ContractTerm,omitempty"` + + // Created By User ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // Created Date + CreatedDate string `json:"CreatedDate,omitempty"` + + // Customer Signed Date + CustomerSignedDate string `json:"CustomerSignedDate,omitempty"` + + // Customer Signed By + CustomerSignedID string `json:"CustomerSignedID,omitempty"` + + // Customer Signed Title + CustomerSignedTitle string `json:"CustomerSignedTitle,omitempty"` + + // End User + DefaultEndUserID string `json:"DefaultEndUserID,omitempty"` + + // Description + Description string `json:"Description,omitempty"` + + // Contract End Date + EndDate string `json:"EndDate,omitempty"` + + // Hourly Rate + HourlyRate float64 `json:"HourlyRate,omitempty"` + + // Telnexus Record Id + ID string `json:"ID,omitempty"` + + // Last Modified By User ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // Last Modified Date + LastModifiedDate string `json:"LastModifiedDate,omitempty"` + + // Contract Name + Name string `json:"Name,omitempty"` + + // Payment Method + PaymentMethodID string `json:"PaymentMethodID,omitempty"` + + // Payment Terms + PaymentTerms string `json:"PaymentTerms,omitempty"` + + // Perpetual Agreement? + Perpetual bool `json:"Perpetual,omitempty"` + + // Shipping Address + ShippingAddress *Address `json:"ShippingAddress,omitempty"` + + // Shipping Contact + ShippingContactID string `json:"ShippingContactID,omitempty"` + + // Contract Start Date + StartDate string `json:"StartDate,omitempty"` + + // Status + Status string `json:"Status,omitempty"` + + // Tenant Identifier + TenantID string `json:"TenantID,omitempty"` +} + +// Validate validates this contract +func (m *Contract) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateBillingAddress(formats); err != nil { + res = append(res, err) + } + + if err := m.validateShippingAddress(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Contract) validateBillingAddress(formats strfmt.Registry) error { + if swag.IsZero(m.BillingAddress) { // not required + return nil + } + + if m.BillingAddress != nil { + if err := m.BillingAddress.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("BillingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BillingAddress") + } + return err + } + } + + return nil +} + +func (m *Contract) validateShippingAddress(formats strfmt.Registry) error { + if swag.IsZero(m.ShippingAddress) { // not required + return nil + } + + if m.ShippingAddress != nil { + if err := m.ShippingAddress.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("ShippingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ShippingAddress") + } + return err + } + } + + return nil +} + +// ContextValidate validate this contract based on the context it is used +func (m *Contract) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateBillingAddress(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateShippingAddress(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Contract) contextValidateBillingAddress(ctx context.Context, formats strfmt.Registry) error { + + if m.BillingAddress != nil { + if err := m.BillingAddress.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("BillingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("BillingAddress") + } + return err + } + } + + return nil +} + +func (m *Contract) contextValidateShippingAddress(ctx context.Context, formats strfmt.Registry) error { + + if m.ShippingAddress != nil { + if err := m.ShippingAddress.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("ShippingAddress") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("ShippingAddress") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Contract) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Contract) UnmarshalBinary(b []byte) error { + var res Contract + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/sfgate/sfgate_models/contract_request.go b/api/sfgate/sfgate_models/contract_request.go new file mode 100644 index 0000000..f082b1c --- /dev/null +++ b/api/sfgate/sfgate_models/contract_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package sfgate_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ContractRequest contract request +// +// swagger:model ContractRequest +type ContractRequest struct { + + // data + Data []*Contract `json:"Data"` +} + +// Validate validates this contract request +func (m *ContractRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ContractRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this contract request based on the context it is used +func (m *ContractRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ContractRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *ContractRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ContractRequest) UnmarshalBinary(b []byte) error { + var res ContractRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/sfgate/sfgate_models/contract_response.go b/api/sfgate/sfgate_models/contract_response.go new file mode 100644 index 0000000..134ea96 --- /dev/null +++ b/api/sfgate/sfgate_models/contract_response.go @@ -0,0 +1,166 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package sfgate_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ContractResponse contract response +// +// swagger:model ContractResponse +type ContractResponse struct { + + // data + Data []*Contract `json:"Data"` + + // meta + Meta *ResponseMeta `json:"Meta,omitempty"` +} + +// Validate validates this contract response +func (m *ContractResponse) 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 *ContractResponse) 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 *ContractResponse) 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 contract response based on the context it is used +func (m *ContractResponse) 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 *ContractResponse) 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 *ContractResponse) 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 *ContractResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ContractResponse) UnmarshalBinary(b []byte) error { + var res ContractResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/sfgate/sfgate_models/database_request.go b/api/sfgate/sfgate_models/database_request.go index abda86a..041783d 100644 --- a/api/sfgate/sfgate_models/database_request.go +++ b/api/sfgate/sfgate_models/database_request.go @@ -62,6 +62,8 @@ func (m *DatabaseRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *DatabaseRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *DatabaseRequest) contextValidateData(ctx context.Context, formats strfm 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 } @@ -131,6 +137,8 @@ func (m *DatabaseRequest) contextValidateMeta(ctx context.Context, formats strfm 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 } diff --git a/api/sfgate/sfgate_models/database_response.go b/api/sfgate/sfgate_models/database_response.go index 50f375b..7bbcfdc 100644 --- a/api/sfgate/sfgate_models/database_response.go +++ b/api/sfgate/sfgate_models/database_response.go @@ -62,6 +62,8 @@ func (m *DatabaseResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *DatabaseResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *DatabaseResponse) contextValidateData(ctx context.Context, formats strf 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 } @@ -131,6 +137,8 @@ func (m *DatabaseResponse) contextValidateMeta(ctx context.Context, formats strf 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 } diff --git a/api/sfgate/sfgate_models/delete_response.go b/api/sfgate/sfgate_models/delete_response.go index bb16b5c..350e9fb 100644 --- a/api/sfgate/sfgate_models/delete_response.go +++ b/api/sfgate/sfgate_models/delete_response.go @@ -62,6 +62,8 @@ func (m *DeleteResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *DeleteResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *DeleteResponse) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -131,6 +137,8 @@ func (m *DeleteResponse) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/sfgate/sfgate_models/response_meta.go b/api/sfgate/sfgate_models/response_meta.go index cf67295..f8b36e2 100644 --- a/api/sfgate/sfgate_models/response_meta.go +++ b/api/sfgate/sfgate_models/response_meta.go @@ -82,6 +82,8 @@ func (m *ResponseMeta) validatePagination(formats strfmt.Registry) error { if err := m.Pagination.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Pagination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Pagination") } return err } @@ -110,6 +112,8 @@ func (m *ResponseMeta) contextValidatePagination(ctx context.Context, formats st if err := m.Pagination.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Pagination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Pagination") } return err } diff --git a/api/sfgate/sfgate_models/role_request.go b/api/sfgate/sfgate_models/role_request.go index 4b12316..66eae81 100644 --- a/api/sfgate/sfgate_models/role_request.go +++ b/api/sfgate/sfgate_models/role_request.go @@ -62,6 +62,8 @@ func (m *RoleRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *RoleRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *RoleRequest) contextValidateData(ctx context.Context, formats strfmt.Re 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 } @@ -131,6 +137,8 @@ func (m *RoleRequest) contextValidateMeta(ctx context.Context, formats strfmt.Re 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 } diff --git a/api/sfgate/sfgate_models/role_response.go b/api/sfgate/sfgate_models/role_response.go index d222924..37af592 100644 --- a/api/sfgate/sfgate_models/role_response.go +++ b/api/sfgate/sfgate_models/role_response.go @@ -62,6 +62,8 @@ func (m *RoleResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *RoleResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *RoleResponse) contextValidateData(ctx context.Context, formats strfmt.R 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 } @@ -131,6 +137,8 @@ func (m *RoleResponse) contextValidateMeta(ctx context.Context, formats strfmt.R 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 } diff --git a/api/sfgate/sfgate_models/template_response.go b/api/sfgate/sfgate_models/template_response.go index 0c56b03..ee4735a 100644 --- a/api/sfgate/sfgate_models/template_response.go +++ b/api/sfgate/sfgate_models/template_response.go @@ -62,6 +62,8 @@ func (m *TemplateResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *TemplateResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *TemplateResponse) contextValidateData(ctx context.Context, formats strf 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 } @@ -131,6 +137,8 @@ func (m *TemplateResponse) contextValidateMeta(ctx context.Context, formats strf 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 } diff --git a/api/sfgate/sfgate_models/tenant.go b/api/sfgate/sfgate_models/tenant.go index a16499c..9ae3881 100644 --- a/api/sfgate/sfgate_models/tenant.go +++ b/api/sfgate/sfgate_models/tenant.go @@ -102,6 +102,8 @@ func (m *Tenant) validateDatabases(formats strfmt.Registry) error { if err := m.Databases[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("databases" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("databases" + "." + strconv.Itoa(i)) } return err } @@ -126,6 +128,8 @@ func (m *Tenant) validateRoles(formats strfmt.Registry) error { if err := m.Roles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("roles" + "." + strconv.Itoa(i)) } return err } @@ -150,6 +154,8 @@ func (m *Tenant) validateTenantusers(formats strfmt.Registry) error { if err := m.Tenantusers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) } return err } @@ -190,6 +196,8 @@ func (m *Tenant) contextValidateDatabases(ctx context.Context, formats strfmt.Re if err := m.Databases[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("databases" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("databases" + "." + strconv.Itoa(i)) } return err } @@ -208,6 +216,8 @@ func (m *Tenant) contextValidateRoles(ctx context.Context, formats strfmt.Regist if err := m.Roles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("roles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("roles" + "." + strconv.Itoa(i)) } return err } @@ -226,6 +236,8 @@ func (m *Tenant) contextValidateTenantusers(ctx context.Context, formats strfmt. if err := m.Tenantusers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) } return err } diff --git a/api/sfgate/sfgate_models/tenant_request.go b/api/sfgate/sfgate_models/tenant_request.go index ab9a9eb..61bc427 100644 --- a/api/sfgate/sfgate_models/tenant_request.go +++ b/api/sfgate/sfgate_models/tenant_request.go @@ -62,6 +62,8 @@ func (m *TenantRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *TenantRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *TenantRequest) contextValidateData(ctx context.Context, formats strfmt. 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 } @@ -131,6 +137,8 @@ func (m *TenantRequest) contextValidateMeta(ctx context.Context, formats strfmt. 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 } diff --git a/api/sfgate/sfgate_models/tenant_response.go b/api/sfgate/sfgate_models/tenant_response.go index 1257797..1adf7ac 100644 --- a/api/sfgate/sfgate_models/tenant_response.go +++ b/api/sfgate/sfgate_models/tenant_response.go @@ -62,6 +62,8 @@ func (m *TenantResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *TenantResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *TenantResponse) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -131,6 +137,8 @@ func (m *TenantResponse) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/sfgate/sfgate_models/user.go b/api/sfgate/sfgate_models/user.go index 6a6258c..b6f1abc 100644 --- a/api/sfgate/sfgate_models/user.go +++ b/api/sfgate/sfgate_models/user.go @@ -229,6 +229,8 @@ func (m *User) validateAddress(formats strfmt.Registry) error { if err := m.Address.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("address") } return err } @@ -251,6 +253,8 @@ func (m *User) validateTenantusers(formats strfmt.Registry) error { if err := m.Tenantusers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) } return err } @@ -275,6 +279,8 @@ func (m *User) validateUserroles(formats strfmt.Registry) error { if err := m.Userroles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("userroles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("userroles" + "." + strconv.Itoa(i)) } return err } @@ -313,6 +319,8 @@ func (m *User) contextValidateAddress(ctx context.Context, formats strfmt.Regist if err := m.Address.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("address") } return err } @@ -329,6 +337,8 @@ func (m *User) contextValidateTenantusers(ctx context.Context, formats strfmt.Re if err := m.Tenantusers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) } return err } @@ -347,6 +357,8 @@ func (m *User) contextValidateUserroles(ctx context.Context, formats strfmt.Regi if err := m.Userroles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("userroles" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("userroles" + "." + strconv.Itoa(i)) } return err } diff --git a/api/sfgate/sfgate_models/user_response.go b/api/sfgate/sfgate_models/user_response.go index a5a4862..5d5932a 100644 --- a/api/sfgate/sfgate_models/user_response.go +++ b/api/sfgate/sfgate_models/user_response.go @@ -62,6 +62,8 @@ func (m *UserResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *UserResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *UserResponse) contextValidateData(ctx context.Context, formats strfmt.R 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 } @@ -131,6 +137,8 @@ func (m *UserResponse) contextValidateMeta(ctx context.Context, formats strfmt.R 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 } diff --git a/api/stash/stash_models/document_response.go b/api/stash/stash_models/document_response.go index ce3e096..3e5aff6 100644 --- a/api/stash/stash_models/document_response.go +++ b/api/stash/stash_models/document_response.go @@ -62,6 +62,8 @@ func (m *DocumentResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *DocumentResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *DocumentResponse) contextValidateData(ctx context.Context, formats strf 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 } @@ -131,6 +137,8 @@ func (m *DocumentResponse) contextValidateMeta(ctx context.Context, formats strf 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 } diff --git a/api/stash/stash_models/p_d_f_request.go b/api/stash/stash_models/p_d_f_request.go index 92d8106..9ae3aa9 100644 --- a/api/stash/stash_models/p_d_f_request.go +++ b/api/stash/stash_models/p_d_f_request.go @@ -62,6 +62,8 @@ func (m *PDFRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *PDFRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *PDFRequest) contextValidateData(ctx context.Context, formats strfmt.Reg 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 } @@ -131,6 +137,8 @@ func (m *PDFRequest) contextValidateMeta(ctx context.Context, formats strfmt.Reg 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 } diff --git a/api/workflow/workflow_models/app_log_request.go b/api/workflow/workflow_models/app_log_request.go index cb65f1a..d9ba9cc 100644 --- a/api/workflow/workflow_models/app_log_request.go +++ b/api/workflow/workflow_models/app_log_request.go @@ -62,6 +62,8 @@ func (m *AppLogRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *AppLogRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *AppLogRequest) contextValidateData(ctx context.Context, formats strfmt. 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 } @@ -131,6 +137,8 @@ func (m *AppLogRequest) contextValidateMeta(ctx context.Context, formats strfmt. 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 } diff --git a/api/workflow/workflow_models/app_log_response.go b/api/workflow/workflow_models/app_log_response.go index 6682fcd..f65ba8b 100644 --- a/api/workflow/workflow_models/app_log_response.go +++ b/api/workflow/workflow_models/app_log_response.go @@ -62,6 +62,8 @@ func (m *AppLogResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *AppLogResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *AppLogResponse) contextValidateData(ctx context.Context, formats strfmt 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 } @@ -131,6 +137,8 @@ func (m *AppLogResponse) contextValidateMeta(ctx context.Context, formats strfmt 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 } diff --git a/api/workflow/workflow_models/email_message.go b/api/workflow/workflow_models/email_message.go index 8dc768e..2ad9cee 100644 --- a/api/workflow/workflow_models/email_message.go +++ b/api/workflow/workflow_models/email_message.go @@ -144,6 +144,8 @@ func (m *EmailMessage) validateHeaders(formats strfmt.Registry) error { 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 } @@ -172,6 +174,8 @@ func (m *EmailMessage) contextValidateHeaders(ctx context.Context, formats strfm 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 } diff --git a/api/workflow/workflow_models/email_message_request.go b/api/workflow/workflow_models/email_message_request.go index b751871..78e4081 100644 --- a/api/workflow/workflow_models/email_message_request.go +++ b/api/workflow/workflow_models/email_message_request.go @@ -62,6 +62,8 @@ func (m *EmailMessageRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *EmailMessageRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *EmailMessageRequest) contextValidateData(ctx context.Context, formats s 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 } @@ -131,6 +137,8 @@ func (m *EmailMessageRequest) contextValidateMeta(ctx context.Context, formats s 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 } diff --git a/api/workflow/workflow_models/email_messages_response.go b/api/workflow/workflow_models/email_messages_response.go index 0cc5899..4422450 100644 --- a/api/workflow/workflow_models/email_messages_response.go +++ b/api/workflow/workflow_models/email_messages_response.go @@ -62,6 +62,8 @@ func (m *EmailMessagesResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *EmailMessagesResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *EmailMessagesResponse) contextValidateData(ctx context.Context, formats 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 } @@ -131,6 +137,8 @@ func (m *EmailMessagesResponse) contextValidateMeta(ctx context.Context, formats 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 } diff --git a/api/workflow/workflow_models/outgoing_email_message.go b/api/workflow/workflow_models/outgoing_email_message.go index fe8c8da..10cf51d 100644 --- a/api/workflow/workflow_models/outgoing_email_message.go +++ b/api/workflow/workflow_models/outgoing_email_message.go @@ -94,6 +94,8 @@ func (m *OutgoingEmailMessage) validateHeaders(formats strfmt.Registry) error { 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 } @@ -122,6 +124,8 @@ func (m *OutgoingEmailMessage) contextValidateHeaders(ctx context.Context, forma 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 } diff --git a/api/workflow/workflow_models/outgoing_email_message_request.go b/api/workflow/workflow_models/outgoing_email_message_request.go index d6abb80..30cd9f2 100644 --- a/api/workflow/workflow_models/outgoing_email_message_request.go +++ b/api/workflow/workflow_models/outgoing_email_message_request.go @@ -62,6 +62,8 @@ func (m *OutgoingEmailMessageRequest) validateData(formats strfmt.Registry) erro 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 } @@ -81,6 +83,8 @@ func (m *OutgoingEmailMessageRequest) validateMeta(formats strfmt.Registry) erro 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 } @@ -115,6 +119,8 @@ func (m *OutgoingEmailMessageRequest) contextValidateData(ctx context.Context, f 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 } @@ -131,6 +137,8 @@ func (m *OutgoingEmailMessageRequest) contextValidateMeta(ctx context.Context, f 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 } diff --git a/api/workflow/workflow_models/task_request.go b/api/workflow/workflow_models/task_request.go index ab74fbe..5c2feb5 100644 --- a/api/workflow/workflow_models/task_request.go +++ b/api/workflow/workflow_models/task_request.go @@ -62,6 +62,8 @@ func (m *TaskRequest) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *TaskRequest) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *TaskRequest) contextValidateData(ctx context.Context, formats strfmt.Re 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 } @@ -131,6 +137,8 @@ func (m *TaskRequest) contextValidateMeta(ctx context.Context, formats strfmt.Re 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 } diff --git a/api/workflow/workflow_models/task_response.go b/api/workflow/workflow_models/task_response.go index bf3f1b1..ecaf2db 100644 --- a/api/workflow/workflow_models/task_response.go +++ b/api/workflow/workflow_models/task_response.go @@ -62,6 +62,8 @@ func (m *TaskResponse) validateData(formats strfmt.Registry) error { 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 } @@ -81,6 +83,8 @@ func (m *TaskResponse) validateMeta(formats strfmt.Registry) error { 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 } @@ -115,6 +119,8 @@ func (m *TaskResponse) contextValidateData(ctx context.Context, formats strfmt.R 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 } @@ -131,6 +137,8 @@ func (m *TaskResponse) contextValidateMeta(ctx context.Context, formats strfmt.R 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 } diff --git a/app/root.go b/app/root.go index 9fad180..674f533 100644 --- a/app/root.go +++ b/app/root.go @@ -34,7 +34,7 @@ func InitConfig(systemName string, initalLogLevel zapcore.Level) { appViper.SetConfigName(systemName) appViper.AddConfigPath("/etc/vernonkeenan") appViper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) - appViper.SetEnvPrefix("kvision") + appViper.SetEnvPrefix("vernonkeenan") appViper.AutomaticEnv() // read in environment variables that match err := appViper.ReadInConfig() if err != nil { diff --git a/go.mod b/go.mod index 38859a6..c40bc0e 100644 --- a/go.mod +++ b/go.mod @@ -3,15 +3,23 @@ module code.tnxs.net/vernonkeenan/lib go 1.15 require ( - github.com/go-openapi/errors v0.19.6 - github.com/go-openapi/runtime v0.19.26 - github.com/go-openapi/strfmt v0.19.5 - github.com/go-openapi/swag v0.19.9 - github.com/go-openapi/validate v0.19.10 + github.com/go-openapi/analysis v0.21.3 // indirect + github.com/go-openapi/errors v0.20.2 + github.com/go-openapi/runtime v0.24.1 + 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-sql-driver/mysql v1.6.0 - github.com/prometheus/client_golang v1.11.0 - github.com/rs/cors v1.8.0 - github.com/spf13/viper v1.8.1 + github.com/prometheus/client_golang v1.12.2 + github.com/prometheus/common v0.34.0 // indirect + github.com/rs/cors v1.8.2 + github.com/spf13/viper v1.12.0 github.com/taxnexus/go-force v1.0.7 - go.uber.org/zap v1.18.1 + go.mongodb.org/mongo-driver v1.9.1 // indirect + 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 + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 54b9202..06a28f6 100644 --- a/go.sum +++ b/go.sum @@ -3,6 +3,7 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= @@ -15,18 +16,33 @@ cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOY cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= +cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= +cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= +cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= +cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= +cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= +cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= +cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= +cloud.google.com/go/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= @@ -36,13 +52,13 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= +github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= @@ -52,12 +68,12 @@ github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk5 github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= -github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535 h1:4daAzAu0S6Vi7/lbWECcX0j45yZReDZ56BQsrVBOEEY= -github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= +github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= +github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ= +github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= @@ -65,119 +81,99 @@ github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+Ce github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= +github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= +github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= +github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= +github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.5.0/go.mod h1:Nd6IXA8m5kNZdNEHMBd93KT+mdY3+bewLgRvmCsR2Do= -github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= -github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277/go.mod h1:k70tL6pCuVxPJOHXQ+wIac1FUrvNkHolPie/cLEU6hI= -github.com/go-openapi/analysis v0.17.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= -github.com/go-openapi/analysis v0.18.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= -github.com/go-openapi/analysis v0.19.2/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= -github.com/go-openapi/analysis v0.19.4/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= -github.com/go-openapi/analysis v0.19.5/go.mod h1:hkEAkxagaIvIP7VTn8ygJNkd4kAYON2rCu0v0ObL0AU= -github.com/go-openapi/analysis v0.19.10 h1:5BHISBAXOc/aJK25irLZnx2D3s6WyYaY9D4gmuz9fdE= -github.com/go-openapi/analysis v0.19.10/go.mod h1:qmhS3VNFxBlquFJ0RGoDtylO9y4pgTAUNE9AEEMdlJQ= -github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= -github.com/go-openapi/errors v0.18.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= -github.com/go-openapi/errors v0.19.2/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= -github.com/go-openapi/errors v0.19.3/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= -github.com/go-openapi/errors v0.19.6 h1:xZMThgv5SQ7SMbWtKFkCf9bBdvR2iEyw9k3zGZONuys= -github.com/go-openapi/errors v0.19.6/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= -github.com/go-openapi/jsonpointer v0.19.3 h1:gihV7YNZK1iK6Tgwwsxo2rJbD1GTbdm72325Bq8FI3w= +github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-openapi/analysis v0.21.2/go.mod h1:HZwRk4RRisyG8vx2Oe6aqeSQcoxRp47Xkp3+K6q+LdY= +github.com/go-openapi/analysis v0.21.3 h1:CPEa+B2oYCkb+lIKB4xP6Ork8Gvh0GNg9dm/twI3+QA= +github.com/go-openapi/analysis v0.21.3/go.mod h1:2rtHDVV21tLgvJd+eXu+ExiOhfMO4+dNb7496llyke0= +github.com/go-openapi/errors v0.19.8/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= +github.com/go-openapi/errors v0.19.9/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= +github.com/go-openapi/errors v0.20.2 h1:dxy7PGTqEh94zj2E3h1cUmQQWiM1+aeCROfAr02EmK8= +github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -github.com/go-openapi/jsonreference v0.19.3 h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o= -github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= -github.com/go-openapi/loads v0.19.3/go.mod h1:YVfqhUCdahYwR3f3iiwQLhicVRvLlU/WO5WPaZvcvSI= -github.com/go-openapi/loads v0.19.5 h1:jZVYWawIQiA1NBnHla28ktg6hrcfTHsCE+3QLVRBIls= -github.com/go-openapi/loads v0.19.5/go.mod h1:dswLCAdonkRufe/gSUC3gN8nTSaB9uaS2es0x5/IbjY= -github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA= -github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64= -github.com/go-openapi/runtime v0.19.4/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4= -github.com/go-openapi/runtime v0.19.15/go.mod h1:dhGWCTKRXlAfGnQG0ONViOZpjfg0m2gUt9nTQPQZuoo= -github.com/go-openapi/runtime v0.19.26 h1:K/6PoVNj5WJXUnMk+VEbELeXjtBkCS1UxTDa04tdXE0= -github.com/go-openapi/runtime v0.19.26/go.mod h1:BvrQtn6iVb2QmiVXRsFAm6ZCAZBpbVKFfN6QWCp582M= -github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.18.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.19.2/go.mod h1:sCxk3jxKgioEJikev4fgkNmwS+3kuYdJtcsZsD5zxMY= -github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/spec v0.19.6/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/spec v0.19.8 h1:qAdZLh1r6QF/hI/gTq+TJTvsQUodZsM7KLqkAJdiJNg= -github.com/go-openapi/spec v0.19.8/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= -github.com/go-openapi/strfmt v0.18.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= -github.com/go-openapi/strfmt v0.19.0/go.mod h1:+uW+93UVvGGq2qGaZxdDeJqSAqBqBdl+ZPMF/cC8nDY= -github.com/go-openapi/strfmt v0.19.2/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= -github.com/go-openapi/strfmt v0.19.3/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= -github.com/go-openapi/strfmt v0.19.4/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= -github.com/go-openapi/strfmt v0.19.5 h1:0utjKrw+BAh8s57XE9Xz8DUBsVvPmRUB6styvl9wWIM= -github.com/go-openapi/strfmt v0.19.5/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= -github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= +github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= +github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= +github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= +github.com/go-openapi/loads v0.21.1 h1:Wb3nVZpdEzDTcly8S4HMkey6fjARRzb7iEaySimlDW0= +github.com/go-openapi/loads v0.21.1/go.mod h1:/DtAMXXneXFjbQMGEtbamCZb+4x7eGwkvZCvBmwUG+g= +github.com/go-openapi/runtime v0.24.1 h1:Sml5cgQKGYQHF+M7yYSHaH1eOjvTykrddTE/KtQVjqo= +github.com/go-openapi/runtime v0.24.1/go.mod h1:AKurw9fNre+h3ELZfk6ILsfvPN+bvvlaU/M9q/r9hpk= +github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= +github.com/go-openapi/spec v0.20.6 h1:ich1RQ3WDbfoeTqTAb+5EIxNmpKVJZWBNah9RAT0jIQ= +github.com/go-openapi/spec v0.20.6/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= +github.com/go-openapi/strfmt v0.21.0/go.mod h1:ZRQ409bWMj+SOgXofQAGTIo2Ebu72Gs+WaRADcS5iNg= +github.com/go-openapi/strfmt v0.21.1/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k= +github.com/go-openapi/strfmt v0.21.2 h1:5NDNgadiX1Vhemth/TH4gCGopWSTdDjxl60H3B7f+os= +github.com/go-openapi/strfmt v0.21.2/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.7/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/swag v0.19.9 h1:1IxuqvBUU3S2Bi4YC7tlP9SJF1gVpCvqN0T2Qof4azE= -github.com/go-openapi/swag v0.19.9/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= -github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= -github.com/go-openapi/validate v0.19.3/go.mod h1:90Vh6jjkTn+OT1Eefm0ZixWNFjhtOH7vS9k0lo6zwJo= -github.com/go-openapi/validate v0.19.10 h1:tG3SZ5DC5KF4cyt7nqLVcQXGj5A7mpaYkAcNPlDK+Yk= -github.com/go-openapi/validate v0.19.10/go.mod h1:RKEZTUWDkxKQxN2jDT7ZnZi2bhZlbNMAuKvKB+IaGx8= -github.com/go-playground/locales v0.12.1/go.mod h1:IUMDtCfWo/w/mtMfIE/IG2K+Ey3ygWanZIBtBW0W2TM= -github.com/go-playground/universal-translator v0.16.0/go.mod h1:1AnU7NaIRDWWzGEKwgtJRd2xk99HeFyHw3yid4rvQIY= +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-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 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-stack/stack v1.8.1 h1:ntEHSVwIt7PNXNpgPmVfMrNhLtgjlmnZha2kOpuRiDw= +github.com/go-stack/stack v1.8.1/go.mod h1:dcoOX6HbPZSZptuspn9bctJ+N/CnF5gGygcUP3XYfe4= github.com/gobuffalo/attrs v0.0.0-20190224210810-a9411de4debd/go.mod h1:4duuawTqi2wkkpB4ePgWMaai6/Kc6WEz83bhFwpHzj0= github.com/gobuffalo/depgen v0.0.0-20190329151759-d478694a28d3/go.mod h1:3STtPUQYuzV0gBVOY3vy6CfMm/ljR4pABfrTeHNLHUY= github.com/gobuffalo/depgen v0.1.0/go.mod h1:+ifsuy7fhi15RWncXQQKjWS9JPkdah5sZvtHc2RXGlg= @@ -209,6 +205,7 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfU github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= @@ -217,6 +214,7 @@ github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= +github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -236,6 +234,7 @@ github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= @@ -248,12 +247,16 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= @@ -263,203 +266,245 @@ github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= +github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= +github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= +github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= +github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= +github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= +github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= +github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= +github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= +github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= -github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.9.5/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= +github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= +github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/leodido/go-urn v1.1.0/go.mod h1:+cyI34gQWZcE1eQU7NVgKkkzdXDQHr1dBMtdAPozLkw= -github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaWak/Gls= -github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= +github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.1 h1:mdxE1MF9o53iCb2Ghj1VfWvh7ZOwHpnVG/xwXrV90U8= -github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= +github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/markbates/oncer v0.0.0-20181203154359-bf2de49a0be2/go.mod h1:Ld9puTsIW75CHf65OeIOkyKbteujpZVXDpWK6YGZbxE= github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= +github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= +github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= +github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag= +github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= -github.com/pelletier/go-toml v1.4.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo= -github.com/pelletier/go-toml v1.9.3 h1:zeC5b1GviRUyKYd6OJPvBU/mcVDVoL1OhT17FCt5dSQ= -github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= +github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= +github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml/v2 v2.0.1 h1:8e3L2cCQzLFi2CR4g7vGFuFxX7Jl1kKX8gW+iV0GUKU= +github.com/pelletier/go-toml/v2 v2.0.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= +github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.11.0 h1:HNkLOAEQMIDv/K+04rukrLx6ch7msSRwf3/SASFAGtQ= github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_golang v1.12.2 h1:51L9cDoUHVrXx4zWYlcLQIZ+d+VXHgqnYKkIuq4g/34= +github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0 h1:iMAkS2TDoNWnKM+Kopnx/8tnEStIfpYA0ur0xQzzhMQ= 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/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= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rs/cors v1.8.0 h1:P2KMzcFwrPoSjkF1WLRPsp3UMLyql8L4v9hQpVeK5so= -github.com/rs/cors v1.8.0/go.mod h1:EBwu+T5AvHOcXwvZIkQFjUN6s8Czyqw12GL/Y0tUyRM= +github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= +github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rs/cors v1.8.2 h1:KCooALfAYGs415Cwu5ABvv9n9509fSiG5SQJn/AQo4U= +github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sagikazarmark/crypt v0.6.0/go.mod h1:U8+INwJo3nBv1m6A/8OBXAq7Jnpspk5AxSgDyEQcea8= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= -github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/spf13/afero v1.6.0 h1:xoax2sJ2DT8S8xA2paPFjDCScCNeWsg75VG0DLRreiY= -github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= -github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng= -github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.8.2 h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo= +github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo= +github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= +github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.8.1 h1:Kq1fyeebqsBfbjZj4EL7gj2IO0mMaiyjYUWcUsl2O44= -github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= +github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ= +github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= -github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/subosito/gotenv v1.3.0 h1:mjC+YW8QpAdXibNi+vNWgzmgBH4+5l5dCXv8cNysBLI= +github.com/subosito/gotenv v1.3.0/go.mod h1:YzJjq/33h7nrwdY+iHMhEOEEbW0ovIz0tB6t6PwAXzs= github.com/taxnexus/go-force v1.0.7 h1:AhfmLToq3XIq5SkaC621uPu9kGjyTxwDi2k5XxuWws0= github.com/taxnexus/go-force v1.0.7/go.mod h1:lJDnynWzSMNjYWpPzAMX4gGy+nwDxBFgdHd4z0U1BG0= github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= -github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= -github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= +github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= +github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= +github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs= +github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= +github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= -go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.mongodb.org/mongo-driver v1.3.0/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= -go.mongodb.org/mongo-driver v1.3.4 h1:zs/dKNwX0gYUtzwrN9lLiR15hCO0nDwQj5xXx+vjCdE= -go.mongodb.org/mongo-driver v1.3.4/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= +go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= +go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= +go.etcd.io/etcd/client/v2 v2.305.4/go.mod h1:Ud+VUwIi9/uQHOMA+4ekToJ12lTxlv0zB/+DHwTGEbU= +go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= +go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R79oO62zWg= +go.mongodb.org/mongo-driver v1.7.5/go.mod h1:VXEWRZ6URJIkUq2SCAyapmhH0ZLRBP+FT4xhp5Zvxng= +go.mongodb.org/mongo-driver v1.8.3/go.mod h1:0sQWfOeY63QTntERDJJ/0SuKK0T1uVSgKCuAROlKEPY= +go.mongodb.org/mongo-driver v1.9.1 h1:m078y9v7sBItkt1aaoe2YlvWEXcD263e1a4E1fBrJ1c= +go.mongodb.org/mongo-driver v1.9.1/go.mod h1:0sQWfOeY63QTntERDJJ/0SuKK0T1uVSgKCuAROlKEPY= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= @@ -467,28 +512,31 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/goleak v1.1.10 h1:z+mqJhf6ss6BSfSM671tgKyZBFPTTJM+HLxnhPC3wu0= -go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= +go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= +go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= +go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= +go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= -go.uber.org/zap v1.18.1 h1:CSUJ2mjFszzEWt4CdKISEuChVIXGBn3lAPwkRGyVrc4= -go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= +go.uber.org/zap v1.21.0 h1:WefMeulhovoZ2sYXz7st6K0sLj7bBhpiFaud4r4zST8= +go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201216223049-8b5274cf687f/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -528,14 +576,10 @@ golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -544,7 +588,7 @@ golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -556,7 +600,6 @@ golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= @@ -564,11 +607,24 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 h1:4nGaVu0QrbjT/AK2PRLuQfQuh6DJve+pELhqTdAj3x0= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= +golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM= +golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +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/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= @@ -580,7 +636,15 @@ golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -593,14 +657,14 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190321052220-f7bb7a8bee54/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190419153524-e8e3143a4f4a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -609,17 +673,20 @@ golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -641,34 +708,62 @@ golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 h1:JWgyZ1qgdTaF3N3oxC+MdTV7qvEEgHo3otj+HB5CM7Q= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5 h1:i6eZZ+zk0SOf0xgBpEpPD18qWcJda6q1sxt3S0kzyUQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190329151228-23e29df326fe/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190416151739-9c9e1878f421/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190420181800-aa740d480789/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -677,15 +772,12 @@ golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190531172133-b3315ee88b7d/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190617190820-da514acc4774/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -718,14 +810,21 @@ golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.2 h1:kRBLX7v7Af8W7Gdbbc908OJcdgtK8bOz9Uaj8/F1ACA= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.5 h1:ouewzE6p+/VEB31YYnTbEJdi8pFqKp4P4n85vwo3DHA= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df h1:5Pf6pFKu98ODmgnpvkJ3kFUOQGGLIzLIkbzUHp47618= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= @@ -747,7 +846,24 @@ google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34q google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= +google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= +google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= +google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= +google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= +google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= +google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= +google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= +google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= +google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.81.0/go.mod h1:FA6Mb/bZxj706H2j+j2d6mHEEaHBmbbWnkfvmorOCko= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -790,12 +906,49 @@ google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -815,7 +968,18 @@ google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA5 google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -827,8 +991,10 @@ google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpAD google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -836,10 +1002,8 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= -gopkg.in/go-playground/validator.v9 v9.29.1/go.mod h1:+c9/zcJMFNgbLvly1L1V+PpxWdVbfP1avr/N00E2vyQ= -gopkg.in/ini.v1 v1.62.0 h1:duBzk771uxoUuOlyRLkHsygud9+5lrlGjdFBb4mSKDU= -gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/ini.v1 v1.66.4 h1:SsAcf+mM7mRZo2nJNGt8mZCjG8ZRaNGMURJw7BsIST4= +gopkg.in/ini.v1 v1.66.4/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -852,8 +1016,10 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= @@ -864,3 +1030,4 @@ honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9 rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/swagger/auth-kvision.yaml b/swagger/auth-vernonkeenan.yaml similarity index 100% rename from swagger/auth-kvision.yaml rename to swagger/auth-vernonkeenan.yaml diff --git a/swagger/board-kvision.yaml b/swagger/board-vernonkeenan.yaml similarity index 100% rename from swagger/board-kvision.yaml rename to swagger/board-vernonkeenan.yaml diff --git a/swagger/crm-kvision.yaml b/swagger/crm-vernonkeenan.yaml similarity index 83% rename from swagger/crm-kvision.yaml rename to swagger/crm-vernonkeenan.yaml index 1b5d5dd..2095d05 100644 --- a/swagger/crm-kvision.yaml +++ b/swagger/crm-vernonkeenan.yaml @@ -59,6 +59,12 @@ parameters: name: contactId required: false type: string + contractIdQuery: + description: Taxnexus Contact record ID + in: query + name: contractId + required: false + type: string emailQuery: description: Email address used for identity lookup in: query @@ -72,6 +78,13 @@ parameters: required: true schema: $ref: "#/definitions/ContactRequest" + contractRequest: + description: An array of new Contract records + in: body + name: contractsRequest + required: true + schema: + $ref: "#/definitions/ContractRequest" leadRequest: description: An array of new Lead records in: body @@ -169,6 +182,26 @@ responses: items: $ref: "#/definitions/Contact" type: array + ContractResponse: + description: Taxnexus Response with an array of Contract objects + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/ContractResponse" + ContractObservableResponse: + description: Taxnexus Response with an array of Contract objects + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + items: + $ref: "#/definitions/Contract" + type: array LeadResponse: description: Taxnexus Response with an array of Lead objects headers: @@ -391,6 +424,143 @@ paths: $ref: "#/responses/CORSResponse" tags: - cors + /contracts: + delete: + description: Delete Taxnexus Contract record + operationId: deleteContract + parameters: + - $ref: "#/parameters/contractIdQuery" + responses: + "200": + $ref: "#/responses/DeleteResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Delete An Contract + tags: + - Contracts + get: + description: Return a list of all available Contracts + operationId: getContracts + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/activeQuery" + - $ref: "#/parameters/contractIdQuery" + responses: + "200": + $ref: "#/responses/ContractResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list of contracts + tags: + - Contracts + options: + description: CORS support + operationId: contractOptions + responses: + "200": + $ref: "#/responses/CORSResponse" + tags: + - cors + post: + description: Contract record to be added + operationId: postContracts + parameters: + - $ref: "#/parameters/contractRequest" + responses: + "200": + $ref: "#/responses/ContractResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Add a new contract to Taxnexus + tags: + - Contracts + put: + description: Update a single contract specified by contractId + operationId: putContract + parameters: + - $ref: "#/parameters/contractRequest" + responses: + "200": + $ref: "#/responses/ContractResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update a single contract + tags: + - Contracts + /contracts/observable: + get: + description: A list of contracts in a simple JSON array + operationId: getContractsObservable + parameters: + - $ref: "#/parameters/activeQuery" + - $ref: "#/parameters/contractIdQuery" + responses: + "200": + $ref: "#/responses/ContractObservableResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get Taxnexus Contracts in an observable array + tags: + - Contracts + options: + description: CORS support + operationId: contractOptionsObservable + responses: + "200": + $ref: "#/responses/CORSResponse" + tags: + - cors /contacts: delete: description: Delete Taxnexus Contact record @@ -1433,3 +1603,112 @@ definitions: Taxnexus Account Number used for recording transactions type: string type: object + Contract: + type: object + properties: + AccountID: + description: Account + type: string + ActivatedByID: + description: Activated By + type: string + ActivatedDate: + description: Activated Date + type: string + BillingAddress: + $ref: "#/definitions/Address" + description: Billing Address + BillingContactID: + description: Billing Contact + type: string + CompanySignedDate: + description: Company Signed Date + type: string + CompanySignedID: + description: Company Signed By + type: string + ContractNumber: + description: Contract Number + type: string + ContractTerm: + description: Contract Term (months) + type: number + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + CustomerSignedDate: + description: Customer Signed Date + type: string + CustomerSignedID: + description: Customer Signed By + type: string + CustomerSignedTitle: + description: Customer Signed Title + type: string + DefaultEndUserID: + description: End User + type: string + Description: + description: Description + type: string + EndDate: + description: Contract End Date + type: string + HourlyRate: + description: Hourly Rate + type: number + ID: + description: Telnexus Record Id + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Contract Name + type: string + PaymentMethodID: + description: Payment Method + type: string + PaymentTerms: + description: Payment Terms + type: string + Perpetual: + description: Perpetual Agreement? + type: boolean + ShippingAddress: + $ref: "#/definitions/Address" + description: Shipping Address + ShippingContactID: + description: Shipping Contact + type: string + StartDate: + description: Contract Start Date + type: string + Status: + description: Status + type: string + TenantID: + description: Tenant Identifier + type: string + ContractRequest: + properties: + Data: + items: + $ref: "#/definitions/Contract" + type: array + type: object + ContractResponse: + properties: + Data: + items: + $ref: "#/definitions/Contract" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object diff --git a/swagger/devops-kvision.yaml b/swagger/devops-vernonkeenan.yaml similarity index 99% rename from swagger/devops-kvision.yaml rename to swagger/devops-vernonkeenan.yaml index 47488f1..8bffc9b 100644 --- a/swagger/devops-kvision.yaml +++ b/swagger/devops-vernonkeenan.yaml @@ -1237,10 +1237,6 @@ definitions: LastModifiedDate: description: Last Modifed Date type: string - Microservices: - description: - List of Taxnexus microservices implemented by this Database - type: string Status: description: The current status of this Tenant type: string diff --git a/swagger/research-kvision.yaml b/swagger/research-kvision.yaml deleted file mode 100644 index 07f6b00..0000000 --- a/swagger/research-kvision.yaml +++ /dev/null @@ -1,1258 +0,0 @@ -swagger: "2.0" -info: - version: 0.0.1 - title: "research" - description: "Customer Information 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: "research.vernonkeenan.com:8080" -consumes: - - "application/json" -produces: - - "application/json" -parameters: - accountIdQuery: - description: Taxnexus Record Id of an Account - in: query - name: accountId - required: false - type: string - accountRequest: - description: An array of new Account records - in: body - name: accountRequest - required: true - schema: - $ref: "#/definitions/AccountRequest" - activeQuery: - description: Only retrieve active records? - in: query - name: active - required: false - type: boolean - companyIdQuery: - description: Taxnexus Company record ID - in: query - name: companyId - required: false - type: string - leadIdQuery: - description: Taxnexus Lead record ID - in: query - name: leadId - required: false - type: string - contactIdQuery: - description: Taxnexus Contact record ID - in: query - name: contactId - required: false - type: string - emailQuery: - description: Email address used for identity lookup - in: query - name: email - required: false - type: string - contactRequest: - description: An array of new Contact records - in: body - name: contactsRequest - required: true - schema: - $ref: "#/definitions/ContactRequest" - leadRequest: - description: An array of new Lead records - in: body - name: leadRequest - required: true - schema: - $ref: "#/definitions/LeadRequest" - companyRequest: - description: An array of new Contact records - in: body - name: companiesRequest - required: true - schema: - $ref: "#/definitions/CompanyRequest" - limitQuery: - description: "How many objects to return at one time" - format: int64 - in: query - name: limit - required: false - type: integer - nameQuery: - description: The Name of this Object - in: query - name: name - required: false - type: string - offsetQuery: - description: How many objects to skip? - format: int64 - in: query - name: offset - required: false - type: integer - typeQuery: - description: The Type of this Object - in: query - name: type - required: false - type: string -responses: - AccessForbidden: - description: "Access forbidden, account lacks access" - headers: - Access-Control-Allow-Origin: - type: string - schema: - $ref: "#/definitions/Error" - AccountBasicResponse: - description: Taxnexus Response with Account objects with Contacts - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/AccountBasicResponse" - AccountResponse: - description: Taxnexus Response with Account objects with Contacts - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/AccountResponse" - AccountObservableResponse: - description: Taxnexus Response with an array of Account objects - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - items: - $ref: "#/definitions/Account" - type: array - CompanyResponse: - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - description: Taxnexus Response with Company objects - schema: - $ref: "#/definitions/CompanyResponse" - CompanyObservableResponse: - description: Taxnexus Response with an array of Company objects - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - items: - $ref: "#/definitions/Company" - type: array - Conflict: - description: Conflict - headers: - Access-Control-Allow-Origin: - type: string - schema: - $ref: "#/definitions/Error" - ContactResponse: - description: Taxnexus Response with an array of Contact objects - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/ContactResponse" - ContactObservableResponse: - description: Taxnexus Response with an array of Contact objects - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - items: - $ref: "#/definitions/Contact" - type: array - LeadResponse: - description: Taxnexus Response with an array of Lead objects - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/LeadResponse" - LeadObservableResponse: - description: Taxnexus Response with an array of Lead objects - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - items: - $ref: "#/definitions/Lead" - type: array - DeleteResponse: - description: - Taxnexus Response with Message Objects with Delete Status - headers: - Access-Control-Allow-Origin: - type: string - schema: - $ref: "#/definitions/DeleteResponse" - InvalidDataError: - headers: - Access-Control-Allow-Origin: - type: string - description: Invalid data was sent - schema: - $ref: "#/definitions/InvalidError" - NotFound: - description: Resource was not found - headers: - Access-Control-Allow-Origin: - type: string - schema: - $ref: "#/definitions/Error" - ServerError: - description: Server Internal Error - headers: - Access-Control-Allow-Origin: - type: string - schema: - $ref: "#/definitions/Error" - Unauthorized: - description: "Access unauthorized, invalid API-KEY was used" - headers: - Access-Control-Allow-Origin: - type: string - schema: - $ref: "#/definitions/Error" - UnprocessableEntity: - description: "Unprocessable Entity, likely a bad parameter" - headers: - Access-Control-Allow-Origin: - type: string - 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: - /companies: - get: - description: Retrieve Company records from the datastore - operationId: getCompanies - parameters: - - $ref: "#/parameters/companyIdQuery" - responses: - "200": - $ref: "#/responses/CompanyResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get Company records - tags: - - Companies - options: - description: CORS support - operationId: companyOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - post: - description: Add new companies - operationId: postCompanies - parameters: - - $ref: "#/parameters/companyRequest" - responses: - "200": - $ref: "#/responses/CompanyResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Add new companies - tags: - - Companies - /companies/observable: - get: - description: A list of companies in a simple JSON array - operationId: getCompaniesObservable - parameters: - - $ref: "#/parameters/companyIdQuery" - responses: - "200": - $ref: "#/responses/CompanyObservableResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get Taxnexus Companies in an observable array - tags: - - Companies - options: - description: CORS support - operationId: companyObservableOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors -definitions: - Account: - properties: - AccountNumber: - description: Account Number - type: string - AccountSource: - description: The marketing orgin of this account - type: string - Active: - description: Active - type: boolean - AdministrativeLevel: - description: - "For tax authorities, this account's administrative level, - e.g. Local, County, State or Federal" - type: string - Amount: - description: Rollup Tax Amount - format: double - type: number - AmountInvoiced: - description: Amount Invoiced - format: double - type: number - AmountPaid: - description: Amount Paid - format: double - type: number - AnnualRevenue: - description: Annual Revenue Estimate - format: double - type: number - Balance: - description: Account Balance - format: double - type: number - BillingAddress: - $ref: "#/definitions/Address" - BillingContactID: - description: Contact ID - type: string - BillingPreference: - description: Billing Preference - type: string - BusinessAddress: - $ref: "#/definitions/Address" - CannabisCustomer: - description: Is this a cannabis customer? - type: boolean - ChannelProgramLevelName: - description: Channel Program Level Name - type: string - ChannelProgramName: - description: Channel Program Name - type: string - ClientEndDate: - description: Client End Date - type: string - ClientStartDate: - description: Client Start Date - type: string - CompanyID: - description: The Company ID of this Account - type: string - CoordinateID: - description: The Id of the geo coordinates of this account - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - CustomerID: - description: Customer ID from source system - type: string - CustomerPriority: - description: Customer Priority - type: string - DBA: - description: This Account's 'Doing Business As' name - type: string - DUNSNumber: - description: D-U-N-S Number - type: string - DandBCompanyID: - description: D-n-B Company - type: string - DefaultAddress: - $ref: "#/definitions/Address" - DefaultBackendID: - description: Default Backend ID - type: string - DefaultDeliveryContactID: - description: Default Delivery Address Contact ID - type: string - DefaultEndUserID: - description: Default End User Contact ID - type: string - Description: - description: Description - type: string - EIN: - description: EIN - type: string - Email: - description: Main Account Email - type: string - EnrollmentStatus: - description: Enrollment Status - type: string - Fax: - description: Fax - type: string - ID: - description: Taxnexus Account Id - type: string - ISPCustomer: - description: ISP Customer? - type: boolean - Industry: - description: Industry - type: string - IsCustomerPortal: - description: Customer Portal Account - type: boolean - IsPartner: - description: Partner Account - type: boolean - JigSaw: - description: Data.com Key - type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - MSPCustomer: - description: MSP Customer? - type: boolean - NAICSCode: - description: NAICS Code - type: string - NAICSDesc: - description: NAICS Description - type: string - Name: - description: Account Name - type: string - NumberOfEmployees: - description: Employee Count Estimate - format: int64 - type: number - NumberOfLocations: - description: Number of Locations Estimate - format: int64 - type: number - OpenCharges: - description: Open Charges - format: double - type: number - OrderContactID: - description: Vendor Order Contact ID - type: string - OrderEmail: - description: Order Email - type: string - OwnerID: - description: Account Owner User ID - type: string - Ownership: - description: Ownership - type: string - ParentFK: - description: Parent Foreign Key - type: string - ParentID: - description: Parent Account - type: string - Phone: - description: Phone - type: string - PlaceID: - description: - The ID of the Place situs record that applies to this Account - type: string - PreparerID: - description: Tax Preparer Contact ID - type: string - Rating: - description: Rating - type: string - RatingEngineID: - description: Rating Engine identifier - type: string - Ref: - description: External Reference ID - type: string - RevenueBase: - description: Rollup Revenue Base - format: double - type: number - RevenueNet: - description: Rollup Revenue Net - format: double - type: number - RevenueNotTaxable: - description: Rollup Revenue Not Taxable - format: double - type: number - SIC: - description: SIC Code - type: string - SICDesc: - description: SIC Description - type: string - ShippingAddress: - $ref: "#/definitions/Address" - ShippingCensusTract: - description: Shipping Census Tract - type: string - ShippingConactID: - description: Shipping Contact ID - type: string - ShippingCounty: - description: Shipping County - type: string - Site: - description: Account Site - type: string - Status: - description: Account Status - type: string - TaxExemption: - description: Tax Exemption - type: string - TaxOnTax: - description: Rollup Tax On Tax - format: double - type: number - TelecomCustomer: - description: Telecom Customer? - type: boolean - TenantID: - description: Tenant Identifier - type: string - TickerSymbol: - description: Ticker Symbol - type: string - TradeStyle: - description: Tradestyle - type: string - Type: - description: Type - type: string - UnappliedPayments: - description: Unapplied Payments - format: double - type: number - UnitBase: - description: Rollup Unit Base - type: number - UpsellOpportunity: - description: Upsell Opportunity - type: string - WHMCSClientID: - description: WHMCS Client ID - format: int64 - type: number - Website: - description: Website - type: string - XeroContactID: - description: Xero Contact ID - type: string - YearStarted: - description: Year Started - type: string - type: object - AccountBasic: - properties: - AccountNumber: - description: "Taxnexus Account Number of the OEM/Reseller " - type: string - BillingAddress: - $ref: "#/definitions/Address" - BillingContactID: - description: Contact ID - type: string - CompanyID: - description: Taxnexus OEM/Reseller Record Id - type: string - CoordinateID: - description: - The id of the Coordinate of the business establishment - type: string - CustomerID: - description: Taxpayer Customer Id designated by OEM/Reseller - type: string - DefaultAddress: - $ref: "#/definitions/Address" - type: string - DefaultBackendID: - description: Default Backend ID - type: string - DefaultDeliveryContactID: - description: Default Delivery Address Contact ID - type: string - DefaultEndUserID: - description: Contact ID - type: string - Email: - description: Taxpayer Public Email Address - type: string - Fax: - description: Taxpayer Fax Number - type: string - ID: - description: Taxpayer Account Record Id - type: string - Name: - description: Taxpayer Account Name (ignored for Tax Processing) - type: string - ParentFK: - description: - UUID Reference the master record that owns this item - type: string - Phone: - description: Taxpayer Public Phone Number - type: string - PreparerID: - description: Contact ID - type: string - Ref: - description: "Source System identifier for this record, if any" - type: string - ShippingAddress: - $ref: "#/definitions/Address" - description: Shipping Address - ShippingConactID: - description: Contact ID - type: string - Site: - description: Taxpayer Location Designation - type: string - TenantID: - description: Tenant Identifier - type: string - Type: - description: Account Type - type: string - Website: - description: Taxpayer Website - type: string - type: object - AccountBasicResponse: - properties: - Data: - items: - $ref: "#/definitions/AccountBasic" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - AccountRequest: - description: An array of Account objects with Contacts - properties: - Data: - items: - $ref: "#/definitions/Account" - type: array - type: object - AccountResponse: - description: An array of Account objects with Contacts - properties: - Data: - items: - $ref: "#/definitions/Account" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - Address: - properties: - City: - description: City - type: string - Country: - description: Country full name - type: string - CountryCode: - description: Country Code - type: string - PostalCode: - description: Postal Code - type: string - State: - description: State full name - type: string - StateCode: - description: State Code - type: string - Street: - description: Street number and name - type: string - type: object - Company: - properties: - AccountID: - description: Taxnexus ID of the Account that owns this Company - type: string - AccountNumberPrefix: - description: Account Number Prefix - type: string - BillingAddress: - $ref: "#/definitions/Address" - BillingAdvice: - description: Billing Advice - type: string - BillingContactID: - description: Contact ID - type: string - BillingEmail: - description: Billing Email - type: string - BillingPhone: - description: Billing Phone - type: string - BillingWebsite: - description: Billing Website - type: string - COATemplateID: - description: Chart of Accounts Template Account ID - type: string - ColorAccent1: - description: Color Accent1 - type: string - ColorAccent2: - description: Color Accent2 - type: string - ColorPrimary: - description: Color Primary - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - CustomerSuccessID: - description: User ID of default Customer Success user - type: string - DateClosed: - description: Date Closed - type: string - DefaultAddress: - $ref: "#/definitions/Address" - DefaultCompany: - description: Default Company? - type: boolean - FontBody: - description: Font Name for Body Text - type: string - FontHeading: - description: Font Name for Heading - type: string - FontHeadingNarrow: - description: Font Name for Heading Narrow - type: string - FontLink: - description: Font Names for CSS Link - type: string - FontMono: - description: Font Name for Monospace - type: string - ID: - description: Taxnexus Record Id - type: string - International: - description: International Customers? - type: boolean - LastAccountNumber: - description: Last Account Number - format: int64 - type: number - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - LastTaxTypeNumber: - description: Last TaxType Number - format: int64 - type: number - Logo: - description: Logo URL - type: string - Name: - description: Company Name - type: string - OwnerID: - description: The ID of the contact who owns this Company - type: string - PreparerID: - description: User ID of the default tax preparer - type: string - PricebookID: - description: The ID of the default Pricebook for this company - type: string - TenantID: - description: Tenant Identifier - type: string - UserTechLeadID: - description: - The ID of the contact who is the User Tech Lead for Company - type: string - type: object - CompanyRequest: - description: An array of Company objects - properties: - Data: - items: - $ref: "#/definitions/Company" - type: array - type: object - CompanyResponse: - description: An array of Company objects - properties: - Data: - items: - $ref: "#/definitions/Company" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - Contact: - properties: - AccountID: - description: The primary account ID of this contact - type: string - AssistantName: - description: Assistant Name - type: string - AssistantPhone: - description: Asst. Phone - type: string - BirthDate: - description: Birthdate - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - Department: - description: Department - type: string - Description: - description: Description - type: string - DoNotCall: - description: Do Not Call? - type: boolean - Email: - description: Email address - type: string - EmailBounceDate: - description: Email Bounce Date - type: string - EmailBouncedReason: - description: Email Bounce Reason - type: string - EnrollmentStatus: - description: Taxnexus Enrollment Status - type: string - Fax: - description: Fax Number - type: string - FirstName: - description: First Name - type: string - HasOptedOutOfEmail: - description: Email Opt Out - type: boolean - HasOptedOutOfFax: - description: Fax Opt Out - type: boolean - HomePhone: - description: Home Phone - type: string - ID: - description: Taxnexus Record Id - type: string - IsEmailBounced: - description: Does this contact have bounced emails? - type: boolean - IsProvisioned: - description: Is Provisioned? - type: boolean - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - LastName: - description: Last Name - type: string - LeadSource: - description: Lead Source - type: string - Level: - description: Level - type: string - LinkedIn: - description: LinkedIn Page - type: string - MailingAddress: - $ref: "#/definitions/Address" - MailingLists: - description: Mailing Lists - type: string - MobilePhone: - description: Mobile Phone - type: string - Name: - description: Full Name - type: string - OtherAddress: - $ref: "#/definitions/Address" - OtherPhone: - description: Other Phone - type: string - OwnerID: - description: The User ID of the user who owns this Contact - type: string - PersonalEmail: - description: Personal Email Address for this Contact - type: string - Phone: - description: Phone Number - type: string - PhotoURL: - description: URL of a photograph of this User - type: string - RecruitingStatus: - description: Recruiting Status - type: string - Ref: - description: "External reference to this contact, if any" - type: string - ReportsToID: - description: Reports To Contact ID - type: string - Salutation: - description: Contact Salutation - type: string - Status: - description: The Contact Status - type: string - TenantID: - description: Tenant Identifier - type: string - Title: - description: Contact Title - type: string - Type: - description: Contact Type - type: string - type: object - ContactRequest: - properties: - Data: - items: - $ref: "#/definitions/Contact" - type: array - type: object - ContactResponse: - properties: - Data: - items: - $ref: "#/definitions/Contact" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - DeleteResponse: - properties: - Data: - items: - $ref: "#/definitions/Message" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - Error: - properties: - Code: - format: int64 - type: integer - Fields: - type: string - Message: - type: string - type: object - InvalidError: - allOf: - - $ref: "#/definitions/Error" - - properties: - details: - items: - type: string - type: array - type: object - Lead: - properties: - Address: - $ref: "#/definitions/Address" - Company: - description: Company - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - Description: - description: Description - type: string - Email: - description: Email - type: string - FirstName: - description: First Name - type: string - ID: - description: Taxnexus Record Id - type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - LastName: - description: Last Name - type: string - MobilePhone: - description: Mobile - type: string - Name: - description: Name - type: string - OwnerId: - description: LeadBasic Owner - type: string - PartnerAccountId: - description: Partner Account - type: string - Phone: - description: Phone - type: string - ProductID: - description: Product - type: string - RefererURL: - description: referer_url - type: string - Status: - description: LeadBasic Status - type: string - TenantID: - description: Tenant Identifier - type: string - Title: - description: Title - type: string - Type: - description: Type - type: string - UTMCampaign: - description: utm_campaign - type: string - UTMContent: - description: utm_content - type: string - UTMMedium: - description: utm_medium - type: string - UTMSource: - description: utm_source - type: string - UTMTerm: - description: utm_term - type: string - Website: - description: Website - type: string - type: object - LeadRequest: - properties: - Data: - items: - $ref: "#/definitions/Lead" - type: array - type: object - LeadResponse: - properties: - Data: - items: - $ref: "#/definitions/Lead" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - Message: - properties: - message: - type: string - ref: - type: string - status: - format: int64 - type: number - type: object - Pagination: - properties: - limit: - format: int64 - type: number - pagesize: - format: int64 - type: number - poffset: - format: int64 - type: integer - setsize: - format: int64 - type: number - 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 - Pagination: - $ref: "#/definitions/Pagination" - 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 diff --git a/swagger/research-vernonkeenan.yaml b/swagger/research-vernonkeenan.yaml new file mode 100644 index 0000000..e0379b0 --- /dev/null +++ b/swagger/research-vernonkeenan.yaml @@ -0,0 +1,753 @@ +swagger: "2.0" +info: + version: 0.0.1 + title: "research" + description: "Customer Information 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: "research.vernonkeenan.com:8080" +consumes: + - "application/json" +produces: + - "application/json" +parameters: + accountIdQuery: + description: Taxnexus Record Id of an Account + in: query + name: accountId + required: false + type: string + activeQuery: + description: Only retrieve active records? + in: query + name: active + required: false + type: boolean + companyProductIdQuery: + description: Taxnexus CompanyProduct record ID + in: query + name: companyProductId + required: false + type: string + industryIdQuery: + description: Taxnexus Industry record ID + in: query + name: industryId + required: false + type: string + topicIdQuery: + description: Taxnexus Topic record ID + in: query + name: topicId + required: false + type: string + leadIdQuery: + description: Taxnexus Lead record ID + in: query + name: leadId + required: false + type: string + contactIdQuery: + description: Taxnexus Contact record ID + in: query + name: contactId + required: false + type: string + emailQuery: + description: Email address used for identity lookup + in: query + name: email + required: false + type: string + industryRequest: + description: An array of new Industry records + in: body + name: industryRequest + required: true + schema: + $ref: "#/definitions/IndustryRequest" + topicRequest: + description: An array of new Topic records + in: body + name: topicRequest + required: true + schema: + $ref: "#/definitions/TopicRequest" + limitQuery: + description: "How many objects to return at one time" + format: int64 + in: query + name: limit + required: false + type: integer + nameQuery: + description: The Name of this Object + in: query + name: name + required: false + type: string + offsetQuery: + description: How many objects to skip? + format: int64 + in: query + name: offset + required: false + type: integer + typeQuery: + description: The Type of this Object + in: query + name: type + required: false + type: string +responses: + AccessForbidden: + description: "Access forbidden, account lacks access" + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" + TopicResponse: + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + description: Taxnexus Response with Topic objects + schema: + $ref: "#/definitions/TopicResponse" + IndustryResponse: + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + description: Taxnexus Response with Industry objects + schema: + $ref: "#/definitions/IndustryResponse" + TopicObservableResponse: + description: Taxnexus Response with an array of Topic objects + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + items: + $ref: "#/definitions/Topic" + type: array + IndustryObservableResponse: + description: Taxnexus Response with an array of Industry objects + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + items: + $ref: "#/definitions/Industry" + type: array + Conflict: + description: Conflict + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" + DeleteResponse: + description: Taxnexus Response with Message Objects with Delete Status + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/DeleteResponse" + InvalidDataError: + headers: + Access-Control-Allow-Origin: + type: string + description: Invalid data was sent + schema: + $ref: "#/definitions/InvalidError" + NotFound: + description: Resource was not found + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" + ServerError: + description: Server Internal Error + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" + Unauthorized: + description: "Access unauthorized, invalid API-KEY was used" + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" + UnprocessableEntity: + description: "Unprocessable Entity, likely a bad parameter" + headers: + Access-Control-Allow-Origin: + type: string + 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: + /topics: + get: + description: Retrieve Topic records from the datastore + operationId: getTopics + parameters: + - $ref: "#/parameters/topicIdQuery" + responses: + "200": + $ref: "#/responses/TopicResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get Topic records + tags: + - Topic + options: + description: CORS support + operationId: topicOptions + responses: + "200": + $ref: "#/responses/CORSResponse" + tags: + - cors + post: + description: Add new companies + operationId: postTopics + parameters: + - $ref: "#/parameters/topicRequest" + responses: + "200": + $ref: "#/responses/TopicResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Add new companies + tags: + - Topic + /topics/observable: + get: + description: A list of companies in a simple JSON array + operationId: getTopicsObservable + parameters: + - $ref: "#/parameters/topicIdQuery" + responses: + "200": + $ref: "#/responses/TopicObservableResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get Taxnexus Companies in an observable array + tags: + - Topic + options: + description: CORS support + operationId: topicObservableOptions + responses: + "200": + $ref: "#/responses/CORSResponse" + tags: + - cors + /industries: + get: + description: Retrieve Industry records from the datastore + operationId: getIndustries + parameters: + - $ref: "#/parameters/industryIdQuery" + responses: + "200": + $ref: "#/responses/IndustryResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get Industry records + tags: + - Industry + options: + description: CORS support + operationId: industryOptions + responses: + "200": + $ref: "#/responses/CORSResponse" + tags: + - cors + post: + description: Add new companies + operationId: postIndustries + parameters: + - $ref: "#/parameters/industryRequest" + responses: + "200": + $ref: "#/responses/IndustryResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Add new companies + tags: + - Industry + /industries/observable: + get: + description: A list of companies in a simple JSON array + operationId: getIndustriesObservable + parameters: + - $ref: "#/parameters/industryIdQuery" + responses: + "200": + $ref: "#/responses/IndustryObservableResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get Taxnexus Companies in an observable array + tags: + - Industry + options: + description: CORS support + operationId: industryObservableOptions + responses: + "200": + $ref: "#/responses/CORSResponse" + tags: + - cors +definitions: + Address: + type: object + properties: + City: + description: City + type: string + Country: + description: Country full name + type: string + CountryCode: + description: Country Code + type: string + PostalCode: + description: Postal Code + type: string + State: + description: State full name + type: string + StateCode: + description: State Code + type: string + Street: + description: Street number and name + type: string + Factor: + description: A Factor of analysis within a research topic + type: object + properties: + ID: + description: Taxnexus Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Factor Name + type: string + Description: + description: Topic Description + type: string + SiteURL: + description: The URL of the corresponding page on the CMS + type: string + TopicID: + description: The ID of the Topic that owns this Factor + type: string + Observations: + description: The list of Observations used to analyze this industry + type: array + items: + $ref: "#/definitions/Observation" + Observation: + description: A data point collected while analyzing a Factor + type: object + properties: + ID: + description: Taxnexus Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + FactorID: + description: The ID of the Factor that owns this Observation + type: string + SubjectType: + description: Is the subject a Company or a Product? + AccountID: + description: The ID of the Company being analyzed + type: string + companyProductID: + description: The ID of the Product being analyzed + type: string + Description: + description: Notes concerning data collection + type: string + Value: + description: The data point collected + type: string + Topic: + description: A research topic that collects data + type: object + properties: + ID: + description: Taxnexus Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Topic Name + type: string + Description: + description: Topic Description + type: string + SiteURL: + description: The URL of the corresponding page on the CMS + type: string + ParentTopicID: + description: The ID of the Parent Topic + type: string + Factors: + description: The list of Factors used to analyze this industry + type: array + items: + $ref: "#/definitions/Factor" + Industry: + description: An industry that is being researched + type: object + properties: + ID: + description: Taxnexus Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Industry Name + type: string + Description: + description: Industry Description + type: string + ParentIndustryID: + description: The ID of the Parent Industry + type: string + Level: + description: The hierarchical level of this Industry + type: string + Path: + description: The full path of this industry, including Parent + type: string + Slug: + description: The CMS Slug for this Industry + type: string + SiteURL: + description: The URL of the corresponding page on the CMS + type: string + Companies: + description: The AccountIDs of the Companies in this Industry + type: array + items: + type: string + CompanyProducts: + description: The list of Products in this industry + type: array + items: + $ref: "#/definitions/CompanyProduct" + IndustryRequest: + description: An array of Industry objects submitted for processing + properties: + Data: + items: + $ref: "#/definitions/Industry" + type: array + type: object + IndustryResponse: + description: An array of Industry objects produced in response to a request + properties: + Data: + items: + $ref: "#/definitions/Industry" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + TopicRequest: + description: An array of Topic objects submitted for processing + properties: + Data: + items: + $ref: "#/definitions/Topic" + type: array + type: object + TopicResponse: + description: An array of Topic objects produced in response to a request + properties: + Data: + items: + $ref: "#/definitions/Topic" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + CompanyProduct: + description: A software product or service vended by a Company + type: object + properties: + ID: + description: Taxnexus Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + AccountID: + description: Taxnexus ID of the Company that owns this Product + type: string + Description: + description: Description of product + type: string + Name: + description: Product Name + type: string + TagLine: + description: TagLine + type: string + URL: + description: Website + type: string + DeleteResponse: + properties: + Data: + items: + $ref: "#/definitions/Message" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Error: + properties: + Code: + format: int64 + type: integer + Fields: + type: string + Message: + type: string + type: object + InvalidError: + allOf: + - $ref: "#/definitions/Error" + - properties: + details: + items: + type: string + type: array + type: object + Message: + properties: + message: + type: string + ref: + type: string + status: + format: int64 + type: number + type: object + Pagination: + properties: + limit: + format: int64 + type: number + pagesize: + format: int64 + type: number + poffset: + format: int64 + type: integer + setsize: + format: int64 + type: number + 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 + Pagination: + $ref: "#/definitions/Pagination" + 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 diff --git a/swagger/sf-gate-kvision.yaml b/swagger/sf-gate-vernonkeenan.yaml similarity index 90% rename from swagger/sf-gate-kvision.yaml rename to swagger/sf-gate-vernonkeenan.yaml index 4c6acff..db68261 100644 --- a/swagger/sf-gate-kvision.yaml +++ b/swagger/sf-gate-vernonkeenan.yaml @@ -73,6 +73,19 @@ parameters: required: true schema: $ref: "#/definitions/ContactRequest" + contractIdQuery: + description: Taxnexus Contact record ID + in: query + name: contractId + required: false + type: string + contractRequest: + description: An array of new Contract records + in: body + name: contractsRequest + required: true + schema: + $ref: "#/definitions/ContractRequest" databaseRequest: description: An array of Database records in: body @@ -168,6 +181,15 @@ responses: description: Taxnexus Response with Contact objects schema: $ref: "#/definitions/ContactResponse" + ContractResponse: + description: Taxnexus Response with an array of Contract objects + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/ContractResponse" DatabaseResponse: description: Taxnexus Response with Database objects schema: @@ -453,6 +475,56 @@ paths: summary: Add a new Contacts to Taxnexus tags: - Contacts + /contracts: + get: + description: Return a list of all available Contracts + operationId: getContracts + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/activeQuery" + - $ref: "#/parameters/contractIdQuery" + responses: + "200": + $ref: "#/responses/ContractResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list of contracts + tags: + - Contracts + post: + description: Contract record to be added + operationId: postContracts + parameters: + - $ref: "#/parameters/contractRequest" + responses: + "200": + $ref: "#/responses/ContractResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Add a new contract to Taxnexus + tags: + - Contracts /roles: get: description: Return a list of Roles @@ -1227,6 +1299,115 @@ definitions: meta: $ref: "#/definitions/ResponseMeta" type: object + Contract: + type: object + properties: + AccountID: + description: Account + type: string + ActivatedByID: + description: Activated By + type: string + ActivatedDate: + description: Activated Date + type: string + BillingAddress: + $ref: "#/definitions/Address" + description: Billing Address + BillingContactID: + description: Billing Contact + type: string + CompanySignedDate: + description: Company Signed Date + type: string + CompanySignedID: + description: Company Signed By + type: string + ContractNumber: + description: Contract Number + type: string + ContractTerm: + description: Contract Term (months) + type: number + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + CustomerSignedDate: + description: Customer Signed Date + type: string + CustomerSignedID: + description: Customer Signed By + type: string + CustomerSignedTitle: + description: Customer Signed Title + type: string + DefaultEndUserID: + description: End User + type: string + Description: + description: Description + type: string + EndDate: + description: Contract End Date + type: string + HourlyRate: + description: Hourly Rate + type: number + ID: + description: Telnexus Record Id + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Contract Name + type: string + PaymentMethodID: + description: Payment Method + type: string + PaymentTerms: + description: Payment Terms + type: string + Perpetual: + description: Perpetual Agreement? + type: boolean + ShippingAddress: + $ref: "#/definitions/Address" + description: Shipping Address + ShippingContactID: + description: Shipping Contact + type: string + StartDate: + description: Contract Start Date + type: string + Status: + description: Status + type: string + TenantID: + description: Tenant Identifier + type: string + ContractRequest: + properties: + Data: + items: + $ref: "#/definitions/Contract" + type: array + type: object + ContractResponse: + properties: + Data: + items: + $ref: "#/definitions/Contract" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object Database: type: object description: A Database provisioned and owned by a Tenant diff --git a/swagger/stash-kvision.yaml b/swagger/stash-vernonkeenan.yaml similarity index 100% rename from swagger/stash-kvision.yaml rename to swagger/stash-vernonkeenan.yaml diff --git a/swagger/workflow-kvision.yaml b/swagger/workflow-vernonkeenan.yaml similarity index 100% rename from swagger/workflow-kvision.yaml rename to swagger/workflow-vernonkeenan.yaml