Skip to content

Commit

Permalink
Merge pull request #40 from devaguia/stage
Browse files Browse the repository at this point in the history
Stage
  • Loading branch information
devaguia authored Nov 23, 2023
2 parents 274b1a2 + da6192f commit 975c944
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci-cd-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,12 @@ jobs:
git push origin v$TAG_VERSION
echo "All right! 🎉"
- name: Update the packagist version ⬆️
run: |
curl \
-X POST \
-H "Content Type: application/json" \
-H "Secret: ${{ secrets.PACKAGISTTOKEN }}" \
https://packagist.org/api/github?username=devaguia
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Change Log

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## [1.0.1] - 2023-11-22

### Fixed

- Fix the tracking filter param usage


## [1.0.0] - 2023-09-08

### Added

- Initial release
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ $correios->setLotId(requestNumber: '20230831LT');

### Rastro (Tracking)
```PHP
$response = $correios->tracking()->get(trackingCode: 'AASD546115A');
$response = $correios->tracking()->get(
trackingCode: 'AASD546115A',
filtered: 'U'
);
```

### Preço (Price)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devaguia/correios-php",
"version": "1.0.0",
"version": "1.0.1",
"description": "Correios API library for PHP",
"license": "GPL-3.0",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Tracking/Tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ private function buildEndpoint(string $trackingCode, string $filtered): void
{
$endpoint = 'srorastro/v1/objetos/' . $trackingCode;
if ($filtered) {
$endpoint .= '?resultado=U';
$endpoint .= "?resultado=$filtered";
}

$this->setEndpoint($endpoint);
Expand Down

0 comments on commit 975c944

Please sign in to comment.