event

package
v0.0.0-...-48cd7e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

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 ContractDeleteEvent struct {
	Tenant    string    `json:"tenant" validate:"required"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type ContractRefreshLtvEvent

type ContractRefreshLtvEvent struct {
	Tenant string `json:"tenant" validate:"required"`
}

type ContractRefreshStatusEvent

type ContractRefreshStatusEvent struct {
	Tenant string `json:"tenant" validate:"required"`
}

type ContractUpdateStatusEvent

type ContractUpdateStatusEvent struct {
	Tenant           string     `json:"tenant" validate:"required"`
	Status           string     `json:"status" validate:"required"`
	ServiceStartedAt *time.Time `json:"serviceStartedAt,omitempty"`
	EndedAt          *time.Time `json:"endedAt,omitempty"`
}

type RolloutRenewalOpportunityEvent

type RolloutRenewalOpportunityEvent struct {
	Tenant string `json:"tenant" validate:"required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL