ShippingMethodDeleteCommandImpl(final Versioned<ShippingMethod> versioned,final boolean eraseData) { super(versioned,eraseData, JsonEndpoint.of(ShippingMethod.typeReference(), "/shipping-methods"), ShippingMethodExpansionModel.of(), ShippingMethodDeleteCommandImpl::new); }
ApiClientCreateCommandImpl(final ApiClientDraft body) { super(body, JsonEndpoint.of(ApiClient.typeReference(), "/api-clients"), ApiClientExpansionModel.of(), ApiClientCreateCommandImpl::new); }
CustomerUpdateCommandImpl(final Versioned<Customer> versioned, final List<? extends UpdateAction<Customer>> updateActions) { super(versioned, updateActions, JsonEndpoint.of(Customer.typeReference(), "/customers"), CustomerUpdateCommandImpl::new, CustomerExpansionModel.of()); }
SubscriptionUpdateCommandImpl(final Versioned<Subscription> versioned, final List<? extends UpdateAction<Subscription>> updateActions) { super(versioned, updateActions, JsonEndpoint.of(Subscription.typeReference(), "/subscriptions"), SubscriptionUpdateCommandImpl::new, SubscriptionExpansionModel.of()); }
InventoryEntryByIdGetImpl(final String id) { super(id, JsonEndpoint.of(InventoryEntry.typeReference(), "/inventory"), InventoryEntryExpansionModel.of(), InventoryEntryByIdGetImpl::new); }
ExtensionDeleteCommandImpl(final Versioned<Extension> versioned,final boolean eraseData) { super(versioned,eraseData, JsonEndpoint.of(Extension.typeReference(), "/extensions"), ExtensionExpansionModel.of(), ExtensionDeleteCommandImpl::new); }
PaymentCreateCommandImpl(final PaymentDraft body) { super(body, JsonEndpoint.of(Payment.typeReference(), "/payments"), PaymentExpansionModel.of(), PaymentCreateCommandImpl::new); }
StateUpdateCommandImpl(final Versioned<State> versioned, final List<? extends UpdateAction<State>> updateActions) { super(versioned, updateActions, JsonEndpoint.of(State.typeReference(), "/states"), StateUpdateCommandImpl::new, StateExpansionModel.of()); }
CategoryUpdateCommandImpl(final Versioned<Category> versioned, final List<? extends UpdateAction<Category>> updateActions) { super(versioned, updateActions, JsonEndpoint.of(Category.typeReference(), "/categories"), CategoryUpdateCommandImpl::new, CategoryExpansionModel.of()); }
ReviewByIdGetImpl(final String id) { super(id, JsonEndpoint.of(Review.typeReference(), "/reviews"), ReviewExpansionModel.of(), ReviewByIdGetImpl::new); }
CartDiscountByIdGetImpl(final String id) { super(id, JsonEndpoint.of(CartDiscount.typeReference(), "/cart-discounts"), CartDiscountExpansionModel.of(), CartDiscountByIdGetImpl::new); }
PaymentByKeyGetImpl(final String key) { super("key=" + key, JsonEndpoint.of(Payment.typeReference(), "/payments"), PaymentExpansionModel.of(), PaymentByKeyGetImpl::new); }
private static JsonEndpoint<Customer> buildEndpoint(final String token) { final String endpoint = UrlBuilder.of(GET_BY_PASSWORD_TOKEN) .addUriParameter(token) .build(); return JsonEndpoint.of(Customer.typeReference(), endpoint); }
private static JsonEndpoint<Customer> buildEndpoint(final String token) { final String endpoint = UrlBuilder.of(GET_BY_EMAIL_TOKEN) .addUriParameter(token) .build(); return JsonEndpoint.of(Customer.typeReference(), endpoint); }
public CustomObjectByKeyGetImpl(final String container, final String key, final JavaType javaType) { super(container + "/" + key, JsonEndpoint.of(new TypeReference<CustomObject<T>>() { @Override public String toString() { return "TypeReference<CustomObject<T>>"; } }, "/custom-objects"), CustomObjectExpansionModel.<T>of(), att -> new CustomObjectByKeyGetImpl<T>(att, javaType)); this.customObjectJavaType = SphereJsonUtils.createCustomObjectJavaType(CustomObject.class, javaType.getRawClass()); }
private static JsonEndpoint<Customer> buildEndpoint(final String token) { final String endpoint = UrlBuilder.of(GET_BY_PASSWORD_TOKEN) .addUriParameter(token) .build(); return JsonEndpoint.of(Customer.typeReference(), endpoint); }
private static JsonEndpoint<Customer> buildEndpoint(final String token) { final String endpoint = UrlBuilder.of(GET_BY_EMAIL_TOKEN) .addUriParameter(token) .build(); return JsonEndpoint.of(Customer.typeReference(), endpoint); }
CustomObjectByIdGetImpl(final String id, final JavaType javaType) { super(id, JsonEndpoint.of(new TypeReference<CustomObject<T>>() { @Override public String toString() { return "TypeReference<CustomObject<T>>"; } }, "/custom-objects"), CustomObjectExpansionModel.<T>of(), att -> new CustomObjectByIdGetImpl<T>(att, javaType)); this.customObjectJavaType = SphereJsonUtils.createCustomObjectJavaType(CustomObject.class, javaType.getRawClass()); }
private static JsonEndpoint<Order> buildEndpoint(final String orderNumber) { final String endpoint = UrlBuilder.of(GET_BY_ORDER_NUMBER) .addUriParameter(orderNumber) .build(); return JsonEndpoint.of(Order.typeReference(), endpoint); }
private static JsonEndpoint<Order> buildEndpoint(final String orderNumber) { final String endpoint = UrlBuilder.of(GET_BY_ORDER_NUMBER) .addUriParameter(orderNumber) .build(); return JsonEndpoint.of(Order.typeReference(), endpoint); }