From 7492241c3ce9be0974847e0d374c559d3af223c7 Mon Sep 17 00:00:00 2001
From: Matthew Wire <mjw@mjwconsult.co.uk>
Date: Thu, 14 Nov 2024 00:03:43 +0000
Subject: [PATCH] Add current_period_start to getObjectParam for subscriptions

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

diff --git a/CRM/Stripe/Api.php b/CRM/Stripe/Api.php
index 8c4aec07..d02cda8b 100644
--- a/CRM/Stripe/Api.php
+++ b/CRM/Stripe/Api.php
@@ -194,6 +194,9 @@ class CRM_Stripe_Api {
           case 'next_sched_contribution_date':
             return self::formatDate($stripeObject->current_period_end);
 
+          case 'current_period_start':
+            return self::formatDate($stripeObject->current_period_start);
+
           case 'cycle_day':
             return date("d", $stripeObject->billing_cycle_anchor);
 
-- 
GitLab