Skip to content

Commit

Permalink
S-1207 inclusão do infoRRA S 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robmachado committed Apr 4, 2023
1 parent 11d4574 commit 795ee76
Show file tree
Hide file tree
Showing 4 changed files with 445 additions and 5 deletions.
13 changes: 13 additions & 0 deletions examples/Fake/v_S_01_01_00/Fake_s1207_EvtBenPrRP.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@
$std->dmdev[0]->idedmdev = '11111111111111111111'; //Obrigatório
$std->dmdev[0]->nrbeneficio = '11111111111111111111'; //Obrigatório

$std->dmdev[0]->indrra = 'S'; //S ou null
$std->dmdev[0]->inforra = new \stdClass(); //Opcional se indRRA for NULL
$std->dmdev[0]->inforra->tpprocrra = 1; //Obrigatorio 1 -Administrativo ou 2 - judicial
$std->dmdev[0]->inforra->nrprocrra = '12345678901234567'; //Obrigatório
$std->dmdev[0]->inforra->descrra = 'Descrição do RRA'; //Obrigatório até 50 caracteres
$std->dmdev[0]->inforra->qtdmesesrra = 1; //Obrigatório de 9 atá 999.9
$std->dmdev[0]->inforra->despprocjud = new \stdClass(); //Opcional
$std->dmdev[0]->inforra->despprocjud->vlrdespcustas = 100.00; //Obrigatório
$std->dmdev[0]->inforra->despprocjud->vlrdespadvogados = 5000.00; //Obrigatório
$std->dmdev[0]->inforra->ideadv[0] = new \stdClass(); //Opcional até 1 até 99
$std->dmdev[0]->inforra->ideadv[0]->tpinsc = 1; //Obrigatório 1-CNPJ ou 2-CPF
$std->dmdev[0]->inforra->ideadv[0]->nrinsc = '12345678901234'; //Obrigatório

//Informações relativas ao período de apuração.
$std->dmdev[0]->infoperapur = new \stdClass(); //Opcional

Expand Down
88 changes: 86 additions & 2 deletions examples/schemes/v_S_01_01_00/s1207_JsonSchemaEvtBenPrRP.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,79 @@
"minLength": 1,
"maxLength": 20
},
"indrra": {
"required": false,
"type": ["string","null"],
"pattern": "^(S)$"
},
"inforra": {
"required": false,
"type": ["object","null"],
"properties": {
"tpprocrra": {
"required": true,
"type": "integer",
"minimum": 1,
"maximum": 2
},
"nrprocrra": {
"required": true,
"type": "string",
"pattern": "^[0-9]{17}|[0-9]{20}|[0-9]{21}$"
},
"descrra": {
"required": true,
"type": "string",
"minLength": 1,
"maxLength": 50
},
"qtdmesesrra": {
"required": true,
"type": "number",
"minimum": 0,
"maximum": 999.9
},
"despprocjud": {
"required": false,
"type": ["object","null"],
"properties": {
"vlrdespcustas": {
"required": true,
"type": "number"
},
"vlrdespadvogados": {
"required": true,
"type": "number"
}
}
},
"ideadv": {
"required": false,
"type": ["array","null"],
"minItems": 1,
"maxItems": 99,
"items": {
"type": "object",
"properties": {
"tpinsc": {
"required": true,
"type": "integer",
"minimum": 1,
"maximum": 2
},
"nrinsc": {
"required": true,
"type": "string",
"pattern": "^([0-9]{11}|[0-9]{14})$"
}
}
}
}
}
},
"infoperapur": {
"required": false,
"type": "object",
"type": ["object","null"],
"properties": {
"ideestab": {
"required": true,
Expand All @@ -97,7 +167,7 @@
"pattern": "^[0-9]{14}$"
},
"itensremun": {
"codrubr": {
"codrubr": {
"required": true,
"type": "string",
"minLength": 1,
Expand Down Expand Up @@ -228,6 +298,20 @@
$std->dmdev[0]->idedmdev = '11111111111111111111'; //Obrigatório
$std->dmdev[0]->nrbeneficio = '11111111111111111111'; //Obrigatório

$std->dmdev[0]->indrra = 'S'; //S ou null
$std->dmdev[0]->inforra = new \stdClass(); //Opcional se indRRA for NULL
$std->dmdev[0]->inforra->tpprocrra = 1; //Obrigatorio 1 -Administrativo ou 2 - judicial
$std->dmdev[0]->inforra->nrprocrra = '12345678901234567'; //Obrigatório
$std->dmdev[0]->inforra->descrra = 'Descrição do RRA'; //Obrigatório até 50 caracteres
$std->dmdev[0]->inforra->qtdmesesrra = 1; //Obrigatório de 9 atá 999.9
$std->dmdev[0]->inforra->despprocjud = new \stdClass(); //Opcional
$std->dmdev[0]->inforra->despprocjud->vlrdespcustas = 100.00; //Obrigatório
$std->dmdev[0]->inforra->despprocjud->vlrdespadvogados = 5000.00; //Obrigatório
$std->dmdev[0]->inforra->ideadv[0] = new \stdClass(); //Opcional até 1 até 99
$std->dmdev[0]->inforra->ideadv[0]->tpinsc = 1; //Obrigatório 1-CNPJ ou 2-CPF
$std->dmdev[0]->inforra->ideadv[0]->nrinsc = '12345678901234'; //Obrigatório


//Informações relativas ao período de apuração.
$std->dmdev[0]->infoperapur = new \stdClass(); //Opcional

Expand Down
74 changes: 72 additions & 2 deletions jsonSchemes/v_S_01_01_00/evtBenPrRP.schema
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,79 @@
"minLength": 1,
"maxLength": 20
},
"indrra": {
"required": false,
"type": ["string","null"],
"pattern": "^(S)$"
},
"inforra": {
"required": false,
"type": ["object","null"],
"properties": {
"tpprocrra": {
"required": true,
"type": "integer",
"minimum": 1,
"maximum": 2
},
"nrprocrra": {
"required": true,
"type": "string",
"pattern": "^[0-9]{17}|[0-9]{20}|[0-9]{21}$"
},
"descrra": {
"required": true,
"type": "string",
"minLength": 1,
"maxLength": 50
},
"qtdmesesrra": {
"required": true,
"type": "number",
"minimum": 0,
"maximum": 999.9
},
"despprocjud": {
"required": false,
"type": ["object","null"],
"properties": {
"vlrdespcustas": {
"required": true,
"type": "number"
},
"vlrdespadvogados": {
"required": true,
"type": "number"
}
}
},
"ideadv": {
"required": false,
"type": ["array","null"],
"minItems": 1,
"maxItems": 99,
"items": {
"type": "object",
"properties": {
"tpinsc": {
"required": true,
"type": "integer",
"minimum": 1,
"maximum": 2
},
"nrinsc": {
"required": true,
"type": "string",
"pattern": "^([0-9]{11}|[0-9]{14})$"
}
}
}
}
}
},
"infoperapur": {
"required": false,
"type": "object",
"type": ["object","null"],
"properties": {
"ideestab": {
"required": true,
Expand All @@ -80,7 +150,7 @@
"pattern": "^[0-9]{14}$"
},
"itensremun": {
"codrubr": {
"codrubr": {
"required": true,
"type": "string",
"minLength": 1,
Expand Down
Loading

0 comments on commit 795ee76

Please sign in to comment.