Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,29 @@
/** Batches Service */
public interface BatchesService {

/**
* List Batches (using default parameters)
*
* <p>With the list operation you can list batch messages created in the last 14 days that you
* have created. This operation supports pagination.
*
* @return ListBatchesResponse
* @throws ApiException if fails to make API call
*/
ListBatchesResponse list() throws ApiException;

/**
* List Batches
*
* <p>With the list operation you can list batch messages created in the last 14 days that you
* have created. This operation supports pagination.
*
* @param queryParameter (optional)
* @return ListBatchesResponse
* @throws ApiException if fails to make API call
*/
ListBatchesResponse list(ListBatchesQueryParameters queryParameter) throws ApiException;

/**
* Cancel a batch message
*
Expand Down Expand Up @@ -75,29 +98,6 @@ DryRunResponse dryRun(DryRunQueryParameters queryParameter, BatchRequest sendReq
*/
BatchResponse get(String batchId) throws ApiException;

/**
* List Batches (using default parameters)
*
* <p>With the list operation you can list batch messages created in the last 14 days that you
* have created. This operation supports pagination.
*
* @return ListBatchesResponse
* @throws ApiException if fails to make API call
*/
ListBatchesResponse list() throws ApiException;

/**
* List Batches
*
* <p>With the list operation you can list batch messages created in the last 14 days that you
* have created. This operation supports pagination.
*
* @param queryParameter (optional)
* @return ListBatchesResponse
* @throws ApiException if fails to make API call
*/
ListBatchesResponse list(ListBatchesQueryParameters queryParameter) throws ApiException;

/**
* Replace a batch
*
Expand All @@ -118,7 +118,7 @@ DryRunResponse dryRun(DryRunQueryParameters queryParameter, BatchRequest sendReq
* might be split into multiple parts and charged accordingly. Any groups targeted in a scheduled
* batch will be evaluated at the time of sending. If a group is deleted between batch creation
* and scheduled date, it will be considered empty. Be sure to use the correct
* [region](/docs/sms/api-reference/#base-url) in the server URL.
* [region](https://developers.sinch.com/docs/sms/api-reference/#base-url) in the server URL.
*
* @param sendRequest (required)
* @return BatchResponse
Expand All @@ -134,7 +134,7 @@ DryRunResponse dryRun(DryRunQueryParameters queryParameter, BatchRequest sendReq
* possible to submit feedback multiple times for the same batch for different recipients.
* Feedback without specified recipients is treated as successful message delivery to all
* recipients referenced in the batch. Note that the &#x60;recipients&#x60; key is still required
* even if the value is empty. **Groups**: If the batch message was creating using a group ID, at
* even if the value is empty. **Groups**: If the batch message was created using a group ID, at
* least one recipient is required. Excluding recipients (an empty recipient list) does not work
* and will result in a failed request.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,28 @@
/** Delivery reports Service */
public interface DeliveryReportsService {

/**
* Retrieve a list of delivery reports (using default parameters)
*
* <p>Get a list of finished delivery reports. This operation supports pagination.
*
* @return ListDeliveryReportsResponse
* @throws ApiException if fails to make API call
*/
ListDeliveryReportsResponse list() throws ApiException;

/**
* Retrieve a list of delivery reports
*
* <p>Get a list of finished delivery reports. This operation supports pagination.
*
* @param queryParameter (optional)
* @return ListDeliveryReportsResponse
* @throws ApiException if fails to make API call
*/
ListDeliveryReportsResponse list(ListDeliveryReportsQueryParameters queryParameter)
throws ApiException;

/**
* Retrieve a delivery report (using default parameters)
*
Expand Down Expand Up @@ -59,26 +81,4 @@ BatchDeliveryReport get(String batchId, BatchDeliveryReportQueryParameters query
* @throws ApiException if fails to make API call
*/
RecipientDeliveryReport getForNumber(String batchId, String recipientMsisdn) throws ApiException;

/**
* Retrieve a list of delivery reports (using default parameters)
*
* <p>Get a list of finished delivery reports. This operation supports pagination.
*
* @return ListDeliveryReportsResponse
* @throws ApiException if fails to make API call
*/
ListDeliveryReportsResponse list() throws ApiException;

/**
* Retrieve a list of delivery reports
*
* <p>Get a list of finished delivery reports. This operation supports pagination.
*
* @param queryParameter (optional)
* @return ListDeliveryReportsResponse
* @throws ApiException if fails to make API call
*/
ListDeliveryReportsResponse list(ListDeliveryReportsQueryParameters queryParameter)
throws ApiException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,29 @@
/** Groups Service */
public interface GroupsService {

/**
* List Groups (using default parameters)
*
* <p>With the list operation you can list all groups that you have created. This operation
* supports pagination. Groups are returned in reverse chronological order.
*
* @return ListGroupsResponse
* @throws ApiException if fails to make API call
*/
ListGroupsResponse list() throws ApiException;

/**
* List Groups
*
* <p>With the list operation you can list all groups that you have created. This operation
* supports pagination. Groups are returned in reverse chronological order.
*
* @param queryParameter (optional)
* @return ListGroupsResponse
* @throws ApiException if fails to make API call
*/
ListGroupsResponse list(ListGroupsQueryParameters queryParameter) throws ApiException;

/**
* Create a group
*
Expand Down Expand Up @@ -60,29 +83,6 @@ public interface GroupsService {
*/
Group get(String groupId) throws ApiException;

/**
* List Groups (using default parameters)
*
* <p>With the list operation you can list all groups that you have created. This operation
* supports pagination. Groups are returned in reverse chronological order.
*
* @return ListGroupsResponse
* @throws ApiException if fails to make API call
*/
ListGroupsResponse list() throws ApiException;

/**
* List Groups
*
* <p>With the list operation you can list all groups that you have created. This operation
* supports pagination. Groups are returned in reverse chronological order.
*
* @param queryParameter (optional)
* @return ListGroupsResponse
* @throws ApiException if fails to make API call
*/
ListGroupsResponse list(ListGroupsQueryParameters queryParameter) throws ApiException;

/**
* Get phone numbers for a group
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@
/** Inbounds Service */
public interface InboundsService {

/**
* Retrieve inbound message
*
* <p>This operation retrieves a specific inbound message with the provided inbound ID.
*
* @param inboundId The inbound ID found when listing inbound messages. (required)
* @return InboundMessage
* @throws ApiException if fails to make API call
*/
InboundMessage get(String inboundId) throws ApiException;

/**
* List incoming messages (using default parameters)
*
Expand All @@ -51,4 +40,15 @@ public interface InboundsService {
* @throws ApiException if fails to make API call
*/
ListInboundsResponse list(ListInboundMessagesQueryParameters queryParameter) throws ApiException;

/**
* Retrieve inbound message
*
* <p>This operation retrieves a specific inbound message using the provided inbound ID.
*
* @param inboundId The inbound ID found when listing inbound messages. (required)
* @return InboundMessage
* @throws ApiException if fails to make API call
*/
InboundMessage get(String inboundId) throws ApiException;
}
Loading
Loading