clean up schema

v0.1.7 v0.1.7
Vernon Keenan 2022-09-03 21:57:09 -07:00
parent 0a2691ea69
commit 895f3e563d
16 changed files with 310 additions and 2480 deletions

View File

@ -28,59 +28,23 @@ type Account struct {
// The marketing origin of this account // The marketing origin of this account
AccountSource string `json:"AccountSource,omitempty"` AccountSource string `json:"AccountSource,omitempty"`
// Active
Active bool `json:"Active,omitempty"`
// For tax authorities, this account's administrative level, e.g. Local, County, State or Federal
AdministrativeLevel string `json:"AdministrativeLevel,omitempty"`
// Rollup Tax Amount
Amount float64 `json:"Amount,omitempty"`
// Amount Invoiced
AmountInvoiced float64 `json:"AmountInvoiced,omitempty"`
// Amount Paid
AmountPaid float64 `json:"AmountPaid,omitempty"`
// Annual Revenue Estimate // Annual Revenue Estimate
AnnualRevenue float64 `json:"AnnualRevenue,omitempty"` AnnualRevenue float64 `json:"AnnualRevenue,omitempty"`
// Account Balance
Balance float64 `json:"Balance,omitempty"`
// billing address // billing address
BillingAddress *Address `json:"BillingAddress,omitempty"` BillingAddress *Address `json:"BillingAddress,omitempty"`
// Contact ID // Contact ID
BillingContactID string `json:"BillingContactID,omitempty"` BillingContactID string `json:"BillingContactID,omitempty"`
// Billing Preference // Close Date
BillingPreference string `json:"BillingPreference,omitempty"` CloseDate string `json:"CloseDate,omitempty"`
// business address // The type of cloud company
BusinessAddress *Address `json:"BusinessAddress,omitempty"` CloudType string `json:"CloudType,omitempty"`
// Is this a cannabis customer? // The year company started cloud revenue
CannabisCustomer bool `json:"CannabisCustomer,omitempty"` CloudYear string `json:"CloudYear,omitempty"`
// Channel Program Level Name
ChannelProgramLevelName string `json:"ChannelProgramLevelName,omitempty"`
// Channel Program Name
ChannelProgramName string `json:"ChannelProgramName,omitempty"`
// Client End Date
ClientEndDate string `json:"ClientEndDate,omitempty"`
// Client Start Date
ClientStartDate string `json:"ClientStartDate,omitempty"`
// The Company ID of this Account
CompanyID string `json:"CompanyID,omitempty"`
// The Id of the geo coordinates of this account
CoordinateID string `json:"CoordinateID,omitempty"`
// Created By User ID // Created By User ID
CreatedByID string `json:"CreatedByID,omitempty"` CreatedByID string `json:"CreatedByID,omitempty"`
@ -88,137 +52,83 @@ type Account struct {
// Created Date // Created Date
CreatedDate string `json:"CreatedDate,omitempty"` CreatedDate string `json:"CreatedDate,omitempty"`
// Customer ID from source system // Crunchbase URL
CustomerID string `json:"CustomerID,omitempty"` CrunchbaseURL string `json:"CrunchbaseURL,omitempty"`
// Customer Priority // Description of the account
CustomerPriority string `json:"CustomerPriority,omitempty"`
// This Account's 'Doing Business As' name
DBA string `json:"DBA,omitempty"`
// D-U-N-S Number
DUNSNumber string `json:"DUNSNumber,omitempty"`
// D-n-B Company
DandBCompanyID string `json:"DandBCompanyID,omitempty"`
// default address
DefaultAddress *Address `json:"DefaultAddress,omitempty"`
// Default Backend ID
DefaultBackendID string `json:"DefaultBackendID,omitempty"`
// Default Delivery Address Contact ID
DefaultDeliveryContactID string `json:"DefaultDeliveryContactID,omitempty"`
// Default End User Contact ID
DefaultEndUserID string `json:"DefaultEndUserID,omitempty"`
// Description
Description string `json:"Description,omitempty"` Description string `json:"Description,omitempty"`
// EIN // Earnings Call Date
EIN string `json:"EIN,omitempty"` EarningsCall string `json:"EarningsCall,omitempty"`
// Main Account Email // Main Account Email
Email string `json:"Email,omitempty"` Email string `json:"Email,omitempty"`
// Enrollment Status // The amount of equity EquityFunding
EnrollmentStatus string `json:"EnrollmentStatus,omitempty"` EquityFunding float64 `json:"EquityFunding,omitempty"`
// Fax // Company Facebook URL
Facebook string `json:"Facebook,omitempty"`
// Fax number
Fax string `json:"Fax,omitempty"` Fax string `json:"Fax,omitempty"`
// Date company founded
FoundedDate string `json:"FoundedDate,omitempty"`
// Taxnexus Account Id // Taxnexus Account Id
ID string `json:"ID,omitempty"` ID string `json:"ID,omitempty"`
// ISP Customer? // IPO Date
ISPCustomer bool `json:"ISPCustomer,omitempty"` IPODate string `json:"IPODate,omitempty"`
// Industries
Industries string `json:"Industries,omitempty"`
// Industry // Industry
Industry string `json:"Industry,omitempty"` Industry string `json:"Industry,omitempty"`
// Customer Portal Account
IsCustomerPortal bool `json:"IsCustomerPortal,omitempty"`
// Partner Account
IsPartner bool `json:"IsPartner,omitempty"`
// Data.com Key
JigSaw string `json:"JigSaw,omitempty"`
// Last Modified By User ID // Last Modified By User ID
LastModifiedByID string `json:"LastModifiedByID,omitempty"` LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date // Last Modified Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"` LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// MSP Customer? // Company LinkedIn URL
MSPCustomer bool `json:"MSPCustomer,omitempty"` LinkedIn string `json:"LinkedIn,omitempty"`
// NAICS Code // Headquarters Location Description
NAICSCode string `json:"NAICSCode,omitempty"` Location string `json:"Location,omitempty"`
// NAICS Description // Company Logo URL
NAICSDesc string `json:"NAICSDesc,omitempty"` Logo string `json:"Logo,omitempty"`
// Market Capitalization
MarketCapitalization float64 `json:"MarketCapitalization,omitempty"`
// Account Name // Account Name
Name string `json:"Name,omitempty"` Name string `json:"Name,omitempty"`
// Number of Investments
NumberInvestments float64 `json:"NumberInvestments,omitempty"`
// Employee Count Estimate // Employee Count Estimate
NumberOfEmployees int64 `json:"NumberOfEmployees,omitempty"` NumberOfEmployees int64 `json:"NumberOfEmployees,omitempty"`
// Number of Locations Estimate
NumberOfLocations int64 `json:"NumberOfLocations,omitempty"`
// Open Charges
OpenCharges float64 `json:"OpenCharges,omitempty"`
// Vendor Order Contact ID
OrderContactID string `json:"OrderContactID,omitempty"`
// Order Email
OrderEmail string `json:"OrderEmail,omitempty"`
// Account Owner User ID // Account Owner User ID
OwnerID string `json:"OwnerID,omitempty"` OwnerID string `json:"OwnerID,omitempty"`
// Ownership // Ownership
Ownership string `json:"Ownership,omitempty"` Ownership string `json:"Ownership,omitempty"`
// Parent Foreign Key
ParentFK string `json:"ParentFK,omitempty"`
// Parent Account // Parent Account
ParentID string `json:"ParentID,omitempty"` ParentID string `json:"ParentID,omitempty"`
// Phone // Phone
Phone string `json:"Phone,omitempty"` Phone string `json:"Phone,omitempty"`
// The ID of the Place situs record that applies to this Account // Publish this record?
PlaceID string `json:"PlaceID,omitempty"` Publish bool `json:"Publish,omitempty"`
// Tax Preparer Contact ID
PreparerID string `json:"PreparerID,omitempty"`
// Rating
Rating string `json:"Rating,omitempty"`
// Rating Engine identifier
RatingEngineID string `json:"RatingEngineID,omitempty"`
// External Reference ID
Ref string `json:"Ref,omitempty"`
// Rollup Revenue Base
RevenueBase float64 `json:"RevenueBase,omitempty"`
// Rollup Revenue Net
RevenueNet float64 `json:"RevenueNet,omitempty"`
// Rollup Revenue Not Taxable
RevenueNotTaxable float64 `json:"RevenueNotTaxable,omitempty"`
// SIC Code // SIC Code
SIC string `json:"SIC,omitempty"` SIC string `json:"SIC,omitempty"`
@ -226,32 +136,20 @@ type Account struct {
// SIC Description // SIC Description
SICDesc string `json:"SICDesc,omitempty"` SICDesc string `json:"SICDesc,omitempty"`
// A Salesforce-First company?
SalesforceFirst bool `json:"SalesforceFirst,omitempty"`
// shipping address // shipping address
ShippingAddress *Address `json:"ShippingAddress,omitempty"` ShippingAddress *Address `json:"ShippingAddress,omitempty"`
// Shipping Census Tract
ShippingCensusTract string `json:"ShippingCensusTract,omitempty"`
// Shipping Contact ID // Shipping Contact ID
ShippingContactID string `json:"ShippingContactID,omitempty"` ShippingContactID string `json:"ShippingContactID,omitempty"`
// Shipping County
ShippingCounty string `json:"ShippingCounty,omitempty"`
// Account Site // Account Site
Site string `json:"Site,omitempty"` Site string `json:"Site,omitempty"`
// Account Status // Company tagline
Status string `json:"Status,omitempty"` TagLine string `json:"TagLine,omitempty"`
// Tax Exemption
TaxExemption string `json:"TaxExemption,omitempty"`
// Rollup Tax On Tax
TaxOnTax float64 `json:"TaxOnTax,omitempty"`
// Telecom Customer?
TelecomCustomer bool `json:"TelecomCustomer,omitempty"`
// Tenant Identifier // Tenant Identifier
TenantID string `json:"TenantID,omitempty"` TenantID string `json:"TenantID,omitempty"`
@ -259,30 +157,15 @@ type Account struct {
// Ticker Symbol // Ticker Symbol
TickerSymbol string `json:"TickerSymbol,omitempty"` TickerSymbol string `json:"TickerSymbol,omitempty"`
// Tradestyle // Twitter URL
TradeStyle string `json:"TradeStyle,omitempty"` Twitter string `json:"Twitter,omitempty"`
// Type // Type
Type string `json:"Type,omitempty"` Type string `json:"Type,omitempty"`
// Unapplied Payments
UnappliedPayments float64 `json:"UnappliedPayments,omitempty"`
// Rollup Unit Base
UnitBase float64 `json:"UnitBase,omitempty"`
// Upsell Opportunity
UpsellOpportunity string `json:"UpsellOpportunity,omitempty"`
// WHMCS Client ID
WHMCSClientID int64 `json:"WHMCSClientID,omitempty"`
// Website // Website
Website string `json:"Website,omitempty"` Website string `json:"Website,omitempty"`
// Xero Contact ID
XeroContactID string `json:"XeroContactID,omitempty"`
// Year Started // Year Started
YearStarted string `json:"YearStarted,omitempty"` YearStarted string `json:"YearStarted,omitempty"`
} }
@ -295,14 +178,6 @@ func (m *Account) Validate(formats strfmt.Registry) error {
res = append(res, err) res = append(res, err)
} }
if err := m.validateBusinessAddress(formats); err != nil {
res = append(res, err)
}
if err := m.validateDefaultAddress(formats); err != nil {
res = append(res, err)
}
if err := m.validateShippingAddress(formats); err != nil { if err := m.validateShippingAddress(formats); err != nil {
res = append(res, err) res = append(res, err)
} }
@ -332,44 +207,6 @@ func (m *Account) validateBillingAddress(formats strfmt.Registry) error {
return nil return nil
} }
func (m *Account) validateBusinessAddress(formats strfmt.Registry) error {
if swag.IsZero(m.BusinessAddress) { // not required
return nil
}
if m.BusinessAddress != nil {
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
}
}
return nil
}
func (m *Account) validateDefaultAddress(formats strfmt.Registry) error {
if swag.IsZero(m.DefaultAddress) { // not required
return nil
}
if m.DefaultAddress != nil {
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
}
}
return nil
}
func (m *Account) validateShippingAddress(formats strfmt.Registry) error { func (m *Account) validateShippingAddress(formats strfmt.Registry) error {
if swag.IsZero(m.ShippingAddress) { // not required if swag.IsZero(m.ShippingAddress) { // not required
return nil return nil
@ -397,14 +234,6 @@ func (m *Account) ContextValidate(ctx context.Context, formats strfmt.Registry)
res = append(res, err) res = append(res, err)
} }
if err := m.contextValidateBusinessAddress(ctx, formats); err != nil {
res = append(res, err)
}
if err := m.contextValidateDefaultAddress(ctx, formats); err != nil {
res = append(res, err)
}
if err := m.contextValidateShippingAddress(ctx, formats); err != nil { if err := m.contextValidateShippingAddress(ctx, formats); err != nil {
res = append(res, err) res = append(res, err)
} }
@ -431,38 +260,6 @@ func (m *Account) contextValidateBillingAddress(ctx context.Context, formats str
return nil return nil
} }
func (m *Account) contextValidateBusinessAddress(ctx context.Context, formats strfmt.Registry) error {
if m.BusinessAddress != nil {
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
}
}
return nil
}
func (m *Account) contextValidateDefaultAddress(ctx context.Context, formats strfmt.Registry) error {
if m.DefaultAddress != nil {
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
}
}
return nil
}
func (m *Account) contextValidateShippingAddress(ctx context.Context, formats strfmt.Registry) error { func (m *Account) contextValidateShippingAddress(ctx context.Context, formats strfmt.Registry) error {
if m.ShippingAddress != nil { if m.ShippingAddress != nil {

View File

@ -1,263 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package 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"
)
// AccountBasic account basic
//
// swagger:model AccountBasic
type AccountBasic struct {
// Taxnexus Account Number of the OEM/Reseller
AccountNumber string `json:"AccountNumber,omitempty"`
// billing address
BillingAddress *Address `json:"BillingAddress,omitempty"`
// Contact ID
BillingContactID string `json:"BillingContactID,omitempty"`
// Taxnexus OEM/Reseller Record Id
CompanyID string `json:"CompanyID,omitempty"`
// The id of the Coordinate of the business establishment
CoordinateID string `json:"CoordinateID,omitempty"`
// Taxpayer Customer Id designated by OEM/Reseller
CustomerID string `json:"CustomerID,omitempty"`
// default address
DefaultAddress *Address `json:"DefaultAddress,omitempty"`
// Default Backend ID
DefaultBackendID string `json:"DefaultBackendID,omitempty"`
// Default Delivery Address Contact ID
DefaultDeliveryContactID string `json:"DefaultDeliveryContactID,omitempty"`
// Contact ID
DefaultEndUserID string `json:"DefaultEndUserID,omitempty"`
// Taxpayer Public Email Address
Email string `json:"Email,omitempty"`
// Taxpayer Fax Number
Fax string `json:"Fax,omitempty"`
// Taxpayer Account Record Id
ID string `json:"ID,omitempty"`
// Taxpayer Account Name (ignored for Tax Processing)
Name string `json:"Name,omitempty"`
// UUID Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"`
// Taxpayer Public Phone Number
Phone string `json:"Phone,omitempty"`
// Contact ID
PreparerID string `json:"PreparerID,omitempty"`
// Source System identifier for this record, if any
Ref string `json:"Ref,omitempty"`
// Shipping Address
ShippingAddress *Address `json:"ShippingAddress,omitempty"`
// Contact ID
ShippingContactID string `json:"ShippingContactID,omitempty"`
// Taxpayer Location Designation
Site string `json:"Site,omitempty"`
// Tenant Identifier
TenantID string `json:"TenantID,omitempty"`
// Account Type
Type string `json:"Type,omitempty"`
// Taxpayer Website
Website string `json:"Website,omitempty"`
}
// Validate validates this account basic
func (m *AccountBasic) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateBillingAddress(formats); err != nil {
res = append(res, err)
}
if err := m.validateDefaultAddress(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 *AccountBasic) 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 *AccountBasic) validateDefaultAddress(formats strfmt.Registry) error {
if swag.IsZero(m.DefaultAddress) { // not required
return nil
}
if m.DefaultAddress != nil {
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
}
}
return nil
}
func (m *AccountBasic) 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 account basic based on the context it is used
func (m *AccountBasic) 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.contextValidateDefaultAddress(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 *AccountBasic) 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 *AccountBasic) contextValidateDefaultAddress(ctx context.Context, formats strfmt.Registry) error {
if m.DefaultAddress != nil {
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
}
}
return nil
}
func (m *AccountBasic) 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 *AccountBasic) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *AccountBasic) UnmarshalBinary(b []byte) error {
var res AccountBasic
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@ -1,166 +0,0 @@
// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package 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"
)
// AccountBasicResponse account basic response
//
// swagger:model AccountBasicResponse
type AccountBasicResponse struct {
// data
Data []*AccountBasic `json:"Data"`
// meta
Meta *ResponseMeta `json:"Meta,omitempty"`
}
// Validate validates this account basic response
func (m *AccountBasicResponse) 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 *AccountBasicResponse) 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 *AccountBasicResponse) 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 account basic response based on the context it is used
func (m *AccountBasicResponse) 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 *AccountBasicResponse) 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 *AccountBasicResponse) 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 *AccountBasicResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *AccountBasicResponse) UnmarshalBinary(b []byte) error {
var res AccountBasicResponse
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}

View File

@ -4,8 +4,6 @@
.travis.yml .travis.yml
README.md README.md
docs/Account.md docs/Account.md
docs/AccountBasic.md
docs/AccountBasicResponse.md
docs/AccountRequest.md docs/AccountRequest.md
docs/AccountResponse.md docs/AccountResponse.md
docs/AccountsApi.md docs/AccountsApi.md
@ -47,8 +45,6 @@ src/api/CorsApi.js
src/api/LeadsApi.js src/api/LeadsApi.js
src/index.js src/index.js
src/model/Account.js src/model/Account.js
src/model/AccountBasic.js
src/model/AccountBasicResponse.js
src/model/AccountRequest.js src/model/AccountRequest.js
src/model/AccountResponse.js src/model/AccountResponse.js
src/model/Address.js src/model/Address.js
@ -79,8 +75,6 @@ test/api/ContractsApi.spec.js
test/api/CorsApi.spec.js test/api/CorsApi.spec.js
test/api/LeadsApi.spec.js test/api/LeadsApi.spec.js
test/model/Account.spec.js test/model/Account.spec.js
test/model/AccountBasic.spec.js
test/model/AccountBasicResponse.spec.js
test/model/AccountRequest.spec.js test/model/AccountRequest.spec.js
test/model/AccountResponse.spec.js test/model/AccountResponse.spec.js
test/model/Address.spec.js test/model/Address.spec.js

View File

@ -168,8 +168,6 @@ Class | Method | HTTP request | Description
## Documentation for Models ## Documentation for Models
- [Crm.Account](docs/Account.md) - [Crm.Account](docs/Account.md)
- [Crm.AccountBasic](docs/AccountBasic.md)
- [Crm.AccountBasicResponse](docs/AccountBasicResponse.md)
- [Crm.AccountRequest](docs/AccountRequest.md) - [Crm.AccountRequest](docs/AccountRequest.md)
- [Crm.AccountResponse](docs/AccountResponse.md) - [Crm.AccountResponse](docs/AccountResponse.md)
- [Crm.Address](docs/Address.md) - [Crm.Address](docs/Address.md)

View File

@ -4,93 +4,54 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**ID** | **String** | Taxnexus Account Id | [optional]
**accountNumber** | **String** | Account Number | [optional] **accountNumber** | **String** | Account Number | [optional]
**accountSource** | **String** | The marketing origin of this account | [optional] **accountSource** | **String** | The marketing origin of this account | [optional]
**active** | **Boolean** | Active | [optional]
**administrativeLevel** | **String** | For tax authorities, this account&#39;s administrative level, e.g. Local, County, State or Federal | [optional]
**amount** | **Number** | Rollup Tax Amount | [optional]
**amountInvoiced** | **Number** | Amount Invoiced | [optional]
**amountPaid** | **Number** | Amount Paid | [optional]
**annualRevenue** | **Number** | Annual Revenue Estimate | [optional] **annualRevenue** | **Number** | Annual Revenue Estimate | [optional]
**balance** | **Number** | Account Balance | [optional]
**billingAddress** | [**Address**](Address.md) | | [optional] **billingAddress** | [**Address**](Address.md) | | [optional]
**billingContactID** | **String** | Contact ID | [optional] **billingContactID** | **String** | Contact ID | [optional]
**billingPreference** | **String** | Billing Preference | [optional] **closeDate** | **String** | Close Date | [optional]
**businessAddress** | [**Address**](Address.md) | | [optional] **cloudType** | **String** | The type of cloud company | [optional]
**cannabisCustomer** | **Boolean** | Is this a cannabis customer? | [optional] **cloudYear** | **String** | The year company started cloud revenue | [optional]
**channelProgramLevelName** | **String** | Channel Program Level Name | [optional]
**channelProgramName** | **String** | Channel Program Name | [optional]
**clientEndDate** | **String** | Client End Date | [optional]
**clientStartDate** | **String** | Client Start Date | [optional]
**companyID** | **String** | The Company ID of this Account | [optional]
**coordinateID** | **String** | The Id of the geo coordinates of this account | [optional]
**createdByID** | **String** | Created By User ID | [optional] **createdByID** | **String** | Created By User ID | [optional]
**createdDate** | **String** | Created Date | [optional] **createdDate** | **String** | Created Date | [optional]
**customerID** | **String** | Customer ID from source system | [optional] **crunchbaseURL** | **String** | Crunchbase URL | [optional]
**customerPriority** | **String** | Customer Priority | [optional] **description** | **String** | Description of the account | [optional]
**DBA** | **String** | This Account&#39;s &#39;Doing Business As&#39; name | [optional] **earningsCall** | **String** | Earnings Call Date | [optional]
**dUNSNumber** | **String** | D-U-N-S Number | [optional]
**dandBCompanyID** | **String** | D-n-B Company | [optional]
**defaultAddress** | [**Address**](Address.md) | | [optional]
**defaultBackendID** | **String** | Default Backend ID | [optional]
**defaultDeliveryContactID** | **String** | Default Delivery Address Contact ID | [optional]
**defaultEndUserID** | **String** | Default End User Contact ID | [optional]
**description** | **String** | Description | [optional]
**EIN** | **String** | EIN | [optional]
**email** | **String** | Main Account Email | [optional] **email** | **String** | Main Account Email | [optional]
**enrollmentStatus** | **String** | Enrollment Status | [optional] **equityFunding** | **Number** | The amount of equity EquityFunding | [optional]
**fax** | **String** | Fax | [optional] **facebook** | **String** | Company Facebook URL | [optional]
**ID** | **String** | Taxnexus Account Id | [optional] **linkedIn** | **String** | Company LinkedIn URL | [optional]
**iSPCustomer** | **Boolean** | ISP Customer? | [optional] **location** | **String** | Headquarters Location Description | [optional]
**fax** | **String** | Fax number | [optional]
**foundedDate** | **String** | Date company founded | [optional]
**industry** | **String** | Industry | [optional] **industry** | **String** | Industry | [optional]
**isCustomerPortal** | **Boolean** | Customer Portal Account | [optional] **industries** | **String** | Industries | [optional]
**isPartner** | **Boolean** | Partner Account | [optional] **iPODate** | **String** | IPO Date | [optional]
**jigSaw** | **String** | Data.com Key | [optional] **logo** | **String** | Company Logo URL | [optional]
**lastModifiedByID** | **String** | Last Modified By User ID | [optional] **lastModifiedByID** | **String** | Last Modified By User ID | [optional]
**lastModifiedDate** | **String** | Last Modified Date | [optional] **lastModifiedDate** | **String** | Last Modified Date | [optional]
**mSPCustomer** | **Boolean** | MSP Customer? | [optional] **marketCapitalization** | **Number** | Market Capitalization | [optional]
**nAICSCode** | **String** | NAICS Code | [optional]
**nAICSDesc** | **String** | NAICS Description | [optional]
**name** | **String** | Account Name | [optional] **name** | **String** | Account Name | [optional]
**numberInvestments** | **Number** | Number of Investments | [optional]
**numberOfEmployees** | **Number** | Employee Count Estimate | [optional] **numberOfEmployees** | **Number** | Employee Count Estimate | [optional]
**numberOfLocations** | **Number** | Number of Locations Estimate | [optional]
**openCharges** | **Number** | Open Charges | [optional]
**orderContactID** | **String** | Vendor Order Contact ID | [optional]
**orderEmail** | **String** | Order Email | [optional]
**ownerID** | **String** | Account Owner User ID | [optional] **ownerID** | **String** | Account Owner User ID | [optional]
**ownership** | **String** | Ownership | [optional] **ownership** | **String** | Ownership | [optional]
**parentFK** | **String** | Parent Foreign Key | [optional] **publish** | **Boolean** | Publish this record? | [optional]
**salesforceFirst** | **Boolean** | A Salesforce-First company? | [optional]
**parentID** | **String** | Parent Account | [optional] **parentID** | **String** | Parent Account | [optional]
**phone** | **String** | Phone | [optional] **phone** | **String** | Phone | [optional]
**placeID** | **String** | The ID of the Place situs record that applies to this Account | [optional]
**preparerID** | **String** | Tax Preparer Contact ID | [optional]
**rating** | **String** | Rating | [optional]
**ratingEngineID** | **String** | Rating Engine identifier | [optional]
**ref** | **String** | External Reference ID | [optional]
**revenueBase** | **Number** | Rollup Revenue Base | [optional]
**revenueNet** | **Number** | Rollup Revenue Net | [optional]
**revenueNotTaxable** | **Number** | Rollup Revenue Not Taxable | [optional]
**SIC** | **String** | SIC Code | [optional] **SIC** | **String** | SIC Code | [optional]
**sICDesc** | **String** | SIC Description | [optional] **sICDesc** | **String** | SIC Description | [optional]
**shippingAddress** | [**Address**](Address.md) | | [optional] **shippingAddress** | [**Address**](Address.md) | | [optional]
**shippingCensusTract** | **String** | Shipping Census Tract | [optional]
**shippingContactID** | **String** | Shipping Contact ID | [optional] **shippingContactID** | **String** | Shipping Contact ID | [optional]
**shippingCounty** | **String** | Shipping County | [optional]
**site** | **String** | Account Site | [optional] **site** | **String** | Account Site | [optional]
**status** | **String** | Account Status | [optional] **tagLine** | **String** | Company tagline | [optional]
**taxExemption** | **String** | Tax Exemption | [optional]
**taxOnTax** | **Number** | Rollup Tax On Tax | [optional]
**telecomCustomer** | **Boolean** | Telecom Customer? | [optional]
**tenantID** | **String** | Tenant Identifier | [optional] **tenantID** | **String** | Tenant Identifier | [optional]
**tickerSymbol** | **String** | Ticker Symbol | [optional] **tickerSymbol** | **String** | Ticker Symbol | [optional]
**tradeStyle** | **String** | Tradestyle | [optional] **twitter** | **String** | Twitter URL | [optional]
**type** | **String** | Type | [optional] **type** | **String** | Type | [optional]
**unappliedPayments** | **Number** | Unapplied Payments | [optional]
**unitBase** | **Number** | Rollup Unit Base | [optional]
**upsellOpportunity** | **String** | Upsell Opportunity | [optional]
**wHMCSClientID** | **Number** | WHMCS Client ID | [optional]
**website** | **String** | Website | [optional] **website** | **String** | Website | [optional]
**xeroContactID** | **String** | Xero Contact ID | [optional]
**yearStarted** | **String** | Year Started | [optional] **yearStarted** | **String** | Year Started | [optional]

View File

@ -1,32 +0,0 @@
# Crm.AccountBasic
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**accountNumber** | **String** | Taxnexus Account Number of the OEM/Reseller | [optional]
**billingAddress** | [**Address**](Address.md) | | [optional]
**billingContactID** | **String** | Contact ID | [optional]
**companyID** | **String** | Taxnexus OEM/Reseller Record Id | [optional]
**coordinateID** | **String** | The id of the Coordinate of the business establishment | [optional]
**customerID** | **String** | Taxpayer Customer Id designated by OEM/Reseller | [optional]
**defaultAddress** | [**Address**](Address.md) | | [optional]
**defaultBackendID** | **String** | Default Backend ID | [optional]
**defaultDeliveryContactID** | **String** | Default Delivery Address Contact ID | [optional]
**defaultEndUserID** | **String** | Contact ID | [optional]
**email** | **String** | Taxpayer Public Email Address | [optional]
**fax** | **String** | Taxpayer Fax Number | [optional]
**ID** | **String** | Taxpayer Account Record Id | [optional]
**name** | **String** | Taxpayer Account Name (ignored for Tax Processing) | [optional]
**parentFK** | **String** | UUID Reference the master record that owns this item | [optional]
**phone** | **String** | Taxpayer Public Phone Number | [optional]
**preparerID** | **String** | Contact ID | [optional]
**ref** | **String** | Source System identifier for this record, if any | [optional]
**shippingAddress** | [**Address**](Address.md) | | [optional]
**shippingContactID** | **String** | Contact ID | [optional]
**site** | **String** | Taxpayer Location Designation | [optional]
**tenantID** | **String** | Tenant Identifier | [optional]
**type** | **String** | Account Type | [optional]
**website** | **String** | Taxpayer Website | [optional]

View File

@ -1,10 +0,0 @@
# Crm.AccountBasicResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**[AccountBasic]**](AccountBasic.md) | | [optional]
**meta** | [**ResponseMeta**](ResponseMeta.md) | | [optional]

View File

@ -14,8 +14,6 @@
import ApiClient from './ApiClient'; import ApiClient from './ApiClient';
import Account from './model/Account'; import Account from './model/Account';
import AccountBasic from './model/AccountBasic';
import AccountBasicResponse from './model/AccountBasicResponse';
import AccountRequest from './model/AccountRequest'; import AccountRequest from './model/AccountRequest';
import AccountResponse from './model/AccountResponse'; import AccountResponse from './model/AccountResponse';
import Address from './model/Address'; import Address from './model/Address';
@ -91,18 +89,6 @@ export {
*/ */
Account, Account,
/**
* The AccountBasic model constructor.
* @property {module:model/AccountBasic}
*/
AccountBasic,
/**
* The AccountBasicResponse model constructor.
* @property {module:model/AccountBasicResponse}
*/
AccountBasicResponse,
/** /**
* The AccountRequest model constructor. * The AccountRequest model constructor.
* @property {module:model/AccountRequest} * @property {module:model/AccountRequest}

View File

@ -48,65 +48,32 @@ class Account {
if (data) { if (data) {
obj = obj || new Account(); obj = obj || new Account();
if (data.hasOwnProperty('ID')) {
obj['ID'] = ApiClient.convertToType(data['ID'], 'String');
}
if (data.hasOwnProperty('AccountNumber')) { if (data.hasOwnProperty('AccountNumber')) {
obj['AccountNumber'] = ApiClient.convertToType(data['AccountNumber'], 'String'); obj['AccountNumber'] = ApiClient.convertToType(data['AccountNumber'], 'String');
} }
if (data.hasOwnProperty('AccountSource')) { if (data.hasOwnProperty('AccountSource')) {
obj['AccountSource'] = ApiClient.convertToType(data['AccountSource'], 'String'); obj['AccountSource'] = ApiClient.convertToType(data['AccountSource'], 'String');
} }
if (data.hasOwnProperty('Active')) {
obj['Active'] = ApiClient.convertToType(data['Active'], 'Boolean');
}
if (data.hasOwnProperty('AdministrativeLevel')) {
obj['AdministrativeLevel'] = ApiClient.convertToType(data['AdministrativeLevel'], 'String');
}
if (data.hasOwnProperty('Amount')) {
obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number');
}
if (data.hasOwnProperty('AmountInvoiced')) {
obj['AmountInvoiced'] = ApiClient.convertToType(data['AmountInvoiced'], 'Number');
}
if (data.hasOwnProperty('AmountPaid')) {
obj['AmountPaid'] = ApiClient.convertToType(data['AmountPaid'], 'Number');
}
if (data.hasOwnProperty('AnnualRevenue')) { if (data.hasOwnProperty('AnnualRevenue')) {
obj['AnnualRevenue'] = ApiClient.convertToType(data['AnnualRevenue'], 'Number'); obj['AnnualRevenue'] = ApiClient.convertToType(data['AnnualRevenue'], 'Number');
} }
if (data.hasOwnProperty('Balance')) {
obj['Balance'] = ApiClient.convertToType(data['Balance'], 'Number');
}
if (data.hasOwnProperty('BillingAddress')) { if (data.hasOwnProperty('BillingAddress')) {
obj['BillingAddress'] = Address.constructFromObject(data['BillingAddress']); obj['BillingAddress'] = Address.constructFromObject(data['BillingAddress']);
} }
if (data.hasOwnProperty('BillingContactID')) { if (data.hasOwnProperty('BillingContactID')) {
obj['BillingContactID'] = ApiClient.convertToType(data['BillingContactID'], 'String'); obj['BillingContactID'] = ApiClient.convertToType(data['BillingContactID'], 'String');
} }
if (data.hasOwnProperty('BillingPreference')) { if (data.hasOwnProperty('CloseDate')) {
obj['BillingPreference'] = ApiClient.convertToType(data['BillingPreference'], 'String'); obj['CloseDate'] = ApiClient.convertToType(data['CloseDate'], 'String');
} }
if (data.hasOwnProperty('BusinessAddress')) { if (data.hasOwnProperty('CloudType')) {
obj['BusinessAddress'] = Address.constructFromObject(data['BusinessAddress']); obj['CloudType'] = ApiClient.convertToType(data['CloudType'], 'String');
} }
if (data.hasOwnProperty('CannabisCustomer')) { if (data.hasOwnProperty('CloudYear')) {
obj['CannabisCustomer'] = ApiClient.convertToType(data['CannabisCustomer'], 'Boolean'); obj['CloudYear'] = ApiClient.convertToType(data['CloudYear'], 'String');
}
if (data.hasOwnProperty('ChannelProgramLevelName')) {
obj['ChannelProgramLevelName'] = ApiClient.convertToType(data['ChannelProgramLevelName'], 'String');
}
if (data.hasOwnProperty('ChannelProgramName')) {
obj['ChannelProgramName'] = ApiClient.convertToType(data['ChannelProgramName'], 'String');
}
if (data.hasOwnProperty('ClientEndDate')) {
obj['ClientEndDate'] = ApiClient.convertToType(data['ClientEndDate'], 'String');
}
if (data.hasOwnProperty('ClientStartDate')) {
obj['ClientStartDate'] = ApiClient.convertToType(data['ClientStartDate'], 'String');
}
if (data.hasOwnProperty('CompanyID')) {
obj['CompanyID'] = ApiClient.convertToType(data['CompanyID'], 'String');
}
if (data.hasOwnProperty('CoordinateID')) {
obj['CoordinateID'] = ApiClient.convertToType(data['CoordinateID'], 'String');
} }
if (data.hasOwnProperty('CreatedByID')) { if (data.hasOwnProperty('CreatedByID')) {
obj['CreatedByID'] = ApiClient.convertToType(data['CreatedByID'], 'String'); obj['CreatedByID'] = ApiClient.convertToType(data['CreatedByID'], 'String');
@ -114,65 +81,47 @@ class Account {
if (data.hasOwnProperty('CreatedDate')) { if (data.hasOwnProperty('CreatedDate')) {
obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'String'); obj['CreatedDate'] = ApiClient.convertToType(data['CreatedDate'], 'String');
} }
if (data.hasOwnProperty('CustomerID')) { if (data.hasOwnProperty('CrunchbaseURL')) {
obj['CustomerID'] = ApiClient.convertToType(data['CustomerID'], 'String'); obj['CrunchbaseURL'] = ApiClient.convertToType(data['CrunchbaseURL'], 'String');
}
if (data.hasOwnProperty('CustomerPriority')) {
obj['CustomerPriority'] = ApiClient.convertToType(data['CustomerPriority'], 'String');
}
if (data.hasOwnProperty('DBA')) {
obj['DBA'] = ApiClient.convertToType(data['DBA'], 'String');
}
if (data.hasOwnProperty('DUNSNumber')) {
obj['DUNSNumber'] = ApiClient.convertToType(data['DUNSNumber'], 'String');
}
if (data.hasOwnProperty('DandBCompanyID')) {
obj['DandBCompanyID'] = ApiClient.convertToType(data['DandBCompanyID'], 'String');
}
if (data.hasOwnProperty('DefaultAddress')) {
obj['DefaultAddress'] = Address.constructFromObject(data['DefaultAddress']);
}
if (data.hasOwnProperty('DefaultBackendID')) {
obj['DefaultBackendID'] = ApiClient.convertToType(data['DefaultBackendID'], 'String');
}
if (data.hasOwnProperty('DefaultDeliveryContactID')) {
obj['DefaultDeliveryContactID'] = ApiClient.convertToType(data['DefaultDeliveryContactID'], 'String');
}
if (data.hasOwnProperty('DefaultEndUserID')) {
obj['DefaultEndUserID'] = ApiClient.convertToType(data['DefaultEndUserID'], 'String');
} }
if (data.hasOwnProperty('Description')) { if (data.hasOwnProperty('Description')) {
obj['Description'] = ApiClient.convertToType(data['Description'], 'String'); obj['Description'] = ApiClient.convertToType(data['Description'], 'String');
} }
if (data.hasOwnProperty('EIN')) { if (data.hasOwnProperty('EarningsCall')) {
obj['EIN'] = ApiClient.convertToType(data['EIN'], 'String'); obj['EarningsCall'] = ApiClient.convertToType(data['EarningsCall'], 'String');
} }
if (data.hasOwnProperty('Email')) { if (data.hasOwnProperty('Email')) {
obj['Email'] = ApiClient.convertToType(data['Email'], 'String'); obj['Email'] = ApiClient.convertToType(data['Email'], 'String');
} }
if (data.hasOwnProperty('EnrollmentStatus')) { if (data.hasOwnProperty('EquityFunding')) {
obj['EnrollmentStatus'] = ApiClient.convertToType(data['EnrollmentStatus'], 'String'); obj['EquityFunding'] = ApiClient.convertToType(data['EquityFunding'], 'Number');
}
if (data.hasOwnProperty('Facebook')) {
obj['Facebook'] = ApiClient.convertToType(data['Facebook'], 'String');
}
if (data.hasOwnProperty('LinkedIn')) {
obj['LinkedIn'] = ApiClient.convertToType(data['LinkedIn'], 'String');
}
if (data.hasOwnProperty('Location')) {
obj['Location'] = ApiClient.convertToType(data['Location'], 'String');
} }
if (data.hasOwnProperty('Fax')) { if (data.hasOwnProperty('Fax')) {
obj['Fax'] = ApiClient.convertToType(data['Fax'], 'String'); obj['Fax'] = ApiClient.convertToType(data['Fax'], 'String');
} }
if (data.hasOwnProperty('ID')) { if (data.hasOwnProperty('FoundedDate')) {
obj['ID'] = ApiClient.convertToType(data['ID'], 'String'); obj['FoundedDate'] = ApiClient.convertToType(data['FoundedDate'], 'String');
}
if (data.hasOwnProperty('ISPCustomer')) {
obj['ISPCustomer'] = ApiClient.convertToType(data['ISPCustomer'], 'Boolean');
} }
if (data.hasOwnProperty('Industry')) { if (data.hasOwnProperty('Industry')) {
obj['Industry'] = ApiClient.convertToType(data['Industry'], 'String'); obj['Industry'] = ApiClient.convertToType(data['Industry'], 'String');
} }
if (data.hasOwnProperty('IsCustomerPortal')) { if (data.hasOwnProperty('Industries')) {
obj['IsCustomerPortal'] = ApiClient.convertToType(data['IsCustomerPortal'], 'Boolean'); obj['Industries'] = ApiClient.convertToType(data['Industries'], 'String');
} }
if (data.hasOwnProperty('IsPartner')) { if (data.hasOwnProperty('IPODate')) {
obj['IsPartner'] = ApiClient.convertToType(data['IsPartner'], 'Boolean'); obj['IPODate'] = ApiClient.convertToType(data['IPODate'], 'String');
} }
if (data.hasOwnProperty('JigSaw')) { if (data.hasOwnProperty('Logo')) {
obj['JigSaw'] = ApiClient.convertToType(data['JigSaw'], 'String'); obj['Logo'] = ApiClient.convertToType(data['Logo'], 'String');
} }
if (data.hasOwnProperty('LastModifiedByID')) { if (data.hasOwnProperty('LastModifiedByID')) {
obj['LastModifiedByID'] = ApiClient.convertToType(data['LastModifiedByID'], 'String'); obj['LastModifiedByID'] = ApiClient.convertToType(data['LastModifiedByID'], 'String');
@ -180,41 +129,29 @@ class Account {
if (data.hasOwnProperty('LastModifiedDate')) { if (data.hasOwnProperty('LastModifiedDate')) {
obj['LastModifiedDate'] = ApiClient.convertToType(data['LastModifiedDate'], 'String'); obj['LastModifiedDate'] = ApiClient.convertToType(data['LastModifiedDate'], 'String');
} }
if (data.hasOwnProperty('MSPCustomer')) { if (data.hasOwnProperty('MarketCapitalization')) {
obj['MSPCustomer'] = ApiClient.convertToType(data['MSPCustomer'], 'Boolean'); obj['MarketCapitalization'] = ApiClient.convertToType(data['MarketCapitalization'], 'Number');
}
if (data.hasOwnProperty('NAICSCode')) {
obj['NAICSCode'] = ApiClient.convertToType(data['NAICSCode'], 'String');
}
if (data.hasOwnProperty('NAICSDesc')) {
obj['NAICSDesc'] = ApiClient.convertToType(data['NAICSDesc'], 'String');
} }
if (data.hasOwnProperty('Name')) { if (data.hasOwnProperty('Name')) {
obj['Name'] = ApiClient.convertToType(data['Name'], 'String'); obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
} }
if (data.hasOwnProperty('NumberInvestments')) {
obj['NumberInvestments'] = ApiClient.convertToType(data['NumberInvestments'], 'Number');
}
if (data.hasOwnProperty('NumberOfEmployees')) { if (data.hasOwnProperty('NumberOfEmployees')) {
obj['NumberOfEmployees'] = ApiClient.convertToType(data['NumberOfEmployees'], 'Number'); obj['NumberOfEmployees'] = ApiClient.convertToType(data['NumberOfEmployees'], 'Number');
} }
if (data.hasOwnProperty('NumberOfLocations')) {
obj['NumberOfLocations'] = ApiClient.convertToType(data['NumberOfLocations'], 'Number');
}
if (data.hasOwnProperty('OpenCharges')) {
obj['OpenCharges'] = ApiClient.convertToType(data['OpenCharges'], 'Number');
}
if (data.hasOwnProperty('OrderContactID')) {
obj['OrderContactID'] = ApiClient.convertToType(data['OrderContactID'], 'String');
}
if (data.hasOwnProperty('OrderEmail')) {
obj['OrderEmail'] = ApiClient.convertToType(data['OrderEmail'], 'String');
}
if (data.hasOwnProperty('OwnerID')) { if (data.hasOwnProperty('OwnerID')) {
obj['OwnerID'] = ApiClient.convertToType(data['OwnerID'], 'String'); obj['OwnerID'] = ApiClient.convertToType(data['OwnerID'], 'String');
} }
if (data.hasOwnProperty('Ownership')) { if (data.hasOwnProperty('Ownership')) {
obj['Ownership'] = ApiClient.convertToType(data['Ownership'], 'String'); obj['Ownership'] = ApiClient.convertToType(data['Ownership'], 'String');
} }
if (data.hasOwnProperty('ParentFK')) { if (data.hasOwnProperty('Publish')) {
obj['ParentFK'] = ApiClient.convertToType(data['ParentFK'], 'String'); obj['Publish'] = ApiClient.convertToType(data['Publish'], 'Boolean');
}
if (data.hasOwnProperty('SalesforceFirst')) {
obj['SalesforceFirst'] = ApiClient.convertToType(data['SalesforceFirst'], 'Boolean');
} }
if (data.hasOwnProperty('ParentID')) { if (data.hasOwnProperty('ParentID')) {
obj['ParentID'] = ApiClient.convertToType(data['ParentID'], 'String'); obj['ParentID'] = ApiClient.convertToType(data['ParentID'], 'String');
@ -222,30 +159,6 @@ class Account {
if (data.hasOwnProperty('Phone')) { if (data.hasOwnProperty('Phone')) {
obj['Phone'] = ApiClient.convertToType(data['Phone'], 'String'); obj['Phone'] = ApiClient.convertToType(data['Phone'], 'String');
} }
if (data.hasOwnProperty('PlaceID')) {
obj['PlaceID'] = ApiClient.convertToType(data['PlaceID'], 'String');
}
if (data.hasOwnProperty('PreparerID')) {
obj['PreparerID'] = ApiClient.convertToType(data['PreparerID'], 'String');
}
if (data.hasOwnProperty('Rating')) {
obj['Rating'] = ApiClient.convertToType(data['Rating'], 'String');
}
if (data.hasOwnProperty('RatingEngineID')) {
obj['RatingEngineID'] = ApiClient.convertToType(data['RatingEngineID'], 'String');
}
if (data.hasOwnProperty('Ref')) {
obj['Ref'] = ApiClient.convertToType(data['Ref'], 'String');
}
if (data.hasOwnProperty('RevenueBase')) {
obj['RevenueBase'] = ApiClient.convertToType(data['RevenueBase'], 'Number');
}
if (data.hasOwnProperty('RevenueNet')) {
obj['RevenueNet'] = ApiClient.convertToType(data['RevenueNet'], 'Number');
}
if (data.hasOwnProperty('RevenueNotTaxable')) {
obj['RevenueNotTaxable'] = ApiClient.convertToType(data['RevenueNotTaxable'], 'Number');
}
if (data.hasOwnProperty('SIC')) { if (data.hasOwnProperty('SIC')) {
obj['SIC'] = ApiClient.convertToType(data['SIC'], 'String'); obj['SIC'] = ApiClient.convertToType(data['SIC'], 'String');
} }
@ -255,29 +168,14 @@ class Account {
if (data.hasOwnProperty('ShippingAddress')) { if (data.hasOwnProperty('ShippingAddress')) {
obj['ShippingAddress'] = Address.constructFromObject(data['ShippingAddress']); obj['ShippingAddress'] = Address.constructFromObject(data['ShippingAddress']);
} }
if (data.hasOwnProperty('ShippingCensusTract')) {
obj['ShippingCensusTract'] = ApiClient.convertToType(data['ShippingCensusTract'], 'String');
}
if (data.hasOwnProperty('ShippingContactID')) { if (data.hasOwnProperty('ShippingContactID')) {
obj['ShippingContactID'] = ApiClient.convertToType(data['ShippingContactID'], 'String'); obj['ShippingContactID'] = ApiClient.convertToType(data['ShippingContactID'], 'String');
} }
if (data.hasOwnProperty('ShippingCounty')) {
obj['ShippingCounty'] = ApiClient.convertToType(data['ShippingCounty'], 'String');
}
if (data.hasOwnProperty('Site')) { if (data.hasOwnProperty('Site')) {
obj['Site'] = ApiClient.convertToType(data['Site'], 'String'); obj['Site'] = ApiClient.convertToType(data['Site'], 'String');
} }
if (data.hasOwnProperty('Status')) { if (data.hasOwnProperty('TagLine')) {
obj['Status'] = ApiClient.convertToType(data['Status'], 'String'); obj['TagLine'] = ApiClient.convertToType(data['TagLine'], 'String');
}
if (data.hasOwnProperty('TaxExemption')) {
obj['TaxExemption'] = ApiClient.convertToType(data['TaxExemption'], 'String');
}
if (data.hasOwnProperty('TaxOnTax')) {
obj['TaxOnTax'] = ApiClient.convertToType(data['TaxOnTax'], 'Number');
}
if (data.hasOwnProperty('TelecomCustomer')) {
obj['TelecomCustomer'] = ApiClient.convertToType(data['TelecomCustomer'], 'Boolean');
} }
if (data.hasOwnProperty('TenantID')) { if (data.hasOwnProperty('TenantID')) {
obj['TenantID'] = ApiClient.convertToType(data['TenantID'], 'String'); obj['TenantID'] = ApiClient.convertToType(data['TenantID'], 'String');
@ -285,30 +183,15 @@ class Account {
if (data.hasOwnProperty('TickerSymbol')) { if (data.hasOwnProperty('TickerSymbol')) {
obj['TickerSymbol'] = ApiClient.convertToType(data['TickerSymbol'], 'String'); obj['TickerSymbol'] = ApiClient.convertToType(data['TickerSymbol'], 'String');
} }
if (data.hasOwnProperty('TradeStyle')) { if (data.hasOwnProperty('Twitter')) {
obj['TradeStyle'] = ApiClient.convertToType(data['TradeStyle'], 'String'); obj['Twitter'] = ApiClient.convertToType(data['Twitter'], 'String');
} }
if (data.hasOwnProperty('Type')) { if (data.hasOwnProperty('Type')) {
obj['Type'] = ApiClient.convertToType(data['Type'], 'String'); obj['Type'] = ApiClient.convertToType(data['Type'], 'String');
} }
if (data.hasOwnProperty('UnappliedPayments')) {
obj['UnappliedPayments'] = ApiClient.convertToType(data['UnappliedPayments'], 'Number');
}
if (data.hasOwnProperty('UnitBase')) {
obj['UnitBase'] = ApiClient.convertToType(data['UnitBase'], 'Number');
}
if (data.hasOwnProperty('UpsellOpportunity')) {
obj['UpsellOpportunity'] = ApiClient.convertToType(data['UpsellOpportunity'], 'String');
}
if (data.hasOwnProperty('WHMCSClientID')) {
obj['WHMCSClientID'] = ApiClient.convertToType(data['WHMCSClientID'], 'Number');
}
if (data.hasOwnProperty('Website')) { if (data.hasOwnProperty('Website')) {
obj['Website'] = ApiClient.convertToType(data['Website'], 'String'); obj['Website'] = ApiClient.convertToType(data['Website'], 'String');
} }
if (data.hasOwnProperty('XeroContactID')) {
obj['XeroContactID'] = ApiClient.convertToType(data['XeroContactID'], 'String');
}
if (data.hasOwnProperty('YearStarted')) { if (data.hasOwnProperty('YearStarted')) {
obj['YearStarted'] = ApiClient.convertToType(data['YearStarted'], 'String'); obj['YearStarted'] = ApiClient.convertToType(data['YearStarted'], 'String');
} }
@ -319,6 +202,12 @@ class Account {
} }
/**
* Taxnexus Account Id
* @member {String} ID
*/
Account.prototype['ID'] = undefined;
/** /**
* Account Number * Account Number
* @member {String} AccountNumber * @member {String} AccountNumber
@ -331,48 +220,12 @@ Account.prototype['AccountNumber'] = undefined;
*/ */
Account.prototype['AccountSource'] = undefined; Account.prototype['AccountSource'] = undefined;
/**
* Active
* @member {Boolean} Active
*/
Account.prototype['Active'] = undefined;
/**
* For tax authorities, this account's administrative level, e.g. Local, County, State or Federal
* @member {String} AdministrativeLevel
*/
Account.prototype['AdministrativeLevel'] = undefined;
/**
* Rollup Tax Amount
* @member {Number} Amount
*/
Account.prototype['Amount'] = undefined;
/**
* Amount Invoiced
* @member {Number} AmountInvoiced
*/
Account.prototype['AmountInvoiced'] = undefined;
/**
* Amount Paid
* @member {Number} AmountPaid
*/
Account.prototype['AmountPaid'] = undefined;
/** /**
* Annual Revenue Estimate * Annual Revenue Estimate
* @member {Number} AnnualRevenue * @member {Number} AnnualRevenue
*/ */
Account.prototype['AnnualRevenue'] = undefined; Account.prototype['AnnualRevenue'] = undefined;
/**
* Account Balance
* @member {Number} Balance
*/
Account.prototype['Balance'] = undefined;
/** /**
* @member {module:model/Address} BillingAddress * @member {module:model/Address} BillingAddress
*/ */
@ -385,57 +238,22 @@ Account.prototype['BillingAddress'] = undefined;
Account.prototype['BillingContactID'] = undefined; Account.prototype['BillingContactID'] = undefined;
/** /**
* Billing Preference * Close Date
* @member {String} BillingPreference * @member {String} CloseDate
*/ */
Account.prototype['BillingPreference'] = undefined; Account.prototype['CloseDate'] = undefined;
/** /**
* @member {module:model/Address} BusinessAddress * The type of cloud company
* @member {String} CloudType
*/ */
Account.prototype['BusinessAddress'] = undefined; Account.prototype['CloudType'] = undefined;
/** /**
* Is this a cannabis customer? * The year company started cloud revenue
* @member {Boolean} CannabisCustomer * @member {String} CloudYear
*/ */
Account.prototype['CannabisCustomer'] = undefined; Account.prototype['CloudYear'] = undefined;
/**
* Channel Program Level Name
* @member {String} ChannelProgramLevelName
*/
Account.prototype['ChannelProgramLevelName'] = undefined;
/**
* Channel Program Name
* @member {String} ChannelProgramName
*/
Account.prototype['ChannelProgramName'] = undefined;
/**
* Client End Date
* @member {String} ClientEndDate
*/
Account.prototype['ClientEndDate'] = undefined;
/**
* Client Start Date
* @member {String} ClientStartDate
*/
Account.prototype['ClientStartDate'] = undefined;
/**
* The Company ID of this Account
* @member {String} CompanyID
*/
Account.prototype['CompanyID'] = undefined;
/**
* The Id of the geo coordinates of this account
* @member {String} CoordinateID
*/
Account.prototype['CoordinateID'] = undefined;
/** /**
* Created By User ID * Created By User ID
@ -450,69 +268,22 @@ Account.prototype['CreatedByID'] = undefined;
Account.prototype['CreatedDate'] = undefined; Account.prototype['CreatedDate'] = undefined;
/** /**
* Customer ID from source system * Crunchbase URL
* @member {String} CustomerID * @member {String} CrunchbaseURL
*/ */
Account.prototype['CustomerID'] = undefined; Account.prototype['CrunchbaseURL'] = undefined;
/** /**
* Customer Priority * Description of the account
* @member {String} CustomerPriority
*/
Account.prototype['CustomerPriority'] = undefined;
/**
* This Account's 'Doing Business As' name
* @member {String} DBA
*/
Account.prototype['DBA'] = undefined;
/**
* D-U-N-S Number
* @member {String} DUNSNumber
*/
Account.prototype['DUNSNumber'] = undefined;
/**
* D-n-B Company
* @member {String} DandBCompanyID
*/
Account.prototype['DandBCompanyID'] = undefined;
/**
* @member {module:model/Address} DefaultAddress
*/
Account.prototype['DefaultAddress'] = undefined;
/**
* Default Backend ID
* @member {String} DefaultBackendID
*/
Account.prototype['DefaultBackendID'] = undefined;
/**
* Default Delivery Address Contact ID
* @member {String} DefaultDeliveryContactID
*/
Account.prototype['DefaultDeliveryContactID'] = undefined;
/**
* Default End User Contact ID
* @member {String} DefaultEndUserID
*/
Account.prototype['DefaultEndUserID'] = undefined;
/**
* Description
* @member {String} Description * @member {String} Description
*/ */
Account.prototype['Description'] = undefined; Account.prototype['Description'] = undefined;
/** /**
* EIN * Earnings Call Date
* @member {String} EIN * @member {String} EarningsCall
*/ */
Account.prototype['EIN'] = undefined; Account.prototype['EarningsCall'] = undefined;
/** /**
* Main Account Email * Main Account Email
@ -521,28 +292,40 @@ Account.prototype['EIN'] = undefined;
Account.prototype['Email'] = undefined; Account.prototype['Email'] = undefined;
/** /**
* Enrollment Status * The amount of equity EquityFunding
* @member {String} EnrollmentStatus * @member {Number} EquityFunding
*/ */
Account.prototype['EnrollmentStatus'] = undefined; Account.prototype['EquityFunding'] = undefined;
/** /**
* Fax * Company Facebook URL
* @member {String} Facebook
*/
Account.prototype['Facebook'] = undefined;
/**
* Company LinkedIn URL
* @member {String} LinkedIn
*/
Account.prototype['LinkedIn'] = undefined;
/**
* Headquarters Location Description
* @member {String} Location
*/
Account.prototype['Location'] = undefined;
/**
* Fax number
* @member {String} Fax * @member {String} Fax
*/ */
Account.prototype['Fax'] = undefined; Account.prototype['Fax'] = undefined;
/** /**
* Taxnexus Account Id * Date company founded
* @member {String} ID * @member {String} FoundedDate
*/ */
Account.prototype['ID'] = undefined; Account.prototype['FoundedDate'] = undefined;
/**
* ISP Customer?
* @member {Boolean} ISPCustomer
*/
Account.prototype['ISPCustomer'] = undefined;
/** /**
* Industry * Industry
@ -551,22 +334,22 @@ Account.prototype['ISPCustomer'] = undefined;
Account.prototype['Industry'] = undefined; Account.prototype['Industry'] = undefined;
/** /**
* Customer Portal Account * Industries
* @member {Boolean} IsCustomerPortal * @member {String} Industries
*/ */
Account.prototype['IsCustomerPortal'] = undefined; Account.prototype['Industries'] = undefined;
/** /**
* Partner Account * IPO Date
* @member {Boolean} IsPartner * @member {String} IPODate
*/ */
Account.prototype['IsPartner'] = undefined; Account.prototype['IPODate'] = undefined;
/** /**
* Data.com Key * Company Logo URL
* @member {String} JigSaw * @member {String} Logo
*/ */
Account.prototype['JigSaw'] = undefined; Account.prototype['Logo'] = undefined;
/** /**
* Last Modified By User ID * Last Modified By User ID
@ -581,22 +364,10 @@ Account.prototype['LastModifiedByID'] = undefined;
Account.prototype['LastModifiedDate'] = undefined; Account.prototype['LastModifiedDate'] = undefined;
/** /**
* MSP Customer? * Market Capitalization
* @member {Boolean} MSPCustomer * @member {Number} MarketCapitalization
*/ */
Account.prototype['MSPCustomer'] = undefined; Account.prototype['MarketCapitalization'] = undefined;
/**
* NAICS Code
* @member {String} NAICSCode
*/
Account.prototype['NAICSCode'] = undefined;
/**
* NAICS Description
* @member {String} NAICSDesc
*/
Account.prototype['NAICSDesc'] = undefined;
/** /**
* Account Name * Account Name
@ -604,36 +375,18 @@ Account.prototype['NAICSDesc'] = undefined;
*/ */
Account.prototype['Name'] = undefined; Account.prototype['Name'] = undefined;
/**
* Number of Investments
* @member {Number} NumberInvestments
*/
Account.prototype['NumberInvestments'] = undefined;
/** /**
* Employee Count Estimate * Employee Count Estimate
* @member {Number} NumberOfEmployees * @member {Number} NumberOfEmployees
*/ */
Account.prototype['NumberOfEmployees'] = undefined; Account.prototype['NumberOfEmployees'] = undefined;
/**
* Number of Locations Estimate
* @member {Number} NumberOfLocations
*/
Account.prototype['NumberOfLocations'] = undefined;
/**
* Open Charges
* @member {Number} OpenCharges
*/
Account.prototype['OpenCharges'] = undefined;
/**
* Vendor Order Contact ID
* @member {String} OrderContactID
*/
Account.prototype['OrderContactID'] = undefined;
/**
* Order Email
* @member {String} OrderEmail
*/
Account.prototype['OrderEmail'] = undefined;
/** /**
* Account Owner User ID * Account Owner User ID
* @member {String} OwnerID * @member {String} OwnerID
@ -647,10 +400,16 @@ Account.prototype['OwnerID'] = undefined;
Account.prototype['Ownership'] = undefined; Account.prototype['Ownership'] = undefined;
/** /**
* Parent Foreign Key * Publish this record?
* @member {String} ParentFK * @member {Boolean} Publish
*/ */
Account.prototype['ParentFK'] = undefined; Account.prototype['Publish'] = undefined;
/**
* A Salesforce-First company?
* @member {Boolean} SalesforceFirst
*/
Account.prototype['SalesforceFirst'] = undefined;
/** /**
* Parent Account * Parent Account
@ -664,54 +423,6 @@ Account.prototype['ParentID'] = undefined;
*/ */
Account.prototype['Phone'] = undefined; Account.prototype['Phone'] = undefined;
/**
* The ID of the Place situs record that applies to this Account
* @member {String} PlaceID
*/
Account.prototype['PlaceID'] = undefined;
/**
* Tax Preparer Contact ID
* @member {String} PreparerID
*/
Account.prototype['PreparerID'] = undefined;
/**
* Rating
* @member {String} Rating
*/
Account.prototype['Rating'] = undefined;
/**
* Rating Engine identifier
* @member {String} RatingEngineID
*/
Account.prototype['RatingEngineID'] = undefined;
/**
* External Reference ID
* @member {String} Ref
*/
Account.prototype['Ref'] = undefined;
/**
* Rollup Revenue Base
* @member {Number} RevenueBase
*/
Account.prototype['RevenueBase'] = undefined;
/**
* Rollup Revenue Net
* @member {Number} RevenueNet
*/
Account.prototype['RevenueNet'] = undefined;
/**
* Rollup Revenue Not Taxable
* @member {Number} RevenueNotTaxable
*/
Account.prototype['RevenueNotTaxable'] = undefined;
/** /**
* SIC Code * SIC Code
* @member {String} SIC * @member {String} SIC
@ -729,24 +440,12 @@ Account.prototype['SICDesc'] = undefined;
*/ */
Account.prototype['ShippingAddress'] = undefined; Account.prototype['ShippingAddress'] = undefined;
/**
* Shipping Census Tract
* @member {String} ShippingCensusTract
*/
Account.prototype['ShippingCensusTract'] = undefined;
/** /**
* Shipping Contact ID * Shipping Contact ID
* @member {String} ShippingContactID * @member {String} ShippingContactID
*/ */
Account.prototype['ShippingContactID'] = undefined; Account.prototype['ShippingContactID'] = undefined;
/**
* Shipping County
* @member {String} ShippingCounty
*/
Account.prototype['ShippingCounty'] = undefined;
/** /**
* Account Site * Account Site
* @member {String} Site * @member {String} Site
@ -754,28 +453,10 @@ Account.prototype['ShippingCounty'] = undefined;
Account.prototype['Site'] = undefined; Account.prototype['Site'] = undefined;
/** /**
* Account Status * Company tagline
* @member {String} Status * @member {String} TagLine
*/ */
Account.prototype['Status'] = undefined; Account.prototype['TagLine'] = undefined;
/**
* Tax Exemption
* @member {String} TaxExemption
*/
Account.prototype['TaxExemption'] = undefined;
/**
* Rollup Tax On Tax
* @member {Number} TaxOnTax
*/
Account.prototype['TaxOnTax'] = undefined;
/**
* Telecom Customer?
* @member {Boolean} TelecomCustomer
*/
Account.prototype['TelecomCustomer'] = undefined;
/** /**
* Tenant Identifier * Tenant Identifier
@ -790,10 +471,10 @@ Account.prototype['TenantID'] = undefined;
Account.prototype['TickerSymbol'] = undefined; Account.prototype['TickerSymbol'] = undefined;
/** /**
* Tradestyle * Twitter URL
* @member {String} TradeStyle * @member {String} Twitter
*/ */
Account.prototype['TradeStyle'] = undefined; Account.prototype['Twitter'] = undefined;
/** /**
* Type * Type
@ -801,42 +482,12 @@ Account.prototype['TradeStyle'] = undefined;
*/ */
Account.prototype['Type'] = undefined; Account.prototype['Type'] = undefined;
/**
* Unapplied Payments
* @member {Number} UnappliedPayments
*/
Account.prototype['UnappliedPayments'] = undefined;
/**
* Rollup Unit Base
* @member {Number} UnitBase
*/
Account.prototype['UnitBase'] = undefined;
/**
* Upsell Opportunity
* @member {String} UpsellOpportunity
*/
Account.prototype['UpsellOpportunity'] = undefined;
/**
* WHMCS Client ID
* @member {Number} WHMCSClientID
*/
Account.prototype['WHMCSClientID'] = undefined;
/** /**
* Website * Website
* @member {String} Website * @member {String} Website
*/ */
Account.prototype['Website'] = undefined; Account.prototype['Website'] = undefined;
/**
* Xero Contact ID
* @member {String} XeroContactID
*/
Account.prototype['XeroContactID'] = undefined;
/** /**
* Year Started * Year Started
* @member {String} YearStarted * @member {String} YearStarted

View File

@ -1,277 +0,0 @@
/**
* crm
* Customer Information Microservice
*
* The version of the OpenAPI document: 0.0.2
* Contact: noc@taxnexus.net
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import Address from './Address';
/**
* The AccountBasic model module.
* @module model/AccountBasic
* @version 0.0.2
*/
class AccountBasic {
/**
* Constructs a new <code>AccountBasic</code>.
* @alias module:model/AccountBasic
*/
constructor() {
AccountBasic.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>AccountBasic</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/AccountBasic} obj Optional instance to populate.
* @return {module:model/AccountBasic} The populated <code>AccountBasic</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new AccountBasic();
if (data.hasOwnProperty('AccountNumber')) {
obj['AccountNumber'] = ApiClient.convertToType(data['AccountNumber'], 'String');
}
if (data.hasOwnProperty('BillingAddress')) {
obj['BillingAddress'] = Address.constructFromObject(data['BillingAddress']);
}
if (data.hasOwnProperty('BillingContactID')) {
obj['BillingContactID'] = ApiClient.convertToType(data['BillingContactID'], 'String');
}
if (data.hasOwnProperty('CompanyID')) {
obj['CompanyID'] = ApiClient.convertToType(data['CompanyID'], 'String');
}
if (data.hasOwnProperty('CoordinateID')) {
obj['CoordinateID'] = ApiClient.convertToType(data['CoordinateID'], 'String');
}
if (data.hasOwnProperty('CustomerID')) {
obj['CustomerID'] = ApiClient.convertToType(data['CustomerID'], 'String');
}
if (data.hasOwnProperty('DefaultAddress')) {
obj['DefaultAddress'] = Address.constructFromObject(data['DefaultAddress']);
}
if (data.hasOwnProperty('DefaultBackendID')) {
obj['DefaultBackendID'] = ApiClient.convertToType(data['DefaultBackendID'], 'String');
}
if (data.hasOwnProperty('DefaultDeliveryContactID')) {
obj['DefaultDeliveryContactID'] = ApiClient.convertToType(data['DefaultDeliveryContactID'], 'String');
}
if (data.hasOwnProperty('DefaultEndUserID')) {
obj['DefaultEndUserID'] = ApiClient.convertToType(data['DefaultEndUserID'], 'String');
}
if (data.hasOwnProperty('Email')) {
obj['Email'] = ApiClient.convertToType(data['Email'], 'String');
}
if (data.hasOwnProperty('Fax')) {
obj['Fax'] = ApiClient.convertToType(data['Fax'], 'String');
}
if (data.hasOwnProperty('ID')) {
obj['ID'] = ApiClient.convertToType(data['ID'], 'String');
}
if (data.hasOwnProperty('Name')) {
obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
}
if (data.hasOwnProperty('ParentFK')) {
obj['ParentFK'] = ApiClient.convertToType(data['ParentFK'], 'String');
}
if (data.hasOwnProperty('Phone')) {
obj['Phone'] = ApiClient.convertToType(data['Phone'], 'String');
}
if (data.hasOwnProperty('PreparerID')) {
obj['PreparerID'] = ApiClient.convertToType(data['PreparerID'], 'String');
}
if (data.hasOwnProperty('Ref')) {
obj['Ref'] = ApiClient.convertToType(data['Ref'], 'String');
}
if (data.hasOwnProperty('ShippingAddress')) {
obj['ShippingAddress'] = Address.constructFromObject(data['ShippingAddress']);
}
if (data.hasOwnProperty('ShippingContactID')) {
obj['ShippingContactID'] = ApiClient.convertToType(data['ShippingContactID'], 'String');
}
if (data.hasOwnProperty('Site')) {
obj['Site'] = ApiClient.convertToType(data['Site'], 'String');
}
if (data.hasOwnProperty('TenantID')) {
obj['TenantID'] = ApiClient.convertToType(data['TenantID'], 'String');
}
if (data.hasOwnProperty('Type')) {
obj['Type'] = ApiClient.convertToType(data['Type'], 'String');
}
if (data.hasOwnProperty('Website')) {
obj['Website'] = ApiClient.convertToType(data['Website'], 'String');
}
}
return obj;
}
}
/**
* Taxnexus Account Number of the OEM/Reseller
* @member {String} AccountNumber
*/
AccountBasic.prototype['AccountNumber'] = undefined;
/**
* @member {module:model/Address} BillingAddress
*/
AccountBasic.prototype['BillingAddress'] = undefined;
/**
* Contact ID
* @member {String} BillingContactID
*/
AccountBasic.prototype['BillingContactID'] = undefined;
/**
* Taxnexus OEM/Reseller Record Id
* @member {String} CompanyID
*/
AccountBasic.prototype['CompanyID'] = undefined;
/**
* The id of the Coordinate of the business establishment
* @member {String} CoordinateID
*/
AccountBasic.prototype['CoordinateID'] = undefined;
/**
* Taxpayer Customer Id designated by OEM/Reseller
* @member {String} CustomerID
*/
AccountBasic.prototype['CustomerID'] = undefined;
/**
* @member {module:model/Address} DefaultAddress
*/
AccountBasic.prototype['DefaultAddress'] = undefined;
/**
* Default Backend ID
* @member {String} DefaultBackendID
*/
AccountBasic.prototype['DefaultBackendID'] = undefined;
/**
* Default Delivery Address Contact ID
* @member {String} DefaultDeliveryContactID
*/
AccountBasic.prototype['DefaultDeliveryContactID'] = undefined;
/**
* Contact ID
* @member {String} DefaultEndUserID
*/
AccountBasic.prototype['DefaultEndUserID'] = undefined;
/**
* Taxpayer Public Email Address
* @member {String} Email
*/
AccountBasic.prototype['Email'] = undefined;
/**
* Taxpayer Fax Number
* @member {String} Fax
*/
AccountBasic.prototype['Fax'] = undefined;
/**
* Taxpayer Account Record Id
* @member {String} ID
*/
AccountBasic.prototype['ID'] = undefined;
/**
* Taxpayer Account Name (ignored for Tax Processing)
* @member {String} Name
*/
AccountBasic.prototype['Name'] = undefined;
/**
* UUID Reference the master record that owns this item
* @member {String} ParentFK
*/
AccountBasic.prototype['ParentFK'] = undefined;
/**
* Taxpayer Public Phone Number
* @member {String} Phone
*/
AccountBasic.prototype['Phone'] = undefined;
/**
* Contact ID
* @member {String} PreparerID
*/
AccountBasic.prototype['PreparerID'] = undefined;
/**
* Source System identifier for this record, if any
* @member {String} Ref
*/
AccountBasic.prototype['Ref'] = undefined;
/**
* @member {module:model/Address} ShippingAddress
*/
AccountBasic.prototype['ShippingAddress'] = undefined;
/**
* Contact ID
* @member {String} ShippingContactID
*/
AccountBasic.prototype['ShippingContactID'] = undefined;
/**
* Taxpayer Location Designation
* @member {String} Site
*/
AccountBasic.prototype['Site'] = undefined;
/**
* Tenant Identifier
* @member {String} TenantID
*/
AccountBasic.prototype['TenantID'] = undefined;
/**
* Account Type
* @member {String} Type
*/
AccountBasic.prototype['Type'] = undefined;
/**
* Taxpayer Website
* @member {String} Website
*/
AccountBasic.prototype['Website'] = undefined;
export default AccountBasic;

View File

@ -1,81 +0,0 @@
/**
* crm
* Customer Information Microservice
*
* The version of the OpenAPI document: 0.0.2
* Contact: noc@taxnexus.net
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import AccountBasic from './AccountBasic';
import ResponseMeta from './ResponseMeta';
/**
* The AccountBasicResponse model module.
* @module model/AccountBasicResponse
* @version 0.0.2
*/
class AccountBasicResponse {
/**
* Constructs a new <code>AccountBasicResponse</code>.
* @alias module:model/AccountBasicResponse
*/
constructor() {
AccountBasicResponse.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>AccountBasicResponse</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/AccountBasicResponse} obj Optional instance to populate.
* @return {module:model/AccountBasicResponse} The populated <code>AccountBasicResponse</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new AccountBasicResponse();
if (data.hasOwnProperty('Data')) {
obj['Data'] = ApiClient.convertToType(data['Data'], [AccountBasic]);
}
if (data.hasOwnProperty('Meta')) {
obj['Meta'] = ResponseMeta.constructFromObject(data['Meta']);
}
}
return obj;
}
}
/**
* @member {Array.<module:model/AccountBasic>} Data
*/
AccountBasicResponse.prototype['Data'] = undefined;
/**
* @member {module:model/ResponseMeta} Meta
*/
AccountBasicResponse.prototype['Meta'] = undefined;
export default AccountBasicResponse;

View File

@ -54,6 +54,12 @@
//expect(instance).to.be.a(Crm.Account); //expect(instance).to.be.a(Crm.Account);
}); });
it('should have the property ID (base name: "ID")', function() {
// uncomment below and update the code to test the property ID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property accountNumber (base name: "AccountNumber")', function() { it('should have the property accountNumber (base name: "AccountNumber")', function() {
// uncomment below and update the code to test the property accountNumber // uncomment below and update the code to test the property accountNumber
//var instance = new Crm.Account(); //var instance = new Crm.Account();
@ -66,48 +72,12 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property active (base name: "Active")', function() {
// uncomment below and update the code to test the property active
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property administrativeLevel (base name: "AdministrativeLevel")', function() {
// uncomment below and update the code to test the property administrativeLevel
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property amount (base name: "Amount")', function() {
// uncomment below and update the code to test the property amount
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property amountInvoiced (base name: "AmountInvoiced")', function() {
// uncomment below and update the code to test the property amountInvoiced
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property amountPaid (base name: "AmountPaid")', function() {
// uncomment below and update the code to test the property amountPaid
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property annualRevenue (base name: "AnnualRevenue")', function() { it('should have the property annualRevenue (base name: "AnnualRevenue")', function() {
// uncomment below and update the code to test the property annualRevenue // uncomment below and update the code to test the property annualRevenue
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property balance (base name: "Balance")', function() {
// uncomment below and update the code to test the property balance
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property billingAddress (base name: "BillingAddress")', function() { it('should have the property billingAddress (base name: "BillingAddress")', function() {
// uncomment below and update the code to test the property billingAddress // uncomment below and update the code to test the property billingAddress
//var instance = new Crm.Account(); //var instance = new Crm.Account();
@ -120,56 +90,20 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property billingPreference (base name: "BillingPreference")', function() { it('should have the property closeDate (base name: "CloseDate")', function() {
// uncomment below and update the code to test the property billingPreference // uncomment below and update the code to test the property closeDate
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property businessAddress (base name: "BusinessAddress")', function() { it('should have the property cloudType (base name: "CloudType")', function() {
// uncomment below and update the code to test the property businessAddress // uncomment below and update the code to test the property cloudType
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property cannabisCustomer (base name: "CannabisCustomer")', function() { it('should have the property cloudYear (base name: "CloudYear")', function() {
// uncomment below and update the code to test the property cannabisCustomer // uncomment below and update the code to test the property cloudYear
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property channelProgramLevelName (base name: "ChannelProgramLevelName")', function() {
// uncomment below and update the code to test the property channelProgramLevelName
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property channelProgramName (base name: "ChannelProgramName")', function() {
// uncomment below and update the code to test the property channelProgramName
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property clientEndDate (base name: "ClientEndDate")', function() {
// uncomment below and update the code to test the property clientEndDate
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property clientStartDate (base name: "ClientStartDate")', function() {
// uncomment below and update the code to test the property clientStartDate
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property companyID (base name: "CompanyID")', function() {
// uncomment below and update the code to test the property companyID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property coordinateID (base name: "CoordinateID")', function() {
// uncomment below and update the code to test the property coordinateID
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
@ -186,56 +120,8 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property customerID (base name: "CustomerID")', function() { it('should have the property crunchbaseURL (base name: "CrunchbaseURL")', function() {
// uncomment below and update the code to test the property customerID // uncomment below and update the code to test the property crunchbaseURL
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property customerPriority (base name: "CustomerPriority")', function() {
// uncomment below and update the code to test the property customerPriority
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property DBA (base name: "DBA")', function() {
// uncomment below and update the code to test the property DBA
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property dUNSNumber (base name: "DUNSNumber")', function() {
// uncomment below and update the code to test the property dUNSNumber
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property dandBCompanyID (base name: "DandBCompanyID")', function() {
// uncomment below and update the code to test the property dandBCompanyID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property defaultAddress (base name: "DefaultAddress")', function() {
// uncomment below and update the code to test the property defaultAddress
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property defaultBackendID (base name: "DefaultBackendID")', function() {
// uncomment below and update the code to test the property defaultBackendID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property defaultDeliveryContactID (base name: "DefaultDeliveryContactID")', function() {
// uncomment below and update the code to test the property defaultDeliveryContactID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property defaultEndUserID (base name: "DefaultEndUserID")', function() {
// uncomment below and update the code to test the property defaultEndUserID
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
@ -246,8 +132,8 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property EIN (base name: "EIN")', function() { it('should have the property earningsCall (base name: "EarningsCall")', function() {
// uncomment below and update the code to test the property EIN // uncomment below and update the code to test the property earningsCall
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
@ -258,8 +144,26 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property enrollmentStatus (base name: "EnrollmentStatus")', function() { it('should have the property equityFunding (base name: "EquityFunding")', function() {
// uncomment below and update the code to test the property enrollmentStatus // uncomment below and update the code to test the property equityFunding
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property facebook (base name: "Facebook")', function() {
// uncomment below and update the code to test the property facebook
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property linkedIn (base name: "LinkedIn")', function() {
// uncomment below and update the code to test the property linkedIn
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property location (base name: "Location")', function() {
// uncomment below and update the code to test the property location
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
@ -270,14 +174,8 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property ID (base name: "ID")', function() { it('should have the property foundedDate (base name: "FoundedDate")', function() {
// uncomment below and update the code to test the property ID // uncomment below and update the code to test the property foundedDate
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property iSPCustomer (base name: "ISPCustomer")', function() {
// uncomment below and update the code to test the property iSPCustomer
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
@ -288,20 +186,20 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property isCustomerPortal (base name: "IsCustomerPortal")', function() { it('should have the property industries (base name: "Industries")', function() {
// uncomment below and update the code to test the property isCustomerPortal // uncomment below and update the code to test the property industries
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property isPartner (base name: "IsPartner")', function() { it('should have the property iPODate (base name: "IPODate")', function() {
// uncomment below and update the code to test the property isPartner // uncomment below and update the code to test the property iPODate
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property jigSaw (base name: "JigSaw")', function() { it('should have the property logo (base name: "Logo")', function() {
// uncomment below and update the code to test the property jigSaw // uncomment below and update the code to test the property logo
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
@ -318,20 +216,8 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property mSPCustomer (base name: "MSPCustomer")', function() { it('should have the property marketCapitalization (base name: "MarketCapitalization")', function() {
// uncomment below and update the code to test the property mSPCustomer // uncomment below and update the code to test the property marketCapitalization
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property nAICSCode (base name: "NAICSCode")', function() {
// uncomment below and update the code to test the property nAICSCode
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property nAICSDesc (base name: "NAICSDesc")', function() {
// uncomment below and update the code to test the property nAICSDesc
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
@ -342,36 +228,18 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property numberInvestments (base name: "NumberInvestments")', function() {
// uncomment below and update the code to test the property numberInvestments
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property numberOfEmployees (base name: "NumberOfEmployees")', function() { it('should have the property numberOfEmployees (base name: "NumberOfEmployees")', function() {
// uncomment below and update the code to test the property numberOfEmployees // uncomment below and update the code to test the property numberOfEmployees
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property numberOfLocations (base name: "NumberOfLocations")', function() {
// uncomment below and update the code to test the property numberOfLocations
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property openCharges (base name: "OpenCharges")', function() {
// uncomment below and update the code to test the property openCharges
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property orderContactID (base name: "OrderContactID")', function() {
// uncomment below and update the code to test the property orderContactID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property orderEmail (base name: "OrderEmail")', function() {
// uncomment below and update the code to test the property orderEmail
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property ownerID (base name: "OwnerID")', function() { it('should have the property ownerID (base name: "OwnerID")', function() {
// uncomment below and update the code to test the property ownerID // uncomment below and update the code to test the property ownerID
//var instance = new Crm.Account(); //var instance = new Crm.Account();
@ -384,8 +252,14 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property parentFK (base name: "ParentFK")', function() { it('should have the property publish (base name: "Publish")', function() {
// uncomment below and update the code to test the property parentFK // uncomment below and update the code to test the property publish
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property salesforceFirst (base name: "SalesforceFirst")', function() {
// uncomment below and update the code to test the property salesforceFirst
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
@ -402,54 +276,6 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property placeID (base name: "PlaceID")', function() {
// uncomment below and update the code to test the property placeID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property preparerID (base name: "PreparerID")', function() {
// uncomment below and update the code to test the property preparerID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property rating (base name: "Rating")', function() {
// uncomment below and update the code to test the property rating
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property ratingEngineID (base name: "RatingEngineID")', function() {
// uncomment below and update the code to test the property ratingEngineID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property ref (base name: "Ref")', function() {
// uncomment below and update the code to test the property ref
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property revenueBase (base name: "RevenueBase")', function() {
// uncomment below and update the code to test the property revenueBase
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property revenueNet (base name: "RevenueNet")', function() {
// uncomment below and update the code to test the property revenueNet
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property revenueNotTaxable (base name: "RevenueNotTaxable")', function() {
// uncomment below and update the code to test the property revenueNotTaxable
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property SIC (base name: "SIC")', function() { it('should have the property SIC (base name: "SIC")', function() {
// uncomment below and update the code to test the property SIC // uncomment below and update the code to test the property SIC
//var instance = new Crm.Account(); //var instance = new Crm.Account();
@ -468,50 +294,20 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property shippingCensusTract (base name: "ShippingCensusTract")', function() {
// uncomment below and update the code to test the property shippingCensusTract
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property shippingContactID (base name: "ShippingContactID")', function() { it('should have the property shippingContactID (base name: "ShippingContactID")', function() {
// uncomment below and update the code to test the property shippingContactID // uncomment below and update the code to test the property shippingContactID
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property shippingCounty (base name: "ShippingCounty")', function() {
// uncomment below and update the code to test the property shippingCounty
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property site (base name: "Site")', function() { it('should have the property site (base name: "Site")', function() {
// uncomment below and update the code to test the property site // uncomment below and update the code to test the property site
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property status (base name: "Status")', function() { it('should have the property tagLine (base name: "TagLine")', function() {
// uncomment below and update the code to test the property status // uncomment below and update the code to test the property tagLine
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property taxExemption (base name: "TaxExemption")', function() {
// uncomment below and update the code to test the property taxExemption
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property taxOnTax (base name: "TaxOnTax")', function() {
// uncomment below and update the code to test the property taxOnTax
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property telecomCustomer (base name: "TelecomCustomer")', function() {
// uncomment below and update the code to test the property telecomCustomer
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
@ -528,8 +324,8 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property tradeStyle (base name: "TradeStyle")', function() { it('should have the property twitter (base name: "Twitter")', function() {
// uncomment below and update the code to test the property tradeStyle // uncomment below and update the code to test the property twitter
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
@ -540,42 +336,12 @@
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property unappliedPayments (base name: "UnappliedPayments")', function() {
// uncomment below and update the code to test the property unappliedPayments
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property unitBase (base name: "UnitBase")', function() {
// uncomment below and update the code to test the property unitBase
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property upsellOpportunity (base name: "UpsellOpportunity")', function() {
// uncomment below and update the code to test the property upsellOpportunity
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property wHMCSClientID (base name: "WHMCSClientID")', function() {
// uncomment below and update the code to test the property wHMCSClientID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property website (base name: "Website")', function() { it('should have the property website (base name: "Website")', function() {
// uncomment below and update the code to test the property website // uncomment below and update the code to test the property website
//var instance = new Crm.Account(); //var instance = new Crm.Account();
//expect(instance).to.be(); //expect(instance).to.be();
}); });
it('should have the property xeroContactID (base name: "XeroContactID")', function() {
// uncomment below and update the code to test the property xeroContactID
//var instance = new Crm.Account();
//expect(instance).to.be();
});
it('should have the property yearStarted (base name: "YearStarted")', function() { it('should have the property yearStarted (base name: "YearStarted")', function() {
// uncomment below and update the code to test the property yearStarted // uncomment below and update the code to test the property yearStarted
//var instance = new Crm.Account(); //var instance = new Crm.Account();

View File

@ -1,203 +0,0 @@
/**
* crm
* Customer Information Microservice
*
* The version of the OpenAPI document: 0.0.2
* Contact: noc@taxnexus.net
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.Crm);
}
}(this, function(expect, Crm) {
'use strict';
var instance;
beforeEach(function() {
instance = new Crm.AccountBasic();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('AccountBasic', function() {
it('should create an instance of AccountBasic', function() {
// uncomment below and update the code to test AccountBasic
//var instance = new Crm.AccountBasic();
//expect(instance).to.be.a(Crm.AccountBasic);
});
it('should have the property accountNumber (base name: "AccountNumber")', function() {
// uncomment below and update the code to test the property accountNumber
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property billingAddress (base name: "BillingAddress")', function() {
// uncomment below and update the code to test the property billingAddress
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property billingContactID (base name: "BillingContactID")', function() {
// uncomment below and update the code to test the property billingContactID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property companyID (base name: "CompanyID")', function() {
// uncomment below and update the code to test the property companyID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property coordinateID (base name: "CoordinateID")', function() {
// uncomment below and update the code to test the property coordinateID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property customerID (base name: "CustomerID")', function() {
// uncomment below and update the code to test the property customerID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property defaultAddress (base name: "DefaultAddress")', function() {
// uncomment below and update the code to test the property defaultAddress
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property defaultBackendID (base name: "DefaultBackendID")', function() {
// uncomment below and update the code to test the property defaultBackendID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property defaultDeliveryContactID (base name: "DefaultDeliveryContactID")', function() {
// uncomment below and update the code to test the property defaultDeliveryContactID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property defaultEndUserID (base name: "DefaultEndUserID")', function() {
// uncomment below and update the code to test the property defaultEndUserID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property email (base name: "Email")', function() {
// uncomment below and update the code to test the property email
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property fax (base name: "Fax")', function() {
// uncomment below and update the code to test the property fax
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property ID (base name: "ID")', function() {
// uncomment below and update the code to test the property ID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property name (base name: "Name")', function() {
// uncomment below and update the code to test the property name
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property parentFK (base name: "ParentFK")', function() {
// uncomment below and update the code to test the property parentFK
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property phone (base name: "Phone")', function() {
// uncomment below and update the code to test the property phone
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property preparerID (base name: "PreparerID")', function() {
// uncomment below and update the code to test the property preparerID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property ref (base name: "Ref")', function() {
// uncomment below and update the code to test the property ref
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property shippingAddress (base name: "ShippingAddress")', function() {
// uncomment below and update the code to test the property shippingAddress
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property shippingContactID (base name: "ShippingContactID")', function() {
// uncomment below and update the code to test the property shippingContactID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property site (base name: "Site")', function() {
// uncomment below and update the code to test the property site
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property tenantID (base name: "TenantID")', function() {
// uncomment below and update the code to test the property tenantID
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property type (base name: "Type")', function() {
// uncomment below and update the code to test the property type
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
it('should have the property website (base name: "Website")', function() {
// uncomment below and update the code to test the property website
//var instance = new Crm.AccountBasic();
//expect(instance).to.be();
});
});
}));

View File

@ -1,71 +0,0 @@
/**
* crm
* Customer Information Microservice
*
* The version of the OpenAPI document: 0.0.2
* Contact: noc@taxnexus.net
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.Crm);
}
}(this, function(expect, Crm) {
'use strict';
var instance;
beforeEach(function() {
instance = new Crm.AccountBasicResponse();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('AccountBasicResponse', function() {
it('should create an instance of AccountBasicResponse', function() {
// uncomment below and update the code to test AccountBasicResponse
//var instance = new Crm.AccountBasicResponse();
//expect(instance).to.be.a(Crm.AccountBasicResponse);
});
it('should have the property data (base name: "Data")', function() {
// uncomment below and update the code to test the property data
//var instance = new Crm.AccountBasicResponse();
//expect(instance).to.be();
});
it('should have the property meta (base name: "Meta")', function() {
// uncomment below and update the code to test the property meta
//var instance = new Crm.AccountBasicResponse();
//expect(instance).to.be();
});
});
}));

View File

@ -139,15 +139,6 @@ responses:
type: string type: string
schema: schema:
$ref: "#/definitions/Error" $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: AccountResponse:
description: Taxnexus Response with Account objects with Contacts description: Taxnexus Response with Account objects with Contacts
headers: headers:
@ -1174,69 +1165,32 @@ definitions:
type: object type: object
Account: Account:
properties: properties:
ID:
description: Taxnexus Account Id
type: string
AccountNumber: AccountNumber:
description: Account Number description: Account Number
type: string type: string
AccountSource: AccountSource:
description: The marketing origin of this account description: The marketing origin of this account
type: string 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: AnnualRevenue:
description: Annual Revenue Estimate description: Annual Revenue Estimate
format: double format: double
type: number type: number
Balance:
description: Account Balance
format: double
type: number
BillingAddress: BillingAddress:
$ref: "#/definitions/Address" $ref: "#/definitions/Address"
BillingContactID: BillingContactID:
description: Contact ID description: Contact ID
type: string type: string
BillingPreference: CloseDate:
description: Billing Preference description: Close Date
type: string type: string
BusinessAddress: CloudType:
$ref: "#/definitions/Address" description: The type of cloud company
CannabisCustomer:
description: Is this a cannabis customer?
type: boolean
ChannelProgramLevelName:
description: Channel Program Level Name
type: string type: string
ChannelProgramName: CloudYear:
description: Channel Program Name description: The year company started cloud revenue
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 type: string
CreatedByID: CreatedByID:
description: Created By User ID description: Created By User ID
@ -1244,64 +1198,47 @@ definitions:
CreatedDate: CreatedDate:
description: Created Date description: Created Date
type: string type: string
CustomerID: CrunchbaseURL:
description: Customer ID from source system description: Crunchbase URL
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 type: string
Description: Description:
description: Description description: Description of the account
type: string type: string
EIN: EarningsCall:
description: EIN description: Earnings Call Date
type: string type: string
Email: Email:
description: Main Account Email description: Main Account Email
type: string type: string
EnrollmentStatus: EquityFunding:
description: Enrollment Status description: The amount of equity EquityFunding
type: number
Facebook:
description: Company Facebook URL
type: string
LinkedIn:
description: Company LinkedIn URL
type: string
Location:
description: Headquarters Location Description
type: string type: string
Fax: Fax:
description: Fax description: Fax number
type: string type: string
ID: FoundedDate:
description: Taxnexus Account Id description: Date company founded
type: string type: string
ISPCustomer:
description: ISP Customer?
type: boolean
Industry: Industry:
description: Industry description: Industry
type: string type: string
IsCustomerPortal: Industries:
description: Customer Portal Account description: Industries
type: boolean type: string
IsPartner: IPODate:
description: Partner Account description: IPO Date
type: boolean type: string
JigSaw: Logo:
description: Data.com Key description: Company Logo URL
type: string type: string
LastModifiedByID: LastModifiedByID:
description: Last Modified By User ID description: Last Modified By User ID
@ -1309,78 +1246,37 @@ definitions:
LastModifiedDate: LastModifiedDate:
description: Last Modified Date description: Last Modified Date
type: string type: string
MSPCustomer: MarketCapitalization:
description: MSP Customer? description: Market Capitalization
type: boolean type: number
NAICSCode:
description: NAICS Code
type: string
NAICSDesc:
description: NAICS Description
type: string
Name: Name:
description: Account Name description: Account Name
type: string type: string
NumberInvestments:
description: Number of Investments
type: number
NumberOfEmployees: NumberOfEmployees:
description: Employee Count Estimate description: Employee Count Estimate
format: int64 format: int64
type: number 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: OwnerID:
description: Account Owner User ID description: Account Owner User ID
type: string type: string
Ownership: Ownership:
description: Ownership description: Ownership
type: string type: string
ParentFK: Publish:
description: Parent Foreign Key description: Publish this record?
type: string type: boolean
SalesforceFirst:
description: A Salesforce-First company?
type: boolean
ParentID: ParentID:
description: Parent Account description: Parent Account
type: string type: string
Phone: Phone:
description: Phone description: Phone
type: string 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: SIC:
description: SIC Code description: SIC Code
type: string type: string
@ -1389,150 +1285,34 @@ definitions:
type: string type: string
ShippingAddress: ShippingAddress:
$ref: "#/definitions/Address" $ref: "#/definitions/Address"
ShippingCensusTract:
description: Shipping Census Tract
type: string
ShippingContactID: ShippingContactID:
description: Shipping Contact ID description: Shipping Contact ID
type: string type: string
ShippingCounty:
description: Shipping County
type: string
Site: Site:
description: Account Site description: Account Site
type: string type: string
Status: TagLine:
description: Account Status description: Company tagline
type: string 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: TenantID:
description: Tenant Identifier description: Tenant Identifier
type: string type: string
TickerSymbol: TickerSymbol:
description: Ticker Symbol description: Ticker Symbol
type: string type: string
TradeStyle: Twitter:
description: Tradestyle description: Twitter URL
type: string type: string
Type: Type:
description: Type description: Type
type: string 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: Website:
description: Website description: Website
type: string type: string
XeroContactID:
description: Xero Contact ID
type: string
YearStarted: YearStarted:
description: Year Started description: Year Started
type: string type: string
type: object 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
ShippingContactID:
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: AccountRequest:
description: An array of Account objects with Contacts description: An array of Account objects with Contacts
properties: properties: