-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0580f81
commit 7d76bd1
Showing
7 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
payment-service/src/main/java/com/finpay/payment_service/dtos/InvoiceResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.finpay.payment_service.dtos; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.UUID; | ||
|
||
@Data | ||
public class InvoiceResponse { | ||
private UUID id; | ||
private UUID userId; | ||
private BigDecimal totalAmount; | ||
private String currency; | ||
private String status; | ||
// Add other relevant fields as necessary | ||
} |
15 changes: 15 additions & 0 deletions
15
payment-service/src/main/java/com/finpay/payment_service/dtos/PaymentRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.finpay.payment_service.dtos; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.UUID; | ||
|
||
@Data | ||
public class PaymentRequest { | ||
private BigDecimal amount; | ||
private String currency; | ||
private String paymentMethod; // e.g., CREDIT_CARD, BANK_TRANSFER | ||
private UUID invoiceId; // Reference to Invoice managed by Invoice Service | ||
private String paymentGateway; // e.g., Stripe, PayPal | ||
} |
21 changes: 21 additions & 0 deletions
21
payment-service/src/main/java/com/finpay/payment_service/dtos/PaymentResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.finpay.payment_service.dtos; | ||
|
||
import com.finpay.payment_service.models.PaymentStatus; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.UUID; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class PaymentResponse { | ||
private UUID id; | ||
private String paymentReference; | ||
private BigDecimal amount; | ||
private String currency; | ||
private PaymentStatus status; | ||
private UUID invoiceId; | ||
private String paymentGateway; | ||
private String message; | ||
} |
13 changes: 13 additions & 0 deletions
13
payment-service/src/main/java/com/finpay/payment_service/dtos/RefundRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.finpay.payment_service.dtos; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.UUID; | ||
|
||
@Data | ||
public class RefundRequest { | ||
private UUID paymentId; | ||
private BigDecimal amount; | ||
private String reason; | ||
} |
20 changes: 20 additions & 0 deletions
20
payment-service/src/main/java/com/finpay/payment_service/dtos/RefundResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.finpay.payment_service.dtos; | ||
|
||
import com.finpay.payment_service.models.RefundStatus; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.LocalDateTime; | ||
import java.util.UUID; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class RefundResponse { | ||
private UUID id; | ||
private String refundReference; | ||
private RefundStatus status; | ||
private BigDecimal amount; | ||
private String reason; | ||
private LocalDateTime createdAt; | ||
} |
11 changes: 11 additions & 0 deletions
11
payment-service/src/main/java/com/finpay/payment_service/dtos/TransactionRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.finpay.payment_service.dtos; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Data | ||
public class TransactionRequest { | ||
private String transactionType; | ||
private BigDecimal amount; | ||
} |
21 changes: 21 additions & 0 deletions
21
payment-service/src/main/java/com/finpay/payment_service/dtos/TransactionResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.finpay.payment_service.dtos; | ||
|
||
import com.finpay.payment_service.models.TransactionStatus; | ||
import com.finpay.payment_service.models.TransactionType; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.LocalDateTime; | ||
import java.util.UUID; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class TransactionResponse { | ||
private UUID id; | ||
private String transactionReference; | ||
private TransactionType type; | ||
private TransactionStatus status; | ||
private BigDecimal amount; | ||
private LocalDateTime createdAt; | ||
} |