Integration Guidelines
Provider Integration
Adding a New Provider
- Implement Provider Interface
- Add Configuration
- Test Integration
- Deploy Shim
Testing Requirements
- Unit Tests
- Integration Tests
- Load Tests
- Security Tests
Example Implementation
from abc import ABC, abstractmethod
class DeliveryProvider(ABC):
@abstractmethod
def get_quote(self, order: Order) -> Quote:
pass
@abstractmethod
def create_order(self, order: Order) -> str:
pass
@abstractmethod
def track_order(self, order_id: str) -> OrderStatus:
pass