@@ -154,15 +154,7 @@ def get_plans(self, source_id: str) -> str:
154
154
plans_data = plans_response .json ()
155
155
plans_data = plans_data ["plans" ]
156
156
157
- template = "\n " .join (
158
- [
159
- "{_count}.Name: {name}" ,
160
- "Active: {active}" ,
161
- "Interval: {interval}" ,
162
- "Interval Count: {interval_count}" ,
163
- "Amounts:" ,
164
- ]
165
- )
157
+ template = "{_count}.Name: {name}\n Active: {active}\n Interval: {interval}\n Interval Count: {interval_count}\n Amounts:"
166
158
response = ["**Listing plans:**" ]
167
159
for index , plan in enumerate (plans_data ):
168
160
response += (
@@ -181,17 +173,7 @@ def get_customers(self, source_id: str) -> str:
181
173
customers_data = customers_data ["customers" ]
182
174
183
175
# FIXME BUG here? mismatch of name and display name?
184
- template = "\n " .join (
185
- [
186
- "{_count}.Name: {display_name}" ,
187
- "Display Name: {name}" ,
188
- "OID: {oid}" ,
189
- "Active: {is_active}" ,
190
- "Email: {email}" ,
191
- "Notes: {notes}" ,
192
- "Current Plans:" ,
193
- ]
194
- )
176
+ template = "{_count}.Name: {display_name}\n Display Name: {name}\n OID: {oid}\n Active: {is_active}\n Email: {email}\n Notes: {notes}\n Current Plans:"
195
177
response = ["**Listing customers:**" ]
196
178
for index , customer in enumerate (customers_data ):
197
179
response += (
@@ -209,17 +191,7 @@ def get_subscriptions(self, source_id: str) -> str:
209
191
subscriptions_data = subscriptions_response .json ()
210
192
subscriptions_data = subscriptions_data ["subscriptions" ]
211
193
212
- template = "\n " .join (
213
- [
214
- "{_count}.Customer Name: {name}" ,
215
- "Customer Display Name: {display_name}" ,
216
- "Customer OID: {oid}" ,
217
- "Customer Email: {email}" ,
218
- "Active: {_active}" ,
219
- "Plan Name: {_plan_name}" ,
220
- "Plan Amounts:" ,
221
- ]
222
- )
194
+ template = "{_count}.Customer Name: {name}\n Customer Display Name: {display_name}\n Customer OID: {oid}\n Customer Email: {email}\n Active: {_active}\n Plan Name: {_plan_name}\n Plan Amounts:"
223
195
response = ["**Listing subscriptions:**" ]
224
196
for index , subscription in enumerate (subscriptions_data ):
225
197
response += (
0 commit comments