Skip to content

base

konigle.models.commerce.base

Base models and mixins for commerce resources.

This module provides the foundation for all commerce resource models, including common timestamp patterns and shared field definitions.

IDMixin

Bases: BaseModel

Mixin for models that include an ID field.

Provides a common ID field that many resources include.

id property

Alias for uid to provide uniform interface as with other models.

uid = Field(..., title='ID', description='Unique identifier of the resource.') class-attribute instance-attribute

Unique identifier of the resource.

TimestampedResource

Bases: BaseModel

Timestamped resource model for commerce resources.

Provides the djshopify timestamp fields that are common across products, variants, and images.

created_at = Field(default=None, title='Created At', description='Timestamp when the resource was created.') class-attribute instance-attribute

Created timestamp of the resource.

updated_at = Field(default=None, title='Updated At', description='Timestamp when the resource was last updated in the source system.') class-attribute instance-attribute

Last updated timestamp of the resource.