File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ part of {{ language.params.packageName }};
5
5
{% macro method_parameters(parameters ) %}
6
6
{% if parameters .all | length > 0 %}{{ ' {' }}{% for parameter in parameters .all %}{{ _self.parameter (parameter ) }}{% if not loop .last %}, {% endif %}{% endfor %}{{ ' }' }}{% endif %}
7
7
{% endmacro %}
8
- {% macro map_parameter(parameter ) %}
9
- {% if parameter .name == ' orderType' %}'{{ parameter .name }}': {{ parameter .name | caseCamel }}{% if parameter .required %}{% else %}?{% endif %}.name(),{% else %}
10
- '{{ parameter .name }}': {{ parameter .name | caseCamel }},{% endif %}
11
- {% endmacro %}
8
+ {% macro map_parameter(parameter ) %}'{{ parameter .name }}': {{ parameter .name | caseCamel }},{% endmacro %}
12
9
13
10
class {{ service .name | caseUcfirst }} extends Service {
14
11
{{ service .name | caseUcfirst }}(Client client): super(client);
Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ part of {{ language.params.packageName }};
5
5
{% macro method_parameters(parameters ) %}
6
6
{% if parameters .all | length > 0 %}{{ ' {' }}{% for parameter in parameters .all %}{{ _self.parameter (parameter ) }}{% if not loop .last %}, {% endif %}{% endfor %}{{ ' }' }}{% endif %}
7
7
{% endmacro %}
8
- {% macro map_parameter(parameter ) %}
9
- {% if parameter .name == ' orderType' %}'{{ parameter .name }}': {{ parameter .name | caseCamel }}{% if parameter .required %}{% else %}?{% endif %}.name(),{% else %}
10
- '{{ parameter .name }}': {{ parameter .name | caseCamel }},{% endif %}
11
- {% endmacro %}
8
+ {% macro map_parameter(parameter ) %}'{{ parameter .name }}': {{ parameter .name | caseCamel }},{% endmacro %}
12
9
13
10
class {{ service .name | caseUcfirst }} extends Service {
14
11
{{ service .name | caseUcfirst }}(Client client): super(client);
You can’t perform that action at this time.
0 commit comments