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
2 changes: 1 addition & 1 deletion src/MessageBird/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Client
const ENDPOINT = 'https://rest.messagebird.com';
const CHATAPI_ENDPOINT = 'https://chat.messagebird.com/1';

const CLIENT_VERSION = '1.6.3';
const CLIENT_VERSION = '1.6.4';

/**
* @var string
Expand Down
10 changes: 8 additions & 2 deletions src/MessageBird/Objects/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,19 @@ class Message extends Base
* @param $keyword
* @param $tariff
* @param $mid
* @param $member
*/
public function setPremiumSms($shortcode, $keyword, $tariff, $mid)
public function setPremiumSms($shortcode, $keyword, $tariff, $mid = null, $member = null)
{
$this->typeDetails['shortcode'] = $shortcode;
$this->typeDetails['keyword'] = $keyword;
$this->typeDetails['tariff'] = $tariff;
$this->typeDetails['mid'] = $mid;
if ($mid != null) {
$this->typeDetails['mid'] = $mid;
}
if ($member != null) {
$this->typeDetails['member'] = $member;
}

$this->type = self::TYPE_PREMIUM;
}
Expand Down