Skip to content

Commit c69165f

Browse files
Merge pull request #39 from ShipEngine/ENGINE-7190-funding-sources-wallet-errors
Added error codes for funding sources errors
2 parents 793929d + d052459 commit c69165f

File tree

4 files changed

+80
-7
lines changed

4 files changed

+80
-7
lines changed

CHANGELOG.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22

33
## 1.0.0 (2021-08-04)
44

5-
65
### Bug Fixes
76

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

1110
## 1.0.1
1211

1312
### Changes
1413

15-
* increase default timeout from 15s to 60s
14+
- increase default timeout from 15s to 60s
15+
16+
## 1.0.2
17+
18+
### Changes
19+
20+
- Added error code FundingSourceMissingConfiguration
21+
- Added error code FundingSourceError

docs/shipengine-php-docs/classes/ShipEngine-Util-Constants-ErrorCode.html

+68-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ <h3 id="toc">
397397
<a href="classes/ShipEngine-Util-Constants-ErrorCode.html#constant_VERIFICATION_FAILURE">VERIFICATION_FAILURE</a>
398398
<span>
399399
&nbsp;= &quot;verification_failure&quot; </span>
400-
</dt>
400+
</ >
401401
<dd>When verifying your account (by email, SMS, phone call, etc.) this error
402402
indicates that the verification code is incorrect. Please re-start the
403403
verification process to get a new code.</dd>
@@ -417,6 +417,18 @@ <h3 id="toc">
417417
</dt>
418418
<dd>ShipEngine only allows you to have one webhook of each type. If you would
419419
like to replace a webhook with a new one, please delete the old one first.</dd>
420+
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
421+
<a href="classes/ShipEngine-Util-Constants-ErrorCode.html#constant_FUNDING_SOURCE_MISSING_CONFIGURATION">FUNDING_SOURCE_MISSING_CONFIGURATION</a>
422+
<span>
423+
&nbsp;= &quot;funding_source_missing_configuration&quot; </span>
424+
</dt>
425+
<dd>Funding source isnt properly configured and can't be used.</dd>
426+
<dt class="phpdocumentor-table-of-contents__entry -constant -public">
427+
<a href="classes/ShipEngine-Util-Constants-ErrorCode.html#constant_FUNDING_SOURCE_ERROR">FUNDING_SOURCE_ERROR</a>
428+
<span>
429+
&nbsp;= &quot;funding_source_error&quot; </span>
430+
</dt>
431+
<dd>There was an unexpected problem with a funding source.</dd>
420432

421433
</dl>
422434

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

14221434

14231435

1436+
</article>
1437+
1438+
<article class="phpdocumentor-element -constant -public ">
1439+
<h4 class="phpdocumentor-element__name" id="constant_FUNDING_SOURCE_MISSING_CONFIGURATION">
1440+
FUNDING_SOURCE_MISSING_CONFIGURATION
1441+
<a href="classes/ShipEngine-Util-Constants-ErrorCode.html#constant_FUNDING_SOURCE_MISSING_CONFIGURATION" class="headerlink"><i class="fas fa-link"></i></a>
1442+
</h4>
1443+
1444+
<aside class="phpdocumentor-element-found-in">
1445+
<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>
1446+
:
1447+
<span class="phpdocumentor-element-found-in__line">234</span>
1448+
</aside>
1449+
1450+
<p class="phpdocumentor-summary">Funding source isnt properly configured and can't be used.</p>
1451+
1452+
<code class="phpdocumentor-signature phpdocumentor-code ">
1453+
<span class="phpdocumentor-signature__visibility">public</span>
1454+
<span class="phpdocumentor-signature__type">mixed</span>
1455+
<span class="phpdocumentor-signature__name">FUNDING_SOURCE_MISSING_CONFIGURATION</span>
1456+
= <span class="phpdocumentor-signature__default-value">&quot;funding_source_missing_configuration&quot;</span>
1457+
</code>
1458+
1459+
1460+
<section class="phpdocumentor-description"></section>
1461+
1462+
1463+
1464+
</article>
1465+
<article class="phpdocumentor-element -constant -public ">
1466+
<h4 class="phpdocumentor-element__name" id="constant_FUNDING_SOURCE_ERROR">
1467+
FUNDING_SOURCE_ERROR
1468+
<a href="classes/ShipEngine-Util-Constants-ErrorCode.html#constant_FUNDING_SOURCE_ERROR" class="headerlink"><i class="fas fa-link"></i></a>
1469+
</h4>
1470+
1471+
<aside class="phpdocumentor-element-found-in">
1472+
<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>
1473+
:
1474+
<span class="phpdocumentor-element-found-in__line">234</span>
1475+
</aside>
1476+
1477+
<p class="phpdocumentor-summary">There was an unexpected problem with a funding source.</p>
1478+
1479+
<code class="phpdocumentor-signature phpdocumentor-code ">
1480+
<span class="phpdocumentor-signature__visibility">public</span>
1481+
<span class="phpdocumentor-signature__type">mixed</span>
1482+
<span class="phpdocumentor-signature__name">FUNDING_SOURCE_ERROR</span>
1483+
= <span class="phpdocumentor-signature__default-value">&quot;funding_source_error&quot;</span>
1484+
</code>
1485+
1486+
1487+
<section class="phpdocumentor-description"></section>
1488+
1489+
1490+
14241491
</article>
14251492
</section>
14261493

src/ShipEngine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class ShipEngine
1818
/**
1919
* ShipEngine SDK Version
2020
*/
21-
public const VERSION = '1.0.1';
21+
public const VERSION = '1.0.2';
2222

2323
// /**
2424
// *

version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

0 commit comments

Comments
 (0)