Skip to content

Commit

Permalink
fix faulty id assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
janpaepke committed Jan 27, 2025
1 parent de734c4 commit af6d81c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class PaymentChargebacksBinder extends Binder<ChargebackData, Cha
public get(id: string, parameters: GetParameters, callback: Callback<Chargeback>): void;
public get(id: string, parameters: GetParameters) {
if (renege(this, this.get, ...arguments)) return;
assertWellFormedId(id, 'refund');
assertWellFormedId(id, 'chargeback');
const { paymentId, ...query } = parameters;
assertWellFormedId(paymentId, 'payment');
return this.networkClient.get<ChargebackData, Chargeback>(`${getPathSegments(paymentId)}/${id}`, query);
Expand Down

0 comments on commit af6d81c

Please sign in to comment.