Module errors

Module errors 

Source
Expand description

Error types for commerce operations

Structs§

BatchError
Error information for a single item in a batch operation
BatchResult
Result of a batch operation that allows partial success

Enums§

BatchErrorCode
Categorized batch error codes for programmatic handling
CommerceError
Main error type for commerce operations

Constants§

MAX_BATCH_SIZE
Maximum items allowed per batch operation

Functions§

validate_batch_size
Validate batch size against maximum limit
validate_currency_code
Validate a currency code (ISO 4217 format)
validate_email
Validate an email address format
validate_phone
Validate a phone number format (basic validation)
validate_postal_code
Validate a postal/ZIP code format (basic validation)
validate_price
Validate a price/amount value
validate_quantity
Validate a quantity value
validate_required_text
Validate a required text field for non-empty content and length.
validate_required_uuid
Validate that a UUID is not the nil (all-zero) value.
validate_sku
Validate a SKU format

Type Aliases§

Result
Result type alias for commerce operations