Skip to content

Commit

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

public PaymentTransactionRefundResponse refundPaymentTransactionManual(RefundPaymentTransactionManualRequest refundPaymentTransactionManualRequest) {
public PaymentTransactionRefundResponse refundPaymentTransactionManual(RefundPaymentTransactionMarkAsRefundedRequest refundPaymentTransactionMarkAsRefundedRequest) {
String path = "/payment/v1/refund-transactions/manual";
return HttpClient.post(requestOptions.getBaseUrl() + path, createHeaders(refundPaymentTransactionManualRequest, path, requestOptions),
refundPaymentTransactionManualRequest, PaymentTransactionRefundResponse.class);
return HttpClient.post(requestOptions.getBaseUrl() + path, createHeaders(refundPaymentTransactionMarkAsRefundedRequest, path, requestOptions),
refundPaymentTransactionMarkAsRefundedRequest, PaymentTransactionRefundResponse.class);
}

public PaymentRefundResponse refundPayment(RefundPaymentRequest refundPaymentRequest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@Data
@Builder
public class RefundPaymentTransactionManualRequest {
public class RefundPaymentTransactionMarkAsRefundedRequest {

private Long paymentTransactionRefundId;
private String conversationId;
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/io/craftgate/sample/PaymentSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -1580,10 +1580,10 @@ void retrieve_payment_transaction_refund() {
}

@Test
void refund_payment_transaction_manual() {
RefundPaymentTransactionManualRequest request = RefundPaymentTransactionManualRequest.builder()
void refund_payment_transaction_mark_as_refunded() {
RefundPaymentTransactionMarkAsRefundedRequest request = RefundPaymentTransactionMarkAsRefundedRequest.builder()
.paymentTransactionRefundId(1L)
.description("refunded manually")
.description("marked as refunded")
.build();

PaymentTransactionRefundResponse response = craftgate.payment().refundPaymentTransactionManual(request);
Expand Down

0 comments on commit 06c60b6

Please sign in to comment.