Skip to content

Commit

Permalink
Merge pull request #34 from wedevBr/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
adeildo-jr authored Oct 23, 2023
2 parents ade346a + 7c5492f commit ebb01e3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/Rules/BAAS/Billet.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,28 @@

namespace WeDevBr\Celcoin\Rules\BAAS;

use WeDevBr\Celcoin\Enums\ClientFinalityEnum;

class Billet
{
public static function rules(): array
{
return [
'externalId' => ['required'],
'merchantCategoryCode' => ['sometimes', 'required'],
'expirationAfterPayment' => ['boolean'],
'expirationAfterPayment' => ['required', 'numeric', 'min:1'],
'duedate' => ['required', 'date'],
'amount' => ['required', 'decimal:0,2'],
'key' => ['required'],
'debtor' => ['required', 'array'],
'debtor.name' => ['required'],
'debtor.document' => ['required', 'numeric'],
'debtor.name' => ['required', 'string', 'max: 25'],
'debtor.document' => ['required'],
'debtor.postalCode' => ['required', 'numeric'],
'debtor.publicArea' => ['required'],
'debtor.number' => ['required', 'numeric'],
'debtor.number' => ['required'],
'debtor.complement' => ['nullable'],
'debtor.neighborhood' => ['required'],
'debtor.city' => ['required'],
'debtor.state' => ['required'],
'receiver.document' => ['required','numeric'],
'receiver.document' => ['required'],
'receiver.account' => ['required','numeric'],
'instructions' => ['sometimes', 'array', 'nullable'],
'instructions.discount' => ['required_with:instructions','array'],
Expand All @@ -36,7 +34,7 @@ public static function rules(): array
'instructions.interest' => ['nullable','decimal:0,2'],
'split' => ['sometimes', 'array'],
'split.*.account' => ['nullable', 'numeric'],
'split.*.document' => ['nullable', 'numeric'],
'split.*.document' => ['nullable'],
'split.*.percent' => ['nullable', 'decimal:0,2'],
'split.*.amount' => ['nullable', 'decimal:0,2'],
'split.*.aggregatePayment' => ['nullable', 'boolean'],
Expand Down

0 comments on commit ebb01e3

Please sign in to comment.