From 9bb2e5570ae507678c1ce76feae6803c5e66ada2 Mon Sep 17 00:00:00 2001
From: naomi <naomirosenberguk@gmail.com>
Date: Thu, 13 Jun 2019 15:56:56 +0000
Subject: [PATCH] Added customer_id to switch statements where it was missing

---
 CRM/Stripe/Api.php | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/CRM/Stripe/Api.php b/CRM/Stripe/Api.php
index 657be1f3..73360151 100644
--- a/CRM/Stripe/Api.php
+++ b/CRM/Stripe/Api.php
@@ -21,6 +21,10 @@ class CRM_Stripe_Api {
 
           case 'amount_refunded':
             return (int) $stripeObject->amount_refunded / 100;
+            
+          case 'customer_id':
+            return (string) $stripeObject->customer;
+
         }
         break;
 
@@ -60,6 +64,10 @@ class CRM_Stripe_Api {
 
           case 'description':
             return (string) $stripeObject->description;
+        
+          case 'customer_id':
+            return (string) $stripeObject->customer;
+
 
         }
         break;
-- 
GitLab