Skip to content

Commit 47ec33f

Browse files
authored
Merge pull request #23 from messente/travis
release version 3.2.0
2 parents c4f51cd + 334c07f commit 47ec33f

10 files changed

Lines changed: 621 additions & 12 deletions

File tree

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ docs/Model/SyncNumberLookupSuccess.md
6262
docs/Model/Telegram.md
6363
docs/Model/TextStore.md
6464
docs/Model/Viber.md
65+
docs/Model/ViberVideo.md
6566
docs/Model/WhatsApp.md
6667
docs/Model/WhatsAppComponent.md
6768
docs/Model/WhatsAppCurrency.md
@@ -133,6 +134,7 @@ lib/Model/SyncNumberLookupSuccess.php
133134
lib/Model/Telegram.php
134135
lib/Model/TextStore.php
135136
lib/Model/Viber.php
137+
lib/Model/ViberVideo.php
136138
lib/Model/WhatsApp.php
137139
lib/Model/WhatsAppComponent.php
138140
lib/Model/WhatsAppCurrency.php

README.md

Lines changed: 2 additions & 2 deletions
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.1.0
4+
- PHP artifact version: 3.2.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

@@ -93,7 +93,7 @@ $config = Configuration::getDefaultConfiguration()
9393
->setPassword('<MESSENTE_API_PASSWORD>');
9494

9595
$apiInstance = new OmnimessageApi(
96-
new \GuzzleHttp\Client(),
96+
new GuzzleHttp\Client(),
9797
$config
9898
);
9999

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "messente/messente-api-php",
3-
"version": "3.1.0",
3+
"version": "3.2.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",
@@ -24,7 +24,7 @@
2424
"ext-json": "*",
2525
"ext-mbstring": "*",
2626
"guzzlehttp/guzzle": "^6.2 || ^7.0",
27-
"guzzlehttp/psr7": "^1.8 || ^2.0"
27+
"guzzlehttp/psr7": "^1.8"
2828
},
2929
"autoload": {
3030
"psr-4": { "Messente\\Api\\" : "lib/" }

docs/Model/OmnimessageMessagesInner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**buttonUrl** | **string** | URL of the button, must be specified along with &#39;&#39;text&#39;&#39;, &#39;&#39;button_text&#39;&#39; and &#39;&#39;image_url&#39;&#39; (optional) | [optional]
1313
**buttonText** | **string** | Must be specified along with &#39;&#39;text&#39;&#39;, &#39;&#39;button_url&#39;&#39;, &#39;&#39;button_text&#39;&#39;, &#39;&#39;image_url&#39;&#39; (optional) | [optional]
1414
**channel** | **string** | The channel used to deliver the message | [optional] [default to 'telegram']
15+
**video** | [**\Messente\Api\Model\ViberVideo**](ViberVideo.md) | | [optional]
1516
**autoconvert** | **string** | Defines how non-GSM characters will be treated: - \&quot;on\&quot; Use replacement settings from the account&#39;s [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \&quot;full\&quot; All non GSM 03.38 characters will be replaced with suitable alternatives - \&quot;off\&quot; Message content is not modified in any way | [optional]
1617
**udh** | **string** | hex-encoded string containing SMS UDH | [optional]
1718
**template** | [**\Messente\Api\Model\WhatsAppTemplate**](WhatsAppTemplate.md) | | [optional]

docs/Model/Viber.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ Name | Type | Description | Notes
1212
**buttonUrl** | **string** | URL of the button, must be specified along with &#39;&#39;text&#39;&#39;, &#39;&#39;button_text&#39;&#39; and &#39;&#39;image_url&#39;&#39; (optional) | [optional]
1313
**buttonText** | **string** | Must be specified along with &#39;&#39;text&#39;&#39;, &#39;&#39;button_url&#39;&#39;, &#39;&#39;button_text&#39;&#39;, &#39;&#39;image_url&#39;&#39; (optional) | [optional]
1414
**channel** | **string** | The channel used to deliver the message | [optional] [default to 'viber']
15+
**video** | [**\Messente\Api\Model\ViberVideo**](ViberVideo.md) | | [optional]
1516

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

docs/Model/ViberVideo.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# # ViberVideo
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**url** | **string** | URL pointing to the video resource. |
8+
**thumbnail** | **string** | URL pointing to the video thumbnail resource. |
9+
**fileSize** | **int** | Size of the video file in bytes. Cannot be larger than 200MB. |
10+
**duration** | **int** | Duration of the video in seconds. Cannot be longer than 600 seconds. |
11+
12+
[[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.1.0/PHP';
104+
protected $userAgent = 'OpenAPI-Generator/3.2.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.1.0' . PHP_EOL;
437+
$report .= ' SDK Package Version: 3.2.0' . PHP_EOL;
438438
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
439439

440440
return $report;

lib/Model/OmnimessageMessagesInner.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class OmnimessageMessagesInner implements ModelInterface, ArrayAccess, \JsonSeri
6666
'buttonUrl' => 'string',
6767
'buttonText' => 'string',
6868
'channel' => 'string',
69+
'video' => '\Messente\Api\Model\ViberVideo',
6970
'autoconvert' => 'string',
7071
'udh' => 'string',
7172
'template' => '\Messente\Api\Model\WhatsAppTemplate',
@@ -89,6 +90,7 @@ class OmnimessageMessagesInner implements ModelInterface, ArrayAccess, \JsonSeri
8990
'buttonUrl' => null,
9091
'buttonText' => null,
9192
'channel' => null,
93+
'video' => null,
9294
'autoconvert' => null,
9395
'udh' => null,
9496
'template' => null,
@@ -110,6 +112,7 @@ class OmnimessageMessagesInner implements ModelInterface, ArrayAccess, \JsonSeri
110112
'buttonUrl' => false,
111113
'buttonText' => false,
112114
'channel' => false,
115+
'video' => false,
113116
'autoconvert' => false,
114117
'udh' => false,
115118
'template' => false,
@@ -211,6 +214,7 @@ public function isNullableSetToNull(string $property): bool
211214
'buttonUrl' => 'button_url',
212215
'buttonText' => 'button_text',
213216
'channel' => 'channel',
217+
'video' => 'video',
214218
'autoconvert' => 'autoconvert',
215219
'udh' => 'udh',
216220
'template' => 'template',
@@ -232,6 +236,7 @@ public function isNullableSetToNull(string $property): bool
232236
'buttonUrl' => 'setButtonUrl',
233237
'buttonText' => 'setButtonText',
234238
'channel' => 'setChannel',
239+
'video' => 'setVideo',
235240
'autoconvert' => 'setAutoconvert',
236241
'udh' => 'setUdh',
237242
'template' => 'setTemplate',
@@ -253,6 +258,7 @@ public function isNullableSetToNull(string $property): bool
253258
'buttonUrl' => 'getButtonUrl',
254259
'buttonText' => 'getButtonText',
255260
'channel' => 'getChannel',
261+
'video' => 'getVideo',
256262
'autoconvert' => 'getAutoconvert',
257263
'udh' => 'getUdh',
258264
'template' => 'getTemplate',
@@ -355,6 +361,7 @@ public function __construct(array $data = null)
355361
$this->setIfExists('buttonUrl', $data ?? [], null);
356362
$this->setIfExists('buttonText', $data ?? [], null);
357363
$this->setIfExists('channel', $data ?? [], 'telegram');
364+
$this->setIfExists('video', $data ?? [], null);
358365
$this->setIfExists('autoconvert', $data ?? [], null);
359366
$this->setIfExists('udh', $data ?? [], null);
360367
$this->setIfExists('template', $data ?? [], null);
@@ -651,6 +658,33 @@ public function setChannel($channel)
651658
return $this;
652659
}
653660

661+
/**
662+
* Gets video
663+
*
664+
* @return \Messente\Api\Model\ViberVideo|null
665+
*/
666+
public function getVideo()
667+
{
668+
return $this->container['video'];
669+
}
670+
671+
/**
672+
* Sets video
673+
*
674+
* @param \Messente\Api\Model\ViberVideo|null $video video
675+
*
676+
* @return self
677+
*/
678+
public function setVideo($video)
679+
{
680+
if (is_null($video)) {
681+
throw new \InvalidArgumentException('non-nullable video cannot be null');
682+
}
683+
$this->container['video'] = $video;
684+
685+
return $this;
686+
}
687+
654688
/**
655689
* Gets autoconvert
656690
*

lib/Model/Viber.php

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ class Viber implements ModelInterface, ArrayAccess, \JsonSerializable
6666
'imageUrl' => 'string',
6767
'buttonUrl' => 'string',
6868
'buttonText' => 'string',
69-
'channel' => 'string'
69+
'channel' => 'string',
70+
'video' => '\Messente\Api\Model\ViberVideo'
7071
];
7172

7273
/**
@@ -84,7 +85,8 @@ class Viber implements ModelInterface, ArrayAccess, \JsonSerializable
8485
'imageUrl' => null,
8586
'buttonUrl' => null,
8687
'buttonText' => null,
87-
'channel' => null
88+
'channel' => null,
89+
'video' => null
8890
];
8991

9092
/**
@@ -100,7 +102,8 @@ class Viber implements ModelInterface, ArrayAccess, \JsonSerializable
100102
'imageUrl' => false,
101103
'buttonUrl' => false,
102104
'buttonText' => false,
103-
'channel' => false
105+
'channel' => false,
106+
'video' => false
104107
];
105108

106109
/**
@@ -196,7 +199,8 @@ public function isNullableSetToNull(string $property): bool
196199
'imageUrl' => 'image_url',
197200
'buttonUrl' => 'button_url',
198201
'buttonText' => 'button_text',
199-
'channel' => 'channel'
202+
'channel' => 'channel',
203+
'video' => 'video'
200204
];
201205

202206
/**
@@ -212,7 +216,8 @@ public function isNullableSetToNull(string $property): bool
212216
'imageUrl' => 'setImageUrl',
213217
'buttonUrl' => 'setButtonUrl',
214218
'buttonText' => 'setButtonText',
215-
'channel' => 'setChannel'
219+
'channel' => 'setChannel',
220+
'video' => 'setVideo'
216221
];
217222

218223
/**
@@ -228,7 +233,8 @@ public function isNullableSetToNull(string $property): bool
228233
'imageUrl' => 'getImageUrl',
229234
'buttonUrl' => 'getButtonUrl',
230235
'buttonText' => 'getButtonText',
231-
'channel' => 'getChannel'
236+
'channel' => 'getChannel',
237+
'video' => 'getVideo'
232238
];
233239

234240
/**
@@ -309,6 +315,7 @@ public function __construct(array $data = null)
309315
$this->setIfExists('buttonUrl', $data ?? [], null);
310316
$this->setIfExists('buttonText', $data ?? [], null);
311317
$this->setIfExists('channel', $data ?? [], 'viber');
318+
$this->setIfExists('video', $data ?? [], null);
312319
}
313320

314321
/**
@@ -587,6 +594,33 @@ public function setChannel($channel)
587594

588595
return $this;
589596
}
597+
598+
/**
599+
* Gets video
600+
*
601+
* @return \Messente\Api\Model\ViberVideo|null
602+
*/
603+
public function getVideo()
604+
{
605+
return $this->container['video'];
606+
}
607+
608+
/**
609+
* Sets video
610+
*
611+
* @param \Messente\Api\Model\ViberVideo|null $video video
612+
*
613+
* @return self
614+
*/
615+
public function setVideo($video)
616+
{
617+
if (is_null($video)) {
618+
throw new \InvalidArgumentException('non-nullable video cannot be null');
619+
}
620+
$this->container['video'] = $video;
621+
622+
return $this;
623+
}
590624
/**
591625
* Returns true if offset exists. False otherwise.
592626
*

0 commit comments

Comments
 (0)