You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pages = self.client.list_subscriptions(
sort="updated_at", order="asc", limit=200, begin_time=begin_from.isoformat()
).pages()
for page in pages:
for subscription in page:
print(subscription.billing_info_id)
Thank you for taking the time to create this issue, @food-spotter
The billing_info_id is actually a new field that was just added to Recurly API, but hasn't been released in the client libraries (that should be happening today). The developer hub receives updates following the client libraries.
Were you experiencing any issues caused by the presence of the billing_info_id in the response without direct support existing in the client?
Hi @douglasmiller ,
That's correct. We were experiencing an issue due to the sudden occurance of this unexpected field being returned by the python-client.
We do some response validation and and this unexpected field raised an issue on our side.
Although we've made changes on our local code to now ignore unexpected fields so this issue is no longer a blocker, I do believe the python-client should only return the expected fields as specified by the API doc.
Describe the bug
Unexpected/undocumented field
billing_info_id
returned for theSubscription
Resource in v2019-10-10 of the API.It is also not described in the Subscription schema/data-model - https://github.com/recurly/recurly-client-python/blob/master/recurly/resources.py#L1392
To Reproduce
Expected behavior
This field should not be returned (thus raise an Error in the above example) since it is not part of the documented list of fields - https://developers.recurly.com/api/v2019-10-10/#operation/get_subscription
Your Environment
tested on
recurly==3.13.0
andrecurly==3.11.0
Python 3.8.5
The text was updated successfully, but these errors were encountered: