Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added error codes for funding sources errors #39

Merged
merged 4 commits into from
Jan 9, 2025
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
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@

## 1.0.0 (2021-08-04)


### Bug Fixes

* bump version number ([2eb5d71](https://www.github.com/ShipEngine/shipengine-php/commit/2eb5d710f82ccefd2110a720394234e47e38040e))
* implement CD w/ release please ([5325e40](https://www.github.com/ShipEngine/shipengine-php/commit/5325e40f0bff35f8cda1fc5f67ce5f461345a905))
- bump version number ([2eb5d71](https://www.github.com/ShipEngine/shipengine-php/commit/2eb5d710f82ccefd2110a720394234e47e38040e))
- implement CD w/ release please ([5325e40](https://www.github.com/ShipEngine/shipengine-php/commit/5325e40f0bff35f8cda1fc5f67ce5f461345a905))

## 1.0.1

### Changes

* increase default timeout from 15s to 60s
- increase default timeout from 15s to 60s

## 1.0.2

### Changes

- Added error code FundingSourceMissingConfiguration
- Added error code FundingSourceError
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ <h3 id="toc">
<a href="classes/ShipEngine-Util-Constants-ErrorCode.html#constant_VERIFICATION_FAILURE">VERIFICATION_FAILURE</a>
<span>
&nbsp;= &quot;verification_failure&quot; </span>
</dt>
</ >
<dd>When verifying your account (by email, SMS, phone call, etc.) this error
indicates that the verification code is incorrect. Please re-start the
verification process to get a new code.</dd>
Expand All @@ -417,6 +417,18 @@ <h3 id="toc">
</dt>
<dd>ShipEngine only allows you to have one webhook of each type. If you would
like to replace a webhook with a new one, please delete the old one first.</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a href="classes/ShipEngine-Util-Constants-ErrorCode.html#constant_FUNDING_SOURCE_MISSING_CONFIGURATION">FUNDING_SOURCE_MISSING_CONFIGURATION</a>
<span>
&nbsp;= &quot;funding_source_missing_configuration&quot; </span>
</dt>
<dd>Funding source isnt properly configured and can't be used.</dd>
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
<a href="classes/ShipEngine-Util-Constants-ErrorCode.html#constant_FUNDING_SOURCE_ERROR">FUNDING_SOURCE_ERROR</a>
<span>
&nbsp;= &quot;funding_source_error&quot; </span>
</dt>
<dd>There was an unexpected problem with a funding source.</dd>

</dl>

Expand Down Expand Up @@ -1421,6 +1433,61 @@ <h4 class="phpdocumentor-element__name" id="constant_WEBHOOK_EVENT_TYPE_CONFLICT



</article>

<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_FUNDING_SOURCE_MISSING_CONFIGURATION">
FUNDING_SOURCE_MISSING_CONFIGURATION
<a href="classes/ShipEngine-Util-Constants-ErrorCode.html#constant_FUNDING_SOURCE_MISSING_CONFIGURATION" class="headerlink"><i class="fas fa-link"></i></a>
</h4>

<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Util/Constants/ErrorCode.php"><a href="files/src-util-constants-errorcode.html"><abbr title="src/Util/Constants/ErrorCode.php">ErrorCode.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">234</span>
</aside>

<p class="phpdocumentor-summary">Funding source isnt properly configured and can't be used.</p>

<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">FUNDING_SOURCE_MISSING_CONFIGURATION</span>
= <span class="phpdocumentor-signature__default-value">&quot;funding_source_missing_configuration&quot;</span>
</code>


<section class="phpdocumentor-description"></section>



</article>
<article class="phpdocumentor-element -constant -public ">
<h4 class="phpdocumentor-element__name" id="constant_FUNDING_SOURCE_ERROR">
FUNDING_SOURCE_ERROR
<a href="classes/ShipEngine-Util-Constants-ErrorCode.html#constant_FUNDING_SOURCE_ERROR" class="headerlink"><i class="fas fa-link"></i></a>
</h4>

<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="src/Util/Constants/ErrorCode.php"><a href="files/src-util-constants-errorcode.html"><abbr title="src/Util/Constants/ErrorCode.php">ErrorCode.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">234</span>
</aside>

<p class="phpdocumentor-summary">There was an unexpected problem with a funding source.</p>

<code class="phpdocumentor-signature phpdocumentor-code ">
<span class="phpdocumentor-signature__visibility">public</span>
<span class="phpdocumentor-signature__type">mixed</span>
<span class="phpdocumentor-signature__name">FUNDING_SOURCE_ERROR</span>
= <span class="phpdocumentor-signature__default-value">&quot;funding_source_error&quot;</span>
</code>


<section class="phpdocumentor-description"></section>



</article>
</section>

Expand Down
2 changes: 1 addition & 1 deletion src/ShipEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class ShipEngine
/**
* ShipEngine SDK Version
*/
public const VERSION = '1.0.1';
public const VERSION = '1.0.2';

// /**
// *
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.1
1.0.2
Loading