Skip to content

Commit 70f4cf3

Browse files
authored
Merge pull request #28 from storefront-bvba/available-statuses
New method "getAvailableStatusesForManualMarking()"
2 parents c7ff91c + 6b47d62 commit 70f4cf3

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/Result/Invoice.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,14 @@ public function isMarked(): bool
7474
$data = $this->getData();
7575
return $data['additionalStatus'] === self::ADDITIONAL_STATUS_MARKED;
7676
}
77+
78+
/**
79+
* Get the statuses you can use to manually mark this invoice.
80+
* Available since BTCPay Server version x.x.x
81+
* @return string[] Example: ["Settled", "Invalid"]
82+
*/
83+
public function getAvailableStatusesForManualMarking(): array
84+
{
85+
return $this->getData()['availableStatusesForManualMarking'];
86+
}
7787
}

0 commit comments

Comments
 (0)