Skip to content

Commit 77fa8e6

Browse files
committed
Added SettlementStatus convenience constants
1 parent 808e3f9 commit 77fa8e6

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/BitPaySDK/Model/Settlement/Settlement.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public function setPayoutInfo(PayoutInfo $payoutInfo): void
141141
* Gets Status of the settlement. Possible statuses are "new", "processing", "rejected" and "completed".
142142
*
143143
* @return string|null
144+
* @see SettlementStatus
144145
*/
145146
public function getStatus(): ?string
146147
{
@@ -151,6 +152,7 @@ public function getStatus(): ?string
151152
* Sets Status of the settlement. Possible statuses are "new", "processing", "rejected" and "completed".
152153
*
153154
* @param string $status
155+
* @see SettlementStatus
154156
*/
155157
public function setStatus(string $status): void
156158
{
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/**
4+
* Copyright (c) 2025 BitPay
5+
**/
6+
7+
/**
8+
* @author BitPay Integrations <[email protected]>
9+
* @license http://www.opensource.org/licenses/mit-license.php MIT
10+
*/
11+
12+
namespace BitPaySDK\Model\Settlement;
13+
14+
/**
15+
* Status of the settlement.
16+
* Possible statuses are "new", "processing", "rejected" and "completed".
17+
*
18+
* @package BitPaySDK\Model\Settlement
19+
* @author BitPay Integrations <[email protected]>
20+
* @license http://www.opensource.org/licenses/mit-license.php MIT
21+
* @see https://developer.bitpay.com/reference/settlements Settlements
22+
*/
23+
interface SettlementStatus
24+
{
25+
public const NEW = "new";
26+
public const PROCESSING = "processing";
27+
public const REJECTED = "rejected";
28+
public const COMPLETED = "completed";
29+
}

0 commit comments

Comments
 (0)