API improvements (#1826)

This commit is contained in:
Kevin Papst
2020-07-17 20:30:16 +02:00
committed by GitHub
parent 5864c7e127
commit c843dba29a
77 changed files with 1745 additions and 1189 deletions

View File

@@ -27,7 +27,7 @@ abstract class AbstractRateForm extends AbstractType
// documentation is for NelmioApiDocBundle
'documentation' => [
'type' => 'number',
'description' => 'Rate',
'description' => 'The rate (eg. 10.5)',
],
'label' => 'label.rate',
'attr' => [
@@ -40,7 +40,7 @@ abstract class AbstractRateForm extends AbstractType
// documentation is for NelmioApiDocBundle
'documentation' => [
'type' => 'number',
'description' => 'Internal rate',
'description' => 'The internal rate (eg. 10.0 or 10)',
],
'label' => 'label.rate_internal',
'currency' => $currency,
@@ -50,6 +50,10 @@ abstract class AbstractRateForm extends AbstractType
->add('isFixed', YesNoType::class, [
'label' => 'label.fixedRate',
'help' => 'help.fixedRate',
'documentation' => [
'type' => 'boolean',
'description' => 'If "true" each time record gets the same rate, regardless of its duration',
],
])
;
}