Skip to content

Commit

Permalink
Refactor form labels in Gateway, Stkpush, and Webhook entities
Browse files Browse the repository at this point in the history
  • Loading branch information
dedanirungu committed Feb 28, 2024
1 parent 57e46b7 commit 0cdd66a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Entities/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ public function structure($structure): array
{
$structure['table'] = ['title', 'ledger_id', 'currency_id', 'consumer_key', 'consumer_secret', 'initiator_name', 'passkey', 'business_shortcode', 'phone_number', 'method', 'published'];
$structure['form'] = [
['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['title', 'slug']],
['label' => 'Main', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['ledger_id', 'currency_id', 'consumer_key', 'consumer_secret', 'initiator_name', 'initiator_password']],
['label' => 'Other', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['party_a', 'party_b', 'type', 'passkey', 'business_shortcode', 'phone_number', 'method']],
['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['default', 'sandbox', 'published']],
['label' => 'Title', 'class' => 'col-span-full', 'fields' => ['description']],
['label' => 'Gateway Title', 'class' => 'col-span-full', 'fields' => ['title', 'slug']],
['label' => 'Gateway Main', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['ledger_id', 'currency_id', 'consumer_key', 'consumer_secret', 'initiator_name', 'initiator_password']],
['label' => 'Gateway Other', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['party_a', 'party_b', 'type', 'passkey', 'business_shortcode', 'phone_number', 'method']],
['label' => 'Gateway Setting', 'class' => 'col-span-full', 'fields' => ['default', 'sandbox', 'published']],
['label' => 'Gateway Description', 'class' => 'col-span-full', 'fields' => ['description']],
];
$structure['filter'] = ['ledger_id', 'currency_id'];

Expand Down
8 changes: 4 additions & 4 deletions Entities/Stkpush.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public function structure($structure): array

$structure['table'] = ['amount', 'phone', 'reference', 'command', 'gateway_id', 'completed', 'successful', 'merchant_request_id', 'checkout_request_id'];
$structure['form'] = [
['label' => 'Phone', 'class' => 'col-span-full', 'fields' => ['phone']],
['label' => 'Stkpush', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['amount', 'reference', 'merchant_request_id', 'checkout_request_id']],
['label' => 'Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['gateway_id', 'completed', 'successful']],
['label' => 'Description', 'class' => 'col-span-full', 'fields' => ['description']],
['label' => 'Stkpush Phone', 'class' => 'col-span-full', 'fields' => ['phone']],
['label' => 'Stkpush Details', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['amount', 'reference', 'merchant_request_id', 'checkout_request_id']],
['label' => 'Stkpush Setting', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['gateway_id', 'completed', 'successful']],
['label' => 'Stkpush Description', 'class' => 'col-span-full', 'fields' => ['description']],
];
$structure['filter'] = ['amount', 'phone', 'reference', 'command', 'gateway_id', 'completed', 'successful'];

Expand Down
6 changes: 3 additions & 3 deletions Entities/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public function structure($structure): array
{
$structure['table'] = ['slug', 'confirmation_url', 'validation_url', 'paybill_till', 'shortcode', 'published'];
$structure['form'] = [
['label' => 'slug', 'class' => 'col-span-full', 'fields' => ['slug']],
['label' => 'Webhook', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['paybill_till', 'shortcode', 'published']],
['label' => 'Url', 'class' => 'col-span-full md:col-span-6ull md:col-span-6 md:pr-2', 'fields' => ['confirmation_url', 'validation_url']],
['label' => 'Wbehook Slug', 'class' => 'col-span-full', 'fields' => ['slug']],
['label' => 'Webhook Detail', 'class' => 'col-span-full md:col-span-6 md:pr-2', 'fields' => ['paybill_till', 'shortcode', 'published']],
['label' => 'Webhook Url', 'class' => 'col-span-full md:col-span-6ull md:col-span-6 md:pr-2', 'fields' => ['confirmation_url', 'validation_url']],
];
$structure['filter'] = ['slug', 'confirmation_url', 'validation_url', 'paybill_till', 'published'];

Expand Down

0 comments on commit 0cdd66a

Please sign in to comment.