Skip to content

product_image

konigle.managers.commerce.product_image

Product image managers for the Konigle SDK.

This module provides managers for product image resources, enabling image management operations for products including upload, organization, and variant associations.

AsyncProductImageManager

Bases: BaseProductImageManager, BaseAsyncManager

Asynchronous manager for product image resources.

create(data) async

Create a new product image.

PARAMETER DESCRIPTION
data

Product image creation data including file or URL

TYPE: ProductImageCreate

RETURNS DESCRIPTION
ProductImage

Created product image instance with Active Record capabilities

get(id_) async

Get a specific product image by ID.

PARAMETER DESCRIPTION
id_

Product image ID (UUID)

TYPE: str

RETURNS DESCRIPTION
ProductImage

Product image instance with full detail data

update(id_, data) async

Update an existing product image.

PARAMETER DESCRIPTION
id_

Product image ID (UUID)

TYPE: str

data

Product image update data with partial fields

TYPE: ProductImageUpdate

RETURNS DESCRIPTION
ProductImage

Updated product image instance

BaseProductImageManager

Base class for product image managers with shared configuration.

base_path = '/admin/api/product-images' class-attribute instance-attribute

The API base path for this resource type.

filter_class = ProductImageFilters class-attribute instance-attribute

The filter model class for this resource type.

resource_class = ProductImage class-attribute instance-attribute

The resource model class this manager handles.

resource_update_class = ProductImageUpdate class-attribute instance-attribute

The model class used for updating resources.

ProductImageManager

Bases: BaseProductImageManager, BaseSyncManager

Synchronous manager for product image resources.

create(data)

Create a new product image.

PARAMETER DESCRIPTION
data

Product image creation data including file or URL

TYPE: ProductImageCreate

RETURNS DESCRIPTION
ProductImage

Created product image instance with Active Record capabilities

get(id_)

Get a specific product image by ID.

PARAMETER DESCRIPTION
id_

Product image ID (UUID)

TYPE: str

RETURNS DESCRIPTION
ProductImage

Product image instance with full detail data

update(id_, data)

Update an existing product image.

PARAMETER DESCRIPTION
id_

Product image ID (UUID)

TYPE: str

data

Product image update data with partial fields

TYPE: ProductImageUpdate

RETURNS DESCRIPTION
ProductImage

Updated product image instance