-
Notifications
You must be signed in to change notification settings - Fork 50
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 #262 from plivo/revert-261-revert-260-VT-6710
Revert "Revert "Vt 6710""
- Loading branch information
Showing
28 changed files
with
750 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Written manually. | ||
|
||
version=5.31.1 | ||
version=5.32.0 | ||
groupId=com.plivo | ||
artifactId=plivo-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
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
26 changes: 26 additions & 0 deletions
26
src/main/java/com/plivo/api/models/verify/GetVerifiedCallerId.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,26 @@ | ||
package com.plivo.api.models.verify; | ||
|
||
import com.plivo.api.exceptions.PlivoValidationException; | ||
import com.plivo.api.models.base.VoiceGetter; | ||
import retrofit2.Call; | ||
|
||
public class GetVerifiedCallerId extends VoiceGetter<GetVerifiedCallerIdResponse> { | ||
public GetVerifiedCallerId(String id) { | ||
super(id); | ||
} | ||
|
||
@Override | ||
protected Call<GetVerifiedCallerIdResponse> obtainCall() throws PlivoValidationException { | ||
return client().getVoiceApiService().getVerifiedCallerID(client().getAuthId(), id); | ||
} | ||
|
||
@Override | ||
protected Call<GetVerifiedCallerIdResponse> obtainFallback1Call() throws PlivoValidationException { | ||
return client().getVoiceFallback1Service().getVerifiedCallerID(client().getAuthId(), id); | ||
} | ||
|
||
@Override | ||
protected Call<GetVerifiedCallerIdResponse> obtainFallback2Call() throws PlivoValidationException { | ||
return client().getVoiceFallback2Service().getVerifiedCallerID(client().getAuthId(), id); | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
src/main/java/com/plivo/api/models/verify/GetVerifiedCallerIdResponse.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,56 @@ | ||
package com.plivo.api.models.verify; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.plivo.api.exceptions.PlivoValidationException; | ||
import com.plivo.api.models.base.BaseResource; | ||
|
||
@JsonIgnoreProperties("id") | ||
public class GetVerifiedCallerIdResponse extends BaseResource { | ||
|
||
private String alias; | ||
private String apiId; | ||
private String country; | ||
private String createdAt; | ||
private String modifiedAt; | ||
private String phoneNumber; | ||
private String subaccount; | ||
private String verificationUuid; | ||
|
||
public String getAlias() { | ||
return alias; | ||
} | ||
|
||
public String getCountry() { | ||
return country; | ||
} | ||
|
||
public String getCreatedAt() { | ||
return createdAt; | ||
} | ||
|
||
public String getModifiedAt() { | ||
return modifiedAt; | ||
} | ||
|
||
public String getPhoneNumber() { | ||
return phoneNumber; | ||
} | ||
|
||
public String getSubaccount() { | ||
return subaccount; | ||
} | ||
|
||
public String getVerificationUuid() { | ||
return verificationUuid; | ||
} | ||
|
||
@Override | ||
public String getApiId() { | ||
return apiId; | ||
} | ||
|
||
@Override | ||
public String getId() throws PlivoValidationException { | ||
return null; | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
src/main/java/com/plivo/api/models/verify/InitiateVerify.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,58 @@ | ||
package com.plivo.api.models.verify; | ||
|
||
import com.plivo.api.models.base.VoiceCreator; | ||
import retrofit2.Call; | ||
|
||
public class InitiateVerify extends VoiceCreator<InitiateVerifyResponse> { | ||
|
||
private String phoneNumber; | ||
private String alias; | ||
private String channel; | ||
private String subaccount; | ||
|
||
public String getPhoneNumber() { | ||
return phoneNumber; | ||
} | ||
public String getAlias() { | ||
return alias; | ||
} | ||
public String getChannel() { | ||
return channel; | ||
} | ||
public String getSubaccount() { | ||
return subaccount; | ||
} | ||
|
||
public InitiateVerify phoneNumber(final String phoneNumber) { | ||
this.phoneNumber = phoneNumber; | ||
return this; | ||
} | ||
public InitiateVerify alias(final String alias) { | ||
this.alias = alias; | ||
return this; | ||
} | ||
public InitiateVerify channel(final String channel) { | ||
this.channel = channel; | ||
return this; | ||
} | ||
public InitiateVerify subaccount(final String subaccount) { | ||
this.subaccount = subaccount; | ||
return this; | ||
} | ||
|
||
@Override | ||
protected Call<InitiateVerifyResponse> obtainCall() { | ||
return client().getVoiceApiService().initiateVerify(client().getAuthId(),this); | ||
} | ||
|
||
@Override | ||
protected Call<InitiateVerifyResponse> obtainFallback1Call() { | ||
return client().getVoiceFallback1Service().initiateVerify(client().getAuthId(), this); | ||
} | ||
|
||
@Override | ||
protected Call<InitiateVerifyResponse> obtainFallback2Call() { | ||
return client().getVoiceFallback2Service().initiateVerify(client().getAuthId(), this); | ||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/plivo/api/models/verify/InitiateVerifyResponse.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.plivo.api.models.verify; | ||
|
||
import com.plivo.api.models.base.BaseResponse; | ||
|
||
public class InitiateVerifyResponse extends BaseResponse { | ||
private String apiId; | ||
|
||
private String message; | ||
|
||
private String verificationUuid; | ||
|
||
public String getVerificationUuid() { | ||
return verificationUuid; | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
src/main/java/com/plivo/api/models/verify/ListVerifiedCallerId.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,74 @@ | ||
package com.plivo.api.models.verify; | ||
|
||
import com.plivo.api.exceptions.PlivoValidationException; | ||
import com.plivo.api.models.base.VoiceGetter; | ||
import retrofit2.Call; | ||
|
||
public class ListVerifiedCallerId extends VoiceGetter<ListVerifiedCallerIdResponse> { | ||
|
||
private String country; | ||
private String subaccount; | ||
private String alias; | ||
private Integer limit; | ||
private Integer offset; | ||
|
||
public String getCountry() { | ||
return country; | ||
} | ||
|
||
public String getSubaccount() { | ||
return subaccount; | ||
} | ||
|
||
public String getAlias() { | ||
return alias; | ||
} | ||
|
||
public Integer getLimit() { | ||
return limit; | ||
} | ||
|
||
public Integer getOffset() { | ||
return offset; | ||
} | ||
|
||
public ListVerifiedCallerId country(final String country) { | ||
this.country = country; | ||
return this; | ||
} | ||
public ListVerifiedCallerId subaccount(final String subaccount) { | ||
this.subaccount = subaccount; | ||
return this; | ||
} | ||
public ListVerifiedCallerId alias(final String alias) { | ||
this.alias = alias; | ||
return this; | ||
} | ||
public ListVerifiedCallerId limit(final Integer limit) { | ||
this.limit = limit; | ||
return this; | ||
} | ||
public ListVerifiedCallerId offset(final Integer offset) { | ||
this.offset = offset; | ||
return this; | ||
} | ||
|
||
public ListVerifiedCallerId() { | ||
super(""); | ||
} | ||
|
||
@Override | ||
protected Call<ListVerifiedCallerIdResponse> obtainCall() throws PlivoValidationException { | ||
return client().getVoiceApiService().listVerifiedCallerID(client().getAuthId(), toMap()); | ||
} | ||
|
||
@Override | ||
protected Call<ListVerifiedCallerIdResponse> obtainFallback1Call() throws PlivoValidationException { | ||
return client().getVoiceFallback1Service().listVerifiedCallerID(client().getAuthId(), toMap()); | ||
} | ||
|
||
@Override | ||
protected Call<ListVerifiedCallerIdResponse> obtainFallback2Call() throws PlivoValidationException { | ||
return client().getVoiceFallback2Service().listVerifiedCallerID(client().getAuthId(), toMap()); | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
src/main/java/com/plivo/api/models/verify/ListVerifiedCallerIdResponse.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,35 @@ | ||
package com.plivo.api.models.verify; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.plivo.api.exceptions.PlivoValidationException; | ||
import com.plivo.api.models.base.BaseResource; | ||
|
||
import java.util.List; | ||
|
||
@JsonIgnoreProperties("id") | ||
public class ListVerifiedCallerIdResponse extends BaseResource { | ||
|
||
private String apiId; | ||
|
||
private VerifyMeta meta; | ||
|
||
private List<ListVerifiedCallerIdStructure> objects; | ||
|
||
public VerifyMeta getMeta() { | ||
return meta; | ||
} | ||
|
||
public List<ListVerifiedCallerIdStructure> getObjects() { | ||
return objects; | ||
} | ||
|
||
@Override | ||
public String getId() throws PlivoValidationException { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getApiId() { | ||
return apiId; | ||
} | ||
} |
Oops, something went wrong.