Skip to content

Commit 43a40b9

Browse files
authored
Resolve VCSWP-23775 (#47)
* Update SDK with latest spec changes * Fix spec for TFN property in MessageResult * Add changelog entry to SDK PR * Update latest changelog entry date * Remove test comments
1 parent 439c8ff commit 43a40b9

File tree

112 files changed

+2451
-2499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+2451
-2499
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ composer.phar
1313

1414
# PHPUnit cache
1515
.phpunit.result.cache
16-
node_modules

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ docs/Model/SetTalk.md
130130
docs/Model/Sms.md
131131
docs/Model/StartRecordCall.md
132132
docs/Model/TFN.md
133+
docs/Model/TFNCampaign.md
133134
docs/Model/TerminateConference.md
134135
docs/Model/TranscribeReason.md
135136
docs/Model/TranscribeTermReason.md
@@ -275,6 +276,7 @@ lib/Model/SetTalk.php
275276
lib/Model/Sms.php
276277
lib/Model/StartRecordCall.php
277278
lib/Model/TFN.php
279+
lib/Model/TFNCampaign.php
278280
lib/Model/TerminateConference.php
279281
lib/Model/TranscribeReason.php
280282
lib/Model/TranscribeTermReason.php
@@ -416,6 +418,7 @@ test/Model/SetListenTest.php
416418
test/Model/SetTalkTest.php
417419
test/Model/SmsTest.php
418420
test/Model/StartRecordCallTest.php
421+
test/Model/TFNCampaignTest.php
419422
test/Model/TFNTest.php
420423
test/Model/TerminateConferenceTest.php
421424
test/Model/TranscribeReasonTest.php

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,30 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
99

1010
None
1111

12+
<a name="5.1.0"></a>
13+
14+
## [5.1.0] - 2025-02-05
15+
16+
### Added
17+
18+
- CampaignTFN and MessageResultsAllOfTfn models
19+
1220
<a name="5.0.0"></a>
1321

1422
## [5.0.0] - 2025-01-08
1523

1624
### Added
25+
1726
- Webhook classes
1827
- More idiomated Enum management
1928

2029
### Changed
30+
2131
- Use upgraded openapi generator
2232

2333
### Removed
24-
- *AllOf model files
34+
35+
- \*AllOf model files
2536

2637
<a name="4.7.0"></a>
2738

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ Class | Method | HTTP request | Description
307307
- [Sms](docs/Model/Sms.md)
308308
- [StartRecordCall](docs/Model/StartRecordCall.md)
309309
- [TFN](docs/Model/TFN.md)
310+
- [TFNCampaign](docs/Model/TFNCampaign.md)
310311
- [TerminateConference](docs/Model/TerminateConference.md)
311312
- [TranscribeReason](docs/Model/TranscribeReason.md)
312313
- [TranscribeTermReason](docs/Model/TranscribeTermReason.md)
@@ -346,6 +347,6 @@ [email protected]
346347
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
347348

348349
- API version: `1.0.0`
349-
- Package version: `5.0.0`
350+
- Package version: `5.1.0`
350351
- Generator version: `7.9.0`
351352
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "freeclimbapi/php-sdk",
3-
"version": "5.0.0",
3+
"version": "5.1.0",
44
"description": "FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.",
55
"keywords": [
66
"openapitools",

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Model/MessageResult.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ Name | Type | Description | Notes
2020
**campaign_id** | **string** | The unique identifier for the campaign associated with the message | [optional]
2121
**segment_count** | **float** | The number of segments into which the message was split | [optional]
2222
**media_urls** | **string[]** | an array of HTTP URLs which were attached this this message | [optional]
23+
**tfn** | [**\FreeClimb\Api\Model\TFN**](TFN.md) | | [optional]
24+
**phone_number_id** | **string** | String that uniquely identifies the phoneNumber resource used to send this Message | [optional]
25+
**application_id** | **string** | String that uniquely identifies the Application resource used to send this Message | [optional]
2326

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

docs/Model/TFNCampaign.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# # TFNCampaign
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**account_id** | **string** | ID of the account that created this participant. |
8+
**campaign_id** | **string** | TFNCampaignId |
9+
**use_case** | **string** | |
10+
**registration_status** | [**\FreeClimb\Api\Model\SMSTollFreeCampaignRegistrationStatus**](SMSTollFreeCampaignRegistrationStatus.md) | |
11+
**date_created** | **string** | |
12+
**date_updated** | **string** | |
13+
**date_created_iso** | **string** | |
14+
**date_updated_iso** | **string** | |
15+
**revision** | **int** | |
16+
17+
[[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
@@ -102,7 +102,7 @@ class Configuration
102102
*
103103
* @var string
104104
*/
105-
protected $userAgent = 'OpenAPI-Generator/5.0.0/PHP';
105+
protected $userAgent = 'OpenAPI-Generator/5.1.0/PHP';
106106

107107
/**
108108
* Debug switch (default set to false)
@@ -435,7 +435,7 @@ public static function toDebugReport()
435435
$report .= ' OS: ' . php_uname() . PHP_EOL;
436436
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
437437
$report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL;
438-
$report .= ' SDK Package Version: 5.0.0' . PHP_EOL;
438+
$report .= ' SDK Package Version: 5.1.0' . PHP_EOL;
439439
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
440440

441441
return $report;

lib/Model/MessageResult.php

Lines changed: 122 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ class MessageResult implements ModelInterface, ArrayAccess, \JsonSerializable
7474
'brand_id' => 'string',
7575
'campaign_id' => 'string',
7676
'segment_count' => 'float',
77-
'media_urls' => 'string[]'
77+
'media_urls' => 'string[]',
78+
'tfn' => '\FreeClimb\Api\Model\TFN',
79+
'phone_number_id' => 'string',
80+
'application_id' => 'string'
7881
];
7982

8083
/**
@@ -100,7 +103,10 @@ class MessageResult implements ModelInterface, ArrayAccess, \JsonSerializable
100103
'brand_id' => null,
101104
'campaign_id' => null,
102105
'segment_count' => null,
103-
'media_urls' => 'uri'
106+
'media_urls' => 'uri',
107+
'tfn' => null,
108+
'phone_number_id' => null,
109+
'application_id' => null
104110
];
105111

106112
/**
@@ -124,7 +130,10 @@ class MessageResult implements ModelInterface, ArrayAccess, \JsonSerializable
124130
'brand_id' => true,
125131
'campaign_id' => true,
126132
'segment_count' => true,
127-
'media_urls' => true
133+
'media_urls' => true,
134+
'tfn' => false,
135+
'phone_number_id' => true,
136+
'application_id' => true
128137
];
129138

130139
/**
@@ -228,7 +237,10 @@ public function isNullableSetToNull(string $property): bool
228237
'brand_id' => 'brandId',
229238
'campaign_id' => 'campaignId',
230239
'segment_count' => 'segmentCount',
231-
'media_urls' => 'mediaUrls'
240+
'media_urls' => 'mediaUrls',
241+
'tfn' => 'tfn',
242+
'phone_number_id' => 'phoneNumberId',
243+
'application_id' => 'applicationId'
232244
];
233245

234246
/**
@@ -252,7 +264,10 @@ public function isNullableSetToNull(string $property): bool
252264
'brand_id' => 'setBrandId',
253265
'campaign_id' => 'setCampaignId',
254266
'segment_count' => 'setSegmentCount',
255-
'media_urls' => 'setMediaUrls'
267+
'media_urls' => 'setMediaUrls',
268+
'tfn' => 'setTfn',
269+
'phone_number_id' => 'setPhoneNumberId',
270+
'application_id' => 'setApplicationId'
256271
];
257272

258273
/**
@@ -276,7 +291,10 @@ public function isNullableSetToNull(string $property): bool
276291
'brand_id' => 'getBrandId',
277292
'campaign_id' => 'getCampaignId',
278293
'segment_count' => 'getSegmentCount',
279-
'media_urls' => 'getMediaUrls'
294+
'media_urls' => 'getMediaUrls',
295+
'tfn' => 'getTfn',
296+
'phone_number_id' => 'getPhoneNumberId',
297+
'application_id' => 'getApplicationId'
280298
];
281299

282300
/**
@@ -352,6 +370,9 @@ public function __construct(?array $data = null)
352370
$this->setIfExists('campaign_id', $data ?? [], null);
353371
$this->setIfExists('segment_count', $data ?? [], null);
354372
$this->setIfExists('media_urls', $data ?? [], null);
373+
$this->setIfExists('tfn', $data ?? [], null);
374+
$this->setIfExists('phone_number_id', $data ?? [], null);
375+
$this->setIfExists('application_id', $data ?? [], null);
355376
}
356377

357378
/**
@@ -911,6 +932,101 @@ public function setMediaUrls($media_urls)
911932

912933
return $this;
913934
}
935+
936+
/**
937+
* Gets tfn
938+
*
939+
* @return \FreeClimb\Api\Model\TFN|null
940+
*/
941+
public function getTfn()
942+
{
943+
return $this->container['tfn'];
944+
}
945+
946+
/**
947+
* Sets tfn
948+
*
949+
* @param \FreeClimb\Api\Model\TFN|null $tfn tfn
950+
*
951+
* @return self
952+
*/
953+
public function setTfn($tfn)
954+
{
955+
if (is_null($tfn)) {
956+
throw new \InvalidArgumentException('non-nullable tfn cannot be null');
957+
}
958+
$this->container['tfn'] = $tfn;
959+
960+
return $this;
961+
}
962+
963+
/**
964+
* Gets phone_number_id
965+
*
966+
* @return string|null
967+
*/
968+
public function getPhoneNumberId()
969+
{
970+
return $this->container['phone_number_id'];
971+
}
972+
973+
/**
974+
* Sets phone_number_id
975+
*
976+
* @param string|null $phone_number_id String that uniquely identifies the phoneNumber resource used to send this Message
977+
*
978+
* @return self
979+
*/
980+
public function setPhoneNumberId($phone_number_id)
981+
{
982+
if (is_null($phone_number_id)) {
983+
array_push($this->openAPINullablesSetToNull, 'phone_number_id');
984+
} else {
985+
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
986+
$index = array_search('phone_number_id', $nullablesSetToNull, true);
987+
if ($index !== false) {
988+
unset($nullablesSetToNull[$index]);
989+
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
990+
}
991+
}
992+
$this->container['phone_number_id'] = $phone_number_id;
993+
994+
return $this;
995+
}
996+
997+
/**
998+
* Gets application_id
999+
*
1000+
* @return string|null
1001+
*/
1002+
public function getApplicationId()
1003+
{
1004+
return $this->container['application_id'];
1005+
}
1006+
1007+
/**
1008+
* Sets application_id
1009+
*
1010+
* @param string|null $application_id String that uniquely identifies the Application resource used to send this Message
1011+
*
1012+
* @return self
1013+
*/
1014+
public function setApplicationId($application_id)
1015+
{
1016+
if (is_null($application_id)) {
1017+
array_push($this->openAPINullablesSetToNull, 'application_id');
1018+
} else {
1019+
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
1020+
$index = array_search('application_id', $nullablesSetToNull, true);
1021+
if ($index !== false) {
1022+
unset($nullablesSetToNull[$index]);
1023+
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
1024+
}
1025+
}
1026+
$this->container['application_id'] = $application_id;
1027+
1028+
return $this;
1029+
}
9141030
/**
9151031
* Returns true if offset exists. False otherwise.
9161032
*

0 commit comments

Comments
 (0)