Customer Information
Name: {{ customer.name or 'N/A' }}
Email: {{ customer.email }}
Phone: {{ customer.phone or 'N/A' }}
Created: {{ customer.created_at.strftime('%Y-%m-%d %H:%M') if customer.created_at else 'N/A' }}
Subscription Information
Plan: {% if plan %} {{ plan.name }} {% else %} Plan {{ customer.subscription_plan_id or 'N/A' }} {% endif %}
Status: {% if customer.subscription_status %} {% if customer.subscription_status == 'active' %} Active {% elif customer.subscription_status == 'canceled' %} Canceled {% elif customer.subscription_status == 'past_due' %} Past Due {% else %} {{ customer.subscription_status }} {% endif %} {% else %} No subscription {% endif %}
Billing Cycle: {% if customer.subscription_billing_cycle %} {{ customer.subscription_billing_cycle.title() }} {% else %} N/A {% endif %}
Current Period: {% if customer.subscription_current_period_start and customer.subscription_current_period_end %} {{ customer.subscription_current_period_start.strftime('%Y-%m-%d') }} to {{ customer.subscription_current_period_end.strftime('%Y-%m-%d') }} {% else %} N/A {% endif %}
{% if customer.billing_address_line1 or customer.shipping_address_line1 %}
{% if customer.billing_address_line1 %}
Billing Address
{{ customer.billing_address_line1 }}
{% if customer.billing_address_line2 %}{{ customer.billing_address_line2 }}
{% endif %} {% if customer.billing_city %}{{ customer.billing_city }}{% endif %} {% if customer.billing_state %}, {{ customer.billing_state }}{% endif %} {% if customer.billing_postal_code %} {{ customer.billing_postal_code }}{% endif %}
{% if customer.billing_country %}{{ customer.billing_country }}{% endif %}
{% endif %} {% if customer.shipping_address_line1 %}
Shipping Address
{{ customer.shipping_address_line1 }}
{% if customer.shipping_address_line2 %}{{ customer.shipping_address_line2 }}
{% endif %} {% if customer.shipping_city %}{{ customer.shipping_city }}{% endif %} {% if customer.shipping_state %}, {{ customer.shipping_state }}{% endif %} {% if customer.shipping_postal_code %} {{ customer.shipping_postal_code }}{% endif %}
{% if customer.shipping_country %}{{ customer.shipping_country }}{% endif %}
{% endif %}
{% endif %} {% if customer.tax_id_type and customer.tax_id_value %}
Tax Information
Tax ID Type: {{ customer.tax_id_type }}
Tax ID Value: {{ customer.tax_id_value }}
{% endif %} {% if customer.stripe_customer_id or customer.stripe_subscription_id %}
Stripe Information
{% if customer.stripe_customer_id %} {% endif %} {% if customer.stripe_subscription_id %} {% endif %}
Stripe Customer ID: {{ customer.stripe_customer_id }}
Stripe Subscription ID: {{ customer.stripe_subscription_id }}
{% endif %}