1: <?php
2:
3: namespace ShippoClient\Entity;
4:
5: use TurmericSpice\Container;
6: use TurmericSpice\ReadableAttributes;
7:
8: class Refund extends ObjectInformation
9: {
10: use ReadableAttributes {
11: mayHaveAsString as public getTransaction;
12: }
13:
14: /**
15: * Indicates the status of the Refund.
16: * - PENDING
17: * - SUCCESS
18: * - ERROR
19: *
20: * @return string
21: */
22: public function getObjectStatus()
23: {
24: return $this->attributes->mayHave('object_status')->asString();
25: }
26: }
27: