Compare commits

..

No commits in common. "v0.3.2" and "v0.3.0" have entirely different histories.

15 changed files with 1290 additions and 1689 deletions

View File

@ -14,7 +14,7 @@ swagger:
--target=./api/auth \
--client-package=auth-client \
--model-package=auth-models \
--principal=app.User &
--principal=app.User
#
# generate auth0
#
@ -27,7 +27,7 @@ swagger:
--target=./api/auth0 \
--client-package=auth0-client \
--model-package=auth0-models \
--principal=app.User &
--principal=app.User
#
# generate blaze
#
@ -40,7 +40,7 @@ swagger:
--target=./api/blaze \
--client-package=blaze-client \
--model-package=blaze-models \
--principal=app.User &
--principal=app.User
#
# generate crm
#
@ -53,7 +53,7 @@ swagger:
--target=./api/crm \
--client-package=crm-client \
--model-package=crm-models \
--principal=app.User &
--principal=app.User
#
# generate devops
#
@ -66,7 +66,7 @@ swagger:
--target=./api/devops \
--client-package=devops-client \
--model-package=devops-models \
--principal=app.User &
--principal=app.User
#
# generate geo
#
@ -79,7 +79,7 @@ swagger:
--target=./api/geo \
--client-package=geo-client \
--model-package=geo-models \
--principal=app.User &
--principal=app.User
#
# generate gov-gw
#
@ -92,7 +92,7 @@ swagger:
--target=./api/gov-gw \
--client-package=gov-gw-client \
--model-package=gov-gw-models \
--principal=app.User &
--principal=app.User
#
# generate ledger
#
@ -105,7 +105,7 @@ swagger:
--target=./api/ledger \
--client-package=ledger-client \
--model-package=ledger-models \
--principal=app.User &
--principal=app.User
#
# generate metrc-gw
#
@ -118,7 +118,7 @@ swagger:
--target=./api/metrc-gw \
--client-package=metrc-gw-client \
--model-package=metrc-gw-models \
--principal=app.User &
--principal=app.User
#
# generate ops
#
@ -131,7 +131,7 @@ swagger:
--target=./api/ops \
--client-package=ops-client \
--model-package=ops-models \
--principal=app.User &
--principal=app.User
#
# generate pdf
#
@ -144,7 +144,7 @@ swagger:
--target=./api/pdf \
--client-package=pdf-client \
--model-package=pdf-models \
--principal=app.User &
--principal=app.User
#
# generate plex
#
@ -157,7 +157,7 @@ swagger:
--target=./api/plex \
--client-package=plex-client \
--model-package=plex-models \
--principal=app.User &
--principal=app.User
#
# generate regs
#
@ -170,7 +170,7 @@ swagger:
--target=./api/regs \
--client-package=regs-client \
--model-package=regs-models \
--principal=app.User &
--principal=app.User
#
# generate render
#
@ -183,7 +183,7 @@ swagger:
--target=./api/render \
--client-package=render-client \
--model-package=render-models \
--principal=app.User &
--principal=app.User
#
# generate sf-gate
#
@ -196,7 +196,7 @@ swagger:
--target=./api/sf-gate \
--client-package=sf-gate-client \
--model-package=sf-gate-models \
--principal=app.User &
--principal=app.User
#
# generate stash
#
@ -209,7 +209,7 @@ swagger:
--target=./api/stash \
--client-package=stash-client \
--model-package=stash-models \
--principal=app.User &
--principal=app.User
#
# generate vendor-gw
#
@ -222,7 +222,7 @@ swagger:
--target=./api/vendor-gw \
--client-package=vendor-gw-client \
--model-package=vendor-gw-models \
--principal=app.User &
--principal=app.User
#
# generate workflow
#
@ -235,4 +235,4 @@ swagger:
--target=./api/workflow \
--client-package=workflow-client \
--model-package=workflow-models \
--principal=app.User &
--principal=app.User

View File

@ -134,9 +134,6 @@ type Place struct {
// sales tax rate
SalesTaxRate *TaxRate `json:"SalesTaxRate,omitempty"`
// Is this place that is split by county boundaries?
Split bool `json:"Split,omitempty"`
// State Code
StateCode string `json:"StateCode,omitempty"`

View File

@ -35,12 +35,6 @@ type Country struct {
// Contact
Contactid string `json:"contactid,omitempty"`
// Created By User ID
Createdbyid string `json:"createdbyid,omitempty"`
// Created Date
Createddate string `json:"createddate,omitempty"`
// Enrollment Status
Enrollmentstatus string `json:"enrollmentstatus,omitempty"`
@ -50,12 +44,6 @@ type Country struct {
// Interest
Interest float64 `json:"interest,omitempty"`
// Last Modified By User ID
Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`
// Last Modified Date
Lastmodifieddate string `json:"lastmodifieddate,omitempty"`
// latitude
Latitude float64 `json:"latitude,omitempty"`

View File

@ -38,12 +38,6 @@ type County struct {
// Country Taxnexus ID
Countryid string `json:"countryid,omitempty"`
// Created By User ID
Createdbyid string `json:"createdbyid,omitempty"`
// Created Date
Createddate string `json:"createddate,omitempty"`
// Enrollment Status
Enrollmentstatus string `json:"enrollmentstatus,omitempty"`
@ -74,12 +68,6 @@ type County struct {
// Land Area
Landarea int64 `json:"landarea,omitempty"`
// Last Modified By User ID
Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`
// Last Modified Date
Lastmodifieddate string `json:"lastmodifieddate,omitempty"`
// latitude
Latitude float64 `json:"latitude,omitempty"`

View File

@ -44,12 +44,6 @@ type Place struct {
// County
Countyid string `json:"countyid,omitempty"`
// Created By User ID
Createdbyid string `json:"createdbyid,omitempty"`
// Created Date
Createddate string `json:"createddate,omitempty"`
// Enrollment Status
Enrollmentstatus string `json:"enrollmentstatus,omitempty"`
@ -80,12 +74,6 @@ type Place struct {
// Land Area
Landarea int64 `json:"landarea,omitempty"`
// Last Modified By User ID
Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`
// Last Modified Date
Lastmodifieddate string `json:"lastmodifieddate,omitempty"`
// latitude
Latitude float64 `json:"latitude,omitempty"`
@ -131,13 +119,7 @@ type Place struct {
// Rollup Revenue Not Taxable
Revenuenottaxable float64 `json:"revenuenottaxable,omitempty"`
// Split?
Split bool `json:"split,omitempty"`
// State Code
Statecode string `json:"statecode,omitempty"`
// State ID
// State
Stateid string `json:"stateid,omitempty"`
// Document Status

View File

@ -38,12 +38,6 @@ type State struct {
// Country
Contryid string `json:"contryid,omitempty"`
// Created By User ID
Createdbyid string `json:"createdbyid,omitempty"`
// Created Date
Createddate string `json:"createddate,omitempty"`
// Division
Division string `json:"division,omitempty"`
@ -68,12 +62,6 @@ type State struct {
// Land Area
Landarea int64 `json:"landarea,omitempty"`
// Last Modified By User ID
Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`
// Last Modified Date
Lastmodifieddate string `json:"lastmodifieddate,omitempty"`
// latitude
Latitude float64 `json:"latitude,omitempty"`

View File

@ -9,7 +9,7 @@ func InitForce(serviceAccountName string) *force.API {
sugar.Infof("app.initForce: 📥 %s", serviceAccountName)
acct := GetServiceAccount(serviceAccountName)
theForce, err := force.Create(
"v49.0",
"v45.0",
acct.ClientID,
acct.ClientSecret,
acct.Username,

View File

@ -54,7 +54,6 @@ func UnMarshalPlace(s *geo_models.Place) *Place {
RevenueNet: s.RevenueNet,
RevenueNotTaxable: s.RevenueNotTaxable,
Revneuebase: s.RevenueBase,
Split: s.Split,
StateCode: s.StateCode,
StateID: s.StateID,
Status: s.Status,
@ -136,7 +135,6 @@ func (obj *Place) MarshalToSwagger() *geo_models.Place {
RevenueNet: obj.RevenueNet,
RevenueNotTaxable: obj.RevenueNotTaxable,
SalesTaxRate: salesTaxRate,
Split: obj.Split,
StateID: obj.StateID,
Status: obj.Status,
Subtotal: obj.Subtotal,

View File

@ -54,7 +54,6 @@ type Place struct {
RevenueNotTaxable float64
Revneuebase float64
SalesTaxRate *TaxRate
Split bool
StateCode string
StateID string
Status string

View File

@ -47,6 +47,8 @@ const countyGeocodeLength = 7
var maxTaxTypes = int64(2000) //nolint:gomnd // it's a var const
// const cityGeocodeLength = 12
// InitConfig exports the config initialization func
func InitConfig(systemName string, initalLogLevel zapcore.Level) {
if configured {

View File

@ -2441,18 +2441,6 @@ definitions:
type: object
Country:
properties:
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:
type: string
ref:
@ -2545,18 +2533,6 @@ definitions:
type: object
County:
properties:
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:
type: string
templateid:
@ -3737,18 +3713,6 @@ definitions:
type: object
Place:
properties:
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:
type: string
latitude:
@ -3845,11 +3809,7 @@ definitions:
description: Rollup Revenue Not Taxable
type: number
format: double
split:
type: boolean
statecode:
type: string
stateid:
stateId:
type: string
status:
type: string
@ -3926,18 +3886,6 @@ definitions:
type: object
State:
properties:
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
templateid:
type: string
ref:

View File

@ -9,7 +9,7 @@ info:
title: "vendor-gw-blaze"
description:
"Taxnexus Gateway Client API for Blaze.me Cannabis Management System"
host: "api.partners.blaze.me"
host: "api.blaze.me"
basePath: "/api/v1"
schemes:
- "https"
@ -960,8 +960,6 @@ definitions:
companyId:
example: 5c7e8c7b722ed607e61edb06
type: string
complianceId:
type: string
created:
example: 1553982501834
type: number
@ -1059,8 +1057,6 @@ definitions:
updated:
example: false
type: boolean
wmCategory:
type: string
type: object
categoryId:
example: 5c9fe425e0faca07db94b986
@ -1074,11 +1070,6 @@ definitions:
cbn:
example: 0
type: number
committedQuantities:
properties:
no_region:
type: number
type: object
companyId:
example: 5c7e8c7b722ed607e61edb06
type: string
@ -1112,8 +1103,6 @@ definitions:
dirty:
example: false
type: boolean
discountEnabled:
type: boolean
discountable:
example: true
type: boolean
@ -1141,14 +1130,6 @@ definitions:
importSrc:
example: string
type: string
instock:
type: boolean
lastLeaflySyncStatus:
type: boolean
lastLeaflySyncTime:
type: number
lastWMSyncTime:
type: number
lowInventoryNotification:
example: false
type: boolean
@ -1200,8 +1181,6 @@ definitions:
active:
example: true
type: boolean
assignedPrice:
type: number
companyId:
example: 5c7e8c7b722ed607e61edb06
type: string
@ -1252,42 +1231,12 @@ definitions:
items:
type: string
type: array
producerAddress:
properties:
address:
type: string
addressLine2:
type: string
city:
type: string
companyId:
type: string
country:
type: string
created:
type: number
deleted:
type: boolean
id:
type: string
modified:
type: number
state:
type: string
updated:
type: boolean
zipCode:
type: string
pricingTemplateId:
example: ""
type: string
productSaleType:
example: Both
type: string
productTagGroups:
items:
type: string
type: array
productType:
example: REGULAR
type: string
@ -1340,143 +1289,6 @@ definitions:
reOrderLevel:
example: 0
type: number
secondaryVendorResult:
items:
type: object
properties:
id:
type: string
created:
type: number
modified:
type: number
deleted:
type: boolean
updated:
type: boolean
companyId:
type: string
active:
type: boolean
name:
type: string
phone:
type: string
email:
type: string
fax:
type: string
address:
properties:
id:
type: string
created:
type: number
modified:
type: number
deleted:
type: boolean
updated:
type: boolean
address:
type: string
city:
type: string
state:
type: string
zipCode:
type: string
addressLine2:
type: string
country:
type: string
type: "object"
description:
type: string
website:
type: string
firstName:
type: string
lastName:
type: string
notes:
type: array
items:
type: string
licenseNumber:
type: string
assets:
type: array
items:
type: string
backOrderEnabled:
type: boolean
licenseExpirationDate:
type: number
armsLengthType:
type: string
brands:
type: array
items:
type: string
qbVendorRef:
type: array
items:
type: string
additionalAddressList:
type: array
items:
type: string
credits:
type: number
relatedEntity:
type: boolean
vendorType:
type: string
companyLicenses:
type: array
items:
type: "object"
properties:
id:
type: string
created:
type: number
modified:
type: number
deleted:
type: boolean
updated:
type: boolean
companyType:
type: string
licenseType:
type: string
licenseNumber:
type: string
licenseExpirationDate:
type: number
toDefault:
type: boolean
createdBy:
type: string
defaultPaymentTerm:
type: string
toDefault:
type: boolean
vendorKey:
type: string
type: array
secondaryVendors:
items:
type: string
type: array
sellable:
type: boolean
sellableQuantities:
properties:
no_region:
type: number
shopId:
example: 5c9fe425e0faca07db94b970
type: string
@ -1520,8 +1332,6 @@ definitions:
deleted:
example: false
type: boolean
displayName:
type: string
dirty:
example: false
type: boolean
@ -1961,28 +1771,9 @@ definitions:
example: Lowell Herb Co / The Hacienda Co LLC
type: string
notes:
type: array
items:
type: object
properties:
id:
type: string
created:
type: number
modified:
type: number
deleted:
type: boolean
updated:
type: boolean
writerId:
type: string
writerName:
type: string
message:
type: string
enableOnFleet:
type: boolean
type: array
phone:
example: ""
type: string

View File

@ -2093,9 +2093,6 @@ definitions:
SalesTaxRate:
$ref: "#/definitions/TaxRate"
type: object
Split:
type: boolean
description: Is this place that is split by county boundaries?
StateID:
description: State
type: string

File diff suppressed because it is too large Load Diff

View File

@ -4045,18 +4045,6 @@ definitions:
type: object
Country:
properties:
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: Account
type: string
@ -4163,18 +4151,6 @@ definitions:
type: object
County:
properties:
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: Account
type: string
@ -6474,18 +6450,6 @@ definitions:
type: object
Place:
properties:
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: Account
type: string
@ -6595,14 +6559,8 @@ definitions:
description: Rollup Revenue Not Taxable
type: number
format: double
split:
type: boolean
description: Split?
statecode:
description: State Code
type: string
stateid:
description: State ID
description: State
type: string
status:
description: Document Status
@ -7623,18 +7581,6 @@ definitions:
type: object
State:
properties:
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: Account
type: string