Skip to content

get_invoiceitems() not passing customer id #187

@sherrardb

Description

@sherrardb

stripe-perl/lib/Net/Stripe.pm

Lines 1646 to 1661 in 079e182

method get_invoiceitems(HashRef :$created?,
Net::Stripe::Customer|Str :$customer?,
Str :$ending_before?,
Int :$limit?,
Str :$starting_after?) {
if (ref($customer)) {
$customer = $customer->id;
}
$self->_get_collections('invoiceitems',
created => $created,
ending_before => $ending_before,
limit => $limit,
starting_after => $starting_after
);
}
}

GET https://api.stripe.com/v1/invoiceitems?limit=1

unfortunately the current unit test passes because

  • there is only one invoice in the system at that point, and we delete in the next unit test.
  • we are passing limit=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions