Skip to content

Commit

Permalink
Merge pull request #5 from telstra/dev
Browse files Browse the repository at this point in the history
1.0.3 - adding notifyURL to MMS request
  • Loading branch information
developersteve authored Mar 7, 2018
2 parents b29452b + b75b4c1 commit 4a50a17
Show file tree
Hide file tree
Showing 48 changed files with 89 additions and 51 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.


- API version: 2.2.4
- Package version: 1.0.2
- API version: 2.2.5
- Package version: 1.0.3

## Requirements

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Telstra/MessagingAPI-SDK-php",
"version": "1.0.2",
"version": "1.0.3",
"description": "",
"keywords": [
"swagger",
Expand Down
1 change: 1 addition & 0 deletions docs/Model/SendMmsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**to** | **string** | This is the destination address. |
**subject** | **string** | The subject that will be used in an MMS message. |
**reply_request** | **bool** | If set to true, the reply message functionality will be implemented and the to address will be ignored if present. |
**notify_url** | **string** | Notify url | [optional]
**mms_content** | [**\Telstra_Messaging\Model\MMSContent[]**](MMSContent.md) | An Array of content that will be sent in an MMS message. If this array is present it will cause the “body” element to be ignored, and the message will be sent as an MMS. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/AuthenticationApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/MessagingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/ProvisioningApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
8 changes: 4 additions & 4 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down Expand Up @@ -88,7 +88,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'Swagger-Codegen/1.0.2/php';
protected $userAgent = 'Swagger-Codegen/1.0.3/php';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -396,8 +396,8 @@ public static function toDebugReport()
$report = 'PHP SDK (Telstra_Messaging) Debug Report:' . PHP_EOL;
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' OpenAPI Spec Version: 2.2.4' . PHP_EOL;
$report .= ' SDK Package Version: 1.0.2' . PHP_EOL;
$report .= ' OpenAPI Spec Version: 2.2.5' . PHP_EOL;
$report .= ' SDK Package Version: 1.0.3' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/DeleteNumberRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ErrorError.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ErrorErrorError.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/GetSubscriptionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/InboundPollResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/MMSContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/MessageSentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/MessageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ModelInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/OAuthRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/OAuthResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/OutboundPollResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ProvisionNumberRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ProvisionNumberResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
32 changes: 31 additions & 1 deletion lib/Model/SendMmsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down Expand Up @@ -61,6 +61,7 @@ class SendMmsRequest implements ModelInterface, ArrayAccess
'to' => 'string',
'subject' => 'string',
'reply_request' => 'bool',
'notify_url' => 'string',
'mms_content' => '\Telstra_Messaging\Model\MMSContent[]'
];

Expand All @@ -74,6 +75,7 @@ class SendMmsRequest implements ModelInterface, ArrayAccess
'to' => null,
'subject' => null,
'reply_request' => null,
'notify_url' => null,
'mms_content' => null
];

Expand Down Expand Up @@ -108,6 +110,7 @@ public static function swaggerFormats()
'to' => 'to',
'subject' => 'subject',
'reply_request' => 'replyRequest',
'notify_url' => 'notifyURL',
'mms_content' => 'MMSContent'
];

Expand All @@ -121,6 +124,7 @@ public static function swaggerFormats()
'to' => 'setTo',
'subject' => 'setSubject',
'reply_request' => 'setReplyRequest',
'notify_url' => 'setNotifyUrl',
'mms_content' => 'setMmsContent'
];

Expand All @@ -134,6 +138,7 @@ public static function swaggerFormats()
'to' => 'getTo',
'subject' => 'getSubject',
'reply_request' => 'getReplyRequest',
'notify_url' => 'getNotifyUrl',
'mms_content' => 'getMmsContent'
];

Expand Down Expand Up @@ -201,6 +206,7 @@ public function __construct(array $data = null)
$this->container['to'] = isset($data['to']) ? $data['to'] : null;
$this->container['subject'] = isset($data['subject']) ? $data['subject'] : null;
$this->container['reply_request'] = isset($data['reply_request']) ? $data['reply_request'] : null;
$this->container['notify_url'] = isset($data['notify_url']) ? $data['notify_url'] : null;
$this->container['mms_content'] = isset($data['mms_content']) ? $data['mms_content'] : null;
}

Expand Down Expand Up @@ -355,6 +361,30 @@ public function setReplyRequest($reply_request)
return $this;
}

/**
* Gets notify_url
*
* @return string
*/
public function getNotifyUrl()
{
return $this->container['notify_url'];
}

/**
* Sets notify_url
*
* @param string $notify_url Notify url
*
* @return $this
*/
public function setNotifyUrl($notify_url)
{
$this->container['notify_url'] = $notify_url;

return $this;
}

/**
* Gets mms_content
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/SendSMSRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion lib/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion test/Api/AuthenticationApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion test/Api/MessagingApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion test/Api/ProvisioningApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion test/Model/DeleteNumberRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
2 changes: 1 addition & 1 deletion test/Model/ErrorErrorErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Telstra SMS Messaging API allows your applications to send and receive SMS text messages from Australia's leading network operator. It also allows your application to track the delivery status of both sent and received SMS messages.
*
* OpenAPI spec version: 2.2.4
* OpenAPI spec version: 2.2.5
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: unset
Expand Down
Loading

0 comments on commit 4a50a17

Please sign in to comment.