Skip to content

Commit

Permalink
Removes identity number field on onboarding flow (#167)
Browse files Browse the repository at this point in the history
* Removes identity number field on onboarding flow

* Update
  • Loading branch information
semihshn authored Apr 1, 2024
1 parent f404981 commit d7a9416
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public class CreateMemberRequest {
private String address;
private String email;
private String phoneNumber;
private String identityNumber;
private String contactName;
private String contactSurname;
private MemberType memberType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class UpdateMemberRequest {
private String address;
private String email;
private String phoneNumber;
private String identityNumber;
private String contactName;
private String contactSurname;
private MemberType memberType;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/io/craftgate/response/MemberResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public class MemberResponse {
private String email;
private String address;
private String phoneNumber;
private String identityNumber;
private String contactName;
private String contactSurname;
private String legalCompanyTitle;
Expand Down
7 changes: 0 additions & 7 deletions src/test/java/io/craftgate/sample/OnboardingSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ void create_sub_merchant() {
.email("[email protected]")
.phoneNumber("905551111111")
.iban("TR930006701000000001111111")
.identityNumber("11111111110")
.legalCompanyTitle("Dem Zeytinyağı Üretim Ltd. Şti.")
.name("Dem Zeytinyağı Üretim Ltd. Şti.")
.memberType(MemberType.LIMITED_OR_JOINT_STOCK_COMPANY)
Expand All @@ -49,7 +48,6 @@ void create_sub_merchant() {
assertEquals(request.getEmail(), response.getEmail());
assertEquals(request.getPhoneNumber(), response.getPhoneNumber());
assertEquals(request.getIban(), response.getIban());
assertEquals(request.getIdentityNumber(), response.getIdentityNumber());
assertEquals(request.getLegalCompanyTitle(), response.getLegalCompanyTitle());
assertEquals(request.getName(), response.getName());
assertEquals(request.getMemberType(), response.getMemberType());
Expand All @@ -70,7 +68,6 @@ void update_sub_merchant() {
.contactSurname("Demir")
.email("[email protected]")
.phoneNumber("905551111111")
.identityNumber("11111111110")
.legalCompanyTitle("Dem Zeytinyağı Üretim Ltd. Şti.")
.name("Dem Zeytinyağı Üretim Ltd. Şti.")
.memberType(MemberType.LIMITED_OR_JOINT_STOCK_COMPANY)
Expand All @@ -88,7 +85,6 @@ void update_sub_merchant() {
assertEquals(request.getEmail(), response.getEmail());
assertEquals(request.getPhoneNumber(), response.getPhoneNumber());
assertEquals(request.getIban(), response.getIban());
assertEquals(request.getIdentityNumber(), response.getIdentityNumber());
assertEquals(request.getLegalCompanyTitle(), response.getLegalCompanyTitle());
assertEquals(request.getName(), response.getName());
assertEquals(request.getTaxNumber(), response.getTaxNumber());
Expand Down Expand Up @@ -123,7 +119,6 @@ void create_buyer() {
assertEquals(request.getEmail(), response.getEmail());
assertEquals(request.getPhoneNumber(), response.getPhoneNumber());
assertEquals(request.getName(), response.getName());
assertEquals(request.getIdentityNumber(), response.getIdentityNumber());
}

@Test
Expand Down Expand Up @@ -181,7 +176,6 @@ void create_member_as_sub_merchant_and_buyer() {
.email("[email protected]")
.phoneNumber("905551111111")
.iban("TR930006701000000001111111")
.identityNumber("11111111110")
.legalCompanyTitle("Dem Zeytinyağı Üretim Ltd. Şti.")
.name("Dem Zeytinyağı Üretim Ltd. Şti.")
.memberType(MemberType.LIMITED_OR_JOINT_STOCK_COMPANY)
Expand All @@ -198,7 +192,6 @@ void create_member_as_sub_merchant_and_buyer() {
assertEquals(request.getEmail(), response.getEmail());
assertEquals(request.getPhoneNumber(), response.getPhoneNumber());
assertEquals(request.getIban(), response.getIban());
assertEquals(request.getIdentityNumber(), response.getIdentityNumber());
assertEquals(request.getLegalCompanyTitle(), response.getLegalCompanyTitle());
assertEquals(request.getName(), response.getName());
assertEquals(request.getMemberType(), response.getMemberType());
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/io/craftgate/unit/HashGeneratorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ public class HashGeneratorTest {
@Test
void should_generate_hash() {
//given
String expectedSignature = "QQO5oHUUcNzHd9Sjc3RfDQbhHX1UqQiWsjYL3xoQaYA=";
String expectedSignature = "Tj0mkbp+WLBwLhS65CjX708PGCl9hD9rlT6n6Zgcyi8=";
CreateMemberRequest request = CreateMemberRequest.builder()
.memberExternalId("ext-1511")
.email("[email protected]")
.phoneNumber("905551111111")
.name("Haluk Demir")
.identityNumber("11111111110")
.build();

//when
Expand Down

0 comments on commit d7a9416

Please sign in to comment.