-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from schelldorfer/main
#141 Error in Parsing WhatsApp Business Phone Number Response - New fields
- Loading branch information
Showing
6 changed files
with
249 additions
and
127 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
16 changes: 16 additions & 0 deletions
16
src/main/java/com/whatsapp/api/domain/phone/Throughput.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.whatsapp.api.domain.phone; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.whatsapp.api.domain.phone.type.LevelType; | ||
|
||
/** | ||
* The type Throughput. | ||
*/ | ||
@JsonInclude(value = Include.NON_NULL) | ||
public record Throughput( | ||
|
||
@JsonProperty("level") LevelType Level) | ||
{ | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/com/whatsapp/api/domain/phone/type/LevelType.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,38 @@ | ||
package com.whatsapp.api.domain.phone.type; | ||
|
||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
/** | ||
* The enum Level type. | ||
*/ | ||
public enum LevelType | ||
{ | ||
|
||
/** | ||
* Standard Level type. | ||
*/ | ||
STANDARD("STANDARD"), | ||
/** | ||
* High Level type. | ||
*/ | ||
HIGH("HIGH"), | ||
NOT_APPLICABLE("NOT_APPLICABLE"); | ||
|
||
private final String value; | ||
|
||
LevelType(String value) | ||
{ | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* Gets value. | ||
* | ||
* @return the value | ||
*/ | ||
@JsonValue | ||
public String getValue() | ||
{ | ||
return value; | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/com/whatsapp/api/domain/phone/type/PlatformType.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,38 @@ | ||
package com.whatsapp.api.domain.phone.type; | ||
|
||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
/** | ||
* The enum Platform type. | ||
*/ | ||
public enum PlatformType | ||
{ | ||
|
||
/** | ||
* Cloud API Platform type. | ||
*/ | ||
CLOUD_API("CLOUD_API"), | ||
/** | ||
* On-Premises API Platform type. | ||
*/ | ||
ON_PREMISE("ON_PREMISE"), | ||
NOT_APPLICABLE("NOT_APPLICABLE"); | ||
|
||
private final String value; | ||
|
||
PlatformType(String value) | ||
{ | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* Gets value. | ||
* | ||
* @return the value | ||
*/ | ||
@JsonValue | ||
public String getValue() | ||
{ | ||
return value; | ||
} | ||
} |
Oops, something went wrong.