-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* doc (SMS): SMS's javadoc
- Loading branch information
Showing
31 changed files
with
280 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
37 changes: 37 additions & 0 deletions
37
client/src/main/com/sinch/sdk/domains/sms/api/v1/SMSService.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 |
---|---|---|
@@ -1,14 +1,51 @@ | ||
package com.sinch.sdk.domains.sms.api.v1; | ||
|
||
/** | ||
* SMS Service | ||
* | ||
* @see <a | ||
* href="https://developers.sinch.com/docs/sms/api-reference/">https://developers.sinch.com/docs/sms/api-reference/</a> | ||
* @since 1.5 | ||
*/ | ||
public interface SMSService { | ||
|
||
/** | ||
* Batches Service instance | ||
* | ||
* @return service instance for project | ||
* @since 1.5 | ||
*/ | ||
BatchesService batches(); | ||
|
||
/** | ||
* Inbounds Service instance | ||
* | ||
* @return service instance for project | ||
* @since 1.5 | ||
*/ | ||
InboundsService inbounds(); | ||
|
||
/** | ||
* Delivery Reports Service instance | ||
* | ||
* @return service instance for project | ||
* @since 1.5 | ||
*/ | ||
DeliveryReportsService deliveryReports(); | ||
|
||
/** | ||
* Groups Service instance | ||
* | ||
* @return service instance for project | ||
* @since 1.5 | ||
*/ | ||
GroupsService groups(); | ||
|
||
/** | ||
* WebHooksService Service instance | ||
* | ||
* @return service instance for project | ||
* @since 1.5 | ||
*/ | ||
WebHooksService webhooks(); | ||
} |
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
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/api/v1/package-info.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,6 @@ | ||
/** | ||
* SMS API interface | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.api.v1; |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/batches/package-info.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,6 @@ | ||
/** | ||
* SMS Batches API related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.batches; |
8 changes: 8 additions & 0 deletions
8
client/src/main/com/sinch/sdk/domains/sms/models/v1/batches/request/BatchRequest.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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
package com.sinch.sdk.domains.sms.models.v1.batches.request; | ||
|
||
/** | ||
* Base class for all batch request classes | ||
* | ||
* @see com.sinch.sdk.domains.sms.api.v1.BatchesService#send(BatchRequest) | ||
* @see com.sinch.sdk.domains.sms.api.v1.BatchesService#dryRun(BatchRequest) | ||
* @see com.sinch.sdk.domains.sms.api.v1.BatchesService#replace(String, BatchRequest) | ||
* @since 1.5 | ||
*/ | ||
public interface BatchRequest {} |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/batches/request/UpdateBatchRequest.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
package com.sinch.sdk.domains.sms.models.v1.batches.request; | ||
|
||
/** | ||
* Base class for all classes supported to <code>update</code> batches | ||
* | ||
* @see com.sinch.sdk.domains.sms.api.v1.BatchesService#update(String, UpdateBatchRequest) | ||
* @since 1.5 | ||
*/ | ||
public interface UpdateBatchRequest {} |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/batches/request/package-info.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,6 @@ | ||
/** | ||
* Batches API requests related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.batches.request; |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/batches/response/package-info.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,6 @@ | ||
/** | ||
* Batches API responses related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.batches.response; |
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
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/deliveryreports/package-info.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,6 @@ | ||
/** | ||
* SMS Delivery Reports API related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.deliveryreports; |
6 changes: 6 additions & 0 deletions
6
...nt/src/main/com/sinch/sdk/domains/sms/models/v1/deliveryreports/request/package-info.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,6 @@ | ||
/** | ||
* Delivery Reports API requests related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.deliveryreports.request; |
6 changes: 6 additions & 0 deletions
6
...t/src/main/com/sinch/sdk/domains/sms/models/v1/deliveryreports/response/package-info.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,6 @@ | ||
/** | ||
* Delivery Reports API responses related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.deliveryreports.response; |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/groups/package-info.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,6 @@ | ||
/** | ||
* SMS Groups API related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.groups; |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/groups/request/package-info.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,6 @@ | ||
/** | ||
* Groups API requests related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.groups.request; |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/groups/response/package-info.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,6 @@ | ||
/** | ||
* Groups API responses related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.groups.response; |
9 changes: 9 additions & 0 deletions
9
client/src/main/com/sinch/sdk/domains/sms/models/v1/inbounds/InboundMessage.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 |
---|---|---|
@@ -1,8 +1,17 @@ | ||
package com.sinch.sdk.domains.sms.models.v1.inbounds; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.sinch.sdk.domains.sms.models.v1.inbounds.request.ListInboundMessagesQueryParameters; | ||
import com.sinch.sdk.domains.sms.models.v1.inbounds.response.internal.InboundInternalImpl; | ||
import com.sinch.sdk.domains.sms.models.v1.webhooks.SmsEvent; | ||
|
||
/** | ||
* Base class for all classes supporting InBounds | ||
* | ||
* @see com.sinch.sdk.domains.sms.api.v1.InboundsService#get(String) | ||
* @see com.sinch.sdk.domains.sms.api.v1.InboundsService#list(ListInboundMessagesQueryParameters) | ||
* @see com.sinch.sdk.domains.sms.api.v1.WebHooksService#parseEvent(String) | ||
* @since 1.5 | ||
*/ | ||
@JsonDeserialize(using = InboundInternalImpl.Deserializer.class) | ||
public interface InboundMessage extends SmsEvent {} |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/inbounds/package-info.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,6 @@ | ||
/** | ||
* SMS Inbounds API related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.inbounds; |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/inbounds/request/package-info.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,6 @@ | ||
/** | ||
* Inbounds API requests related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.inbounds.request; |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/inbounds/response/package-info.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,6 @@ | ||
/** | ||
* Inbounds API responses related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.inbounds.response; |
6 changes: 6 additions & 0 deletions
6
client/src/main/com/sinch/sdk/domains/sms/models/v1/package-info.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,6 @@ | ||
/** | ||
* SMS API related models | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1; |
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
57 changes: 57 additions & 0 deletions
57
client/src/main/com/sinch/sdk/domains/sms/models/v1/webhooks/package-info.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,57 @@ | ||
/** | ||
* SMS API webhooks related models | ||
* | ||
* <h2>Incoming SMS WebHook</h2> | ||
* | ||
* <p>An inbound message is a message sent to one of your short codes or long numbers from a mobile | ||
* phone. To receive inbound message callbacks, a URL needs to be added to your REST API. | ||
* | ||
* <p>This URL can be specified in your <a href="https://dashboard.sinch.com/sms/api">Dashboard</a>. | ||
* | ||
* <p>See <a | ||
* href="https://developers.sinch.com/docs/sms/api-reference/sms/tag/Webhooks/#tag/Webhooks/operation/incomingSMS">https://developers.sinch.com/docs/sms/api-reference/sms/tag/Webhooks/#tag/Webhooks/operation/incomingSMS</a> | ||
* | ||
* <h2>Delivery Report WebHook</h2> | ||
* | ||
* <p>A delivery report contains the status and status code for each recipient of a batch. To get a | ||
* delivery report callback for a message or batch of messages, set the <code>delivery_report | ||
* </code> field accordingly when creating a batch. | ||
* | ||
* <p>The following is provided so you can better understand our webhooks/callbacks. Configuration | ||
* of both webhooks and the type of delivery report requested happens when sending a batch. | ||
* | ||
* <p><b>Callback URL</b> | ||
* | ||
* <p>The callback URL can either be provided for each batch or provisioned globally for your | ||
* account in your <a href="https://dashboard.sinch.com/sms/api/rest">Sinch Customer Dashboard</a>. | ||
* Learn how to configure a webhook/callback <a | ||
* href="https://community.sinch.com/t5/SMS/How-do-I-assign-a-callback-URL-to-an-SMS-service-plan/ta-p/8414">here</a> | ||
* | ||
* <p><b>Type</b> | ||
* | ||
* <p>The <code>type</code> is the type of delivery report webhook. The response will vary depending | ||
* on the webhook delivery report you selected when the batch was sent, so choose the appropriate | ||
* selection under "One of". | ||
* | ||
* <ul> | ||
* <li>The <code>delivery_report_sms</code> and <code>delivery_report_mms</code> types are | ||
* documented under <b>Delivery report</b>. | ||
* <p>These are reports containing <a | ||
* href="https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/SendSMS!path=0/delivery_report&t=request">either | ||
* a full report or summary report</a>, depending on your selection at the time the batch was | ||
* sent. | ||
* <li>The <code>recipient_delivery_report_sms</code> and <code>recipient_delivery_report_mms | ||
* </code> delivery report types are documented under <b>Recipient delivery report</b>. | ||
* <p>These are delivery reports for recipient phone numbers. If you set <code>per_recipient | ||
* </code> for the <code>delivery_report</code> parameter when sending the batch, a recipient | ||
* report gets sent to you for each status change for each recipient in your batch. If you set | ||
* <code>per_recipient_final</code>, a recipient report gets sent to you for the final status | ||
* of each recipient in your batch. | ||
* </ul> | ||
* | ||
* See <a | ||
* href="https://developers.sinch.com/docs/sms/api-reference/sms/tag/Webhooks/#tag/Webhooks/operation/deliveryReport">https://developers.sinch.com/docs/sms/api-reference/sms/tag/Webhooks/#tag/Webhooks/operation/deliveryReport</a> | ||
* | ||
* @since 1.5 | ||
*/ | ||
package com.sinch.sdk.domains.sms.models.v1.webhooks; |
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
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
Oops, something went wrong.