chargebee-typescript icon indicating copy to clipboard operation
chargebee-typescript copied to clipboard

`in` operator does not seem to work whereas `is` does

Open ole-magnus opened this issue 1 year ago • 10 comments

Using the filter options is, in, etc, I run into problems:

const entitlements = await this.chargebee?.entitlement
  .list({
    feature_id: { is: featureId },
    entity_type: { in: ['plan_price'] },
  })
  .request();

does not work (the request fails)

whereas

const entitlements = await this.chargebee?.entitlement
  .list({
    feature_id: { is: featureId }
  })
  .request();

does.

This just follows the suggested typings and approach from the API documentation.

It would be great if someone from Chargebee could comment both on these issues but also look into the open PRs and other issues that seem unaddressed.

This issue from 2022 seems related and it worries me there are no responses: https://github.com/chargebee/chargebee-typescript/issues/31

ole-magnus avatar Jun 07 '24 09:06 ole-magnus

Hi @ole-magnus, I'm sorry for the inconvenience. We're currently looking into this and will get back soon. Though it looks similar, #31 is probably a different issue which is related to custom field and we'll address that as well.

cb-sriramthiagarajan avatar Jun 07 '24 12:06 cb-sriramthiagarajan

@cb-sriramthiagarajan ok, thanks for the response. Do you have a timeline on this?

ole-magnus avatar Jun 12 '24 21:06 ole-magnus

Hi @ole-magnus, we're currently looking into this. I'll come back with an update latest by tomorrow. Thanks for your patience.

cb-sriramthiagarajan avatar Jun 13 '24 08:06 cb-sriramthiagarajan

Hi @ole-magnus, we've identified the issue and will be working on a fix. I see that there's a support ticket open for this and we'll be following up there.

Will keep this issue open until it's fixed.

cb-sriramthiagarajan avatar Jun 14 '24 12:06 cb-sriramthiagarajan

@cb-sriramthiagarajan What is happening here? Anyone working on it? What is the ETA?

ole-magnus avatar Jul 05 '24 10:07 ole-magnus

Yes @ole-magnus, we're working on this. Unfortunately I don't have an ETA at the moment. I'll come back with an update later this week.

cb-sriramthiagarajan avatar Jul 08 '24 11:07 cb-sriramthiagarajan

Hi @ole-magnus, we're still working on this. Will keep this issue posted once we have a timeline. Thanks for your patience.

cb-sriramthiagarajan avatar Jul 12 '24 13:07 cb-sriramthiagarajan

@cb-sriramthiagarajan how are you doing?

ole-magnus avatar Jan 29 '25 11:01 ole-magnus

Hi @ole-magnus, I'm doing good. Trust all is well with you too :)

Coming back to this issue, we're targeting to close this by the end of this month as we were focusing on other priorities. My apologies for the long delay and thank you once again for your patience.

cb-sriramthiagarajan avatar Feb 03 '25 13:02 cb-sriramthiagarajan

Hi @ole-magnus, thanks much for your patience. We've deployed a fix for this. Please check and let us know if you're running into any issues. Thanks!

cb-sriramthiagarajan avatar Mar 04 '25 07:03 cb-sriramthiagarajan