Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 7, 2024
1 parent 2778c99 commit 8298aaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Requests/CouponRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public function rules()
'min_total' => ['numeric'],
'redemptions' => ['required', 'integer'],
'customer_redemptions' => ['required', 'integer'],
'customers' => ['nullable', 'array'],
'customer_groups' => ['nullable', 'array'],
'customers.*' => ['integer'],
'customer_groups.*' => ['integer'],
'description' => ['max:1028'],
'validity' => ['required', 'in:forever,fixed,period,recurring'],
'fixed_date' => ['nullable', 'required_if:validity,fixed', 'date'],
Expand Down

0 comments on commit 8298aaf

Please sign in to comment.