|
|
@@ -10,6 +10,7 @@ final readonly class OrderTransactionResponseData extends PagarmeResponseData
|
|
|
public ?string $id,
|
|
|
public ?string $status,
|
|
|
public ?int $amount,
|
|
|
+ public ?int $cost,
|
|
|
public ?string $createdAt,
|
|
|
public ?string $acquirerMessage,
|
|
|
public array $gatewayResponse,
|
|
|
@@ -24,6 +25,7 @@ final readonly class OrderTransactionResponseData extends PagarmeResponseData
|
|
|
id: static::arrString($payload, 'id'),
|
|
|
status: static::arrString($payload, 'status'),
|
|
|
amount: static::arrInt($payload, 'amount'),
|
|
|
+ cost: static::arrInt($payload, 'cost'),
|
|
|
createdAt: static::arrString($payload, 'created_at'),
|
|
|
acquirerMessage: static::arrString($payload, 'acquirer_message'),
|
|
|
gatewayResponse: static::arrArray($payload, 'gateway_response'),
|
|
|
@@ -39,6 +41,7 @@ final readonly class OrderTransactionResponseData extends PagarmeResponseData
|
|
|
'id' => $this->id,
|
|
|
'status' => $this->status,
|
|
|
'amount' => $this->amount,
|
|
|
+ 'cost' => $this->cost,
|
|
|
'created_at' => $this->createdAt,
|
|
|
'acquirer_message' => $this->acquirerMessage,
|
|
|
'gateway_response' => $this->gatewayResponse,
|