private ShippingMethodQuery() { super(ShippingMethodEndpoint.ENDPOINT.endpoint(), resultTypeReference()); }
public static <T> JsonEndpoint<T> of(final TypeReference<T> typeReference, final String endpoint) { return new JsonEndpoint<>(typeReference, endpoint); } }
protected UpdateCommandDslImpl(final Versioned<T> versioned, final List<? extends UpdateAction<T>> updateActions, final JsonEndpoint<T> endpoint) { this(versioned, updateActions, endpoint.typeReference(), endpoint.endpoint()); }
CustomerGroupCreateCommandImpl(final CustomerGroupDraft body) { super(body, JsonEndpoint.of(CustomerGroup.typeReference(), "/customer-groups"), CustomerGroupExpansionModel.of(), CustomerGroupCreateCommandImpl::new); }
ShippingMethodsByCartGetImpl(final String cartId) { super("?cartId=" + cartId, ShippingMethodEndpoint.ENDPOINT.withTypeReference(new TypeReference<List<ShippingMethod>>() { @Override public String toString() { return "TypeReference<List<ShippingMethod>>"; } }), ShippingMethodExpansionModel.of(), ShippingMethodsByCartGetImpl::new); }
@Override protected TypeReference<T> typeReference() { return endpoint.typeReference(); } }
ReviewCreateCommandImpl(final ReviewDraft body) { super(body, JsonEndpoint.of(Review.typeReference(), "/reviews"), ReviewExpansionModel.of(), ReviewCreateCommandImpl::new); }
ShippingMethodsByLocationGetImpl(final CountryCode country, @Nullable final String state, @Nullable final CurrencyUnit currency) { super(identifierToSearchFor(requireNonNull(country), state, currency), ShippingMethodEndpoint.ENDPOINT.withTypeReference(new TypeReference<List<ShippingMethod>>() { @Override public String toString() { return "TypeReference<List<ShippingMethod>>"; } }), ShippingMethodExpansionModel.of(), ShippingMethodsByLocationGetImpl::new); }
@Override protected TypeReference<T> typeReference() { return endpoint.typeReference(); } }
private CartQuery(){ super(CartsEndpoint.ENDPOINT.endpoint(), resultTypeReference()); }
CategoryCreateCommandImpl(final CategoryDraft body) { super(body, JsonEndpoint.of(Category.typeReference(), "/categories"), CategoryExpansionModel.of(), CategoryCreateCommandImpl::new); }
protected MetaModelUpdateCommandDslImpl(final Versioned<T> versioned, final List<? extends UpdateAction<T>> updateActions, final JsonEndpoint<T> endpoint, final Function<MetaModelUpdateCommandDslBuilder<T, C, E>, C> creationFunction, final E expansionModel) { this(versioned, updateActions, SphereJsonUtils.convertToJavaType(endpoint.typeReference()), endpoint.endpoint(), creationFunction, expansionModel, Collections.emptyList(), Collections.emptyList()); }
ShippingMethodsByLocationGetImpl(final CountryCode country, @Nullable final String state, @Nullable final CurrencyUnit currency) { super(ShippingMethodEndpoint.ENDPOINT.withTypeReference(new TypeReference<List<ShippingMethod>>() { @Override public String toString() { return "TypeReference<List<ShippingMethod>>"; } }), "", ShippingMethodExpansionModel.of(), ShippingMethodsByCartGetImpl::new, createQueryParameters(country, state, currency)); }
protected TypeReference<T> typeReference() { return endpoint.typeReference(); }
public static <T> JsonEndpoint<T> of(final TypeReference<T> typeReference, final String endpoint) { return new JsonEndpoint<>(typeReference, endpoint); }
private TaxCategoryQuery(){ super(TaxCategoriesEndpoint.ENDPOINT.endpoint(), resultTypeReference()); }
CartDiscountCreateCommandImpl(final CartDiscountDraft body) { super(body, JsonEndpoint.of(CartDiscount.typeReference(), "/cart-discounts"), CartDiscountExpansionModel.of(), CartDiscountCreateCommandImpl::new); }
protected MetaModelByIdDeleteCommandImpl(final Versioned<T> versioned, final JsonEndpoint<T> endpoint, final E expansionModel, final Function<MetaModelByIdDeleteCommandBuilder<T, C, E>, C> creationFunction) { this(versioned, false, convertToJavaType(endpoint.typeReference()), endpoint.endpoint(), expansionModel, Collections.emptyList(), creationFunction); }
ShippingMethodsByLocationGetImpl(final CountryCode country, @Nullable final String state, @Nullable final CurrencyUnit currency) { super(ShippingMethodEndpoint.ENDPOINT.withTypeReference(new TypeReference<List<ShippingMethod>>() { @Override public String toString() { return "TypeReference<List<ShippingMethod>>"; } }), "", ShippingMethodExpansionModel.of(), ShippingMethodsByCartGetImpl::new, createQueryParameters(country, state, currency)); }
private ProductTypeQuery() { super(ProductTypesEndpoint.ENDPOINT.endpoint(), resultTypeReference()); }