|
| 1 | + |
| 2 | +package com.commercetools.api.predicates.expansion.business_unit; |
| 3 | + |
| 4 | +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; |
| 5 | + |
| 6 | +import java.util.Collections; |
| 7 | +import java.util.List; |
| 8 | + |
| 9 | +import com.commercetools.api.predicates.expansion.ExpansionDsl; |
| 10 | + |
| 11 | +public class BusinessUnitExpansionBuilderDsl implements ExpansionDsl { |
| 12 | + |
| 13 | + private final List<String> path; |
| 14 | + |
| 15 | + private BusinessUnitExpansionBuilderDsl(final List<String> path) { |
| 16 | + this.path = path; |
| 17 | + } |
| 18 | + |
| 19 | + public static BusinessUnitExpansionBuilderDsl of() { |
| 20 | + return new BusinessUnitExpansionBuilderDsl(Collections.emptyList()); |
| 21 | + } |
| 22 | + |
| 23 | + public static BusinessUnitExpansionBuilderDsl of(final List<String> path) { |
| 24 | + return new BusinessUnitExpansionBuilderDsl(path); |
| 25 | + } |
| 26 | + |
| 27 | + @Override |
| 28 | + public List<String> getPath() { |
| 29 | + return path; |
| 30 | + } |
| 31 | + |
| 32 | + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { |
| 33 | + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl |
| 34 | + .of(appendOne(path, "lastModifiedBy")); |
| 35 | + } |
| 36 | + |
| 37 | + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { |
| 38 | + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl |
| 39 | + .of(appendOne(path, "createdBy")); |
| 40 | + } |
| 41 | + |
| 42 | + public com.commercetools.api.predicates.expansion.type.CustomFieldsExpansionBuilderDsl custom() { |
| 43 | + return com.commercetools.api.predicates.expansion.type.CustomFieldsExpansionBuilderDsl |
| 44 | + .of(appendOne(path, "custom")); |
| 45 | + } |
| 46 | + |
| 47 | + public com.commercetools.api.predicates.expansion.business_unit.AssociateExpansionBuilderDsl associates() { |
| 48 | + return com.commercetools.api.predicates.expansion.business_unit.AssociateExpansionBuilderDsl |
| 49 | + .of(appendOne(path, "associates[*]")); |
| 50 | + } |
| 51 | + |
| 52 | + public com.commercetools.api.predicates.expansion.business_unit.AssociateExpansionBuilderDsl associates( |
| 53 | + long index) { |
| 54 | + return com.commercetools.api.predicates.expansion.business_unit.AssociateExpansionBuilderDsl |
| 55 | + .of(appendOne(path, "associates[" + index + "]")); |
| 56 | + } |
| 57 | + |
| 58 | + public com.commercetools.api.predicates.expansion.business_unit.InheritedAssociateExpansionBuilderDsl inheritedAssociates() { |
| 59 | + return com.commercetools.api.predicates.expansion.business_unit.InheritedAssociateExpansionBuilderDsl |
| 60 | + .of(appendOne(path, "inheritedAssociates[*]")); |
| 61 | + } |
| 62 | + |
| 63 | + public com.commercetools.api.predicates.expansion.business_unit.InheritedAssociateExpansionBuilderDsl inheritedAssociates( |
| 64 | + long index) { |
| 65 | + return com.commercetools.api.predicates.expansion.business_unit.InheritedAssociateExpansionBuilderDsl |
| 66 | + .of(appendOne(path, "inheritedAssociates[" + index + "]")); |
| 67 | + } |
| 68 | +} |
0 commit comments