diff --git a/app/Classes/Modules/ServiceTypes/Services/FetchesServiceBankConfigurations.php b/app/Classes/Modules/ServiceTypes/Services/FetchesServiceBankConfigurations.php new file mode 100644 index 00000000..28843e4d --- /dev/null +++ b/app/Classes/Modules/ServiceTypes/Services/FetchesServiceBankConfigurations.php @@ -0,0 +1,27 @@ +fetchesBank = $fetchesBank; + } + + public function execute(SegmentConstant $constants) + { + return $this->fetchesBank->execute(['id' => $constants->detail->bank_id]); + } +} diff --git a/app/Classes/Modules/ServiceTypes/Services/FetchesServiceConfigurations.php b/app/Classes/Modules/ServiceTypes/Services/FetchesServiceConfigurations.php index b4230257..ae418ebf 100644 --- a/app/Classes/Modules/ServiceTypes/Services/FetchesServiceConfigurations.php +++ b/app/Classes/Modules/ServiceTypes/Services/FetchesServiceConfigurations.php @@ -14,15 +14,19 @@ class FetchesServiceConfigurations /** @var FetchesServiceCurrenciesConfigurations */ private $fetchesServiceCurrenciesConfigurations; + /** @var FetchesServiceBankConfigurations */ + private $fetchesServiceBankConfigurations; + /** * FetchesServiceConfigurations constructor. * @param FetchesConstant $fetchesConstant * @param FetchesServiceCurrenciesConfigurations $fetchesServiceCurrenciesConfigurations */ - public function __construct(FetchesConstant $fetchesConstant, FetchesServiceCurrenciesConfigurations $fetchesServiceCurrenciesConfigurations) + public function __construct(FetchesConstant $fetchesConstant, FetchesServiceCurrenciesConfigurations $fetchesServiceCurrenciesConfigurations, FetchesServiceBankConfigurations $fetchesServiceBankConfigurations) { $this->fetchesConstant = $fetchesConstant; $this->fetchesServiceCurrenciesConfigurations = $fetchesServiceCurrenciesConfigurations; + $this->fetchesServiceBankConfigurations = $fetchesServiceBankConfigurations; } @@ -32,6 +36,7 @@ class FetchesServiceConfigurations 'active' => (int) $constant->detail->is_active ?? false, 'billable' => (int) $constant->detail->is_billable ?? false, 'bank_id' => $constant->detail->bank_id ?? '', + 'bank_info' => $constant->detail->bank_id ? $this->fetchesServiceBankConfigurations->execute($constant) : '', 'currencies' => $this->fetchesServiceCurrenciesConfigurations->execute($constant) ], $this->addConfigurations($constant)->toArray()); diff --git a/resources/assets/vue/components/bookings/forms/PaymentVerificationFormComponent.vue b/resources/assets/vue/components/bookings/forms/PaymentVerificationFormComponent.vue index 958a6ce5..96453d88 100644 --- a/resources/assets/vue/components/bookings/forms/PaymentVerificationFormComponent.vue +++ b/resources/assets/vue/components/bookings/forms/PaymentVerificationFormComponent.vue @@ -9,6 +9,30 @@