calendarseed

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package calendarseed gives a new account the operating calendars a ship-by commitment is resolved against.

Its own package because both account registration and sandbox provisioning need it, and the sandbox mediator cannot import the service layer that owns registration without a cycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Seed

func Seed(ctx context.Context, repos domain.RepoFactory, accountID string, asOf time.Time) *apierror.APIError

Seed gives an account the two calendars a commitment needs, seeded with US federal holidays.

Seeded rather than left empty so the feature does something on day one: an account that never opens the settings page still stops committing orders to Thanksgiving. Everything written here is an ordinary editable row — a plant that runs through Columbus Day or ships Saturdays changes it, and nothing about the federal list binds a private factory.

Idempotent by code, so re-running it on an account that already has calendars tops up the closure horizon and touches nothing else. That is what makes it safe to call from registration, from a sandbox, and from a backfill over existing accounts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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