Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lime ¶
func (*Lime) SaveContact ¶
SaveContact upserts a contact matched by (source, source_id) rather than by factum ID - same reason as SaveCustomer. NotifyMaintenance is factum-owned (the operator toggle on the contacts page, including for Lime-synced rows) so a resync must not reset it; new Lime persons default it to true to match a manually created contact.
func (*Lime) SaveCustomer ¶
SaveCustomer upserts a customer matched by (source, source_id) rather than by factum ID - the factum ID is autogenerated (see SyncCustomers) so it can't be used to find a previously-synced row.
func (*Lime) SaveDelivery ¶
SaveDelivery upserts a service matched by (source, source_id) rather than by factum ID - the factum ID is autogenerated (see SyncCustomers) so it can't be used to find a previously-synced row.
Lime never feeds ServiceType/BandwidthMbps/MaxMacAddresses or the ELINE provisioning fields (Endpoint*/PseudowireID/L2VPNNetboxID) - those are only ever set from the factum side (the network GUI's service-type editor and ELINE provisioning flow, web/handler_service.go, web/handler_service_eline.go). row only carries Lime-owned fields (including AgreementStatus from agreement_status.text), so carrying the previously-stored values of these forward onto row before the wholesale Save() below keeps a resync from silently wiping out that factum-added enrichment.