v6 update

This commit is contained in:
Mohit Panjwani
2022-01-10 16:06:17 +05:30
parent b770e6277f
commit bdea879273
722 changed files with 19047 additions and 9186 deletions

View File

@@ -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);
}),
];
}
}