Documentation ¶
Index ¶
- Constants
- Variables
- func IsValidActionType(s string) bool
- func IsValidBilledType(s string) bool
- func IsValidChargePeriod(s string) bool
- func IsValidContractStatus(s string) bool
- func IsValidInvoiceStatus(s string) bool
- func IsValidMeetingStatus(s string) bool
- func IsValidPriceCalculationType(s string) bool
- func IsValidPricingModel(s string) bool
- func NodeLabelForCustomFieldDataType(dataType string) string
- func PropertyNameForCustomFieldDataType(dataType string) string
- type ActionType
- type BilledType
- type ChargePeriod
- type ContractStatus
- type Currency
- type CustomFieldDataType
- type EnrichSource
- type ExternalSystemId
- type InvoiceStatus
- type MeetingStatus
- type OnboardingStatus
- type OpportunityInternalStage
- type OpportunityInternalType
- type OrganizationRelationship
- type OrganizationStage
- type PriceCalculationType
- type PricingModel
- type RenewalLikelihood
- type TouchpointType
Constants ¶
View Source
const ( CustomFieldTextProperty propertyName = "textValue" CustomFieldIntProperty propertyName = "intValue" CustomFieldFloatProperty propertyName = "floatValue" CustomFieldBoolProperty propertyName = "boolValue" CustomFieldTimeProperty propertyName = "timeValue" )
Variables ¶
View Source
var AllActionType = []ActionType{ ActionCreated, ActionContractStatusUpdated, ActionServiceLineItemPriceUpdated, ActionServiceLineItemQuantityUpdated, ActionServiceLineItemBilledTypeUpdated, ActionServiceLineItemBilledTypeRecurringCreated, ActionServiceLineItemBilledTypeOnceCreated, ActionServiceLineItemBilledTypeUsageCreated, ActionContractRenewed, ActionServiceLineItemRemoved, ActionOnboardingStatusChanged, ActionRenewalLikelihoodUpdated, ActionInvoiceIssued, ActionInvoicePaid, ActionInvoiceVoided, ActionInvoiceOverdue, ActionInvoiceSent, }
View Source
var AllBilledTypes = []BilledType{ BilledTypeNone, BilledTypeMonthly, BilledTypeQuarterly, BilledTypeAnnually, BilledTypeOnce, BilledTypeUsage, }
View Source
var AllChargePeriods = []ChargePeriod{ ChargePeriodNone, ChargePeriodMonthly, ChargePeriodQuarterly, ChargePeriodAnnually, }
View Source
var AllContractStatuses = []ContractStatus{ ContractStatusDraft, ContractStatusScheduled, ContractStatusLive, ContractStatusEnded, ContractStatusOutOfContract, }
View Source
var AllInvoiceStatuses = []InvoiceStatus{ InvoiceStatusNone, InvoiceStatusInitialized, InvoiceStatusDue, InvoiceStatusPaid, InvoiceStatusVoid, InvoiceStatusScheduled, InvoiceStatusOverdue, InvoiceStatusOnHold, InvoiceStatusEmpty, }
View Source
var AllMeetingStatuses = []MeetingStatus{ MeetingStatusAccepted, MeetingStatusCanceled, }
View Source
var AllOpportunityInternalStage = []OpportunityInternalStage{ OpportunityInternalStageOpen, OpportunityInternalStageClosedWon, OpportunityInternalStageClosedLost, OpportunityInternalStageSuspended, }
View Source
var AllOpportunityInternalType = []OpportunityInternalType{ OpportunityInternalTypeNBO, OpportunityInternalTypeUpsell, OpportunityInternalTypeCrossSell, OpportunityInternalTypeRenewal, }
View Source
var AllPriceCalculationTypes = []PriceCalculationType{ PriceCalculationTypeNone, PriceCalculationTypeRevenueShare, }
View Source
var AllPricingModels = []PricingModel{ PricingModelNone, PricingModelSubscription, PricingModelOneTime, PricingModelUsage, }
Functions ¶
func IsValidActionType ¶
func IsValidBilledType ¶
func IsValidChargePeriod ¶
func IsValidContractStatus ¶
func IsValidInvoiceStatus ¶
func IsValidMeetingStatus ¶
func IsValidPricingModel ¶
Types ¶
type ActionType ¶
type ActionType string
const ( ActionNA ActionType = "" ActionCreated ActionType = "CREATED" ActionContractStatusUpdated ActionType = "CONTRACT_STATUS_UPDATED" ActionServiceLineItemPriceUpdated ActionType = "SERVICE_LINE_ITEM_PRICE_UPDATED" ActionServiceLineItemQuantityUpdated ActionType = "SERVICE_LINE_ITEM_QUANTITY_UPDATED" // Deprecated ActionServiceLineItemBilledTypeUpdated ActionType = "SERVICE_LINE_ITEM_BILLED_TYPE_UPDATED" ActionServiceLineItemBilledTypeRecurringCreated ActionType = "SERVICE_LINE_ITEM_BILLED_TYPE_RECURRING_CREATED" ActionServiceLineItemBilledTypeOnceCreated ActionType = "SERVICE_LINE_ITEM_BILLED_TYPE_ONCE_CREATED" ActionServiceLineItemBilledTypeUsageCreated ActionType = "SERVICE_LINE_ITEM_BILLED_TYPE_USAGE_CREATED" ActionContractRenewed ActionType = "CONTRACT_RENEWED" ActionServiceLineItemRemoved ActionType = "SERVICE_LINE_ITEM_REMOVED" ActionOnboardingStatusChanged ActionType = "ONBOARDING_STATUS_CHANGED" ActionRenewalLikelihoodUpdated ActionType = "RENEWAL_LIKELIHOOD_UPDATED" ActionRenewalForecastUpdated ActionType = "RENEWAL_FORECAST_UPDATED" ActionInvoiceIssued ActionType = "INVOICE_ISSUED" ActionInvoicePaid ActionType = "INVOICE_PAID" ActionInvoiceVoided ActionType = "INVOICE_VOIDED" ActionInvoiceOverdue ActionType = "INVOICE_OVERDUE" ActionInvoiceSent ActionType = "INVOICE_SENT" ActionInteractionEventRead ActionType = "INTERACTION_EVENT_READ" )
func GetActionType ¶
func GetActionType(s string) ActionType
type BilledType ¶
type BilledType string
const ( BilledTypeNone BilledType = "" BilledTypeMonthly BilledType = "MONTHLY" BilledTypeQuarterly BilledType = "QUARTERLY" BilledTypeAnnually BilledType = "ANNUALLY" BilledTypeOnce BilledType = "ONCE" BilledTypeUsage BilledType = "USAGE" )
func DecodeBilledType ¶
func DecodeBilledType(s string) BilledType
func (BilledType) InMonths ¶
func (bt BilledType) InMonths() int64
func (BilledType) IsRecurrent ¶
func (bt BilledType) IsRecurrent() bool
func (BilledType) String ¶
func (bt BilledType) String() string
type ChargePeriod ¶
type ChargePeriod string
const ( ChargePeriodNone ChargePeriod = "" ChargePeriodMonthly ChargePeriod = "MOTHLY" ChargePeriodQuarterly ChargePeriod = "QUARTERLY" ChargePeriodAnnually ChargePeriod = "ANNUALLY" )
func DecodeChargePeriod ¶
func DecodeChargePeriod(s string) ChargePeriod
func (ChargePeriod) String ¶
func (e ChargePeriod) String() string
type ContractStatus ¶
type ContractStatus string
const ( ContractStatusUndefined ContractStatus = "" ContractStatusDraft ContractStatus = "DRAFT" ContractStatusScheduled ContractStatus = "SCHEDULED" ContractStatusLive ContractStatus = "LIVE" ContractStatusEnded ContractStatus = "ENDED" ContractStatusOutOfContract ContractStatus = "OUT_OF_CONTRACT" )
func DecodeContractStatus ¶
func DecodeContractStatus(s string) ContractStatus
func (ContractStatus) String ¶
func (c ContractStatus) String() string
type Currency ¶
type Currency string
const ( CurrencyAUD Currency = "AUD" CurrencyBRL Currency = "BRL" CurrencyCAD Currency = "CAD" CurrencyCHF Currency = "CHF" CurrencyCNY Currency = "CNY" CurrencyEUR Currency = "EUR" CurrencyGBP Currency = "GBP" CurrencyHKD Currency = "HKD" CurrencyINR Currency = "INR" CurrencyJPY Currency = "JPY" CurrencyKRW Currency = "KRW" CurrencyMXN Currency = "MXN" CurrencyNOK Currency = "NOK" CurrencyNZD Currency = "NZD" CurrencyRON Currency = "RON" CurrencySEK Currency = "SEK" CurrencySGD Currency = "SGD" CurrencyTRY Currency = "TRY" CurrencyUSD Currency = "USD" CurrencyZAR Currency = "ZAR" )
func DecodeCurrency ¶
type CustomFieldDataType ¶
type CustomFieldDataType string
const ( CustomFieldDataTypeText CustomFieldDataType = "TEXT" CustomFieldDataTypeBool CustomFieldDataType = "BOOL" CustomFieldDataTypeDatetime CustomFieldDataType = "DATETIME" CustomFieldDataTypeInteger CustomFieldDataType = "INTEGER" CustomFieldDataTypeDecimal CustomFieldDataType = "DECIMAL" )
func (CustomFieldDataType) String ¶
func (cfdt CustomFieldDataType) String() string
type EnrichSource ¶
type EnrichSource string
const ( Brandfetch EnrichSource = "BRANDFETCH" ScrapIn EnrichSource = "SCRAPIN" )
func DecodeDomainEnrichSource ¶
func DecodeDomainEnrichSource(str string) EnrichSource
func (EnrichSource) String ¶
func (e EnrichSource) String() string
type ExternalSystemId ¶
type ExternalSystemId string
const ( Attio ExternalSystemId = "attio" CalCom ExternalSystemId = "calcom" Close ExternalSystemId = "close" Fathom ExternalSystemId = "fathom" GCal ExternalSystemId = "gcal" GMail ExternalSystemId = "gmail" Grain ExternalSystemId = "grain" Hubspot ExternalSystemId = "hubspot" Intercom ExternalSystemId = "intercom" Mailstack ExternalSystemId = "mailstack" Mixpanel ExternalSystemId = "mixpanel" Outlook ExternalSystemId = "outlook" Pipedrive ExternalSystemId = "pipedrive" Postmark ExternalSystemId = "postmark" Salesforce ExternalSystemId = "salesforce" Slack ExternalSystemId = "slack" Stripe ExternalSystemId = "stripe" Unthread ExternalSystemId = "unthread" WeConnect ExternalSystemId = "weconnect" ZendeskSell ExternalSystemId = "zendesk-sell" ZendeskSupport ExternalSystemId = "zendesk_support" NotSet ExternalSystemId = "" )
func DecodeExternalSystemId ¶
func DecodeExternalSystemId(value string) ExternalSystemId
func (ExternalSystemId) IntegrationID ¶
func (e ExternalSystemId) IntegrationID(rotationCount int) string
func (ExternalSystemId) String ¶
func (e ExternalSystemId) String() string
type InvoiceStatus ¶
type InvoiceStatus string
const ( InvoiceStatusNone InvoiceStatus = "" InvoiceStatusInitialized InvoiceStatus = "INITIALIZED" InvoiceStatusDue InvoiceStatus = "DUE" InvoiceStatusPaid InvoiceStatus = "PAID" InvoiceStatusVoid InvoiceStatus = "VOID" InvoiceStatusScheduled InvoiceStatus = "SCHEDULED" InvoiceStatusOverdue InvoiceStatus = "OVERDUE" InvoiceStatusOnHold InvoiceStatus = "ON_HOLD" InvoiceStatusEmpty InvoiceStatus = "EMPTY" )
func DecodeInvoiceStatus ¶
func DecodeInvoiceStatus(s string) InvoiceStatus
func (InvoiceStatus) String ¶
func (e InvoiceStatus) String() string
type MeetingStatus ¶
type MeetingStatus string
const ( MeetingStatusUndefined MeetingStatus = "" MeetingStatusAccepted MeetingStatus = "ACCEPTED" MeetingStatusCanceled MeetingStatus = "CANCELED" )
func DecodeMeetingStatus ¶
func DecodeMeetingStatus(s string) MeetingStatus
type OnboardingStatus ¶
type OnboardingStatus string
const ( OnboardingStatusNotApplicable OnboardingStatus = "NOT_APPLICABLE" OnboardingStatusNotStarted OnboardingStatus = "NOT_STARTED" OnboardingStatusOnTrack OnboardingStatus = "ON_TRACK" OnboardingStatusLate OnboardingStatus = "LATE" OnboardingStatusStuck OnboardingStatus = "STUCK" OnboardingStatusDone OnboardingStatus = "DONE" OnboardingStatusSuccessful OnboardingStatus = "SUCCESSFUL" )
type OpportunityInternalStage ¶
type OpportunityInternalStage string
const ( OpportunityInternalStageOpen OpportunityInternalStage = "OPEN" OpportunityInternalStageClosedWon OpportunityInternalStage = "CLOSED_WON" OpportunityInternalStageClosedLost OpportunityInternalStage = "CLOSED_LOST" OpportunityInternalStageSuspended OpportunityInternalStage = "SUSPENDED" )
func DecodeOpportunityInternalStage ¶
func DecodeOpportunityInternalStage(input string) OpportunityInternalStage
func (OpportunityInternalStage) IsValid ¶
func (e OpportunityInternalStage) IsValid() bool
func (OpportunityInternalStage) String ¶
func (e OpportunityInternalStage) String() string
type OpportunityInternalType ¶
type OpportunityInternalType string
const ( OpportunityInternalTypeNBO OpportunityInternalType = "NBO" OpportunityInternalTypeUpsell OpportunityInternalType = "UPSELL" OpportunityInternalTypeCrossSell OpportunityInternalType = "CROSS_SELL" OpportunityInternalTypeRenewal OpportunityInternalType = "RENEWAL" )
func DecodeOpportunityInternalType ¶
func DecodeOpportunityInternalType(input string) OpportunityInternalType
func (OpportunityInternalType) IsValid ¶
func (e OpportunityInternalType) IsValid() bool
func (OpportunityInternalType) String ¶
func (e OpportunityInternalType) String() string
type OrganizationRelationship ¶
type OrganizationRelationship string
const ( OrganizationRelationshipProspect OrganizationRelationship = "PROSPECT" OrganizationRelationshipCustomer OrganizationRelationship = "CUSTOMER" OrganizationRelationshipFormerCustomer OrganizationRelationship = "FORMER_CUSTOMER" OrganizationRelationshipNotAFit OrganizationRelationship = "NOT_A_FIT" )
func DecodeOrganizationRelationship ¶
func DecodeOrganizationRelationship(str string) OrganizationRelationship
func (OrganizationRelationship) DefaultStage ¶
func (e OrganizationRelationship) DefaultStage() OrganizationStage
func (OrganizationRelationship) IsValid ¶
func (e OrganizationRelationship) IsValid() bool
func (OrganizationRelationship) String ¶
func (e OrganizationRelationship) String() string
type OrganizationStage ¶
type OrganizationStage string
const ( Lead OrganizationStage = "LEAD" Target OrganizationStage = "TARGET" Engaged OrganizationStage = "ENGAGED" Unqualified OrganizationStage = "UNQUALIFIED" ReadyToBuy OrganizationStage = "READY_TO_BUY" Onboarding OrganizationStage = "ONBOARDING" InitialValue OrganizationStage = "INITIAL_VALUE" RecurringValue OrganizationStage = "RECURRING_VALUE" MaxValue OrganizationStage = "MAX_VALUE" PendingChurn OrganizationStage = "PENDING_CHURN" Trial OrganizationStage = "TRIAL" )
func DecodeOrganizationStage ¶
func DecodeOrganizationStage(str string) OrganizationStage
func (OrganizationStage) IsValid ¶
func (e OrganizationStage) IsValid() bool
func (OrganizationStage) String ¶
func (e OrganizationStage) String() string
type PriceCalculationType ¶
type PriceCalculationType string
const ( PriceCalculationTypeNone PriceCalculationType = "" )
func DecodePriceCalculationType ¶
func DecodePriceCalculationType(s string) PriceCalculationType
func (PriceCalculationType) String ¶
func (e PriceCalculationType) String() string
type PricingModel ¶
type PricingModel string
const ( PricingModelNone PricingModel = "" PricingModelSubscription PricingModel = "SUBSCRIPTION" PricingModelOneTime PricingModel = "ONE_TIME" PricingModelUsage PricingModel = "USAGE" )
func DecodePricingModel ¶
func DecodePricingModel(s string) PricingModel
func (PricingModel) String ¶
func (e PricingModel) String() string
type RenewalLikelihood ¶
type RenewalLikelihood string
const ( // still used in opportunities, TODO migrate to V2 RenewalLikelihoodHigh RenewalLikelihood = "HIGH" RenewalLikelihoodMedium RenewalLikelihood = "MEDIUM" RenewalLikelihoodLow RenewalLikelihood = "LOW" RenewalLikelihoodZero RenewalLikelihood = "ZERO" RenewalLikelihoodHighV2 RenewalLikelihood = "HIGH_RENEWAL" RenewalLikelihoodMediumV2 RenewalLikelihood = "MEDIUM_RENEWAL" RenewalLikelihoodLowV2 RenewalLikelihood = "LOW_RENEWAL" RenewalLikelihoodZeroV2 RenewalLikelihood = "ZERO_RENEWAL" )
func DecodeRenewalLikelihood ¶
func DecodeRenewalLikelihood(input string) RenewalLikelihood
func (RenewalLikelihood) IsValid ¶
func (e RenewalLikelihood) IsValid() bool
func (RenewalLikelihood) String ¶
func (e RenewalLikelihood) String() string
func (RenewalLikelihood) ToV2 ¶
func (e RenewalLikelihood) ToV2() RenewalLikelihood
type TouchpointType ¶
type TouchpointType string
const ( TouchpointTypePageView TouchpointType = "PAGE_VIEW" TouchpointTypeInteractionSession TouchpointType = "INTERACTION_SESSION" TouchpointTypeNote TouchpointType = "NOTE" TouchpointTypeInteractionEventEmailSent TouchpointType = "INTERACTION_EVENT_EMAIL_SENT" TouchpointTypeInteractionEventEmailReceived TouchpointType = "INTERACTION_EVENT_EMAIL_RECEIVED" TouchpointTypeInteractionEventPhoneCall TouchpointType = "INTERACTION_EVENT_PHONE_CALL" TouchpointTypeInteractionEventChat TouchpointType = "INTERACTION_EVENT_CHAT" TouchpointTypeMeeting TouchpointType = "MEETING" TouchpointTypeActionCreated TouchpointType = "ACTION_CREATED" TouchpointTypeAction TouchpointType = "ACTION" TouchpointTypeLogEntry TouchpointType = "LOG_ENTRY" TouchpointTypeIssueCreated TouchpointType = "ISSUE_CREATED" TouchpointTypeIssueUpdated TouchpointType = "ISSUE_UPDATED" )
func DecodeTouchpointType ¶
func DecodeTouchpointType(str string) TouchpointType
func (TouchpointType) String ¶
func (e TouchpointType) String() string
Source Files ¶
- action_type.go
- billed_type.go
- charge_period.go
- contract_status.go
- currency.go
- custom_field.go
- enrich_source.go
- external_system.go
- invoice_status.go
- meeting_status.go
- onboarding_status.go
- opportunity_stage.go
- opportunity_type.go
- organization_relationship.go
- organization_stage.go
- price_calculation_type.go
- pricing_model.go
- renewal_likelihood.go
- touchpoint_type.go
Click to show internal directories.
Click to hide internal directories.