Skip to content

Commit 1f0a33b

Browse files
committed
Refactor
1 parent 6fcfc2f commit 1f0a33b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/it/pierfani/smsapi/dto/CodeSendingResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
public class CodeSendingResponse {
77
private String id;
88
private String code;
9-
private String phoneNumber;
9+
private String phone_number;
1010
private String from;
1111
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
package it.pierfani.smsapi.dto;
22

3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
35
import lombok.Data;
46

57
@Data
68
public class CodeVerificationRequest {
79
private String code;
10+
@JsonProperty("phone_number")
811
private String phoneNumber;
912
}

0 commit comments

Comments
 (0)