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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ composer.phar

# PHPUnit cache
.phpunit.result.cache
node_modules
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ docs/Model/SetTalk.md
docs/Model/Sms.md
docs/Model/StartRecordCall.md
docs/Model/TFN.md
docs/Model/TFNCampaign.md
docs/Model/TerminateConference.md
docs/Model/TranscribeReason.md
docs/Model/TranscribeTermReason.md
Expand Down Expand Up @@ -275,6 +276,7 @@ lib/Model/SetTalk.php
lib/Model/Sms.php
lib/Model/StartRecordCall.php
lib/Model/TFN.php
lib/Model/TFNCampaign.php
lib/Model/TerminateConference.php
lib/Model/TranscribeReason.php
lib/Model/TranscribeTermReason.php
Expand Down Expand Up @@ -416,6 +418,7 @@ test/Model/SetListenTest.php
test/Model/SetTalkTest.php
test/Model/SmsTest.php
test/Model/StartRecordCallTest.php
test/Model/TFNCampaignTest.php
test/Model/TFNTest.php
test/Model/TerminateConferenceTest.php
test/Model/TranscribeReasonTest.php
Expand Down
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,30 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

None

<a name="5.1.0"></a>

## [5.1.0] - 2025-02-05

### Added

- CampaignTFN and MessageResultsAllOfTfn models

<a name="5.0.0"></a>

## [5.0.0] - 2025-01-08

### Added

- Webhook classes
- More idiomated Enum management

### Changed

- Use upgraded openapi generator

### Removed
- *AllOf model files

- \*AllOf model files

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

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ Class | Method | HTTP request | Description
- [Sms](docs/Model/Sms.md)
- [StartRecordCall](docs/Model/StartRecordCall.md)
- [TFN](docs/Model/TFN.md)
- [TFNCampaign](docs/Model/TFNCampaign.md)
- [TerminateConference](docs/Model/TerminateConference.md)
- [TranscribeReason](docs/Model/TranscribeReason.md)
- [TranscribeTermReason](docs/Model/TranscribeTermReason.md)
Expand Down Expand Up @@ -346,6 +347,6 @@ [email protected]
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `1.0.0`
- Package version: `5.0.0`
- Package version: `5.1.0`
- Generator version: `7.9.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "freeclimbapi/php-sdk",
"version": "5.0.0",
"version": "5.1.0",
"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.",
"keywords": [
"openapitools",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
17 changes: 17 additions & 0 deletions docs/Model/TFNCampaign.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# # TFNCampaign

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**account_id** | **string** | ID of the account that created this participant. |
**campaign_id** | **string** | TFNCampaignId |
**use_case** | **string** | |
**registration_status** | [**\FreeClimb\Api\Model\SMSTollFreeCampaignRegistrationStatus**](SMSTollFreeCampaignRegistrationStatus.md) | |
**date_created** | **string** | |
**date_updated** | **string** | |
**date_created_iso** | **string** | |
**date_updated_iso** | **string** | |
**revision** | **int** | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/5.0.0/PHP';
protected $userAgent = 'OpenAPI-Generator/5.1.0/PHP';

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

return $report;
Expand Down
128 changes: 122 additions & 6 deletions lib/Model/MessageResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ class MessageResult implements ModelInterface, ArrayAccess, \JsonSerializable
'brand_id' => 'string',
'campaign_id' => 'string',
'segment_count' => 'float',
'media_urls' => 'string[]'
'media_urls' => 'string[]',
'tfn' => '\FreeClimb\Api\Model\TFN',
'phone_number_id' => 'string',
'application_id' => 'string'
];

/**
Expand All @@ -100,7 +103,10 @@ class MessageResult implements ModelInterface, ArrayAccess, \JsonSerializable
'brand_id' => null,
'campaign_id' => null,
'segment_count' => null,
'media_urls' => 'uri'
'media_urls' => 'uri',
'tfn' => null,
'phone_number_id' => null,
'application_id' => null
];

/**
Expand All @@ -124,7 +130,10 @@ class MessageResult implements ModelInterface, ArrayAccess, \JsonSerializable
'brand_id' => true,
'campaign_id' => true,
'segment_count' => true,
'media_urls' => true
'media_urls' => true,
'tfn' => false,
'phone_number_id' => true,
'application_id' => true
];

/**
Expand Down Expand Up @@ -228,7 +237,10 @@ public function isNullableSetToNull(string $property): bool
'brand_id' => 'brandId',
'campaign_id' => 'campaignId',
'segment_count' => 'segmentCount',
'media_urls' => 'mediaUrls'
'media_urls' => 'mediaUrls',
'tfn' => 'tfn',
'phone_number_id' => 'phoneNumberId',
'application_id' => 'applicationId'
];

/**
Expand All @@ -252,7 +264,10 @@ public function isNullableSetToNull(string $property): bool
'brand_id' => 'setBrandId',
'campaign_id' => 'setCampaignId',
'segment_count' => 'setSegmentCount',
'media_urls' => 'setMediaUrls'
'media_urls' => 'setMediaUrls',
'tfn' => 'setTfn',
'phone_number_id' => 'setPhoneNumberId',
'application_id' => 'setApplicationId'
];

/**
Expand All @@ -276,7 +291,10 @@ public function isNullableSetToNull(string $property): bool
'brand_id' => 'getBrandId',
'campaign_id' => 'getCampaignId',
'segment_count' => 'getSegmentCount',
'media_urls' => 'getMediaUrls'
'media_urls' => 'getMediaUrls',
'tfn' => 'getTfn',
'phone_number_id' => 'getPhoneNumberId',
'application_id' => 'getApplicationId'
];

/**
Expand Down Expand Up @@ -352,6 +370,9 @@ public function __construct(?array $data = null)
$this->setIfExists('campaign_id', $data ?? [], null);
$this->setIfExists('segment_count', $data ?? [], null);
$this->setIfExists('media_urls', $data ?? [], null);
$this->setIfExists('tfn', $data ?? [], null);
$this->setIfExists('phone_number_id', $data ?? [], null);
$this->setIfExists('application_id', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -911,6 +932,101 @@ public function setMediaUrls($media_urls)

return $this;
}

/**
* Gets tfn
*
* @return \FreeClimb\Api\Model\TFN|null
*/
public function getTfn()
{
return $this->container['tfn'];
}

/**
* Sets tfn
*
* @param \FreeClimb\Api\Model\TFN|null $tfn tfn
*
* @return self
*/
public function setTfn($tfn)
{
if (is_null($tfn)) {
throw new \InvalidArgumentException('non-nullable tfn cannot be null');
}
$this->container['tfn'] = $tfn;

return $this;
}

/**
* Gets phone_number_id
*
* @return string|null
*/
public function getPhoneNumberId()
{
return $this->container['phone_number_id'];
}

/**
* Sets phone_number_id
*
* @param string|null $phone_number_id String that uniquely identifies the phoneNumber resource used to send this Message
*
* @return self
*/
public function setPhoneNumberId($phone_number_id)
{
if (is_null($phone_number_id)) {
array_push($this->openAPINullablesSetToNull, 'phone_number_id');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('phone_number_id', $nullablesSetToNull, true);
if ($index !== false) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}
$this->container['phone_number_id'] = $phone_number_id;

return $this;
}

/**
* Gets application_id
*
* @return string|null
*/
public function getApplicationId()
{
return $this->container['application_id'];
}

/**
* Sets application_id
*
* @param string|null $application_id String that uniquely identifies the Application resource used to send this Message
*
* @return self
*/
public function setApplicationId($application_id)
{
if (is_null($application_id)) {
array_push($this->openAPINullablesSetToNull, 'application_id');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('application_id', $nullablesSetToNull, true);
if ($index !== false) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}
$this->container['application_id'] = $application_id;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
Loading