From c80f8b41ac9a29393109b274481b8e1e77cceb25 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Wed, 18 Dec 2024 10:20:49 +1100 Subject: [PATCH] supporters: Add recurring details to Stripe export --- conservancy/supporters/management/commands/export_stripe.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conservancy/supporters/management/commands/export_stripe.py b/conservancy/supporters/management/commands/export_stripe.py index e6c0f606..86b1e9bc 100644 --- a/conservancy/supporters/management/commands/export_stripe.py +++ b/conservancy/supporters/management/commands/export_stripe.py @@ -10,7 +10,7 @@ class Command(BaseCommand): def handle(self, *args, **options): payments = SustainerPayment.objects.select_related('order').order_by('paid_time') - columns = ['order_time', 'payment_time', 'name', 'email', 'amount', 'transaction_id', 'public_ack', 'shirt_size', 'join_list', 'street', 'city', 'state', 'zip_code', 'country'] + columns = ['order_time', 'payment_time', 'name', 'email', 'amount', 'transaction_id', 'recurring', 'subscription_id', 'public_ack', 'shirt_size', 'join_list', 'street', 'city', 'state', 'zip_code', 'country'] writer = csv.writer(sys.stdout) writer.writerow(columns) for payment in payments: @@ -22,6 +22,8 @@ class Command(BaseCommand): order.email, payment.amount, payment.stripe_payment_intent_ref, + order.recurring, + order.stripe_subscription_ref, order.acknowledge_publicly, repr(order.tshirt_size if order.tshirt_size else ''), order.add_to_mailing_list,