-
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
Showing
4 changed files
with
59 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
27 changes: 27 additions & 0 deletions
27
src/main/java/page/clab/api/global/common/slack/domain/SlackMembershipFeeInfo.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,27 @@ | ||
package page.clab.api.global.common.slack.domain; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import page.clab.api.domain.memberManagement.member.application.dto.shared.MemberBasicInfoDto; | ||
import page.clab.api.domain.members.membershipFee.domain.MembershipFee; | ||
|
||
@Getter | ||
@Builder | ||
public class SlackMembershipFeeInfo { | ||
|
||
private String memberId; | ||
private String memberName; | ||
private String category; | ||
private Long amount; | ||
private String content; | ||
|
||
public static SlackMembershipFeeInfo create(MembershipFee membershipFee, MemberBasicInfoDto memberInfo) { | ||
return SlackMembershipFeeInfo.builder() | ||
.memberId(memberInfo.getMemberId()) | ||
.memberName(memberInfo.getMemberName()) | ||
.category(membershipFee.getCategory()) | ||
.content(membershipFee.getContent()) | ||
.amount(membershipFee.getAmount()) | ||
.build(); | ||
} | ||
} |