user.billing: add better stub for subscription.items

This commit is contained in:
Luna 2021-08-29 19:32:19 -03:00
parent 60b7216aac
commit 4c1823c8b7
1 changed files with 3 additions and 1 deletions

View File

@ -217,7 +217,9 @@ async def get_subscription(subscription_id: int):
for field in to_tstamp:
drow[field] = timestamp_(drow[field])
drow["items"] = []
drow["items"] = [
{"id": "123", "plan_id": drow["payment_gateway_plan_id"], "quantity": 1}
]
return drow