What problem does your feature request address?
Currently the only way to retrieve a list of subscriptions related to a single customer is through chargebee.Subscription.list({"customer_id[is]": "<customer-id>"}). This returns a ListResult response which includes duplicative customer information for each item in the list result. This ultimately makes parsing the response into something like a dataclass more difficult than it should be.
Describe the desired solution
It would be more convenient to have Customer.retrieve({"id[is]": "<customer_id>"}) return subscriptions along with the customer information in the following format:
{
"customer": {
"id": "<id>",
...
"subscriptions": [
{ <subscription-one> },
{ <subscription-two> },
...
]
{
Alternatives Considered
I'd love to know if there is a way to include additional info from the Customer.retrieve method; however, documentation states that this call only returns the Customer and (an optional) Card objects.
What problem does your feature request address?
Currently the only way to retrieve a list of subscriptions related to a single customer is through
chargebee.Subscription.list({"customer_id[is]": "<customer-id>"}). This returns aListResultresponse which includes duplicative customer information for each item in the list result. This ultimately makes parsing the response into something like adataclassmore difficult than it should be.Describe the desired solution
It would be more convenient to have
Customer.retrieve({"id[is]": "<customer_id>"})return subscriptions along with the customer information in the following format:{ "customer": { "id": "<id>", ... "subscriptions": [ { <subscription-one> }, { <subscription-two> }, ... ] {Alternatives Considered
I'd love to know if there is a way to include additional info from the
Customer.retrievemethod; however, documentation states that this call only returns theCustomerand (an optional)Cardobjects.