Rev 311 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 311 | Rev 312 | ||
|---|---|---|---|
| Line 4... | Line 4... | ||
| 4 | 4 | ||
| 5 | ESTAMPA("E", "ESTAMPA ESPAÇO CASE", "+ R$5,00"), |
- | |
| 6 | SIMPLES("S", "SIMPLES/NOME NA ESTAMPA EC", "+ R$15,00"), |
- | |
| 7 | COMPLETA("C", "COMPLETA (+ 50% DA CAPA)", "+ R$20,00"); |
- | |
| - | 5 | ESTAMPA("E", "ESTAMPA ESPAÇO CASE", "+ R$5,00", 5.0), |
|
| - | 6 | SIMPLES("S", "SIMPLES/NOME NA ESTAMPA EC", "+ R$15,00", 15.0), |
|
| - | 7 | COMPLETA("C", "COMPLETA (ARTE COM +70% DA CAPA)", "+ R$20,00", 20.0); |
|
| 8 | 8 | ||
| 9 | private String tipo; |
9 | private String tipo; |
| 10 | private String descricao; |
10 | private String descricao; |
| 11 | private String valorMinimo; |
- | |
| - | 11 | private String descricaoValorAcrescido; |
|
| - | 12 | private Double valorAcrescido; |
|
| 12 | 13 | ||
| 13 | private TipoPersonalizacao(String tipo, String descricao, String valorMinimo) { |
- | |
| - | 14 | private TipoPersonalizacao(String tipo, String descricao, String descricaoValorAcrescido, Double valorAcrescido) { |
|
| 14 | this.tipo = tipo; |
15 | this.tipo = tipo; |
| 15 | this.descricao = descricao; |
16 | this.descricao = descricao; |
| 16 | this.valorMinimo = valorMinimo; |
- | |
| - | 17 | this.descricaoValorAcrescido = descricaoValorAcrescido; |
|
| - | 18 | this.valorAcrescido = valorAcrescido; |
|
| 17 | }
|
19 | }
|
| 18 | 20 | ||
| 19 | public String getDescricao() { |
21 | public String getDescricao() { |
| 20 | return descricao; |
22 | return descricao; |
| 21 | }
|
23 | }
|
| 22 | 24 | ||
| 23 | public String getValor() { |
25 | public String getValor() { |
| 24 | return tipo; |
26 | return tipo; |
| 25 | }
|
27 | }
|
| 26 | 28 | ||
| 27 | public String getValorMinimo() { |
- | |
| 28 | return valorMinimo; |
- | |
| - | 29 | public String getDescricaoValorAcrescido() { |
|
| - | 30 | return descricaoValorAcrescido; |
|
| - | 31 | }
|
|
| - | 32 | ||
| - | 33 | public Double getValorAcrescido() { |
|
| - | 34 | return valorAcrescido; |
|
| 29 | }
|
35 | }
|
| 30 | 36 | ||
| 31 | public static TipoPersonalizacao parse(String tipo) { |
37 | public static TipoPersonalizacao parse(String tipo) { |
| 32 | for (TipoPersonalizacao item : TipoPersonalizacao.values()) { |
38 | for (TipoPersonalizacao item : TipoPersonalizacao.values()) { |
| 33 | if (item.getValor().equals(tipo)) { |
39 | if (item.getValor().equals(tipo)) { |