Documentation ¶
Index ¶
- Constants
- func NewContractDeleteEvent(aggregate eventstore.Aggregate, updatedAt time.Time) (eventstore.Event, error)
- func NewContractRefreshLtvEvent(aggr eventstore.Aggregate) (eventstore.Event, error)
- func NewContractRefreshStatusEvent(aggr eventstore.Aggregate) (eventstore.Event, error)
- func NewContractUpdateStatusEvent(aggr eventstore.Aggregate, status string, serviceStartedAt, endedAt *time.Time) (eventstore.Event, error)
- func NewRolloutRenewalOpportunityEvent(aggr eventstore.Aggregate) (eventstore.Event, error)
- type ContractDeleteEvent
- type ContractRefreshLtvEvent
- type ContractRefreshStatusEvent
- type ContractUpdateStatusEvent
- type RolloutRenewalOpportunityEvent
Constants ¶
View Source
const ( // Deprecated ContractCreateV1 = "V1_CONTRACT_CREATE" // Deprecated ContractUpdateV1 = "V1_CONTRACT_UPDATE" ContractUpdateStatusV1 = "V1_CONTRACT_UPDATE_STATUS" ContractRefreshStatusV1 = "V1_CONTRACT_REFRESH_STATUS" ContractRefreshLtvV1 = "V1_CONTRACT_REFRESH_LTV" ContractRolloutRenewalOpportunityV1 = "V1_CONTRACT_ROLLOUT_RENEWAL_OPPORTUNITY" ContractDeleteV1 = "V1_CONTRACT_DELETE" )
View Source
const ( FieldMaskName = "name" FieldMaskContractURL = "contractURL" FieldMaskSignedAt = "signedAt" FieldMaskEndedAt = "endedAt" FieldMaskServiceStartedAt = "serviceStartedAt" FieldMaskInvoicingStartDate = "invoicingStartDate" FieldMaskBillingCycle = "billingCycle" FieldMaskBillingCycleInMonths = "billingCycleInMonths" FieldMaskCurrency = "currency" FieldMaskAddressLine1 = "addressLine1" FieldMaskAddressLine2 = "addressLine2" FieldMaskZip = "zip" FieldMaskCountry = "country" FieldMaskRegion = "region" FieldMaskLocality = "locality" FieldMaskOrganizationLegalName = "organizationLegalName" FieldMaskInvoiceEmail = "invoiceEmail" FieldMaskInvoiceEmailCC = "invoiceEmailCC" FieldMaskInvoiceEmailBCC = "invoiceEmailBCC" FieldMaskStatus = "status" FieldMaskInvoiceNote = "invoiceNote" FieldMaskNextInvoiceDate = "nextInvoiceDate" FieldMaskCanPayWithCard = "canPayWithCard" FieldMaskCanPayWithDirectDebit = "canPayWithDirectDebit" FieldMaskCanPayWithBankTransfer = "canPayWithBankTransfer" FieldMaskPayOnline = "payOnline" FieldMaskPayAutomatically = "payAutomatically" FieldMaskInvoicingEnabled = "invoicingEnabled" FieldMaskAutoRenew = "autoRenew" FieldMaskCheck = "check" FieldMaskDueDays = "dueDays" FieldMaskLengthInMonths = "lengthInMonths" FieldMaskApproved = "approved" )
Variables ¶
This section is empty.
Functions ¶
func NewContractDeleteEvent ¶
func NewContractDeleteEvent(aggregate eventstore.Aggregate, updatedAt time.Time) (eventstore.Event, error)
func NewContractRefreshLtvEvent ¶
func NewContractRefreshLtvEvent(aggr eventstore.Aggregate) (eventstore.Event, error)
func NewContractRefreshStatusEvent ¶
func NewContractRefreshStatusEvent(aggr eventstore.Aggregate) (eventstore.Event, error)
func NewContractUpdateStatusEvent ¶
func NewContractUpdateStatusEvent(aggr eventstore.Aggregate, status string, serviceStartedAt, endedAt *time.Time) (eventstore.Event, error)
func NewRolloutRenewalOpportunityEvent ¶
func NewRolloutRenewalOpportunityEvent(aggr eventstore.Aggregate) (eventstore.Event, error)
Types ¶
type ContractDeleteEvent ¶
type ContractRefreshLtvEvent ¶
type ContractRefreshLtvEvent struct {
Tenant string `json:"tenant" validate:"required"`
}
type ContractRefreshStatusEvent ¶
type ContractRefreshStatusEvent struct {
Tenant string `json:"tenant" validate:"required"`
}
type RolloutRenewalOpportunityEvent ¶
type RolloutRenewalOpportunityEvent struct {
Tenant string `json:"tenant" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.