Expand description
Error types for commerce operations
Structs§
- Batch
Error - Error information for a single item in a batch operation
- Batch
Result - Result of a batch operation that allows partial success
Enums§
- Batch
Error Code - Categorized batch error codes for programmatic handling
- Commerce
Error - 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