parent
83795da8f0
commit
d71d3ccdef
|
@ -134,6 +134,9 @@ type Place struct {
|
||||||
// sales tax rate
|
// sales tax rate
|
||||||
SalesTaxRate *TaxRate `json:"SalesTaxRate,omitempty"`
|
SalesTaxRate *TaxRate `json:"SalesTaxRate,omitempty"`
|
||||||
|
|
||||||
|
// Is this place that is split by county boundaries?
|
||||||
|
Split bool `json:"Split,omitempty"`
|
||||||
|
|
||||||
// State Code
|
// State Code
|
||||||
StateCode string `json:"StateCode,omitempty"`
|
StateCode string `json:"StateCode,omitempty"`
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ func InitForce(serviceAccountName string) *force.API {
|
||||||
sugar.Infof("app.initForce: 📥 %s", serviceAccountName)
|
sugar.Infof("app.initForce: 📥 %s", serviceAccountName)
|
||||||
acct := GetServiceAccount(serviceAccountName)
|
acct := GetServiceAccount(serviceAccountName)
|
||||||
theForce, err := force.Create(
|
theForce, err := force.Create(
|
||||||
"v45.0",
|
"v49.0",
|
||||||
acct.ClientID,
|
acct.ClientID,
|
||||||
acct.ClientSecret,
|
acct.ClientSecret,
|
||||||
acct.Username,
|
acct.Username,
|
||||||
|
|
|
@ -54,6 +54,7 @@ func UnMarshalPlace(s *geo_models.Place) *Place {
|
||||||
RevenueNet: s.RevenueNet,
|
RevenueNet: s.RevenueNet,
|
||||||
RevenueNotTaxable: s.RevenueNotTaxable,
|
RevenueNotTaxable: s.RevenueNotTaxable,
|
||||||
Revneuebase: s.RevenueBase,
|
Revneuebase: s.RevenueBase,
|
||||||
|
Split: s.Split,
|
||||||
StateCode: s.StateCode,
|
StateCode: s.StateCode,
|
||||||
StateID: s.StateID,
|
StateID: s.StateID,
|
||||||
Status: s.Status,
|
Status: s.Status,
|
||||||
|
@ -135,6 +136,7 @@ func (obj *Place) MarshalToSwagger() *geo_models.Place {
|
||||||
RevenueNet: obj.RevenueNet,
|
RevenueNet: obj.RevenueNet,
|
||||||
RevenueNotTaxable: obj.RevenueNotTaxable,
|
RevenueNotTaxable: obj.RevenueNotTaxable,
|
||||||
SalesTaxRate: salesTaxRate,
|
SalesTaxRate: salesTaxRate,
|
||||||
|
Split: obj.Split,
|
||||||
StateID: obj.StateID,
|
StateID: obj.StateID,
|
||||||
Status: obj.Status,
|
Status: obj.Status,
|
||||||
Subtotal: obj.Subtotal,
|
Subtotal: obj.Subtotal,
|
||||||
|
|
|
@ -54,6 +54,7 @@ type Place struct {
|
||||||
RevenueNotTaxable float64
|
RevenueNotTaxable float64
|
||||||
Revneuebase float64
|
Revneuebase float64
|
||||||
SalesTaxRate *TaxRate
|
SalesTaxRate *TaxRate
|
||||||
|
Split bool
|
||||||
StateCode string
|
StateCode string
|
||||||
StateID string
|
StateID string
|
||||||
Status string
|
Status string
|
||||||
|
|
|
@ -47,8 +47,6 @@ const countyGeocodeLength = 7
|
||||||
|
|
||||||
var maxTaxTypes = int64(2000) //nolint:gomnd // it's a var const
|
var maxTaxTypes = int64(2000) //nolint:gomnd // it's a var const
|
||||||
|
|
||||||
// const cityGeocodeLength = 12
|
|
||||||
|
|
||||||
// InitConfig exports the config initialization func
|
// InitConfig exports the config initialization func
|
||||||
func InitConfig(systemName string, initalLogLevel zapcore.Level) {
|
func InitConfig(systemName string, initalLogLevel zapcore.Level) {
|
||||||
if configured {
|
if configured {
|
||||||
|
|
|
@ -2093,6 +2093,9 @@ definitions:
|
||||||
SalesTaxRate:
|
SalesTaxRate:
|
||||||
$ref: "#/definitions/TaxRate"
|
$ref: "#/definitions/TaxRate"
|
||||||
type: object
|
type: object
|
||||||
|
Split:
|
||||||
|
type: boolean
|
||||||
|
description: Is this place that is split by county boundaries?
|
||||||
StateID:
|
StateID:
|
||||||
description: State
|
description: State
|
||||||
type: string
|
type: string
|
||||||
|
|
Loading…
Reference in New Issue