Skip to content

Commit

Permalink
edit function name
Browse files Browse the repository at this point in the history
  • Loading branch information
reywyn committed Nov 21, 2024
1 parent 06c60b6 commit 2eaa0d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/craftgate/adapter/PaymentAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public PaymentTransactionRefundResponse retrievePaymentTransactionRefund(Long id
return HttpClient.get(requestOptions.getBaseUrl() + path, createHeaders(path, requestOptions), PaymentTransactionRefundResponse.class);
}

public PaymentTransactionRefundResponse refundPaymentTransactionManual(RefundPaymentTransactionMarkAsRefundedRequest refundPaymentTransactionMarkAsRefundedRequest) {
public PaymentTransactionRefundResponse refundPaymentTransactionMarkAsRefunded(RefundPaymentTransactionMarkAsRefundedRequest refundPaymentTransactionMarkAsRefundedRequest) {
String path = "/payment/v1/refund-transactions/manual";
return HttpClient.post(requestOptions.getBaseUrl() + path, createHeaders(refundPaymentTransactionMarkAsRefundedRequest, path, requestOptions),
refundPaymentTransactionMarkAsRefundedRequest, PaymentTransactionRefundResponse.class);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/craftgate/sample/PaymentSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ void refund_payment_transaction_mark_as_refunded() {
.description("marked as refunded")
.build();

PaymentTransactionRefundResponse response = craftgate.payment().refundPaymentTransactionManual(request);
PaymentTransactionRefundResponse response = craftgate.payment().refundPaymentTransactionMarkAsRefunded(request);
assertNotNull(response);
assertEquals(RefundStatus.SUCCESS, response.getStatus());
}
Expand Down

0 comments on commit 2eaa0d3

Please sign in to comment.