Skip to content

Commit

Permalink
Added billing and shipping zones to the channel requests
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Apr 5, 2024
1 parent 81b272a commit adbccc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Http/Requests/CreateChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public function rules()
'currency' => ['sometimes', 'nullable', 'alpha:ascii', 'size:3', new CurrencyExists()],
'configuration' => 'nullable|array',
'domain' => 'sometimes|nullable|string|min:3|max:255',
'billing_zone_id' => 'sometimes|nullable|exists:zones,id',
'shipping_zone_id' => 'sometimes|nullable|exists:zones,id',
];
}

Expand Down
2 changes: 2 additions & 0 deletions src/Http/Requests/UpdateChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public function rules()
'currency' => ['sometimes', 'nullable', 'alpha:ascii', 'size:3', new CurrencyExists()],
'configuration' => 'nullable|array',
'domain' => 'sometimes|nullable|string|min:3|max:255',
'billing_zone_id' => 'sometimes|nullable|exists:zones,id',
'shipping_zone_id' => 'sometimes|nullable|exists:zones,id',
];
}

Expand Down

0 comments on commit adbccc2

Please sign in to comment.