mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-15 09:52:55 -05:00
v6 update
This commit is contained in:
@@ -29,6 +29,7 @@ class PaymentResource extends JsonResource
|
||||
'exchange_rate' => $this->exchange_rate,
|
||||
'base_amount' => $this->base_amount,
|
||||
'currency_id' => $this->currency_id,
|
||||
'transaction_id' => $this->transaction_id,
|
||||
'sequence_number' => $this->sequence_number,
|
||||
'formatted_created_at' => $this->formattedCreatedAt,
|
||||
'formatted_payment_date' => $this->formattedPaymentDate,
|
||||
@@ -51,6 +52,9 @@ class PaymentResource extends JsonResource
|
||||
'currency' => $this->when($this->currency()->exists(), function () {
|
||||
return new CurrencyResource($this->currency);
|
||||
}),
|
||||
'transaction' => $this->when($this->transaction()->exists(), function () {
|
||||
return new TransactionResource($this->transaction);
|
||||
}),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user