Skip to content

Commit c4f51cd

Browse files
Merge pull request #22 from messente/travis
Release version 3.1.0
2 parents bbd8ae8 + cddd92e commit c4f51cd

8 files changed

Lines changed: 581 additions & 10 deletions

File tree

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ docs/Model/NumbersToInvestigate.md
5050
docs/Model/OmniMessageCreateSuccessResponse.md
5151
docs/Model/Omnimessage.md
5252
docs/Model/OmnimessageMessagesInner.md
53+
docs/Model/PriceInfo.md
5354
docs/Model/Priority.md
5455
docs/Model/SMS.md
5556
docs/Model/StatisticsReport.md
@@ -120,6 +121,7 @@ lib/Model/NumbersToInvestigate.php
120121
lib/Model/OmniMessageCreateSuccessResponse.php
121122
lib/Model/Omnimessage.php
122123
lib/Model/OmnimessageMessagesInner.php
124+
lib/Model/PriceInfo.php
123125
lib/Model/Priority.php
124126
lib/Model/SMS.php
125127
lib/Model/StatisticsReport.php

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 2.0.0
4-
- PHP artifact version: 3.0.0
4+
- PHP artifact version: 3.1.0
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "messente/messente-api-php",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.",
55
"keywords": ["viber", "telegram", "sms", "whatsapp", "phonebook", "openapitools",
66
"openapi-generator",

docs/Model/DeliveryResult.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ Name | Type | Description | Notes
1010
**error** | **string** | Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet | [optional]
1111
**err** | [**\Messente\Api\Model\ErrorCodeOmnichannelMachine**](ErrorCodeOmnichannelMachine.md) | | [optional]
1212
**timestamp** | **\DateTime** | When this status was received by Omnichannel API | [optional]
13+
**priceInfo** | [**\Messente\Api\Model\PriceInfo**](PriceInfo.md) | | [optional]
14+
**sender** | **string** | the sender of the message | [optional]
1315

1416
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

docs/Model/PriceInfo.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# # PriceInfo
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**partPrice** | **string** | price per message part - relevant mostly for SMS |
8+
**partsCount** | **int** | the number of parts the message consists of |
9+
**totalPrice** | **string** | total price for the message |
10+
11+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

lib/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class Configuration
101101
*
102102
* @var string
103103
*/
104-
protected $userAgent = 'OpenAPI-Generator/3.0.0/PHP';
104+
protected $userAgent = 'OpenAPI-Generator/3.1.0/PHP';
105105

106106
/**
107107
* Debug switch (default set to false)
@@ -434,7 +434,7 @@ public static function toDebugReport()
434434
$report .= ' OS: ' . php_uname() . PHP_EOL;
435435
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
436436
$report .= ' The version of the OpenAPI document: 2.0.0' . PHP_EOL;
437-
$report .= ' SDK Package Version: 3.0.0' . PHP_EOL;
437+
$report .= ' SDK Package Version: 3.1.0' . PHP_EOL;
438438
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
439439

440440
return $report;

lib/Model/DeliveryResult.php

Lines changed: 74 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ class DeliveryResult implements ModelInterface, ArrayAccess, \JsonSerializable
6464
'messageId' => 'string',
6565
'error' => 'string',
6666
'err' => '\Messente\Api\Model\ErrorCodeOmnichannelMachine',
67-
'timestamp' => '\DateTime'
67+
'timestamp' => '\DateTime',
68+
'priceInfo' => '\Messente\Api\Model\PriceInfo',
69+
'sender' => 'string'
6870
];
6971

7072
/**
@@ -80,7 +82,9 @@ class DeliveryResult implements ModelInterface, ArrayAccess, \JsonSerializable
8082
'messageId' => 'UUID',
8183
'error' => null,
8284
'err' => null,
83-
'timestamp' => 'date-time'
85+
'timestamp' => 'date-time',
86+
'priceInfo' => null,
87+
'sender' => null
8488
];
8589

8690
/**
@@ -94,7 +98,9 @@ class DeliveryResult implements ModelInterface, ArrayAccess, \JsonSerializable
9498
'messageId' => false,
9599
'error' => true,
96100
'err' => false,
97-
'timestamp' => false
101+
'timestamp' => false,
102+
'priceInfo' => false,
103+
'sender' => false
98104
];
99105

100106
/**
@@ -188,7 +194,9 @@ public function isNullableSetToNull(string $property): bool
188194
'messageId' => 'message_id',
189195
'error' => 'error',
190196
'err' => 'err',
191-
'timestamp' => 'timestamp'
197+
'timestamp' => 'timestamp',
198+
'priceInfo' => 'price_info',
199+
'sender' => 'sender'
192200
];
193201

194202
/**
@@ -202,7 +210,9 @@ public function isNullableSetToNull(string $property): bool
202210
'messageId' => 'setMessageId',
203211
'error' => 'setError',
204212
'err' => 'setErr',
205-
'timestamp' => 'setTimestamp'
213+
'timestamp' => 'setTimestamp',
214+
'priceInfo' => 'setPriceInfo',
215+
'sender' => 'setSender'
206216
];
207217

208218
/**
@@ -216,7 +226,9 @@ public function isNullableSetToNull(string $property): bool
216226
'messageId' => 'getMessageId',
217227
'error' => 'getError',
218228
'err' => 'getErr',
219-
'timestamp' => 'getTimestamp'
229+
'timestamp' => 'getTimestamp',
230+
'priceInfo' => 'getPriceInfo',
231+
'sender' => 'getSender'
220232
];
221233

222234
/**
@@ -282,6 +294,8 @@ public function __construct(array $data = null)
282294
$this->setIfExists('error', $data ?? [], null);
283295
$this->setIfExists('err', $data ?? [], null);
284296
$this->setIfExists('timestamp', $data ?? [], null);
297+
$this->setIfExists('priceInfo', $data ?? [], null);
298+
$this->setIfExists('sender', $data ?? [], null);
285299
}
286300

287301
/**
@@ -494,6 +508,60 @@ public function setTimestamp($timestamp)
494508

495509
return $this;
496510
}
511+
512+
/**
513+
* Gets priceInfo
514+
*
515+
* @return \Messente\Api\Model\PriceInfo|null
516+
*/
517+
public function getPriceInfo()
518+
{
519+
return $this->container['priceInfo'];
520+
}
521+
522+
/**
523+
* Sets priceInfo
524+
*
525+
* @param \Messente\Api\Model\PriceInfo|null $priceInfo priceInfo
526+
*
527+
* @return self
528+
*/
529+
public function setPriceInfo($priceInfo)
530+
{
531+
if (is_null($priceInfo)) {
532+
throw new \InvalidArgumentException('non-nullable priceInfo cannot be null');
533+
}
534+
$this->container['priceInfo'] = $priceInfo;
535+
536+
return $this;
537+
}
538+
539+
/**
540+
* Gets sender
541+
*
542+
* @return string|null
543+
*/
544+
public function getSender()
545+
{
546+
return $this->container['sender'];
547+
}
548+
549+
/**
550+
* Sets sender
551+
*
552+
* @param string|null $sender the sender of the message
553+
*
554+
* @return self
555+
*/
556+
public function setSender($sender)
557+
{
558+
if (is_null($sender)) {
559+
throw new \InvalidArgumentException('non-nullable sender cannot be null');
560+
}
561+
$this->container['sender'] = $sender;
562+
563+
return $this;
564+
}
497565
/**
498566
* Returns true if offset exists. False otherwise.
499567
*

0 commit comments

Comments
 (0)