Skip to content

Commit

Permalink
Merge pull request #83 from team-telnyx/10DLC-Update
Browse files Browse the repository at this point in the history
Committing initial 10DLC endpoitns
  • Loading branch information
ADandyGuyInSpace authored Sep 13, 2023
2 parents 21486de + cede683 commit 9111351
Show file tree
Hide file tree
Showing 171 changed files with 23 additions and 21 deletions.
Empty file modified CHANGELOG.md
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified VERSION
100644 → 100755
Empty file.
Empty file modified composer.json
100644 → 100755
Empty file.
Empty file modified composer.lock
100644 → 100755
Empty file.
Empty file modified data/ca-certificates.crt
100644 → 100755
Empty file.
Empty file modified docker-compose.yml
100644 → 100755
Empty file.
Empty file modified docker/Dockerfile
100644 → 100755
Empty file.
Empty file modified docker/entrypoint.sh
100644 → 100755
Empty file.
Empty file modified examples/example_webhook.php
100644 → 100755
Empty file.
Empty file modified examples/simple_webhook.php
100644 → 100755
Empty file.
Empty file modified examples/verify_sms_demo.php
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions init.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@
require __DIR__ . '/lib/OutboundVoiceProfile.php';
require __DIR__ . '/lib/MessagingHostedNumberOrder.php';

// Telnyx API: 10DLC
require __DIR__ . '/lib/PhoneNumberAssignmentByProfile.php';
require __DIR__ . '/lib/Campaign.php';
require __DIR__ . '/lib/Brand.php';
require __DIR__ . '/lib/PhoneNumberCampaign.php';

// Telnyx API: Misc
require __DIR__ . '/lib/Address.php';
require __DIR__ . '/lib/BillingGroup.php';
Expand Down
Empty file modified lib/Address.php
100644 → 100755
Empty file.
Empty file modified lib/AlphanumericSenderID.php
100644 → 100755
Empty file.
Empty file modified lib/ApiOperations/All.php
100644 → 100755
Empty file.
Empty file modified lib/ApiOperations/Create.php
100644 → 100755
Empty file.
Empty file modified lib/ApiOperations/Delete.php
100644 → 100755
Empty file.
Empty file modified lib/ApiOperations/NestedResource.php
100644 → 100755
Empty file.
Empty file modified lib/ApiOperations/Request.php
100644 → 100755
Empty file.
Empty file modified lib/ApiOperations/Retrieve.php
100644 → 100755
Empty file.
Empty file modified lib/ApiOperations/Update.php
100644 → 100755
Empty file.
Empty file modified lib/ApiRequestor.php
100644 → 100755
Empty file.
Empty file modified lib/ApiResource.php
100644 → 100755
Empty file.
Empty file modified lib/ApiResponse.php
100644 → 100755
Empty file.
Empty file modified lib/AvailablePhoneNumber.php
100644 → 100755
Empty file.
Empty file modified lib/Balance.php
100644 → 100755
Empty file.
Empty file modified lib/BillingGroup.php
100644 → 100755
Empty file.
Empty file modified lib/Call.php
100644 → 100755
Empty file.
Empty file modified lib/CallControlApplication.php
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion lib/Collection.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function retrieve($id, $params = null, $opts = null)
* @return \ArrayIterator An iterator that can be used to iterate
* across objects in the current page.
*/
public function getIterator(): \ArrayIterator
public function getIterator()
{
return new \ArrayIterator($this->data);
}
Expand Down
Empty file modified lib/Conference.php
100644 → 100755
Empty file.
Empty file modified lib/Connection.php
100644 → 100755
Empty file.
Empty file modified lib/CredentialConnection.php
100644 → 100755
Empty file.
Empty file modified lib/ErrorObject.php
100644 → 100755
Empty file.
Empty file modified lib/Event.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/ApiConnectionException.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/ApiErrorException.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/AuthenticationException.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/BadMethodCallException.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/ExceptionInterface.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/InvalidArgumentException.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/InvalidRequestException.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/PermissionException.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/RateLimitException.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/SignatureVerificationException.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/UnexpectedValueException.php
100644 → 100755
Empty file.
Empty file modified lib/Exception/UnknownApiErrorException.php
100644 → 100755
Empty file.
Empty file modified lib/FQDN.php
100644 → 100755
Empty file.
Empty file modified lib/FQDNConnection.php
100644 → 100755
Empty file.
Empty file modified lib/Fax.php
100644 → 100755
Empty file.
Empty file modified lib/FaxApplication.php
100644 → 100755
Empty file.
Empty file modified lib/HttpClient/ClientInterface.php
100644 → 100755
Empty file.
Empty file modified lib/HttpClient/CurlClient.php
100644 → 100755
Empty file.
Empty file modified lib/IP.php
100644 → 100755
Empty file.
Empty file modified lib/IPConnection.php
100644 → 100755
Empty file.
Empty file modified lib/InboundChannel.php
100644 → 100755
Empty file.
Empty file modified lib/Message.php
100644 → 100755
Empty file.
Empty file modified lib/MessagingHostedNumberOrder.php
100644 → 100755
Empty file.
Empty file modified lib/MessagingPhoneNumber.php
100644 → 100755
Empty file.
Empty file modified lib/MessagingProfile.php
100644 → 100755
Empty file.
Empty file modified lib/MobileOperatorNetwork.php
100644 → 100755
Empty file.
Empty file modified lib/NumberLookup.php
100644 → 100755
Empty file.
Empty file modified lib/NumberOrder.php
100644 → 100755
Empty file.
Empty file modified lib/NumberOrderDocument.php
100644 → 100755
Empty file.
Empty file modified lib/NumberReservation.php
100644 → 100755
Empty file.
Empty file modified lib/OtaUpdate.php
100644 → 100755
Empty file.
Empty file modified lib/OutboundVoiceProfile.php
100644 → 100755
Empty file.
Empty file modified lib/PhoneNumber.php
100644 → 100755
Empty file.
Empty file modified lib/PhoneNumber/Messaging.php
100644 → 100755
Empty file.
Empty file modified lib/PhoneNumber/Voice.php
100644 → 100755
Empty file.
Empty file modified lib/PortingOrder.php
100644 → 100755
Empty file.
Empty file modified lib/PortingPhoneNumber.php
100644 → 100755
Empty file.
Empty file modified lib/Portout.php
100644 → 100755
Empty file.
Empty file modified lib/RegulatoryRequirement.php
100644 → 100755
Empty file.
Empty file modified lib/RequestTelemetry.php
100644 → 100755
Empty file.
Empty file modified lib/ShortCode.php
100644 → 100755
Empty file.
Empty file modified lib/SimCard.php
100644 → 100755
Empty file.
Empty file modified lib/TelephonyCredential.php
100644 → 100755
Empty file.
Empty file modified lib/Telnyx.php
100644 → 100755
Empty file.
14 changes: 7 additions & 7 deletions lib/TelnyxObject.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -178,28 +178,28 @@ public function __debugInfo()
}

// ArrayAccess methods
public function offsetSet(mixed $k, mixed $v): void
public function offsetSet($k, $v)
{
$this->$k = $v;
}

public function offsetExists(mixed $k): bool
public function offsetExists($k)
{
return array_key_exists($k, $this->_values);
}

public function offsetUnset(mixed $k): void
public function offsetUnset($k)
{
unset($this->$k);
}

public function offsetGet(mixed $k): mixed
public function offsetGet($k)
{
return array_key_exists($k, $this->_values) ? $this->_values[$k] : null;
}

// Countable method
public function count(): int
public function count()
{
return count($this->_values);
}
Expand Down Expand Up @@ -406,7 +406,7 @@ public function serializeParamsValue($value, $original, $unsaved, $force, $key =
}
}

public function jsonSerialize(): array
public function jsonSerialize()
{
return $this->toArray(true);
}
Expand All @@ -417,7 +417,7 @@ public function jsonSerialize(): array
*
* @return array the associative array
*/
public function toArray(): array
public function toArray()
{
$maybeToArray = function ($value) {
if (null === $value) {
Expand Down
8 changes: 2 additions & 6 deletions lib/Util/AutoPagingIterator.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct($collection, $params)
$this->params = $params;
}

public function rewind(): void
public function rewind()
{
// Actually rewinding would require making a copy of the original page.
}
Expand All @@ -33,10 +33,6 @@ public function key()
return key($this->page->data) + $this->pageOffset;
}

/**
* @return void|false This will only return void in the future due to https://wiki.php.net/rfc/internal_method_return_types.
*/
#[\ReturnTypeWillChange]
public function next()
{
$item = next($this->page->data);
Expand All @@ -56,7 +52,7 @@ public function next()
}
}

public function valid(): bool
public function valid()
{
$key = key($this->page->data);
$valid = ($key !== null && $key !== false);
Expand Down
12 changes: 6 additions & 6 deletions lib/Util/CaseInsensitiveArray.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ public function __construct($initial_array = [])
$this->container = \array_change_key_case($initial_array, \CASE_LOWER);
}

public function count(): int
public function count()
{
return \count($this->container);
}

public function getIterator(): \ArrayIterator
public function getIterator()
{
return new \ArrayIterator($this->container);
}

public function offsetSet(mixed $offset, mixed $value): void
public function offsetSet($offset, $value)
{
$offset = static::maybeLowercase($offset);
if (null === $offset) {
Expand All @@ -43,20 +43,20 @@ public function offsetSet(mixed $offset, mixed $value): void
}
}

public function offsetExists(mixed $offset): bool
public function offsetExists($offset)
{
$offset = static::maybeLowercase($offset);

return isset($this->container[$offset]);
}

public function offsetUnset(mixed $offset): void
public function offsetUnset($offset)
{
$offset = static::maybeLowercase($offset);
unset($this->container[$offset]);
}

public function offsetGet(mixed $offset): mixed
public function offsetGet($offset)
{
$offset = static::maybeLowercase($offset);

Expand Down
Empty file modified lib/Util/DefaultLogger.php
100644 → 100755
Empty file.
Empty file modified lib/Util/LoggerInterface.php
100644 → 100755
Empty file.
Empty file modified lib/Util/ObjectTypes.php
100644 → 100755
Empty file.
Empty file modified lib/Util/RandomGenerator.php
100644 → 100755
Empty file.
Empty file modified lib/Util/RequestOptions.php
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion lib/Util/Set.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function toArray()
return \array_keys($this->_elts);
}

public function getIterator(): \ArrayIterator
public function getIterator()
{
return new ArrayIterator($this->toArray());
}
Expand Down
Empty file modified lib/Util/Util.php
100644 → 100755
Empty file.
Empty file modified lib/Verification.php
100644 → 100755
Empty file.
Empty file modified lib/VerifyProfile.php
100644 → 100755
Empty file.
Empty file modified lib/VerifyVerification.php
100644 → 100755
Empty file.
Empty file modified lib/Webhook.php
100644 → 100755
Empty file.
Empty file modified lib/WebhookSignature.php
100644 → 100755
Empty file.
Empty file modified phpunit.no_autoload.xml
100644 → 100755
Empty file.
Empty file modified phpunit.xml
100644 → 100755
Empty file.
Empty file modified tests/TelnyxMock.php
100644 → 100755
Empty file.
Empty file modified tests/TestCase.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/AddressTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ApiOperations/AllTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ApiOperations/CreateTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ApiOperations/DeleteTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ApiOperations/RequestTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ApiOperations/RetrieveTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ApiOperations/UpdateTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ApiRequestorTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ApiResourceTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ApiResponseTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/AvailablePhoneNumberTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/BalanceTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/BillingGroupTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/CallControlApplicationTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/CallTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/CollectionTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ConferenceTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ConnectionTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/CredentialConnectionTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ErrorObjectTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/EventTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/Exception/ApiErrorExceptionTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/Exception/InvalidRequestExceptionTest.php
100644 → 100755
Empty file.
Empty file.
Empty file modified tests/api_resources/FQDNConnectionTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/FQDNTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/FaxApplicationTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/FaxTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/HttpClient/CurlClientTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/IPConnectionTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/IPTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/InboundChannelTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/MessageTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/MessagingHostedNumberOrderTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/MessagingPhoneNumberTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/MessagingProfileTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/MobileOperatorNetworkTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/NumberLookupTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/NumberOrderDocumentTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/NumberOrderTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/NumberReservationTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/OtaUpdateTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/OutboundVoiceProfileTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/PhoneNumber/MessagingTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/PhoneNumber/VoiceTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/PhoneNumberTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/PortingOrderTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/PortingPhoneNumberTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/PortoutTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/RegulatoryRequirementTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/RequestTelemetryTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/ShortCodeTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/SimCardTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/TelephonyCredentialTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/TelnyxObjectTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/TelnyxTelemetryTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/TelnyxTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/Util/CaseInsensitiveArrayTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/Util/DefaultLoggerTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/Util/ObjectTypesTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/Util/RequestOptionsTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/Util/SetTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/Util/UtilTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/VerificationTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/VerifyProfileTest.php
100644 → 100755
Empty file.
Empty file modified tests/api_resources/WebhookTest.php
100644 → 100755
Empty file.
Empty file modified tests/bootstrap.no_autoload.php
100644 → 100755
Empty file.
Empty file modified tests/bootstrap.php
100644 → 100755
Empty file.
Empty file modified tests/data/test.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified tests/openapi/README.md
100644 → 100755
Empty file.
Empty file modified update_certs.php
100644 → 100755
Empty file.

0 comments on commit 9111351

Please sign in to comment.