Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
theposeidonas committed Jan 22, 2024
1 parent 7f8c4c2 commit adc85f9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,14 @@ Eksikleri ve hataları Issues kısmından yazabilirsiniz.
- [ ] Fonksiyonların ekstra filtreleri dahil edilecek (Query Parameters)
- [ ] Staging dahil edilecek (Api test modu)

### Changelog

#### V1.0.1

**22 Ocak 2023**

- Satış Faturasında unutulan pay() fonksiyonu eklendi.



<p align="right">(<a href="#readme-top">Başa dön</a>)</p>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Paraşüt v4 API for Laravel Projects",
"keywords": ["laravel", "Parasut", "Paraşüt"],
"license": "MIT",
"version": "v1.0.0",
"version": "v1.0.1",
"authors": [
{
"name": "Baran Arda",
Expand Down
13 changes: 13 additions & 0 deletions src/Models/Sales/Bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@ public function delete($id): array
return $this->handleResponse($response);
}

/**
* @param $id
* @param $data
* @return void
*/
public function pay($id, $data)
{
$response = Http::withHeaders([
'Authorization' => 'Bearer '.$this->token,
'Content-Type' => 'application/json',
])->post($this->baseUrl.'/'.$id, $data);
}

/**
* @param $id
* @return array
Expand Down

0 comments on commit adc85f9

Please sign in to comment.