You are working on the hyperswitch repository (Rust payment processing system).…
- User
You are working on the hyperswitch repository (Rust payment processing system).
REPOSITORY SETUP:
- Repository: juspay/hyperswitch
- Working directory: ./repos/hyperswitch_pool_7 (already cloned)
- Base commit: f3ab3d63f69279af9254f15eba5654c0680a0747
- Task ID: juspay__hyperswitch-9332
- Version: v1.117.0
TASK DESCRIPTION: Bug: Create Customer
DETAILED CONTEXT & HINTS:
Type of Change
- Bugfix
- New feature
- Enhancement
- Refactoring
- Dependency updates
- Documentation
- CI/CD
Summary
This PR introduces a create customer handler for the Chargebee connector. It enables merchants to create and manage customers in Chargebee directly through Hyperswitch by mapping customer data between our domain models and Chargebee’s API.
Key Changes
-
New Connector Integration
- Added
ConnectorIntegration<CreateConnectorCustomer, ConnectorCustomerData, PaymentsResponseData>implementation for Chargebee. - Added response mapper to convert Chargebee’s response into
PaymentsResponseData::ConnectorCustomerResponse.
- Added
-
Extended Response Model
-
ConnectorCustomerResponsenow carries optional fields:nameemailbilling_address
-
-
Domain Models & Flow Types
- Extended
ConnectorCustomerDatato support new fields (customer_id,billing_address).
- Extended
Benefits
- Merchants can now create customers in Chargebee via Hyperswitch.
- Unified model for customer creation across connectors.
- Future-proofing: response carries richer customer metadata, making subscription flows easier to support.
Assistant
I'll help you implement the Chargebee connector's customer creation feature. Let me start by understanding the current codebase structure and identifying the key files that need to be modified.
First, let me explore the repository structure to understand how connectors are organized:
- Adding a new connector integration for Chargebee customer creation
- Extending response models to include customer metadata
- Modifying domain models to support new fields
Let me start by exploring the repository structure to understand where connector implementations are located and how they're organized.
Assistant
Let me explore the broader connector structure to understand how Chargebee is implemented:
Assistant
(no content)
Assistant
Let me look at the chargebee connector directory specifically:
Assistant
(no content)
Assistant
Now let me check the main connector module to understand how connectors are structured:
Assistant
(no content)
Assistant
(no content)
Assistant
Let me look at the domain models to understand the connector customer data structures:
Assistant
(no content)
Assistant
Let me check the domain models for connector customer data:
Assistant
(no content)
Assistant
Let me also check the existing connector integration traits to understand how connector integrations work:
Assistant
(no content)
Assistant
(no content)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.