Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opportunity ¶
type Opportunity struct { ID string `json:"id"` OrganizationId string `json:"organizationId"` ContractId string `json:"contractId"` Tenant string `json:"tenant"` Name string `json:"name"` Amount float64 `json:"amount"` MaxAmount float64 `json:"maxAmount"` InternalType string `json:"internalType"` ExternalType string `json:"externalType"` InternalStage string `json:"internalStage"` ExternalStage string `json:"externalStage"` EstimatedClosedAt *time.Time `json:"estimatedClosedAt,omitempty"` ClosedAt *time.Time `json:"closedAt,omitempty"` OwnerUserId string `json:"ownerUserId"` CreatedByUserId string `json:"createdByUserId"` Source commonmodel.Source `json:"source"` ExternalSystems []commonmodel.ExternalSystem `json:"externalSystems"` GeneralNotes string `json:"generalNotes"` NextSteps string `json:"nextSteps"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` RenewalDetails RenewalDetails `json:"renewal,omitempty"` Comments string `json:"comments,omitempty"` Currency string `json:"currency"` LikelihoodRate int64 `json:"likelihoodRate"` }
Opportunity represents the state of an opportunity aggregate.
type OpportunityDataFields ¶
type OpportunityDataFields struct { Name string Amount float64 MaxAmount float64 InternalType OpportunityInternalType ExternalType string InternalStage OpportunityInternalStage ExternalStage string EstimatedClosedAt *time.Time OwnerUserId string CreatedByUserId string GeneralNotes string NextSteps string OrganizationId string RenewedAt *time.Time Currency string LikelihoodRate int64 }
OpportunityDataFields contains all the fields that may be used to create or update an opportunity.
type OpportunityInternalStage ¶
type OpportunityInternalStage int32
OpportunityInternalStage represents the stage of the opportunity within the system.
const ( OPEN OpportunityInternalStage = iota CLOSED_WON CLOSED_LOST )
func (OpportunityInternalStage) StringEnumValue ¶
func (t OpportunityInternalStage) StringEnumValue() neo4jenum.OpportunityInternalStage
type OpportunityInternalType ¶
type OpportunityInternalType int32
OpportunityInternalType represents the type of opportunity within the system.
const ( NBO OpportunityInternalType = iota UPSELL CROSS_SELL RENEWAL )
func (OpportunityInternalType) StringEnumValue ¶
func (t OpportunityInternalType) StringEnumValue() neo4jenum.OpportunityInternalType
String returns the string representation of the OpportunityInternalType.
type RenewalDetails ¶
type RenewalDetails struct { RenewedAt *time.Time `json:"renewedAt,omitempty"` RenewalLikelihood string `json:"renewalLikelihood,omitempty"` RenewalUpdatedByUserId string `json:"renewalUpdatedByUserId,omitempty"` RenewalUpdatedByUserAt *time.Time `json:"renewalUpdatedByUserAt,omitempty"` RenewalApproved bool `json:"renewalApproved,omitempty"` RenewalAdjustedRate int64 `json:"renewalAdjustedRate,omitempty"` }
type RenewalLikelihood ¶
type RenewalLikelihood int32
OpportunityInternalType represents the type of opportunity within the system.
const ( HIGH_RENEWAL RenewalLikelihood = iota MEDIUM_RENEWAL LOW_RENEWAL ZERO_RENEWAL )
func (RenewalLikelihood) StringEnumValue ¶
func (r RenewalLikelihood) StringEnumValue() neo4jenum.RenewalLikelihood
String returns the string representation of the OpportunityInternalStage.
Click to show internal directories.
Click to hide internal directories.