Description of the Bug
When fetching subscriptions and using an [in] filter, this filter does not seem to work.
[is] seems to work just fine.
I think this happens because arrays are serialized the wrong way, causing the API to ignore the filter completely?
This is the serializedParameters that is generated: status[in][0]=active&status[in][1]=in_trial.
I think it should be: status[in]=["active", "in_trial"]
Steps to reproduce
This code is generated using the API Explorer:
require_once('vendor/autoload.php');
use ChargeBee\ChargeBee\Environment;
use ChargeBee\ChargeBee\Models\Subscription;
Environment::configure("<REDACTED>,"<REDACTED>");
$all = Subscription::all(array(
"status[in]" => ["active","in_trial"]
));
foreach($all as $entry){
$subscription = $entry->subscription();
$customer = $entry->customer();
$card = $entry->card();
}
Expected Behavior
I expect the list that is returned to be filtered according to the 'status' filter passed, but the filter is totally ignored.
Code Snippets (if applicable)
Operating System
Linux
Language version
PHP 8.3.9
Library version
v4.15.1
Additional context
No response
Description of the Bug
When fetching subscriptions and using an [in] filter, this filter does not seem to work.
[is] seems to work just fine.
I think this happens because arrays are serialized the wrong way, causing the API to ignore the filter completely?
This is the
serializedParametersthat is generated:status[in][0]=active&status[in][1]=in_trial.I think it should be:
status[in]=["active", "in_trial"]Steps to reproduce
This code is generated using the API Explorer:
Expected Behavior
I expect the list that is returned to be filtered according to the 'status' filter passed, but the filter is totally ignored.
Code Snippets (if applicable)
Operating System
Linux
Language version
PHP 8.3.9
Library version
v4.15.1
Additional context
No response