Skip to content

Commit

Permalink
fix: rename $async_reset to $reset_async_payment
Browse files Browse the repository at this point in the history
  • Loading branch information
awwit committed Jan 23, 2024
1 parent c22ec1d commit c4eb721
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mocks/payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const mockPayment = {
}),

resetAsyncPayment(id) {
return this.request('put', '/payments', id, { $async_reset: true });
return this.request('put', '/payments', id, { $reset_async_payment: true });
},

onSuccess: jest.fn(),
Expand Down
2 changes: 1 addition & 1 deletion src/payment/payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default class Payment {
* @returns {Promise<object>}
*/
resetAsyncPayment(id) {
return this.request('put', '/payments', id, { $async_reset: true });
return this.request('put', '/payments', id, { $reset_async_payment: true });
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test/payment/card-stripe.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describePayment('payment/card/stripe', (_request, options, _paymentMock) => {
expect(result).toEqual({ status: 'succeeded' });

expect(request).toHaveBeenCalledWith('put', '/payments', paymentId, {
$async_reset: true,
$reset_async_payment: true,
});
});
});
Expand Down

0 comments on commit c4eb721

Please sign in to comment.