title: Get total amount spent for a Stripe customer
body: <p>What would be the easiest way to calculate the total amount a specific Stripe customer has spent?</p>
  
  <pre><code>fn(stripeCustomerId) -&gt; totalAmountSpent
  </code></pre>
  
  <p>I don't believe there are any API endpoints that allow aggregate queries, so I'm guessing I'd have to enumerate all payment intents or invoices and manually calculate the total?</p>